/* Buary (buary.com) - 2026 Neo-Tactile Analog Paper Diary Stylesheet */

:root {
  --desk-bg: #ebe5dc;
  --desk-bg-accent: #d8cebf;
  --cover-bg: #4b362a;
  --cover-bg-deep: #35251c;
  --cover-border: #694e3e;
  --cover-stitch: rgba(245, 230, 206, 0.36);
  --paper: #fdfbf7;
  --paper-alt: #f7f3ea;
  --line-color: #e8e1d3;
  --line-strong: #d5cbb8;
  --ink: #29231e;
  --ink-muted: #736a5f;
  --ink-soft: #9a9083;
  --accent: #b55a37;
  --accent-soft: #f6e6df;
  --sun: #c84646;
  --sat: #3e6ca6;
  --font-ui: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-diary: 'Gowun Dodum', 'Pretendard', sans-serif;
  --font-serif: 'Gowun Batang', serif;
  --font-script: 'Caveat', cursive;
}

body[data-theme="leather"] {
  --cover-bg: #4b362a;
  --cover-bg-deep: #35251c;
  --cover-border: #684d3d;
  --accent: #b55a37;
}

body[data-theme="linen"] {
  --cover-bg: #8a7b68;
  --cover-bg-deep: #6b5e4e;
  --cover-border: #a39481;
  --accent: #8c5a3c;
}

body[data-theme="sage"] {
  --cover-bg: #455b4c;
  --cover-bg-deep: #2f4035;
  --cover-border: #5f7868;
  --accent: #46765c;
}

body[data-theme="midnight"] {
  --cover-bg: #283447;
  --cover-bg-deep: #1a2332;
  --cover-border: #3d4e69;
  --accent: #3b6396;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 터치스크린 300ms 탭 딜레이 제거 및 모바일/PC 즉각 반응 */
html,
body,
button,
a,
input,
select,
textarea,
.index-tab,
.cal-cell,
.hour-row,
.ruled-row,
.routine-item,
.cal-arrow,
.topbar-btn {
  touch-action: manipulation;
}

html, body {
  height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: radial-gradient(circle at 50% 25%, var(--desk-bg) 0%, var(--desk-bg-accent) 100%);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ===========================
   AUTH SCREEN (Closed Cover Modal)
   =========================== */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 14, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.auth-screen.hidden {
  display: none !important;
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
}
.auth-modal-close:hover {
  background: rgba(220, 50, 50, 0.85);
  transform: rotate(90deg);
}

.diary-cover-card {
  width: 100%;
  max-width: 430px;
  background: var(--cover-bg);
  border-radius: 14px 26px 26px 14px;
  padding: 14px;
  box-shadow:
    -8px 0 0 #33231a,
    0 24px 48px rgba(34, 23, 15, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.14);
  position: relative;
}

.cover-stitch {
  border: 1.5px dashed var(--cover-stitch);
  border-radius: 10px 20px 20px 10px;
  padding: 32px 28px 26px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
  color: #f8f2e9;
}

.cover-brand {
  text-align: center;
  margin-bottom: 24px;
}

.cover-year {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: #dfc8a9;
  margin-bottom: 6px;
}

.cover-brand h1 {
  font-family: var(--font-script);
  font-size: 54px;
  font-weight: 700;
  color: #f5dfb8;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.cover-brand-logo-img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.cover-brand p {
  font-family: var(--font-diary);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(248, 242, 233, 0.85);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.24);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  border: none;
  background: transparent;
  color: rgba(248, 242, 233, 0.72);
  padding: 9px 10px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-form {
  background: var(--paper);
  color: var(--ink);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.field input[type="text"],
.field input[type="password"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffefb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-bottom: 14px;
  cursor: pointer;
}

.auth-error {
  background: #fdf0ee;
  border: 1px solid #ecc6c1;
  color: #b43c32;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 12px;
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 9px;
  background: var(--cover-bg);
  color: #fdfbf6;
  font-size: 14.5px;
  font-weight: 700;
  transition: opacity 0.15s, transform 0.1s;
}

.auth-submit-btn:hover {
  opacity: 0.93;
}

.auth-submit-btn:active {
  transform: translateY(1px);
}

.cover-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: rgba(248, 242, 233, 0.65);
}

/* ===========================
   MAIN APP LAYOUT
   =========================== */
.app-screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.desk-topbar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-script);
  font-size: 28px;
  font-weight: 700;
  color: var(--cover-bg);
  letter-spacing: 0.5px;
}
.topbar-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.app-version-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(184, 93, 59, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  user-select: none;
}

.theme-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  background: rgba(255, 255, 255, 0.45);
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.theme-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.theme-dot:hover {
  transform: scale(1.18);
}
.theme-dot[data-set-theme="leather"] { background: #4b362a; }
.theme-dot[data-set-theme="linen"] { background: #8a7b68; }
.theme-dot[data-set-theme="sage"] { background: #455b4c; }
.theme-dot[data-set-theme="midnight"] { background: #283447; }

body[data-theme="leather"] .theme-dot[data-set-theme="leather"],
body[data-theme="linen"] .theme-dot[data-set-theme="linen"],
body[data-theme="sage"] .theme-dot[data-set-theme="sage"],
body[data-theme="midnight"] .theme-dot[data-set-theme="midnight"] {
  transform: scale(1.16);
  box-shadow: 0 0 0 2px var(--accent), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.save-indicator {
  font-size: 11.5px;
  font-weight: 600;
  color: #3d6b52;
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(61, 107, 82, 0.15);
  margin-left: 4px;
}

.user-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 45, 30, 0.12);
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.topbar-btn {
  border: 1px solid rgba(60, 45, 30, 0.13);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4.5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.topbar-btn:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(60, 45, 30, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.topbar-btn kbd {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom-width: 2px;
  color: var(--ink-muted);
}

.mobile-date-bar,
.mobile-bottom-nav {
  display: none;
}

/* ===========================
   OPEN TWO-PAGE DIARY SPREAD
   =========================== */
.diary-wrapper {
  flex: 1;
  min-height: 0;
  padding: 2px 90px 16px 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.diary-cover-frame {
  width: 100%;
  max-width: 1440px;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.09) 0%, transparent 55%),
    linear-gradient(145deg, var(--cover-bg) 0%, var(--cover-bg-deep) 100%);
  border: 2px solid var(--cover-border);
  border-radius: 22px;
  padding: 15px 16px;
  box-shadow:
    0 28px 60px rgba(24, 16, 10, 0.36),
    0 10px 24px rgba(24, 16, 10, 0.22),
    inset 0 1px 2px rgba(255, 255, 255, 0.24),
    inset 0 -3px 8px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: visible;
  display: flex;
  min-height: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* 가죽 커버 가장자리 스티치(박음질) 디테일 */
.diary-cover-frame::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1.5px dashed var(--cover-stitch);
  border-radius: 15px;
  pointer-events: none;
  z-index: 1;
}

.diary-spread {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  background: var(--paper);
  border-radius: 10px;
  /* 겹겹이 쌓인 실제 종이 단면(책배) 효과 */
  box-shadow:
    -2px 1px 0 #f6f1e6,
    -4px 2px 0 #e7dfd0,
    -6px 3px 0 #d5cbb8,
    2px 1px 0 #f6f1e6,
    4px 2px 0 #e7dfd0,
    6px 3px 0 #d5cbb8,
    0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.diary-page {
  background: var(--paper);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.left-page {
  background: linear-gradient(to right, #fdfbf6 0%, #fdfbf6 89%, #f6efe2 96%, #e7decb 100%);
  box-shadow:
    inset -14px 0 22px -12px rgba(55, 40, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.left-page-calendar-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.left-page-custom-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 4px;
}
.left-page-custom-view::-webkit-scrollbar {
  width: 6px;
}
.left-page-custom-view::-webkit-scrollbar-thumb {
  background: var(--line-strong, #cfc3b0);
  border-radius: 999px;
}

.right-page {
  background: linear-gradient(to left, #fdfbf6 0%, #fdfbf6 89%, #f6efe2 96%, #e7decb 100%);
  box-shadow:
    inset 14px 0 22px -12px rgba(55, 40, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Center Binder Spine (리얼 6공 바인더 금속 링 & 타공 홀) */
.diary-spine {
  background: linear-gradient(
    90deg,
    #dfd6c5 0%,
    #c6baa6 28%,
    #9e917d 50%,
    #c6baa6 72%,
    #dfd6c5 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 4;
  position: relative;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.18);
}

/* 상단 가름끈 (북마크 실크 리본) 디테일 */
.diary-spine::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 28px;
  background: linear-gradient(180deg, #942d23 0%, #bd4336 75%, #82241b 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.spine-ring {
  width: 28px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e2e2 24%, #9c9c9c 54%, #5e5e5e 85%, #c0c0c0 100%);
  box-shadow:
    0 3px 5px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
  position: relative;
}

.spine-ring::before,
.spine-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #3d332a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.85);
  z-index: -1;
}
.spine-ring::before { left: -3px; }
.spine-ring::after  { right: -3px; }

/* ===========================
   RIGHT PROTRUDING INDEX TABS
   =========================== */
.index-tabs {
  position: absolute;
  top: 52px;
  bottom: 14px;
  left: calc(100% - 14px);
  width: 108px;
  padding: 2px 6px 6px 0;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  z-index: 5;
  overflow-y: auto;
  scrollbar-width: none;
}
.index-tabs::-webkit-scrollbar {
  display: none;
}

.index-tab {
  border: 1px solid rgba(45, 35, 25, 0.16);
  border-left: none;
  border-radius: 0 9px 10px 0;
  padding: 5px 10px 5px 14px;
  min-height: 29px;
  width: 89px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--font-diary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.25px;
  color: #322a23;
  white-space: nowrap;
  box-shadow:
    inset 4px 0 6px -3px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    3px 2px 6px rgba(24, 16, 10, 0.18);
  transition:
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.16s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.16s ease;
  user-select: none;
}

.index-tab:hover {
  width: 95px;
}

.index-tab:active {
  transform: scale(0.97) translateX(1px);
  transition: transform 0.04s ease;
}

.index-tab.active {
  background: var(--paper) !important;
  color: var(--accent);
  width: 100px;
  padding-left: 17px;
  border-right: 3.5px solid var(--accent);
  z-index: 6;
  font-weight: 800;
  font-size: 12.5px;
  box-shadow:
    inset 2px 0 3px -1px rgba(0, 0, 0, 0.06),
    4px 3px 12px rgba(24, 16, 10, 0.24);
}

.index-tab[data-tab-color="schedule"]    { background: #f4e2c2; }
.index-tab[data-tab-color="projects"]    { background: #d9e7db; }
.index-tab[data-tab-color="ledger"]      { background: #f2d6d6; }
.index-tab[data-tab-color="diary"]       { background: #d8e4f2; }
.index-tab[data-tab-color="biz-ledger"]  { background: #f7ddc2; }
.index-tab[data-tab-color="clients"]     { background: #dae7f5; }
.index-tab[data-tab-color="tax"]         { background: #f6dbe0; }
.index-tab[data-tab-color="loans"]       { background: #f7e6ce; }
.index-tab[data-tab-color="inventory"]   { background: #d3e9dc; }
.index-tab[data-tab-color="staff"]       { background: #e6ddf4; }
.index-tab[data-tab-color="sage"]        { background: #d3e4d6; }
.index-tab[data-tab-color="rose"]        { background: #f1d3d6; }
.index-tab[data-tab-color="amber"]       { background: #f4dfba; }
.index-tab[data-tab-color="sky"]         { background: #cfe2f2; }
.index-tab[data-tab-color="lavender"]    { background: #e1d7f0; }

/* 탭 색상 변경 트리거 버튼 & 타이틀 */
.index-tab {
  position: relative;
}

.index-tab-title {
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}

.tab-color-trigger {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  cursor: pointer;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  line-height: 1;
  z-index: 5;
}

.index-tab:hover .tab-color-trigger {
  opacity: 0.85;
}

.index-tab.active .tab-color-trigger {
  opacity: 0.75;
}

.tab-color-trigger:hover {
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.18);
  background: #fff;
}

/* 탭 색상 변경 팝오버 (Tab Color Picker Popover) */
.tab-color-popover {
  position: fixed;
  z-index: 10000;
  background: #fffaf0;
  border: 1.5px solid var(--line-strong, #c8b89e);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-diary, inherit);
  animation: popoverFadeIn 0.14s ease-out;
}

.tab-color-popover.hidden {
  display: none !important;
}

@keyframes popoverFadeIn {
  from { opacity: 0; transform: scale(0.96) translateX(4px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

.tab-color-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink);
}

.tab-color-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 4px 0;
}

.tab-color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  position: relative;
}

.tab-color-swatch:hover {
  transform: scale(1.18);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  border-color: rgba(0, 0, 0, 0.4);
}

.tab-color-swatch.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px;
  color: #2c241e;
  font-weight: 800;
}

.tab-color-custom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11.5px;
}

.tab-color-custom-row input[type="color"] {
  width: 28px;
  height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: none;
}

.index-tab.add-tab-btn {
  min-height: 30px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-muted);
}

/* Tab Drag & Drop Styles (순서 변경 & 일정 최상단 고정) */
.index-tab[data-draggable-tab="true"] {
  cursor: grab;
  touch-action: none;
}
.index-tab[data-draggable-tab="true"]:active {
  cursor: grabbing;
}
.index-tab[data-tab-id="schedule"] {
  cursor: pointer !important;
}
.index-tab.add-tab-btn {
  cursor: pointer;
}

.index-tab.is-dragging {
  opacity: 0.65;
  transform: scale(1.05) translateX(6px) !important;
  box-shadow: 4px 6px 14px rgba(0, 0, 0, 0.35) !important;
  z-index: 25 !important;
  transition: none !important;
}

.index-tab.drag-over-top {
  position: relative;
}
.index-tab.drag-over-top::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.85);
  z-index: 30;
  pointer-events: none;
}

.index-tab.drag-over-bottom {
  position: relative;
}
.index-tab.drag-over-bottom::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 4px;
  background: #2563eb;
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.85);
  z-index: 30;
  pointer-events: none;
}

/* ===========================
   LEFT PAGE: CALENDAR + 4 MEMOS
   =========================== */
.calendar-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 6px;
}

.cal-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cal-month-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  min-width: 34px;
}

.cal-year-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-year-select {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-alt, #faf6ee);
  border: 1px solid var(--line-strong, #d8ccba);
  border-radius: 5px;
  padding: 1px 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}
.cal-year-select:hover,
.cal-year-select:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(180, 110, 60, 0.15);
}

.cal-month-eng {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-muted);
}

.cal-month-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cal-month-bar::-webkit-scrollbar {
  display: none;
}

.cal-month-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft, #706253);
  font-family: var(--font-diary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 4.5px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.15s ease;
}
.cal-month-btn:hover {
  background: rgba(184, 93, 59, 0.08);
  color: var(--accent, #b85d3b);
}
.cal-month-btn.active {
  background: var(--accent, #b85d3b);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(184, 93, 59, 0.3);
}

.cal-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cal-nav-btn,
.cal-today-btn {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12.5px;
  color: var(--ink);
}
.cal-nav-btn:hover,
.cal-today-btn:hover {
  background: var(--paper-alt);
}

.cal-nav-btn:active,
.cal-today-btn:active,
.routine-toggle-btn:active,
.btn-primary:active,
.btn-secondary:active,
.hl-btn:active,
.row-del-btn:active {
  transform: scale(0.96);
  transition: transform 0.04s ease;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--ink-muted);
  padding: 3px 0 5px;
  border-bottom: 1px solid var(--line-strong);
}
.calendar-weekdays .sun { color: var(--sun); }
.calendar-weekdays .sat { color: var(--sat); }

.calendar-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  border-left: 1px solid var(--line-color);
  border-bottom: 1px solid var(--line-color);
}

.cal-cell {
  border-right: 1px solid var(--line-color);
  border-top: 1px solid var(--line-color);
  padding: 3px 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.12s;
  position: relative;
  touch-action: manipulation;
  user-select: none;
}

.cal-cell:hover {
  background: rgba(184, 93, 59, 0.05);
}

.cal-cell:active {
  transform: scale(0.985);
  transition: transform 0.04s ease;
}

.cal-cell.other-month {
  opacity: 0.33;
  background: rgba(0, 0, 0, 0.012);
}

.cal-cell.selected {
  background: #fcf3e6;
  box-shadow: inset 0 0 0 1.6px var(--accent);
  transition: none !important;
}

.cal-cell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}

.cal-cell.sun .cal-day-num { color: var(--sun); }
.cal-cell.sat .cal-day-num { color: var(--sat); }

.cal-cell.is-today .cal-day-num {
  background: var(--accent);
  color: #fff !important;
  border-radius: 99px;
  padding: 1px 6px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(181, 90, 55, 0.3);
}

/* 따뜻한 크림골드 캘린더 일정 하이라이트 및 색연필 동그라미 */
.cal-cell.has-cal-event {
  background: #fef6be !important;
  border-color: #eab308 !important;
}

.cal-cell.has-cal-event:hover {
  background: #fef08a !important;
}

.cal-cell.has-cal-event.selected {
  background: #fef08a !important;
  box-shadow: inset 0 0 0 2px #d97706;
}

.cal-cell.has-cal-event .cal-day-num {
  color: #78350f !important;
  font-weight: 800 !important;
  position: relative;
  z-index: 2;
}

.cal-cell.has-cal-event.sun .cal-day-num {
  color: #b91c1c !important;
}

.cal-pencil-circle {
  position: absolute;
  top: 1px;
  left: 2px;
  right: 2px;
  width: calc(100% - 4px);
  height: 52px;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(180, 83, 9, 0.25));
}

.cal-event-line {
  background: rgba(254, 240, 138, 0.85);
  color: #78350f !important;
  font-weight: 700 !important;
  border-radius: 3px;
  padding: 0 3px;
  position: relative;
  z-index: 2;
}

.cal-event-today-row {
  background: #fef9c3;
  border-left: 3.5px solid #f59e0b;
  border-radius: 4px;
  padding: 5px 8px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cal-badges {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}

.cal-lines {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  overflow: hidden;
  flex: 1;
}

.cal-mini-line {
  font-family: var(--font-diary);
  font-size: 10px;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b433b;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.07);
}

.cal-mini-line.done {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.cal-mini-line.sched {
  color: #7c4d2b;
}

.cal-mini-ledger {
  font-size: 9.5px;
  color: #b44b3e;
  text-align: right;
  margin-top: auto;
  font-weight: 600;
}

/* 4 Fixed Memo Boxes at Bottom of Left Page */
.memo-grid {
  margin-top: 10px;
  height: 152px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.memo-grid.hidden,
.right-pen-tray.hidden {
  display: none !important;
}

body[data-font-scale="small"] .diary-spread {
  zoom: 0.94;
}

body[data-font-scale="large"] .diary-spread {
  zoom: 1.07;
}

.memo-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px 4px 10px 4px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow:
    0 3px 6px rgba(45, 35, 25, 0.08),
    inset 0 8px 12px -8px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.memo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(45, 35, 25, 0.13);
}

.memo-card[data-color="cream"]    { background: #fcf8eb; }
.memo-card[data-color="rose"]     { background: #fdf1f2; }
.memo-card[data-color="mint"]     { background: #eff8f2; }
.memo-card[data-color="sky"]      { background: #eff5fb; }
.memo-card[data-color="lavender"] { background: #f5f1fb; }

.memo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.13);
  padding-bottom: 3px;
  margin-bottom: 4px;
  gap: 4px;
}

.memo-title-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  cursor: text;
}

.memo-title-input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 1px 4px;
  background: transparent;
  font-family: var(--font-diary);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  outline: none;
  transition: all 0.15s ease;
  cursor: text;
}

.memo-title-input:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.15);
}

.memo-title-input:focus {
  background: #ffffff;
  border-color: #795548;
  box-shadow: 0 0 0 2px rgba(121, 85, 72, 0.18);
}

.memo-title-edit-icon {
  font-size: 10px;
  color: var(--muted, #8c7b6d);
  opacity: 0.35;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  flex-shrink: 0;
}

.memo-title-wrap:hover .memo-title-edit-icon,
.memo-title-input:focus + .memo-title-edit-icon {
  opacity: 0.85;
  color: #795548;
  transform: scale(1.1);
}

.memo-color-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.memo-color-btn:hover {
  transform: scale(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.memo-textarea {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-family: var(--font-diary);
  font-size: 11.5px;
  line-height: 18px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 17px,
    rgba(0, 0, 0, 0.06) 18px
  );
}

/* ===========================
   RIGHT PAGE INNER VIEWS
   =========================== */
.right-page-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- TAB 1: 일정 (Today + Time Table 2-Column Split) --- */
.schedule-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 0;
}

.today-col {
  padding-right: 14px;
  border-right: 1.5px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.today-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.today-script {
  font-family: var(--font-script);
  font-size: 34px;
  font-weight: 700;
  line-height: 0.95;
  color: var(--ink);
  flex-shrink: 0;
}

.today-date-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
}

.today-date-main {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.today-date-sub .today-lunar {
  font-family: var(--font-diary);
  font-size: 11.5px;
  font-weight: normal;
  color: var(--ink-muted);
  margin-top: 1px;
  white-space: nowrap;
}

.today-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 6px;
  font-size: 12px;
}

.today-check-label {
  font-weight: 700;
  color: var(--ink);
}

.routine-toggle-btn {
  border: 1px solid var(--line-strong);
  background: #fffaf0;
  border-radius: 6px;
  padding: 2px 8px;
  font-family: var(--font-diary);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}
.routine-toggle-btn:hover,
.routine-toggle-btn.open {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Routine Manager Drawer (반복메뉴) */
.routine-drawer {
  background: #faf5ea;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 12px;
}

.routine-add-row {
  display: flex;
  gap: 5px;
  margin-bottom: 6px;
}

.routine-add-row input {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}

.day-chips {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.day-chip {
  flex: 1;
  padding: 3px 0;
  font-size: 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 5px;
  color: var(--ink-muted);
}
.day-chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}

.routine-manage-list {
  max-height: 110px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.routine-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  padding: 3px 4px;
  background: rgba(255,255,255,0.65);
  border-radius: 4px;
}

/* Quick Todo Add + Ruled Lines (작성된 할 일 목록 바로 아래 다음 줄에 자연스럽게 배치) */
.todo-add-form {
  min-height: 31px;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 2px;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.todo-add-form:focus-within {
  background: rgba(184, 93, 59, 0.04);
}

.todo-add-form .add-icon {
  color: var(--accent, #b85d3b);
  font-weight: 700;
  font-size: 15px;
  width: 18px;
  text-align: center;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.todo-add-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-diary);
  font-size: 13.5px;
  outline: none;
  color: var(--ink);
}

.todo-add-form input::placeholder {
  color: var(--ink-muted);
  font-size: 12.5px;
}

.todo-ruled-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.ruled-row {
  min-height: 31px;
  border-bottom: 1px solid var(--line-color);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 2px;
  font-family: var(--font-diary);
  font-size: 13.5px;
}

.ruled-row.routine-row {
  background: rgba(245, 223, 184, 0.18);
}

.drag-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
  padding: 1px 3px 1px 1px;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.drag-check-wrap:hover {
  background: rgba(0, 0, 0, 0.06);
}
.drag-check-wrap:active {
  cursor: grabbing;
}

.drag-grip {
  font-size: 11px;
  color: var(--ink-soft, #8c7b6d);
  opacity: 0.3;
  letter-spacing: -1.5px;
  line-height: 1;
  cursor: grab;
  transition: opacity 0.15s ease, color 0.15s ease;
  user-select: none;
}
.drag-check-wrap:hover .drag-grip,
.ruled-row:hover .drag-grip {
  opacity: 0.85;
  color: var(--accent, #9e5b32);
}

.ruled-row.is-dragging {
  opacity: 0.55;
  background: #fbf3e4 !important;
  box-shadow: 0 4px 14px rgba(45, 35, 25, 0.2);
  border-radius: 4px;
}

.ruled-row.drag-over-top {
  border-top: 2.5px solid var(--accent, #9e5b32) !important;
}

.ruled-row.drag-over-bottom {
  border-bottom: 2.5px solid var(--accent, #9e5b32) !important;
}

.diary-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.routine-tag {
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.todo-text-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-diary);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.todo-text-input.done,
.routine-label.done {
  text-decoration: line-through;
  color: var(--ink-soft);
}

.routine-label {
  flex: 1;
  cursor: pointer;
}

.row-del-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 0 4px;
  opacity: 0.45;
}
.ruled-row:hover .row-del-btn {
  opacity: 1;
  color: #c44c3e;
}

/* Right Column: Hourly Time Table */
.timetable-col {
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.timetable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 2px;
}

.timetable-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}

.hour-range-btn {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 11px;
  color: var(--ink-muted);
}

.timetable-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.hour-row {
  display: flex;
  align-items: center;
  min-height: 29px;
  border-bottom: 1px solid var(--line-color);
  padding: 1px 2px;
  gap: 6px;
  position: relative;
}

.hour-row.is-current-hour {
  background: rgba(225, 29, 72, 0.04);
}

.hour-row[data-hl="yellow"],
.ruled-row[data-hl="yellow"] { background: rgba(252, 233, 136, 0.36); }
.hour-row[data-hl="pink"],
.ruled-row[data-hl="pink"]   { background: rgba(246, 187, 198, 0.34); }
.hour-row[data-hl="mint"],
.ruled-row[data-hl="mint"]   { background: rgba(182, 232, 203, 0.36); }
.hour-row[data-hl="blue"],
.ruled-row[data-hl="blue"]   { background: rgba(185, 216, 246, 0.36); }

.hour-num {
  position: relative;
  width: 28px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-align: right;
  padding-right: 6px;
  border-right: 1px solid var(--line-strong);
  flex-shrink: 0;
  user-select: none;
}

.hour-num.noon {
  color: var(--accent);
}

.hour-num.is-now {
  color: #dc2626 !important;
  font-weight: 800;
}

.hour-val {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hour-pencil-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(225, 29, 72, 0.3));
}

.hour-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-diary);
  font-size: 12.5px;
  outline: none;
  min-width: 0;
}

.hl-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  opacity: 0.35;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.hour-row:hover .hl-btn,
.hour-row:not([data-hl=""]) .hl-btn,
.ruled-row:hover .hl-btn,
.ruled-row:not([data-hl=""]) .hl-btn {
  opacity: 0.95;
}
.hl-btn:hover {
  transform: scale(1.25);
}
.hour-row[data-hl="yellow"] .hl-btn,
.ruled-row[data-hl="yellow"] .hl-btn { background: #f4d44d; border-color: #d4b42d; opacity: 1; }
.hour-row[data-hl="pink"] .hl-btn,
.ruled-row[data-hl="pink"] .hl-btn   { background: #ec94a7; border-color: #cc7487; opacity: 1; }
.hour-row[data-hl="mint"] .hl-btn,
.ruled-row[data-hl="mint"] .hl-btn   { background: #7dd1a0; border-color: #5db180; opacity: 1; }
.hour-row[data-hl="blue"] .hl-btn,
.ruled-row[data-hl="blue"] .hl-btn   { background: #80b7eb; border-color: #6097cb; opacity: 1; }

.hour-row .row-del-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 0 4px;
  opacity: 0.3;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.hour-row:hover .row-del-btn {
  opacity: 0.75;
}
.hour-row .row-del-btn:hover {
  opacity: 1;
  color: #c44c3e;
}

/* ===========================
   COMMON SECTION HEADER
   =========================== */
.page-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 10px;
  gap: 8px;
}

.page-sec-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-sec-title h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
}

.page-sec-title span {
  font-size: 12px;
  color: var(--ink-muted);
}

.pill-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mini-pill-btn {
  border: 1px solid var(--line-strong);
  background: #fffdf8;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ink-muted);
}
.mini-pill-btn.active,
.mini-pill-btn.primary {
  background: var(--cover-bg);
  color: #fff;
  border-color: var(--cover-bg);
}

/* ===========================
   TAB 2: PROJECTS
   =========================== */
.projects-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}

.project-create-box {
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.proj-form-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.proj-form-row input,
.proj-form-row select {
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 12.5px;
}

.project-card {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fffefb;
  padding: 11px 13px;
  border-left: 5px solid #d9a760;
}
.project-card[data-color="sage"]     { border-left-color: #77a885; }
.project-card[data-color="rose"]     { border-left-color: #d4828b; }
.project-card[data-color="sky"]      { border-left-color: #6f9ec9; }
.project-card[data-color="lavender"] { border-left-color: #9b84c4; }

.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.project-card-title {
  font-family: var(--font-diary);
  font-size: 15px;
  font-weight: 700;
}

.project-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 7px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: #ebe5d8;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s;
}

.proj-task-list {
  margin: 6px 0;
  border-top: 1px dashed var(--line-color);
}

.proj-task-list .ruled-row {
  align-items: flex-start;
  padding: 5px 2px;
  height: auto;
}

.proj-task-list .ruled-row .diary-checkbox {
  margin-top: 3px;
  flex-shrink: 0;
}

.proj-task-list .ruled-row .row-del-btn {
  margin-top: 1px;
  flex-shrink: 0;
}

.proj-task-list .rich-editable.rich-singleline,
.ruled-row .todo-text-input.rich-editable.rich-singleline,
.ruled-row [data-ctab-item-edit].rich-editable.rich-singleline {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: visible;
  overflow-y: visible;
  line-height: 1.48;
  padding: 1px 0 2px 0;
  min-width: 0;
}

.proj-memo-input {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  background: #fcfaf4;
  font-family: var(--font-diary);
  font-size: 12px;
  resize: vertical;
  min-height: 44px;
}

/* Project Left-Page Index Cards (목차 카드) */
.proj-index-card {
  border: 1px solid var(--line-strong, #e2d8c3);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  border-left: 5px solid #d9a760;
  transition: all 0.15s ease;
  user-select: none;
}
.proj-index-card:hover {
  background: #fdfbf7;
  border-color: var(--accent);
  transform: translateX(2px);
}
.proj-index-card.selected {
  background: rgba(180, 110, 60, 0.08);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(180, 110, 60, 0.16);
}
.proj-index-card[data-color="sage"]     { border-left-color: #77a885; }
.proj-index-card[data-color="rose"]     { border-left-color: #d4828b; }
.proj-index-card[data-color="sky"]      { border-left-color: #6f9ec9; }
.proj-index-card[data-color="lavender"] { border-left-color: #9b84c4; }
.proj-index-card[data-color="amber"]    { border-left-color: #d9a760; }

.proj-index-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.98);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}
.proj-index-card.drag-over-top {
  border-top: 2.5px solid var(--accent, #b46e3c) !important;
}
.proj-index-card.drag-over-bottom {
  border-bottom: 2.5px solid var(--accent, #b46e3c) !important;
}

.project-card.single-focus {
  border-width: 2px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

/* ===========================
   TAB 3: LEDGER (가계부)
   =========================== */
.ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.sum-card {
  background: var(--paper-alt);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 8px 10px;
}

.sum-card .lbl {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 2px;
}

.sum-card .val {
  font-size: 15px;
  font-weight: 700;
}
.sum-card.inc .val { color: #2d7d59; }
.sum-card.exp .val { color: #c0483b; }

.ledger-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  background: var(--paper-alt);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-color);
}

.ledger-form select,
.ledger-form input,
.biz-form select,
.biz-form input {
  padding: 5px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 11.5px;
  min-width: 0;
}

.ledger-form-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.ledger-form-row .ledger-inp-date { width: 130px; flex-shrink: 0; }
.ledger-form-row .ledger-inp-type { width: 85px; flex-shrink: 0; }
.ledger-form-row .ledger-inp-cat { width: 85px; flex-shrink: 0; }
.ledger-form-row .ledger-inp-method { width: 75px; flex-shrink: 0; }
.ledger-form-row .ledger-inp-title { flex: 1.5; min-width: 90px; }
.ledger-form-row .ledger-inp-amount { width: 110px; flex-shrink: 1; text-align: right; min-width: 80px; }
.ledger-form-row .ledger-inp-btn { flex-shrink: 0; }
.ledger-form-row .ledger-inp-cancel { flex-shrink: 0; }

.ledger-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ledger-row {
  display: grid;
  grid-template-columns: 46px 72px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line-color);
  font-family: var(--font-diary);
  font-size: 12.5px;
  transition: background 0.12s;
}
.ledger-row:hover {
  background: rgba(184, 93, 59, 0.04);
}

.cat-badge {
  font-size: 11px;
  background: var(--paper-alt);
  border: 1px solid var(--line-color);
  border-radius: 5px;
  padding: 1px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amt-inc { color: #2d7d59; font-weight: 700; }
.amt-exp { color: #c0483b; font-weight: 700; }

/* ===========================
   TAB 4: DIARY (일기장)
   =========================== */
.diary-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px;
  background: var(--paper-alt);
  border-radius: 8px;
  margin-bottom: 8px;
}

.stamp-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stamp-btn {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 13px;
  opacity: 0.55;
}
.stamp-btn.active {
  opacity: 1;
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.diary-title-line {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--line-strong);
  background: transparent;
  padding: 6px 2px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  outline: none;
  margin-bottom: 4px;
}

.ruled-paper-textarea,
.ruled-paper-editor {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-family: var(--font-diary);
  font-size: 14.5px;
  line-height: 30px;
  padding: 2px 2px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 29px,
    var(--line-color) 30px
  );
  background-attachment: local;
}

.ruled-paper-editor {
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
  min-height: 240px;
}

.ruled-paper-editor:empty::before,
.rich-editable[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: var(--ink-soft);
  pointer-events: none;
}

.rich-editable {
  outline: none;
  cursor: text;
}

.rich-editable.rich-singleline {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  line-height: 22px;
  padding: 2px 0 3px 0;
}

.rich-editable.rich-singleline::-webkit-scrollbar {
  display: none;
}

.memo-textarea.rich-editable,
.proj-memo-input.rich-editable {
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 아날로그 붉은 물결 밑줄 · 일반 밑줄 · 굵게 · 4색 형광펜 서식 */
.rt-wavy-red {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #e11d48;
  text-decoration-thickness: 1.8px;
  text-underline-offset: 3.5px;
  text-decoration-skip-ink: none;
}

.rt-underline,
.ruled-paper-editor u,
.rich-editable u {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #2c1d14;
  text-decoration-thickness: 1.8px;
  text-underline-offset: 3.5px;
}

.ruled-paper-editor b,
.ruled-paper-editor strong,
.rich-editable b,
.rich-editable strong {
  font-weight: 800;
  color: #1a0f07;
}

.rt-hl {
  color: inherit;
  padding: 1px 2px;
  border-radius: 3px;
  background: linear-gradient(transparent 20%, rgba(253, 224, 71, 0.68) 20%, rgba(253, 224, 71, 0.68) 88%, transparent 88%);
}
.rt-hl[data-hl="yellow"] {
  background: linear-gradient(transparent 20%, rgba(253, 224, 71, 0.68) 20%, rgba(253, 224, 71, 0.68) 88%, transparent 88%);
}
.rt-hl[data-hl="pink"] {
  background: linear-gradient(transparent 20%, rgba(249, 168, 212, 0.65) 20%, rgba(249, 168, 212, 0.65) 88%, transparent 88%);
}
.rt-hl[data-hl="mint"] {
  background: linear-gradient(transparent 20%, rgba(134, 239, 172, 0.65) 20%, rgba(134, 239, 172, 0.65) 88%, transparent 88%);
}
.rt-hl[data-hl="blue"] {
  background: linear-gradient(transparent 20%, rgba(147, 197, 253, 0.68) 20%, rgba(147, 197, 253, 0.68) 88%, transparent 88%);
}

/* 우측 하단(+ 탭 아래) 필기구 트레이 */
.right-pen-tray {
  margin-top: 8px;
  background: #fdfaf3;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-left: none;
  border-radius: 0 10px 10px 0;
  padding: 7px 7px 7px 13px;
  width: 96px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow:
    inset 4px 0 5px -2px rgba(0, 0, 0, 0.16),
    3px 3px 8px rgba(0, 0, 0, 0.26);
  user-select: none;
}

.pen-tray-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #6b5744;
  text-align: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  padding-bottom: 3px;
  letter-spacing: -0.3px;
}

.pen-tray-btn {
  border: 1px solid #d6c7b2;
  background: #fff;
  border-radius: 6px;
  padding: 4px 4px;
  font-family: var(--font-diary);
  font-size: 11px;
  font-weight: 700;
  color: #2c1d14;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease;
}

.pen-tray-btn:hover {
  background: #fffbeb;
  border-color: #b45309;
  transform: translateX(2px);
}

.pen-tray-btn.wavy-btn {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

.pen-tray-btn.wavy-btn .wavy-lbl {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: #e11d48;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.pen-tray-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.pen-tray-hl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5efe2;
  padding: 4px 5px;
  border-radius: 6px;
  border: 1px solid #e2d7c3;
}

.pen-hl-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  cursor: pointer;
  padding: 0;
  transition: transform 0.12s ease;
}
.pen-hl-dot:hover {
  transform: scale(1.22);
}
.pen-hl-dot.yellow { background: #fde047; }
.pen-hl-dot.pink   { background: #f9a8d4; }
.pen-hl-dot.mint   { background: #86efac; }
.pen-hl-dot.blue   { background: #93c5fd; }

/* 노트/일기 상단 인라인 필기구 툴바 */
.note-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  background: var(--paper-alt);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 8px;
  margin-bottom: 6px;
}

.note-rich-toolbar .toolbar-hint {
  font-size: 11px;
  color: var(--ink-muted);
  margin-right: 4px;
}

.note-tool-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.note-tool-btn:hover {
  background: #fffbeb;
  border-color: var(--accent);
}
.note-tool-btn.wavy {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}
.note-tool-btn.wavy span {
  text-decoration: underline wavy #e11d48 1.5px;
  text-underline-offset: 2px;
}

.diary-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-soft);
  padding-top: 4px;
}

.diary-archive-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.archive-card {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffefb;
  cursor: pointer;
}
.archive-card:hover {
  border-color: var(--accent);
}

/* ===========================
   MODALS
   =========================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 19, 14, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.modal-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  margin-bottom: 14px;
}

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.radio-card {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: #fff;
}

.color-swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--sw);
}
.swatch.active {
  border-color: var(--ink);
  transform: scale(1.08);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.btn-primary,
.btn-secondary {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.btn-primary {
  border: none;
  background: var(--cover-bg);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-muted);
}

.empty-hint {
  text-align: center;
  padding: 28px 12px;
  font-family: var(--font-diary);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ===========================
   MOBILE RESPONSIVE (< 820px)
   =========================== */
@media (max-width: 820px) {
  .desk-topbar {
    padding: 0 12px;
    height: 42px;
  }
  .save-indicator {
    display: none;
  }

  .mobile-date-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-date-btn {
    border: none;
    background: transparent;
    font-family: var(--font-diary);
    font-size: 14px;
    font-weight: 700;
  }

  .icon-btn {
    border: 1px solid var(--line-strong);
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 16px;
  }

  .diary-wrapper {
    padding: 6px 8px 62px;
  }

  .diary-cover-frame {
    padding: 8px;
    border-radius: 12px;
  }

  .diary-spread {
    grid-template-columns: 1fr;
  }

  .diary-spine,
  .index-tabs {
    display: none;
  }

  body[data-mobile-pane="right"] .left-page {
    display: none;
  }
  body[data-mobile-pane="left"] .right-page {
    display: none;
  }

  /* 모바일 캘린더 상단바 2행 분할 (1행: 연/월 & 내비게이션, 2행: 1~12월 퀵 선택 바) */
  .calendar-header {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .cal-title-group {
    order: 1;
  }
  .cal-nav {
    order: 2;
    margin-left: auto;
  }
  .cal-month-bar {
    order: 3;
    width: 100% !important;
    justify-content: flex-start;
    padding: 3px 0 2px 0;
    gap: 4px;
  }
  .cal-month-btn {
    padding: 3px 6.5px;
    font-size: 11.5px;
  }

  .left-page,
  .right-page {
    padding: 12px;
    overflow-y: auto;
  }

  .memo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: 220px !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .memo-card,
  .memo-card-head,
  .memo-title-wrap,
  .memo-title-input,
  .memo-textarea {
    min-width: 0 !important;
  }

  .schedule-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .today-col {
    padding-right: 0;
    border-right: none;
    border-bottom: 1.5px solid var(--line-strong);
    padding-bottom: 12px;
  }

  .timetable-col {
    padding-left: 0;
  }

  /* 공통 섹션 헤더 모바일 줄바꿈 & 단어 잘림 방지 */
  .page-sec-head {
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  .page-sec-title {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-width: 0;
  }
  .page-sec-title h2 {
    white-space: nowrap !important;
    word-break: keep-all !important;
    font-size: 19px !important;
  }

  /* 거래처 상세 헤더 모바일 최적화 */
  .client-detail-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .client-detail-title-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
  }
  .client-name-block h2 {
    font-size: 19px !important;
    word-break: keep-all !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }
  .loan-summary-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* 모바일 상단바 데스크톱 단축키 숨김 (공간 확보) */
  .desk-topbar kbd,
  #search-trigger-btn kbd {
    display: none !important;
  }

  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--cover-bg);
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    z-index: 30;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
  }

  .mob-nav-btn {
    flex: 1 0 auto;
    min-width: 62px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0 8px;
  }

  .mob-nav-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
  }
}

/* ===================================================
   SMARTPHONE FORM & ROW RESPONSIVE GRID (화면 폭 640px 이하 스마트폰)
   =================================================== */
@media (max-width: 640px) {
  .page-sec-head .biz-subview-tabs {
    width: 100%;
    display: flex;
    gap: 6px;
    margin-top: 2px;
  }
  .page-sec-head .biz-subview-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 7px 8px;
    font-size: 12.5px;
  }

  /* 금전출납부 입력폼 모바일 반응형 그리드 */
  .biz-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-date {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-type {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-client {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-item {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-amount {
    grid-column: 1 / 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
  .biz-form-row .biz-inp-method {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
  .biz-form-row .biz-inp-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 38px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    justify-content: center !important;
  }
  .biz-form-row .biz-inp-cancel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 34px !important;
    justify-content: center !important;
  }

  /* 개인 가계부 입력폼 모바일 반응형 그리드 */
  .ledger-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-date {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-type {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-cat {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-method {
    grid-column: 2 / 3 !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-title {
    grid-column: 1 / 2 !important;
    width: 100% !important;
  }
  .ledger-form-row .ledger-inp-amount {
    grid-column: 2 / 3 !important;
    width: 100% !important;
    text-align: left !important;
  }
  .ledger-form-row .ledger-inp-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 38px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    justify-content: center !important;
  }
  .ledger-form-row .ledger-inp-cancel {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 34px !important;
    justify-content: center !important;
  }

  /* 금전출납부 거래내역 목록 모바일 슬림화 */
  .biz-ledger-row {
    grid-template-columns: 36px 40px minmax(55px, 80px) 1fr auto auto !important;
    gap: 4px !important;
    font-size: 11.5px !important;
    padding: 6px 2px !important;
  }
}

/* ===================================================
   BUSINESS & SELF-EMPLOYED TABS (자영업 5종 UI 스타일)
   =================================================== */

/* 1. 금전출납부 (Business Ledger) */
.biz-ledger-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.biz-sum-card {
  background: var(--paper-alt);
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 8px 10px;
}
.biz-sum-card .lbl {
  font-size: 11px;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 2px;
}
.biz-sum-card .val {
  font-size: 15px;
  font-weight: 700;
}
.biz-sum-card.sales .val { color: #2d7d59; }
.biz-sum-card.purchase .val { color: #c0483b; }
.biz-sum-card.profit .val { color: var(--accent); }

.biz-form {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  background: var(--paper-alt);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-color);
}
.biz-form select,
.biz-form input {
  padding: 6px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  min-width: 0;
}

.biz-form-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.biz-form-row .biz-inp-date { width: 130px; flex-shrink: 0; }
.biz-form-row .biz-inp-type { width: 85px; flex-shrink: 0; }
.biz-form-row .biz-inp-client { width: 110px; flex-shrink: 1; min-width: 80px; }
.biz-form-row .biz-inp-item { flex: 1.5; min-width: 90px; }
.biz-form-row .biz-inp-amount { width: 110px; flex-shrink: 1; text-align: right; min-width: 80px; }
.biz-form-row .biz-inp-method { width: 75px; flex-shrink: 0; }
.biz-form-row .biz-inp-btn { flex-shrink: 0; }
.biz-form-row .biz-inp-cancel { flex-shrink: 0; }

.biz-ledger-row {
  display: grid;
  grid-template-columns: 46px 54px 96px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-bottom: 1px solid var(--line-color);
  font-family: var(--font-diary);
  font-size: 12.5px;
  transition: background 0.12s;
}
.biz-ledger-row:hover {
  background: rgba(184, 93, 59, 0.04);
}
.biz-type-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
}
.biz-type-badge.sales { background: #e3f5eb; color: #1e7048; }
.biz-type-badge.purchase { background: #fde8e8; color: #b73229; }
.biz-type-badge.expense { background: #fef0db; color: #9c600c; }

/* 금전출납부 서브탭 & 기간바 & 거래처별 집계 */
.biz-subview-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  border-bottom: 1.5px solid var(--line-color);
  padding-bottom: 6px;
}
.biz-subview-btn {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.biz-subview-btn:hover {
  background: var(--paper-alt);
  color: var(--ink-base);
}
.biz-subview-btn.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.biz-period-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--paper-alt);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-color);
  margin-bottom: 10px;
}
.biz-client-sum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  align-content: start;
  gap: 10px;
  padding: 4px 2px;
  overflow-y: auto;
  max-height: calc(100vh - 290px);
}
.biz-client-sum-card {
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.12s, box-shadow 0.12s;
}
.biz-client-sum-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

/* 2. 거래처 관리 (Clients) */
.client-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  align-items: start;
  gap: 10px;
  padding-right: 2px;
}
.client-card {
  background: #fffefb;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.client-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line-color);
  padding-bottom: 4px;
}
.client-name {
  font-family: var(--font-diary);
  font-size: 14.5px;
  font-weight: 700;
}
.client-cat-tag {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--paper-alt);
  border: 1px solid var(--line-color);
}
.client-info-row {
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.client-unpaid-badge {
  margin-top: 4px;
  font-size: 11px;
  color: #c44c3e;
  font-weight: 600;
}

/* 3. 세무/정산 일정 (Tax) */
.tax-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-right: 2px;
}
.tax-card {
  background: #fffefb;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tax-card.done {
  opacity: 0.55;
  background: var(--paper-alt);
}
.tax-dday {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: #ffe3e3;
  color: #bd3124;
}

/* 4. 발주/재고 (Inventory) */
.inv-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}
.inv-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
  border-bottom: 1px solid var(--line-color);
  padding: 3px 2px;
  font-family: var(--font-diary);
  font-size: 13px;
}

/* 5. 직원/알바 (Staff) */
.staff-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  align-items: start;
  gap: 10px;
  padding-right: 2px;
}
.staff-card {
  background: #fffefb;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.staff-pay-highlight {
  background: #fdf5ea;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  justify-content: space-between;
}

/* 달력 공휴일 & 음력 태그 */
.cal-holiday-tag {
  font-size: 9.5px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.cal-holiday-tag.red {
  color: var(--sun);
  font-weight: 700;
}
.cal-holiday-tag.muted {
  color: var(--ink-muted);
}
.cal-lunar-tag {
  font-size: 9px;
  color: #8f8578;
  font-family: var(--font-diary);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.cal-cell.is-holiday .cal-day-num {
  color: var(--sun) !important;
}

/* 세무·공과금 연간 가이드 배너 */
.tax-guide-box {
  background: #fbf6ec;
  border: 1px solid #ebd7bf;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.tax-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.tax-guide-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #7d431a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tax-badge-now {
  background: #c2382c;
  color: #fff;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 99px;
  font-weight: 700;
}
.tax-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
}
.tax-guide-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tax-guide-card.active-month {
  border: 1.5px solid #c2382c;
  background: #fff5f5;
  box-shadow: 0 1px 4px rgba(194, 56, 44, 0.15);
}
.tax-month-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}
.tax-guide-card.active-month .tax-month-label {
  color: #c2382c;
}
.tax-guide-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.tax-guide-due {
  font-size: 10.5px;
  color: #a44838;
}
.tax-quick-add-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  text-align: right;
  cursor: pointer;
  padding: 0;
  margin-top: 3px;
  text-decoration: underline;
}

/* ============================================================
   LANDING / INTRODUCTION INDEX PAGE
   ============================================================ */
.landing-screen {
  background: #f7f4ed;
  color: #2b231d;
  min-height: 100vh;
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}
.landing-screen.hidden {
  display: none !important;
}

.landing-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 1. Landing Top Navigation */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 237, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.landing-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.landing-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.landing-logo-mark {
  font-size: 24px;
}
.landing-logo-text {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 700;
  color: #4a2f1b;
  letter-spacing: -0.5px;
  line-height: 1;
}
.landing-logo-sub {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  color: #9c6c49;
  background: rgba(156, 108, 73, 0.12);
  padding: 2px 7px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.landing-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}
.landing-menu a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #5c4e43;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.landing-menu a:hover {
  color: #a44838;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.landing-guest-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.landing-pill-btn {
  border: none;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.landing-pill-btn.ghost {
  background: transparent;
  color: #5c4e43;
}
.landing-pill-btn.ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #2b231d;
}
.landing-pill-btn.primary {
  background: #a44838;
  color: #fff;
  box-shadow: 0 2px 8px rgba(164, 72, 56, 0.28);
}
.landing-pill-btn.primary:hover {
  background: #8e3b2d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(164, 72, 56, 0.36);
}
.landing-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.landing-user-pill {
  font-size: 13px;
  font-weight: 700;
  color: #4a2f1b;
  background: #faeade;
  padding: 6px 12px;
  border-radius: 999px;
}

/* 2. Hero Section */
.landing-hero {
  padding: 56px 0 80px;
  text-align: center;
  background: radial-gradient(circle at 50% 15%, rgba(245, 223, 184, 0.52), transparent 72%);
}
.hero-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(164, 72, 56, 0.25);
  color: #a44838;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.hero-brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.hero-brand-logo-img {
  height: 76px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(44, 29, 20, 0.08));
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: #382516;
  line-height: 1.34;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero-title .highlight {
  color: #a44838;
  position: relative;
  display: inline-block;
}
.hero-desc {
  font-size: 16.5px;
  color: #5c4c3e;
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto 32px;
  word-break: keep-all;
}
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-btn {
  border: none;
  border-radius: 12px;
  padding: 14px 26px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-btn.primary {
  background: #a44838;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(164, 72, 56, 0.35);
}
.hero-btn.primary:hover {
  background: #893325;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(164, 72, 56, 0.45);
}
.hero-btn.secondary {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: #3f2f22;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.hero-btn.secondary:hover {
  background: #fdfaf5;
  border-color: #a44838;
  color: #a44838;
  transform: translateY(-2px);
}
.hero-btn.demo {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  color: #92400e;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}
.hero-btn.demo:hover {
  background: #fde68a;
  color: #78350f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.3);
}
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #5c4c3e;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}
.trust-icon {
  font-size: 15px;
}

/* 3. Hero Interactive Real Screen Showcase Frame */
.hero-preview-frame {
  max-width: 1100px;
  margin: 0 auto;
  background: #2c1d14;
  border-radius: 18px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 68px rgba(32, 20, 12, 0.38),
    0 4px 14px rgba(0, 0, 0, 0.22);
  text-align: left;
}
.hero-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.preview-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.preview-url-text {
  font-size: 12px;
  color: #fde68a;
  font-weight: 700;
  margin-right: auto;
}
.preview-live-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.preview-tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e6dec8;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preview-tab-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.preview-tab-btn.active {
  background: #f59e0b;
  border-color: #fde047;
  color: #1e130c;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.hero-preview-screen-wrap {
  background: #1c120c;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hero-preview-real-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.18s ease;
}
.hero-preview-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  flex-wrap: wrap;
}
.preview-caption-text {
  font-size: 13px;
  font-weight: 600;
  color: #fef3c7;
}
.preview-try-demo-btn {
  border: 1px solid #fde047;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.preview-try-demo-btn:hover {
  transform: translateY(-1px);
}
.hero-mockup-spread {
  display: flex;
  position: relative;
  background: #fdfaf4;
  border: 1px solid #d4cbb8;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-height: 380px;
}
.mockup-page {
  flex: 1;
  padding: 16px 20px;
  min-width: 0;
}
.mockup-spine {
  width: 24px;
  background: linear-gradient(to right, rgba(0,0,0,0.14), transparent, rgba(0,0,0,0.14));
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.m-ring {
  width: 10px;
  height: 22px;
  border: 2px solid #8e8071;
  border-radius: 6px;
  background: #cfc7bd;
}
.mockup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5a3d28;
  margin-bottom: 12px;
}
.mockup-month {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #3e281b;
  line-height: 1;
}
.mockup-head strong {
  font-size: 13px;
  color: #3e281b;
}
.mockup-head small {
  font-size: 10.5px;
  color: #7b6957;
}
.mockup-head .mockup-date {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #3e281b;
}
.mockup-head .mockup-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #a44838;
  background: #fce8e6;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Mockup Calendar */
.mockup-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  color: #7d6b59;
  margin-bottom: 4px;
}
.mockup-cal-weekdays .sun { color: #c2382c; }
.mockup-cal-weekdays .sat { color: #2d68c4; }
.mockup-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 12px;
}
.m-cell {
  background: #fff;
  border: 1px solid #e5ded2;
  border-radius: 4px;
  min-height: 38px;
  padding: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #33271d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.m-cell.sun { color: #c2382c; }
.m-cell.sat { color: #2d68c4; }
.m-cell.today {
  border: 1.5px solid #a44838;
  background: #fcf6ee;
}
.m-hol-tag {
  background: #fbe6e6;
  color: #c2382c;
  font-size: 8.5px;
  padding: 1px 2px;
  border-radius: 2px;
}
.m-lunar {
  color: #4b6e56;
  font-size: 8.5px;
}
.m-sales-tag {
  background: #e3f5eb;
  color: #1f6b3e;
  font-size: 8.5px;
  border-radius: 2px;
  padding: 1px 2px;
}

/* Mockup Memos */
.mockup-memos-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.m-box {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.m-box.b-cream { background: #fffbe6; }
.m-box.b-rose  { background: #fdeeee; }
.m-box.b-mint  { background: #eaf6ee; }
.m-box.b-sky   { background: #edf4fb; }

/* Mockup Right Page */
.mockup-todos-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.m-todo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 5px 8px;
  background: #fff;
  border-radius: 4px;
  border-bottom: 1px dashed #dcd4c5;
}
.m-todo.checked {
  color: #8c7e70;
  text-decoration: line-through;
}
.m-time-mini {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  padding: 4px 8px;
  background: #faf7f0;
  border-radius: 4px;
}
.m-time-row.highlight {
  background: #fed8b1;
  font-weight: 700;
}
.m-time-row span {
  font-size: 10px;
  font-weight: 700;
  color: #7b6957;
  font-family: monospace;
}

/* Mockup Tabs */
.mockup-tabs {
  position: absolute;
  right: -52px;
  top: 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m-tab {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 0 6px 6px 0;
  background: #e8ded1;
  color: #3a2b1f;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-left: none;
  box-shadow: 2px 1px 3px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.m-tab.active {
  background: #fff;
  color: #a44838;
  font-weight: 800;
  padding-left: 8px;
}
.m-tab.t-biz    { background: #fed8b1; }
.m-tab.t-client { background: #d7e6f8; }
.m-tab.t-tax    { background: #fcd5dc; }
.m-tab.t-inv    { background: #cce9d6; }
.m-tab.t-staff  { background: #e5daf7; }
.m-tab.t-proj   { background: #d6e5d8; }
.m-tab.t-ledg   { background: #f2cfcf; }
.m-tab.t-diary  { background: #d5e2f2; }

/* 4. Common Landing Sections */
.landing-section {
  padding: 90px 0;
}
.landing-section.bg-alt {
  background: #f0ebe0;
}
.sec-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 54px;
}
.sec-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #8c5b3b;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(140, 91, 59, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.sec-badge.biz {
  color: #1e6d47;
  background: rgba(30, 109, 71, 0.12);
}
.sec-badge.life {
  color: #285ea6;
  background: rgba(40, 94, 166, 0.12);
}
.sec-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  color: #362518;
  margin-bottom: 14px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  word-break: keep-all;
}
.sec-desc {
  font-size: 16px;
  color: #635345;
  word-break: keep-all;
}

/* 5. Core Feature Cards (4 Cards) */
.feat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.feat-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 30px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.feat-icon {
  font-size: 34px;
  margin-bottom: 16px;
}
.feat-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #362518;
  margin-bottom: 10px;
}
.feat-text {
  font-size: 14px;
  color: #69594b;
  line-height: 1.6;
}

/* 6. Business Showcase Grid (6 Items) */
.biz-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.biz-show-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-left: 4px solid #1e6d47;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease;
}
.biz-show-item:hover {
  transform: translateY(-3px);
}
.biz-show-icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.biz-show-item h4 {
  font-size: 16.5px;
  font-weight: 700;
  color: #274534;
  margin-bottom: 8px;
}
.biz-show-item p {
  font-size: 13.5px;
  color: #5c5249;
  line-height: 1.6;
}

/* 7. Life Planner Grid (4 Boxes) */
.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.life-box {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.life-box-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #285ea6;
  background: #ebf3fd;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.life-box h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: #302319;
  margin-bottom: 10px;
  line-height: 1.4;
}
.life-box p {
  font-size: 13.5px;
  color: #635548;
  line-height: 1.62;
}

/* 8. FAQ Accordion */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.faq-q {
  font-size: 15.5px;
  font-weight: 700;
  color: #332418;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 18px;
  color: #a44838;
  font-weight: 700;
  transition: transform 0.16s ease;
}
.faq-item[open] .faq-q::after {
  content: '−';
}
.faq-a {
  margin-top: 10px;
  font-size: 14px;
  color: #635345;
  line-height: 1.65;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 10px;
}

/* 8-A. Analog Pen & Closeup Showcase */
.landing-pen-demo-card {
  background: #fffdf9;
  border: 2px solid #d4c3aa;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 32px;
  box-shadow: 0 10px 26px rgba(44, 29, 20, 0.06);
}
.landing-pen-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px dashed #dcd0bd;
  margin-bottom: 16px;
}
.landing-pen-toolbar .pen-label {
  font-size: 13.5px;
  font-weight: 800;
  color: #5a3d28;
  margin-right: 4px;
}
.pen-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #d4c5b0;
  color: #3a291c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.pen-chip.wavy {
  background: #fff5f5;
  border-color: #fca5a5;
  color: #b91c1c;
  text-decoration: underline wavy #e03131;
  text-underline-offset: 3px;
}
.pen-chip.undo {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.landing-pen-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pen-ex-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-diary);
  font-size: 15.5px;
  color: #2c221a;
}
.pen-ex-row .ex-tag {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 800;
  background: #f3ece0;
  color: #6b523b;
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.demo-wavy-red {
  text-decoration: underline wavy #e03131;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 700;
}
.demo-hl-yellow {
  background: linear-gradient(transparent 35%, rgba(253, 224, 71, 0.7) 35%);
  padding: 0 4px;
  font-weight: 700;
}
.demo-hl-mint {
  background: linear-gradient(transparent 35%, rgba(110, 231, 183, 0.65) 35%);
  padding: 0 4px;
  font-weight: 700;
}

.landing-closeup-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.closeup-showcase-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.closeup-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #a44838;
  background: #fce8e6;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.closeup-card-head h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #2c1d14;
  margin-bottom: 8px;
}
.closeup-card-head p {
  font-size: 13.5px;
  color: #5c4e43;
  line-height: 1.6;
}
.closeup-img-box {
  background: #2c1d14;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.14);
}
.closeup-img-box img {
  width: 100%;
  height: auto;
  display: block;
}

/* 8-B. Pricing Section (Free Experience vs 1-Year 9,900 KRW) */
.pricing-cards-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 26px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 28px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.pricing-card.pro {
  background: linear-gradient(155deg, #2c1d14 0%, #1c120c 100%);
  color: #f8f2e9;
  border: 2px solid #f59e0b;
  box-shadow: 0 18px 42px rgba(44, 29, 20, 0.25);
}
.p-popular-ribbon {
  position: absolute;
  top: -13px;
  right: 24px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
}
.p-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0ebe0;
  color: #6b523b;
  margin-bottom: 10px;
}
.p-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.35);
}
.p-card-top h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.p-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.p-old-price {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
}
.p-price {
  font-size: 36px;
  font-weight: 900;
  color: #2c1d14;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 8px;
}
.p-price span {
  font-size: 15px;
  font-weight: 600;
  margin-left: 4px;
}
.p-price.gold {
  color: #fde047;
}
.p-price.gold span {
  color: #f8f2e9;
}
.p-sub {
  font-size: 13.5px;
  color: #78695b;
  margin-bottom: 20px;
}
.pricing-card.pro .p-sub {
  color: #e6dec8;
}
.p-feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 14px;
  line-height: 1.55;
}
.pricing-card.free .p-feat-list {
  color: #4a3b2c;
}
.pricing-card.pro .p-feat-list {
  color: #f1e9db;
}

/* 9. Bottom CTA Banner */
.landing-cta-banner {
  padding: 40px 0 80px;
}
.cta-banner-card {
  background: linear-gradient(135deg, #442d1e 0%, #2f1e14 100%);
  border-radius: 20px;
  padding: 54px 32px;
  text-align: center;
  color: #f7ede1;
  box-shadow: 0 16px 40px rgba(32, 20, 12, 0.25);
  position: relative;
  overflow: hidden;
}
.cta-banner-logo-img {
  height: 52px;
  width: auto;
  display: inline-block;
  margin-bottom: 14px;
}
.cta-banner-card h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.5px;
}
.cta-banner-card p {
  font-size: 16px;
  color: #dfcdb8;
  margin-bottom: 30px;
}
.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 10. Landing Footer */
.landing-footer {
  background: #2b1d14;
  color: #b39f8f;
  padding: 48px 0;
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  margin-bottom: 8px;
}
.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
}
.footer-left p {
  color: #9f8c7d;
  margin-bottom: 4px;
}
.footer-left small {
  color: #7d6b5e;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  text-decoration: none;
  color: #c9b8a8;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: #f5dfb8;
}
.footer-link-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f5dfb8;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.footer-link-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Responsive Styles for Landing */
@media (max-width: 900px) {
  .hero-brand-logo-img {
    height: 60px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 15px;
  }
  .landing-menu {
    display: none;
  }
  .landing-closeup-2col,
  .pricing-cards-wrap {
    grid-template-columns: 1fr;
  }
  .sec-title {
    font-size: 26px;
  }
  .cta-banner-card {
    padding: 42px 20px;
  }
  .cta-banner-card h2 {
    font-size: 25px;
  }
}
@media (max-width: 640px) {
  .pc-only {
    display: none;
  }
  .hero-trust-bar {
    gap: 14px;
  }
  .trust-item {
    font-size: 12px;
  }
  .hero-btn {
    width: 100%;
  }
  .hero-cta-group {
    flex-direction: column;
  }
}

/* ============================================================
   GLOBAL SEARCH MODAL (Spotlight Search)
   ============================================================ */
.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-pill:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
}
.search-pill kbd {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 24px;
}
.search-modal.hidden {
  display: none !important;
}

.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 660px;
  background: #fdfbf7;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(25, 17, 10, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: sModalIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sModalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}
.search-icon-mark {
  font-size: 20px;
  color: var(--ink-soft);
}
.global-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16.5px;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #2b231d;
  outline: none;
}
.global-search-input::placeholder {
  color: #a49688;
  font-weight: 500;
}
.search-close-btn {
  background: #f0ebe0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #635345;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.search-close-btn:hover {
  background: #e5ded2;
  color: #2b231d;
}

.search-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #f7f3ea;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: auto;
  scrollbar-width: none;
}
.search-filter-pills::-webkit-scrollbar {
  display: none;
}
.s-filter-pill {
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #fff;
  color: #665547;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}
.s-filter-pill:hover {
  border-color: #a44838;
  color: #a44838;
}
.s-filter-pill.active {
  background: #a44838;
  color: #fff;
  border-color: #a44838;
  font-weight: 700;
}

.search-results-area {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-hint-box {
  padding: 40px 20px;
  text-align: center;
  color: #6e5f52;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.search-hint-box p {
  font-size: 14px;
  line-height: 1.6;
}

.search-result-group-title {
  font-size: 11px;
  font-weight: 800;
  color: #8c7a6b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
  color: inherit;
}
.search-result-item:hover,
.search-result-item.selected {
  background: #fdf6ec;
  border-color: rgba(164, 72, 56, 0.35);
  box-shadow: 0 2px 8px rgba(164, 72, 56, 0.1);
  transform: translateX(2px);
}
.search-item-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}
.badge-todo    { background: #fed8b1; color: #7a4616; }
.badge-diary   { background: #d7e6f8; color: #1e4b85; }
.badge-biz     { background: #cce9d6; color: #1e6d47; }
.badge-client  { background: #e5daf7; color: #58339c; }
.badge-tax     { background: #fcd5dc; color: #9c253b; }
.badge-memo    { background: #f5dfb8; color: #6a491d; }

.search-item-body {
  flex: 1;
  min-width: 0;
}
.search-item-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}
.search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #30241a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-date {
  font-size: 11.5px;
  color: #8c7e70;
  white-space: nowrap;
  font-family: monospace;
}
.search-item-snippet {
  font-size: 12.5px;
  color: #635548;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-item-snippet mark {
  background: #fde8be;
  color: #923a10;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
}
.search-item-arrow {
  font-size: 12px;
  color: #a44838;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 4px;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  background: #f5f0e6;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11.5px;
  color: #7b6c5f;
}
.search-footer-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-footer-shortcuts kbd {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}
.search-count-label {
  font-weight: 700;
  color: #a44838;
}

/* ==========================================
   대출·이자 관리 (Loans & Repayment)
   ========================================== */
.loan-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .loan-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.loan-sum-card {
  background: var(--paper-alt, #faf6ee);
  border: 1px solid var(--line, #e2d9ca);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.loan-sum-card .lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft, #706253);
  letter-spacing: -0.2px;
}
.loan-sum-card .val {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--ink, #2d241e);
  letter-spacing: -0.3px;
}
.loan-sum-card.balance .val {
  color: #c0392b;
}
.loan-sum-card.payment .val {
  color: #d35400;
}
.loan-sum-card.rate .val {
  color: #2980b9;
}
.loan-sum-card.progress .val {
  color: #27ae60;
}
.loan-sum-card .sub {
  font-size: 10.5px;
  color: var(--ink-muted, #9b8c7e);
  margin-top: 1px;
}

.loan-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100% - 150px);
  padding-right: 4px;
}
.loan-card {
  background: #fffdfa;
  border: 1px solid var(--line, #e2d9ca);
  border-left: 4px solid var(--accent, #a44838);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.loan-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.loan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.loan-card-title-grp {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.loan-bank-badge {
  font-size: 11.5px;
  font-weight: 800;
  background: #f7ede2;
  color: #843b17;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ebd2bd;
}
.loan-title {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: 15px;
  color: var(--ink, #2d241e);
}
.loan-type-tag {
  font-size: 10.5px;
  color: var(--ink-soft, #706253);
  background: var(--paper-alt, #faf6ee);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line, #e2d9ca);
}
.loan-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.loan-exclude-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6e5e4f;
  cursor: pointer;
  background: #fbf7f0;
  border: 1px solid #e5dbcb;
  padding: 3px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}
.loan-exclude-toggle:hover {
  background: #f4ecde;
  border-color: #d8caba;
}
.loan-exclude-toggle input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.loan-exclude-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 2px 6px;
  border-radius: 4px;
}
.loan-card.is-excluded-total {
  border-left-color: #9ca3af;
  background: #faf8f5;
}
.loan-card-edit-box {
  background: #fffdf9;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.loan-account-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.loan-account-select-wrap select {
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.loan-edit-btn {
  background: #fff !important;
  border: 1px solid var(--line-strong, #cfc3b0) !important;
  color: var(--ink-soft, #706253) !important;
}
.loan-edit-btn:hover {
  background: #f5eedf !important;
  color: var(--ink, #2d241e) !important;
}

.loan-details-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: var(--paper-alt, #faf6ee);
  border: 1px solid var(--line, #e2d9ca);
  border-radius: 6px;
  padding: 8px 10px;
}
@media (max-width: 900px) {
  .loan-details-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 500px) {
  .loan-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.loan-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.loan-detail-item .dt-lbl {
  font-size: 10px;
  color: var(--ink-muted, #9b8c7e);
  font-weight: 600;
}
.loan-detail-item .dt-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #2d241e);
  font-family: var(--font-diary, sans-serif);
}
.loan-detail-item .dt-val.rate {
  color: #2980b9;
}
.loan-detail-item .dt-val.highlight {
  color: #d35400;
}
.loan-detail-item .dt-val.balance-text {
  color: #c0392b;
  font-weight: 800;
}

.loan-progress-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loan-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--ink-soft, #706253);
}
.loan-progress-track {
  width: 100%;
  height: 8px;
  background: #ede6d9;
  border-radius: 99px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.loan-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.loan-extra-row {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--ink-soft, #706253);
  padding-top: 4px;
  border-top: 1px dashed var(--line, #e2d9ca);
}

/* ==========================================
   거래처 상세 원장 (단가표, 사급 포장지, 납품 전표)
   ========================================== */
.client-card-action-bar {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line, #e2d9ca);
}
.client-open-ledger-btn {
  width: 100%;
  justify-content: center;
  font-weight: 700 !important;
}

.client-pkg-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #fbf7ee;
  border: 1px solid #ebdcc5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
@media (max-width: 800px) {
  .client-pkg-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}
.pkg-banner-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pkg-banner-col.highlight {
  background: #eef7ee;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbe9cb;
}
.pkg-banner-col .p-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted, #9b8c7e);
}
.pkg-banner-col .p-val {
  font-family: var(--font-serif, 'Noto Serif KR', serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink, #2d241e);
}
.pkg-banner-col .p-val.green {
  color: #1e824c;
}

.pkg-target-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: #fbeee6;
  color: #b3391b;
  border: 1px solid #f5cfbe;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.slip-entry-box {
  background: #fffdfa;
  border: 1.5px solid #d4c5af;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.slip-input-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}
.slip-input-table th {
  background: var(--paper-alt, #faf6ee);
  border-bottom: 1.5px solid var(--line-strong, #cfc3b0);
  padding: 6px 8px;
  font-size: 11.5px;
  color: var(--ink-soft, #706253);
}
.slip-input-table td {
  border-bottom: 1px solid var(--line, #e2d9ca);
  padding: 6px 8px;
}
.slip-input-table tr:hover {
  background: #fbf7ee;
}

.slip-calc-bar {
  background: #f5eedf;
  border: 1px solid #e0d4c1;
  border-radius: 6px;
  padding: 8px 12px;
}
.calc-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink, #2d241e);
  flex-wrap: wrap;
  gap: 10px;
}
.calc-metrics .calc-final {
  font-size: 14px;
  font-weight: 800;
  color: #27ae60;
  background: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #c2e5cf;
}

.slip-history-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--line, #e2d9ca);
  border-radius: 6px;
  background: #fff;
}
.slip-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.slip-history-table th {
  position: sticky;
  top: 0;
  background: var(--paper-alt, #faf6ee);
  border-bottom: 1.5px solid var(--line-strong, #cfc3b0);
  padding: 6px 8px;
  font-size: 11px;
  color: var(--ink-soft, #706253);
  z-index: 1;
}
.slip-history-table td {
  border-bottom: 1px solid #f0e9df;
  padding: 6px 8px;
}
.slip-history-table tr:hover {
  background: #faf6f0;
}

/* 모바일 전용 양면 화면(좌/우) 전환 스위처 */
.mobile-spread-switcher {
  display: none;
  gap: 6px;
  background: var(--paper-alt, #faf6ee);
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--line, #e2d9ca);
}
@media (max-width: 900px) {
  .mobile-spread-switcher {
    display: flex !important;
  }
}
@media (min-width: 901px) {
  .mobile-spread-switcher {
    display: none !important;
  }
}

/* =========================================================
   2026 NEO-TACTILE STATIONERY UI & MICRO-UX POLISH (v2.9.37)
   ========================================================= */

/* 1. 다이어리 전체 초슬림 아날로그 웜톤 스크롤바 (Windows 투박한 회색 스크롤바 제거) */
.diary-spread *::-webkit-scrollbar,
.modal-card *::-webkit-scrollbar,
.modal-card::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.diary-spread *::-webkit-scrollbar-track,
.modal-card *::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.diary-spread *::-webkit-scrollbar-thumb,
.modal-card *::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(155, 138, 118, 0.3);
  border-radius: 999px;
}
.diary-spread *::-webkit-scrollbar-thumb:hover,
.modal-card *::-webkit-scrollbar-thumb:hover,
.modal-card::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 110, 88, 0.55);
}

/* 2. 숫자·금액·날짜·시간표 수직 정밀 정렬 (Tabular Numbers) */
.sum-card .val,
.amt-inc,
.amt-exp,
.cal-day-num,
.cal-mini-ledger,
.hour-num,
.money-input,
.loan-detail-item .dt-val,
.pkg-banner-col .p-val,
.slip-history-table td {
  font-variant-numeric: tabular-nums;
}

/* 3. 가계부 특화 달력 모드 배지 */
.cal-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #9a3412;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 2px;
  box-shadow: 0 1px 3px rgba(154, 52, 18, 0.1);
  white-space: nowrap;
}

/* 4. 요약 통계 카드(가계부·금전출납·대출 등) 고급 입체 질감 */
.sum-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf6ee 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 12px;
  box-shadow:
    0 2px 6px rgba(45, 35, 25, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sum-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(45, 35, 25, 0.07);
}
.sum-card .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.1px;
}
.sum-card .val {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* 5. 알약형 버튼(.mini-pill-btn) 반응감 및 고급 마감 */
.mini-pill-btn {
  border: 1px solid var(--line-strong);
  background: #fffefb;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  box-shadow: 0 1px 2px rgba(45, 35, 25, 0.03);
  transition: all 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.mini-pill-btn:hover {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 2px 5px rgba(45, 35, 25, 0.08);
}
.mini-pill-btn.active,
.mini-pill-btn.primary {
  background: var(--cover-bg);
  color: #ffffff;
  border-color: var(--cover-bg);
  box-shadow: 0 2px 6px rgba(45, 35, 25, 0.18);
}
.mini-pill-btn.active:hover,
.mini-pill-btn.primary:hover {
  opacity: 0.93;
  color: #ffffff;
}

/* 6. 다이어리 내 모든 입력창·선택창 부드러운 포커스 링 */
.diary-spread input[type="text"]:not(.memo-title-input):not(.todo-text-input):not(.hour-input):not(.diary-title-line),
.diary-spread input[type="number"],
.diary-spread input[type="date"],
.diary-spread select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.diary-spread input[type="text"]:not(.memo-title-input):not(.todo-text-input):not(.hour-input):not(.diary-title-line):focus,
.diary-spread input[type="number"]:focus,
.diary-spread input[type="date"]:focus,
.diary-spread select:focus {
  outline: none;
  border-color: var(--accent) !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(181, 90, 55, 0.13);
}

/* 7. 할 일 추가 입력줄 시인성 향상 */
.todo-add-form {
  border-radius: 6px;
  transition: background 0.15s ease;
}
.todo-add-form:focus-within {
  background: rgba(181, 90, 55, 0.045);
}

/* 8. 빈 상태 안내문(.empty-hint) 정갈한 스테이셔너리 점선 카드화 */
.empty-hint {
  margin: 12px 2px;
  padding: 28px 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* 9. 모달 배경 프로스티드 블러 & 부드러운 팝인 애니메이션 */
.modal-backdrop {
  background: rgba(24, 18, 13, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(18, 12, 8, 0.28),
    0 4px 12px rgba(18, 12, 8, 0.12);
  animation: buaryModalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes buaryModalPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   v2.9.38 Bespoke Unified Line Pictogram System (.b-ico)
   ========================================================= */
.b-ico {
  display: inline-block;
  vertical-align: -0.17em;
  flex-shrink: 0;
  stroke-width: 1.85;
}

.mini-pill-btn:not(select),
.topbar-btn,
.biz-subview-btn,
.routine-toggle-btn,
.note-tool-btn,
.pen-tray-btn,
.preview-tab-btn,
.preview-try-demo-btn,
.landing-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-pill-btn .b-ico,
.topbar-btn .b-ico,
.biz-subview-btn .b-ico,
.routine-toggle-btn .b-ico,
.note-tool-btn .b-ico,
.pen-tray-btn .b-ico {
  vertical-align: 0;
}

.client-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.client-name .b-ico {
  color: var(--cover-bg);
  opacity: 0.88;
  vertical-align: 0;
}
.client-info-row > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.client-info-row .b-ico {
  color: var(--accent);
  opacity: 0.78;
  vertical-align: 0;
}

.memo-card .b-ico {
  opacity: 0.85;
}

.stamp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stamp-btn .b-ico {
  vertical-align: 0;
  color: var(--ink-muted);
  transition: color 0.15s ease, transform 0.15s ease;
}
.stamp-btn.active .b-ico {
  color: var(--accent);
  transform: scale(1.08);
}

/* Landing page editorial icon badges */
.feat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(145deg, #fbf4e9, #f3e5cf);
  border: 1px solid rgba(181, 90, 55, 0.2);
  color: #9a4a29;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(60, 38, 20, 0.06);
}
.biz-show-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #edf7f1;
  border: 1px solid rgba(30, 109, 71, 0.18);
  color: #1e6d47;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
}
.life-box-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.life-box-tag .b-ico {
  vertical-align: 0;
}


/* =========================================================
   v2.9.39 TOPBAR · 밤색 / 연밤색 / 흰색 통일 팔레트
   ========================================================= */
.desk-topbar .topbar-btn,
.desk-topbar .user-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e3d6c3;
  color: #5a4636;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(60, 40, 25, 0.05);
}
.desk-topbar .topbar-btn:hover {
  background: #ffffff;
  border-color: #c9ab88;
  color: #3a281c;
}
.desk-topbar .topbar-btn kbd,
.search-pill kbd {
  background: #efe3d0 !important;
  border: none !important;
  color: #6b4f3a !important;
  border-radius: 5px;
  padding: 1px 6px;
}
.desk-topbar .user-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #3a281c;
}
.topbar-btn.tb-plan { font-weight: 700; }
.topbar-btn.tb-plan.is-premium {
  background: #efe3d0;
  border-color: #dcc6a6;
  color: #5a3a25;
}
.topbar-btn.tb-plan.is-premium:hover { background: #e8d8c0; color: #3a2416; }
.topbar-btn.tb-plan.is-trial {
  background: #ffffff;
  border-color: #c9a27e;
  color: #8a5a3b;
}
.topbar-btn.tb-plan.is-none,
.topbar-btn.tb-plan.is-expired {
  background: #4b362a;
  border-color: #4b362a;
  color: #fbf4ea;
}
.topbar-btn.tb-plan.is-expired { background: #7a3e24; border-color: #7a3e24; }
.topbar-btn.tb-plan.is-none:hover,
.topbar-btn.tb-plan.is-expired:hover { color: #ffffff; filter: brightness(1.08); }
.topbar-btn.tb-admin {
  background: #2f2119;
  border-color: #2f2119;
  color: #f3e6d3;
  font-weight: 700;
}
.topbar-btn.tb-admin:hover { background: #3d2b20; color: #ffffff; }

/* =========================================================
   v2.9.39 PEN TRAY · 미니멀 스테이셔너리 도구함
   ========================================================= */
.right-pen-tray {
  width: 96px;
  background: #fbf7f0;
  border: 1px solid #ddcfba;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 9px 8px 9px 12px;
  gap: 7px;
  box-shadow:
    inset 4px 0 5px -3px rgba(0, 0, 0, 0.12),
    2px 4px 12px rgba(50, 32, 20, 0.14);
}
.right-pen-tray .pen-tray-title {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9a8470;
  text-align: center;
  border: none;
  padding: 0;
}
.pen-tray-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.pen-tile {
  height: 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #e8ddcc;
  border-radius: 9px;
  color: #4b362a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.pen-tile span {
  font-size: 9.5px;
  line-height: 1;
  font-weight: 600;
  color: #806b5a;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.pen-tile .b-ico { vertical-align: 0; }
.pen-tile.is-wavy .b-ico { color: #b4472f; }
.pen-tile:hover {
  background: #4b362a;
  border-color: #4b362a;
  color: #fbf4ea;
  transform: translateY(-1px);
}
.pen-tile:hover span,
.pen-tile.is-wavy:hover .b-ico { color: #f3e6d3; }
.right-pen-tray .pen-tray-hl-row {
  background: #f1e9dc;
  border: none;
  border-radius: 999px;
  padding: 5px 7px;
}
.right-pen-tray .pen-hl-dot {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(60, 40, 25, 0.14);
}
.pen-undo-btn {
  width: 100%;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #e3d6c3;
  background: transparent;
  color: #6b5544;
  font-size: 10.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pen-undo-btn:hover { background: #efe3d0; color: #3a281c; }

/* =========================================================
   v2.9.39 LANDING · Editorial Motion (Espresso · Latte · Cream)
   ========================================================= */
.landing-screen.bl {
  --bl-esp: #1b130e;
  --bl-coffee: #2a1d15;
  --bl-brown: #4b362a;
  --bl-caramel: #b9835a;
  --bl-latte: #e3cdae;
  --bl-cream: #f5eee3;
  --bl-paper: #fbf8f2;
  --bl-ink: #241a14;
  --bl-muted: #7d6c5e;
  background: var(--bl-paper);
  color: var(--bl-ink);
  font-family: 'Pretendard Variable', 'Pretendard', var(--font-ui);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.bl * { box-sizing: border-box; }
:where(.bl) a { color: inherit; text-decoration: none; }
.bl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.bl-m { display: none; }

/* Buttons */
.bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bl-btn .b-ico { vertical-align: 0; transition: transform 0.2s ease; }
.bl-btn:hover .b-ico { transform: translateX(3px); }
.bl-btn-sm { font-size: 13px; padding: 8px 16px; }
.bl-btn-lg { font-size: 15.5px; padding: 15px 28px; }
.bl-btn-primary {
  background: var(--bl-brown);
  color: #fdf8f0;
  box-shadow: 0 14px 30px -14px rgba(75, 54, 42, 0.7);
}
.bl-btn-primary:hover { background: #3a281d; transform: translateY(-2px); }
.bl-hero .bl-btn-primary,
.bl-cta .bl-btn-primary,
.bl-nav .bl-btn-primary {
  background: var(--bl-latte);
  color: var(--bl-esp);
  box-shadow: 0 16px 36px -14px rgba(227, 205, 174, 0.55);
}
.bl-hero .bl-btn-primary:hover,
.bl-cta .bl-btn-primary:hover,
.bl-nav .bl-btn-primary:hover { background: #f1e2cb; }
.bl-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #f5eee3;
}
.bl-btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.bl-btn-line {
  background: #ffffff;
  border-color: #d9c7ad;
  color: var(--bl-brown);
}
.bl-btn-line:hover { border-color: var(--bl-brown); transform: translateY(-2px); }
.bl-btn-text { background: transparent; color: rgba(245, 238, 227, 0.82); }
.bl-btn-text:hover { color: #ffffff; }

/* Nav */
.bl-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.bl-nav.scrolled {
  background: rgba(27, 19, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.bl-nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.bl-logo { display: inline-flex; align-items: center; gap: 10px; }
.bl-logo-img { height: 26px; width: auto; display: block; }
.bl-ver {
  font-size: 10px; font-weight: 700; color: rgba(245, 238, 227, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14); padding: 1px 7px; border-radius: 999px;
}
.bl-menu { display: flex; gap: 30px; }
.bl-menu a { font-size: 14px; font-weight: 600; color: rgba(245, 238, 227, 0.72); transition: color 0.2s; }
.bl-menu a:hover { color: #ffffff; }
.bl-nav-actions, .bl-nav-guest, .bl-nav-user { display: flex; align-items: center; gap: 8px; }
.bl-user-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: #f5eee3;
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.bl-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 130px 0 90px;
  display: flex;
  align-items: center;
  color: #f5eee3;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(185, 131, 90, 0.32), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(227, 205, 174, 0.10), transparent 60%),
    var(--bl-esp);
}
.bl-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  pointer-events: none;
}
.bl-hero-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  filter: blur(90px); opacity: 0.35; pointer-events: none;
  animation: blGlow 12s ease-in-out infinite alternate;
}
.bl-hero-glow.g1 { background: #b9835a; top: -120px; right: 8%; }
.bl-hero-glow.g2 { background: #6b4630; bottom: -160px; left: -80px; animation-delay: -6s; }
@keyframes blGlow { to { transform: translate(-40px, 30px) scale(1.12); } }
.bl-hero .bl-wrap {
  max-width: 1280px;
}
.bl-hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; align-items: center; width: 100%;
}
.bl-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em;
  color: rgba(245, 238, 227, 0.78);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
}
.bl-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bl-latte); animation: blPulse 1.8s ease-in-out infinite; }
@keyframes blPulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.bl-h1 {
  margin: 26px 0 22px;
  font-size: clamp(40px, 4.9vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: #fbf6ee;
}
.bl-grad {
  background: linear-gradient(90deg, #e9c9a0, #c08a5e 40%, #f6e5cc 60%, #e9c9a0);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: blShine 5s linear infinite;
}
@keyframes blShine { to { background-position: 200% center; } }
.bl-rotline { font-size: clamp(18px, 2vw, 23px); font-weight: 700; color: #f5eee3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.bl-rot { display: inline-grid; overflow: hidden; height: 1.35em; vertical-align: bottom; color: var(--bl-latte); }
.bl-rot span { grid-area: 1 / 1; opacity: 0; animation: blRot 10s infinite; white-space: nowrap; }
.bl-rot span:nth-child(2) { animation-delay: 2s; }
.bl-rot span:nth-child(3) { animation-delay: 4s; }
.bl-rot span:nth-child(4) { animation-delay: 6s; }
.bl-rot span:nth-child(5) { animation-delay: 8s; }
@keyframes blRot {
  0% { opacity: 0; transform: translateY(100%); }
  4%, 18% { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: translateY(-100%); }
}
.bl-rot-tail { color: rgba(245, 238, 227, 0.55); font-weight: 600; }
.bl-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.bl-cta-row.center { justify-content: center; }
.bl-fine { margin-top: 18px; font-size: 12.5px; color: rgba(245, 238, 227, 0.45); font-weight: 500; }

.bl-hero-visual {
  position: relative;
  padding: 12px 0 18px;
  margin: -38px -10px 0 -26px;
}
.bl-book {
  position: relative;
  padding: 11px;
  border-radius: 20px;
  background: linear-gradient(150deg, #6a4b37, #2c1e16);
  box-shadow: 0 54px 96px -28px rgba(0, 0, 0, 0.78), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bl-book:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.bl-book img { display: block; width: 100%; border-radius: 10px; }
.bl-float-a { animation: blFloat 6s ease-in-out infinite; }
.bl-float-b { animation: blFloat 7s ease-in-out -2s infinite; }
.bl-float-c { animation: blFloat 6.5s ease-in-out -4s infinite; }
@keyframes blFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.bl-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 9px; border-radius: 14px;
  background: rgba(253, 249, 243, 0.97); color: var(--bl-ink);
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55);
}
.bl-chip b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--bl-brown); color: #f5eee3;
}
.bl-chip b.ok { background: #3f6b4f; }
.bl-chip em { font-style: normal; color: #2f6b47; }
.bl-chip .b-ico { vertical-align: 0; }
.bl-chip.c1 { top: -4px; left: 8px; }
.bl-chip.c2 { top: 38%; right: -10px; }
.bl-chip.c3 { bottom: 10%; left: -12px; }
.bl-chip.c4 { bottom: -4px; right: 9%; }
.bl-wavy { text-decoration: underline wavy #c0392b; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Marquee */
.bl-mq {
  overflow: hidden;
  background: var(--bl-cream);
  border-bottom: 1px solid #eadfcd;
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bl-mq-track { display: flex; gap: 44px; width: max-content; animation: blMq 46s linear infinite; }
.bl-mq:hover .bl-mq-track { animation-play-state: paused; }
.bl-mq-track span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: #5a4636; letter-spacing: -0.01em; }
.bl-mq-track .b-ico { color: var(--bl-caramel); vertical-align: 0; }
@keyframes blMq { to { transform: translateX(-50%); } }

/* Sections */
.bl-sec { padding: 130px 0; position: relative; }
.bl-sec-cream { background: var(--bl-cream); }
.bl-sec-dark { background: var(--bl-esp); color: #f5eee3; }
.bl-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.bl-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; color: var(--bl-caramel); margin-bottom: 16px; }
.bl-kicker.light { color: var(--bl-latte); }
.bl-h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1.14; letter-spacing: -0.04em; }
.bl-h2.bl-xl { font-size: clamp(48px, 7vw, 96px); }
.bl-sub { margin-top: 18px; font-size: 16px; color: var(--bl-muted); font-weight: 500; }
.bl-sec-dark .bl-sub, .bl-cta .bl-sub { color: rgba(245, 238, 227, 0.55); }
.bl-sec-cream .bl-grad {
  background-image: linear-gradient(90deg, #8a5a3b, #c08a5e 45%, #6b4630 70%, #8a5a3b);
}

/* Showcase */
.bl-show { max-width: 1060px; margin: 0 auto; text-align: center; }
.bl-seg {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: #efe6d8; margin-bottom: 28px;
}
.bl-seg .preview-tab-btn {
  border: none; background: transparent; color: #7d6c5e;
  font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  cursor: pointer; transition: all 0.2s ease; box-shadow: none;
}
.bl-seg .preview-tab-btn:hover { color: var(--bl-ink); }
.bl-seg .preview-tab-btn.active { background: #ffffff; color: var(--bl-ink); box-shadow: 0 4px 14px -6px rgba(60, 40, 25, 0.35); }
.bl-win {
  border-radius: 18px; overflow: hidden; background: #ffffff; text-align: left;
  box-shadow: 0 50px 90px -40px rgba(45, 30, 20, 0.5), 0 0 0 1px rgba(60, 40, 25, 0.08);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bl-win:hover { transform: translateY(-6px); }
.bl-win-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f4eee5; border-bottom: 1px solid #e8ddcc; }
.bl-win-top i { width: 10px; height: 10px; border-radius: 50%; background: #d8c8b2; display: block; }
.bl-win-top span { margin-left: 10px; font-size: 12px; color: #9a8778; font-weight: 600; }
.bl-win img { display: block; width: 100%; }
.bl-caption { margin-top: 20px; font-size: 14px; color: var(--bl-muted); font-weight: 500; }

/* Points */
.bl-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.bl-point { position: relative; padding-top: 10px; }
.bl-num {
  display: block; font-size: 84px; line-height: 1; font-weight: 800; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.6px var(--bl-caramel); opacity: 0.55; margin-bottom: 18px;
}
.bl-point h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.22; letter-spacing: -0.035em; }
.bl-point p { margin-top: 12px; font-size: 14.5px; color: var(--bl-muted); }

/* Pen split */
.bl-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.bl-keys { display: flex; align-items: center; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.bl-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 56px; padding: 0 16px; border-radius: 13px;
  background: #ffffff; border: 1px solid #e3d6c3; border-bottom-width: 5px;
  font-weight: 800; font-size: 19px; color: var(--bl-ink);
  box-shadow: 0 12px 24px -12px rgba(60, 40, 25, 0.4);
  animation: blPress 2.4s ease-in-out infinite;
}
.bl-key + .bl-plus + .bl-key { animation-delay: 0.18s; }
.bl-plus { font-weight: 700; color: #b8a690; }
.bl-keys small { width: 100%; margin-top: 6px; font-size: 13px; color: var(--bl-muted); }
@keyframes blPress { 0%, 60%, 100% { transform: none; border-bottom-width: 5px; } 70% { transform: translateY(3px); border-bottom-width: 2px; } }
.bl-paper {
  position: relative;
  background:
    repeating-linear-gradient(transparent 0 37px, #ece2d3 37px 38px),
    #fffdf8;
  border: 1px solid #ebe0cf;
  border-radius: 18px;
  padding: 50px 34px 30px;
  font-family: var(--font-diary);
  font-size: 18px;
  line-height: 38px;
  color: #2f241d;
  box-shadow: 0 40px 70px -40px rgba(45, 30, 20, 0.45);
  transform: rotate(1.2deg);
}
.bl-paper-tag {
  position: absolute; top: 14px; left: 34px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--bl-caramel);
  line-height: 1;
}
.bl-ink-wavy {
  text-decoration-line: underline; text-decoration-style: wavy;
  text-decoration-color: transparent; text-decoration-thickness: 1.6px; text-underline-offset: 5px;
  transition: text-decoration-color 0.8s ease 0.5s;
}
.bl-paper.in .bl-ink-wavy { text-decoration-color: #c0392b; }
.bl-ink-hl { background-repeat: no-repeat; background-size: 0% 62%; background-position: 0 85%; transition: background-size 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s; }
.bl-ink-hl.y { background-image: linear-gradient(rgba(253, 224, 71, 0.75), rgba(253, 224, 71, 0.75)); }
.bl-ink-hl.m { background-image: linear-gradient(rgba(134, 239, 172, 0.7), rgba(134, 239, 172, 0.7)); transition-delay: 1.4s; }
.bl-paper.in .bl-ink-hl { background-size: 100% 62%; }
.bl-paper-tools {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-ui); line-height: 1;
}
.bl-paper-tools .t {
  width: 32px; height: 32px; border-radius: 9px; background: #ffffff; border: 1px solid #e8ddcc;
  display: inline-flex; align-items: center; justify-content: center; color: var(--bl-brown);
}
.bl-paper-tools .t.wavy { color: #b4472f; }
.bl-paper-tools .t .b-ico { vertical-align: 0; }
.bl-paper-tools .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(60, 40, 25, 0.14); }

/* Business (dark) */
.bl-biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bl-biz-card {
  padding: 28px 26px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.bl-biz-card:hover { transform: translateY(-6px); border-color: rgba(227, 205, 174, 0.4); background: rgba(255, 255, 255, 0.06); }
.bl-biz-card .b-ico { color: var(--bl-latte); }
.bl-biz-card h4 { margin-top: 18px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: #fbf6ee; }
.bl-biz-card p { margin-top: 6px; font-size: 13.5px; color: rgba(245, 238, 227, 0.55); }

/* Life */
.bl-life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bl-life-card {
  padding: 28px 24px; border-radius: 18px; background: #ffffff; border: 1px solid #ece2d3;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.bl-life-card:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(60, 40, 25, 0.4); }
.bl-life-card .b-ico { color: var(--bl-caramel); }
.bl-life-card h4 { margin-top: 16px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.bl-life-card p { margin-top: 6px; font-size: 13.5px; color: var(--bl-muted); }

/* Pricing */
.bl-price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.bl-price {
  background: #ffffff; border: 1px solid #e6dac8; border-radius: 24px; padding: 38px 36px;
  box-shadow: 0 40px 80px -45px rgba(60, 40, 25, 0.45);
}
.bl-price-top { display: flex; align-items: center; justify-content: space-between; }
.bl-price-label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: var(--bl-caramel); }
.bl-price-old { font-size: 14px; color: #b3a493; text-decoration: line-through; }
.bl-price-num { margin-top: 10px; font-size: 64px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; color: var(--bl-ink); }
.bl-price-num small { font-size: 16px; font-weight: 600; color: var(--bl-muted); letter-spacing: -0.01em; margin-left: 6px; }
.bl-price ul { list-style: none; margin: 26px 0 30px; padding: 22px 0 0; border-top: 1px solid #f0e7da; display: grid; gap: 12px; }
.bl-price li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #3a2c22; }
.bl-price li .b-ico { color: var(--bl-caramel); vertical-align: 0; }
.bl-price-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bl-price-actions .bl-btn { flex: 1; }

/* FAQ */
.bl-faq-wrap { max-width: 820px; }
.bl-faq details { border-bottom: 1px solid #ebe1d2; padding: 6px 0; }
.bl-faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--bl-ink);
}
.bl-faq summary::-webkit-details-marker { display: none; }
.bl-faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--bl-caramel); transition: transform 0.25s ease;
}
.bl-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.bl-faq p { padding: 0 0 20px; font-size: 14.5px; color: var(--bl-muted); line-height: 1.75; }
.bl-faq code { background: #f3ece1; padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* CTA */
.bl-cta {
  position: relative; overflow: hidden; text-align: center; color: #fbf6ee;
  padding: 140px 0;
  background: radial-gradient(800px 400px at 50% 0%, rgba(185, 131, 90, 0.3), transparent 65%), var(--bl-esp);
}
.bl-cta .bl-hero-glow.g1 { top: auto; bottom: -220px; right: 30%; }
.bl-cta-inner { position: relative; z-index: 2; }

/* Footer */
.bl-footer { background: #140e0a; color: rgba(245, 238, 227, 0.5); padding: 40px 0; font-size: 13px; }
.bl-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bl-footer-logo { height: 22px; display: block; margin-bottom: 8px; opacity: 0.85; }
.bl-footer-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.bl-footer-links a:hover { color: #ffffff; }
.bl-footer-links #footer-user-action:not(.hidden) { display: inline-flex; gap: 18px; }
.bl-link-btn { background: none; border: none; color: rgba(245, 238, 227, 0.7); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.bl-link-btn:hover { color: #ffffff; }

/* Reveal */
.bl-rv { opacity: 0; transform: translateY(34px); transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bl-rv-l { opacity: 0; transform: translateX(-40px); transition: all 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bl-rv-r { opacity: 0; transform: translateX(40px); transition: all 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bl-rv.in, .bl-rv-l.in, .bl-rv-r.in { opacity: 1; transform: none; }
.bl-rv.d1 { transition-delay: 0.1s; }
.bl-rv.d2 { transition-delay: 0.2s; }
.bl-rv.d3 { transition-delay: 0.3s; }
.bl-paper.bl-rv-r.in { transform: rotate(1.2deg); }

@media (prefers-reduced-motion: reduce) {
  .bl *, .bl *::before, .bl *::after { animation: none !important; transition: none !important; }
  .bl-rot span:first-child { opacity: 1; }
}

/* Responsive */
@media (max-width: 960px) {
  .bl-menu { display: none; }
  .bl-hero { min-height: auto; padding: 120px 0 70px; }
  .bl-hero-grid, .bl-split, .bl-price-wrap { grid-template-columns: 1fr; gap: 50px; }
  .bl-hero-visual { margin: 0; padding: 20px 4px; }
  .bl-points { grid-template-columns: 1fr; gap: 36px; }
  .bl-biz { grid-template-columns: repeat(2, 1fr); }
  .bl-life { grid-template-columns: repeat(2, 1fr); }
  .bl-sec { padding: 90px 0; }
  .bl-chip.c3, .bl-chip.c4 { display: none; }
  .bl-chip.c1 { left: 0; top: 4px; }
  .bl-chip.c2 { right: 0; }
}
@media (max-width: 560px) {
  .bl-wrap { padding: 0 20px; }
  .bl-m { display: inline; }
  .bl-nav-guest .bl-btn-text { display: none; }
  .bl-biz, .bl-life { grid-template-columns: 1fr; }
  .bl-btn-lg { width: 100%; }
  .bl-num { font-size: 64px; }
  .bl-price { padding: 28px 22px; }
  .bl-price-num { font-size: 52px; }
  .bl-paper { padding: 46px 22px 24px; font-size: 16px; }
}

/* v2.9.41 topbar logo = home link */
#topbar-home-logo { display: inline-flex; align-items: center; text-decoration: none; transition: opacity 0.15s ease, transform 0.15s ease; }
#topbar-home-logo:hover { opacity: 0.78; transform: translateY(-1px); }


/* =========================================================
   v2.9.43 REVIEWS & FEATURE FEEDBACK BOARD (Espresso · Cream)
   ========================================================= */
.bl-shipped-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-radius: 16px;
  background: #f5eee3;
  border: 1px solid #e7dccb;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.bl-shipped-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #4b362a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.bl-shipped-lbl .b-ico { color: #b9835a; vertical-align: 0; }
.bl-shipped-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bl-ship-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e5d8c4;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a2b20;
}
.bl-ship-chip b {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #4b362a;
  color: #fbf4ea;
}

.bl-fb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bl-fb-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bl-fb-seg { margin-bottom: 0; }
.bl-fb-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e6dac8;
  font-size: 14px;
  color: #241a14;
}
.bl-fb-score .star { color: #c7863b; font-size: 15px; }
.bl-fb-score small { color: #8c7b6b; font-weight: 500; font-size: 12.5px; }

.bl-fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.bl-fb-empty,
.bl-fb-empty-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px dashed #dfd2bd;
  color: #7d6c5e;
  font-size: 14.5px;
}
.bl-fb-empty-card p { margin-bottom: 16px; }

.bl-fb-card {
  background: #ffffff;
  border: 1px solid #ebe1d2;
  border-radius: 18px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bl-fb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -28px rgba(60, 40, 25, 0.42);
}
.bl-fb-card.is-compact {
  padding: 14px 16px;
  border-radius: 13px;
  gap: 8px;
}
.bl-fb-card.is-compact:hover { transform: none; box-shadow: none; }

.fb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fb-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fb-card-stars {
  color: #c7863b;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}
.fb-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.fb-cat-pill.review {
  background: #f5eee3;
  color: #6b4f3a;
}
.fb-cat-pill.feature {
  background: #efe3d0;
  color: #4b362a;
}
.fb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}
.fb-status-pill.reviewing {
  background: #fff8eb;
  border: 1px solid #ead1a2;
  color: #965d1e;
}
.fb-status-pill.done {
  background: #4b362a;
  color: #fbf4ea;
}
.fb-status-pill.priv {
  background: #f3ece2;
  color: #7d6c5e;
}
.fb-del-btn {
  border: none;
  background: transparent;
  color: #a89684;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.fb-del-btn:hover { color: #b43c32; }

.fb-card-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: #241a14;
  white-space: pre-wrap;
  word-break: break-word;
}
.bl-fb-card.is-compact .fb-card-body { font-size: 13.5px; }

.fb-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #948373;
  font-weight: 500;
}
.fb-meta-dot { opacity: 0.6; }

.fb-admin-reply {
  margin-top: 2px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #faf6ef;
  border-left: 3px solid #b9835a;
}
.fb-admin-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #5a3e2b;
  margin-bottom: 4px;
}
.fb-admin-reply-head span { color: #9a8778; font-weight: 500; }
.fb-admin-reply p {
  font-size: 13px;
  line-height: 1.55;
  color: #3a2b20;
  white-space: pre-wrap;
}

.fb-admin-ctrl {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px dashed #e8ddcc;
  flex-wrap: wrap;
}
.fb-admin-status {
  padding: 4px 7px;
  font-size: 11.5px;
  border: 1px solid #d9cbb6;
  border-radius: 6px;
  background: #fffefb;
  font-weight: 700;
  color: #4b362a;
}
.fb-admin-inp {
  flex: 1;
  min-width: 130px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #d9cbb6;
  border-radius: 6px;
  background: #fffefb;
}

/* Feedback Modal */
.fb-modal-card {
  max-width: 560px;
  width: 94vw;
  max-height: 88vh;
  overflow-y: auto;
}
.fb-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.fb-guest-notice {
  background: #faf5ec;
  border: 1px solid #e6d7c1;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  font-size: 13px;
  color: #4b362a;
  font-weight: 600;
  margin-bottom: 14px;
}
.fb-write-form {
  background: #fcfaf6;
  border: 1px solid #e8dece;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.fb-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  background: #efe6d8;
  border-radius: 10px;
  margin-bottom: 12px;
}
.fb-type-btn {
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #7d6c5e;
  cursor: pointer;
  transition: all 0.16s ease;
}
.fb-type-btn.active {
  background: #4b362a;
  color: #fbf4ea;
  box-shadow: 0 2px 8px rgba(45, 30, 20, 0.22);
}
.fb-rating-row,
.fb-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.fb-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #5a4636;
  min-width: 72px;
}
.fb-lbl small { font-weight: 500; color: #9a8778; }
.fb-star-picker { display: inline-flex; gap: 2px; }
.fb-star {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #dfd3c0;
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.12s ease, color 0.12s ease;
}
.fb-star.active { color: #c7863b; }
.fb-star:hover { transform: scale(1.15); }
.fb-star-text { font-size: 12px; font-weight: 700; color: #8a5a3b; }

.fb-tag-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.fb-tag-chip {
  border: 1px solid #dfd2bd;
  background: #ffffff;
  color: #6b5744;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}
.fb-tag-chip.active {
  background: #efe3d0;
  border-color: #c9ab88;
  color: #3a281c;
  font-weight: 700;
}
#fb-content-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9cbb6;
  border-radius: 10px;
  background: #ffffff;
  font-size: 13.5px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}
#fb-content-input:focus {
  border-color: #8a5a3b;
  box-shadow: 0 0 0 3px rgba(185, 131, 90, 0.14);
}
.fb-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fb-private-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b5744;
  cursor: pointer;
}
.fb-modal-list-wrap {
  border-top: 1px solid #ebe1d2;
  padding-top: 12px;
}
.fb-modal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #3a281c;
  margin-bottom: 10px;
}
.fb-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 960px) {
  .bl-fb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bl-fb-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   v2.9.44 ADMIN MODAL · 고정 크기 & 밤색·크림 스테이셔너리 디자인
   ========================================================= */
.adm-modal-card {
  width: min(660px, 94vw) !important;
  max-width: 660px !important;
  height: min(615px, 88vh);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 24px 18px;
  background: #fdfbf7;
  border: 1px solid #e5d8c4;
}
.adm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.adm-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-crown {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f4ead8;
  border: 1px solid #dec9a8;
  color: #78350f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.adm-crown .b-ico { vertical-align: 0; }
.adm-head-title h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #241a14;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.adm-head-title small {
  display: block;
  font-size: 11.5px;
  color: #8c7b6b;
  margin-top: 2px;
}
.adm-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f4ead8;
  border: 1px solid #dcc6a6;
  color: #5a3a25;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease;
}
.adm-link-pill:hover { background: #eadbc2; color: #3a2416; }
.adm-link-pill .b-ico { vertical-align: 0; }

/* KPI Stats */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.adm-stat-card {
  background: #ffffff;
  border: 1px solid #e6dac8;
  border-radius: 11px;
  padding: 9px 12px;
  text-align: center;
}
.adm-stat-card.highlight {
  background: #faf2e1;
  border-color: #e2caa3;
}
.adm-stat-card.muted {
  background: #f7f3eb;
  border-color: #e7dfd1;
}
.adm-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #847261;
  margin-bottom: 2px;
}
.adm-stat-card.highlight .adm-stat-lbl { color: #78350f; font-weight: 700; }
.adm-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #241a14;
  font-variant-numeric: tabular-nums;
}
.adm-stat-card.highlight .adm-stat-val { color: #6b3410; }
.adm-stat-card.muted .adm-stat-val { color: #6b5c4d; }

/* 1-Row Segmented Tabs */
.adm-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: #efe6d8;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.adm-tab-btn {
  border: none;
  background: transparent;
  color: #6f5d4d;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.adm-tab-btn .b-ico { vertical-align: 0; opacity: 0.85; }
.adm-tab-btn:hover { color: #241a14; }
.adm-tab-btn.active {
  background: #4b362a;
  color: #fbf4ea;
  box-shadow: 0 3px 10px -3px rgba(45, 30, 20, 0.35);
}
.adm-tab-btn.active .b-ico { opacity: 1; }

/* Fixed-Height Stage */
.adm-stage {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.adm-panel-flex {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.adm-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.adm-subbar-info {
  font-size: 12px;
  color: #7d6c5e;
}
.adm-subbar-info strong { color: #241a14; }
.adm-subbar-info strong.tone-warm { color: #78350f; }
.adm-subbar-info strong.tone-soft { color: #8c7b6b; }

/* Tables */
.adm-table-box {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e6dac8;
  border-radius: 10px;
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
.adm-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f1e6;
  color: #5a4636;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #e5d8c4;
}
.adm-table tbody tr {
  border-bottom: 1px solid #f2ebe0;
}
.adm-table tbody tr:hover {
  background: #fcf9f3;
}
.adm-table tbody tr.is-super-row {
  background: #faf4e8;
}
.adm-table tbody td {
  padding: 8px 10px;
  vertical-align: middle;
}

.adm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.adm-badge.lifetime {
  background: #f6e7c8;
  border: 1px solid #e2c896;
  color: #78350f;
}
.adm-badge.paid {
  background: #efe3d0;
  color: #4b362a;
}
.adm-badge.trial {
  background: #f5f1ea;
  border: 1px solid #e5dccd;
  color: #7d6c5e;
}
.adm-super-tag {
  font-size: 11px;
  font-weight: 800;
  color: #78350f;
  background: #f4ead8;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Forms inside Admin */
.adm-form-card {
  background: #ffffff;
  border: 1px solid #e6dac8;
  border-radius: 12px;
  padding: 16px 18px;
}
.adm-info-banner {
  background: #faf3e3;
  border: 1px solid #ead4ae;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  color: #78350f;
  line-height: 1.5;
  margin-bottom: 14px;
}
.adm-field-lbl {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4b362a;
  margin-bottom: 5px;
}
.adm-input {
  width: 100%;
  padding: 9px 11px;
  font-size: 13px;
  border: 1px solid #d8cab5;
  border-radius: 8px;
  background: #fffefb;
  color: #241a14;
  outline: none;
}
.adm-input:focus {
  border-color: #8a5a3b;
  box-shadow: 0 0 0 3px rgba(138, 90, 59, 0.14);
}
.adm-primary-btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  background: #6b3818;
  color: #fdf8f0;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}
.adm-primary-btn:hover {
  background: #4b2811;
  color: #ffffff;
  transform: translateY(-1px);
}
.adm-primary-btn .b-ico { vertical-align: 0; }

.adm-gen-result {
  margin-top: 10px;
  background: #faf5eb;
  border: 1px solid #e5d5bc;
  border-radius: 10px;
  padding: 11px 13px;
}
.adm-code-area {
  width: 100%;
  font-family: monospace;
  font-size: 12px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #dccab0;
  background: #ffffff;
  color: #241a14;
  resize: none;
}

/* Analytics Card */
.adm-analytics-card {
  background: #ffffff;
  border: 1px solid #e6dac8;
  border-radius: 12px;
  padding: 16px 18px;
}
.adm-analytics-card code {
  background: #f5eee3;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}
.adm-analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.adm-ana-item {
  background: #fbf8f2;
  border: 1px solid #ebe0cf;
  border-radius: 9px;
  padding: 10px 12px;
}
.adm-ana-item span {
  display: block;
  font-size: 11.5px;
  color: #847261;
  margin-bottom: 3px;
}
.adm-ana-item strong {
  font-size: 13px;
  color: #3a281c;
}

/* Footer */
.adm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid #ebe1d2;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .adm-modal-card { padding: 16px; height: 90vh; }
  .adm-tab-btn span { font-size: 11px; }
  .adm-tab-btn .b-ico { display: none; }
  .adm-analytics-grid { grid-template-columns: 1fr; }
}


/* v2.9.46 Any-Day 365 Pricing Hooks */
.bl-anyday-hook {
  margin-top: 18px;
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 800;
  color: #241a14;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.bl-anyday-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}
.bl-anyday-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e3d6c3;
  font-size: 13.5px;
  font-weight: 600;
  color: #3a2b20;
}
.bl-anyday-pills span b {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: #4b362a;
  color: #fbf4ea;
}


/* v2.9.47 Official Release Note Cards & Slim Invite Strip */
.fb-cat-pill.release {
  background: #f4ead8;
  color: #5a3a25;
}
.fb-ver-tag {
  font-size: 11px;
  font-weight: 700;
  color: #8c7b6b;
  font-variant-numeric: tabular-nums;
}
.fb-release-title {
  font-size: 16px;
  font-weight: 800;
  color: #241a14;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.bl-fb-card.is-release .fb-card-body {
  font-size: 13.8px;
  color: #5f5043;
}
.bl-fb-invite-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 20px;
  border-radius: 14px;
  background: #f5eee3;
  border: 1px solid #e6dac8;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b362a;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.bl-fb-invite-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
