/* ==========================================================================
   아워골 UI v2 — 디자인 시스템 스타일시트 (docs/design/02-design-system.md)
   원칙: 중립 표면 + 브랜드 한 색 · 이모지 아이콘 금지 · 그림자 대신 헤어라인 · 8pt 그리드
   기존 클래스명은 전부 유지(JS 템플릿이 참조). 값만 교체.
   ========================================================================== */

/* ---------- 1. 토큰 ---------- */
:root{
  --bg:#0B0F17; --paper:#0B0F17; --card:rgba(255,255,255,0.04); --surface:rgba(255,255,255,0.04);
  --card2:rgba(255,255,255,0.07); --surface-2:rgba(255,255,255,0.07); --surface-3:rgba(255,255,255,0.12);
  --ink:#F8FAFC; --ink-soft:#CBD5E1; --ink-faint:#94A3B8; --ink-disabled:#475569;
  --rule:rgba(255,255,255,0.08); --line:rgba(255,255,255,0.08); --rule-soft:rgba(255,255,255,0.04);
  --brand:#10B981; --brand-strong:#059669; --brand-soft:rgba(16,185,129,.14); --brand-line:rgba(16,185,129,.35);
  --red:var(--brand); --red-soft:var(--brand-soft); --red-line:var(--brand-line);
  --gold:#F59E0B; --gold-soft:rgba(245,158,11,.14); --gold-line:rgba(245,158,11,.30);
  --sage:#10B981; --sage-soft:rgba(16,185,129,.14); --sage-line:rgba(16,185,129,.35);
  --violet:#3B82F6; --info:#3B82F6; --violet-soft:rgba(59,130,246,.14); --violet-line:rgba(59,130,246,.28);
  --radius:16px; --radius-sm:10px; --radius-lg:20px; --radius-xl:24px; --maxw:440px;
  --shadow:0 8px 32px rgba(0,0,0,.5);
  --shadow-sm:0 4px 14px rgba(0,0,0,.4);
  --shadow-sheet:0 -10px 40px rgba(0,0,0,.7);
  --shadow-float:0 12px 36px rgba(0,0,0,.7);
  --mz1:var(--brand); --mz2:var(--brand);
  --grad:linear-gradient(135deg, #10B981 0%, #059669 100%);
  --chip:#10B981; --chip-ink:#04261C;
  --font:'Pretendard Variable',Pretendard,-apple-system,BlinkMacSystemFont,system-ui,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
  --mono:var(--font); --sans:var(--font);
  --topbar-bg:rgba(11,15,23,.90); --bottomnav-bg:rgba(11,15,23,.92);
  --card-backdrop:blur(16px); --card-border:1px solid rgba(255,255,255,.08);
  --body-gradient:none; --input-bg:rgba(255,255,255,.05);
  --ease:cubic-bezier(.2,.8,.2,1); --spring-bounce:cubic-bezier(.2,.8,.2,1);
  --paper-soft-shadow:0 4px 14px rgba(0,0,0,.4);
  --nav-h:60px; --topbar-h:52px;
  --kakao:#FEE500; --kakao-ink:#191919;
  /* [Phase 0] 디자인 토큰 확장: 터치 타겟, 폰트 스케일, Z-Index 계층 */
  --touch-min:44px;
  --font-xs:12px; --font-sm:14px; --font-md:16px; --font-lg:17px; --font-xl:20px; --font-2xl:24px;
  --z-canvas:0; --z-card:10; --z-floating:20; --z-nav:50; --z-header:60; --z-sheet:100; --z-modal:150; --z-toast:200;
  color-scheme:dark;
}

/* 다크 공통 값 */
[data-theme="black"],[data-theme="dark"],[data-theme="dark-space"],[data-theme="glowing-space"],[data-theme="deep-sea"],[data-theme="sunset-beach"],[data-theme="urban-city"]{
  --ink:#F8FAFC; --ink-soft:#CBD5E1; --ink-faint:#94A3B8; --ink-disabled:#475569;
  --rule:rgba(255,255,255,.12); --line:rgba(255,255,255,.12); --rule-soft:rgba(255,255,255,.06);
  --card-border:1px solid rgba(255,255,255,.10);
  --shadow:0 4px 14px rgba(0,0,0,.45); --shadow-sm:0 1px 4px rgba(0,0,0,.35);
  --chip:#F8FAFC; --chip-ink:#090D16;
  --shadow-sheet:0 -10px 32px rgba(0,0,0,.6); --shadow-float:0 12px 32px rgba(0,0,0,.6);
  color-scheme:dark;
}
[data-theme="black"],[data-theme="dark"]{
  --bg:#000000; --paper:#000000; --card:#0A0A0C; --surface:#121214; --card2:#18181C; --surface-2:#1E1E24; --surface-3:#2A2A32;
  --ink:#FFFFFF; --ink-soft:#E2E8F0; --ink-faint:#94A3B8; --ink-disabled:#64748B;
  --rule:rgba(255,255,255,.16); --line:rgba(255,255,255,.16); --rule-soft:rgba(255,255,255,.08);
  --card-border:1px solid rgba(255,255,255,.18);
  --topbar-bg:rgba(0,0,0,.95); --bottomnav-bg:rgba(0,0,0,.96); --input-bg:#121214;
  --brand:#10B981; --brand-strong:#34D399; --brand-soft:rgba(16,185,129,.18); --brand-line:rgba(16,185,129,.40);
  --chip:#FFFFFF; --chip-ink:#04261C;
  --shadow:0 6px 24px rgba(0,0,0,.75); --shadow-sm:0 2px 8px rgba(0,0,0,.60);
  color-scheme:dark;
}
[data-theme="white"],[data-theme="light"]{
  --bg:#F8FAFC; --paper:#FFFFFF; --card:#FFFFFF; --surface:#F1F5F9; --card2:#EDF2F7; --surface-2:#E2E8F0; --surface-3:#CBD5E1;
  --ink:#0F172A; --ink-soft:#334155; --ink-faint:#64748B; --ink-disabled:#94A3B8;
  --rule:#E2E8F0; --line:#E2E8F0; --rule-soft:#F1F5F9;
  --card-border:1px solid #CBD5E1;
  --topbar-bg:rgba(255,255,255,.95); --bottomnav-bg:rgba(255,255,255,.96); --input-bg:#FFFFFF;
  --brand:#059669; --brand-strong:#047857; --brand-soft:rgba(5,150,105,.12); --brand-line:rgba(5,150,105,.35);
  --red:var(--brand); --red-soft:var(--brand-soft); --red-line:var(--brand-line);
  --gold:#D97706; --gold-soft:rgba(217,119,6,.14); --gold-line:rgba(217,119,6,.30);
  --sage:#059669; --sage-soft:rgba(5,150,105,.12); --sage-line:rgba(5,150,105,.35);
  --violet:#2563EB; --info:#2563EB; --violet-soft:rgba(37,99,235,.14); --violet-line:rgba(37,99,235,.28);
  --chip:#059669; --chip-ink:#FFFFFF;
  --shadow:0 4px 20px rgba(15,23,42,.08); --shadow-sm:0 1px 3px rgba(15,23,42,.06);
  --shadow-sheet:0 -8px 24px rgba(15,23,42,.12); --shadow-float:0 8px 28px rgba(15,23,42,.14);
  color-scheme:light;
}
[data-theme="dark-space"]{
  --bg:#0B1220; --paper:#0B1220; --card:#121B2E; --surface:#121B2E; --card2:#1B2740; --surface-2:#1B2740; --surface-3:#24324F;
  --brand:#7C8CF8; --brand-strong:#9AA6FA; --brand-soft:rgba(124,140,248,.14); --brand-line:rgba(124,140,248,.35);
  --topbar-bg:#0B1220; --bottomnav-bg:#0E1626; --input-bg:#1B2740;
}
[data-theme="glowing-space"]{
  --bg:#14101F; --paper:#14101F; --card:#1E1830; --surface:#1E1830; --card2:#2A2242; --surface-2:#2A2242; --surface-3:#362D54;
  --brand:#C77DFF; --brand-strong:#D69BFF; --brand-soft:rgba(199,125,255,.14); --brand-line:rgba(199,125,255,.35);
  --topbar-bg:#14101F; --bottomnav-bg:#181327; --input-bg:#2A2242;
}
[data-theme="deep-sea"]{
  --bg:#061520; --paper:#061520; --card:#0D2231; --surface:#0D2231; --card2:#143043; --surface-2:#143043; --surface-3:#1C3E55;
  --brand:#2DD4BF; --brand-strong:#5EEAD4; --brand-soft:rgba(45,212,191,.14); --brand-line:rgba(45,212,191,.35);
  --topbar-bg:#061520; --bottomnav-bg:#091B29; --input-bg:#143043;
}
[data-theme="daylight-beach"]{
  --bg:#F3FAFC; --paper:#F3FAFC; --card:#FFFFFF; --surface:#FFFFFF; --card2:#E6F3F7; --surface-2:#E6F3F7; --surface-3:#D6E9F0;
  --brand:#0EA5E9; --brand-strong:#0284C7; --brand-soft:rgba(14,165,233,.10); --brand-line:rgba(14,165,233,.30);
  --rule:#D9E6EC; --line:#D9E6EC; --topbar-bg:#F3FAFC; --bottomnav-bg:#FFFFFF; --input-bg:#E6F3F7;
}
[data-theme="sunset-beach"]{
  --bg:#1C1012; --paper:#1C1012; --card:#27181B; --surface:#27181B; --card2:#352226; --surface-2:#352226; --surface-3:#442C31;
  --brand:#FB923C; --brand-strong:#FDBA74; --brand-soft:rgba(251,146,60,.14); --brand-line:rgba(251,146,60,.35);
  --topbar-bg:#1C1012; --bottomnav-bg:#211316; --input-bg:#352226;
}
[data-theme="urban-city"]{
  --bg:#0B0F19; --paper:#0F172A; --card:#131B2E; --surface:#18223A; --card2:#1E2B48; --surface-2:#243456; --surface-3:#2E426C;
  --ink:#F8FAFC; --ink-soft:#CBD5E1; --ink-faint:#94A3B8; --ink-disabled:#475569;
  --rule:rgba(56,189,248,.18); --line:rgba(56,189,248,.18); --rule-soft:rgba(56,189,248,.08);
  --card-border:1px solid rgba(56,189,248,.22);
  --topbar-bg:rgba(11,15,25,.95); --bottomnav-bg:rgba(11,15,25,.96); --input-bg:#18223A;
  --brand:#0EA5E9; --brand-strong:#38BDF8; --brand-soft:rgba(14,165,233,.18); --brand-line:rgba(56,189,248,.40);
  --chip:#38BDF8; --chip-ink:#0B0F19;
  --shadow:0 6px 24px rgba(11,15,25,.70); --shadow-sm:0 2px 8px rgba(11,15,25,.50);
  color-scheme:dark;
}
[data-theme="dark-space"],[data-theme="glowing-space"],[data-theme="deep-sea"],[data-theme="sunset-beach"],[data-theme="urban-city"],[data-theme="daylight-beach"]{
  --red:var(--brand); --red-soft:var(--brand-soft); --red-line:var(--brand-line); --mz1:var(--brand); --mz2:var(--brand);
}
@media (prefers-color-scheme: dark){
  html:not([data-theme]){
    --bg:#111214; --paper:#111214; --card:#1B1C1F; --surface:#1B1C1F; --card2:#26272B; --surface-2:#26272B; --surface-3:#313236;
    --ink:#F2F3F5; --ink-soft:#AEB4BC; --ink-faint:#7A828C; --ink-disabled:#4F565E;
    --rule:rgba(255,255,255,.10); --line:rgba(255,255,255,.10); --rule-soft:rgba(255,255,255,.05);
    --chip:#F2F3F5; --chip-ink:#111214; --topbar-bg:#111214; --bottomnav-bg:#151619; --input-bg:#26272B;
    --shadow-sheet:0 -8px 24px rgba(0,0,0,.5); --shadow-float:0 6px 20px rgba(0,0,0,.5);
    color-scheme:dark;
  }
}
[data-high-contrast="true"]{ --ink-soft:#2B3440; --ink-faint:#5A6470; --rule:#B8C0C8; }
[data-theme="black"][data-high-contrast="true"],[data-theme="dark"][data-high-contrast="true"]{ --bg:#000; --paper:#000; --card:#0E0E10; --card2:#1C1C20; --ink:#FFF; --ink-soft:#E0E3E7; --ink-faint:#B4BAC2; --rule:rgba(255,255,255,.32); }
@media (prefers-contrast: more){ :root{ --ink-faint:#6B7480; --brand-strong:#C92A3F; } }

/* ==========================================================================
   [Phase 0] 기반 디자인 시스템 & 토큰 아키텍처 (#TASK-UIUX-PHASE0-DESIGN-TOKENS)
   ========================================================================== */
.touch-target-44 {
  min-width: var(--touch-min, 44px);
  min-height: var(--touch-min, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 7세~70세 폰트 스케일 유틸 */
.text-scale-xs { font-size: var(--font-xs); }
.text-scale-sm { font-size: var(--font-sm); }
.text-scale-md { font-size: var(--font-md); }
.text-scale-lg { font-size: var(--font-lg); font-weight: 600; }
.text-scale-xl { font-size: var(--font-xl); font-weight: 700; }
.text-scale-2xl { font-size: var(--font-2xl); font-weight: 700; }

/* 시머링 스켈레톤 로딩 UI */
@keyframes skeletonPulse {
  0% { opacity: 0.45; }
  50% { opacity: 0.85; }
  100% { opacity: 0.45; }
}
.skeleton-pulse {
  animation: skeletonPulse 1.5s ease-in-out infinite;
  background: var(--surface-2, rgba(255,255,255,0.08));
  border-radius: var(--radius-sm, 10px);
}
.skeleton-card {
  min-height: 80px;
  width: 100%;
  border-radius: var(--radius, 16px);
}
.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* 터치 손맛 액티브 스케일 피드백 */
.btn-touch-active:active, .tab-btn:active, .action-chip:active {
  transform: scale(0.97);
  transition: transform 80ms ease;
}

/* ---------- 2. 리셋·베이스 ---------- */
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{margin:0;height:100%;}
html{font-size:calc(16px * var(--app-font-scale, 1));-webkit-text-size-adjust:100%;}
html[data-font-size="small"]{--app-font-scale:0.9333333333;}
html[data-font-size="large"]{--app-font-scale:1.15;}
html[data-font-size="xlarge"]{--app-font-scale:1.4;}
body{
  background:var(--bg); color:var(--ink); font-family:var(--font); font-size:.9375rem; line-height:1.5;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; overscroll-behavior-y:none; position:relative;
  letter-spacing:-.01em; font-variant-numeric:tabular-nums; overflow-x:hidden;
}
body.font-small,body.font-large,body.font-xlarge{font-size:.9375rem;}
body::before{content:none;}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;font-size:inherit;letter-spacing:inherit;touch-action:manipulation;}
a{color:inherit;text-decoration:none;touch-action:manipulation;}
h1,h2,h3,h4{font-family:var(--font);letter-spacing:-.02em;margin:0;font-weight:700;line-height:1.3;}
p{margin:0 0 8px;}
img,svg{display:inline-block;vertical-align:middle;}
::selection{background:var(--brand-soft);}
*:focus{outline:none;}
*:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}}
::view-transition-old(root),::view-transition-new(root){animation-duration:160ms;animation-timing-function:var(--ease);}

/* 입력 */
input,textarea,select{font-family:inherit;color:var(--ink);font-size:16px;letter-spacing:-.01em;}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=datetime-local],input[type=time],input[type=email],input[type=url],input[type=search],select,textarea{
  border:1.5px solid var(--rule);background:var(--input-bg);border-radius:var(--radius);padding:14px 16px;font-size:16px;outline:none;min-height:52px;width:100%;
  transition:border-color .15s var(--ease),background .15s var(--ease),box-shadow .15s var(--ease);appearance:none;-webkit-appearance:none;box-shadow:var(--shadow-sm);
}
select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238B95A1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:42px;}
textarea{min-height:96px;line-height:1.55;resize:vertical;}
input::placeholder,textarea::placeholder{color:var(--ink-faint);}
input:focus,select:focus,textarea:focus{border-color:var(--brand);background:var(--card);box-shadow:0 0 0 3px var(--brand-soft);}
input[type=date]::-webkit-calendar-picker-indicator,input[type=time]::-webkit-calendar-picker-indicator{opacity:.6;}
input[type=checkbox],input[type=radio]{accent-color:var(--brand);width:20px;height:20px;}
input[type=range]{accent-color:var(--brand);width:100%;padding:0;min-height:0;background:transparent;border:0;}
input[type=file]{min-height:0;padding:0;background:transparent;border:0;}
details summary{cursor:pointer;list-style:none;} details summary::-webkit-details-marker{display:none;}

/* 타이포 유틸 */
.muted{color:var(--ink-soft);font-size:.9rem;}
.faint{color:var(--ink-faint);font-size:.8rem;}
.s-eyebrow{display:none;}
.s-title{font-weight:700;font-size:1.5rem;margin:8px 0 16px;letter-spacing:-.02em;line-height:1.25;}

/* ---------- 3. 레이아웃 ---------- */
.app{max-width:var(--maxw);margin:0 auto;min-height:100vh;min-height:100dvh;position:relative;background:transparent;}
#appShell{display:none;min-height:100vh;min-height:100dvh;flex-direction:column;max-width:var(--maxw);width:100%;margin:0 auto;background:var(--bg);overflow-x:hidden;box-sizing:border-box;}
#appShell.active{display:flex;}
.topbar{position:sticky;top:0;z-index:var(--z-header, 60);background:var(--topbar-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding:max(6px, env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) 6px max(16px, env(safe-area-inset-left,0px));height:var(--topbar-h, 52px);min-height:var(--topbar-h, 52px);display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;}
.topbar .brand{font-weight:800;font-size:1.25rem;letter-spacing:-.03em;color:var(--ink);}
.topbar-right{display:flex;align-items:center;gap:6px;}
.topbar-action-btn{display:inline-flex;align-items:center;justify-content:center;font-size:11px;padding:3px 7px;border-radius:12px;font-weight:600;white-space:nowrap;cursor:pointer;transition:all .15s var(--ease);}
.topbar-action-btn:active{transform:scale(0.96);}
.topbar-guide-btn{display:inline-flex;align-items:center;gap:3px;font-size:11px;padding:3px 8px;border-radius:12px;border:1px solid rgba(99,102,241,0.4);background:rgba(99,102,241,0.08);color:var(--primary);font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:all .15s var(--ease);}
.topbar-guide-btn:hover{background:rgba(99,102,241,0.15);border-color:var(--primary);}
.topbar-guide-btn:active{transform:scale(0.96);}
#topUserName{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle;}
@media (max-width: 480px){
  #topUserName{max-width:70px;}
}
@media (max-width: 375px){
  #topUserName{max-width:52px;}
  .topbar-guide-btn{font-size:10.5px;padding:3px 6px;}
}
.topbar-notif-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;min-width:34px;min-height:34px;border-radius:50%;background:var(--card2);border:1px solid var(--rule);color:var(--ink);cursor:pointer;padding:0;flex-shrink:0;transition:all .15s var(--ease);}
.topbar-notif-btn:hover{background:var(--surface-2);transform:scale(1.05);}
.topbar-notif-btn:active{transform:scale(0.95);}
.topbar-notif-badge{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;font-size:10px;font-weight:800;min-width:16px;height:16px;border-radius:8px;display:none;align-items:center;justify-content:center;padding:0 3px;border:1.5px solid var(--card);line-height:1;box-shadow:0 1px 3px rgba(239,68,68,.4);}
.notif-center-item:hover{background:var(--surface-2)!important;transform:translateY(-1px);}
.topbar .user-chip{display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:600;color:var(--ink-soft);padding:2px;border-radius:999px;background:transparent;box-shadow:none;min-height:44px;min-width:44px;cursor:pointer;}
.topbar .user-chip:active{opacity:.7;}
.topbar .avatar{width:36px;height:36px;border-radius:50%;background:var(--surface-3);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;overflow:hidden;}
.topbar .avatar img{width:100%;height:100%;object-fit:cover;}
main.screens{flex:1;padding:4px 16px calc(var(--nav-h, 60px) + max(16px, env(safe-area-inset-bottom,0px)));overflow-x:hidden;box-sizing:border-box;width:100%;}
.screen{display:none;opacity:0;will-change:opacity,transform;}
.screen.active{display:block;animation:screen-in .14s cubic-bezier(0.16, 1, 0.3, 1) forwards;}
@keyframes screen-in{from{opacity:0.4;transform:translateY(2px);}to{opacity:1;transform:none;}}
@keyframes fadein{from{opacity:0;}to{opacity:1;}}
@keyframes fadeIn{from{opacity:0;}to{opacity:1;}}

/* [#UIUX-15] 상단 네트워크 오프라인/온라인 상태 인디케이터 배지 */
.network-status-banner{position:sticky;top:var(--topbar-h, 52px);z-index:25;display:flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px;font-size:0.8125rem;font-weight:600;color:#92400e;background:#fef3c7;border-bottom:1px solid #fde68a;box-shadow:0 2px 8px rgba(0,0,0,.06);animation:net-banner-slide .18s cubic-bezier(0.16,1,0.3,1);line-height:1.3;}
.network-status-banner.online-recovered{color:#065f46;background:#d1fae5;border-bottom:1px solid #a7f3d0;}
@keyframes net-banner-slide{from{opacity:0;transform:translateY(-8px);}to{opacity:1;transform:none;}}

/* [#UIUX-16] 중첩 아코디언 모션 부드러운 높이 애니메이션 */
.accordion-smooth-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s cubic-bezier(0.16, 1, 0.3, 1);}
.accordion-smooth-wrap.open{grid-template-rows:1fr;}
.accordion-smooth-inner{overflow:hidden;min-height:0;}

/* 바텀 내비 — 풀폭 플랫 바 & 글래스모피즘 */
.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:var(--z-nav, 50);display:flex;justify-content:center;pointer-events:none;padding:0;}
.bottomnav-inner{pointer-events:auto;max-width:var(--maxw);width:100%;background:var(--bottomnav-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);display:flex;padding:4px 4px max(4px, env(safe-area-inset-bottom,0px));border-radius:0;border-top:1px solid var(--rule);box-shadow:0 -4px 16px rgba(0,0,0,.04);box-sizing:border-box;}
.navbtn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--ink-faint);font-size:.6875rem;font-weight:500;padding:6px 0 4px;min-height:48px;border-radius:8px;transition:color .15s, transform .15s;position:relative;letter-spacing:-0.2px;white-space:nowrap;-webkit-tap-highlight-color:transparent;}
@media (max-width: 375px){.navbtn{font-size:.625rem;letter-spacing:-0.4px;padding:6px 1px 4px;}}
.navbtn svg{width:24px;height:24px;stroke-width:1.75;transition:transform .15s var(--ease), stroke-width .15s var(--ease);}
.navbtn.active{color:var(--brand);font-weight:600;}
.navbtn.active svg{stroke-width:2.2;transform:translateY(-1px) scale(1.06);}
.navbtn.active::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);width:20px;height:3px;background:var(--brand);border-radius:999px;box-shadow:0 1px 4px rgba(16,185,129,.4);}
.navbtn:active{opacity:.75;transform:scale(0.96);}
.navbtn .nav-badge{position:absolute;top:4px;left:calc(50% + 6px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--brand);color:var(--chip-ink);font-size:.625rem;font-weight:700;display:flex;align-items:center;justify-content:center;}

/* ---------- 4. 버튼 ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:var(--radius);font-weight:600;font-size:.9375rem;padding:0 18px;min-height:48px;line-height:1.2;transition:all .14s var(--ease);letter-spacing:-.01em;white-space:nowrap;user-select:none;}
.btn:active{opacity:.85;transform:scale(.97);}
.btn-primary{background:var(--brand);color:var(--chip-ink);box-shadow:0 2px 8px rgba(255,79,100,.28);border:none;}
.btn-primary:hover{background:var(--brand-strong);box-shadow:0 4px 14px rgba(255,79,100,.38);transform:translateY(-1px);}
.btn-primary:active{transform:scale(.97);box-shadow:0 1px 4px rgba(255,79,100,.25);}
.btn-block{width:100%;min-height:52px;font-size:1rem;}
.btn-ghost{background:var(--surface-2);color:var(--ink);border:1px solid transparent;}
.btn-ghost:hover{background:var(--surface-3);border-color:var(--rule);}
.btn-secondary{background:var(--surface-2);color:var(--ink);border:1px solid var(--rule);box-shadow:var(--shadow-sm);}
.btn-secondary:hover{background:var(--surface-3);border-color:var(--ink-faint);transform:translateY(-1px);}
.btn-danger{background:var(--brand-soft);color:var(--brand-strong);border:1px solid var(--brand-line);}
.btn-danger:hover{background:var(--brand);color:var(--chip-ink);}
.btn-mz{background:var(--brand);color:var(--chip-ink);box-shadow:0 2px 8px rgba(255,79,100,.28);}
.btn-sm{min-height:36px;padding:0 14px;font-size:.8125rem;border-radius:10px;box-shadow:var(--shadow-sm);}
.btn-sm:hover{transform:translateY(-1px);}
.btn:disabled:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){opacity:.4;cursor:not-allowed;transform:none !important;}
.btn-kakao{background:var(--kakao);color:var(--kakao-ink);}
.btn-google{background:var(--card);color:var(--ink);box-shadow:0 0 0 1px var(--rule) inset;}
.mz-btn{display:block;width:100%;text-align:center;padding:0 18px;min-height:52px;border-radius:var(--radius);font-weight:600;font-size:1rem;color:var(--chip-ink);background:var(--brand);box-shadow:0 2px 8px rgba(255,79,100,.28);margin-top:8px;letter-spacing:-.01em;transition:all .14s var(--ease);}
.mz-btn:hover{background:var(--brand-strong);box-shadow:0 4px 14px rgba(255,79,100,.38);transform:translateY(-1px);}
.mz-btn:active{opacity:.85;transform:scale(.97);}
.icon-btn{min-width:32px;min-height:32px;padding:4px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink-faint);border-radius:8px;font-size:.95rem;transition:background .12s,color .12s,transform .12s;}
.icon-btn:hover{color:var(--ink);background:var(--surface-2);transform:scale(1.05);}
.icon-btn:active{transform:scale(.95);}
.icon-btn[data-hubdel],.icon-btn[data-msdel],.icon-btn[data-deltask],.icon-btn[data-ngmsdel],.icon-btn[data-lgdeltask],.icon-btn[data-lgdelms],.icon-btn[data-lgdelgoal],.icon-btn[data-tgmdel],.icon-btn[data-tgdel],.icon-btn[data-delititem]{margin-left:12px;color:var(--ink-faint);}
.icon-btn[data-hubdel]:hover,.icon-btn[data-msdel]:hover,.icon-btn[data-deltask]:hover{color:var(--brand-strong);}
button:active,.goal-chip:active,.dock-action-btn:active{transform:scale(.97);transition:transform .12s var(--ease);}
.link{color:var(--info);font-weight:600;}

/* ---------- 5. 카드·리스트·구분 ---------- */
.card{background:var(--card);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm);margin-bottom:12px;border:var(--card-border);transition:all .18s var(--ease);}
.card:hover{border-color:rgba(0,0,0,.12);box-shadow:var(--shadow);}
[data-theme="black"] .card:hover,[data-theme="dark"] .card:hover,[data-theme="dark-space"] .card:hover,[data-theme="glowing-space"] .card:hover,[data-theme="deep-sea"] .card:hover,[data-theme="sunset-beach"] .card:hover,[data-theme="urban-city"] .card:hover{border-color:rgba(255,255,255,.18);}
.card-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px;}
.card h3{font-size:1.0625rem;font-weight:700;margin:0;letter-spacing:-.02em;}
.section-title{font-size:1.0625rem;font-weight:700;margin:24px 0 12px;letter-spacing:-.02em;}
.divider{height:1px;background:var(--rule);margin:16px 0;}
.list-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 0;border-bottom:1px solid var(--rule);}
.list-row:last-child{border-bottom:none;}
.chev{width:20px;height:20px;color:var(--ink-faint);flex:0 0 auto;}
.empty-goal{border:1.5px dashed var(--rule);border-radius:var(--radius-lg);padding:28px 20px;text-align:center;color:var(--ink-faint);font-size:.9375rem;margin-bottom:12px;background:var(--surface-2);transition:all .15s;}
.empty-goal:hover{border-color:var(--brand);background:var(--card);}
.empty-state{text-align:center;padding:40px 16px;color:var(--ink-faint);}
.empty-state .e-icon{display:none;}
.empty-state p{font-size:.9375rem;margin:0;font-weight:500;color:var(--ink-soft);}
.skeleton{position:relative;overflow:hidden;background:var(--surface-2);border-radius:8px;color:transparent!important;}
.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);animation:sk-shimmer 1.3s infinite;}
[data-theme="black"] .skeleton::after,[data-theme="dark"] .skeleton::after{background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);}
@keyframes sk-shimmer{to{transform:translateX(100%);}}
.skeleton-card{height:96px;border-radius:var(--radius-lg);margin-bottom:12px;}
.skeleton-line{height:14px;margin:8px 0;}
.spinner{width:20px;height:20px;border:2px solid var(--surface-3);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite;display:inline-block;}
@keyframes spin{to{transform:rotate(360deg);}}

/* ---------- 6. 칩·세그먼트·배지 ---------- */
.goal-chip-row,.cat-major-row,.theme-filter-row,.feed-filter-bar,.feed-quick-chips-row{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;margin:0 -20px 8px;padding-left:20px;padding-right:20px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.goal-chip-row::-webkit-scrollbar,.cat-major-row::-webkit-scrollbar,.theme-filter-row::-webkit-scrollbar,.feed-filter-bar::-webkit-scrollbar,.feed-quick-chips-row::-webkit-scrollbar{display:none;}
.goal-chip,.cat-major,.theme-filter-chip,.feed-filter-chip,.cat-sub,.ob-quick-action-chip,.quick-prose-chip{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;padding:0 14px;min-height:34px;border-radius:999px;font-size:.875rem;font-weight:500;background:var(--card);border:1px solid var(--rule);color:var(--ink);white-space:nowrap;transition:all .14s var(--ease);box-shadow:var(--shadow-sm);}
.goal-chip:hover,.cat-major:hover,.theme-filter-chip:hover,.feed-filter-chip:hover{transform:translateY(-1px);border-color:var(--brand);box-shadow:var(--shadow);}
.goal-chip.active,.cat-major.active,.theme-filter-chip.active,.feed-filter-chip.active,.cat-sub.active{background:var(--chip);color:var(--chip-ink);border-color:var(--chip);font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.15);}
.goal-chip.addchip{border:1px dashed var(--ink-faint);color:var(--ink-soft);background:transparent;box-shadow:none;}
.cat-sub{background:var(--surface-2);border-color:transparent;}
.feed-quick-chip{flex:0 0 auto;padding:0 12px;min-height:30px;display:inline-flex;align-items:center;border-radius:999px;font-size:.8125rem;font-weight:500;background:var(--surface-2);border:none;color:var(--ink-soft);transition:all .14s;}
.feed-quick-chip:hover{background:var(--surface-3);color:var(--ink);transform:translateY(-1px);}
.meta-strip{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px;}
/* 세그먼트 컨트롤 */
.comm-subtabs,.format-toggle,.adaptive-mode-bar,.auth-tabs,.pro-sw-modes{display:flex;gap:3px;background:var(--surface-2);border-radius:12px;padding:4px;margin-bottom:16px;overflow-x:auto;scrollbar-width:none;border:1px solid var(--rule-soft);}
.comm-subtabs::-webkit-scrollbar{display:none;}
.comm-subtab,.format-opt,.mode-chip,.auth-tab,.pro-sw-mode-chip{flex:1 0 auto;text-align:center;padding:0 14px;min-height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;font-size:.875rem;font-weight:600;color:var(--ink-soft);cursor:pointer;white-space:nowrap;border:none;background:transparent;transition:all .15s var(--ease);}
.comm-subtab.active,.format-opt.active,.mode-chip.active,.auth-tab.active,.pro-sw-mode-chip.active{background:var(--card);color:var(--ink);font-weight:700;box-shadow:0 2px 6px rgba(0,0,0,.08);border:none;}
[data-theme="black"] .comm-subtab.active,[data-theme="dark"] .comm-subtab.active,[data-theme="black"] .format-opt.active,[data-theme="dark"] .format-opt.active,[data-theme="black"] .mode-chip.active,[data-theme="dark"] .mode-chip.active,[data-theme="black"] .auth-tab.active,[data-theme="dark"] .auth-tab.active{background:var(--surface-3);}
[data-theme="black"] .comm-subtab.active,[data-theme="dark"] .comm-subtab.active,[data-theme="black"] .format-opt.active,[data-theme="dark"] .format-opt.active,[data-theme="black"] .mode-chip.active,[data-theme="dark"] .mode-chip.active,[data-theme="black"] .auth-tab.active,[data-theme="dark"] .auth-tab.active{background:var(--surface-3);}
.comm-subtabs{background:transparent;padding:0;gap:0;border-bottom:1px solid var(--rule);border-radius:0;margin:0 -20px 16px;padding:0 12px;}
.comm-subtab{border-radius:0;min-height:44px;padding:0 10px;position:relative;font-size:.9375rem;}
.comm-subtab.active{background:transparent;box-shadow:none;}
.comm-subtab.active::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:2px;background:var(--ink);border-radius:2px;}
[data-theme="black"] .comm-subtab.active,[data-theme="dark"] .comm-subtab.active{background:transparent;}
.edit-toggle{padding:0 14px;min-height:34px;border-radius:999px;font-size:.8125rem;font-weight:600;transition:background .15s,color .15s;}
.edit-toggle.off{background:var(--surface-2);color:var(--ink);border:none;}
.edit-toggle.on{background:var(--brand);color:var(--chip-ink);border:none;box-shadow:0 2px 8px rgba(99,102,241,0.35);font-weight:700;}
/* 배지·필 */
.dday-pill,.dday-mini,.streak-pill,.freeze-pill,.topic-pill,.privacy-badge,.market-badge,.pro-tpl-badge,.notion-push-status-pill,.rec-dur,.tag,.ms-priority-tag,.feed-c-badge,.feed-ai-tag,.pro-trend-growth-badge,.crew-badge{display:inline-flex;align-items:center;gap:4px;font-family:var(--font);font-size:.75rem;font-weight:600;line-height:1;padding:0 8px;min-height:22px;border-radius:6px;background:var(--surface-2);color:var(--ink-soft);white-space:nowrap;vertical-align:middle;border:none;box-shadow:none;letter-spacing:0;}
.dday-pill{background:var(--surface-2);color:var(--ink-soft);}
.dday-pill.active{background:var(--chip);color:var(--chip-ink);}
.dday-mini{color:var(--brand-strong);background:var(--brand-soft);margin-left:4px;}
.dday-mini.over{color:var(--ink-faint);background:var(--surface-2);}
.streak-pill{background:var(--surface-2);color:var(--ink-soft);}
.streak-t2{background:var(--gold-soft);color:#B45309;}
.streak-t3,.streak-t4{background:var(--brand-soft);color:var(--brand-strong);animation:none;}
.freeze-pill{margin-left:6px;background:var(--violet-soft);color:var(--info);}
.topic-pill{background:var(--violet-soft);color:var(--info);}
.privacy-badge{cursor:pointer;user-select:none;background:var(--surface-2);color:var(--ink-soft);}
.privacy-badge:hover{background:var(--surface-3);color:var(--ink);}
.tag.on{background:var(--violet-soft);color:var(--info);}
.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.ms-priority-tag{cursor:pointer;user-select:none;font-size:.6875rem;min-height:20px;padding:0 6px;}
.ms-priority-tag:hover{transform:none;}
.ms-priority-high{background:var(--brand-soft);color:var(--brand-strong);}
.ms-priority-med{background:var(--gold-soft);color:#B45309;}
.ms-priority-low{background:var(--sage-soft);color:#0E8A66;}
.feed-c-badge.badge-author{background:var(--gold-soft);color:#B45309;}
.feed-c-badge.badge-ai{background:var(--violet-soft);color:var(--info);}
.feed-ai-tag{background:var(--violet-soft);color:var(--info);margin-left:6px;}
.pro-trend-growth-badge.up{background:var(--sage-soft);color:#0E8A66;}
.pro-trend-growth-badge.down{background:var(--brand-soft);color:var(--brand-strong);}
.notion-push-status-pill.connected{background:var(--sage-soft);color:#0E8A66;}
.crew-badge{background:var(--surface-2);color:var(--ink-soft);}
.badge{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;color:#fff;flex-direction:column;box-shadow:none;}
.badge-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.75rem;color:var(--ink-soft);font-weight:500;}
.share-badges{display:flex;gap:12px;margin:14px 0 6px;flex-wrap:wrap;}
/* 스위치 */
.switch{width:51px;height:31px;border-radius:16px;background:var(--surface-3);position:relative;flex:0 0 auto;transition:background .2s;cursor:pointer;}
.switch.on{background:var(--brand);}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;transition:transform .2s var(--ease);box-shadow:0 2px 4px rgba(0,0,0,.2);}
.switch.on::after{transform:translateX(20px);}
.switch.locked{opacity:0.65;cursor:not-allowed;}
.toggle-row{display:flex;align-items:center;gap:12px;background:transparent;border-radius:0;padding:14px 0;box-shadow:none;border-bottom:1px solid var(--rule);min-height:56px;}
.toggle-row:last-child{border-bottom:none;}
.toggle-row .t{flex:1;font-size:.9375rem;font-weight:500;color:var(--ink);}
/* 프로그레스 */
.balance-bar-wrap,.daily-quest-track,.group-bar,.mini-bar,.collective-track{height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden;display:flex;}
.balance-bar-wrap{height:8px;margin-bottom:12px;}
.balance-seg{height:100%;transition:width .3s ease;}
.daily-quest-track{margin-top:8px;}
.daily-quest-fill,.group-bar span,.mini-bar span,.collective-fill{display:block;height:100%;border-radius:999px;background:var(--brand);transition:width .4s var(--ease);}
.mini-bar{height:5px;margin-top:6px;} .mini-bar span{background:var(--sage);}
.group-bar{margin-top:8px;}
.progress-ring{--pr:0;width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--brand) calc(var(--pr) * 1%),var(--surface-3) 0);display:grid;place-items:center;}
.progress-ring::after{content:attr(data-pct);width:44px;height:44px;border-radius:50%;background:var(--card);display:grid;place-items:center;font-size:.75rem;font-weight:700;}

/* ---------- 7. 공간적 영속성 바텀시트 엔진 ---------- */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:var(--z-sheet, 100);display:none;align-items:flex-end;justify-content:center;animation:fadein .18s ease;touch-action:none;}
.modal-overlay.active{display:flex;}
.modal-sheet{position:relative;width:100%;max-width:var(--maxw);background:var(--card);border-radius:24px 24px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom, 0px));box-shadow:0 -12px 36px rgba(0,0,0,.45);border-top:1px solid var(--rule);border-left:1px solid var(--rule);border-right:1px solid var(--rule);animation:sheetup .24s cubic-bezier(0.16, 1, 0.3, 1);max-height:82vh;overflow-y:auto;overscroll-behavior:contain;will-change:transform;}
.modal-sheet::before{content:"";display:block;width:40px;height:4.5px;border-radius:999px;background:var(--surface-3);margin:4px auto 14px;cursor:grab;}
.modal-sheet-close{position:absolute;top:10px;right:12px;width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--ink-soft);font-size:1.35rem;font-weight:700;cursor:pointer;background:var(--card2);border:1px solid var(--rule);z-index:10;transition:all .15s ease;-webkit-tap-highlight-color:transparent;}
.modal-sheet-close:active{transform:scale(0.92);background:var(--surface-2);}
@keyframes sheetup{from{transform:translateY(100%);opacity:.6;}to{transform:none;opacity:1;}}
.modal-sheet h3{font-size:1.2rem;font-weight:700;margin:0 0 16px;letter-spacing:-.02em;color:var(--ink);padding-right:48px;}
.modal-actions{display:flex;gap:10px;margin-top:20px;}
.toast{position:fixed;left:50%;bottom:calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%) translateY(8px);background:#2B3138;color:#fff;padding:12px 18px;border-radius:12px;font-size:.875rem;font-weight:500;z-index:100005;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s var(--ease);box-shadow:var(--shadow-float);white-space:normal;max-width:calc(100vw - 40px);width:max-content;text-align:center;line-height:1.4;}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
body:has(#checkinAiSheetBackdrop) .toast,
body:has(.checkin-ai-backdrop) .toast {
  top: calc(16px + env(safe-area-inset-top,0px));
  bottom: auto;
  transform: translateX(-50%) translateY(-8px);
}
body:has(#checkinAiSheetBackdrop) .toast.show,
body:has(.checkin-ai-backdrop) .toast.show {
  transform: translateX(-50%) translateY(0);
}
.notify-banner{background:var(--ink);color:var(--bg);border-radius:var(--radius-lg);padding:16px;margin-bottom:16px;display:flex;align-items:center;gap:12px;animation:fadein .2s ease;box-shadow:none;}
.notify-banner .nb-txt{flex:1;font-size:.875rem;line-height:1.45;}
.notify-banner .nb-txt b{display:block;font-size:.9375rem;margin-bottom:2px;font-weight:700;}
.notify-banner button{background:var(--bg);color:var(--ink);padding:0 14px;min-height:36px;border-radius:10px;font-size:.8125rem;font-weight:600;}
.notify-banner.levelup{background:var(--ink);}
#levelUpBannerSlot{position:fixed;top:calc(12px + env(safe-area-inset-top,0px));left:16px;right:16px;z-index:250;max-width:448px;margin:0 auto;}
#levelUpBannerSlot .notify-banner{margin-bottom:0;box-shadow:var(--shadow-float);}
.offline-banner{background:var(--gold-soft);color:#92400E;border:none;border-radius:var(--radius);padding:12px 14px;font-size:.8125rem;font-weight:500;margin-bottom:12px;display:flex;align-items:center;gap:8px;line-height:1.45;}
.ai-badge-notice{display:flex;align-items:flex-start;gap:6px;background:var(--surface-2);border:none;border-radius:10px;padding:10px 12px;margin-top:8px;font-size:.8125rem;color:var(--ink-soft);line-height:1.45;word-break:keep-all;}
.ai-badge-notice .ai-icon{display:none;}
.banner-inline{display:flex;align-items:center;gap:10px;background:var(--surface-2);border-radius:var(--radius);padding:12px 14px;font-size:.875rem;color:var(--ink-soft);margin-bottom:12px;}
.fab{position:fixed;right:20px;bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom,0px));width:56px;height:56px;border-radius:16px;background:var(--brand);color:var(--chip-ink);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-float);z-index:25;transition:transform .15s var(--ease),opacity .15s;}
.fab svg{width:26px;height:26px;}
.fab:active{transform:scale(.94);}
.fab.hide{opacity:0;pointer-events:none;transform:translateY(12px);}
@media (min-width:520px){.fab{right:calc(50% - var(--maxw)/2 + 20px);}}
.back-to-top{position:fixed;left:20px;bottom:calc(var(--nav-h) + 20px + env(safe-area-inset-bottom,0px));width:40px;height:40px;border-radius:50%;background:var(--card);border:1px solid var(--rule);color:var(--ink);display:flex;align-items:center;justify-content:center;z-index:25;box-shadow:var(--shadow-float);opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .18s,transform .18s var(--ease);}
.back-to-top.show{opacity:1;pointer-events:auto;transform:none;}
.back-to-top svg{width:20px;height:20px;}
@media (min-width:520px){.back-to-top{left:calc(50% - var(--maxw)/2 + 20px);}}
.ptr-indicator{position:absolute;left:0;right:0;top:calc(var(--topbar-h) + env(safe-area-inset-top,0px));display:flex;justify-content:center;pointer-events:none;height:0;overflow:visible;z-index:19;}
.ptr-indicator .spinner{opacity:0;transform:scale(.6);transition:opacity .15s,transform .15s;margin-top:8px;}
.ptr-indicator.armed .spinner{opacity:1;transform:scale(1);}
.ptr-indicator.loading .spinner{opacity:1;transform:scale(1);}
.swipe-row{position:relative;overflow:hidden;border-radius:var(--radius-lg);}
.swipe-row .swipe-actions{position:absolute;inset:0 0 0 auto;display:flex;align-items:stretch;}
.swipe-row .swipe-actions button{width:72px;background:var(--brand);color:var(--chip-ink);font-weight:600;font-size:.8125rem;border-radius:0 var(--radius-lg) var(--radius-lg) 0;}
.swipe-row .swipe-content{position:relative;background:var(--card);transition:transform .2s var(--ease);will-change:transform;}
.tooltip{position:relative;}
.tooltip[data-tip]:hover::after{content:attr(data-tip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);background:#2B3138;color:#fff;font-size:.75rem;padding:6px 8px;border-radius:6px;white-space:nowrap;z-index:50;}

/* ---------- 8. 랜딩·로그인·온보딩 ---------- */
#landingScreen{min-height:100vh;display:flex;flex-direction:column;max-width:var(--maxw);margin:0 auto;padding:0;background:var(--bg);}
.land-hero{flex:1;display:flex;flex-direction:column;justify-content:center;padding:calc(56px + env(safe-area-inset-top,0px)) 24px 24px;}
.land-mark{font-weight:800;font-size:1.75rem;letter-spacing:-.03em;margin-bottom:6px;color:var(--ink);background:none;-webkit-text-fill-color:currentColor;}
.land-tag{font-family:var(--font);font-size:.8125rem;color:var(--ink-faint);letter-spacing:0;margin-bottom:28px;font-weight:500;}
.land-headline{font-weight:700;font-size:1.75rem;line-height:1.3;margin:0 0 32px;max-width:16ch;letter-spacing:-.025em;color:var(--ink);}
.land-feats{display:flex;flex-direction:column;gap:0;margin-bottom:8px;}
.land-feat{display:flex;gap:14px;align-items:flex-start;background:transparent;border-radius:0;padding:14px 0;box-shadow:none;border-bottom:1px solid var(--rule);}
.land-feat:last-child{border-bottom:none;}
.land-feat .dot{width:36px;height:36px;border-radius:10px;margin-top:0;flex:0 0 auto;background:var(--surface-2)!important;display:flex;align-items:center;justify-content:center;color:var(--ink);}
.land-feat .dot svg{width:20px;height:20px;}
.land-feat b{font-size:.9375rem;display:block;font-weight:600;margin-bottom:2px;}
.land-feat span{font-size:.8125rem;color:var(--ink-soft);line-height:1.45;}
.land-cta{padding:16px 24px calc(20px + env(safe-area-inset-bottom));}
.land-login-link{display:block;text-align:center;margin-top:14px;font-size:.875rem;color:var(--ink-soft);font-weight:500;}
.land-login-link b{color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.oauth-row{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;}
.oauth-row .btn{min-height:52px;font-size:1rem;font-weight:600;}
.auth-divider{display:flex;align-items:center;gap:10px;margin:8px 0 18px;font-size:.75rem;color:var(--ink-faint);}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--rule);}
#authScreen{min-height:100vh;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:calc(40px + env(safe-area-inset-top,0px)) 24px 32px;max-width:var(--maxw);margin:0 auto;background:var(--bg);}
.auth-brand{text-align:left;margin-bottom:28px;}
.auth-brand .mark{font-weight:800;font-size:1.75rem;letter-spacing:-.03em;background:none;-webkit-text-fill-color:currentColor;color:var(--ink);}
.auth-brand .tag{font-family:var(--font);font-size:.8125rem;color:var(--ink-faint);letter-spacing:0;margin-top:4px;font-weight:500;}
.auth-card{width:100%;background:transparent;border-radius:0;box-shadow:none;padding:0;}
.auth-tabs{margin-bottom:20px;}
.field{margin-bottom:14px;}
.field label{display:block;font-size:.8125rem;font-weight:600;color:var(--ink-soft);margin-bottom:8px;letter-spacing:0;}
.field input,.field select,.field textarea{width:100%;}
.field .help{font-size:.75rem;color:var(--ink-faint);margin-top:6px;display:block;}
.field.error input{border-color:var(--brand-strong);}
.field .error-msg{font-size:.75rem;color:var(--brand-strong);margin-top:6px;display:block;}
.auth-error{color:var(--brand-strong);font-size:.8125rem;margin:-4px 0 12px;min-height:1em;font-weight:500;}
.auth-note{text-align:center;font-size:.75rem;color:var(--ink-faint);margin-top:16px;line-height:1.6;}
.auth-note a{color:var(--ink-soft)!important;text-decoration:underline;text-underline-offset:2px;}
.ob-step-label{font-family:var(--font);font-size:.8125rem;color:var(--ink-faint);margin-bottom:6px;font-weight:600;letter-spacing:0;}
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 18px;}
.cat-chip{border:1px solid var(--rule);border-radius:var(--radius);padding:16px 8px;text-align:center;background:var(--card);transition:background .15s,border-color .15s;cursor:pointer;}
.cat-chip .ico{font-size:1.4rem;display:block;margin-bottom:6px;}
.cat-chip .lbl{font-size:.8125rem;font-weight:600;}
.cat-chip.active{border-color:var(--ink);background:var(--surface-2);transform:none;}
.tmpl-preview{background:var(--surface-2);border-radius:var(--radius);padding:12px 14px;font-size:.875rem;color:var(--ink-soft);margin-bottom:6px;}
.tmpl-preview .tp-item{padding:4px 0;font-weight:500;}
.btn-preset-goal{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px 16px;border-radius:var(--radius);border:1px solid var(--rule);background:var(--card);color:var(--ink);font-size:.9375rem;font-weight:500;cursor:pointer;transition:background .15s;text-align:left;min-height:52px;}
.btn-preset-goal:hover{background:var(--surface-2);border-color:var(--rule);transform:none;}
.welcome-reward-card{background:var(--surface-2);border:none;border-radius:var(--radius-lg);padding:20px;margin:12px 0 16px;text-align:center;}
.welcome-reward-card b{font-size:1.0625rem;color:var(--ink);display:block;margin-bottom:6px;}
.soft-ask-card{background:var(--surface-2);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px;text-align:center;}
.soft-ask-icon{display:none;}
.step-indicator{display:flex;gap:6px;margin-bottom:16px;}
.step-indicator span{flex:1;height:3px;border-radius:2px;background:var(--surface-3);}
.step-indicator span.on{background:var(--ink);}

/* ---------- 9. 홈 ---------- */
.home-greet{font-size:1.5rem;font-weight:700;letter-spacing:-.025em;line-height:1.3;margin:8px 0 4px;}
.home-date{font-size:.875rem;color:var(--ink-faint);margin-bottom:16px;}
.today-glance-pill{margin:0 0 16px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;min-height:34px;background:var(--surface-2);border:none;border-radius:999px;font-size:.8125rem;font-weight:500;color:var(--ink-soft);box-shadow:none;cursor:pointer;transition:background .15s;}
.today-glance-pill:hover{border-color:transparent;transform:none;background:var(--surface-3);}
.adaptive-mode-bar{margin:0 0 12px;}
.daily-quest-bar-wrap{margin:0 0 12px;padding:14px 16px;background:var(--card);border:var(--card-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.daily-quest-bar-wrap:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.daily-quest-fill{background:var(--brand);}
.level-badge-row{margin:0 0 12px;}
.level-badge{display:flex;align-items:center;gap:12px;background:var(--card);border:var(--card-border);border-radius:var(--radius-lg);padding:12px 16px;box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.level-badge:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.level-badge .level-num{flex:0 0 auto;font-weight:700;font-size:.8125rem;color:var(--bg);background:var(--ink);padding:0 10px;min-height:24px;display:inline-flex;align-items:center;border-radius:999px;}
.level-badge .level-bar-wrap{flex:1;min-width:0;}
.level-badge .level-xp-txt{font-size:.75rem;color:var(--ink-faint);font-family:var(--font);margin-top:4px;display:block;}
.crew-pacing-widget{background:var(--card);border-radius:var(--radius-lg);padding:16px;border:var(--card-border);box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.crew-pacing-widget:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.crew-pacing-widget:active{transform:none;}
.crew-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:8px;}
.crew-head-l{display:flex;align-items:center;gap:8px;min-width:0;}
.crew-title{font-size:.8125rem;font-weight:600;color:var(--ink);}
.crew-score{font-size:.75rem;color:var(--ink-soft);}
.crew-track{width:100%;height:6px;background:var(--surface-3);border-radius:3px;overflow:hidden;margin:8px 0 10px;}
.crew-fill{width:0;height:100%;background:var(--brand);border-radius:3px;transition:width .4s ease;}
.crew-foot{display:flex;justify-content:space-between;align-items:center;font-size:.75rem;color:var(--ink-soft);gap:8px;}
#ambientCheckinCard{transition:none;} #ambientCheckinCard:hover{transform:none;}
.capture-card{border:var(--card-border);background:var(--card);box-shadow:var(--shadow-sm);padding:16px 16px 14px;border-radius:var(--radius-lg);transition:all .15s var(--ease);}
.capture-card:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.capture-title{font-weight:700;color:var(--ink);font-size:1.0625rem;letter-spacing:-.02em;margin-bottom:2px;}
.capture-sub{font-size:.8125rem;color:var(--ink-faint);margin-bottom:12px;}
.capture-card textarea{width:100%;border:none;background:transparent;resize:none;font-size:0.9375rem;min-height:36px;height:38px;padding:0;margin:4px 0 2px;line-height:1.4;border-radius:0;}
.capture-card textarea::placeholder{font-size:0.8125rem;color:var(--ink-faint);}
.capture-card textarea:focus{outline:none;box-shadow:none;background:transparent;border:none;}
.capture-card .goal-chip-row{margin-left:0;margin-right:0;padding-left:0;padding-right:0;}
.capture-row{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;}
.capture-row .btn{min-height:44px;}
.capture-ta-wrap{position:relative;}
.capture-ta-wrap textarea{padding-right:44px;}
.mic-btn{position:absolute;right:0;bottom:8px;width:36px;height:36px;border-radius:50%;border:none;background:var(--surface-2);color:var(--ink-soft);display:flex;align-items:center;justify-content:center;cursor:pointer;}
.mic-btn svg{width:18px;height:18px;}
.mic-btn.listening{background:var(--brand);color:var(--chip-ink);animation:mic-pulse 1.1s ease-in-out infinite;}
@keyframes mic-pulse{0%{box-shadow:0 0 0 0 rgba(255,79,100,.4);}70%{box-shadow:0 0 0 10px rgba(255,79,100,0);}100%{box-shadow:0 0 0 0 rgba(255,79,100,0);}}
.mic-status{display:block;text-align:right;font-size:.75rem;color:var(--brand-strong);font-weight:600;margin:-4px 0 4px;}
.capture-live-meta{display:none;font-size:.75rem;color:var(--ink-soft);margin:0 0 8px;padding:6px 10px;background:var(--surface-2);border-radius:8px;align-items:center;justify-content:space-between;border:none;}
.capture-char-count{color:var(--ink-faint);}
.mission-card{background:var(--card);border-radius:var(--radius-lg);padding:16px;margin:0 0 12px;box-shadow:var(--shadow-sm);border:var(--card-border);display:block;transition:all .15s var(--ease);}
.mission-card:hover{box-shadow:var(--shadow);transform:translateY(-1px);}
.mission-card .ct-label{font-size:.8125rem;font-weight:600;color:var(--ink-faint);margin-bottom:8px;}
.mission-card .mi{display:none;}
.mission-card b{display:block;font-size:.9375rem;font-weight:600;}
.mission-card span{font-size:.8125rem;color:var(--ink-soft);}
.mission-row{display:flex;align-items:flex-start;gap:10px;padding:10px 0;font-size:.875rem;}
.mission-row + .mission-row{border-top:1px solid var(--rule);}
.mission-row .m-icon{flex:0 0 auto;}
.mission-row .m-goal{font-weight:600;color:var(--ink);}
.mission-row .m-text{color:var(--ink-soft);}
.fb-card{border-radius:var(--radius-lg);padding:16px;margin:0 0 12px;font-size:.875rem;animation:fadein .2s ease;box-shadow:var(--shadow-sm);border:var(--card-border);background:var(--card);border-left:3.5px solid var(--rule);transition:all .15s var(--ease);}
.fb-card:hover{box-shadow:var(--shadow);}
.fb-card.good{background:var(--card);border-left-color:var(--sage);}
.fb-card.mid{background:var(--card);border-left-color:var(--gold);}
.fb-card.bad{background:var(--card);border-left-color:var(--brand);}
.fb-verdict{font-weight:700;margin-bottom:4px;font-size:.9375rem;}
.fb-card.good .fb-verdict{color:#0E8A66;} .fb-card.mid .fb-verdict{color:#B45309;} .fb-card.bad .fb-verdict{color:var(--brand-strong);}
.fb-row{color:var(--ink-soft);margin-top:4px;line-height:1.5;}
.fb-close{float:right;color:var(--ink-faint);font-size:1.1rem;cursor:pointer;line-height:1;padding:2px 4px;}
.fb-source{font-family:var(--font);font-size:.6875rem;color:var(--ink-faint);margin-top:8px;}
.goal-card{background:var(--card);border-radius:var(--radius-lg);padding:16px;box-shadow:var(--shadow-sm);margin-bottom:10px;border:var(--card-border);transition:all .18s var(--ease);}
.goal-card:hover{border-color:rgba(37,99,235,.35);box-shadow:var(--shadow);transform:translateY(-1px);}
.goal-card:active{transform:scale(.985);background:var(--surface-2);}
.goal-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px;}
.goal-card-top h4{font-size:1rem;font-weight:600;margin:0;line-height:1.4;letter-spacing:-.015em;}
.goal-body{display:flex;gap:14px;align-items:center;}
.gauge{flex:0 0 auto;}
.goal-stats{flex:1;font-size:.8125rem;color:var(--ink-soft);}
.goal-stats .ms-total{font-weight:600;margin-bottom:2px;color:var(--ink);}
.goal-stats .ms-break{color:var(--ink-soft);font-size:.8125rem;}
.goal-detail-link{display:block;text-align:right;font-size:.8125rem;color:var(--ink-soft);font-weight:600;margin-top:12px;padding-top:12px;border-top:1px solid var(--rule);}
.home-actions{display:flex;gap:8px;margin-top:12px;}
.home-actions .btn,.home-actions .mz-btn{flex:1;margin:0;min-height:48px;font-size:.9375rem;}
.home-recent-title{display:flex;align-items:center;justify-content:space-between;margin:24px 0 8px;}
.streak-flame-pulse{display:inline-block;animation:none;}
.confetti-piece{position:absolute;width:8px;height:14px;border-radius:3px;opacity:0;animation:confetti-fall .9s ease-out forwards;}
#confettiLayer{position:fixed;inset:0;pointer-events:none;z-index:300;overflow:hidden;}
@keyframes confetti-fall{0%{opacity:1;transform:translate3d(0,0,0) rotate(0deg);}100%{opacity:0;transform:translate3d(var(--dx),var(--dy),0) rotate(var(--rot));}}
.btn-cs-pulse{animation:cs-pulse .36s ease;}
@keyframes cs-pulse{0%{transform:scale(1);}45%{transform:scale(1.06);}100%{transform:scale(1);}}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.85;}}
body[data-ux-mode="minimal"] #homeGrassSummaryCard,body[data-ux-mode="minimal"] #customFeedbackBtn,body[data-ux-mode="minimal"] #homeChallengeRoomBtn{display:none!important;}
body[data-ux-mode="gamified"] #dailyQuestBarWrap{display:block!important;margin-bottom:12px;}
body[data-ux-mode="analyst"] #homeGrassSummaryCard{display:block!important;}

/* ---------- 10. 목표 ---------- */
.goal-head-row{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px;gap:8px;}
.goal-head-row h2{font-size:1.375rem;font-weight:700;margin:0;letter-spacing:-.02em;}
.goal-head-l{display:flex;align-items:center;gap:8px;}
.duedate-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--rule);margin-bottom:0;gap:8px;}
.duedate-row .lbl{font-size:.8125rem;color:var(--ink-faint);font-weight:500;}
.duedate-row input[type=date]{border:1px solid var(--rule);border-radius:8px;padding:6px 10px;font-size:.8125rem;color:var(--ink);background:var(--card);min-height:36px;width:auto;}
.duedate-row select{padding:6px 32px 6px 10px;font-size:.8125rem;border-radius:8px;min-height:36px;width:auto;}
.goal-summary-card{display:flex;align-items:center;gap:16px;padding:16px;border:1px solid var(--rule);border-radius:var(--radius-lg);margin-bottom:12px;background:var(--card);}
.ms-list{display:flex;flex-direction:column;gap:0;margin-top:4px;border:1px solid var(--rule);border-radius:var(--radius-lg);overflow:hidden;background:var(--card);}
.ms-row{background:var(--card);border-radius:0;padding:12px 14px;box-shadow:none;position:relative;border-left:none;border-bottom:1px solid var(--rule);transition:background .15s;}
.ms-row:last-child{border-bottom:none;}
.ms-row.doing{border-left-color:transparent;background:var(--card);}
.ms-row:has(.ms-status.done){border-left-color:transparent;}
.ms-row.selected{box-shadow:inset 0 0 0 2px var(--ink);}
.ms-main{display:flex;align-items:center;gap:10px;}
.ms-status{width:24px;height:24px;border-radius:50%;flex:0 0 auto;border:1.5px solid var(--ink-disabled);display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;color:#fff;transition:background .15s,border-color .15s;}
.ms-status.todo{border-color:var(--ink-disabled);background:transparent;color:transparent;}
.ms-status.todo:empty::after{content:'';}
.ms-status.doing{border-color:var(--brand);background:transparent;position:relative;}
.ms-status.doing:empty::after{content:'';width:10px;height:10px;border-radius:50%;background:var(--brand);}
.ms-status.done{border-color:var(--sage);background:var(--sage);}
.ms-status.done:empty::after{content:'';width:6px;height:10px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px);font-size:0;}
.ms-title{flex:1;font-size:.9375rem;font-weight:500;background:transparent;border:none;padding:2px 0;min-width:0;letter-spacing:-.01em;min-height:0;width:auto;border-radius:0;}
.ms-title.done-text{text-decoration:line-through;color:var(--ink-faint);font-weight:400;}
.ms-title:focus{outline:none;border-bottom:1.5px solid var(--ink);box-shadow:none;background:transparent;border-radius:0;}
.ms-date{font-family:var(--font);font-size:.75rem;color:var(--ink-soft);border:none;border-radius:6px;padding:2px 6px;background:var(--surface-2);display:inline-flex;align-items:center;}
.ms-date input{border:none;background:transparent;font-family:inherit;font-size:.75rem;color:inherit;width:118px;min-width:118px;padding:2px 0;min-height:0;border-radius:0;}
.ms-date input:focus{box-shadow:none;background:transparent;border:none;}
.ms-actions{display:flex;gap:6px;align-items:center;flex:0 0 auto;}
.task-list{margin:8px 0 0 34px;display:flex;flex-direction:column;gap:2px;border-left:none;padding-left:0;}
.task-row{display:flex;align-items:center;gap:10px;padding:6px 0;}
.task-row.selected{background:var(--surface-2);border-radius:8px;padding:6px 8px;margin-left:-8px;}
.task-check{width:18px;height:18px;border-radius:5px;border:1.5px solid var(--ink-disabled);flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:.6rem;color:#fff;}
.task-check.done{background:var(--ink);border-color:var(--ink);}
.task-title{flex:1;font-size:.875rem;font-weight:400;background:transparent;border:none;padding:2px 0;min-width:0;min-height:0;width:auto;border-radius:0;}
.task-title:focus{box-shadow:none;background:transparent;border-bottom:1.5px solid var(--ink);border-radius:0;}
.task-title.done-text{text-decoration:line-through;color:var(--ink-faint);}
.task-add{margin:6px 0 0 34px;font-size:.8125rem;font-weight:500;color:var(--ink-soft);border:none;border-radius:8px;padding:6px 0;display:inline-block;background:transparent;}
.task-add:hover{color:var(--ink);}
.add-ms-btn{margin-top:10px;width:100%;min-height:48px;padding:0 12px;border-radius:var(--radius);border:1px dashed var(--ink-disabled);color:var(--ink-soft);font-weight:500;font-size:.875rem;text-align:center;background:transparent;}
.drag-hint{text-align:center;font-size:.75rem;color:var(--ink-faint);font-family:var(--font);margin-top:10px;}
.drag-handle{width:16px;flex:0 0 auto;display:flex;flex-direction:column;gap:3px;cursor:grab;padding:4px 2px;}
.drag-handle span{display:block;width:12px;height:2px;border-radius:2px;background:var(--ink-disabled);opacity:1;}
.ms-row[draggable=true].dragging{opacity:.4;}
.ms-row.drop-target{box-shadow:inset 0 0 0 2px var(--brand);}
.sel-check{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--ink-disabled);flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#fff;transition:background .12s;}
.sel-check.on{background:var(--ink);border-color:var(--ink);}
.sel-bar{position:sticky;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom));z-index:15;display:flex;gap:8px;align-items:center;background:var(--ink);color:var(--bg);border-radius:var(--radius);padding:10px 12px;margin-top:12px;box-shadow:var(--shadow-float);animation:fadein .2s ease;}
.sel-bar b{flex:1;font-size:.875rem;font-weight:600;}
.sel-bar .btn{padding:0 12px;min-height:36px;font-size:.8125rem;border-radius:8px;background:var(--bg);color:var(--ink);}
.result-btn{flex:0 0 auto;min-width:62px;padding:6px 8px;border-radius:8px;background:var(--surface-2);font-family:var(--font);font-size:.6875rem;font-weight:600;color:var(--ink-soft);text-align:center;line-height:1.3;transition:background .12s;}
.result-btn:active{transform:scale(.96);}
.result-btn.has{background:var(--sage-soft);color:#0E8A66;}
.result-btn.miss{background:var(--gold-soft);color:#B45309;}
.archive-card{background:var(--card);border-radius:var(--radius-lg);padding:16px;margin-bottom:10px;box-shadow:none;border:1px solid var(--rule);border-left:1px solid var(--rule);}
.archive-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;}
.archive-top b{font-size:.9375rem;font-weight:600;}
.archive-pct{font-family:var(--font);font-weight:700;color:#0E8A66;font-size:1rem;}
.archive-meta{font-size:.75rem;color:var(--ink-faint);margin-top:4px;}
.archive-ms{font-size:.8125rem;color:var(--ink-soft);margin-top:10px;line-height:1.7;background:var(--surface-2);border-radius:10px;padding:10px 12px;}
.att-chip{display:inline-flex;align-items:center;gap:4px;background:var(--surface-2);padding:0 8px;min-height:24px;border-radius:6px;font-size:.75rem;font-weight:500;color:var(--ink);cursor:pointer;border:none;margin-right:4px;margin-bottom:4px;transition:background .12s;}
.att-chip:hover{background:var(--surface-3);}
.att-del-btn{background:none;border:none;color:var(--ink-faint);cursor:pointer;padding:0 2px;font-size:.8rem;line-height:1;}
.att-del-btn:hover{color:var(--brand-strong);}
.att-add-btn{display:inline-flex;align-items:center;background:transparent;color:var(--ink-soft);border:1px dashed var(--ink-disabled);border-radius:6px;padding:0 8px;min-height:24px;font-size:.75rem;font-weight:500;cursor:pointer;margin-bottom:4px;}
.dm-input-row{display:flex;gap:8px;padding:12px 0 0;border-top:none;align-items:center;}
.dm-input-row input{flex:1;border-radius:var(--radius);padding:12px 14px;font-size:.9375rem;min-height:48px;}
.dm-input-row .btn{min-height:48px;flex:0 0 auto;}

/* ---------- 11. 일정 ---------- */
.cal-nav-row{display:flex;align-items:center;gap:4px;margin:0 0 8px;}
.cal-nav-row h3{font-size:1.0625rem;font-weight:700;}
.cal-nav-row .btn{min-height:36px;padding:0 12px;}
.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:.6875rem;font-weight:600;color:var(--ink-faint);margin-bottom:4px;}
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;}
.cal-cell{background:var(--card);border-radius:10px;border:1px solid var(--rule);padding:4px 2px;min-height:76px;box-shadow:var(--shadow-sm);cursor:pointer;overflow:hidden;transition:all .14s var(--ease);position:relative!important;display:flex;flex-direction:column;}
.cal-cell:hover{border-color:var(--brand);transform:translateY(-1px);box-shadow:var(--shadow);}
.cal-cell:active{transform:scale(.97);background:var(--surface-2);}
.cal-cell.other-month{opacity:.35;box-shadow:none;background:transparent;}
.cal-cell.selected{background:var(--surface-2);border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);}
.cal-grid-week .cal-cell{min-height:120px;}
.cal-daynum{font-size:.8125rem;font-weight:600;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%;margin:0 auto 2px;position:relative;z-index:2;}
.cal-cell.today .cal-daynum{background:var(--brand);color:var(--chip-ink);font-weight:700;box-shadow:0 2px 6px rgba(255,79,100,.35);}
.cal-photo-badge{position:absolute;top:2px;right:2px;font-size:.625rem;line-height:1;z-index:3;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));pointer-events:none;}
.cal-photo-tag{font-size:.59375rem;font-weight:600;color:#fff;background:rgba(0,0,0,.5);backdrop-filter:blur(2px);border-radius:4px;padding:1px 4px;margin-top:auto;margin-bottom:2px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:1;position:relative;}
.cal-cell.has-photo{border-color:rgba(16,185,129,.35);}
.cal-photo-diary-bg{opacity:.48;background-size:cover;background-position:center;border-radius:9px;transition:opacity .15s ease;}
.cal-cell:hover .cal-photo-diary-bg{opacity:.72;}
.cal-pill{font-size:.625rem;font-weight:500;background:var(--surface-2);color:var(--ink-soft);border-radius:4px;padding:2px 4px;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3;transition:all .12s;position:relative;z-index:1;}
.cal-pill:hover{transform:scale(1.02);}
.cal-pill.ms{background:var(--violet-soft);color:var(--info);}
.cal-pill.custom{background:var(--surface-2);color:var(--ink);border:1px solid var(--rule);}
.cal-pill.tpl{background:var(--sage-soft);color:#0E8A66;border:none;}
.cal-pill.done{opacity:.5;text-decoration:line-through;}
.cal-more{font-size:.625rem;color:var(--ink-faint);font-weight:500;padding-left:2px;position:relative;z-index:1;}

/* ---------- 12. 기록 ---------- */
.week-summary{background:var(--card);border:var(--card-border);border-radius:var(--radius-lg);padding:16px;font-size:.9375rem;font-weight:600;color:var(--ink);margin-bottom:12px;box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.week-summary:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.rec-date-label{font-size:.8125rem;color:var(--ink-faint);font-weight:600;margin:20px 0 8px;letter-spacing:0;}
.rec-card{background:var(--card);border-radius:var(--radius-lg);padding:14px 16px;margin-bottom:8px;box-shadow:var(--shadow-sm);border:var(--card-border);border-left:3.5px solid var(--rule);transition:all .15s var(--ease);}
.rec-card:hover{box-shadow:var(--shadow);transform:translateY(-1px);border-color:rgba(37,99,235,.3);}
.rec-card.doing{border-left-color:var(--rule);}
.rec-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;}
.rec-text{font-size:.9375rem;flex:1;font-weight:500;line-height:1.5;}
.rec-icons{display:flex;gap:2px;flex:0 0 auto;}
.rec-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:10px;}
.rec-time{font-family:var(--font);font-size:.75rem;color:var(--ink-faint);}
.rec-dur{font-family:var(--font);font-size:.75rem;font-weight:600;padding:0 8px;min-height:22px;border-radius:6px;background:var(--sage-soft);color:#0E8A66;}
.rec-dur.doing{background:var(--gold-soft);color:#B45309;}
.rec-dur.note{background:var(--surface-2);color:var(--ink-soft);}
.rec-theme-chip{display:inline-flex;align-items:center;gap:4px;font-size:.75rem;font-weight:500;padding:0 8px;min-height:22px;border-radius:6px;cursor:pointer;transition:background .15s;background:var(--surface-2);color:var(--ink-soft);border:none;}
.rec-theme-chip:hover{background:var(--surface-3);border-color:transparent;}
.export-card{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:14px 16px;margin-top:16px;box-shadow:none;flex-wrap:wrap;}
.export-card .ico{display:none;}
.export-card .txt{flex:1;min-width:140px;}
.export-card .txt b{display:block;font-size:.9375rem;font-weight:600;}
.export-card .txt span{font-size:.8125rem;color:var(--ink-soft);}
.fab-add{margin-left:auto;}
.chart-card{background:var(--card);border:var(--card-border);border-radius:var(--radius-lg);padding:16px 16px 12px;margin-bottom:12px;box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.chart-card:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.chart-card .ct-label{font-size:.8125rem;font-weight:600;color:var(--ink-soft);margin-bottom:12px;}
.chart-bars{display:flex;align-items:flex-end;gap:8px;height:72px;}
.chart-bar-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;}
.chart-bar{width:100%;max-width:28px;background:var(--surface-3);border-radius:6px 6px 2px 2px;min-height:4px;transition:height .3s ease;}
.chart-bar.today{background:var(--brand);}
.chart-day-lbl{font-size:.6875rem;color:var(--ink-faint);margin-top:6px;font-family:var(--font);}
.report-legend-row{display:flex;align-items:center;gap:8px;font-size:.8125rem;padding:5px 0;}
.report-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;}
.report-legend-label{flex:1;color:var(--ink-soft);font-weight:500;}
.report-legend-val{font-family:var(--font);font-size:.75rem;color:var(--ink-faint);}
.heatmap-scroll{overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch;}
.heatmap-body{display:flex;flex-direction:column;gap:4px;min-width:max-content;}
.heatmap-month-row{display:flex;height:15px;margin-left:16px;position:relative;}
.heatmap-month-lbl{position:absolute;font-size:.6875rem;font-weight:500;color:var(--ink-faint);font-family:var(--font);}
.heatmap-grid-wrap{display:flex;gap:4px;}
.heatmap-daylbls{display:grid;grid-template-rows:repeat(7,14px);gap:3px;margin-right:4px;flex:0 0 auto;}
.heatmap-daylbls span{font-size:.625rem;color:var(--ink-faint);font-family:var(--font);line-height:14px;font-weight:600;}
.heatmap-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,14px);gap:3px;}
.heatmap-cell{width:14px;height:14px;border-radius:3px;background:var(--surface-2);cursor:pointer;transition:transform .12s ease, box-shadow .15s ease;}
.heatmap-cell:hover{transform:scale(1.28);z-index:2;box-shadow:0 0 8px rgba(16,185,129,.45);}
.heatmap-cell.active{outline:2px solid var(--ink);outline-offset:1px;z-index:3;transform:scale(1.25);box-shadow:0 0 10px rgba(16,185,129,.6);}
.heatmap-legend{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:12px;font-size:.75rem;color:var(--ink-faint);flex-wrap:wrap;}
.heatmap-legend .heatmap-cell{width:13px;height:13px;border-radius:3px;cursor:default;}
.heatmap-legend .heatmap-cell:hover{transform:none;}
.heatmap-stat-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:var(--surface-2);border-radius:10px;margin-bottom:12px;font-size:.75rem;flex-wrap:wrap;color:var(--ink-soft);box-shadow:var(--shadow-sm);}
.heatmap-stat-item{display:flex;align-items:center;gap:4px;}
.heatmap-selected-box{margin-top:12px;padding:12px;border-radius:10px;background:var(--surface-2);border:1px solid var(--rule);transition:all .2s ease;box-shadow:var(--shadow-sm);}
.balance-card{background:var(--card);border:var(--card-border);border-radius:var(--radius-lg);padding:16px;margin-bottom:12px;box-shadow:var(--shadow-sm);transition:all .15s var(--ease);}
.balance-card:hover{box-shadow:var(--shadow);border-color:rgba(0,0,0,.14);}
.balance-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;}
.balance-head b{font-size:.9375rem;color:var(--ink);font-weight:600;}
.balance-head span{font-size:.75rem;color:var(--ink-faint);font-family:var(--font);}
.balance-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:.75rem;color:var(--ink-soft);}
.balance-leg-item{display:flex;align-items:center;gap:5px;cursor:pointer;}
.balance-dot{width:8px;height:8px;border-radius:50%;}
.export-theme-opt.active{background:var(--surface-2);border-color:var(--ink);color:var(--ink);font-weight:600;}
.stat-big{font-size:1.75rem;font-weight:700;letter-spacing:-.03em;line-height:1.1;}
.stat-row{display:flex;gap:0;border:var(--card-border);border-radius:var(--radius-lg);overflow:hidden;margin-bottom:12px;background:var(--card);box-shadow:var(--shadow-sm);}
.stat-cell{flex:1;padding:14px 12px;text-align:center;border-right:1px solid var(--rule);}
.stat-cell:last-child{border-right:none;}
.stat-cell b{display:block;font-size:1.25rem;font-weight:700;letter-spacing:-.02em;}
.stat-cell span{font-size:.75rem;color:var(--ink-faint);}
.rec-quick-row{display:flex;gap:8px;margin-bottom:12px;}
.rec-quick-row .btn{flex:1;min-height:44px;font-size:.875rem;}

/* ---------- 13. 소통 ---------- */
.comm-hint{font-size:.8125rem;color:var(--ink-faint);margin:0 0 8px;line-height:1.5;}
.feed-preview-box{background:var(--surface-2);border:none;border-radius:var(--radius);padding:12px 14px;font-size:.875rem;font-weight:500;color:var(--ink-soft);text-align:center;margin:16px 0;}
.future-box{background:var(--surface-2);border:none;border-radius:var(--radius-lg);padding:16px 18px;}
.future-box h4{color:var(--ink);margin:0 0 8px;font-size:.9375rem;}
.future-box ul{margin:0 0 10px;padding-left:18px;font-size:.875rem;color:var(--ink-soft);}
.future-box .fnote{font-family:var(--font);font-size:.75rem;color:var(--ink-faint);}
.feed-item{display:flex;gap:12px;background:var(--card);border-radius:0;padding:16px 0;margin-bottom:0;box-shadow:none;border-bottom:1px solid var(--rule);}
.feed-item:last-child{border-bottom:none;}
.feed-avatar{width:40px;height:40px;border-radius:50%;background:var(--surface-3);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.9rem;flex:0 0 auto;overflow:hidden;}
.feed-avatar img{width:100%;height:100%;object-fit:cover;}
.feed-avatar.me{background:var(--brand-soft);color:var(--brand-strong);}
.feed-body{flex:1;min-width:0;}
.feed-head{display:flex;justify-content:space-between;align-items:baseline;gap:6px;}
.feed-name{font-weight:600;font-size:.9375rem;}
.feed-goal{font-size:.75rem;color:var(--ink-faint);font-family:var(--font);}
.feed-action{font-size:.9375rem;margin:6px 0 10px;line-height:1.55;word-break:keep-all;}
.feed-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.feed-time{font-size:.75rem;color:var(--ink-faint);margin-right:auto;}
.pill-react,.feed-react-btn,.feed-comm-toggle{display:inline-flex;align-items:center;gap:4px;background:var(--surface-2);border:none;border-radius:999px;padding:0 10px;min-height:30px;font-size:.8125rem;font-weight:500;color:var(--ink-soft);cursor:pointer;transition:background .15s,color .15s;user-select:none;}
.pill-react:active,.feed-react-btn:active{transform:scale(.94);}
.feed-react-btn:hover{background:var(--surface-3);transform:none;}
.pill-react.active,.feed-react-btn.active{background:var(--brand-soft);color:var(--brand-strong);animation:spring-pop .28s var(--ease);transform:none;border-color:transparent;}
@keyframes spring-pop{0%{transform:scale(1);}40%{transform:scale(1.12);}100%{transform:scale(1);}}
.feed-react-btn.active-fire{background:var(--brand-soft);color:var(--brand-strong);}
.feed-react-btn.active-clap{background:var(--gold-soft);color:#B45309;}
.feed-react-btn.active-heart{background:var(--brand-soft);color:var(--brand-strong);}
.feed-react-btn.active-sparkle{background:var(--violet-soft);color:var(--info);}
.feed-react-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.feed-comm-toggle:hover{background:var(--surface-3);color:var(--ink);}
.feed-comm-toggle.has-comments{color:var(--ink);background:var(--surface-2);}
.feed-comments-panel{margin-top:12px;padding-top:12px;border-top:1px solid var(--rule);animation:fadeIn .2s ease;}
.feed-comments-list{display:flex;flex-direction:column;gap:8px;margin-bottom:10px;}
.feed-comment-bubble{display:flex;gap:8px;align-items:flex-start;background:var(--surface-2);border-radius:12px;padding:10px 12px;position:relative;}
.feed-comment-bubble.me-comment{background:var(--brand-soft);border:none;}
.feed-c-avatar{width:24px;height:24px;border-radius:50%;background:var(--surface-3);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:.6875rem;flex:0 0 auto;}
.feed-c-avatar.me{background:var(--brand);color:var(--chip-ink);}
.feed-c-body{flex:1;min-width:0;}
.feed-c-meta{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin-bottom:2px;}
.feed-c-author{font-weight:600;font-size:.8125rem;color:var(--ink);}
.feed-c-time{font-size:.6875rem;color:var(--ink-faint);}
.feed-c-text{font-size:.8125rem;color:var(--ink);line-height:1.45;word-break:break-word;}
.feed-c-del{background:none;border:none;color:var(--ink-faint);font-size:.6875rem;cursor:pointer;padding:0 2px;}
.feed-c-del:hover{color:var(--brand-strong);}
.feed-input-row{display:flex;gap:8px;align-items:center;}
.feed-c-input{flex:1;border:none;border-radius:10px;padding:10px 12px;font-size:.875rem;background:var(--surface-2);color:var(--ink);min-height:40px;}
.feed-c-input:focus{outline:none;border-color:transparent;box-shadow:inset 0 0 0 1.5px var(--ink);}
.group-item{background:var(--card);border-radius:0;padding:14px 0;margin-bottom:0;display:flex;align-items:center;gap:12px;box-shadow:none;border-bottom:1px solid var(--rule);transition:background .15s;}
.group-item:last-child{border-bottom:none;}
.group-item:active{transform:none;background:var(--surface-2);}
.group-ico{width:48px;height:48px;border-radius:12px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex:0 0 auto;}
.group-info{flex:1;min-width:0;}
.group-info b{display:block;font-size:.9375rem;font-weight:600;}
.group-info span{font-size:.8125rem;color:var(--ink-soft);}
.join-btn{padding:0 14px;min-height:34px;border-radius:999px;font-size:.8125rem;font-weight:600;background:var(--surface-2);color:var(--ink);flex:0 0 auto;transition:background .15s;}
.join-btn.joined{background:var(--chip);color:var(--chip-ink);}
.dm-list-item{display:flex;align-items:center;gap:12px;background:var(--card);border-radius:0;padding:14px 0;margin-bottom:0;box-shadow:none;cursor:pointer;border-bottom:1px solid var(--rule);}
.dm-list-item:last-child{border-bottom:none;}
.dm-preview{flex:1;min-width:0;}
.dm-preview b{display:block;font-size:.9375rem;font-weight:600;}
.dm-preview span{font-size:.8125rem;color:var(--ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;}
.dm-thread-wrap{background:var(--card);border-radius:var(--radius-lg);overflow:hidden;box-shadow:none;border:1px solid var(--rule);}
.dm-thread-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--rule);font-weight:600;}
.dm-msgs{padding:16px;display:flex;flex-direction:column;gap:8px;max-height:360px;overflow-y:auto;}
.dm-msg{max-width:78%;padding:10px 14px;border-radius:18px;font-size:.9375rem;line-height:1.45;}
.dm-msg.them{background:var(--surface-2);align-self:flex-start;border-bottom-left-radius:6px;}
.dm-msg.me{background:var(--brand);color:var(--chip-ink);align-self:flex-end;border-bottom-right-radius:6px;}
.dm-thread-wrap .dm-input-row{padding:12px 16px;border-top:1px solid var(--rule);}
.dm-back{font-size:.9375rem;font-weight:600;color:var(--ink);margin-bottom:12px;display:inline-flex;align-items:center;gap:4px;cursor:pointer;min-height:40px;}
.collective-card{background:var(--ink);color:var(--bg);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px;box-shadow:none;position:relative;overflow:hidden;}
.collective-card::after{content:none;}
.collective-card .faint{color:rgba(255,255,255,.6);}
.collective-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px;position:relative;}
.collective-top b{font-size:1rem;font-weight:700;}
.collective-pct{font-family:var(--font);font-weight:700;color:inherit;font-size:1.5rem;letter-spacing:-.02em;}
.collective-track{height:8px;background:rgba(255,255,255,.18);}
.collective-fill{background:var(--brand);}
.challenge-room-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:16px;margin:12px 0;box-shadow:none;}
.tmpl-card{background:var(--card);border-radius:var(--radius-lg);padding:16px;margin-bottom:10px;box-shadow:none;border:1px solid var(--rule);}
.tmpl-head{display:flex;align-items:center;gap:6px;margin-bottom:6px;flex-wrap:wrap;}
.tmpl-badge{width:18px;height:18px;border-radius:50%;background:var(--ink);color:var(--bg);font-size:.625rem;display:inline-flex;align-items:center;justify-content:center;font-weight:700;flex:0 0 auto;}
.tmpl-card b{font-size:.9375rem;font-weight:600;}
.tmpl-card .tm-desc{font-size:.875rem;color:var(--ink-soft);margin:4px 0 10px;}
.tmpl-ms{font-size:.8125rem;color:var(--ink-soft);line-height:1.7;background:var(--surface-2);border-radius:10px;padding:10px 12px;}
.tmpl-btn{margin-top:12px;width:100%;min-height:44px;border-radius:var(--radius);background:var(--surface-2);color:var(--ink);font-weight:600;font-size:.875rem;border:none;}
.item-stat-row{display:flex;align-items:center;gap:10px;background:transparent;border-radius:0;padding:12px 0;margin-bottom:0;box-shadow:none;border-bottom:1px solid var(--rule);}
.item-stat-row .ico{font-size:1.1rem;}
.item-stat-row .nm{flex:1;font-size:.9375rem;font-weight:500;}
.item-stat-row .ct{font-family:var(--font);font-size:.75rem;color:var(--ink-soft);text-align:right;line-height:1.5;}
.item-stat-row .ct b{color:var(--ink);}
.it-item-card{display:flex;align-items:center;gap:10px;background:var(--surface-2);border-radius:var(--radius);padding:10px;margin-bottom:8px;border:none;}
.it-item-thumb{width:48px;height:48px;border-radius:8px;object-fit:cover;background:var(--card);flex:0 0 auto;}
.grp-photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px;}
.grp-photo-card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:none;border:1px solid var(--rule);}
.grp-photo-img{width:100%;height:130px;object-fit:cover;display:block;}
.grp-photo-meta{padding:8px 10px;}
.grp-photo-meta b{display:block;font-size:.8125rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.grp-photo-meta .faint{font-size:.6875rem;}
.manito-hero{background:var(--ink);color:var(--bg);border-radius:var(--radius-lg);padding:20px;margin-bottom:14px;box-shadow:none;position:relative;overflow:hidden;}
.manito-hero::after{content:none;}
.manito-hero h3{margin:0 0 4px;font-size:1.25rem;font-weight:700;color:inherit;}
.manito-hero p{margin:0;font-size:.875rem;opacity:.85;line-height:1.5;}
.manito-hero .faint{color:rgba(255,255,255,.65);}
.manito-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:16px;margin-bottom:12px;box-shadow:none;}
.manito-head{display:flex;align-items:center;gap:12px;margin-bottom:10px;}
.manito-avatar{width:48px;height:48px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;font-size:1.4rem;flex:0 0 auto;}
.manito-name{font-weight:600;font-size:.9375rem;}
.manito-sub{font-size:.75rem;color:var(--ink-faint);}
.manito-rec{background:var(--surface-2);border-radius:10px;padding:10px 12px;font-size:.875rem;margin-top:6px;display:flex;gap:8px;align-items:flex-start;}
.manito-rec .d{font-family:var(--font);font-size:.6875rem;color:var(--ink-faint);flex:0 0 auto;margin-top:2px;}
.stamp-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px;}
.stamp{flex:1;min-width:70px;min-height:40px;padding:0 6px;border-radius:10px;background:var(--surface-2);font-size:.8125rem;font-weight:500;color:var(--ink-soft);text-align:center;display:inline-flex;align-items:center;justify-content:center;transition:background .12s;}
.stamp:active{transform:scale(.96);}
.stamp.sent{background:var(--ink);color:var(--bg);}
.cheer-in{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--rule);}
.cheer-in:last-child{border-bottom:none;}
.cheer-in .ci{font-size:1.2rem;flex:0 0 auto;}
.cheer-in .cb{flex:1;font-size:.875rem;}
.cheer-in .cb b{font-weight:600;}
.cheer-in .ct{font-family:var(--font);font-size:.6875rem;color:var(--ink-faint);}
.blocked-user-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;background:transparent;border-radius:0;margin-bottom:0;font-size:.9375rem;border-bottom:1px solid var(--rule);}
.blocked-user-row b{color:var(--ink);font-weight:500;}
.btn-unblock{padding:0 12px;min-height:32px;border-radius:8px;font-size:.8125rem;font-weight:600;background:var(--surface-2);border:none;color:var(--ink);cursor:pointer;transition:background .15s;}
.btn-unblock:hover{background:var(--surface-3);color:var(--ink);}
.market-grid{display:grid;grid-template-columns:1fr;gap:10px;margin-top:12px;}
.market-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:16px;display:flex;flex-direction:column;justify-content:space-between;transition:background .15s;}
.market-card:hover{border-color:var(--rule);box-shadow:none;transform:none;background:var(--surface-2);}
.mz-card-preview{background:var(--surface-2);border:none;border-radius:var(--radius-lg);padding:24px 20px;box-shadow:none;text-align:center;position:relative;overflow:hidden;}
.mz-card-preview::before{content:none;}

/* ---------- 14. 설정·프로필 ---------- */
.set-block{margin-bottom:28px;}
.set-block h4{font-size:.8125rem;font-weight:600;color:var(--ink-faint);letter-spacing:0;margin:0 0 6px;text-transform:none;}
.set-block .btn-ghost{justify-content:flex-start;background:transparent;padding:0;min-height:52px;border-radius:0;border-bottom:1px solid var(--rule);font-weight:500;color:var(--ink);width:100%;}
.set-block .btn-ghost:last-child{border-bottom:none;}
.set-block .btn-ghost.btn-sm{min-height:44px;font-size:.875rem;}
.set-block .data-btn-row .btn-ghost,.set-block .btn-ghost.inline{background:var(--surface-2);padding:0 14px;border-radius:var(--radius);border-bottom:none;justify-content:center;width:auto;}
.set-block .btn-danger{width:100%;min-height:52px;background:transparent;color:var(--brand-strong);padding:0;border-radius:0;justify-content:flex-start;border-bottom:1px solid var(--rule);font-weight:500;}
.set-block .toggle-row{padding:14px 0;}
.set-box{background:var(--surface-2);border-radius:var(--radius);padding:14px 16px;margin-bottom:12px;font-size:.875rem;}
.set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:12px 0;border-bottom:1px solid var(--rule);font-size:.9375rem;font-weight:500;}
.set-row:last-child{border-bottom:none;}
.set-row .desc{font-size:.8125rem;color:var(--ink-faint);font-weight:400;margin-top:2px;}
.set-sub{font-size:.875rem;font-weight:600;margin:16px 0 4px;}
.time-chip-row{display:flex;gap:8px;flex-wrap:wrap;}
.time-chip{background:var(--surface-2);border-radius:10px;padding:0 6px 0 12px;min-height:40px;box-shadow:none;display:flex;align-items:center;}
.time-chip input{border:none;background:transparent;font-size:.9375rem;width:72px;padding:2px 0;font-weight:500;min-height:0;border-radius:0;}
.time-chip input:focus{box-shadow:none;background:transparent;}
.data-btn-row{display:flex;gap:8px;flex-wrap:wrap;}
.data-btn-row .btn{flex:1;min-height:44px;font-size:.875rem;}
.ai-note{background:var(--surface-2);border-radius:var(--radius);padding:12px 14px;font-size:.8125rem;color:var(--ink-soft);line-height:1.6;}
.danger-note{font-size:.75rem;color:var(--ink-faint);font-family:var(--font);margin-top:8px;}
.theme-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px;}
.theme-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius);padding:12px;cursor:pointer;display:flex;align-items:center;gap:10px;transition:border-color .15s,background .15s;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;}
.theme-card:hover{transform:none;border-color:var(--ink-disabled);box-shadow:none;}
.theme-card.active{border-color:var(--ink);background:var(--card);box-shadow:inset 0 0 0 1px var(--ink);}
.theme-dot, .theme-swatch{width:26px;height:26px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25),0 2px 8px rgba(0,0,0,.3);border:1px solid var(--rule, rgba(255,255,255,.15));}
html[data-theme="white"] .theme-dot, html[data-theme="white"] .theme-swatch{box-shadow:inset 0 0 0 1px rgba(0,0,0,.15),0 2px 6px rgba(0,0,0,.08);}
.theme-info{flex:1;min-width:0;}
.theme-name{font-size:.875rem;font-weight:600;color:var(--ink);display:flex;align-items:center;justify-content:space-between;line-height:1.2;}
.theme-check{color:var(--ink);font-size:.75rem;font-weight:700;}
.theme-desc{font-size:.75rem;color:var(--ink-faint);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.profile-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:20px;box-shadow:none;margin-bottom:16px;position:relative;overflow:hidden;}
.profile-card::before{content:none;}
.profile-top{display:flex;gap:14px;align-items:center;position:relative;}
.profile-avatar{width:64px;height:64px;border-radius:50%;background:var(--surface-3);color:var(--ink);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.5rem;flex:0 0 auto;overflow:hidden;position:relative;box-shadow:none;border:none;}
.profile-avatar img{width:100%;height:100%;object-fit:cover;}
.profile-name{font-weight:700;font-size:1.125rem;display:flex;align-items:center;gap:6px;letter-spacing:-.02em;}
.profile-bio{font-size:.875rem;color:var(--ink-soft);margin-top:3px;line-height:1.5;}
.profile-stats{display:flex;margin-top:16px;border-top:1px solid var(--rule);padding-top:14px;}
.profile-stat{flex:1;text-align:center;}
.profile-stat b{display:block;font-family:var(--font);font-size:1.125rem;font-weight:700;letter-spacing:-.02em;}
.profile-stat span{font-size:.75rem;color:var(--ink-faint);font-weight:500;}
.profile-stat + .profile-stat{border-left:1px solid var(--rule);}
.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:4px;}
.badge-tile{background:var(--surface-2);border-radius:var(--radius);padding:14px 6px;text-align:center;opacity:.45;}
.badge-tile.on{opacity:1;background:var(--surface-2);box-shadow:none;}
.badge-icon{font-size:1.4rem;margin-bottom:6px;}
.badge-label{font-size:.75rem;font-weight:600;color:var(--ink);}
.badge-desc{font-size:.625rem;color:var(--ink-faint);margin-top:2px;line-height:1.3;}
.avatar-edit{display:flex;align-items:center;gap:12px;margin-bottom:14px;}
.avatar-edit .hint{font-size:.8125rem;color:var(--ink-soft);line-height:1.5;margin-top:4px;}
.app-foot{text-align:center;padding:24px 12px 8px;font-size:.75rem;color:var(--ink-faint);line-height:1.7;}
.app-foot a{color:var(--ink-faint);text-decoration:underline;text-underline-offset:2px;}
.photo-preview-wrap{position:relative;display:inline-block;margin-top:8px;border-radius:10px;overflow:hidden;border:1px solid var(--rule);box-shadow:none;background:var(--surface-2);}
.photo-preview-img{display:block;max-width:180px;max-height:130px;object-fit:cover;border-radius:10px;}
.photo-remove-btn{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:none;border-radius:50%;width:24px;height:24px;font-size:13px;line-height:1;text-align:center;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.checkin-photo-thumb{display:block;max-width:100%;max-height:220px;border-radius:12px;margin-top:8px;object-fit:cover;border:1px solid var(--rule);cursor:pointer;}
.scroll-preview-box{max-height:50vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:12px;background:var(--surface-2);border-radius:var(--radius);border:none;margin:10px 0 14px;}
.scroll-preview-box::-webkit-scrollbar{width:6px;}
.scroll-preview-box::-webkit-scrollbar-thumb{background:var(--surface-3);border-radius:4px;}

/* ---------- 15. 전문 템플릿(표)·타이머·차트·음성·비전 ---------- */
.pro-tpl-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--rule);border-radius:var(--radius);background:var(--card);margin:10px 0;box-shadow:none;}
.pro-notion-table{width:100%;min-width:620px;border-collapse:collapse;font-size:.8125rem;text-align:left;}
.pro-notion-table th{background:var(--surface-2);color:var(--ink-soft);font-weight:600;padding:10px 12px;border-bottom:1px solid var(--rule);border-right:1px solid var(--rule);white-space:nowrap;position:sticky;top:0;user-select:none;}
.pro-notion-table th:last-child{border-right:none;}
.pro-notion-table td{padding:4px 6px;border-bottom:1px solid var(--rule);border-right:1px solid var(--rule);vertical-align:middle;}
.pro-notion-table td:last-child{border-right:none;}
.pro-notion-table tr:hover{background:var(--rule-soft);}
.pro-tpl-cell-input{width:100%;border:1px solid transparent;background:transparent;padding:8px;font-size:.8125rem;border-radius:6px;color:var(--ink);outline:none;box-sizing:border-box;transition:border-color .15s,background .15s;min-height:0;}
.pro-tpl-cell-input:focus{border-color:var(--ink);background:var(--card);}
.pro-tpl-row-del{border:none;background:transparent;color:var(--ink-faint);cursor:pointer;font-size:.95rem;padding:4px 8px;border-radius:6px;transition:color .15s,background .15s;}
.pro-tpl-row-del:hover{color:var(--brand-strong);background:var(--brand-soft);}
.pro-tpl-badge{background:var(--surface-2);color:var(--ink-soft);border:none;}
.pro-analytics-banner{display:flex;align-items:center;gap:8px;padding:10px 12px;background:var(--surface-2);border:none;border-radius:var(--radius);margin-bottom:10px;overflow-x:auto;}
.pro-stat-chip{display:flex;flex-direction:column;padding:6px 10px;background:var(--card);border-radius:8px;border:1px solid var(--rule);min-width:72px;flex-shrink:0;}
.pro-stat-chip.highlight{background:var(--card);border-color:var(--ink);}
.pro-stat-label{font-size:.6875rem;color:var(--ink-faint);margin-bottom:2px;white-space:nowrap;}
.pro-stat-chip.highlight .pro-stat-label{color:var(--ink-soft);font-weight:500;}
.pro-stat-value{font-size:.875rem;font-weight:700;color:var(--ink);white-space:nowrap;}
.pro-stat-chip.highlight .pro-stat-value{color:var(--ink);}
.pro-designer-preview{background:var(--surface-2);border:none;border-radius:var(--radius);padding:12px;margin-top:10px;overflow-x:auto;}
.wearable-act-card:hover{border-color:var(--ink)!important;background:var(--surface-2)!important;}
.quick-prose-chip{min-height:30px;font-size:.8125rem;padding:0 10px;}
.quick-prose-chip:hover{border-color:var(--ink-disabled);color:var(--ink);background:var(--surface-2);}
.voice-wave-ring{width:72px;height:72px;border-radius:50%;background:var(--brand-soft);display:flex;align-items:center;justify-content:center;margin:12px auto 16px;position:relative;cursor:pointer;transition:background .25s ease;}
.voice-wave-ring.listening{animation:voicePulse 1.4s infinite;background:var(--brand-soft);}
@keyframes voicePulse{0%{box-shadow:0 0 0 0 rgba(255,79,100,.35);}70%{box-shadow:0 0 0 16px rgba(255,79,100,0);}100%{box-shadow:0 0 0 0 rgba(255,79,100,0);}}
.vision-drop-box{border:1px dashed var(--ink-disabled);border-radius:var(--radius);padding:24px 14px;text-align:center;background:var(--surface-2);cursor:pointer;transition:background .2s ease;color:var(--ink-soft);font-size:.875rem;}
.vision-drop-box:hover,.vision-drop-box.dragover{border-color:var(--ink);background:var(--surface-3);}
.pro-trend-chart-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:16px;margin-bottom:12px;box-shadow:none;}
.pro-trend-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap;}
.pro-trend-title{font-size:.9375rem;font-weight:600;color:var(--ink);display:flex;align-items:center;gap:6px;}
.pro-trend-filters{display:flex;gap:4px;align-items:center;}
.pro-trend-filter-chip{border:none;background:var(--surface-2);color:var(--ink-soft);font-size:.75rem;font-weight:500;padding:0 10px;min-height:28px;border-radius:999px;cursor:pointer;transition:background .15s,color .15s;}
.pro-trend-filter-chip.active,.pro-trend-filter-chip:hover{background:var(--ink);color:var(--bg);border-color:transparent;}
.pro-trend-svg-wrap{position:relative;width:100%;overflow:hidden;border-radius:8px;background:transparent;}
.trend-tooltip{position:absolute;pointer-events:none;background:#2B3138;color:#fff;padding:5px 8px;border-radius:6px;font-size:.75rem;font-weight:500;box-shadow:none;white-space:nowrap;opacity:0;transform:translate(-50%,-120%);transition:opacity .15s;z-index:10;}
.trend-tooltip.show{opacity:1;}
.pro-trend-kpi-row{display:flex;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--rule);overflow-x:auto;}
.pro-trend-kpi-pill{display:inline-flex;align-items:center;gap:5px;font-size:.75rem;color:var(--ink-soft);white-space:nowrap;}
.pro-trend-kpi-pill b{color:var(--ink);}
.pro-stopwatch-widget{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius-lg);padding:12px 16px;margin-bottom:12px;box-shadow:none;}
.pro-stopwatch-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;flex-wrap:wrap;gap:6px;}
.pro-sw-modes{margin-bottom:0;}
.pro-sw-display-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.pro-sw-clock{font-family:var(--font);font-variant-numeric:tabular-nums;font-size:1.75rem;font-weight:700;letter-spacing:-.02em;color:var(--ink);background:transparent;padding:4px 0;border-radius:0;border:none;min-width:120px;text-align:left;user-select:none;}
.pro-sw-clock.running{color:var(--brand-strong);border-color:transparent;box-shadow:none;}
.pro-sw-clock.alert{color:var(--brand-strong);border-color:transparent;animation:swFlash .5s infinite alternate;}
@keyframes swFlash{from{opacity:1;}to{opacity:.4;}}
.pro-sw-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.cell-highlight-flash{animation:cellFlash .8s ease-out;}
@keyframes cellFlash{0%{background:var(--brand-soft);}100%{background:transparent;}}

/* ⏱️ 스톱워치 구간기록(랩) 리스트 및 텍스트 인풋 스타일 (#TASK-ES-306) */
.sw-laps-container{margin-top:10px;padding-top:8px;border-top:1px dashed var(--rule);max-height:180px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;}
.sw-lap-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-radius:var(--radius-md,8px);background:var(--surface,rgba(0,0,0,0.02));border:1px solid var(--rule,rgba(0,0,0,0.08));transition:border-color .15s ease,background .15s ease;}
.sw-lap-row:hover,.sw-lap-row:focus-within{border-color:var(--brand,#4f46e5);background:var(--card,#fff);}
.sw-lap-meta{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;}
.sw-lap-badge{display:inline-flex;align-items:center;justify-content:center;font-size:0.6875rem;font-weight:700;padding:2px 6px;border-radius:4px;background:var(--brand-soft,rgba(79,70,229,0.1));color:var(--brand,#4f46e5);white-space:nowrap;}
.sw-lap-time{font-family:var(--font);font-variant-numeric:tabular-nums;font-size:0.8125rem;font-weight:700;color:var(--ink);white-space:nowrap;}
.sw-lap-memo-wrap{display:flex;align-items:center;gap:6px;flex:1;min-width:0;}
.sw-lap-memo-input{flex:1;min-width:70px;height:28px;padding:0 8px;font-size:0.75rem;line-height:1.3;color:var(--ink);background:var(--card,#fff);border:1px solid var(--rule,rgba(0,0,0,0.15));border-radius:6px;outline:none;transition:border-color .15s ease,box-shadow .15s ease;box-sizing:border-box;}
.sw-lap-memo-input:focus{border-color:var(--brand,#4f46e5);box-shadow:0 0 0 2px var(--brand-soft,rgba(79,70,229,0.15));}
.sw-lap-memo-input::placeholder{color:var(--ink-faint,#9ca3af);font-size:0.75rem;}
.sw-lap-inject-btn{flex-shrink:0;height:28px;padding:0 8px;font-size:0.6875rem;font-weight:600;white-space:nowrap;border:1px solid var(--rule,rgba(0,0,0,0.15));color:var(--ink-soft);background:transparent;border-radius:6px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease;}
.sw-lap-inject-btn:hover{color:var(--brand,#4f46e5);border-color:var(--brand,#4f46e5);background:var(--brand-soft,rgba(79,70,229,0.08));}
[data-theme="black"] .sw-lap-memo-input,[data-theme="dark"] .sw-lap-memo-input{background:var(--surface-2,#1e293b);border-color:var(--rule,rgba(255,255,255,0.12));color:var(--ink,#f1f5f9);}
@media (max-width:420px){
  .sw-lap-row{flex-wrap:wrap;padding:6px 8px;gap:6px;}
  .sw-lap-meta{width:100%;justify-content:space-between;}
  .sw-lap-memo-wrap{width:100%;}
}

/* ---------- 16. 다크 테마 보정 ---------- */
[data-theme="black"] .btn-google,[data-theme="dark"] .btn-google{background:var(--surface-2);box-shadow:none;}
[data-theme="black"] .switch::after{background:#fff;}
[data-theme="black"] .toast,[data-theme="dark"] .toast{background:#E9EBEE;color:#111214;}
[data-theme="black"] .trend-tooltip,[data-theme="black"] .tooltip[data-tip]:hover::after{background:#E9EBEE;color:#111214;}
[data-theme="black"] .modal-overlay,[data-theme="dark"] .modal-overlay{background:rgba(0,0,0,.6);}
[data-theme="black"] input:focus,[data-theme="black"] select:focus,[data-theme="black"] textarea:focus{background:var(--surface-2);}

/* ---------- 17. 넓은 화면 ---------- */
@media (min-width:520px){
  #appShell{border-left:1px solid var(--rule);border-right:1px solid var(--rule);}
  .bottomnav-inner{border-left:1px solid var(--rule);border-right:1px solid var(--rule);}
}
@media (hover:hover){
  .goal-card:hover,.rec-card:hover{background:var(--card);}
  .btn-primary:hover{background:var(--brand-strong);}
}
@media print{.bottomnav,.topbar,.fab,.back-to-top{display:none!important;}}

/* ---------- 18. 폼 보조: 비밀번호 보기 토글 ---------- */
.field-pw{position:relative;}
.field-pw input{padding-right:64px;}
.pw-toggle{position:absolute;right:8px;bottom:8px;height:36px;padding:0 10px;border-radius:8px;font-size:.8125rem;font-weight:600;color:var(--ink-soft);background:transparent;}
.pw-toggle.on{color:var(--ink);}
.pw-toggle:active{opacity:.6;}

/* ---------- 19. 화면 헤더·에이전트 카드·보조 레이아웃 (셸 v2) ---------- */
.screen-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 16px;min-height:40px;}
.screen-head .s-title{margin:0;}
.screen-head-l{display:flex;align-items:center;gap:8px;min-width:0;}
.seg-compact{margin:0;flex:0 0 auto;}
.seg-compact .format-opt{min-height:32px;padding:0 12px;font-size:.8125rem;}
.agent-card{padding:16px;}
.agent-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.agent-title{font-size:.9375rem;font-weight:600;color:var(--ink);}
.agent-sub{font-size:.8125rem;color:var(--ink-faint);margin-top:2px;}
.agent-card .dm-input-row{padding-top:12px;}
.icon-btn-lg{min-width:40px;min-height:40px;color:var(--ink);}
.icon-btn-lg svg{width:22px;height:22px;}
.cal-nav-row h3{flex:1;text-align:center;margin:0;}
.list-card{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.list-card-title{font-size:.9375rem;font-weight:600;display:block;}
.date-range{display:flex;gap:8px;align-items:flex-end;margin-bottom:12px;}
.date-range .field{flex:1;margin:0;}
.date-range-sep{color:var(--ink-faint);padding-bottom:16px;}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
.search-field{margin-bottom:12px;}
.search-field input{background:var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7684' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;padding-left:44px;min-height:48px;}
.btn svg{width:18px;height:18px;flex:0 0 auto;}
.btn-block svg{width:20px;height:20px;}
.dm-back svg{width:20px;height:20px;}
.topbar.scrolled{border-bottom:1px solid var(--rule);}
.rec-card{position:relative;will-change:transform;}
.swipe-del{position:absolute;top:0;bottom:0;left:100%;width:88px;background:var(--brand);color:var(--chip-ink);font-weight:600;font-size:.875rem;border-radius:0 var(--radius-lg) var(--radius-lg) 0;}
svg.i{width:1.15em;height:1.15em;vertical-align:-.2em;flex:0 0 auto;}
.icon-btn svg.i{width:20px;height:20px;}
.mission-card .mi svg.i,.group-ico svg.i,.manito-avatar svg.i{width:22px;height:22px;color:var(--ink-soft);}
.cat-chip .ico svg.i{width:26px;height:26px;color:var(--ink);}

/* ---------- 20. 접근성 보정 — 텍스트 대비 4.5:1 · 터치 타겟 ---------- */
:root{--ink-faint:#5F6B7A;--cta:var(--brand);--cta-hover:var(--brand-strong);--info-text:#1D63D6;--sage-text:#0B7355;--gold-text:#9A4508;}
[data-theme="focus-sanctuary"],[data-theme="black"],[data-theme="dark"],[data-theme="dark-space"],[data-theme="glowing-space"],[data-theme="deep-sea"],[data-theme="sunset-beach"],[data-theme="urban-city"]{--ink-faint:#8A929C;--cta:var(--brand);--cta-hover:var(--brand-strong);--info-text:#8AB4FF;--sage-text:#4ADE9C;--gold-text:#FBBF5C;}
@media (prefers-color-scheme: dark){ html:not([data-theme]){--ink-faint:#8A929C;--cta:var(--brand);--cta-hover:var(--brand-strong);--info-text:#8AB4FF;--sage-text:#4ADE9C;--gold-text:#FBBF5C;} }
.btn-primary,.mz-btn,.btn-mz,.fab,.dm-msg.me,.cal-cell.today .cal-daynum,.switch.on,.swipe-del{background:var(--cta);}
.btn-primary:hover{background:var(--cta-hover);}
.feed-ai-tag,.topic-pill,.cal-pill.ms,.tag.on,.freeze-pill,.feed-c-badge.badge-ai,.feed-react-btn.active-sparkle{color:var(--info-text);}
.rec-dur,.result-btn.has,.archive-pct,.notion-push-status-pill.connected,.pro-trend-growth-badge.up,.ms-priority-low,.fb-card.good .fb-verdict{color:var(--sage-text);}
.ms-priority-med,.streak-t2,.feed-c-badge.badge-author,.result-btn.miss,.rec-dur.doing,.fb-card.mid .fb-verdict,.feed-react-btn.active-clap{color:var(--gold-text);}
.dday-mini,.dday-pill.brand,.mic-status,.ms-priority-high,.pro-trend-growth-badge.down,.fb-card.bad .fb-verdict,.pill-react.active,.feed-react-btn.active,.btn-danger{color:var(--cta);}
.icon-btn{min-width:44px;min-height:44px;padding:0;}
.ms-actions{gap:0;}
.goal-chip,.cat-major,.theme-filter-chip,.feed-filter-chip,.cat-sub,.ob-quick-action-chip,.quick-prose-chip,.pill-react,.feed-react-btn,.feed-comm-toggle,.join-btn,.edit-toggle,.privacy-badge,.rec-theme-chip,.pro-trend-filter-chip{min-height:40px;}
.privacy-badge,.rec-theme-chip{min-height:32px;}
.btn-sm{min-height:40px;}
.att-add-btn,.att-chip{min-height:32px;}
.topbar .user-chip{min-height:44px;}
.back-to-top{width:44px;height:44px;}
.ms-title,.task-title{min-height:36px;}
.feed-c-del,.att-del-btn,.fb-close,.photo-remove-btn{min-width:32px;min-height:32px;display:inline-flex;align-items:center;justify-content:center;}

/* ---------- 21. 피드 리액션 아이콘 (SVG 마스크, 데이터 속성 기준) ---------- */
.feed-react-btn::before{content:"";width:16px;height:16px;flex:0 0 auto;background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat;}
.feed-react-btn{min-width:44px;justify-content:center;gap:5px;}
.feed-react-btn[data-reacttype="fire"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22c4 0 7-3 7-7 0-3-2-5-3-6-1 2-2 3-3 3 0-3-1-6-4-8 0 4-4 6-4 11 0 4 3 7 7 7z'/%3E%3C/svg%3E");}
.feed-react-btn[data-reacttype="clap"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 9V4a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M10 10V3a2 2 0 0 0-4 0v9'/%3E%3Cpath d='M6 12V6a2 2 0 0 0-4 0v8a8 8 0 0 0 16 0v-4a2 2 0 0 0-4 0'/%3E%3C/svg%3E");}
.feed-react-btn[data-reacttype="heart"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");}
.feed-react-btn[data-reacttype="sparkle"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");}
.feed-react-btn.active::before{background:currentColor;}
.goal-card-top > div:first-child{flex:1;min-width:0;}
.goal-card-top h4{flex:1 1 auto;min-width:0;}
.goal-card-top .privacy-badge,.goal-card-top .dday-pill{flex:0 0 auto;}
.goal-card-top{flex-wrap:wrap;gap:8px 10px;align-items:center;}
.goal-card-top > div:first-child{flex:1 1 55%;min-width:0;}
.goal-card-top > div:last-child{flex:0 0 auto;margin-left:auto;gap:4px;}
.goal-card-top > div:last-child button{min-width:32px;min-height:32px;padding:0 4px;}
.goal-card-top > div:last-child .icon-btn{min-width:36px;min-height:36px;}
.goal-card-top h4{font-size:1.0625rem;}
.goal-card-top{flex-wrap:wrap;gap:8px 10px;align-items:center;}
.goal-card-top > div:first-child{flex:1 1 55%;min-width:0;}
.goal-card-top > div:last-child{flex:0 0 auto;margin-left:auto;gap:4px;}
.goal-card-top > div:last-child button{min-width:32px;min-height:32px;padding:0 4px;}
.goal-card-top > div:last-child .icon-btn{min-width:36px;min-height:36px;}
.goal-card-top h4{font-size:1.0625rem;}
.goal-card-top > div:first-child{flex:1 1 60%!important;}
.goal-card-top > div:first-child > span,.goal-card-top > div:first-child > button{white-space:nowrap;}

/* ---------- 22. 전면 콕핏(Cockpit) 비주얼 디자인 시스템 — 시간기록 & 데이터 가져오기 껍데기 전면 일체화 ---------- */
:root{--card-border:1px solid rgba(15,23,42,.10);--shadow-sm:0 1px 3px rgba(15,23,42,.06),0 1px 2px rgba(15,23,42,.04);--shadow:0 4px 16px rgba(15,23,42,.08),0 2px 6px rgba(15,23,42,.04);}
[data-theme="white"],[data-theme="light"]{--bg:#F8FAFC;--paper:#F8FAFC;--card-border:1px solid rgba(15,23,42,.10);}
[data-theme="daylight-beach"]{--bg:#EEF6F9;--paper:#EEF6F9;--card-border:1px solid rgba(15,23,42,.10);}
[data-theme="black"],[data-theme="dark"],[data-theme="dark-space"],[data-theme="glowing-space"],[data-theme="deep-sea"],[data-theme="sunset-beach"],[data-theme="urban-city"]{
  --card-border:1px solid rgba(56,189,248,.20);
  --shadow-sm:0 2px 8px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.25);
  --shadow:0 6px 24px rgba(0,0,0,.45),0 2px 8px rgba(0,0,0,.3);
}
body{line-height:1.55;}

/* 외부 껍데기: 홈, 목표, 일정, 기록, 소통, 설정 탭의 모든 카드 및 컨테이너 */
.card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),.goal-card,.rec-card,.week-summary,.chart-card,.balance-card,.crew-pacing-widget,.daily-quest-bar-wrap,.level-badge,.mission-card,.fb-card,.archive-card,.tmpl-card,.manito-card,.market-card,.profile-card,.dm-thread-wrap,.pro-trend-chart-card,.pro-stopwatch-widget,.challenge-room-card,.export-card,.grp-photo-card,.theme-card,.ms-list,.stat-row,.goal-summary-card,#hybridDash,.capture-card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),.set-box{
  border:var(--card-border)!important;
  background:var(--card);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
  transition:all .2s var(--ease);
}
.card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),.goal-card:hover,.mission-card:hover,.capture-card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),.daily-quest-bar-wrap:hover,.level-badge:hover,#hybridDash:hover,.set-box:hover{
  border-color:rgba(56,189,248,.38)!important;
  box-shadow:var(--shadow);
  transform:translateY(-1px);
}

/* 내부 껍데기 1: 내 아바타 바꾸기 & 레벨 뱃지 */
.level-badge-row{margin:0 0 12px;}
.level-badge{padding:10px 14px!important;}
#btnOpenAvatarModal{
  background:rgba(56,189,248,.12)!important;
  border:1px solid rgba(56,189,248,.32)!important;
  color:#38bdf8!important;
  font-weight:700!important;
  border-radius:8px!important;
  padding:3px 8px!important;
  transition:all .15s ease;
}
#btnOpenAvatarModal:hover{background:rgba(56,189,248,.22)!important;border-color:#38bdf8!important;}
.level-bar-wrap .mini-bar{height:8px;border-radius:999px;background:rgba(0,0,0,.35);border:1px solid var(--rule);}
.mini-bar span{background:linear-gradient(90deg,#38bdf8,#818cf8)!important;box-shadow:0 0 8px rgba(56,189,248,.4);}
.level-xp-txt{font-family:ui-monospace,monospace;font-weight:700;color:var(--ink-faint);}

/* 내부 껍데기 2: 첫 기록 도전 / 상태 알약 */
.today-glance-pill{
  background:var(--card)!important;
  border:1px solid rgba(255,79,100,.32)!important;
  border-radius:999px!important;
  padding:6px 14px!important;
  font-size:.8125rem!important;
  box-shadow:0 2px 10px rgba(255,79,100,.18)!important;
  display:inline-flex;align-items:center;gap:6px;
}
.today-glance-pill b{color:var(--brand);font-weight:800;}

/* 내부 껍데기 3: 오늘의 미션 */
.mission-card{padding:14px 16px!important;}
.mission-card .ct-label{color:#38bdf8!important;font-weight:800!important;font-size:.75rem!important;letter-spacing:.05em!important;text-transform:uppercase!important;margin-bottom:6px!important;}
.mission-more-btn{background:var(--surface-2)!important;border:1px solid var(--rule)!important;border-radius:8px!important;color:var(--ink-soft)!important;}
.mission-row{background:var(--surface-2);border:1px solid var(--rule);border-radius:12px;padding:10px 12px;margin-top:6px;}

/* 내부 껍데기 4: 오늘 기록하기 (Capture Form) */
.capture-card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){padding:18px!important;}
.capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){font-size:1.15rem!important;font-weight:900!important;letter-spacing:-.02em!important;color:var(--ink)!important;}
.capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){font-size:.8125rem!important;color:var(--ink-faint)!important;margin:2px 0 10px!important;}
.capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){
  background:var(--surface-2)!important;
  border:1px solid var(--rule)!important;
  border-radius:14px!important;
  padding:10px 12px!important;
  box-shadow:inset 0 2px 6px rgba(0,0,0,.15);
  transition:border-color .2s,box-shadow .2s;
}
.capture-ta-wrap:focus-within:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){
  border-color:#38bdf8!important;
  box-shadow:0 0 0 3px rgba(56,189,248,.22),inset 0 2px 6px rgba(0,0,0,.15)!important;
}
.capture-card textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){
  width:100%!important;background:transparent!important;border:none!important;resize:none!important;
  color:var(--ink)!important;font-size:.9375rem!important;min-height:44px!important;line-height:1.5!important;
  padding:0!important;box-shadow:none!important;
}
.capture-card textarea:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){outline:none!important;box-shadow:none!important;border:none!important;}
.feedback-tier-bar:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){background:var(--surface-2)!important;border:1px solid var(--rule)!important;border-radius:999px!important;padding:4px 6px!important;}
.tier-btn.active:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){background:#ff4f64!important;color:#fff!important;font-weight:800!important;box-shadow:0 2px 8px rgba(255,79,100,.35)!important;}
#captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){
  background:linear-gradient(135deg,#ff4f64 0%,#e8394f 100%)!important;
  color:#fff!important;font-weight:800!important;border:none!important;
  border-radius:12px!important;box-shadow:0 3px 12px rgba(255,79,100,.35)!important;
}

/* 내부 껍데기 5: 오늘의 퀘스트 진척도 */
.daily-quest-bar-wrap{padding:14px 18px!important;}
.daily-quest-track{height:10px!important;background:var(--surface-2)!important;border:1px solid var(--rule)!important;border-radius:999px!important;overflow:hidden!important;margin-top:8px!important;}
.daily-quest-fill{background:linear-gradient(90deg,#38bdf8,var(--brand))!important;box-shadow:0 0 10px rgba(255,79,100,.4)!important;border-radius:999px!important;}
.crew-pacing-widget{display:block;margin:12px 0 16px;border-radius:18px;}
.daily-quest-item{background:var(--surface-2);border:1px solid var(--rule);border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;transition:all .15s ease;}
.daily-quest-item:hover{border-color:rgba(56,189,248,.35);transform:translateY(-1px);}
.daily-quest-item.done{background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.32);}

/* 내부 껍데기 6: 목표 현황판 (#hybridDash) */
#hybridDash{padding:18px!important;}
#hybridDash .profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px;border-top:none;padding-top:0;}
#hybridDash .profile-stat{background:var(--surface-2);border:1px solid var(--rule);border-radius:12px;padding:10px 8px;text-align:center;}
#hybridDash .profile-stat b{font-family:ui-monospace,monospace;font-size:1.25rem;font-weight:900;color:#38bdf8;}
#hybridDash .hybrid-row{background:var(--surface-2);border:1px solid var(--rule);border-radius:12px;padding:10px 12px;margin-bottom:8px;transition:all .15s;}
#hybridDash .hybrid-row:hover{transform:translateY(-1px);border-color:rgba(56,189,248,.32);}
#hybridDash .group-bar{height:6px;border-radius:999px;background:rgba(0,0,0,.35);border:1px solid var(--rule);margin-top:4px;}
#hybridDash .group-bar span{box-shadow:0 0 6px rgba(56,189,248,.4);}

/* 공통 칩, 캘린더 타일, 설정 박스, 바텀 내비 콕핏 일체화 */
.goal-chip,.cat-major,.theme-filter-chip,.feed-filter-chip{background:var(--surface-2);border:1px solid var(--rule);border-radius:999px;padding:5px 12px;font-size:.78rem;color:var(--ink-soft);transition:all .15s;}
.goal-chip.active,.cat-major.active,.theme-filter-chip.active,.feed-filter-chip.active{background:var(--chip);color:var(--chip-ink);border-color:var(--chip);box-shadow:0 2px 8px rgba(0,0,0,.15);}
.cal-cell{background:var(--card);border:1px solid var(--rule);border-radius:12px;transition:all .15s;}
.cal-cell:hover{border-color:rgba(56,189,248,.35);}
.cal-cell.today{border:1.5px solid #ff4f64!important;box-shadow:0 0 8px rgba(255,79,100,.35)!important;}
.cal-grid{gap:4px;}
.topbar{background:var(--topbar-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--rule);}
.bottomnav-inner{background:var(--bottomnav-bg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border-top:1px solid var(--rule);box-shadow:0 -4px 20px rgba(0,0,0,.12);}
.set-box{padding:16px!important;}
.input-on-card input,.card input[type=text],.card input[type=search],.card textarea,.card select,.modal-sheet input,.modal-sheet textarea,.modal-sheet select{background:var(--surface-2);border:1px solid var(--rule);border-radius:10px;}
input:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),select:focus,textarea:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){border-color:#38bdf8!important;box-shadow:0 0 0 3px rgba(56,189,248,.2)!important;}

/* ---------- 22-1. 기록 탭 3분할 세그먼트 & 미니 펄스 & 4단 캐러셀 & 계층형 아코디언 (TASK-ES-031, TASK-ES-171) ---------- */
.feed-ai-tag.ai-photo-tag{background:rgba(99,102,241,0.15);color:#6366f1;border:1px solid rgba(99,102,241,0.3);font-weight:700;padding:2px 6px;border-radius:6px;font-size:11px;margin-left:4px;display:inline-flex;align-items:center;gap:3px;}
.rec-mini-pulse-bar{background:linear-gradient(90deg,rgba(18,184,134,0.12),rgba(49,130,246,0.08));border:1px solid rgba(18,184,134,0.25);border-radius:var(--radius);padding:10px 14px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:background .15s ease,border-color .15s ease;}
.rec-mini-pulse-bar:hover{background:linear-gradient(90deg,rgba(18,184,134,0.18),rgba(49,130,246,0.14));border-color:rgba(18,184,134,0.4);}
.rec-pulse-content{display:flex;align-items:center;gap:8px;font-size:.8125rem;color:var(--ink);}
.rec-pulse-icon{font-size:1.1rem;}
.rec-pulse-link{font-size:.75rem;font-weight:700;color:var(--sage);display:flex;align-items:center;}
.rec-carousel-container{margin-bottom:14px;}
.rec-carousel-pills{display:flex;gap:6px;margin-bottom:10px;background:var(--surface-2);padding:4px;border-radius:var(--radius-sm);}
.rec-pill-btn{flex:1;padding:6px 4px;border:none;background:transparent;border-radius:6px;font-size:.75rem;font-weight:600;color:var(--ink-soft);cursor:pointer;transition:all .15s ease;white-space:nowrap;text-align:center;}
.rec-pill-btn.active{background:var(--ink);color:var(--chip-ink);font-weight:700;}
.rec-carousel-viewport{width:100%;overflow:hidden;border-radius:var(--radius-lg);border:1px solid var(--rule);background:var(--card);}
.rec-carousel-track{display:flex;width:400%;transition:transform 0.3s var(--ease);}
.rec-carousel-slide{width:25%;flex:0 0 25%;box-sizing:border-box;padding:14px;}
.rec-carousel-slide .chart-card,.rec-carousel-slide .balance-card,.rec-carousel-slide .report-summary-card{border:none;background:transparent;padding:0;margin-bottom:0;}
.rec-past-accordion{margin-top:14px;display:flex;flex-direction:column;gap:8px;}
.rec-accordion-card{background:var(--card);border:1px solid var(--rule);border-radius:var(--radius);overflow:hidden;}
.rec-acc-head{padding:12px 14px;background:var(--surface-2);display:flex;justify-content:space-between;align-items:center;cursor:pointer;user-select:none;transition:background .15s ease;}
.rec-acc-head:hover{background:var(--surface-3);}
.rec-acc-title{font-size:.8125rem;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:6px;}
.rec-acc-meta{display:flex;align-items:center;gap:8px;font-size:.75rem;color:var(--ink-faint);}
.rec-acc-chevron{font-size:.7rem;transition:transform 0.24s var(--ease);display:inline-block;}
.rec-accordion-card.expanded .rec-acc-chevron{transform:rotate(180deg);}
.rec-acc-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows 0.24s var(--ease);}
.rec-accordion-card.expanded .rec-acc-body{grid-template-rows:1fr;}
.rec-acc-inner{overflow:hidden;padding:0;min-height:0;}
.rec-accordion-card.expanded .rec-acc-inner{padding:10px 12px;min-height:0;}

/* ---------- 23. 다크 테마 바탕 복구(22절 :root 재정의보다 뒤에 와야 함) ---------- */
[data-theme="black"],[data-theme="dark"]{--bg:#111214;--paper:#111214;}
[data-theme="dark-space"]{--bg:#0B1220;--paper:#0B1220;}
[data-theme="glowing-space"]{--bg:#14101F;--paper:#14101F;}
[data-theme="deep-sea"]{--bg:#061520;--paper:#061520;}
[data-theme="sunset-beach"]{--bg:#1C1012;--paper:#1C1012;}
[data-theme="urban-city"]{--bg:#15171B;--paper:#15171B;}
@media (prefers-color-scheme: dark){ html:not([data-theme]){--bg:#111214;--paper:#111214;} }
[data-theme="black"] .card,[data-theme="dark"] .card,[data-theme="black"] .goal-chip,[data-theme="dark"] .goal-chip{background:var(--card);}
[data-theme="black"] .comm-subtabs,[data-theme="dark"] .comm-subtabs{background:var(--bg);}
[data-theme="black"] select,[data-theme="dark"] select,[data-theme="dark-space"] select,[data-theme="glowing-space"] select,[data-theme="deep-sea"] select,[data-theme="sunset-beach"] select,[data-theme="urban-city"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23AEB4BC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");}

/* ================= #TASK-ES-037 기록/목표 UX 개선 스타일 ================= */
.rec-day-accordion {
  margin-bottom: 8px;
}
.rec-day-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px dashed var(--rule, rgba(255,255,255,0.12));
  border-radius: 10px;
  color: var(--ink-soft, #888);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  margin-bottom: 6px;
  transition: all 0.15s ease;
}
.rec-day-toggle-btn:hover {
  background: var(--surface-3, rgba(255,255,255,0.08));
  color: var(--ink, #fff);
  border-color: var(--brand, #FF6B4A);
}
.rec-day-collapsible {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 4px;
  margin-top: 4px;
  border-left: 2px solid var(--rule, rgba(255,255,255,0.08));
}

/* 추이 세그먼트 바 */
.trend-seg-bar {
  display: flex;
  gap: 4px;
  background: var(--surface-2, rgba(0,0,0,0.04));
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.trend-seg-btn {
  flex: 1;
  padding: 6px 0;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--ink-soft, #888);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.trend-seg-btn.active {
  background: var(--card, #fff);
  color: var(--brand-strong, #FF6B4A);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* 추이 차트 바 */
.chart-bar.active {
  background: var(--brand-gradient, linear-gradient(135deg, #FF6B4A 0%, #FF8F73 100%)) !important;
  box-shadow: 0 2px 8px rgba(255,107,74,0.35);
}

/* 추이 일자 요약 박스 */
.trend-detail-summary {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--rule, rgba(255,255,255,0.08));
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.trend-detail-summary:hover {
  transform: translateY(-1px);
  border-color: var(--brand, #FF6B4A);
}
.trend-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.trend-summary-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}
.trend-summary-metric {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-strong, #FF6B4A);
}
.trend-summary-hint {
  font-size: 0.72rem;
  color: var(--ink-faint, #999);
  margin-top: 4px;
  text-align: right;
}

/* 라이프 밸런스 휠 원형 카드 */
.balance-pie-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

/* 목표 편집 모드 좌우 이동 화살표 */
.goal-chip-item-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.goal-chip-nav-row {
  display: flex;
  gap: 4px;
  width: 100%;
  justify-content: space-between;
}
.goal-chip-nav-btn {
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--surface-3, rgba(255,255,255,0.1));
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}
.goal-chip-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* 마일스톤 재배치 및 고밀도 공간 최적화 (TASK-ES-038) */
.ms-grid-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.ms-title-full-row { width: 100%; }
.ms-right-actions { display: flex; gap: 4px; align-items: center; }
.ms-main-line {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 32px;
}
.ms-main-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.ms-title-compact {
  flex: 1;
  min-width: 0;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  border: none;
  background: transparent;
  padding: 2px 0;
}
.ms-title-compact.done-text {
  text-decoration: line-through;
  color: var(--ink-faint);
  font-weight: 400;
}
.ms-title-compact:focus {
  outline: none;
  border-bottom: 1.5px solid var(--brand);
}
.ms-main-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.ms-sub-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-left: 28px;
  font-size: .75rem;
  color: var(--ink-soft);
  min-height: 22px;
}
.ms-sub-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.ms-sub-meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

/* 상단 AI 종합상황 미니바 */
.goal-status-minibar {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: all .2s ease;
}
.status-minibar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: .8125rem;
  background: var(--card);
}
.status-minibar-head:hover {
  background: var(--surface-2);
}
.minibar-icon { font-size: 1rem; flex: 0 0 auto; }
.minibar-title { font-weight: 700; color: var(--ink); flex: 0 0 auto; }
.minibar-snippet {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink-soft);
  font-size: .78rem;
}
.minibar-chevron {
  font-size: .6875rem;
  color: var(--ink-faint);
  flex: 0 0 auto;
}
.status-minibar-body {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  background: var(--surface-1);
}

/* 1줄 세부 할 일 (One-Line Task) */
.compact-task-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  min-height: 30px;
}
.task-title-inline {
  flex: 1;
  min-width: 0;
  font-size: .84rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 1px 0;
}
.task-title-inline.done-text {
  text-decoration: line-through;
  color: var(--ink-faint);
}
.task-title-inline:focus {
  outline: none;
  border-bottom: 1px solid var(--brand);
}
.task-meta-inline {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  font-size: .72rem;
}
.task-due-tag {
  font-size: .6875rem;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

/* #TASK-ES-044 홈·목표 12대 핵심 UX 및 성장형 아바타 시스템 (#TASK-ES-118 모바일 반응형 강화) */
.home-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
@media (max-width: 390px) {
  .home-head-row {
    row-gap: 6px;
  }
  .topbar {
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 6px;
    gap: 6px;
  }
  .topbar .brand {
    font-size: 1.125rem;
  }
  .topbar-action-btn {
    font-size: 10px !important;
    padding: 2px 5px !important;
  }
}
#rsManualForm input, #rsManualForm select, #rsManualForm textarea {
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid var(--rule) !important;
}
@keyframes bubbleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}
.avatar-greeting-bubble {
  animation: bubbleFloat 2s ease-in-out infinite alternate;
}
.goal-view-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0 6px;
  flex-wrap: wrap;
}

/* ==========================================================================
   [#TASK-ES-090] 지금부터 시간기록 (Time Tracker) 몰입형 전체화면 스타일
   ========================================================================== */

.tt-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-dark, #090d16);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s ease;
}

.tt-overlay.hidden {
  display: none !important;
}

.tt-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* 상단 헤더 */
.tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.tt-mode-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3px;
  gap: 4px;
}

.tt-mode-tab {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-mode-tab.active {
  background: var(--primary, #3b82f6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.tt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tt-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* 본체 레이아웃 */
.tt-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  position: relative;
  padding: 10px 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 초시계 디스플레이 */
.tt-clock-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, margin 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* [상민님 의도 44] 구간 메모 작성 시 시간창 자연스럽게 위로 올리기 */
.tt-body.tt-memo-active {
  justify-content: flex-start;
  padding-top: 4px;
}

.tt-body.tt-memo-active .tt-clock-card {
  transform: translateY(-4px) scale(0.82);
  padding: 8px 14px;
  margin-bottom: 6px;
  border-color: rgba(99, 102, 241, 0.35);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 42, 0.5) 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.tt-body.tt-memo-active .tt-status-badge {
  margin-bottom: 2px;
  padding: 2px 8px;
  font-size: 10px;
}

.tt-body.tt-memo-active .tt-digits {
  font-size: clamp(2rem, 7.5vw, 3.2rem);
  margin: 2px 0;
}

.tt-body.tt-memo-active .tt-digits-sub {
  font-size: clamp(0.9rem, 2.6vw, 1.2rem);
  margin-bottom: 0;
}

/* 인라인 구간 메모 컨테이너 (#TASK-ES-172, [44], [55]) */
.tt-lap-memo-container {
  width: 100%;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(99, 102, 241, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
  animation: ttMemoSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

@keyframes ttMemoSlideIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tt-body.tt-memo-active .tt-laps-wrapper {
  max-height: 110px;
  opacity: 0.6;
}

.tt-status-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.tt-status-badge.running {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tt-status-badge.paused {
  background: rgba(234, 179, 8, 0.18);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.tt-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tt-status-badge.running .tt-status-dot {
  animation: ttPulse 1.5s infinite;
}

@keyframes ttPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.tt-digits {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
  font-size: clamp(2.8rem, 11vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.tt-digits-sub {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

/* 구간기록 목록 */
.tt-laps-wrapper {
  width: 100%;
  max-width: 500px;
  flex: 1;
  margin-top: 14px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  box-sizing: border-box;
  max-height: 220px;
  transition: all 0.3s ease;
}

.tt-laps-wrapper::-webkit-scrollbar {
  width: 5px;
}

.tt-laps-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tt-lap-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tt-lap-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.tt-lap-item.latest {
  color: #818cf8;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
}

.tt-lap-item:last-child {
  margin-bottom: 0;
}

.tt-lap-num {
  font-weight: 700;
  font-size: 11.5px;
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-block;
}

.tt-lap-split {
  font-family: ui-monospace, "SF Mono", monospace;
  color: #94a3b8;
  font-size: 12px;
}

.tt-lap-time {
  font-family: ui-monospace, "SF Mono", monospace;
  font-weight: 700;
  font-size: 14px;
  color: #e2e8f0;
}

.btn-quick-lap-tag,
.btn-lap-card-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-quick-lap-tag:hover,
.btn-lap-card-tag:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  color: #ffffff;
}

/* 하단 인터랙션 컨트롤 바 */
.tt-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 8px;
  flex-shrink: 0;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.tt-btn {
  border: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 14px;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  flex: 1;
  min-width: 100px;
}

.tt-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.tt-btn:active {
  transform: translateY(0);
}

.tt-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.tt-btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.tt-btn-warning {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #1e293b;
  box-shadow: 0 4px 14px rgba(202, 138, 4, 0.3);
}

.tt-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}

.tt-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tt-btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.tt-btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* 세션 종료 후 기록 작성 화면 (Review View) */
.tt-review-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 8px 0;
}

.tt-review-view::-webkit-scrollbar {
  width: 6px;
}

.tt-review-view::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tt-review-summary-card {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  padding: 18px 20px;
  text-align: center;
  margin-bottom: 20px;
}

.tt-review-total-time {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 800;
  color: #60a5fa;
  margin: 6px 0;
}

.tt-form-group {
  margin-bottom: 16px;
}

.tt-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.tt-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}

.tt-input:focus {
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.tt-review-laps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.tt-review-lap-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.65) 0%, rgba(15, 23, 42, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.tt-review-lap-card:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tt-review-lap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12.5px;
}

.tt-review-lap-badge {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.tt-review-lap-num {
  font-weight: 700;
  color: #60a5fa;
}

.tt-review-lap-time {
  font-family: ui-monospace, "SF Mono", monospace;
  color: #94a3b8;
}

.tt-review-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-bottom: 16px;
  flex-shrink: 0;
}

/* 취소 확인 2중 안전 경고 팝업 */
.tt-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.tt-dialog-backdrop.hidden,
.tt-overlay.hidden {
  display: none !important;
}

.tt-dialog-box {
  background: #1e293b;
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  animation: ttPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ttPopIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tt-dialog-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.tt-dialog-title {
  font-size: 17px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 8px;
}

.tt-dialog-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 20px;
}

.tt-dialog-actions {
  display: flex;
  gap: 10px;
}

.tt-dialog-actions .tt-btn {
  padding: 10px 16px;
}

/* ==========================================================================
   화면 회전 및 가로모드 / 폴더블 / 다양한 화면비 맞춤 반응형 레이아웃
   ========================================================================== */

/* 1. 기기 물리 회전 (가로 모드) 또는 와이드 스크린 */
@media (orientation: landscape) and (min-height: 400px) {
  .tt-body {
    flex-direction: row;
    gap: 24px;
    align-items: center;
    justify-content: center;
  }
  .tt-clock-card {
    flex: 1.2;
    padding: 20px;
  }
  .tt-laps-wrapper {
    flex: 1;
    height: 100%;
    max-height: 320px;
    margin-top: 0;
  }
  .tt-digits {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
  }
}

/* 2. 수동 가로모드 시뮬레이션 (기기 회전 꺼져 있을 때) */
.tt-forced-landscape .tt-body {
  flex-direction: row !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.tt-forced-landscape .tt-clock-card {
  flex: 1.1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.tt-forced-landscape .tt-laps-wrapper {
  flex: 1 !important;
  margin-top: 0 !important;
  max-height: 280px !important;
}

/* 3. 최신 폴더블 폰 (정방형 화면비 펼침 모드 - 대략 1:1 ~ 4:3) */
@media (min-aspect-ratio: 9/10) and (max-aspect-ratio: 10/9) {
  .tt-wrapper {
    max-width: 680px;
    justify-content: space-around;
  }
  .tt-clock-card {
    padding: 24px;
  }
  .tt-digits {
    font-size: clamp(3.2rem, 9vw, 4.8rem);
  }
  .tt-controls {
    gap: 16px;
  }
}

/* 4. 초슬림 화면비 (폴더블 폰 접힘 모드 등 21:9 비율) */
@media (max-aspect-ratio: 1/2) {
  .tt-digits {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }
  .tt-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}


/* 타이머(Timer) 모드 전용 시간 설정 및 프리셋 UI */
.tt-timer-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

.tt-timer-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.tt-preset-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tt-preset-chip:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #ffffff;
  transform: translateY(-1px);
}

.tt-preset-chip.active {
  background: var(--primary, #3b82f6);
  border-color: var(--primary, #3b82f6);
  color: #ffffff;
}

.tt-timer-adjusters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px 0;
}

.tt-adjust-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tt-adjust-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.tt-adjust-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.tt-adjust-val {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  min-width: 48px;
  text-align: center;
  padding: 4px 0;
}

.tt-adjust-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.tt-adjust-sep {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 26px;
  font-weight: 800;
  color: #64748b;
  margin-top: -18px;
}

.tt-timer-complete-card {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  animation: ttCompleteGlow 1.5s infinite alternate;
}

@keyframes ttCompleteGlow {
  from { box-shadow: 0 0 15px rgba(34, 197, 94, 0.2); }
  to { box-shadow: 0 0 35px rgba(34, 197, 94, 0.5); }
}

/* ==========================================================================
   유니버설 데이터 가져오기 & 1초 샘플 로더 전용 스타일 (#TASK-ES-091)
   ========================================================================== */
.u-sample-card {
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.u-sample-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand) !important;
  background: var(--brand-faint, rgba(37, 99, 235, 0.05)) !important;
}
.u-sample-quick-btn {
  background: var(--brand);
  color: var(--chip-ink) !important;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.u-sample-quick-btn:hover {
  opacity: 0.92;
  transform: scale(1.04);
}
.u-sample-quick-btn:active {
  transform: scale(0.96);
}
.u-sample-purge-row {
  animation: fadeIn 0.2s ease-in-out;
}
#uImpPreviewBox {
  animation: fadeIn 0.2s ease-in-out;
  border: 1px solid var(--border);
}
#uImpPreviewBox table th {
  font-weight: 700;
  border-bottom: 1.5px solid var(--border);
}
#uImpPreviewBox table tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

/* ================= #TASK-ES-092 직관적 프로 통계 콕핏 UI/UX ================= */
.u-cockpit-quick-guide {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  transition: all 0.2s ease;
}
.u-lens-exp-banner {
  background: var(--card2);
  border-left: 3.5px solid var(--primary);
  border-radius: 8px;
  animation: fadeIn 0.25s ease-out;
}
.u-chart-title-bar {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}
.u-entity-chip {
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.u-entity-chip:hover {
  transform: translateY(-1px);
}
.u-mgmt-tool-card {
  transition: all 0.18s ease;
}
.u-mgmt-tool-card:hover {
  border-color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.04) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ========================================================
   [#TASK-ES-093] 추천 샘플 데이터 테마별 카테고리화 및 효과적 UI/UX
   ======================================================== */
.u-theme-tab-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.u-theme-tab-row::-webkit-scrollbar {
  display: none;
}
.u-theme-tab-btn {
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s ease;
}
.u-theme-tab-btn:hover {
  filter: brightness(1.05);
}
.u-sample-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  animation: fadeIn 0.2s ease-out;
}
.u-sample-card {
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.12s ease;
}
.u-sample-card:hover {
  transform: translateY(-1px);
  border-color: var(--brand) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.u-sample-quick-btn {
  transition: transform 0.1s ease, filter 0.1s ease;
}
.u-sample-quick-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* AI 피드백 도착 및 데일리 퀘스트 실시간 달성 시각 효과 (#TASK-ES-100) */
.fb-card.just-arrived {
  animation: fbCardGlow 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.45) !important;
}
@keyframes fbCardGlow {
  0% { transform: translateY(6px) scale(0.97); box-shadow: 0 0 35px rgba(56, 189, 248, 0.8) !important; }
  50% { transform: translateY(-2px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}
.daily-quest-item.just-completed {
  animation: questGlow 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  border-color: rgba(34, 197, 94, 0.8) !important;
  background: rgba(34, 197, 94, 0.15) !important;
}
@keyframes questGlow {
  0% { transform: scale(0.96); box-shadow: 0 0 20px rgba(34, 197, 94, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 30px rgba(34, 197, 94, 0.9); }
  100% { transform: scale(1); }
}

/* 목표 편집 모드 플로팅 완료 바 및 인라인 완료 버튼 (#TASK-ES-109) */
.goal-edit-floating-bar {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(26, 28, 35, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 16px rgba(99, 102, 241, 0.2);
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: goalEditBarSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes goalEditBarSlideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
[data-theme="light"] .goal-edit-floating-bar {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15), 0 0 16px rgba(99, 102, 241, 0.15);
}
.goal-edit-floating-bar .bar-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.goal-edit-floating-bar .bar-title {
  font-size: .84375rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}
.goal-edit-floating-bar .bar-sub {
  font-size: .72rem;
  color: var(--ink-soft);
}
.goal-edit-done-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: .84375rem;
  font-weight: 700;
  background: var(--brand);
  color: var(--chip-ink);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
  transition: transform 0.1s ease, filter 0.1s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.goal-edit-done-cta-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}
.goal-edit-done-cta-btn:active {
  transform: scale(0.97);
}
.goal-edit-done-inline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9375rem;
  background: var(--brand);
  color: var(--chip-ink);
  border: none;
  cursor: pointer;
  margin-top: 12px;
  margin-bottom: 8px;
  box-shadow: 0 3px 14px rgba(99, 102, 241, 0.3);
  transition: transform 0.1s ease, filter 0.1s ease;
}
.goal-edit-done-inline-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.01);
}
.goal-edit-done-inline-btn:active {
  transform: scale(0.98);
}

.tg-reorder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--card2);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .12s, border-color .12s, transform .08s;
  padding: 0;
  margin: 0;
}
.tg-reorder-btn:hover {
  background: var(--surface-2);
  border-color: var(--brand);
}
.tg-reorder-btn:active {
  background: var(--brand);
  color: var(--chip-ink);
  transform: scale(0.92);
}

/* ============================================================
 * #TASK-ES-110: 팀 목표 시인성 개선 및 아코디언/수준관리 듀얼 모드 스타일
 * ============================================================ */
.tg-goal-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px 2px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.tg-goal-switcher::-webkit-scrollbar {
  height: 4px;
}
.tg-goal-switcher::-webkit-scrollbar-thumb {
  background: var(--rule);
  border-radius: 4px;
}
.tg-goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--card2, #f5f6f8);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  flex: 0 0 auto;
}
.tg-goal-chip:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}
.tg-goal-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--chip-ink);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.tg-goal-chip.active .tg-chip-dday {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.tg-chip-dday {
  font-size: .6875rem;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--brand-strong);
  font-weight: 700;
}
.tg-compact-goal-card {
  background: var(--card);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  transition: border-color .15s ease;
}
.tg-compact-goal-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
}
.tg-level-dual-tabs {
  display: flex;
  background: var(--card2, #f1f3f5);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 10px;
  border: 1px solid var(--rule);
}
.tg-level-seg-btn {
  flex: 1;
  text-align: center;
  padding: 6px 10px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tg-level-seg-btn.active {
  background: var(--card, #fff);
  color: var(--brand-strong);
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.tg-accordion-section {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
  margin-top: 14px;
  overflow: hidden;
}
.tg-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: var(--card2, #f8f9fa);
  cursor: pointer;
  user-select: none;
  transition: background .12s ease;
}
.tg-accordion-header:hover {
  background: var(--surface-2, #eef2ff);
}
.tg-accordion-arrow {
  font-size: .75rem;
  color: var(--ink-faint);
  transition: transform .2s ease;
}
.tg-accordion-arrow.rotated {
  transform: rotate(180deg);
}
.tg-accordion-body {
  padding: 12px 14px;
}
.tg-lg-accordion-row {
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card2, #fafafa);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all .15s ease;
}
.tg-lg-accordion-row:hover {
  border-color: var(--rule-strong, #ccc);
}
.tg-lg-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  gap: 8px;
}
.tg-lg-row-body {
  padding: 10px 12px;
  background: var(--card);
  border-top: 1px dashed var(--rule);
}
.tg-comments-toggle-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--card2);
  border: 1px solid var(--rule);
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 6px;
  transition: all .15s ease;
}
.tg-comments-toggle-bar:hover {
  color: var(--brand-strong);
  border-color: var(--brand);
}

/* ============================================================
 * #TASK-ES-111 참가 팀원 달성현황 1열 가로 인라인 & 컴팩트 UI
 * ============================================================ */
.tg-participants-section {
  margin: 8px 0 10px;
  background: var(--card2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px 12px;
}
.tg-p-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.tg-p-header-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
}
.tg-p-header-badge {
  font-size: .75rem;
  background: var(--card);
  color: var(--brand-strong);
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}
.tg-p-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.tg-participant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 8px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--rule);
  gap: 8px;
  min-height: 36px;
}
.tg-p-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.tg-p-avatar {
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
}
.tg-p-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .8125rem;
}
.tg-p-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  flex: 0 0 auto;
}
.tg-p-role-badge {
  font-size: .6875rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
  flex: 0 0 auto;
  line-height: 1.2;
}
.tg-p-role-badge.me {
  background: var(--sage-soft);
  color: var(--sage);
  font-weight: 700;
}
.tg-p-role-badge.peer {
  background: var(--surface-2);
  color: var(--ink-faint);
  border: 1px solid var(--rule);
}
.tg-p-divider {
  color: var(--rule);
  font-size: .75rem;
  flex: 0 0 auto;
}
.tg-p-status {
  font-size: .75rem;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.tg-p-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.tg-p-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: right;
}
.tg-p-pct {
  font-weight: 700;
  font-size: .75rem;
  color: var(--brand-strong);
  min-width: 28px;
}
.tg-p-bar {
  width: 36px;
  height: 4px;
  margin: 0;
  flex: 0 0 auto;
}
.tg-p-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.tg-p-action-btn {
  padding: 2px 6px;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

/* 목표탭 3계층 일정설정 / 디데이·기간 표시 배지 (#TASK-ES-259) */
.schedule-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--ink-soft);
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
  position: relative;
  min-height: 24px;
  box-sizing: border-box;
}
.schedule-pill-btn::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -8px;
  right: -8px;
  min-height: 44px;
}
.schedule-pill-btn.empty {
  border: 1px dashed var(--line);
  color: var(--ink-faint);
  background: transparent;
}
.schedule-pill-btn.empty:hover,
.schedule-pill-btn.empty:active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.schedule-pill-btn.has-date {
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand-strong);
}
.schedule-pill-btn.has-date:hover,
.schedule-pill-btn.has-date:active {
  border-color: var(--brand);
  filter: brightness(0.95);
}
@media (max-width: 480px) {
  .schedule-pill-btn {
    font-size: 0.6875rem;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========================================================
   [#TASK-ES-146] 홈 탭 평가해주기 배너 & 90% 대형 평가 팝업
   ======================================================== */
.home-eval-banner-box {
  margin: 16px 0 10px;
  width: 100%;
}
.eval-banner-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 12px;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.eval-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}
.eval-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eval-modal-sheet {
  width: 90vw;
  max-width: 680px;
  height: 90vh;
  max-height: 90vh;
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.eval-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
}
.eval-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}
.eval-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eval-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eval-field-label {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink);
}
.eval-textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink);
  font-size: .84rem;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}
.eval-num-input {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--ink);
  box-sizing: border-box;
}

/* ========================================================
   [#TASK-ES-261] 목표 탭 '목표만' 버튼 이격 배치 (4px 규격) 및 하위 마일스톤형 카드
   ======================================================== */
.goals-only-wrap {
  margin-left: 4px; /* 상단 상세와 전체접기 간격(gap: 4px)과 동일 규격 */
}
.goal-milestone-overview-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.goal-sub-milestone-item {
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.goal-sub-milestone-item:hover {
  background: var(--bg-hover, rgba(0,0,0,0.04));
  border-color: var(--ink-faint);
}
@media (max-width: 375px) {
  #msViewToggle .format-opt {
    padding: 4px 6px;
    font-size: 0.72rem;
    letter-spacing: -0.3px;
  }
  .goals-only-wrap {
    margin-left: 4px;
  }
}

/* ========================================================
   [#TASK-ES-262] 오늘의 미션 추천카드 내 안내멘트 ('뭘 할지 모르겠을 때 도움돼요(내 목표기반)')
   ======================================================== */
.today-card-guide-hint {
  font-size: 0.6875rem; /* 11px, .ct-label(12px)보다 1pt 축소 규격 */
  color: var(--brand);
  background: rgba(99, 102, 241, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
@media (max-width: 375px) {
  .today-card-guide-hint {
    font-size: 0.65625rem;
    padding: 1px 5px;
    letter-spacing: -0.3px;
  }
}

/* ========================================================
   [#TASK-ES-148] 스톱워치 표 시간기입 마이크로 카피
   ======================================================== */
.sw-inject-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* ========================================================
   [#TASK-ES-149] 팀 목표 가이드 소멸 안내문구
   ======================================================== */
.guide-vanish-hint {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  font-weight: 400;
}

/* ========================================================
   [#TASK-ES-150] 아바타 레벨업 대형 팝업
   ======================================================== */
.avatar-large-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}

/* ========================================================
   [#TASK-ES-151] 캘린더 일정 체크버튼 및 목표 연동 UI
   ======================================================== */
.sched-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--ink-disabled);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: #fff;
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  background: var(--card);
}
.sched-check:hover {
  border-color: var(--accent);
  transform: scale(1.08);
}
.sched-check.done {
  background: #10b981;
  border-color: #10b981;
  color: var(--chip-ink);
}
.timetable-chip.done-chip {
  opacity: 0.68;
  border-color: #10b981 !important;
  border-left-color: #10b981 !important;
  background: var(--card2) !important;
}
.timetable-chip.done-chip .sched-title {
  text-decoration: line-through;
  color: var(--ink-faint) !important;
}
.sched-goal-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: .6875rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent);
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sched-title.done-text {
  text-decoration: line-through;
  color: var(--ink-faint);
}

/* ========================================================
   [#TASK-ES-152] 백그라운드·앱종료·미확인 전역 알림 배너 & 설정창
   ======================================================== */
.notify-floating-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-120px);
  z-index: 99999;
  max-width: 440px;
  width: calc(100% - 32px);
  background: var(--card);
  border: 1px solid var(--border-strong, var(--rule));
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
  opacity: 0;
  pointer-events: none;
}
.notify-floating-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.notify-floating-banner:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}
.notify-banner-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border-radius: 10px;
}
.notify-banner-content {
  flex: 1;
  min-width: 0;
}
.notify-banner-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.notify-banner-body {
  font-size: .8125rem;
  color: var(--ink-soft);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.notify-banner-close {
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
}
.notify-banner-close:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.notify-settings-card {
  background: var(--card2);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.notify-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.notify-mode-btn {
  padding: 9px 10px;
  font-size: .8125rem;
  font-weight: 600;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s ease;
}
.notify-mode-btn:hover {
  border-color: var(--accent);
}
.notify-mode-btn.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- [#TASK-ES-153] 캘린더 일자별 배경 사진 지정 및 50% 투명도 전역 렌더링 ---------- */
.cal-cell {
  position: relative !important;
}
.cal-cell-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.cal-cell .cal-daynum,
.cal-cell .cal-pill,
.cal-cell .cal-more {
  position: relative;
  z-index: 1;
}
.timetable-day-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.cal-bg-preview-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed var(--rule);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.cal-bg-preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.cal-bg-preview-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px;
}
.cal-day-bg-btn {
  transition: all .15s ease;
}
.cal-day-bg-btn:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* 캘린더 상단 사진일기장 감성 안내 문구 */
.cal-sub-guide {
  font-size: 0.78125rem;
  color: var(--ink-soft);
  margin: 2px 0 8px 0;
  padding: 4px 10px;
  min-height: 28px;
  max-height: 32px;
  background: var(--surface-1);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  box-sizing: border-box;
}
.cal-sub-guide .cal-sub-guide-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============ 회원 탈퇴 전용 안내 모달 (#TASK-ES-158, #TASK-ES-271) ============ */
.withdraw-modal-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  box-sizing: border-box;
}
.withdraw-top-banner {
  background: var(--surface-1, #f8f9fa);
  border: 1px solid var(--rule, #e9ecef);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink);
}
.withdraw-box {
  background: var(--card, #fff);
  border: 1px solid var(--rule, #e9ecef);
  border-radius: 10px;
  padding: 12px 14px;
  box-sizing: border-box;
}
.withdraw-box-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.withdraw-box-desc {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-soft, #666);
  margin: 0;
}
.withdraw-box-desc ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.withdraw-box-desc li {
  margin-bottom: 4px;
}
.withdraw-box-danger {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}
.withdraw-box-danger .withdraw-box-title {
  color: #dc2626;
}
.withdraw-box-info {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.04);
}
.withdraw-box-info .withdraw-box-title {
  color: #2563eb;
}
.withdraw-box-legal {
  border-color: rgba(107, 114, 128, 0.35);
  background: rgba(107, 114, 128, 0.04);
}
.withdraw-box-legal .withdraw-box-title {
  color: #4b5563;
}
.withdraw-agree-wrapper {
  margin-top: 4px;
}
.withdraw-check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.25);
  font-size: 0.875rem;
  font-weight: 600;
  color: #b91c1c;
  line-height: 1.45;
}
.withdraw-check-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* ============ 5대 상징 랭크 백그라운드 시스템 (#TASK-ES-159) ============ */
.avatar-rank-aura-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform 0.2s ease;
}
.avatar-rank-aura-wrap:hover {
  transform: scale(1.05);
}
.rank-bg-svg-layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
}
.avatar-inner-box {
  position: relative;
  z-index: 2;
  transition: all 0.25s ease;
}

/* 5대 테마별 오라 펄스 & 애니메이션 */
.rank-theme-sprout .rank-bg-svg-layer {
  animation: sproutSway 3s ease-in-out infinite alternate;
}
@keyframes sproutSway {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.04) rotate(1.5deg); }
}

.rank-theme-forest .rank-bg-svg-layer {
  animation: forestBreathe 3.5s ease-in-out infinite alternate;
}
@keyframes forestBreathe {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(5, 150, 105, 0.3)); }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 6px rgba(5, 150, 105, 0.6)); }
}

.rank-theme-poseidon .rank-bg-svg-layer {
  animation: poseidonTide 2.8s ease-in-out infinite alternate;
}
@keyframes poseidonTide {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.06); filter: drop-shadow(0 0 7px rgba(2, 132, 199, 0.6)); }
}

.rank-theme-zeus .rank-bg-svg-layer {
  animation: zeusThunderGlow 1.8s ease-in-out infinite alternate;
}
@keyframes zeusThunderGlow {
  0% { transform: scale(1); filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); }
  100% { transform: scale(1.07); filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.9)); }
}

.rank-theme-cosmic .rank-bg-svg-layer {
  animation: cosmicOrbit 6s linear infinite;
}
@keyframes cosmicOrbit {
  0% { filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5)); }
  50% { filter: drop-shadow(0 0 10px rgba(192, 132, 252, 0.8)); }
  100% { filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5)); }
}

/* 좌우 상징 백그라운드 날개 및 오라 조형 (#TASK-ES-272) */
.avatar-rank-side-wings {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}
.avatar-rank-aura-wrap:hover .avatar-rank-side-wings {
  transform: scale(1.08);
}
.rank-wings-sprout {
  filter: drop-shadow(0 1px 3px rgba(16, 185, 129, 0.3));
}
.rank-wings-forest {
  filter: drop-shadow(0 2px 5px rgba(5, 150, 105, 0.4));
}
.rank-wings-poseidon {
  filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.45));
}
.rank-wings-zeus {
  filter: drop-shadow(0 2px 7px rgba(245, 158, 11, 0.5));
}
.rank-wings-cosmic {
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.55));
}

.avatar-rank-summary-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.avatar-rank-summary-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============ 각 탭 200% 활용법 및 우수 사용사례 쇼케이스 (#TASK-ES-160) ============ */
.tab-guide-hub-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 4px;
  box-sizing: border-box;
}
.tab-guide-nav-bar {
  display: flex;
  gap: 6px;
  background: var(--surface-2, #f1f3f5);
  padding: 4px;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
.guide-tab-nav-btn {
  flex: 1;
  min-width: 52px;
  padding: 7px 8px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft, #666);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.guide-tab-nav-btn.active {
  background: var(--card, #fff);
  color: var(--brand, #3b82f6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.guide-feature-block {
  background: var(--surface-1, #f8f9fa);
  border: 1px solid var(--rule, #e9ecef);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.guide-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink);
}
.guide-feature-item:last-child {
  margin-bottom: 0;
}
.guide-feature-bullet {
  color: var(--brand, #3b82f6);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.guide-showcase-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.04), rgba(59, 130, 246, 0.06));
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 14px;
  box-sizing: border-box;
}
.guide-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.showcase-badge {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: -0.2px;
}
.showcase-user-info {
  font-size: 0.78125rem;
  color: var(--ink-soft);
}
.guide-showcase-title {
  font-size: 0.96875rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.4;
}
.guide-showcase-quote {
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.55;
  background: var(--card, #fff);
  border-left: 3px solid #6366f1;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  margin: 8px 0 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.showcase-mockup-wrap {
  background: var(--card, #fff);
  border: 1px solid var(--rule, #e9ecef);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==============================================================================
 * [#TASK-ES-161] 참고자료 첨부 스마트 감지 · 비주얼 프리뷰 · 리치 칩 시스템 스타일
 * ============================================================================== */
.att-smart-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface-1, rgba(0,0,0,0.03));
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.att-clipboard-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.25);
}
.att-clipboard-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.att-preset-group {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.att-preset-group::-webkit-scrollbar {
  display: none;
}
.att-preset-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--card, #fff);
  border: 1px solid var(--rule, #cbd5e1);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
}
.att-preset-chip:hover {
  background: var(--brand-soft, rgba(99, 102, 241, 0.1));
  border-color: var(--brand, #6366f1);
  color: var(--brand, #6366f1);
}
.att-live-preview-box {
  background: var(--card, #fff);
  border: 1.5px solid var(--brand-line, #c7d2fe);
  border-radius: 12px;
  padding: 10px;
  margin-top: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: fadeInAttPreview 0.25s ease;
}
@keyframes fadeInAttPreview {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.att-preview-thumb-wrap {
  position: relative;
  width: 90px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.att-preview-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.att-yt-play-icon {
  position: absolute;
  width: 26px;
  height: 26px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.att-preview-meta {
  flex: 1;
  min-width: 0;
}
.att-preview-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.att-badge-youtube {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}
.att-badge-web {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.att-badge-image {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.att-badge-text {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.att-preview-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.att-preview-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
/* 리치 칩 스타일 */
.att-chip-rich {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.78125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
  text-decoration: none;
}
.att-chip-rich.type-video {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}
.att-chip-rich.type-video:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  transform: translateY(-1px);
}
.att-chip-rich.type-link {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}
.att-chip-rich.type-link:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.att-chip-rich.type-image {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}
.att-chip-rich.type-image:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}
.att-chip-rich.type-text {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
}
.att-chip-rich.type-text:hover {
  background: #fef3c7;
  border-color: #fde68a;
  transform: translateY(-1px);
}

/* ==============================================================================
 * [#TASK-ES-162] OurgoalComponents 공통 UI 모듈 표준 스타일 시스템
 * ============================================================================== */
/* 1. 표준 배지 */
.og-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
}
.og-badge-sm {
  font-size: 0.6875rem;
  padding: 2px 6px;
}
.og-badge-brand {
  background: var(--brand-soft, rgba(99, 102, 241, 0.12));
  color: var(--brand, #6366f1);
  border: 1px solid var(--brand-line, #c7d2fe);
}
.og-badge-gold {
  background: var(--gold-soft, rgba(245, 158, 11, 0.12));
  color: var(--gold, #d97706);
  border: 1px solid var(--gold-line, #fde68a);
}
.og-badge-sage {
  background: var(--sage-soft, rgba(16, 185, 129, 0.12));
  color: var(--sage, #059669);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.og-badge-red {
  background: var(--red-soft, rgba(239, 68, 68, 0.12));
  color: var(--brand-strong, #dc2626);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.og-badge-gray {
  background: var(--card2, #f1f5f9);
  color: var(--ink-soft, #64748b);
  border: 1px solid var(--rule, #cbd5e1);
}

/* 2. 프로 통계 지표 카드 */
.og-stat-card {
  background: var(--card, #fff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.og-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.og-stat-title {
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.og-stat-icon {
  font-size: 1rem;
}
.og-stat-mid {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.og-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.og-stat-diff {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.og-trend-up {
  background: #dcfce7;
  color: #15803d;
}
.og-trend-down {
  background: #fee2e2;
  color: #dc2626;
}
.og-trend-neutral {
  background: #f1f5f9;
  color: #475569;
}
.og-stat-sub {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* 3. 프로그레스 바 */
.og-prog-container {
  width: 100%;
}
.og-prog-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.og-prog-track {
  width: 100%;
  background: var(--rule, #e2e8f0);
  border-radius: 999px;
  overflow: hidden;
}
.og-prog-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.og-fill-brand { background: var(--brand, #6366f1); }
.og-fill-gold { background: var(--gold, #f59e0b); }
.og-fill-sage { background: var(--sage, #10b981); }
.og-fill-red { background: var(--brand-strong, #ef4444); }
.og-fill-gradient { background: linear-gradient(90deg, #6366f1, #10b981); }

/* 4. 표준 모달 셸 */
.og-modal-shell {
  display: flex;
  flex-direction: column;
}
.og-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.og-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.og-modal-sub {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.og-modal-body {
  flex: 1;
}

/* 5. 엠프티 스테이트 */
.og-empty-state {
  text-align: center;
  padding: 32px 16px;
  border: 1.5px dashed var(--rule, #cbd5e1);
  border-radius: 14px;
  background: var(--surface-1, rgba(0,0,0,0.015));
}
.og-empty-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.og-empty-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.og-empty-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 280px;
  margin: 0 auto;
}

/* ============ [#TASK-ES-163] 지표별 차등 분석 및 정밀화 고도화 스타일 ============ */
.diff-report-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.diff-report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.diff-report-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}
.diff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 480px) {
  .diff-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.diff-kpi-cell {
  background: var(--surface-1, #f8fafc);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.diff-kpi-label {
  font-size: 0.725rem;
  color: var(--ink-soft, #64748b);
  font-weight: 600;
}
.diff-kpi-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink, #0f172a);
  line-height: 1.2;
}
.diff-kpi-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand, #4f46e5);
  background: var(--brand-bg, rgba(79, 70, 229, 0.08));
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
  margin-top: 2px;
}
.diff-summary-box {
  background: var(--surface-1, #f8fafc);
  border-left: 3px solid var(--brand, #4f46e5);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  color: var(--ink, #1e293b);
  line-height: 1.55;
}
.diff-cfg-card {
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--card, #ffffff);
}
.diff-cfg-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink, #0f172a);
  margin-bottom: 6px;
}
.diff-opt-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.diff-opt-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--rule, #cbd5e1);
  background: var(--card, #fff);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft, #64748b);
  cursor: pointer;
}
.diff-opt-btn.active {
  background: var(--brand, #4f46e5);
  color: var(--chip-ink);
  border-color: var(--brand, #4f46e5);
}

/* ============ [#TASK-ES-164] 소통창 화면정리 및 피드·소통 UI 시인성·피로도 개선 스타일 ============ */
.comm-subtabs-clean {
  display: flex;
  gap: 6px;
  background: var(--surface-2, #f1f5f9);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--rule-soft, rgba(0,0,0,0.06));
}
.comm-subtabs-clean::-webkit-scrollbar {
  display: none;
}
.comm-subtabs-clean .comm-subtab {
  flex: 1 0 auto;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 9px;
  color: var(--ink-soft, #64748b);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
}
.comm-subtabs-clean .comm-subtab.active {
  background: var(--card, #ffffff);
  color: var(--brand, #4f46e5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.comm-quick-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-1, #f8fafc);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 10px;
}
.comm-quick-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink, #1e293b);
}
.comm-quick-strip-text {
  font-size: 0.8125rem;
  color: var(--ink, #1e293b);
}
.comm-feed-type-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.comm-feed-type-bar::-webkit-scrollbar {
  display: none;
}
.comm-type-pill {
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--rule, #cbd5e1);
  background: var(--card, #ffffff);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft, #64748b);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.comm-type-pill.active {
  background: var(--brand, #4f46e5);
  color: var(--chip-ink);
  border-color: var(--brand, #4f46e5);
}
.ai-badge-notice-clean {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--brand, #4f46e5);
  font-size: 0.725rem;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
}





/* ============ #TASK-ES-165: 앱 진입 대형 아바타 인사 팝업 ============ */
.avatar-greet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  user-select: none;
}
.avatar-greet-overlay.fade-out {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}
.avatar-greet-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  width: 90%;
  animation: avatarGreetPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes avatarGreetPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.avatar-greet-close-big {
  position: absolute;
  top: -18px;
  right: -12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  z-index: 10002;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0;
}
.avatar-greet-close-big:hover,
.avatar-greet-close-big:active {
  transform: scale(1.12);
  background: #fee2e2;
  color: #ef4444;
}
.avatar-greet-bubble {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  color: #0f172a;
  border-radius: 20px;
  padding: 14px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  text-align: center;
  margin-bottom: 22px;
  z-index: 10001;
  border: 2px solid rgba(255, 255, 255, 0.9);
  max-width: 90%;
  line-height: 1.4;
}
.avatar-greet-bubble::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 12px 10px 0 10px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.98) transparent transparent transparent;
  display: block;
  width: 0;
}
.avatar-greet-figure-container {
  height: 48vh;
  max-height: 350px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.5));
}
.avatar-greet-figure-container .avatar-inner-box {
  width: 220px !important;
  height: 220px !important;
  border-radius: 28px !important;
}
.avatar-greet-timer-bar {
  width: 180px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin-top: 18px;
  overflow: hidden;
}
.avatar-greet-timer-progress {
  height: 100%;
  background: #3b82f6;
  width: 100%;
  animation: avatarTimerProgress 2.5s linear forwards;
}
@keyframes avatarTimerProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}

/* ==========================================================================
   #TASK-ES-170: 아워골 전 탭 UI 전면 개편 — 볼드 모듈러 보더 (Bold Modular Borders)
   초보자 및 공간 지각력 취약 사용자를 위한 전 탭 뚜렷한 칸 구분(2px Bold Border)
   적용 탭: 홈(#screen-home), 목표(#screen-goals), 캘린더(#screen-calendar),
            기록(#screen-records), 소통(#screen-comm), 설정(#screen-settings)
   ========================================================================== */
:root {
  --home-card-border: #1E293B;
  --home-card-border-soft: rgba(30, 41, 59, 0.18);
  --home-quest-check: #3B82F6;
  --card-border: 2px solid var(--home-card-border);
}

[data-theme="black"], [data-theme="dark"], [data-theme="dark-space"], [data-theme="glowing-space"], [data-theme="deep-sea"], [data-theme="sunset-beach"], [data-theme="urban-city"] {
  --home-card-border: rgba(255, 255, 255, 0.28);
  --home-card-border-soft: rgba(255, 255, 255, 0.15);
  --home-quest-check: #60A5FA;
  --card-border: 2px solid var(--home-card-border);
}

/* 전 탭 공통 카드의 2px 볼드 모듈러 보더 적용: 칸 구분을 명확히 분리 */
.screen .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .goal-card,
.screen .rec-card,
.screen .comm-clean-card,
.screen .feed-card,
.screen .team-card,
.screen .cal-schedule-card,
.screen .set-box,
.screen .capture-card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .crew-pacing-widget,
.screen .daily-quest-bar-wrap,
.screen .level-badge,
.screen .mission-card,
.screen .empty-goal-starter,
.screen .home-eval-banner-box,
.screen .tmpl-card,
.screen .archive-card,
.screen .pro-trend-chart-card,
.screen .pro-stopwatch-widget,
.screen .grp-photo-card,
.screen #hybridDash {
  border: 2px solid var(--home-card-border) !important;
  border-radius: 20px !important;
  margin-bottom: 16px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.screen .card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .goal-card:hover,
.screen .rec-card:hover,
.screen .comm-clean-card:hover,
.screen .capture-card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .set-box:hover {
  border-color: var(--brand) !important;
  box-shadow: 0 8px 22px rgba(255, 79, 100, 0.14) !important;
  transform: translateY(-2px);
}

/* 홈탭 상단 인사 & 히어로 바 */
#screen-home .home-head-row {
  background: var(--card);
  border: 2px solid var(--home-card-border);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

#screen-home .home-greet {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* 1줄 기록 입력창 고도화 */
#screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border: 1.5px solid var(--rule) !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  background: var(--input-bg) !important;
  transition: all 0.18s ease;
}

#screen-home #captureInput:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-color: var(--brand) !important;
  background: var(--card) !important;
  box-shadow: 0 0 0 3px var(--brand-soft) !important;
  outline: none;
}

/* 저장 버튼 메인 CTA 스타일 */
#screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  height: 46px !important;
  border-radius: 14px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 4px 14px var(--brand-line) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#screen-home #captureSave:active {
  transform: scale(0.97);
}

/* 목표 퀘스트 카드 스타일 */
.goal-card {
  padding: 18px !important;
}

.goal-card-top h4 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink);
}

.goal-body {
  margin-top: 8px;
}

/* 목표탭 헤더 & 세그먼트 바 고도화 */
#screen-goals .goal-head-row,
#screen-calendar .cal-top-row,
#screen-records .rec-head-row,
#screen-comm .comm-top-bar,
#screen-settings .set-head-row {
  margin-bottom: 14px;
}

/* 캘린더 탭 카드 구획 강화 */
#screen-calendar .cal-card,
#screen-calendar #calViewWrap {
  border: 2px solid var(--home-card-border) !important;
  border-radius: 20px !important;
}

/* 소통 탭 서브탭 및 피드 카드 강화 */
.comm-subtabs, .comm-subtabs-clean {
  border: 1.5px solid var(--rule);
  border-radius: 16px;
  padding: 4px;
}




/* ==========================================================================
   🌟 OURGOAL 3.0: THE FOCUS SANCTUARY & EMERALD MINT DESIGN SYSTEM
   상민 대표님 철학 100% 구현 — 20대 전수 화면 비주얼 스타일시트
   - 100% Non-destructive: 기존 클래스, ID, JS 바인딩 100% 보존
   ========================================================================== */

/* 1. 포커스 성소 (Focus Sanctuary) 전역 토큰 */
:root, [data-theme="focus-sanctuary"], [data-theme="sanctuary"], [data-theme="black"], [data-theme="dark"] {
  --sanctuary-bg: #0B0F17;
  --sanctuary-card-bg: rgba(255, 255, 255, 0.04);
  --sanctuary-card-border: 1px solid rgba(255, 255, 255, 0.08);
  --sanctuary-card-hover-border: 1px solid rgba(16, 185, 129, 0.4);
  --sanctuary-glass-blur: blur(16px);
  --sanctuary-emerald: #10B981;
  --sanctuary-emerald-glow: 0 0 20px rgba(16, 185, 129, 0.35);
  --sanctuary-emerald-soft: rgba(16, 185, 129, 0.12);
  --sanctuary-emerald-strong: #059669;
  --sanctuary-ink: #F8FAFC;
  --sanctuary-ink-soft: #CBD5E1;
  --sanctuary-ink-faint: #94A3B8;
  --sanctuary-radius: 20px;
}

/* 2. 전 화면 4대 공식 테마 1급 디자인 토큰 변수 시스템 (#TASK-ES-330) */
/* 2-1. 포커스 성소 (Focus Sanctuary - 아워골 시그니처) */
html[data-theme="focus-sanctuary"],
[data-theme="focus-sanctuary"],
html[data-theme="focus-sanctuary"] {
  --bg: #0B0F17;
  --paper: #0B0F17;
  --card: #121A26;
  --surface: rgba(255, 255, 255, 0.04);
  --card2: #18212F;
  --surface-2: #18212F;
  --surface-3: #243044;
  --ink: #F8FAFC;
  --ink-soft: #CBD5E1;
  --ink-faint: #A3B1C4;
  --ink-disabled: #475569;
  --rule: rgba(255,255,255,.16);
  --line: rgba(255,255,255,.16);
  --rule-soft: rgba(255, 255, 255, 0.04);
  --card-border: 1px solid rgba(255,255,255,.16);
  --card-backdrop: blur(16px);
  --brand: #10B981;
  --brand-strong: #059669;
  --brand-soft: rgba(16, 185, 129, 0.14);
  --brand-line: rgba(16, 185, 129, 0.35);
  --topbar-bg: rgba(11, 15, 23, 0.85);
  --bottomnav-bg: rgba(11, 15, 23, 0.90);
  --input-bg: rgba(255, 255, 255, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* 2-2. 블랙 (True OLED Black - 딥블랙 & 배터리 절약) */
html[data-theme="black"],
[data-theme="black"],
html[data-theme="black"] {
  --bg: #000000;
  --paper: #000000;
  --card: #0F0F12;
  --surface: #0A0A0C;
  --card2: #18181D;
  --surface-2: #18181D;
  --surface-3: #24242B;
  --ink: #FFFFFF;
  --ink-soft: #D4D4D8;
  --ink-faint: #A1A1AA;
  --ink-disabled: #52525B;
  --rule: rgba(255,255,255,.20);
  --line: rgba(255,255,255,.20);
  --rule-soft: rgba(255, 255, 255, 0.08);
  --card-border: 1px solid rgba(255,255,255,.20);
  --card-backdrop: blur(16px);
  --brand: #10B981;
  --brand-strong: #059669;
  --brand-soft: rgba(16, 185, 129, 0.18);
  --brand-line: rgba(16, 185, 129, 0.40);
  --topbar-bg: rgba(0, 0, 0, 0.92);
  --bottomnav-bg: rgba(14, 14, 18, 0.96);
  --input-bg: #121216;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

/* 2-3. 화이트 (Pure Minimal White - 눈부심 없는 고대비 순백) */
html[data-theme="white"],
[data-theme="white"],
html[data-theme="white"] {
  --bg: #F3F5F8;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --surface: #FFFFFF;
  --card2: #F1F5F9;
  --surface-2: #F1F5F9;
  --surface-3: #E2E8F0;
  --ink: #0F172A;
  --ink-soft: #334155;
  --ink-faint: #55657A;
  --ink-disabled: #94A3B8;
  --rule: #CBD5E1;
  --line: #CBD5E1;
  --rule-soft: #F1F5F9;
  --card-border: 1px solid #CBD5E1;
  --card-backdrop: blur(16px);
  --brand: #047857;
  --brand-strong: #065F46;
  --brand-soft: rgba(4,120,87,.10);
  --brand-line: rgba(5, 150, 105, 0.35);
  --topbar-bg: rgba(255, 255, 255, 0.92);
  --bottomnav-bg: rgba(255, 255, 255, 0.96);
  --input-bg: #F8FAFC;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 10px 30px rgba(15, 23, 42, 0.12);
  color-scheme: light;
}

/* 2-4. 깔끔한 도심 (Urban Slate Navy - 현대 도시의 지적 루틴) */
html[data-theme="urban-city"],
[data-theme="urban-city"],
html[data-theme="urban-city"] {
  --bg: #0B0F19;
  --paper: #0B0F19;
  --card: #131B2E;
  --surface: #131B2E;
  --card2: #1B2640;
  --surface-2: #1B2640;
  --surface-3: #233152;
  --ink: #F8FAFC;
  --ink-soft: #CBD5E1;
  --ink-faint: #A3B1C4;
  --ink-disabled: #475569;
  --rule: rgba(255,255,255,.16);
  --line: rgba(255,255,255,.16);
  --rule-soft: rgba(255, 255, 255, 0.05);
  --card-border: 1px solid rgba(255,255,255,.16);
  --card-backdrop: blur(16px);
  --brand: #0EA5E9;
  --brand-strong: #0284C7;
  --brand-soft: rgba(14, 165, 233, 0.15);
  --brand-line: rgba(14, 165, 233, 0.35);
  --topbar-bg: rgba(11, 15, 25, 0.88);
  --bottomnav-bg: rgba(19, 27, 46, 0.94);
  --input-bg: #1B2640;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

/* 3. 카드형 컨테이너 글래스모피즘 고도화 */
.screen .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .capture-card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .goal-card,
.screen .rec-card,
.screen .comm-clean-card,
.screen .tmpl-card,
.screen .crew-pacing-widget {
  background: var(--card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.screen .card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .capture-card:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.screen .goal-card:hover,
.screen .rec-card:hover {
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12) !important;
}

/* 4. 홈 탭 (Focus Sanctuary) 체크인 입력 및 히어로 스타일 */
#screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.25) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(16, 185, 129, 0.08) !important;
  padding: 20px !important;
}

#screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  padding: 16px 18px !important;
  min-height: 96px !important;
  transition: all 0.2s ease !important;
}

#screen-home #captureInput:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-color: #10B981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.3) !important;
  background: rgba(0, 0, 0, 0.35) !important;
}

#screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4) !important;
  height: 48px !important;
  letter-spacing: -0.01em !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

#screen-home #captureSave:active:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  transform: scale(0.97) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5) !important;
}

/* 5. 목표 탭: '⚡ 내 목표에 바로 담기 (1초 자동 이식)' 시그니처 버튼 */
.btn-transplant,
#mktPreviewCloneBtn,
.tmpl-btn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  padding: 12px 20px !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.btn-transplant:hover,
#mktPreviewCloneBtn:hover,
.tmpl-btn:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px) !important;
}

.btn-transplant:active,
#mktPreviewCloneBtn:active,
.tmpl-btn:active {
  transform: scale(0.97) !important;
}

/* 6. 일정 탭: 포토 캘린더 타일 & 서클 타이머 */
.cal-photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 1;
}

.cal-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-circle-gauge {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 8px solid rgba(16, 185, 129, 0.15);
  border-top-color: #10B981;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

/* 7. 기록/통계 탭: 5단위 세그먼트 알약 & 연간 대형 히트맵 */
.modern-pill-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.modern-pill-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modern-pill-tab.active {
  background: #10B981;
  color: var(--chip-ink);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.heatmap-cell-active {
  background: #10B981 !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5) !important;
}

/* 8. 소통 탭: 무공해 동류 라운지 레이더 서클 & 4단계 건강 리액션 */
.peer-radar-circle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #10B981;
  padding: 2px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.peer-pulse-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid #0B0F17;
  border-radius: 50%;
  animation: peerPulse 2s infinite;
}

@keyframes peerPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.reaction-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.reaction-pill-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
}

/* 9. 하단 탭바 에메랄드 활성화 스타일 */
.bottomnav,
#tabBar {
  background: var(--bottomnav-bg) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.navbtn.active {
  color: #10B981 !important;
}

.navbtn.active svg {
  stroke: #10B981 !important;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}

/* 10. 인스타그램 스토리 위클리 리캡 공유 카드 모달 */
.weekly-story-modal-card {
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.95) 0%, rgba(11, 15, 23, 0.98) 100%);
  border: 2px solid #10B981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}


/* ==========================================================================
   🌟 9:16 모바일 네이티브 뷰포트 및 노이즈 배너 정돈
   ========================================================================== */
html {
  background: var(--bg, #0B0F17) !important;
}

body {
  background: var(--bg, #0B0F17) !important;
  color: var(--ink, #F8FAFC) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  min-height: 100vh !important;
}

#appShell, #landingScreen, #authScreen {
  width: 100% !important;
  max-width: 440px !important;
  margin: 0 auto !important;
  min-height: 100vh !important;
  background: var(--bg, #0B0F17) !important;
  position: relative !important;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.4), 0 0 30px var(--brand-soft, rgba(16, 185, 129, 0.08)) !important;
  border-left: 1px solid var(--rule, rgba(255, 255, 255, 0.06)) !important;
  border-right: 1px solid var(--rule, rgba(255, 255, 255, 0.06)) !important;
}

html[data-theme="white"] body,
html[data-theme="white"] #appShell {
  background: #F8FAFC !important;
  color: #0F172A !important;
}

html[data-theme="black"] body,
html[data-theme="black"] #appShell {
  background: #000000 !important;
  color: #FFFFFF !important;
}

html[data-theme="urban-city"] body,
html[data-theme="urban-city"] #appShell {
  background: #0B0F19 !important;
  color: #F8FAFC !important;
}

/* 6대 노이즈 배너 시각적 정리 (기능과 이벤트는 100% 보존) */
#screen-home .home-head-row span,
#offlineNoticeBanner {
  display: none !important;
}

/* 상단바 및 하단 네비게이션 모바일 뷰포트 일체화 */
#appShell .topbar {
  background: rgba(11, 15, 23, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  max-width: 440px !important;
  margin: 0 auto !important;
}

#appShell .bottomnav {
  background: rgba(11, 15, 23, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 440px !important;
  z-index: 50 !important;
}

/* 체크인 박스 3초 성소 스타일 */
#screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(16, 185, 129, 0.12) !important;
  border-radius: 22px !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
}

#screen-home #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #F8FAFC !important;
}

#screen-home #captureCardBox .capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  font-size: 0.85rem !important;
  color: #94A3B8 !important;
  margin-bottom: 12px !important;
}

#screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  color: #F8FAFC !important;
  font-size: 0.95rem !important;
  padding: 14px 16px !important;
  min-height: 84px !important;
}

#screen-home #captureInput:focus:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-color: #10B981 !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
}

#screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border-radius: 14px !important;
  height: 48px !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
}

/* 아바타 & 레벨 배지 글래스모피즘 */
#levelBadgeRow .level-badge {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
  margin-bottom: 12px !important;
}

#levelBadgeRow .level-badge .avatar-placeholder,
#levelBadgeRow .level-badge .robot-avatar-frame,
#levelBadgeRow .level-badge .custom-avatar-frame {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.35) !important;
  border-radius: 50% !important;
}

/* 목표 카드 & 하이브리드 대시보드 프리미엄 글래스 */
.goal-card, #hybridDash {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.goal-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(16, 185, 129, 0.1) !important;
}

.goal-card .gauge svg circle:nth-child(2) {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5)) !important;
}

/* 하단 네비게이션 액티브 탭 에메랄드 글로우 */
.bottomnav .navbtn.active {
  color: #10B981 !important;
}

.bottomnav .navbtn.active svg {
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6)) !important;
  stroke: #10B981 !important;
}

/* 템플릿 마켓 1초 이식 시그니처 버튼 */
.btn-transplant, #mktPreviewCloneBtn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
  border-radius: 14px !important;
  border: none !important;
}

/* 세그먼트 알약 버튼 */
.format-opt.active,
.records-subtabs .subtab.active {
  background: #10B981 !important;
  color: var(--chip-ink) !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

/* ==========================================================================
 * 🌟 OURGOAL FOCUS SANCTUARY V2 (1:1 Blueprint Alignment)
 * ========================================================================== */
/* ==========================================================================
 * 🌟 OURGOAL FOCUS SANCTUARY & UNIFIED THEMES (1:1 Blueprint Alignment)
 * Synchronized across: focus-sanctuary, black, white, urban-city (#TASK-ES-186)
 * ========================================================================== */
.sanctuary-top-bar {
  display: none;
}

[data-theme="focus-sanctuary"] .sanctuary-top-bar,
[data-theme="black"] .sanctuary-top-bar,
[data-theme="white"] .sanctuary-top-bar,
[data-theme="urban-city"] .sanctuary-top-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 2px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.sanctuary-app-title {
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  letter-spacing: -0.03em !important;
}
[data-theme="focus-sanctuary"] .sanctuary-app-title { color: #F8FAFC !important; }
[data-theme="black"] .sanctuary-app-title { color: #FFFFFF !important; }
[data-theme="white"] .sanctuary-app-title { color: #0F172A !important; }
[data-theme="urban-city"] .sanctuary-app-title { color: #F8FAFC !important; }

.sanctuary-top-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.sanctuary-bell-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
[data-theme="focus-sanctuary"] .sanctuary-bell-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
}
[data-theme="black"] .sanctuary-bell-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #E4E4E7 !important;
}
[data-theme="white"] .sanctuary-bell-btn {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
[data-theme="urban-city"] .sanctuary-bell-btn {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}

.sanctuary-bell-dot {
  position: absolute !important;
  top: 9px !important;
  right: 9px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  box-shadow: 0 0 8px #10B981 !important;
}

.sanctuary-avatar-badge {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  position: relative !important;
  transition: all 0.2s ease !important;
}

.sanctuary-avatar-badge:hover {
  transform: scale(1.06) !important;
}

.sanctuary-avatar-badge > img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  object-fit: cover !important;
}

/* 🛑 HIDE CLUNKY LEGACY WIDGETS IN ALL 4 UNIFIED THEMES */
/* [#TASK-ES-433] .home-actions(내 성장 확인하기·내 성장 자랑하기)는 이 목록에서 뺐다 — 보이기/숨기기는 설정 「홈 구성 고르기」 스위치(js/customize.js)가 정한다. 자리: #screen-home .home-actions { order: 12 } */
[data-theme="focus-sanctuary"] .home-head-row,
[data-theme="black"] .home-head-row,
[data-theme="white"] .home-head-row,
[data-theme="urban-city"] .home-head-row,
[data-theme="focus-sanctuary"] #levelBadgeRow,
[data-theme="black"] #levelBadgeRow,
[data-theme="white"] #levelBadgeRow,
[data-theme="urban-city"] #levelBadgeRow,
[data-theme="focus-sanctuary"] #screen-home > #todayMissionCard,
[data-theme="black"] #screen-home > #todayMissionCard,
[data-theme="white"] #screen-home > #todayMissionCard,
[data-theme="urban-city"] #screen-home > #todayMissionCard,
[data-theme="focus-sanctuary"] #captureLiveMeta:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureLiveMeta:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureLiveMeta:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureLiveMeta:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #screen-home > #todayGlancePill,
[data-theme="black"] #screen-home > #todayGlancePill,
[data-theme="white"] #screen-home > #todayGlancePill,
[data-theme="urban-city"] #screen-home > #todayGlancePill {
  display: none !important;
}
/* [#TASK-ES-440] #todayMissionCard·#todayGlancePill 은 홈 첫 화면(#screen-home 바로 아래)에서만 숨긴다 — 홈 원스크린(js/tabs/home/sub-onescreen.js)이 「오늘 목표」 시트로 옮긴 뒤에는 보이고, 보이기/숨기기는 홈 구성 스위치(js/customize.js)가 정한다 */

/* 🌿 14일 활동 기록 (Sanctuary 1st Tier - Unified) */
[data-theme="focus-sanctuary"] #homeGrassSummaryCard,
[data-theme="black"] #homeGrassSummaryCard,
[data-theme="white"] #homeGrassSummaryCard,
[data-theme="urban-city"] #homeGrassSummaryCard {
  display: block !important;
}

[data-theme="focus-sanctuary"] #homeGrassSummaryCard .card,
[data-theme="black"] #homeGrassSummaryCard .card,
[data-theme="white"] #homeGrassSummaryCard .card,
[data-theme="urban-city"] #homeGrassSummaryCard .card {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  padding: 16px 18px !important;
  border-radius: 24px !important;
}

[data-theme="focus-sanctuary"] #homeGrassSummaryCard .card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="black"] #homeGrassSummaryCard .card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="white"] #homeGrassSummaryCard .card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="urban-city"] #homeGrassSummaryCard .card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 8px 32px rgba(11, 15, 25, 0.6) !important;
}

[data-theme="focus-sanctuary"] #homeGrassSummaryCard .card > div:last-child,
[data-theme="black"] #homeGrassSummaryCard .card > div:last-child,
[data-theme="white"] #homeGrassSummaryCard .card > div:last-child,
[data-theme="urban-city"] #homeGrassSummaryCard .card > div:last-child {
  display: none !important;
}

[data-theme="focus-sanctuary"] #homeGrassSummaryCard span[title],
[data-theme="black"] #homeGrassSummaryCard span[title],
[data-theme="white"] #homeGrassSummaryCard span[title],
[data-theme="urban-city"] #homeGrassSummaryCard span[title] {
  height: 38px !important;
  border-radius: 999px !important;
}

/* ⚡ 오늘의 3초 체크인 Hero Card (Sanctuary 2nd Tier - Unified) */
[data-theme="focus-sanctuary"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-radius: 28px !important;
  padding: 22px 20px !important;
  margin-bottom: 20px !important;
}

[data-theme="focus-sanctuary"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
[data-theme="black"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="white"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
[data-theme="urban-city"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 12px 36px rgba(11, 15, 25, 0.7) !important;
}

[data-theme="focus-sanctuary"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  justify-content: center !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
[data-theme="focus-sanctuary"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #F8FAFC !important; }
[data-theme="black"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #FFFFFF !important; }
[data-theme="white"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #0F172A !important; }
[data-theme="urban-city"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #F8FAFC !important; }

[data-theme="focus-sanctuary"] #captureCardBox .capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureCardBox .capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureCardBox .capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureCardBox .capture-sub:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: none !important;
}

[data-theme="focus-sanctuary"] .quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] .quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] .quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] .quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
}

[data-theme="focus-sanctuary"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
[data-theme="focus-sanctuary"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #E2E8F0 !important;
  backdrop-filter: blur(10px) !important;
}
[data-theme="black"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #E4E4E7 !important;
}
[data-theme="white"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}
[data-theme="urban-city"] .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}

[data-theme="focus-sanctuary"] .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  transform: translateY(-1px) !important;
}
[data-theme="white"] .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: #059669 !important;
  color: #059669 !important;
  transform: translateY(-1px) !important;
}
[data-theme="urban-city"] .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
  transform: translateY(-1px) !important;
}

/* 텍스트에어리어 래퍼 */
[data-theme="focus-sanctuary"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  position: relative !important;
  border-radius: 18px !important;
  padding: 6px !important;
  margin-bottom: 16px !important;
  transition: box-shadow 0.2s ease !important;
}
[data-theme="focus-sanctuary"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border: 1.5px solid #10B981 !important;
  background: rgba(11, 15, 23, 0.75) !important;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.28), inset 0 2px 6px rgba(0,0,0,0.4) !important;
}
[data-theme="black"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border: 1.5px solid #10B981 !important;
  background: #121216 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
}
[data-theme="white"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border: 1.5px solid #059669 !important;
  background: #F8FAFC !important;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.15) !important;
}
[data-theme="urban-city"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border: 1.5px solid #38BDF8 !important;
  background: #18223A !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
}

[data-theme="focus-sanctuary"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.95rem !important;
  padding: 10px 12px !important;
  min-height: 64px !important;
  line-height: 1.6 !important;
  width: 100% !important;
  resize: none !important;
  outline: none !important;
}
[data-theme="focus-sanctuary"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #FFFFFF !important; }
[data-theme="black"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #FFFFFF !important; }
[data-theme="white"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #0F172A !important; }
[data-theme="urban-city"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { color: #F8FAFC !important; }

[data-theme="focus-sanctuary"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder { color: #64748B !important; }
[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder { color: #71717A !important; }
[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder { color: #94A3B8 !important; }
[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder { color: #64748B !important; }

[data-theme="focus-sanctuary"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  flex: 1 1 auto !important;
  width: auto !important;
  height: 52px !important;
  border-radius: 999px !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  letter-spacing: -0.02em !important;
}
[data-theme="focus-sanctuary"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #0B0F17 !important;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.45) !important;
}
[data-theme="black"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #000000 !important;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.45) !important;
}
[data-theme="white"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35) !important;
}
[data-theme="urban-city"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
  color: #0B0F19 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4) !important;
}

[data-theme="focus-sanctuary"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-radius: 12px !important;
  padding: 6px 12px !important;
  font-size: 0.75rem !important;
}
[data-theme="focus-sanctuary"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="focus-sanctuary"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
}
[data-theme="black"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="black"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #A1A1AA !important;
}
[data-theme="white"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="white"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
[data-theme="urban-city"] #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
[data-theme="urban-city"] #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}

/* 🎯 오늘의 갓생 퀘스트 2열 그리드 (Sanctuary 3rd Tier - Unified) */
[data-theme="focus-sanctuary"] .home-recent-title,
[data-theme="black"] .home-recent-title,
[data-theme="white"] .home-recent-title,
[data-theme="urban-city"] .home-recent-title {
  margin: 14px 0 12px !important;
}

[data-theme="focus-sanctuary"] .home-recent-title h3,
[data-theme="black"] .home-recent-title h3,
[data-theme="white"] .home-recent-title h3,
[data-theme="urban-city"] .home-recent-title h3 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
}
[data-theme="focus-sanctuary"] .home-recent-title h3 { color: #F8FAFC !important; }
[data-theme="black"] .home-recent-title h3 { color: #FFFFFF !important; }
[data-theme="white"] .home-recent-title h3 { color: #0F172A !important; }
[data-theme="urban-city"] .home-recent-title h3 { color: #F8FAFC !important; }

[data-theme="focus-sanctuary"] #hybridDash,
[data-theme="black"] #hybridDash,
[data-theme="white"] #hybridDash,
[data-theme="urban-city"] #hybridDash {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
}

[data-theme="focus-sanctuary"] #hybridDash .card-title-row,
[data-theme="black"] #hybridDash .card-title-row,
[data-theme="white"] #hybridDash .card-title-row,
[data-theme="urban-city"] #hybridDash .card-title-row {
  display: none !important;
}

[data-theme="focus-sanctuary"] #hybridDash > div:nth-child(2),
[data-theme="black"] #hybridDash > div:nth-child(2),
[data-theme="white"] #hybridDash > div:nth-child(2),
[data-theme="urban-city"] #hybridDash > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

[data-theme="focus-sanctuary"] .hybrid-row,
[data-theme="black"] .hybrid-row,
[data-theme="white"] .hybrid-row,
[data-theme="urban-city"] .hybrid-row {
  border-radius: 20px !important;
  padding: 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 120px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}
[data-theme="focus-sanctuary"] .hybrid-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}
[data-theme="black"] .hybrid-row {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
[data-theme="white"] .hybrid-row {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="urban-city"] .hybrid-row {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
}

[data-theme="focus-sanctuary"] .hybrid-row:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
[data-theme="black"] .hybrid-row:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-2px) !important;
}
[data-theme="white"] .hybrid-row:hover {
  border-color: #059669 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="urban-city"] .hybrid-row:hover {
  border-color: #38BDF8 !important;
  transform: translateY(-2px) !important;
}

/* 🌐 플로팅 하단 내비게이션 바 & 중앙 돌출 (+) FAB */
[data-theme="focus-sanctuary"] .bottomnav,
[data-theme="black"] .bottomnav,
[data-theme="white"] .bottomnav,
[data-theme="urban-city"] .bottomnav {
  background: transparent !important;
  padding: 0 10px 10px !important;
}

[data-theme="focus-sanctuary"] .bottomnav-inner,
[data-theme="black"] .bottomnav-inner,
[data-theme="white"] .bottomnav-inner,
[data-theme="urban-city"] .bottomnav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  height: 64px !important;
  border-radius: 28px !important;
  padding: 0 6px !important;
}
[data-theme="focus-sanctuary"] .bottomnav-inner {
  background: rgba(11, 15, 23, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="black"] .bottomnav-inner {
  background: rgba(14, 14, 18, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}
[data-theme="white"] .bottomnav-inner {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12) !important;
}
[data-theme="urban-city"] .bottomnav-inner {
  background: rgba(19, 27, 46, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 12px 36px rgba(11, 15, 25, 0.7) !important;
}

.navbtn-fab {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: translateY(-16px) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5), 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
  flex-shrink: 0 !important;
  z-index: 100 !important;
}

.navbtn-fab:hover {
  transform: translateY(-20px) scale(1.06) !important;
  border-color: #A7F3D0 !important;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.65), 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.navbtn-fab:active {
  transform: translateY(-13px) scale(0.95) !important;
}

.navbtn-fab svg {
  stroke: #FFFFFF !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
}

@media (max-width: 375px) {
  .navbtn-fab {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    transform: translateY(-14px) !important;
  }
}


/* 🚀 HIGH-SPECIFICITY OVERRIDES FOR UNIFIED THEMES V2 */
html[data-theme="focus-sanctuary"] .topbar,
html[data-theme="black"] .topbar,
html[data-theme="white"] .topbar,
html[data-theme="urban-city"] .topbar {
  display: none !important;
}

html[data-theme="focus-sanctuary"] body #homeGrassSummaryCard,
html[data-theme="focus-sanctuary"] body[data-ux-mode] #homeGrassSummaryCard,
html[data-theme="focus-sanctuary"] #homeGrassSummaryCard,
html[data-theme="black"] body #homeGrassSummaryCard,
html[data-theme="black"] body[data-ux-mode] #homeGrassSummaryCard,
html[data-theme="black"] #homeGrassSummaryCard,
html[data-theme="white"] body #homeGrassSummaryCard,
html[data-theme="white"] body[data-ux-mode] #homeGrassSummaryCard,
html[data-theme="white"] #homeGrassSummaryCard,
html[data-theme="urban-city"] body #homeGrassSummaryCard,
html[data-theme="urban-city"] body[data-ux-mode] #homeGrassSummaryCard,
html[data-theme="urban-city"] #homeGrassSummaryCard {
  display: block !important;
  visibility: visible !important;
}

html[data-theme="focus-sanctuary"] #screen-home > #dailyQuestBarWrap,
html[data-theme="focus-sanctuary"] body #screen-home > #dailyQuestBarWrap,
html[data-theme="black"] #screen-home > #dailyQuestBarWrap,
html[data-theme="black"] body #screen-home > #dailyQuestBarWrap,
html[data-theme="white"] #screen-home > #dailyQuestBarWrap,
html[data-theme="white"] body #screen-home > #dailyQuestBarWrap,
html[data-theme="urban-city"] #screen-home > #dailyQuestBarWrap,
html[data-theme="urban-city"] body #screen-home > #dailyQuestBarWrap {
  display: none !important;
}
/* [#TASK-ES-440] 3대 퀘스트도 홈 첫 화면에서만 숨긴다 — 「오늘 목표」 시트 안에서는 보이고 홈 구성 스위치가 정한다(옛 선택자는 ui.css 615 「게이미피케이션 모드면 보이기」까지 이겨 그 모드를 무력화했다) */

html[data-theme="focus-sanctuary"] .home-recent-title,
html[data-theme="black"] .home-recent-title,
html[data-theme="white"] .home-recent-title,
html[data-theme="urban-city"] .home-recent-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin: 16px 0 12px !important;
}

html[data-theme="focus-sanctuary"] #homeAddGoal,
html[data-theme="black"] #homeAddGoal,
html[data-theme="white"] #homeAddGoal,
html[data-theme="urban-city"] #homeAddGoal {
  border-radius: 12px !important;
  font-weight: 700 !important;
}
[data-theme="focus-sanctuary"] #homeAddGoal {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #10B981 !important;
}
[data-theme="black"] #homeAddGoal {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #10B981 !important;
}
[data-theme="white"] #homeAddGoal {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #059669 !important;
}
[data-theme="urban-city"] #homeAddGoal {
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #38BDF8 !important;
}

/* 🎯 FINE-TUNING FOR 1:1 BLUEPRINT MATCH */
html[data-theme="focus-sanctuary"] #homePositionStrip,
html[data-theme="black"] #homePositionStrip,
html[data-theme="white"] #homePositionStrip,
html[data-theme="urban-city"] #homePositionStrip {
  display: none !important;
}

html[data-theme="focus-sanctuary"] #homeGrassSummaryCard .card,
html[data-theme="black"] #homeGrassSummaryCard .card,
html[data-theme="white"] #homeGrassSummaryCard .card,
html[data-theme="urban-city"] #homeGrassSummaryCard .card {
  margin-bottom: 14px !important;
  padding: 14px 16px !important;
}

html[data-theme="focus-sanctuary"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  margin-bottom: 16px !important;
  padding: 18px 18px !important;
}

html[data-theme="focus-sanctuary"] .home-recent-title,
html[data-theme="black"] .home-recent-title,
html[data-theme="white"] .home-recent-title,
html[data-theme="urban-city"] .home-recent-title {
  margin: 12px 0 10px !important;
}

html[data-theme="focus-sanctuary"] #hybridDash > div:nth-child(2),
html[data-theme="black"] #hybridDash > div:nth-child(2),
html[data-theme="white"] #hybridDash > div:nth-child(2),
html[data-theme="urban-city"] #hybridDash > div:nth-child(2) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

html[data-theme="focus-sanctuary"] .hybrid-row,
html[data-theme="black"] .hybrid-row,
html[data-theme="white"] .hybrid-row,
html[data-theme="urban-city"] .hybrid-row {
  min-height: 110px !important;
  padding: 14px !important;
  border-radius: 20px !important;
}

/* ==========================================================================
   ✨ FOCUS SANCTUARY (포커스 성소) 20대 전수 화면 통합 디자인 시스템 V2
   ========================================================================== */

/* 1. 전역 성소 베이스 및 배경 */
html[data-theme="focus-sanctuary"] body {
  background-color: #0B0F17 !important;
  color: #F8FAFC !important;
}

html[data-theme="focus-sanctuary"] .app {
  background-color: #0B0F17 !important;
}

/* 2. 전 탭 카드 글래스모피즘 공통 */
html[data-theme="focus-sanctuary"] .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="focus-sanctuary"] .screen > div.card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="focus-sanctuary"] .agent-card,
html[data-theme="focus-sanctuary"] .list-card {
  background: rgba(255, 255, 255, 0.035) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

/* 3. 목표 탭 (Tab 2) - Mountain Trail & 1초 자동 이식 */
html[data-theme="focus-sanctuary"] #personalGoalsView .card,
html[data-theme="focus-sanctuary"] .goal-card {
  border: 1px solid rgba(16, 185, 129, 0.15) !important;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

html[data-theme="focus-sanctuary"] .btn-transplant,
html[data-theme="focus-sanctuary"] #mktPreviewCloneBtn {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
  transition: all 0.2s ease !important;
}

html[data-theme="focus-sanctuary"] .btn-transplant:hover,
html[data-theme="focus-sanctuary"] #mktPreviewCloneBtn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.65) !important;
}

/* 4. 일정 탭 (Tab 3) - 월간 포토 그리드 & 일간 타임라인 */
html[data-theme="focus-sanctuary"] .cal-nav-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="focus-sanctuary"] .cal-grid {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
}

html[data-theme="focus-sanctuary"] .cal-day.today,
html[data-theme="focus-sanctuary"] [data-caldate="2026-09-18"] {
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35) !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

html[data-theme="focus-sanctuary"] #calLockScreenBtn {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #F1F5F9 !important;
  border-radius: 9999px !important;
}

/* 5. 기록/통계 탭 (Tab 4) - 세그먼트 & 365일 연간 히트맵 */
html[data-theme="focus-sanctuary"] .rec-carousel-pills {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 14px !important;
  padding: 4px !important;
}

html[data-theme="focus-sanctuary"] .rec-pill-btn.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

html[data-theme="focus-sanctuary"] #commonWeeklyRecapCard {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* 6. 소통 탭 (Tab 5) - 28인 러닝메이트 레이더 & 4단계 건강 상호작용 */
html[data-theme="focus-sanctuary"] .comm-subtabs,
html[data-theme="focus-sanctuary"] .comm-nav {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  padding: 4px !important;
}

html[data-theme="focus-sanctuary"] .feed-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
}

html[data-theme="focus-sanctuary"] .reaction-pill,
html[data-theme="focus-sanctuary"] .health-reaction-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  color: #CBD5E1 !important;
  transition: all 0.15s ease !important;
}

html[data-theme="focus-sanctuary"] .reaction-pill:hover,
html[data-theme="focus-sanctuary"] .health-reaction-btn:hover {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  color: #10B981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3) !important;
}

/* 동류 레이더 스트립 */
html[data-theme="focus-sanctuary"] .peer-radar-strip {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding: 12px 4px !important;
  scrollbar-width: none !important;
}

html[data-theme="focus-sanctuary"] .peer-radar-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

html[data-theme="focus-sanctuary"] .peer-radar-avatar {
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  border: 2px solid #10B981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* 7. 온보딩 5대 성소 풀스크린 슬라이드 (A1~A5) */
html[data-theme="focus-sanctuary"] .modal-sheet {
  background: #0B0F17 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7) !important;
}

html[data-theme="focus-sanctuary"] .ob-step-label {
  color: #10B981 !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
}

html[data-theme="focus-sanctuary"] .btn-preset-goal {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  color: #F8FAFC !important;
  transition: all 0.2s ease !important;
}

html[data-theme="focus-sanctuary"] .btn-preset-goal:hover {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

html[data-theme="focus-sanctuary"] .cat-chip {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  color: #F8FAFC !important;
}

html[data-theme="focus-sanctuary"] .cat-chip.active {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3) !important;
}

/* 🏔️ MOUNTAIN TRAIL & MILESTONE GLOW FOR TAB 2 */
html[data-theme="focus-sanctuary"] .ms-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
html[data-theme="focus-sanctuary"] .ms-row:hover {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: rgba(16, 185, 129, 0.03) !important;
}
html[data-theme="focus-sanctuary"] .ms-status {
  border: 2px solid rgba(16, 185, 129, 0.5) !important;
  border-radius: 50% !important;
  width: 22px !important;
  height: 22px !important;
}
html[data-theme="focus-sanctuary"] .ms-status.done {
  background: #10B981 !important;
  border-color: #10B981 !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
}
html[data-theme="focus-sanctuary"] .goal-chip.active {
  background: #10B981 !important;
  color: var(--chip-ink) !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.45) !important;
  border: none !important;
}

/* ⏱️ POMODORO FOCUS TIMER STYLING */
html[data-theme="focus-sanctuary"] .timer-circle-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
html[data-theme="focus-sanctuary"] .timer-glow-ring {
  stroke: #10B981;
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.6));
}


/* ==========================================================================
   ✨ FOCUS SANCTUARY V3 - 20대 전수 화면 듀얼 레이어 시각 혁신 조형 CSS
   ========================================================================== */

/* 1. Focus Sanctuary Animations */

@keyframes pulse-beacon {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(16,185,129,0.6); }
  50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(16,185,129,0.9); }
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* 2. [목표 탭] Mountain Trail 등반 패스 & 1초 자동 이식 */
.s-goal-pills-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.s-goal-pills-wrap::-webkit-scrollbar { display: none; }

.s-goal-pill {
  padding: 7px 15px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}
.s-goal-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #F8FAFC;
}
.s-goal-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
}
.s-goal-pill.add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
}

.mountain-trail-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}
.mountain-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.m-title-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.m-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.5px;
}
.m-goal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0;
}
.m-summit-badge {
  padding: 5px 10px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FBBF24;
  white-space: nowrap;
}

.mountain-trail-path {
  display: flex;
  flex-direction: column;
  padding: 4px 6px;
}
.trail-node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.2s ease;
}
.trail-node:hover {
  background: rgba(255, 255, 255, 0.06);
}
.trail-node.summit {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}
.trail-node.doing {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.18);
}
.trail-node.done {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.88;
}

.trail-node-point {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.trail-node-point.summit-flag {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}
.trail-node-point.beacon {
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.7);
  animation: pulse-beacon 2s infinite ease-in-out;
}
.trail-node-point.check {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10B981;
  color: #10B981;
  font-weight: 800;
}

.trail-connector {
  width: 3px;
  height: 24px;
  margin-left: 31px;
  background: rgba(255, 255, 255, 0.1);
}
.trail-connector.doing {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.5) 0%, rgba(16, 185, 129, 0.8) 100%);
}
.trail-connector.done {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.trail-node-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trail-node-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
}
.trail-node-sub {
  font-size: 0.75rem;
  color: #94A3B8;
}
.trail-action-chip {
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
}
.trail-done-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.7rem;
  color: #64748B;
}
.mountain-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  width: 100%;
}
.mountain-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 0.88rem;
  white-space: normal;
  word-break: keep-all;
}
.btn-transplant {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  cursor: pointer;
}

/* 3. [일정 탭] 월간 포토 캘린더 / 타임라인 / 뽀모도로 */
.s-cal-modes-wrap {
  display: flex;
  background: var(--bg-surface, rgba(15, 23, 42, 0.94));
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 4px;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 25;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.s-cal-modes-wrap::-webkit-scrollbar {
  display: none;
}
.s-cal-mode-btn {
  flex: 1 0 auto;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.s-cal-mode-btn.active {
  background: var(--brand, #10B981) !important;
  border-color: var(--brand, #10B981) !important;
  color: var(--chip-ink) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.s-month-cal-card, .s-week-cal-card, .s-timeline-card, .s-timer-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 20px;
}
.s-month-header, .s-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.s-cal-arrow {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #F1F5F9;
  padding: 8px 14px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.s-cal-month-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
  margin: 0;
  white-space: nowrap;
}
.s-cal-today-badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.s-month-days-header {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  text-align: center !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748B !important;
  margin-bottom: 8px !important;
  gap: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.s-month-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.s-cal-day-cell {
  min-height: 48px !important;
  max-height: 54px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 3px 1px !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s !important;
  overflow: hidden !important;
}
.s-cal-day-cell:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.s-cal-day-cell.today {
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}
.s-cal-day-cell.today .s-day-num {
  color: #10B981;
  font-weight: 800;
}
.s-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
  line-height: 1.1;
}
.s-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}
.s-day-today-tag {
  font-size: 0.56rem;
  background: rgba(16, 185, 129, 0.25);
  color: #A7F3D0;
  padding: 1px 2px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96%;
  display: block;
  margin-top: 1px;
  box-sizing: border-box;
}
.s-cal-photo-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.65rem;
  line-height: 1;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.s-cal-photo-tag {
  font-size: 0.52rem;
  font-weight: 700;
  color: #F8FAFC;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(2px);
  padding: 1px 3px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96%;
  display: block;
  margin-top: auto;
  margin-bottom: 2px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}
.s-cal-day-cell.has-photo {
  border-color: rgba(16, 185, 129, 0.28);
}
.s-cal-selected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 10px;
}
.s-cal-sel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-cal-sel-date {
  font-size: 0.75rem;
  color: #94A3B8;
  font-weight: 600;
}
.s-cal-sel-task {
  font-size: 0.88rem;
  color: #F1F5F9;
  font-weight: 700;
}

/* 타임라인 */
.s-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.s-timeline-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #F8FAFC;
}
.s-timeline-status {
  font-size: 0.75rem;
  color: #10B981;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  padding: 3px 8px;
  border-radius: 8px;
}
.s-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s-timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.s-t-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  width: 42px;
}
.s-t-block {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-timeline-row.active .s-t-block {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.s-timeline-row.done .s-t-block {
  opacity: 0.75;
}
.s-t-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}
.s-t-badge.active {
  background: #10B981;
  color: var(--chip-ink);
}
.s-t-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F1F5F9;
}

/* 뽀모도로 */
.s-timer-card {
  text-align: center;
  padding: 24px 20px;
}
.s-timer-header {
  margin-bottom: 20px;
}
.s-timer-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.s-timer-header h4 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
}
.s-timer-dial-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}
.s-timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.s-dial-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 10;
}
.s-dial-progress {
  fill: none;
  stroke: #10B981;
  stroke-width: 10;
  stroke-dasharray: 534;
  stroke-dashoffset: 80;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.5));
}
.s-dial-progress.pulsing {
  animation: pulse-beacon 2s infinite ease-in-out;
}
.s-timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  font-weight: 900;
  color: #F8FAFC;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.s-timer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
}
.s-timer-main-btn {
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  border: none;
  cursor: pointer;
}

/* 3. [일정 탭] 3대 캘린더 뷰 (월간/주간/일간) 3열 그리드 */
.s-cal-modes-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.s-cal-mode-btn {
  padding: 8px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.s-cal-mode-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #F8FAFC;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 4. [기록 탭] 365일 연간 발광 히트맵 / 피드 / 타이머 / 통계 / 보관함 / 리캡 (3×2 그리드) */
.s-rec-modes-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-surface, rgba(15, 23, 42, 0.94));
  padding: 6px;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 25;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.s-rec-mode-btn {
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.3px;
}
.s-rec-mode-btn.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  color: #F8FAFC;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.s-heatmap-card, .s-recap-share-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 20px;
}
.s-heat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.s-heat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10B981;
  text-transform: uppercase;
}
.s-heat-head h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
}
.s-heat-stat {
  text-align: right;
}
.s-heat-val {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #10B981;
}
.s-heat-sub {
  font-size: 0.75rem;
  color: #64748B;
}
.s-segment-pills {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
}
.s-segment-pills .s-seg-pill {
  flex: 1;
  text-align: center;
  padding: 6px 2px !important;
  font-size: 0.72rem;
  min-width: 0;
}
.s-seg-pill {
  padding: 5px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  color: #94A3B8;
  cursor: pointer;
  white-space: nowrap;
}
.s-seg-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
  font-weight: 700;
}
.s-annual-heatmap-matrix {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.s-heat-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.15s;
}
.s-heat-cell.lvl-0 { background: rgba(255, 255, 255, 0.05); }
.s-heat-cell.lvl-1 { background: #064E3B; }
.s-heat-cell.lvl-2 { background: #047857; }
.s-heat-cell.lvl-3 { background: #10B981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.4); }
.s-heat-cell.lvl-4 { background: #34D399; box-shadow: 0 0 10px rgba(52, 211, 153, 0.8); }

.s-heat-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  justify-content: flex-end;
  font-size: 0.7rem;
  color: #64748B;
}
.s-heat-legend .s-heat-cell {
  width: 14px;
  height: 14px;
}

/* 피드 & 리캡 */
.s-feed-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.s-feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.s-feed-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #F1F5F9;
}
.s-feed-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
}
.s-f-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #64748B;
  margin-bottom: 6px;
}
.s-f-xp {
  color: #F59E0B;
  font-weight: 700;
}
.s-f-content {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #F1F5F9;
  margin-bottom: 8px;
}
.s-f-meta {
  display: flex;
  gap: 6px;
  align-items: center;
}
.s-f-tag {
  font-size: 0.72rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}
.s-f-goal {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-left: auto;
}

.s-recap-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #F59E0B;
  text-transform: uppercase;
}
.s-recap-head h4 {
  margin: 4px 0 16px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #F8FAFC;
}
.s-recap-canvas-mock {
  aspect-ratio: 9/16;
  max-width: 240px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #064E3B 0%, #0B0F17 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}
.s-rc-top {
  font-size: 0.65rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 1px;
}
.s-rc-avatar {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.s-rc-metric {
  font-size: 1.05rem;
  font-weight: 800;
  color: #F8FAFC;
  margin-bottom: 6px;
}
.s-rc-streak {
  font-size: 0.85rem;
  font-weight: 700;
  color: #F59E0B;
}
.s-rc-foot {
  font-size: 0.65rem;
  color: #64748B;
}
.s-recap-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* 5. [소통 탭] 28인 러닝메이트 레이더 & 4단계 건강 상호작용 */
.s-peer-radar-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 16px;
}
.s-radar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.s-radar-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #F8FAFC;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0;
}
.s-radar-title b {
  white-space: nowrap !important;
  word-break: keep-all !important;
}
.s-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse-live 1.5s infinite;
}
.s-radar-count {
  font-size: 0.72rem;
  color: #10B981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
}
.s-radar-count.s-radar-zero {
  color: #94A3B8;
  background: rgba(148, 163, 184, 0.12);
}
.s-radar-empty-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  margin-top: 4px;
}
.s-r-empty-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.s-r-empty-info b {
  color: #F1F5F9;
  font-size: 0.8125rem;
  display: block;
  margin-bottom: 2px;
}
.s-r-empty-info span {
  font-size: 0.72rem;
  color: #94A3B8;
  display: block;
}
.s-radar-refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.s-radar-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}
.s-radar-scroll::-webkit-scrollbar { display: none; }

.s-radar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  width: 56px;
}
.s-r-avatar-ring {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #10B981, #047857);
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-r-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #F8FAFC;
}
.s-r-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0B0F17;
}
.s-r-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F1F5F9;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.s-r-goal {
  font-size: 0.65rem;
  color: #64748B;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.s-comm-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.s-comm-post-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.s-cp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.s-cp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}
.s-cp-user-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.s-cp-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
  display: flex;
  align-items: center;
  gap: 6px;
}
.s-cp-badge {
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.2);
  color: #818CF8;
  font-weight: 600;
}
.s-cp-sub {
  font-size: 0.72rem;
  color: #64748B;
}
.s-cp-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #F1F5F9;
  margin-bottom: 14px;
}
.s-cp-reactions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.s-react-pill {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.s-react-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}
.s-react-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #34D399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.s-react-pill.transplant {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FBBF24;
  font-weight: 700;
}


/* ==========================================================================
   ✨ FOCUS SANCTUARY (포커스 성소) 뷰 디스플레이 컨트롤러
   ========================================================================== */
/* ==========================================================================
   ✨ FOCUS SANCTUARY (포커스 성소) 뷰 디스플레이 컨트롤러 - 4대 테마 전수 동기화 (#TASK-ES-186)
   ========================================================================== */
#sanctuaryGoalsView,
#sanctuaryCalendarView,
#sanctuaryRecordsView,
#sanctuaryCommView {
  display: none;
}

[data-theme="focus-sanctuary"] #sanctuaryGoalsView,
[data-theme="focus-sanctuary"] #sanctuaryCalendarView,
[data-theme="focus-sanctuary"] #sanctuaryRecordsView,
[data-theme="focus-sanctuary"] #sanctuaryCommView,
[data-theme="black"] #sanctuaryGoalsView,
[data-theme="black"] #sanctuaryCalendarView,
[data-theme="black"] #sanctuaryRecordsView,
[data-theme="black"] #sanctuaryCommView,
[data-theme="white"] #sanctuaryGoalsView,
[data-theme="white"] #sanctuaryCalendarView,
[data-theme="white"] #sanctuaryRecordsView,
[data-theme="white"] #sanctuaryCommView,
[data-theme="urban-city"] #sanctuaryGoalsView,
[data-theme="urban-city"] #sanctuaryCalendarView,
[data-theme="urban-city"] #sanctuaryRecordsView,
[data-theme="urban-city"] #sanctuaryCommView {
  display: block;
}

/* 캘린더/기록 탭: 성소 뷰와 기존 실기능 슬롯(상세, AI등록, 잠금화면) 조화 */
[data-theme="focus-sanctuary"] #calGrid,
[data-theme="focus-sanctuary"] .cal-nav-row,
[data-theme="black"] #calGrid,
[data-theme="black"] .cal-nav-row,
[data-theme="white"] #calGrid,
[data-theme="white"] .cal-nav-row,
[data-theme="urban-city"] #calGrid,
[data-theme="urban-city"] .cal-nav-row {
  display: none !important;
}

[data-theme="focus-sanctuary"] #calDayDetail,
[data-theme="focus-sanctuary"] #calAgentCard,
[data-theme="focus-sanctuary"] .cal-quick-bar,
[data-theme="focus-sanctuary"] .cal-sub-guide,
[data-theme="black"] #calDayDetail,
[data-theme="black"] #calAgentCard,
[data-theme="black"] .cal-quick-bar,
[data-theme="black"] .cal-sub-guide,
[data-theme="white"] #calDayDetail,
[data-theme="white"] #calAgentCard,
[data-theme="white"] .cal-quick-bar,
[data-theme="white"] .cal-sub-guide,
[data-theme="urban-city"] #calDayDetail,
[data-theme="urban-city"] #calAgentCard,
[data-theme="urban-city"] .cal-quick-bar,
[data-theme="urban-city"] .cal-sub-guide {
  display: block !important;
}

/* [#TASK-ES-250] 성소 기록탭 족보 꼬임 해소: sanctuaryRecordsView 활성화 시 중복 헤더 및 중복 세그먼트바 정리 */
[data-theme="focus-sanctuary"] #screen-records > .screen-head,
[data-theme="black"] #screen-records > .screen-head,
[data-theme="white"] #screen-records > .screen-head,
[data-theme="urban-city"] #screen-records > .screen-head {
  display: none !important;
}

.toast.show {
  pointer-events: auto !important;
  cursor: pointer;
}

/* [#TASK-CALENDAR-TAB-PERFECT-RESTORATION] 성소 캘린더 모드별(월간/주간/타임라인/타이머) 하단 슬롯 조건부 가시성 제어 */
#screen-calendar[data-cal-mode="timeline"] #calDayDetail,
#screen-calendar[data-cal-mode="timeline"] .cal-sub-guide,
#screen-calendar[data-cal-mode="timer"] #calDayDetail,
#screen-calendar[data-cal-mode="timer"] .cal-sub-guide,
#screen-calendar[data-cal-mode="timer"] .cal-quick-bar,
#screen-calendar[data-cal-mode="timer"] #calAgentCard {
  display: none !important;
}

#screen-calendar[data-cal-mode="month"] .cal-sub-guide,
#screen-calendar[data-cal-mode="week"] .cal-sub-guide {
  display: flex !important;
}
#screen-calendar[data-cal-mode="month"] #calDayDetail,
#screen-calendar[data-cal-mode="week"] #calDayDetail {
  display: block !important;
}
#screen-calendar[data-cal-mode="month"] .cal-quick-bar,
#screen-calendar[data-cal-mode="week"] .cal-quick-bar,
#screen-calendar[data-cal-mode="timeline"] .cal-quick-bar {
  display: flex !important;
}
#screen-calendar[data-cal-mode="month"] #calAgentCard,
#screen-calendar[data-cal-mode="week"] #calAgentCard,
#screen-calendar[data-cal-mode="timeline"] #calAgentCard {
  display: block !important;
}

/* 하단 일간 상세 헤더 줄바꿈 방지 및 버튼 정돈 */
#calDayDetail .card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}
#calDayDetail .card-title-row h3 {
  margin: 0;
  font-size: 0.9375rem;
  white-space: nowrap;
}
#calDayDetail .card-title-row .faint {
  white-space: nowrap;
}

/* 주간 아젠다 뷰 스타일 */
.s-week-cal-card {
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.95) 0%, rgba(15, 19, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 20px;
}
.s-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.s-week-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.s-week-day-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--surface-2, rgba(255, 255, 255, 0.02));
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.04));
  cursor: pointer;
  transition: all 0.15s;
}
.s-week-day-row:hover {
  background: rgba(255, 255, 255, 0.05);
}
.s-week-day-row.selected {
  border-color: var(--brand, #10b981) !important;
  border-left: 3px solid var(--brand, #10b981) !important;
  background: var(--surface-2, rgba(16, 185, 129, 0.08)) !important;
}
.s-week-day-badge {
  min-width: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.s-week-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft, #64748B);
}
.s-week-day-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #F8FAFC);
}
.s-week-day-badge.today .s-week-day-num {
  color: var(--brand, #10B981) !important;
}
.s-week-day-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 캘린더 일자 셀 멀티 도트 인디케이터 */
.s-cal-dots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 7px;
  margin-top: 1px;
}
.s-cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand, #10b981);
}
.s-cal-dot.done {
  background: #10b981 !important;
}

/* 목표 탭: 성소 테마에서는 상단에 이미 알약 칩이 있으므로 중복 칩 행만 숨기고 본문 카드는 온전히 보존 */
[data-theme="focus-sanctuary"] #goalChipRow,
[data-theme="black"] #goalChipRow,
[data-theme="white"] #goalChipRow,
[data-theme="urban-city"] #goalChipRow {
  display: none !important;
}

/* 하단 내비게이션 바: 중앙 돌출 (+) FAB 시인성 복원 및 4대 테마 조화 */
[data-theme="focus-sanctuary"] #bottomNavFab,
[data-theme="focus-sanctuary"] .navbtn-fab {
  display: flex !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
}
[data-theme="black"] #bottomNavFab,
[data-theme="black"] .navbtn-fab {
  display: flex !important;
  background: linear-gradient(135deg, #10B981 0%, #047857 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6), 0 4px 16px rgba(0, 0, 0, 0.9) !important;
}
[data-theme="white"] #bottomNavFab,
[data-theme="white"] .navbtn-fab {
  display: flex !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  border: 2px solid #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="urban-city"] #bottomNavFab,
[data-theme="urban-city"] .navbtn-fab {
  display: flex !important;
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.55), 0 4px 12px rgba(11, 15, 25, 0.7) !important;
}


/* 소통 탭: 피드/DM/동반자/마니또 공통 성소 글래스모피즘 스타일링 및 게시하기 버튼 보존 */
[data-theme="focus-sanctuary"] #commBody,
[data-theme="black"] #commBody,
[data-theme="white"] #commBody,
[data-theme="urban-city"] #commBody {
  display: block !important;
  margin-top: 10px;
}
[data-theme="focus-sanctuary"] #screen-comm .screen-head,
[data-theme="black"] #screen-comm .screen-head,
[data-theme="white"] #screen-comm .screen-head,
[data-theme="urban-city"] #screen-comm .screen-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
[data-theme="focus-sanctuary"] .comm-subtabs,
[data-theme="black"] .comm-subtabs,
[data-theme="white"] .comm-subtabs,
[data-theme="urban-city"] .comm-subtabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  display: flex !important;
  gap: 4px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}
[data-theme="focus-sanctuary"] .comm-subtab,
[data-theme="black"] .comm-subtab,
[data-theme="white"] .comm-subtab,
[data-theme="urban-city"] .comm-subtab {
  color: #94A3B8 !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
[data-theme="focus-sanctuary"] .comm-subtab.active,
[data-theme="black"] .comm-subtab.active,
[data-theme="white"] .comm-subtab.active,
[data-theme="urban-city"] .comm-subtab.active {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* ==========================================================================
   🎨 테마별 고시인성 & V3 컴포넌트 전수 컬러 룰셋 (#TASK-ES-186)
   - 성소 (focus-sanctuary): 오리지널 포커스 성소 100% 무변경 보존
   - 화이트 (white): 순백 라이트 카드, 짙은 슬레이트 텍스트, 에메랄드 액센트
   - 블랙 (black): 트루 OLED 딥 블랙, 고대비 화이트 텍스트, 네온 에메랄드
   - 도심 (urban-city): 모던 메트로폴리탄 쿨 네이비, 시안 네온 액센트
   ========================================================================== */

/* ---------- 1. 화이트 (White) 테마 고시인성 & V3 전수 컬러 룰 ---------- */
html[data-theme="white"] body,
html[data-theme="white"] .app,
html[data-theme="white"] #appShell {
  background: #F8FAFC !important;
  color: #0F172A !important;
}
html[data-theme="white"] .sanctuary-top-bar .sanctuary-app-title {
  color: #0F172A !important;
}
html[data-theme="white"] .sanctuary-bell-btn {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
html[data-theme="white"] .sanctuary-bell-btn:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}
html[data-theme="white"] .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] .screen .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
  color: #0F172A !important;
}
html[data-theme="white"] input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] select,
html[data-theme="white"] textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
}
html[data-theme="white"] input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder,
html[data-theme="white"] textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: #94A3B8 !important;
}
html[data-theme="white"] details.settings-group-accordion {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
}
html[data-theme="white"] details.settings-group-accordion summary {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}
/* 플로팅 내비게이션 화이트 */
html[data-theme="white"] .bottomnav {
  background: transparent !important;
  padding: 0 10px 10px !important;
}
html[data-theme="white"] .bottomnav-inner {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 28px !important;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12) !important;
}
html[data-theme="white"] .navbtn {
  color: #64748B !important;
}
html[data-theme="white"] .navbtn.active {
  color: #059669 !important;
  font-weight: 700 !important;
}
/* 홈 탭: 14일 잔디 & 체크인 & 2열 퀘스트 */
html[data-theme="white"] #homeGrassSummaryCard .card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="white"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

html[data-theme="white"] #screen-home #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] .sanctuary-title-text:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  color: #0F172A !important;
}

html[data-theme="white"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  color: #0F172A !important;
}
html[data-theme="white"] .quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}
html[data-theme="white"] .quick-checkin-chips .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
html[data-theme="white"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #F8FAFC !important;
  border: 1.5px solid #059669 !important;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.15) !important;
}
html[data-theme="white"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0F172A !important;
}
html[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: #94A3B8 !important;
}
html[data-theme="white"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="white"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35) !important;
}
html[data-theme="white"] .home-recent-title h3 {
  color: #0F172A !important;
}
html[data-theme="white"] #homeAddGoal {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #059669 !important;
}
html[data-theme="white"] .hybrid-row {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="white"] .hybrid-row:hover {
  border-color: #059669 !important;
}
/* 목표 탭: Mountain Trail 화이트 */
html[data-theme="white"] .mountain-trail-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="white"] .m-goal-title {
  color: #0F172A !important;
}
html[data-theme="white"] .m-badge,
html[data-theme="white"] .m-summit-badge {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #059669 !important;
}
html[data-theme="white"] .trail-node {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .trail-node-title {
  color: #0F172A !important;
}
html[data-theme="white"] .trail-node-sub {
  color: #64748B !important;
}
html[data-theme="white"] .trail-action-chip {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #334155 !important;
}
html[data-theme="white"] .trail-node.done .trail-action-chip {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
html[data-theme="white"] .s-goal-pill {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
html[data-theme="white"] .s-goal-pill.active {
  background: rgba(5, 150, 105, 0.12) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
/* 일정 탭: 월간 / 타임라인 / 뽀모도로 화이트 */
html[data-theme="white"] .s-cal-mode-btn {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
html[data-theme="white"] .s-cal-mode-btn.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
html[data-theme="white"] .s-month-cal-card,
html[data-theme="white"] .s-week-cal-card,
html[data-theme="white"] .s-timeline-card,
html[data-theme="white"] .s-timer-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="white"] .s-cal-month-title,
html[data-theme="white"] .s-timeline-header h4,
html[data-theme="white"] .s-timer-header h4,
html[data-theme="white"] .s-timer-display {
  color: #0F172A !important;
}
html[data-theme="white"] .s-month-days-header {
  color: #64748B !important;
}
html[data-theme="white"] .s-cal-day-cell {
  color: #1E293B !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .s-cal-day-cell:hover {
  background: #F1F5F9 !important;
}
html[data-theme="white"] .s-cal-day-cell.today {
  border-color: #059669 !important;
  background: rgba(5, 150, 105, 0.08) !important;
}
html[data-theme="white"] .s-day-num {
  color: #0F172A !important;
}
html[data-theme="white"] .s-cal-selected-bar {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .s-cal-sel-date {
  color: #64748B !important;
}
html[data-theme="white"] .s-cal-sel-task {
  color: #0F172A !important;
}
html[data-theme="white"] .s-t-time {
  color: #64748B !important;
}
html[data-theme="white"] .s-t-block {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .s-t-title {
  color: #0F172A !important;
}
/* 기록 탭: 히트맵 & 리캡 & 피드 화이트 */
html[data-theme="white"] .s-heatmap-card,
html[data-theme="white"] .s-recap-share-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="white"] .s-rec-mode-btn,
html[data-theme="white"] .s-seg-pill {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
html[data-theme="white"] .s-rec-mode-btn.active,
html[data-theme="white"] .s-seg-pill.active {
  background: rgba(5, 150, 105, 0.12) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
html[data-theme="white"] .s-heat-head h3,
html[data-theme="white"] .s-heat-val,
html[data-theme="white"] .s-recap-head h4 {
  color: #0F172A !important;
}
html[data-theme="white"] .s-heat-sub {
  color: #64748B !important;
}
html[data-theme="white"] .s-feed-item-card {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
html[data-theme="white"] .s-f-content {
  color: #0F172A !important;
}
html[data-theme="white"] .s-recap-canvas-mock {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
/* 소통 탭: 레이더 & 포스트 화이트 */
html[data-theme="white"] .s-peer-radar-card,
html[data-theme="white"] .s-comm-post-card {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="white"] .s-radar-title,
html[data-theme="white"] .s-r-name,
html[data-theme="white"] .s-cp-name,
html[data-theme="white"] .s-cp-body {
  color: #0F172A !important;
}
html[data-theme="white"] .s-r-goal {
  color: #64748B !important;
}
html[data-theme="white"] .s-react-pill {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
}
html[data-theme="white"] .s-react-pill:hover {
  background: rgba(5, 150, 105, 0.1) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
html[data-theme="white"] .s-react-pill.active {
  background: rgba(5, 150, 105, 0.15) !important;
  border-color: #059669 !important;
  color: #059669 !important;
}
html[data-theme="white"] .comm-subtabs {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
}
html[data-theme="white"] .comm-subtab {
  color: #64748B !important;
}
html[data-theme="white"] .comm-subtab.active {
  background: #FFFFFF !important;
  color: #059669 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="white"] .theme-card {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
}
html[data-theme="white"] .theme-card .theme-name {
  color: #0F172A !important;
}
html[data-theme="white"] .theme-card .theme-desc {
  color: #64748B !important;
}
html[data-theme="white"] .theme-card.active {
  background: rgba(5, 150, 105, 0.08) !important;
  border-color: #059669 !important;
}
html[data-theme="white"] .theme-card.active .theme-name {
  color: #059669 !important;
}
html[data-theme="white"] .modal-box {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16) !important;
}
html[data-theme="white"] .s-title,
html[data-theme="white"] h1,
html[data-theme="white"] h2,
html[data-theme="white"] h3,
html[data-theme="white"] h4 {
  color: #0F172A !important;
}
html[data-theme="white"] .muted {
  color: #334155 !important;
}
html[data-theme="white"] .faint {
  color: #64748B !important;
}

/* ---------- 2. 블랙 (Black) 테마 고시인성 & V3 전수 컬러 룰 ---------- */
html[data-theme="black"] body,
html[data-theme="black"] .app,
html[data-theme="black"] #appShell {
  background: #000000 !important;
  color: #FFFFFF !important;
}
html[data-theme="black"] .sanctuary-top-bar .sanctuary-app-title {
  color: #FFFFFF !important;
}
html[data-theme="black"] .sanctuary-bell-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #E4E4E7 !important;
}
html[data-theme="black"] .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] .screen .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
  color: #FFFFFF !important;
}
html[data-theme="black"] input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] select,
html[data-theme="black"] textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #121214 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}
html[data-theme="black"] details.settings-group-accordion {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="black"] details.settings-group-accordion summary {
  background: #141418 !important;
  color: #FFFFFF !important;
}
/* 플로팅 내비게이션 블랙 */
html[data-theme="black"] .bottomnav {
  background: transparent !important;
  padding: 0 10px 10px !important;
}
html[data-theme="black"] .bottomnav-inner {
  background: rgba(14, 14, 18, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="black"] .navbtn {
  color: #A1A1AA !important;
}
html[data-theme="black"] .navbtn.active {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
/* 홈 탭: 14일 잔디 & 체크인 & 2열 퀘스트 블랙 */
html[data-theme="black"] #homeGrassSummaryCard .card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="black"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="black"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  color: #FFFFFF !important;
}
html[data-theme="black"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #121216 !important;
  border: 1.5px solid #10B981 !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3) !important;
}
html[data-theme="black"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #FFFFFF !important;
}
html[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: #71717A !important;
}
html[data-theme="black"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="black"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #000000 !important;
}
html[data-theme="black"] .hybrid-row {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="black"] .hybrid-row:hover {
  border-color: rgba(16, 185, 129, 0.5) !important;
}
html[data-theme="black"] .home-recent-title h3 {
  color: #FFFFFF !important;
}
html[data-theme="black"] #homeAddGoal {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #10B981 !important;
}
/* 목표 탭: Mountain Trail 블랙 */
html[data-theme="black"] .mountain-trail-card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="black"] .m-goal-title {
  color: #FFFFFF !important;
}
html[data-theme="black"] .m-badge,
html[data-theme="black"] .m-summit-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #10B981 !important;
}
html[data-theme="black"] .trail-node {
  background: #121216 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="black"] .trail-node-title {
  color: #FFFFFF !important;
}
html[data-theme="black"] .trail-node-sub {
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-goal-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-goal-pill.active {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}
/* 일정 탭: 월간 / 타임라인 / 뽀모도로 블랙 */
html[data-theme="black"] .s-cal-mode-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-cal-mode-btn.active {
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: var(--chip-ink) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="black"] .s-month-cal-card,
html[data-theme="black"] .s-week-cal-card,
html[data-theme="black"] .s-timeline-card,
html[data-theme="black"] .s-timer-card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html[data-theme="black"] .s-cal-month-title,
html[data-theme="black"] .s-timeline-header h4,
html[data-theme="black"] .s-timer-header h4,
html[data-theme="black"] .s-timer-display {
  color: #FFFFFF !important;
}
html[data-theme="black"] .s-cal-day-cell {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
html[data-theme="black"] .s-cal-selected-bar,
html[data-theme="black"] .s-t-block {
  background: #121216 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="black"] .s-t-title {
  color: #FFFFFF !important;
}
/* 기록 탭: 히트맵 & 리캡 & 피드 블랙 */
html[data-theme="black"] .s-heatmap-card,
html[data-theme="black"] .s-recap-share-card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="black"] .s-rec-mode-btn,
html[data-theme="black"] .s-seg-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-rec-mode-btn.active,
html[data-theme="black"] .s-seg-pill.active {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}
html[data-theme="black"] .s-heat-head h3,
html[data-theme="black"] .s-heat-val,
html[data-theme="black"] .s-f-content,
html[data-theme="black"] .s-recap-head h4 {
  color: #FFFFFF !important;
}
html[data-theme="black"] .s-feed-item-card {
  background: #121216 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
/* 소통 탭: 레이더 & 포스트 블랙 */
html[data-theme="black"] .s-peer-radar-card,
html[data-theme="black"] .s-comm-post-card,
html[data-theme="dark"] .s-peer-radar-card,
html[data-theme="dark"] .s-comm-post-card {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="black"] .s-radar-title,
html[data-theme="black"] .s-r-name,
html[data-theme="black"] .s-cp-name,
html[data-theme="black"] .s-cp-body,
html[data-theme="dark"] .s-radar-title,
html[data-theme="dark"] .s-r-name,
html[data-theme="dark"] .s-cp-name,
html[data-theme="dark"] .s-cp-body {
  color: #FFFFFF !important;
}
html[data-theme="black"] .s-react-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-react-pill:hover {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}
html[data-theme="black"] .s-react-pill.active {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10B981 !important;
  color: #34D399 !important;
}
html[data-theme="black"] .comm-subtabs {
  background: #141418 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
html[data-theme="black"] .comm-subtab {
  color: #A1A1AA !important;
}
html[data-theme="black"] .comm-subtab.active {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #34D399 !important;
  border: 1px solid #10B981 !important;
}
html[data-theme="black"] .theme-card {
  background: #0A0A0C !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
}
html[data-theme="black"] .theme-card.active {
  background: rgba(16, 185, 129, 0.16) !important;
  border-color: #10B981 !important;
}

/* ---------- 3. 도심 (Urban City) 테마 고시인성 & V3 전수 컬러 룰 ---------- */
html[data-theme="urban-city"] body,
html[data-theme="urban-city"] .app,
html[data-theme="urban-city"] #appShell {
  background: #0B0F19 !important;
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .sanctuary-top-bar .sanctuary-app-title {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .sanctuary-bell-btn {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] .screen .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 4px 20px rgba(11, 15, 25, 0.6) !important;
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] select,
html[data-theme="urban-city"] textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #18223A !important;
  border: 1.5px solid rgba(56, 189, 248, 0.25) !important;
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] details.settings-group-accordion {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
}
html[data-theme="urban-city"] details.settings-group-accordion summary {
  background: #1E2B48 !important;
  color: #F8FAFC !important;
}
/* 플로팅 내비게이션 도심 */
html[data-theme="urban-city"] .bottomnav {
  background: transparent !important;
  padding: 0 10px 10px !important;
}
html[data-theme="urban-city"] .bottomnav-inner {
  background: rgba(19, 27, 46, 0.96) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 28px !important;
  box-shadow: 0 12px 36px rgba(11, 15, 25, 0.7) !important;
}
html[data-theme="urban-city"] .navbtn {
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .navbtn.active {
  color: #38BDF8 !important;
  font-weight: 700 !important;
}
/* 홈 탭: 14일 잔디 & 체크인 & 2열 퀘스트 도심 */
html[data-theme="urban-city"] #homeGrassSummaryCard .card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 8px 32px rgba(11, 15, 25, 0.6) !important;
}
html[data-theme="urban-city"] #screen-home #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 12px 36px rgba(11, 15, 25, 0.7) !important;
}
html[data-theme="urban-city"] #captureCardBox .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .capture-ta-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #18223A !important;
  border: 1.5px solid #38BDF8 !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3) !important;
}
html[data-theme="urban-city"] #screen-home #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: #64748B !important;
}
html[data-theme="urban-city"] #screen-home #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="urban-city"] #captureSave:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%) !important;
  color: #0B0F19 !important;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.4) !important;
}
html[data-theme="urban-city"] .hybrid-row {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
}
html[data-theme="urban-city"] .hybrid-row:hover {
  border-color: #38BDF8 !important;
}
html[data-theme="urban-city"] .home-recent-title h3 {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] #homeAddGoal {
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #38BDF8 !important;
}
/* 목표 탭: Mountain Trail 도심 */
html[data-theme="urban-city"] .mountain-trail-card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 8px 32px rgba(11, 15, 25, 0.7) !important;
}
html[data-theme="urban-city"] .m-goal-title {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .m-badge,
html[data-theme="urban-city"] .m-summit-badge {
  background: rgba(56, 189, 248, 0.1) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #38BDF8 !important;
}
html[data-theme="urban-city"] .trail-node {
  background: #18223A !important;
  border: 1px solid rgba(56, 189, 248, 0.15) !important;
}
html[data-theme="urban-city"] .trail-node-title {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .trail-node-sub {
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-goal-pill {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-goal-pill.active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}
/* 일정 탭: 월간 / 타임라인 / 뽀모도로 도심 */
html[data-theme="urban-city"] .s-cal-mode-btn {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-cal-mode-btn.active {
  background: #0284C7 !important;
  border-color: #0284C7 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35) !important;
}
html[data-theme="urban-city"] .s-month-cal-card,
html[data-theme="urban-city"] .s-week-cal-card,
html[data-theme="urban-city"] .s-timeline-card,
html[data-theme="urban-city"] .s-timer-card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 8px 32px rgba(11, 15, 25, 0.7) !important;
}
html[data-theme="urban-city"] .s-cal-month-title,
html[data-theme="urban-city"] .s-timeline-header h4,
html[data-theme="urban-city"] .s-timer-header h4,
html[data-theme="urban-city"] .s-timer-display {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .s-cal-day-cell {
  border-color: rgba(56, 189, 248, 0.12) !important;
}
html[data-theme="urban-city"] .s-cal-selected-bar,
html[data-theme="urban-city"] .s-t-block {
  background: #18223A !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
}
html[data-theme="urban-city"] .s-t-title {
  color: #F8FAFC !important;
}
/* 기록 탭: 히트맵 & 리캡 & 피드 도심 */
html[data-theme="urban-city"] .s-heatmap-card,
html[data-theme="urban-city"] .s-recap-share-card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
html[data-theme="urban-city"] .s-rec-mode-btn,
html[data-theme="urban-city"] .s-seg-pill {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-rec-mode-btn.active,
html[data-theme="urban-city"] .s-seg-pill.active {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}
html[data-theme="urban-city"] .s-heat-head h3,
html[data-theme="urban-city"] .s-heat-val,
html[data-theme="urban-city"] .s-f-content,
html[data-theme="urban-city"] .s-recap-head h4 {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .s-feed-item-card {
  background: #18223A !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
}
/* 소통 탭: 레이더 & 포스트 도심 */
html[data-theme="urban-city"] .s-peer-radar-card,
html[data-theme="urban-city"] .s-comm-post-card {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}
html[data-theme="urban-city"] .s-radar-title,
html[data-theme="urban-city"] .s-r-name,
html[data-theme="urban-city"] .s-cp-name,
html[data-theme="urban-city"] .s-cp-body {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .s-react-pill {
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-react-pill:hover {
  background: rgba(56, 189, 248, 0.2) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}
html[data-theme="urban-city"] .s-react-pill.active {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38BDF8 !important;
  color: #38BDF8 !important;
}
html[data-theme="urban-city"] .comm-subtabs {
  background: #18223A !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
}
html[data-theme="urban-city"] .comm-subtab {
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .comm-subtab.active {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38BDF8 !important;
  border: 1px solid #38BDF8 !important;
}
html[data-theme="urban-city"] .theme-card {
  background: #131B2E !important;
  border: 1.5px solid rgba(56, 189, 248, 0.22) !important;
}
html[data-theme="urban-city"] .theme-card.active {
  background: rgba(14, 165, 233, 0.16) !important;
  border-color: #38BDF8 !important;
}

/* =========================================================================
   🌟 [2026-09-20] 20대 핵심 UI/UX 전수 결함 정밀 해결 헌법 스타일 블록
   - 1. 설정 탭 테마 그리드 모바일 1열 반응형 적층 및 텍스트 래핑
   - 2. 전 탭 하단 안전 스크롤 여백 일괄 확장 (바텀 네비 차폐 완전 해소)
   - 3. 한글 타이포그래피 줄바꿈 단어 보존 (word-break: keep-all)
   - 4. 템플릿 백과사전 '16주 과정' 뱃지 3줄 쪼개짐 방지 (white-space: nowrap)
   - 5. 목표 탭 및 소통 탭 가로스크롤 컨테이너 패딩 및 터치 가독성 확보
   - 6. 상단바 활용법 및 헤더 미니 뱃지 터치 타겟 확장 (>= 36~44px)
   - 7. 모달 닫기(X) 버튼 및 하단 안전영역 패딩 보강
   - 8. 화이트 테마 토스트 및 모달 고시인성 일원화
   ========================================================================= */

/* 1. 설정 탭 테마 그리드 반응형 (모바일 375px~480px 1열 적층) */
@media (max-width: 480px) {
  .theme-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .theme-card {
    padding: 14px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .theme-desc {
    white-space: normal !important;
    word-break: keep-all !important;
    line-height: 1.4 !important;
  }
}

/* 2. 전 탭 상하단 모바일 안전 여백 확장 (아이폰 노치/다이나믹 아일랜드 및 바텀 네비 차폐 완전 해소) */
.screens, main.screens {
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: calc(var(--nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 48px) !important;
}
.screen,
#screen-home, #screen-goals, #screen-calendar, #screen-records, #screen-comm, #screen-settings {
  padding-bottom: max(96px, calc(var(--nav-h, 64px) + env(safe-area-inset-bottom, 24px) + 32px)) !important;
}
#screen-goals {
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* 3. 한글 타이포그래피 단어 단위 줄바꿈 전역 보정 (1글자 개행 전수 방지) */
.sanctuary-app-title, .home-greet, .capture-title, .capture-sub,
.theme-name, .theme-desc, .s-title, .screen-head, .faint,
.comm-subtab, .feed-filter-chip, .goal-chip, .dday-pill,
.modal-header, .modal-title, .modal-body, .card,
.today-glance-pill, .offline-banner {
  word-break: keep-all !important;
}

/* 4. 템플릿 백과사전 기간 라벨 3줄 쪼개짐 방지 */
.tpl-duration-pill, [class*="duration"], [class*="badge-duration"],
.encyclopedia-card .badge, [data-domain="encyclopedia"] .badge,
.theme-filter-row .badge, .feed-card .badge {
  white-space: nowrap !important;
  word-break: keep-all !important;
  width: auto !important;
  min-width: max-content !important;
}

/* 5. 목표 탭 서브탭 및 소통 탭 가로스크롤 패딩 및 페이드 마스크 */
#goalsSubtabs, .feed-filter-bar, .comm-subtabs-wrap {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-right: 28px !important;
}
#goalsSubtabs::-webkit-scrollbar, .feed-filter-bar::-webkit-scrollbar {
  display: none;
}
.feed-filter-bar {
  -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, black 0%, black calc(100% - 28px), transparent 100%);
}

/* 6. 상단바 버튼 및 인라인 뱃지 터치 타겟 확장 */
.topbar-action-btn, #topHomeGuideBtn {
  font-size: 12px !important;
  padding: 5px 10px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}
#calGcalMiniBadge {
  min-height: 32px !important;
  padding: 4px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 12px !important;
}

/* 7. 체크인 입력창 플레이스홀더 명도 대비 확보 */
#captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder, textarea:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder, input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: var(--ink-soft) !important;
  opacity: 0.75 !important;
}

/* 8. 모달 바텀시트 하단 안전 영역 패딩 */
.modal-sheet, .sheet, .modal-box {
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
}
.modal-actions, .sheet-actions {
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px)) !important;
}

/* 9. 화이트 테마 토스트 고시인성 */
html[data-theme="white"] .toast {
  background: #0F172A !important;
  color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25) !important;
}

/* 10. 모달 및 시트 상단 닫기(X) 버튼 터치 영역 및 시인성 강화 */
.btn-close, [aria-label="닫기"], .modal-close {
  min-width: 36px !important;
  min-height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.3rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  border-radius: 8px !important;
  transition: background 0.15s ease !important;
}
.btn-close:hover, [aria-label="닫기"]:hover, .modal-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* ============ [#TASK-ES-194] 소통 탭 서브탭 6종 2줄(3×2 그리드) 조형 정돈 ============ */
[data-theme="focus-sanctuary"] .comm-subtabs.comm-subtabs-grid,
[data-theme="black"] .comm-subtabs.comm-subtabs-grid,
[data-theme="white"] .comm-subtabs.comm-subtabs-grid,
[data-theme="urban-city"] .comm-subtabs.comm-subtabs-grid,
html[data-theme="focus-sanctuary"] .comm-subtabs.comm-subtabs-grid,
html[data-theme="black"] .comm-subtabs.comm-subtabs-grid,
html[data-theme="white"] .comm-subtabs.comm-subtabs-grid,
html[data-theme="urban-city"] .comm-subtabs.comm-subtabs-grid,
.comm-subtabs.comm-subtabs-grid,
.comm-subtabs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  padding: 6px !important;
  margin-bottom: 12px !important;
  overflow-x: visible !important;
  box-sizing: border-box !important;
  width: 100% !important;
  position: sticky !important;
  top: env(safe-area-inset-top, 0px) !important;
  z-index: 25 !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-surface, rgba(15, 23, 42, 0.94)) !important;
}

[data-theme="focus-sanctuary"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
[data-theme="black"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
[data-theme="white"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
[data-theme="urban-city"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
html[data-theme="focus-sanctuary"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
html[data-theme="black"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
html[data-theme="white"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
html[data-theme="urban-city"] .comm-subtabs.comm-subtabs-grid .comm-subtab,
.comm-subtabs.comm-subtabs-grid .comm-subtab,
.comm-subtabs-grid .comm-subtab {
  flex: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 5px 3px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  white-space: nowrap !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  cursor: pointer !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94A3B8 !important;
}

.comm-subtabs.comm-subtabs-grid .comm-subtab.active,
.comm-subtabs-grid .comm-subtab.active {
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  color: #10B981 !important;
}

@media (max-width: 375px) {
  .comm-subtabs.comm-subtabs-grid,
  .comm-subtabs-grid {
    gap: 4px !important;
    padding: 4px !important;
  }
  .comm-subtabs.comm-subtabs-grid .comm-subtab,
  .comm-subtabs-grid .comm-subtab {
    font-size: 10.5px !important;
    padding: 5px 2px !important;
    min-height: 38px !important;
  }
}

/* ============ [#TASK-ES-195] 목표 탭 서브탭 5종 5열 그리드 조형 정돈 ============ */
.goals-subtabs-grid {
  grid-template-columns: repeat(5, 1fr) !important;
  justify-content: center !important;
  align-items: center !important;
}
.goals-subtabs-grid .comm-subtab.active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

/* ============ [#TASK-ES-128] 구형 서브탭 그리드 영구 은폐 및 스티키 서브탭 단일화 ============ */
#goalsSubtabs,
#goalsSubtabs.goals-subtabs-grid,
.goals-subtabs-grid,
[data-theme="focus-sanctuary"] #goalsSubtabs,
[data-theme="black"] #goalsSubtabs,
[data-theme="white"] #goalsSubtabs,
[data-theme="urban-city"] #goalsSubtabs,
html[data-theme="focus-sanctuary"] #goalsSubtabs,
html[data-theme="black"] #goalsSubtabs,
html[data-theme="white"] #goalsSubtabs,
html[data-theme="urban-city"] #goalsSubtabs,
html[data-theme="focus-sanctuary"] #goalsSubtabs.goals-subtabs-grid,
html[data-theme="black"] #goalsSubtabs.goals-subtabs-grid,
html[data-theme="white"] #goalsSubtabs.goals-subtabs-grid,
html[data-theme="urban-city"] #goalsSubtabs.goals-subtabs-grid {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 375px) {
  #goalsSubtabs.goals-subtabs-grid,
  .goals-subtabs-grid {
    gap: 3px !important;
    padding: 3px !important;
  }
  #goalsSubtabs.goals-subtabs-grid .comm-subtab,
  .goals-subtabs-grid .comm-subtab {
    font-size: 11px !important;
    padding: 5px 1px !important;
    min-height: 38px !important;
    letter-spacing: -0.3px !important;
  }
  #goalsHeadlineSentence {
    display: block !important;
    margin: 6px 0 8px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.3 !important;
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #calHeadlineSentence {
    display: block !important;
    margin: 4px 0 6px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.28 !important;
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #recHeadlineSentence {
    display: block !important;
    margin: 4px 0 6px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.28 !important;
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #commHeadlineSentence {
    display: block !important;
    margin: 4px 0 6px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.28 !important;
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #settingsHeadlineSentence {
    display: block !important;
    margin: 4px 0 6px 0 !important;
    font-size: 0.98rem !important;
    line-height: 1.28 !important;
    word-break: keep-all;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* ============ [#TASK-ES-195] 기록 탭 성취 통계 기간 버튼 40px 정상화 ============ */
.s-seg-pill,
html[data-theme="focus-sanctuary"] .s-seg-pill,
html[data-theme="black"] .s-seg-pill,
html[data-theme="white"] .s-seg-pill,
html[data-theme="urban-city"] .s-seg-pill {
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 8px 14px !important;
}

/* ============================================================
   [#TASK-ES-196] 체크인 즉시 아바타 AI 피드백 바텀시트 & 기록 탭 AI 카드
   ============================================================ */
.checkin-ai-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: checkinAiFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.checkin-ai-backdrop.closing {
  animation: checkinAiFadeOut 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes checkinAiFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes checkinAiFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.checkin-ai-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  animation: checkinAiSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}
@keyframes checkinAiSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.checkin-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.checkin-ai-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkin-ai-close-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  min-width: 40px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  touch-action: manipulation;
}
.checkin-ai-close-btn:hover, .checkin-ai-close-btn:active {
  background: var(--card2);
  color: var(--ink);
}
.checkin-ai-profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.checkin-ai-avatar-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.checkin-ai-avatar-wrap.pulse {
  animation: avatarPulseGlow 1.4s ease-in-out infinite alternate;
}
@keyframes avatarPulseGlow {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 4px var(--primary)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 12px var(--brand)); }
}
.checkin-ai-speaker {
  font-size: 0.875rem;
  color: var(--ink);
}
.checkin-ai-status-sub {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.checkin-ai-verdict-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--primary-glow, rgba(99, 102, 241, 0.15));
  color: var(--primary, #6366f1);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.checkin-ai-mode-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.checkin-ai-speech-bubble {
  background: var(--card2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
}
.checkin-ai-speech-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
  word-break: break-word;
}
.checkin-ai-loading-box {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.checkin-ai-dots {
  display: flex;
  gap: 6px;
}
.checkin-ai-dots span {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: dotBlink 1.4s infinite both;
}
.checkin-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.checkin-ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}
.checkin-ai-loading-text {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.checkin-ai-next-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.checkin-ai-next-head {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand, #6366f1);
  margin-bottom: 4px;
}
.checkin-ai-next-body {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}
.checkin-ai-footer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* 기록 탭 AI 코칭 피드백 박스 */
.rec-ai-feedback-box {
  margin: 8px 0 6px;
  padding: 8px 12px;
  background: var(--card2, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  border-left: 3px solid var(--primary, #6366f1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rec-ai-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-ai-icon {
  font-size: 0.9rem;
}
.rec-ai-verdict-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary, #6366f1);
  background: var(--primary-glow, rgba(99, 102, 241, 0.12));
  padding: 2px 6px;
  border-radius: 6px;
}
.rec-ai-mode-tag {
  font-size: 0.6875rem;
  color: var(--ink-faint);
}
.rec-ai-comment {
  font-size: 0.78125rem;
  color: var(--ink);
  line-height: 1.45;
  word-break: break-word;
}
.rec-ai-next {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px dashed var(--rule, rgba(255, 255, 255, 0.08));
  word-break: break-word;
}
.rec-ai-next-label {
  font-weight: 700;
  color: var(--brand, #6366f1);
}

/* ==========================================================================
   #TASK-ES-202: 내 기록 피드 최신 3개 + 이전 기록 기간 탐색 & 5개 와이드 페이저
   - 글자 잘림 방지 (Zero Clipping & 320px 대응)
   - UI 시각적 피로 최소화 (Visual Calming & Clean Hierarchy)
   - UX 극대화 (Frictionless Interaction & Thumb-Zone Pager)
   ========================================================================== */

.rec-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
  padding: 0 2px;
}
.rec-feed-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.rec-feed-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-sub, var(--ink-faint));
  background: var(--card-sub-bg, rgba(255, 255, 255, 0.06));
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}

.rec-past-archive-card {
  margin-top: 20px;
  border-radius: 14px;
  background: var(--home-card-bg, var(--card-bg, rgba(255, 255, 255, 0.03)));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.rec-past-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.06));
}
.rec-past-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-past-meta {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* 가로 스와이프 가능한 기간 프리셋 칩 바 (320px 깨짐 방지) */
.rec-period-chip-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 1px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rec-period-chip-bar::-webkit-scrollbar {
  display: none;
}
.rec-period-chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface, var(--card-bg, rgba(255, 255, 255, 0.05)));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.rec-period-chip:hover {
  background: var(--hover-bg, rgba(255, 255, 255, 0.08));
}
.rec-period-chip.active {
  background: var(--brand-glow, rgba(99, 102, 241, 0.15)) !important;
  border-color: var(--brand, #6366f1) !important;
  color: var(--brand, #6366f1) !important;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(99, 102, 241, 0.15);
}

/* 커스텀 날짜 선택창 */
.rec-custom-date-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg, rgba(0, 0, 0, 0.15));
  border: 1px dashed var(--line, rgba(255, 255, 255, 0.12));
}
.rec-custom-date-box label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  font-weight: 600;
}
.rec-custom-date-box input[type="date"] {
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  background: var(--card-bg, #1e293b);
  color: var(--ink);
  font-family: inherit;
  min-width: 105px;
}

/* 현재 페이지 구간 뱃지 */
.rec-paged-range-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--card-sub-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  padding: 3px 9px;
  border-radius: 10px;
  margin: 4px 0 10px;
}

/* 모바일 와이드 엄지 페이저 (Thumb Pager) */
.rec-past-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}
.rec-pager-btn {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all .15s ease;
  user-select: none;
}
.rec-pager-btn:active:not(:disabled) {
  transform: scale(0.97);
  background: var(--brand-glow, rgba(99, 102, 241, 0.1));
}
.rec-pager-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(1);
}
.rec-pager-info {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.35;
  flex: 1;
}
.rec-pager-info span {
  display: block;
  font-size: 0.6875rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* �� �׼� �� & 320px �ʼ��� ȭ�� �ϰ� ��Ÿ�� */
.rec-quick-dock-bar { max-width: 100%; box-sizing: border-box; }
.archive-ms-details summary::-webkit-details-marker { display: none; }
@media (max-width: 340px) { .rec-pager-btn { padding: 6px 8px; font-size: 0.75rem; } .rec-pager-info { font-size: 0.72rem; } }


/* ��� �� 320px ���� �����÷ο� ��� */
/* 전 탭 상하 스크롤 락 완전 해제 및 모바일 터치 스크롤 최적화 */
#screen-records,
#screen-comm,
#screen-goals {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}
.rec-carousel-viewport { overflow: hidden !important; width: 100%; max-width: 100%; }
#periodPresetRow { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
.date-range { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; box-sizing: border-box; }
.date-range .field { min-width: 0; flex: 1 1 110px; }
.date-range input[type='date'] { max-width: 100%; box-sizing: border-box; font-size: 0.78rem; }

/* ================= [#TASK-ES-207] 20대 후반 여성 타깃 모던 미니멀 아바타 랭크 오브제 스타일 ================= */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.2px);
  }
}

.avatar-rank-aura-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
}
.rank-bg-svg-layer {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  animation: softFloat 3s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.avatar-inner-box {
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.avatar-rank-aura-wrap:hover .avatar-inner-box {
  transform: scale(1.03);
}
.avatar-rank-aura-wrap:hover .rank-bg-svg-layer {
  transform: translateY(-2px) scale(1.04);
}
.avatar-lv-pill {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 레거시 키프레임 호환 보존 */
@keyframes sproutBreath {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}
@keyframes forestGlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}
@keyframes oceanTide {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}
@keyframes zeusFlash {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}
@keyframes cosmicPulsar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.2px); }
}

.rank-theme-sprout .rank-bg-svg-layer { animation: softFloat 3.2s ease-in-out infinite; }
.rank-theme-forest .rank-bg-svg-layer { animation: softFloat 3.0s ease-in-out infinite; }
.rank-theme-poseidon .rank-bg-svg-layer { animation: softFloat 2.8s ease-in-out infinite; }
.rank-theme-zeus .rank-bg-svg-layer { animation: softFloat 2.8s ease-in-out infinite; }
.rank-theme-cosmic .rank-bg-svg-layer { animation: softFloat 3.2s ease-in-out infinite; }

/* 5단계 마스터 랭크 헤드피스 마일드 하이라이트 (과격한 번쩍임 제거) */
.rank-step-5 .rank-bg-svg-layer {
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.35)) !important;
}

/* =============================================================================
 * #TASK-ES-209: 목표 탭 Phase 1 컨트롤 슬림화 및 모바일 375px 스크롤 최적화
 * ============================================================================= */
.goals-agent-slim {
  padding: 8px 14px !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
  border: 1px solid var(--rule) !important;
  background: var(--card) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.goals-agent-slim .agent-title {
  font-size: 0.85rem !important;
}

.goals-filter-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  margin: 6px 0 !important;
  padding: 0 !important;
}

.goals-filter-strip .format-toggle {
  margin: 0 !important;
}

.goals-filter-strip .format-opt {
  font-size: 0.75rem !important;
  padding: 4px 8px !important;
  white-space: nowrap !important;
}

@media (max-width: 480px) {
  #screen-goals .mountain-trail-card {
    padding: 14px 12px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
  }
  #screen-goals .mountain-head {
    margin-bottom: 12px !important;
  }
  #screen-goals .trail-node {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  #screen-goals .goal-head-row {
    margin-top: 6px !important;
    margin-bottom: 6px !important;
  }
  #screen-goals .meta-strip {
    margin-bottom: 6px !important;
  }
}

/* ==========================================================================
   #TASK-ES-210: 아워골 전 6대 탭 토스(Toss)식 UI/UX 전면 혁신 종합 팩
   - 문장형 헤드라인 (.toss-headline)
   - 1화면 1목적 둥근 원카드 (.toss-card)
   - 단일 퀘스트 보드 일체화 (.toss-quest-board)
   - 설정 탭 둥근 카드 그루핑 (.toss-settings-group, .toss-settings-row)
   ========================================================================== */

.toss-headline {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink, #191f28);
  margin: 10px 0 14px 0;
  letter-spacing: -0.025em;
  display: block;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.toss-headline b {
  display: inline;
  color: var(--brand, #3182f6);
  font-weight: 800;
}

.toss-headline-sub {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft, #8b95a1);
  letter-spacing: -0.01em;
}

/* #TASK-ES-238: 목표탭 대표 안내멘트 시인성 개선 및 공간 효율적 간결 문구 재배치 */
#goalsHeadlineSentence {
  display: block !important;
  margin: 4px 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: normal;
}

#goalsHeadlineSentence b {
  color: var(--brand, #10B981) !important;
  font-weight: 800 !important;
}

html[data-theme="white"] #goalsHeadlineSentence b {
  color: #047857 !important;
  font-weight: 800 !important;
}

.toss-card {
  background: var(--card, #ffffff);
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-sizing: border-box;
}

.toss-card:active {
  transform: scale(0.992);
}

.toss-quest-board {
  background: var(--card, #131A26);
  border-radius: 16px;
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.toss-quest-board .mountain-trail-card {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 6px 4px !important;
  margin-bottom: 6px !important;
}

.toss-settings-group {
  background: var(--card, #ffffff);
  border-radius: 18px;
  padding: 4px 0;
  margin-bottom: 14px;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.05));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
  overflow: hidden;
  box-sizing: border-box;
}

.toss-settings-header {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft, #8b95a1);
  padding: 10px 16px 4px;
  letter-spacing: -0.01em;
}

.toss-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--rule-light, rgba(0, 0, 0, 0.04));
  cursor: pointer;
  transition: background 0.12s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.toss-settings-row:last-child {
  border-bottom: none;
}

.toss-settings-row:active {
  background: rgba(0, 0, 0, 0.03);
}

.toss-settings-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink, #191f28);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toss-settings-chevron {
  color: var(--ink-faint, #b0b8c1);
  font-size: 0.875rem;
  font-weight: 600;
}

/* 햅틱 인터랙션 피드백 효과 */
.toss-haptic-tap:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .toss-headline {
    font-size: 1.15rem;
    margin: 8px 0 12px 0;
  }
  #goalsHeadlineSentence {
    display: block !important;
    margin: 4px 0 8px 0 !important;
    font-size: 1rem !important;
    line-height: 1.32 !important;
    word-break: keep-all;
  }
  #calHeadlineSentence {
    display: block !important;
    margin: 4px 0 6px 0 !important;
    font-size: 1rem !important;
    line-height: 1.28 !important;
    word-break: keep-all;
  }
  #recHeadlineSentence {
    display: block !important;
    margin: 4px 0 8px 0 !important;
    font-size: 1rem !important;
    line-height: 1.32 !important;
    word-break: keep-all;
  }
  #commHeadlineSentence {
    display: block !important;
    margin: 4px 0 8px 0 !important;
    font-size: 1rem !important;
    line-height: 1.32 !important;
    word-break: keep-all;
  }
  #settingsHeadlineSentence {
    display: block !important;
    margin: 4px 0 8px 0 !important;
    font-size: 1rem !important;
    line-height: 1.32 !important;
    word-break: keep-all;
  }
  .toss-card, .toss-quest-board {
    padding: 16px 14px;
    border-radius: 18px;
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   #TASK-ES-211: 홈 탭(screen-home) 토스(Toss)식 UI/UX 전면 혁신
   - 엄지 영역(Thumb-Zone) 초집중 플렉스 오더 위계 재편
   - 오늘의 원카드 (.toss-home-focus-card, .toss-focus-badge, .toss-focus-complete-btn)
   - 군더더기 없는 3초 체크인 (.toss-checkin-clean-box, .toss-checkin-save-btn)
   - 스타터 웰컴 원카드 (.toss-home-starter-card, .toss-starter-chip)
   - 하단 서머리 푸터 (.toss-home-footer-summary)
   ========================================================================== */

#screen-home.active {
  display: flex !important;
  flex-direction: column !important;
}

#screen-home:not(.active) {
  display: none !important;
}

#screen-home .sanctuary-top-bar { order: 1; }
#screen-home #sanctuaryHomeSlot { display: none !important; }
#screen-home #levelBadgeRow { order: 2; }
#screen-home .home-head-row { order: 3; margin-top: 10px; }
#screen-home #homeHeadlineSentence { order: 4; }
#screen-home #captureCardBox { order: 5; margin-top: 8px; margin-bottom: 14px; }
#screen-home #todayGlancePill { order: 6; }
#screen-home #homeGrassSummaryCard { order: 7; margin-bottom: 14px; }
#screen-home #crewPacingWidget { order: 8; margin-bottom: 14px; }
#screen-home .home-recent-title { order: 9; margin: 4px 0 8px; }
#screen-home #homePositionStrip { order: 10; }
#screen-home #homeGoalList { order: 11; margin-bottom: 14px; }
#screen-home .home-actions { order: 12; margin-top: 6px; margin-bottom: 14px; }
#screen-home #todayMissionCard { order: 20; }
#screen-home #customFeedbackBtn { order: 22; }
#screen-home #dailyQuestBarWrap { order: 23; }
#screen-home #a11yLiveAnnouncer { order: 30; }
#screen-home #offlineNoticeBanner { order: 31; }
#screen-home #notifyBannerSlot { order: 32; }
#screen-home #socialNotifySlot { order: 33; }
#screen-home #iosPwaSlot { order: 34; }
/* [#TASK-ES-440] 앱 평가 배너는 홈 첫 화면에서만 숨긴다 — 「오늘 목표」 시트(목표 목록 아래)에서 보인다. 옛 선택자(#homeEvalBanner·.home-eval-banner-box 전역)는 시트로 옮긴 배너까지 숨겨 평가 진입로가 0개였다 */
#screen-home > #homeEvalBanner {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 토스 홈 오늘의 원카드 (Today Focus Card) */
.toss-home-focus-card {
  background: var(--card, #ffffff);
  border-radius: 20px !important;
  padding: 18px 18px 16px 18px !important;
  margin-bottom: 14px !important;
  border: 1.5px solid rgba(16, 185, 129, 0.35) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

[data-theme="dark"] .toss-home-focus-card,
[data-theme="black"] .toss-home-focus-card,
[data-theme="focus-sanctuary"] .toss-home-focus-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(16, 185, 129, 0.15) !important;
}

.toss-home-focus-card:active {
  transform: scale(0.995);
}

.toss-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 8px;
}

.toss-focus-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.toss-focus-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink, #191f28);
  margin: 0;
  line-height: 1.35;
}

.toss-focus-sub {
  font-size: 0.78125rem;
  color: var(--ink-soft, #8b95a1);
  margin-top: 2px;
}

.toss-focus-progress-wrap {
  margin: 12px 0 14px;
}

.toss-focus-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft, #8b95a1);
  margin-bottom: 4px;
}

.toss-focus-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="dark"] .toss-focus-progress-bar,
[data-theme="black"] .toss-focus-progress-bar,
[data-theme="focus-sanctuary"] .toss-focus-progress-bar {
  background: rgba(255, 255, 255, 0.1);
}

.toss-focus-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toss-focus-complete-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.toss-focus-complete-btn:active {
  transform: scale(0.98);
}

.toss-focus-complete-btn.is-done {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  box-shadow: none !important;
}

/* 3초 체크인 클린 박스 */
.toss-checkin-clean-box:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  border-radius: 20px !important;
  padding: 16px !important;
  background: var(--card, #ffffff) !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.08)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="focus-sanctuary"] .toss-checkin-clean-box:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(18, 24, 38, 0.70) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

[data-theme="black"] .toss-checkin-clean-box:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #0A0A0C !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

[data-theme="white"] .toss-checkin-clean-box:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="urban-city"] .toss-checkin-clean-box:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: #131B2E !important;
  border: 1px solid rgba(56, 189, 248, 0.20) !important;
}

.toss-checkin-save-btn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: linear-gradient(135deg, #3182f6 0%, #1b64da 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(49, 130, 246, 0.35) !important;
}

/* 스타터 웰컴 원카드 */
.toss-home-starter-card {
  border-radius: 20px !important;
  padding: 18px 16px !important;
  background: var(--card, #ffffff) !important;
  border: 1.5px dashed rgba(16, 185, 129, 0.4) !important;
  box-sizing: border-box;
}

[data-theme="dark"] .toss-home-starter-card,
[data-theme="black"] .toss-home-starter-card,
[data-theme="focus-sanctuary"] .toss-home-starter-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
}

/* AI 피드백 모드 바 및 커닝페이퍼 가시성 및 토스 스타일 보장 */
#checkinFeedbackTierBar:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05) !important;
  padding: 4px !important;
  border-radius: 12px !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#checkinFeedbackTierBar .tier-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 8px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}

#checkinFeedbackTierBar .tier-btn.active:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: var(--accent, #3182f6) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(49, 130, 246, 0.35) !important;
}

.ai-mode-desc-card {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(49, 130, 246, 0.06);
  border: 1px solid rgba(49, 130, 246, 0.15);
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink);
  transition: all 0.2s ease;
}

.btn-quick-chip {
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 18px;
  background: rgba(49, 130, 246, 0.08);
  border: 1px solid rgba(49, 130, 246, 0.2);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-quick-chip:hover {
  background: rgba(49, 130, 246, 0.14);
}

.btn-quick-chip:active {
  transform: scale(0.95);
  background: rgba(49, 130, 246, 0.22);
}

#screen-home #customFeedbackBtn {
  display: inline-flex !important;
}

/* [#TASK-ES-217 / 생각 메모장 88번] 목표 맞춤 커닝페이퍼 칩 바 */
.quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 6px 0 10px 0 !important;
  width: 100% !important;
}
.cunning-chips-wrap:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
  border-radius: 18px !important;
  background: rgba(49, 130, 246, 0.08) !important;
  border: 1px solid rgba(49, 130, 246, 0.22) !important;
  color: var(--ink, #1e293b) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  min-height: 36px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  max-width: none !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.quick-checkin-chips .btn-quick-chip:hover:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(49, 130, 246, 0.14) !important;
  border-color: rgba(49, 130, 246, 0.4) !important;
}
.quick-checkin-chips .btn-quick-chip.active-cunning:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(49, 130, 246, 0.22) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-weight: 700 !important;
}
html[data-theme="white"] .quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(49, 130, 246, 0.06) !important;
  border: 1px solid rgba(49, 130, 246, 0.2) !important;
  color: #1e293b !important;
}
html[data-theme="white"] .quick-checkin-chips .btn-quick-chip.active-cunning:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(49, 130, 246, 0.15) !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
}
html[data-theme="black"] .quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
html[data-theme="focus-sanctuary"] .quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  color: #f1f5f9 !important;
}

#screen-feedbacksetup.active {
  display: block !important;
  min-height: 80vh;
}

/* ==========================================================================
   TOSS GOALS TAB INNOVATION (#TASK-ES-212)
   - 토스식 목표 히어로 진행 원카드 (.toss-goal-hero-card)
   - 퀘스트 보드 & 44px 터치 타깃 (.toss-quest-board, .compact-task-row)
   ========================================================================== */
.toss-goal-hero-card {
  background: var(--card, #ffffff);
  border-radius: 20px !important;
  padding: 16px 14px !important;
  margin-bottom: 12px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035) !important;
  box-sizing: border-box;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="dark"] .toss-goal-hero-card,
[data-theme="black"] .toss-goal-hero-card,
[data-theme="focus-sanctuary"] .toss-goal-hero-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.toss-quest-board .task-row {
  min-height: 42px;
  align-items: center;
  transition: background 0.15s ease;
  border-radius: 10px;
  padding: 4px 8px;
}

.toss-quest-board .task-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.toss-quest-board .task-check:active {
  transform: scale(0.9);
}

.toss-quest-board .ms-status {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.toss-quest-board .ms-status:active {
  transform: scale(0.9);
}

/* ==========================================================================
   TOSS CALENDAR TAB INNOVATION (#TASK-ES-214)
   - 토스식 일정 타임라인 원카드 (.toss-calendar-hero-card)
   - 세부 일정 카드 및 42~44px 엄지 최적화 터치 타깃 (.toss-timeline-card)
   ========================================================================== */
.toss-calendar-hero-card {
  background: var(--card, #ffffff);
  border-radius: 20px !important;
  padding: 16px 14px !important;
  margin-top: 14px !important;
  margin-bottom: 12px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035) !important;
  box-sizing: border-box;
}

[data-theme="dark"] .toss-calendar-hero-card,
[data-theme="black"] .toss-calendar-hero-card,
[data-theme="focus-sanctuary"] .toss-calendar-hero-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.toss-timeline-card {
  border-radius: 14px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.toss-timeline-card:active {
  transform: scale(0.992);
}

#calDayDetail .timetable-chip,
#calGrid .timetable-chip {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

#calDayDetail .sched-check,
#calGrid .sched-check {
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease;
}

#calDayDetail .sched-check:active,
#calGrid .sched-check:active {
  transform: scale(0.9);
}

/* ==========================================================================
   TOSS RECORDS TAB INNOVATION (#TASK-ES-215)
   - 토스식 기록 요약 원카드 (.toss-record-hero-card)
   - 토스형 모던 피드 카드 (.toss-feed-card) 및 42~44px 엄지 최적화 터치 타깃
   ========================================================================== */
.toss-record-hero-card {
  background: var(--card, #ffffff);
  border-radius: 16px !important;
  padding: 10px 14px !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035) !important;
  box-sizing: border-box;
}

[data-theme="dark"] .toss-record-hero-card,
[data-theme="black"] .toss-record-hero-card,
[data-theme="focus-sanctuary"] .toss-record-hero-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.toss-record-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  margin-top: 8px !important;
  padding: 8px 6px !important;
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border-radius: 10px !important;
}

.toss-record-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.toss-record-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary, #3b82f6);
}

.toss-record-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint, #888888);
}

.toss-feed-card {
  border-radius: 16px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
  padding: 14px 16px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.toss-feed-card:active {
  transform: scale(0.992);
}

/* ==========================================================================
   TOSS COMMUNITY TAB INNOVATION (#TASK-ES-216)
   - 토스식 동류 소통 요약 원카드 (.toss-community-hero-card)
   - 토스형 소통 카드 (.toss-comm-card) 및 42~44px 엄지 최적화 터치 타깃
   ========================================================================== */
/* ============ [#TASK-ES-129] 소통 탭 동류 소통 요약 원카드 콤팩트 인라인화 ============ */
.toss-community-hero-card {
  background: var(--card, #161E2E) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  margin-top: 2px !important;
  margin-bottom: 10px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  box-sizing: border-box;
}

[data-theme="dark"] .toss-community-hero-card,
[data-theme="black"] .toss-community-hero-card,
[data-theme="focus-sanctuary"] .toss-community-hero-card,
html[data-theme="urban-city"] .toss-community-hero-card {
  background: #161E2E !important;
  border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
}

.toss-community-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px !important;
  margin-top: 6px !important;
  padding: 6px 8px !important;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.toss-community-stat-item {
  display: flex;
  align-items: baseline !important;
  gap: 4px !important;
}

.toss-community-stat-val {
  font-size: 0.95rem !important;
  font-weight: 800;
  color: #38BDF8 !important;
}

.toss-community-stat-lbl {
  font-size: 0.75rem !important;
  font-weight: 600;
  color: #94A3B8 !important;
}

.toss-comm-card,
.comm-clean-card,
.feed-card {
  background: #131A26 !important;
  border-radius: 16px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  padding: 14px 16px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: #F8FAFC !important;
}

.toss-comm-card:active,
.feed-card:active {
  transform: scale(0.992);
}

/* 무공해 연대 응원 바 고대비 시인성 및 정중앙 가운데 정렬 */
.reaction-floating-bar,
#commFloatingReactionDock {
  background: #131A26 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  margin: 10px auto 8px auto !important;
  width: fit-content !important;
  max-width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#commHeadlineSentence {
  text-align: center !important;
  margin: 6px auto 10px auto !important;
}
.btn-reaction-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #F8FAFC !important;
  font-weight: 700 !important;
  border-radius: 16px !important;
  padding: 4px 10px !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-reaction-chip:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* ==========================================================================
   TOSS SETTINGS TAB INNOVATION (#TASK-ES-218, #TASK-ES-248)
   - 토스식 프로필 및 앱 상태 요약 원카드 (.toss-settings-hero-card)
   - 모바일 375px 가로 텍스트 쪼개짐 100% 박멸 & 버튼 2열 균등 그리드
   - 40~44px 엄지 최적화 터치 타깃 및 12ms 햅틱 반응성
   ========================================================================== */
.toss-settings-hero-card {
  position: relative;
  background: linear-gradient(145deg, var(--card, #ffffff) 0%, var(--card2, #f8fafc) 100%);
  border-radius: 20px !important;
  padding: 16px 14px !important;
  margin-top: 6px !important;
  margin-bottom: 14px !important;
  border: 1.5px solid var(--rule, rgba(0, 0, 0, 0.08)) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.toss-settings-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.toss-settings-hero-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.toss-settings-hero-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

#settingsHeroNickname {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 140px;
}

.toss-settings-status-desc,
#settingsHeroStatusDesc {
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  color: var(--ink-soft) !important;
  margin-top: 2px !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.toss-settings-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.toss-settings-hero-actions button {
  min-height: 40px !important;
  padding: 8px 10px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
  word-break: keep-all !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.toss-settings-hero-actions button:active {
  transform: scale(0.97);
}

/* #TASK-ES-248 & #TASK-ES-298: 설정탭 프로필 요약 카드 시인성 및 아바타/레벨 뱃지 강화 (76px 일괄 확대) */
.toss-settings-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
}

.toss-settings-avatar-wrap .profile-avatar {
  width: 76px !important;
  height: 76px !important;
  border: 3px solid var(--primary, #3b82f6) !important;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.32), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  border-radius: 50% !important;
}

.toss-settings-level-badge {
  position: absolute;
  bottom: -3px;
  right: -5px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  border: 2px solid var(--card, #ffffff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  line-height: 1.15;
  white-space: nowrap;
}

#btnSettingsQuickAvatar {
  background: var(--surface-2, rgba(0, 0, 0, 0.05)) !important;
  border: 1.5px solid var(--rule, rgba(0, 0, 0, 0.12)) !important;
  color: var(--ink, #1f2937) !important;
  cursor: pointer;
}

#btnSettingsQuickAvatar:hover {
  background: var(--surface-3, rgba(0, 0, 0, 0.08)) !important;
  border-color: var(--primary, #3b82f6) !important;
  color: var(--primary, #3b82f6) !important;
}

#btnOpenDynamicAlbum {
  background: linear-gradient(135deg, #6366F1, #8B5CF6) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer;
}

[data-theme="dark"] .toss-settings-hero-card,
[data-theme="black"] .toss-settings-hero-card,
[data-theme="focus-sanctuary"] .toss-settings-hero-card {
  background: linear-gradient(180deg, #1C2026 0%, #16181D 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] #btnSettingsQuickAvatar,
[data-theme="black"] #btnSettingsQuickAvatar,
[data-theme="focus-sanctuary"] #btnSettingsQuickAvatar {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .toss-settings-level-badge,
[data-theme="black"] .toss-settings-level-badge,
[data-theme="focus-sanctuary"] .toss-settings-level-badge {
  border-color: #16181D !important;
}

.toss-settings-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 8px;
  background: var(--surface-2, rgba(0, 0, 0, 0.03));
  border-radius: 14px;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.05));
}

.toss-settings-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.toss-settings-stat-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary, #3b82f6);
}

.toss-settings-stat-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint, #888888);
}

/* 설정 아코디언 토스식 모바일 최적화 */
.settings-group-accordion.toss-settings-group {
  margin-bottom: 12px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.08)) !important;
  border-radius: 16px !important;
  background: var(--card) !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease;
}

.settings-group-accordion.toss-settings-group summary {
  padding: 13px 15px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  user-select: none !important;
  background: var(--card2) !important;
  list-style: none !important;
  transition: background 0.15s ease, transform 0.1s ease;
}

.settings-group-accordion.toss-settings-group summary::-webkit-details-marker {
  display: none !important;
}

.settings-group-accordion.toss-settings-group summary:active {
  transform: scale(0.99);
}

.toss-settings-group .profile-card {
  padding: 14px 12px !important;
  border-radius: 14px !important;
  margin-bottom: 12px !important;
  border: 1px solid var(--rule, rgba(0, 0, 0, 0.06)) !important;
}







/* [#TASK-ES-229] 팀 생성 대형 히어로 카드 및 활용 예시 배지 */
.team-hero-card {
  background: linear-gradient(135deg, rgba(224, 90, 71, 0.08) 0%, rgba(20, 184, 166, 0.06) 100%), var(--card);
  border: 1.5px solid var(--brand-line, rgba(224, 90, 71, 0.25));
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: var(--red-soft, rgba(224, 90, 71, 0.1));
  padding: 2px 8px;
  border-radius: 999px;
}
.team-hero-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.team-hero-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.45;
}
.mock-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gold, #b45309);
  background: var(--gold-soft, rgba(245, 158, 11, 0.12));
  border: 1px solid var(--gold-line, rgba(245, 158, 11, 0.25));
  padding: 2px 8px;
  border-radius: 6px;
}
.mock-section-accordion {
  margin-top: 18px;
  border-top: 1px dashed var(--rule);
  padding-top: 14px;
}
.mock-section-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}

/* [#TASK-ES-230] 마니또 매칭 웰컴 응원 카드 및 4종 스탬프 팔레트 */
.manito-welcome-card {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9) 0%, rgba(254, 243, 199, 0.7) 100%), var(--card);
  border: 1.5px solid var(--violet-line, rgba(99, 102, 241, 0.25));
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.06);
}
.manito-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-strong, #6366f1);
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.manito-welcome-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.manito-welcome-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.45;
}
.manito-welcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.manito-welcome-stamp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  user-select: none;
}
.manito-welcome-stamp-btn:active {
  transform: scale(0.96);
  background: var(--surface-2);
}

/*

=
   [#TASK-ES-231] 소통 탭 동반자(Companion) 초대 히어로 카드 & 실시간 검색 스타일

=========================================== */
.companion-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.12) 50%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .companion-hero-card,
[data-theme="black"] .companion-hero-card,
[data-theme="focus-sanctuary"] .companion-hero-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.16) 50%, rgba(236, 72, 153, 0.1) 100%) !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.companion-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.companion-hero-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
}

.companion-hero-desc {
  font-size: 0.8125rem;
  color: var(--ink-soft, #64748b);
  line-height: 1.45;
  margin-bottom: 14px;
}

.btn-companion-invite {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
}

.btn-companion-invite:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.2);
}

.companion-search-wrap {
  margin-bottom: 16px;
}

.companion-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2, #f1f5f9);
  border: 1.5px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.companion-search-box:focus-within {
  border-color: var(--brand, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.companion-search-input {
  flex: 1;
  min-width: 0;
  min-height: 38px;
  border: none;
  background: transparent;
  color: var(--ink, #1e293b);
  font-size: 0.875rem;
  outline: none;
}

.companion-search-result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.companion-search-result-card:hover {
  border-color: var(--brand, #6366f1);
}

/* [#TASK-ES-234] iOS Safari PWA 설치 안내 및 실시간 알림 가이드 */
.ios-pwa-banner {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.ios-pwa-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ios-pwa-step-card {
  transition: transform 0.15s ease;
}
@media (max-width: 375px) {
  .ios-pwa-banner {
    padding: 12px 10px;
  }
  .ios-pwa-steps {
    gap: 4px;
  }
}

/* [#TASK-ES-235] 설정 탭 고급 설정 (외부 연동 & API) 기본 접힘 아코디언 */
.advanced-settings-accordion {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--card2);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}
.advanced-settings-accordion summary {
  transition: background-color 0.15s ease;
}
.advanced-settings-accordion summary:hover {
  background-color: var(--surface-2);
}
.advanced-settings-body {
  animation: fadein 0.2s ease;
}
@media (max-width: 375px) {
  .advanced-settings-accordion summary {
    padding: 10px 12px;
  }
  .advanced-settings-body {
    padding: 8px 10px 12px;
  }
}

/* [#TASK-ES-236] AI 목표 플랜 확인 및 단계 선택 프리뷰 바텀시트 */
.ga-plan-preview-sheet {
  padding: 4px 0 12px;
}
.ga-ms-card {
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.ga-ms-card.disabled {
  opacity: 0.45;
  background: var(--surface-2) !important;
}
.goal-freq-chips {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.goal-freq-chip {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  min-height: 36px;
  transition: all 0.15s ease;
}
.goal-freq-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* #TASK-ES-239: 목표탭 마일스톤·세부 할일 계층형 시인성 개선 및 접이식 관리 */
.ms-row .task-list {
  margin: 6px 0 6px 18px !important;
  padding-left: 10px !important;
  border-left: 2px solid var(--rule) !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-theme="focus-sanctuary"] .ms-row .task-list {
  border-left-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 0 8px 8px 0;
}

html[data-theme="white"] .ms-row .task-list {
  border-left-color: rgba(16, 185, 129, 0.45) !important;
  background: rgba(0, 0, 0, 0.015);
  border-radius: 0 8px 8px 0;
}

.ms-header-clickable {
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  min-height: 48px;
  transition: background 0.15s ease;
}

.ms-header-clickable:hover {
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="white"] .ms-header-clickable:hover {
  background: rgba(0, 0, 0, 0.03);
}

.ms-row input[data-msinput][readonly] {
  pointer-events: none;
  cursor: pointer;
}

.done-tasks-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  margin-top: 6px;
  margin-bottom: 4px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--brand, #10b981);
  font-weight: 700;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

html[data-theme="white"] .done-tasks-toggle-bar {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.4);
  color: #047857;
}

.done-tasks-toggle-bar:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--brand);
}

.done-tasks-toggle-bar:active {
  transform: scale(0.99);
}

.ms-mini-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

/* #TASK-ES-240: 일정탭 대표 안내멘트 시인성 개선 및 공간 효율적 간결 문구 재배치 */
#calHeadlineSentence {
  display: block !important;
  margin: 4px 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: normal;
}

#calHeadlineSentence b {
  color: var(--brand, #10B981) !important;
  font-weight: 800 !important;
}

html[data-theme="white"] #calHeadlineSentence b {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* #TASK-ES-242: 기록탭 대표 안내멘트 시인성 개선 및 공간 효율적 간결 문구 재배치 */
#recHeadlineSentence {
  display: block !important;
  margin: 4px 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: normal;
}
#recHeadlineSentence b {
  color: var(--brand, #10B981) !important;
  font-weight: 800 !important;
}
html[data-theme="white"] #recHeadlineSentence b {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* #TASK-ES-243: 소통탭 대표 안내멘트 시인성 개선 및 공간 효율적 간결 문구 재배치 */
#commHeadlineSentence {
  display: block !important;
  text-align: center !important;
  margin: 6px auto 10px auto !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: normal;
}
#commHeadlineSentence b {
  color: var(--brand, #10B981) !important;
  font-weight: 800 !important;
}
html[data-theme="white"] #commHeadlineSentence b {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* #TASK-ES-244: 설정탭 대표 안내멘트 시인성 개선 및 공간 효율적 간결 문구 재배치 */
#settingsHeadlineSentence {
  display: block !important;
  margin: 4px 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.02em;
  word-break: keep-all;
  white-space: normal;
}
#settingsHeadlineSentence b {
  color: var(--brand, #10B981) !important;
  font-weight: 800 !important;
}
html[data-theme="white"] #settingsHeadlineSentence b {
  color: #047857 !important;
  font-weight: 800 !important;
}

/* #TASK-ES-241: 4대 테마 주간 뷰 고대비 시인성 복원 */
html[data-theme="white"] .s-week-day-row {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .s-week-day-row:hover {
  background: #F1F5F9 !important;
}
html[data-theme="white"] .s-week-day-row.selected {
  background: rgba(5, 150, 105, 0.08) !important;
  border-color: #059669 !important;
  border-left: 3px solid #059669 !important;
}
html[data-theme="white"] .s-week-day-name {
  color: #64748B !important;
}
html[data-theme="white"] .s-week-day-num {
  color: #0F172A !important;
}
html[data-theme="white"] .s-week-count-chip {
  background: #E2E8F0 !important;
  color: #475569 !important;
}
html[data-theme="white"] .s-cal-item {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}
html[data-theme="white"] .s-week-day-detail {
  border-top-color: #E2E8F0 !important;
}

/* 도심 테마 주간 뷰 고대비 복원 */
html[data-theme="urban-city"] .s-week-day-row {
  background: rgba(19, 27, 46, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.18) !important;
}
html[data-theme="urban-city"] .s-week-day-row:hover {
  background: rgba(30, 41, 59, 0.9) !important;
}
html[data-theme="urban-city"] .s-week-day-row.selected {
  background: rgba(2, 132, 199, 0.18) !important;
  border-color: #0284C7 !important;
  border-left: 3px solid #0284C7 !important;
}
html[data-theme="urban-city"] .s-week-day-name {
  color: #94A3B8 !important;
}
html[data-theme="urban-city"] .s-week-day-num {
  color: #F8FAFC !important;
}
html[data-theme="urban-city"] .s-week-count-chip {
  background: rgba(56, 189, 248, 0.15) !important;
  color: #38BDF8 !important;
}
html[data-theme="urban-city"] .s-cal-item {
  background: rgba(19, 27, 46, 0.8) !important;
  border: 1px solid rgba(56, 189, 248, 0.22) !important;
}

/* 블랙 테마 주간 뷰 고대비 복원 */
html[data-theme="black"] .s-week-day-row {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[data-theme="black"] .s-week-day-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="black"] .s-week-day-row.selected {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: #10B981 !important;
  border-left: 3px solid #10B981 !important;
}
html[data-theme="black"] .s-week-day-num {
  color: #F8FAFC !important;
}
html[data-theme="black"] .s-week-count-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #A1A1AA !important;
}
html[data-theme="black"] .s-cal-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* #TASK-ES-245: 기록탭 샘플 데이터 1초 체험 후 원클릭 완전 삭제/초기화 기능 */
#recSamplePurgeBanner {
  margin: 4px 0 10px 0;
  transition: all 0.2s ease-in-out;
}
.rec-sample-purge-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 14px;
  padding: 10px 14px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.06);
  color: var(--ink) !important;
}
[data-theme="dark"] .rec-sample-purge-box,
[data-theme="black"] .rec-sample-purge-box,
[data-theme="focus-sanctuary"] .rec-sample-purge-box {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
}
[data-theme="dark"] .rec-sample-purge-box span,
[data-theme="black"] .rec-sample-purge-box span,
[data-theme="focus-sanctuary"] .rec-sample-purge-box span {
  color: #F8FAFC !important;
}
html[data-theme="white"] .rec-sample-purge-box {
  background: #FFF1F2 !important;
  border-color: #FDA4AF !important;
}
html[data-theme="white"] .rec-sample-purge-box span {
  color: #1E293B !important;
}

/* #TASK-ES-246: 소통탭 실시간 러닝메이트 레이더 영역 슬림화 및 접이식 콤팩트 카드 */
.s-peer-radar-card {
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  border-radius: 16px !important;
}
.s-peer-radar-card.collapsed {
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
}
.s-peer-radar-card.collapsed .s-radar-head {
  margin-bottom: 0 !important;
}
.s-radar-head {
  margin-bottom: 6px !important;
}
.s-radar-scroll {
  padding: 2px 2px 4px !important;
  gap: 10px !important;
}
.s-radar-item {
  width: 48px !important;
  gap: 2px !important;
}
.s-r-avatar-ring {
  width: 38px !important;
  height: 38px !important;
}
.s-r-avatar {
  font-size: 1.1rem !important;
}
.s-r-name {
  font-size: 0.68rem !important;
  max-width: 48px !important;
}
.s-r-goal {
  display: none !important;
}
.s-radar-toggle-btn {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

@media (max-width: 480px) {
  .s-peer-radar-card {
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
  }
  .s-radar-scroll {
    gap: 8px !important;
  }
}

/* #TASK-ES-247: 소통탭 상단 6대 서브탭 버튼 가로너비 균등 비율 및 글자 크기·패딩 반응형 최적화 */
html[data-theme] .comm-subtabs-clean.comm-subtabs-grid,
[data-theme] .comm-subtabs-clean.comm-subtabs-grid,
.comm-subtabs-clean.comm-subtabs-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}

html[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
.comm-subtabs-clean.comm-subtabs-grid .comm-subtab {
  min-height: 42px !important;
  padding: 0 6px !important;
  font-size: 0.8125rem !important; /* 13px */
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  border-radius: 10px !important;
  letter-spacing: -0.01em;
}

html[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab.active,
[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab.active,
.comm-subtabs-clean.comm-subtabs-grid .comm-subtab.active {
  font-weight: 700 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.45) !important;
  color: #10B981 !important;
}

@media (max-width: 480px) {
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  .comm-subtabs-clean.comm-subtabs-grid {
    gap: 5px !important;
    padding: 4px !important;
  }
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  .comm-subtabs-clean.comm-subtabs-grid .comm-subtab {
    font-size: 0.775rem !important;
    padding: 0 4px !important;
    min-height: 38px !important;
  }
}

@media (max-width: 375px) {
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  .comm-subtabs-clean.comm-subtabs-grid {
    gap: 4px !important;
    padding: 3px !important;
  }
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  .comm-subtabs-clean.comm-subtabs-grid .comm-subtab {
    font-size: 0.72rem !important;
    padding: 0 3px !important;
    min-height: 42px !important;
  }
}

@media (max-width: 360px) {
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid,
  .comm-subtabs-clean.comm-subtabs-grid {
    gap: 3px !important;
    padding: 2px !important;
  }
  html[data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  [data-theme] .comm-subtabs-clean.comm-subtabs-grid .comm-subtab,
  .comm-subtabs-clean.comm-subtabs-grid .comm-subtab {
    font-size: 0.69rem !important;
    padding: 0 2px !important;
    min-height: 38px !important;
  }
}

/* ============ [89] 데이터분석 프롬프트 백과사전 & 도움돼요 상호작용 스타일 ============ */
.prompt-encyclopedia-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.prompt-encyclopedia-card:hover {
  border-color: rgba(49, 130, 246, 0.35) !important;
}
.btn-like-prompt {
  font-size: 0.72rem !important;
  padding: 3px 9px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 24px !important;
  line-height: 1.2 !important;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  background: var(--card2, rgba(255,255,255,0.06)) !important;
  border: 1px solid var(--rule, rgba(255,255,255,0.14)) !important;
  color: var(--ink-soft, #94a3b8) !important;
}
.btn-like-prompt:active {
  transform: scale(0.93) !important;
}
.btn-like-prompt.liked {
  background: rgba(49, 130, 246, 0.16) !important;
  color: #3182f6 !important;
  border: 1px solid rgba(49, 130, 246, 0.45) !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 4px rgba(49, 130, 246, 0.2) !important;
}
.user-prompt-card {
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}
.user-prompt-card:hover {
  border-color: rgba(49, 130, 246, 0.3) !important;
}

/* ============ Social Crew Pacing Cold-Start Onboarding (#TASK-ES-228) ============ */
.crew-coldstart-box {
  display: flex;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed rgba(16, 185, 129, 0.32);
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.2s ease;
}
[data-theme="black"] .crew-coldstart-box,
[data-theme="dark"] .crew-coldstart-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
}
#btnCrewStartCheckin {
  flex-shrink: 0;
  background: #10b981;
  color: var(--chip-ink) !important;
  font-size: 0.78125rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
#btnCrewStartCheckin:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
#btnCrewStartCheckin:active {
  transform: scale(0.97);
}

/* ============ [#TASK-ES-249] 상황별 다이나믹 아바타 리액션 도감 (100% 무료 순수 기능) ============ */
.dynamic-avatar-album-modal {
  width: 100%;
  box-sizing: border-box;
}

.dynamic-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.dynamic-avatar-card {
  border-radius: 14px;
  background: var(--card, #ffffff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dynamic-avatar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.dynamic-avatar-card.equipped {
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .dynamic-avatar-card,
[data-theme="black"] .dynamic-avatar-card {
  background: var(--surface-2, #1e293b);
  border-color: var(--line, rgba(255, 255, 255, 0.1));
}

.dynamic-avatar-bubble-chip {
  line-height: 1.2;
}

#btnOpenDynamicAlbum {
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

#btnOpenDynamicAlbum:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#btnOpenDynamicAlbum:active {
  transform: scale(0.97);
}

@media (max-width: 480px) {
  .dynamic-avatar-grid {
    grid-template-columns: 1fr;
  }
}

/* [#TASK-ES-227] [97] STT 음성 마이크 권한 거부 안내 카드 375px 모바일 반응형 패딩 */
@media (max-width: 400px) {
  .mic-perm-card {
    padding: 14px 10px !important;
  }
  .mic-perm-3cut-gallery {
    gap: 4px !important;
  }
}

/* [#TASK-ES-267] 아바타 10개 관리 인벤토리 & 성장 성향 스타일 */
.avatar-10slots-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 4px 8px 4px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.empty-avatar-slot:hover {
  border-color: var(--primary) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}
.empty-avatar-slot:active {
  transform: scale(0.96);
}
.avatar-growth-chip:hover {
  background: var(--surface-3) !important;
  border-color: var(--primary) !important;
}
.avatar-growth-chip:active {
  transform: scale(0.95);
}

/* #TASK-ES-269 기간 설정 맞춤형 아바타 생성 결합 및 설정창 확대 스타일 */
.avatar-period-chip {
  transition: all 0.15s ease;
}
.avatar-period-chip:hover {
  border-color: var(--emerald) !important;
  background: var(--surface-2) !important;
}
.avatar-period-chip:active {
  transform: scale(0.96);
}
.avatar-period-guide {
  word-break: keep-all;
  letter-spacing: -0.2px;
}
@media (max-width: 480px) {
  #avatarPeriodInputs input[type="date"] {
    font-size: 11px !important;
    padding: 6px 4px !important;
  }
  .avatar-period-guide {
    font-size: 0.72rem !important;
  }
}

/* [#TASK-ES-270] 목표 탭 상단 루틴 탭 및 요일별 칩 필터 바 스타일 */
.routine-day-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.routine-day-bar::-webkit-scrollbar {
  display: none;
}
.routine-day-chip {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.routine-day-chip:hover {
  filter: brightness(1.05);
}
.routine-day-chip.active {
  background: var(--brand) !important;
  color: var(--chip-ink) !important;
  border-color: var(--brand) !important;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}
@media (max-width: 480px) {
  .routine-day-chip {
    padding: 6px 11px;
    font-size: 0.78125rem;
  }
}

/* [#TASK-ES-273] 각 탭 활용법 실제 우수 사용사례 (Best Practice Showcase) 카드 스타일 */
.tab-guide-showcase-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-sizing: border-box;
  width: 100%;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
  animation: fadeInShowcase 0.25s ease-out;
}
@keyframes fadeInShowcase {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.showcase-header {
  margin-bottom: 10px;
}
.showcase-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.14);
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.showcase-persona-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.showcase-avatar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}
.showcase-persona-meta {
  flex: 1;
  min-width: 0;
}
.showcase-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink, #1e293b);
  display: flex;
  align-items: center;
  gap: 6px;
}
.showcase-rank-tag {
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
}
.showcase-role {
  font-size: 11px;
  color: var(--ink-soft, #64748b);
  margin-top: 1px;
}
.showcase-tagline {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary, #4338ca);
  margin: 6px 0 0 0;
  line-height: 1.45;
}
.showcase-mini-preview {
  background: var(--card, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}
.showcase-story-box {
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid #6366f1;
  border-radius: 0 8px 8px 0;
  padding: 8px 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.showcase-story-title {
  font-weight: 800;
  color: #4338ca;
  margin-bottom: 4px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.showcase-story-text {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink, #334155);
}
.showcase-tips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.showcase-tip-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft, #475569);
  border: 1px solid rgba(99, 102, 241, 0.15);
}
@media (max-width: 375px) {
  .tab-guide-showcase-card {
    padding: 10px 12px;
    margin-bottom: 12px;
  }
  .showcase-tagline {
    font-size: 12px;
  }
  .showcase-mini-preview {
    padding: 8px 10px;
  }
  .showcase-avatar-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ==========================================================================
   #TASK-ES-274 목표탭 참고자료 첨부 및 인라인 칩 반응형 고도화
   ========================================================================== */
.att-chips-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}

.att-chip-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.6875rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  color: var(--ink, #f8fafc);
  transition: all 0.15s ease;
  user-select: none;
}

.att-chip-mini:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.att-chip-mini:active {
  transform: scale(0.96);
}

.att-chip-mini.type-video {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #f87171;
}

.att-chip-mini.type-image {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.att-chip-mini.type-text {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.att-chip-mini.type-link {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: #60a5fa;
}

.att-chip-mini-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.att-chip-mini-text {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.compact-att-btn {
  padding: 1px 5px !important;
  font-size: 0.625rem !important;
  min-height: 18px !important;
  line-height: 1.2 !important;
  border-radius: 4px !important;
}

@media (max-width: 480px) {
  .att-chip-mini-text {
    max-width: 60px;
  }
}

/* =========================================================================
   [#TASK-ES-275 / 노션 23] 컴포넌트 모듈화 허브 UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-23-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-modular-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-modular-icon {
  font-size: 18px;
  line-height: 1;
}

.og-modular-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-modular-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-modular-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-23-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-23-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-23-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-23-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-276 / 노션 24] 측정지표 분석할 항목별 차등 지정 및 정밀화·고도화 UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-24-container {
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-metrics-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-metrics-icon {
  font-size: 18px;
  line-height: 1;
}

.og-metrics-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-metrics-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-metrics-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-24-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-24-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-24-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-24-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-277 / 노션 25] 소통창 화면정리 (피드·소통 UI 시인성 및 피로도 개선) UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-25-container {
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-comm-cleanup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-comm-cleanup-icon {
  font-size: 18px;
  line-height: 1;
}

.og-comm-cleanup-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-comm-cleanup-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-comm-cleanup-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-25-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-25-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-25-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-25-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-278 / 노션 26] 앱 진입 시 화면 절반 크기 아바타 인사 팝업 및 시간대별 멘트·설정창 커스텀 구현 UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-26-container {
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-avatar-welcome-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-avatar-welcome-icon {
  font-size: 18px;
  line-height: 1;
}

.og-avatar-welcome-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-avatar-welcome-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-avatar-welcome-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-26-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-26-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-26-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-26-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-279 / 노션 28] DM창 타 유저 클릭 시 키보드 자동 팝업 방지 및 텍스트창 터치 시 오픈으로 변경 UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-28-container {
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-dm-autofocus-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-dm-autofocus-icon {
  font-size: 18px;
  line-height: 1;
}

.og-dm-autofocus-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-dm-autofocus-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-dm-autofocus-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-28-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-28-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-28-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-28-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-280 / 노션 29] 일정 사진 일기장 안내창 우측 상단 닫기(X) 버튼 추가 및 영구 숨김 처리 UI/UX 및 375px 모바일 반응형
   ========================================================================= */
#og-task-29-container {
  margin: 10px 0 14px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

/* [#TASK-ES-130] 일정 탭 사진 일기장 안내창 및 제어 허브 영구 완전 은폐 */
#screen-calendar #og-task-29-container,
#screen-calendar #calSubGuideBanner,
#screen-calendar .cal-sub-guide,
#screen-calendar .og-diary-guide-card,
#screen-calendar[data-cal-mode] .cal-sub-guide,
#screen-calendar[data-cal-mode="month"] .cal-sub-guide,
#screen-calendar[data-cal-mode="week"] .cal-sub-guide,
#og-task-29-container,
#calSubGuideBanner,
.cal-sub-guide,
.og-diary-guide-card {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.og-diary-guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-diary-guide-icon {
  font-size: 18px;
  line-height: 1;
}

.og-diary-guide-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-diary-guide-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-diary-guide-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-29-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-29-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-29-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-29-action-btn {
    width: 100%;
  }
}

/* ==========================================================================
   #TASK-ES-281: 소통탭 게시하기 버튼 먹통 오류 수정 및 정상 동작 복구
   ========================================================================== */
#og-task-30-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--bg-card, var(--card, #ffffff));
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-comm-post-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-comm-post-icon {
  font-size: 18px;
  line-height: 1;
}

.og-comm-post-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-comm-post-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-comm-post-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-30-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-30-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-30-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-30-action-btn {
    width: 100%;
  }
}

#og-task-31-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--bg-card, var(--card, #ffffff));
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-home-layout-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-home-layout-icon {
  font-size: 18px;
  line-height: 1;
}

.og-home-layout-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-home-layout-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-home-layout-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-31-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-31-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-31-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-31-action-btn {
    width: 100%;
  }
}

/* ==========================================================================
   #TASK-ES-283: 홈 및 전 탭 우측 상단 아바타 아이콘 크기 확대 (애정도·시인성 강화)
   ========================================================================== */
#og-task-32-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--bg-card, var(--card, #ffffff));
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-avatar-enlarge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-avatar-enlarge-icon {
  font-size: 18px;
  line-height: 1;
}

.og-avatar-enlarge-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-avatar-enlarge-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-avatar-enlarge-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-32-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-32-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-32-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-32-action-btn {
    width: 100%;
  }
}

/* ==========================================================================
   #TASK-ES-284: 오늘의 퀘스트 미션 변경 ('핵심 마일스톤 1개' -> '할일 1개' 실행 및 10EXP 보상 조정)
   ========================================================================== */
#og-task-33-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--bg-card, var(--card, #ffffff));
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

.og-quest-task-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.og-quest-task-icon {
  font-size: 18px;
  line-height: 1;
}

.og-quest-task-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main, var(--ink, #111827));
}

.og-quest-task-desc {
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-sub, var(--ink-soft, #4b5563));
}

.og-quest-task-action-row {
  display: flex;
  justify-content: flex-end;
}

#og-task-33-action-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: var(--primary-color, var(--brand, #3b82f6));
  color: var(--chip-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-33-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-33-container {
    padding: 10px 12px;
    margin-bottom: 8px;
  }
  #og-task-33-action-btn {
    width: 100%;
  }
}

/* 🧹 [TASK-ES-285 / 노션 34] 홈 목표현황판 불필요 지표(진행중 목표·평균달성률·병행분야) 삭제 및 인터페이스 최적화 */
#og-task-34-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-34-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-34-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-34-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-34-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 📸 [TASK-ES-286 / 노션 35] 갓생 스토리카드 다각화(1:1·3:4·9:16 비율 및 항목 선택) 및 피드 즉시 게시 기능 구현 */
#og-task-35-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-35-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-35-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-35-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-35-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 👥 [TASK-ES-287 / 노션 37] 동반자 탭 내 AI 동반자 전면 제거 (실 사용자 중심 전환) */
#og-task-37-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-37-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-37-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-37-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-37-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* ⚙️ [TASK-ES-288 / 노션 38] 설정창 전면 개편 (기능 그룹화 및 인터페이스 간소화·압축) */
#og-task-38-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-38-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-38-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-38-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-38-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 👥 [TASK-ES-289 / 노션 39] 마니또 AI 동반자 1명 제한 및 실 유저 20명 초과 시 AI 동반자 전원 자동 삭제 */
#og-task-39-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-39-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-39-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-39-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-39-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🖼️ [TASK-ES-290 / 노션 40] 일정 배경사진 최대 2장 업로드 및 2장 등록 시 상하 반반 분할 레이아웃 적용 */
#og-task-40-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-40-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-40-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.schedule-bg-split-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 140px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.schedule-bg-split-item {
  width: 100%;
  height: 50%;
  object-fit: cover;
  flex: 1 1 50%;
}

@media (max-width: 375px) {
  #og-task-40-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-40-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🎭 [TASK-ES-291 / 노션 41] 레벨업 연출 멘트("진짜 잘했다! 내자신! 내 뒤의 배경좀 바꿔줘라 지겹다!") 적용 */
#og-task-41-container {
  background: var(--bg-surface, var(--card, #1e222b));
  border: 1px solid var(--border-subtle, var(--rule, rgba(255, 255, 255, 0.08)));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-41-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-41-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.avatar-levelup-dialogue-bubble {
  position: relative;
  background: var(--surface-2, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #ffffff);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 375px) {
  #og-task-41-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-41-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-292 / 노션 42] 경험치 획득 시 아바타 축하 팝업 연출("잘했다! 내 자신!") 스타일 */
#og-task-42-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-42-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-42-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.avatar-celebration-bubble {
  position: relative;
  background: var(--surface-2, rgba(255, 255, 255, 0.1));
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink, #ffffff);
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 375px) {
  #og-task-42-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-42-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-293 / 노션 43] 성취통계 측정지표 다중선택 필터링 스타일 */
#og-task-43-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-43-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-43-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.metric-multiselect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.metric-multiselect-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2, rgba(255, 255, 255, 0.08));
  color: var(--ink-secondary, #94a3b8);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  cursor: pointer;
  transition: all 0.15s ease;
}

.metric-multiselect-chip.active {
  background: var(--primary-subtle, rgba(59, 130, 246, 0.2));
  color: var(--primary-text, #60a5fa);
  border-color: var(--primary, #3b82f6);
  font-weight: 700;
}

@media (max-width: 375px) {
  #og-task-43-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-43-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-294 / 노션 44] 스톱워치 실시간 구간별 활동기록 팝업·상세 연동 및 초기화 2중 확인 안전장치 스타일 */
#og-task-44-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-44-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-44-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-44-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-44-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-295 / 노션 45] 성취통계 데이터 관리 옆 접기토글 작동 안함 오류 수정 스타일 */
#og-task-45-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#og-task-45-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-45-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-45-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-45-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-296 / 노션 46] 팀 연계 개인목표 실제 우수 사용사례 예시 이미지 배치 및 생성 시 자동 숨김 처리 스타일 */
#og-task-46-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#teamLinkedGoalsExampleCard {
  background: var(--surface-2, #334155);
  border: 1px dashed var(--primary, #3b82f6);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

#teamLinkedGoalsExampleCard .example-card-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary, #3b82f6);
  margin-bottom: 4px;
}

#teamLinkedGoalsExampleCard .example-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-high, #f8fafc);
  margin-bottom: 4px;
}

#teamLinkedGoalsExampleCard .example-card-meta {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
}

#og-task-46-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-46-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-46-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-46-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* 🌟 [TASK-ES-297 / 노션 47] 시간기록 모달창 세부설명 간소화('시간별로 세부 내용을 작성할 수 있어요') 및 창 크기 축소 스타일 */
#og-task-47-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#timeRecordModalDesc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.time-record-modal-compact {
  max-width: 380px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
}

#og-task-47-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-47-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-47-container {
    padding: 10px 12px;
    margin-bottom: 6px; /* 모바일 여백 압축 */
  }
  #og-task-47-action-btn {
    width: 100%; /* 한 손 조작 편의 극대화 */
  }
}

/* ==========================================================================
   #TASK-ES-298: 홈 경험치창·각 탭 우측상단 프로필·설정창 아바타 아이콘 크기 일괄 확대
   ========================================================================== */
#og-task-48-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#avatarEnlargeAllDesc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#og-task-48-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-48-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-48-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-48-action-btn {
    width: 100%;
  }
}

/* ==========================================================================
   🌟 [TASK-ES-299 / 노션 49] 팀 목표 댓글 작성 및 전송 기능 먹통 오류 수정
   ========================================================================== */
#og-task-49-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#teamGoalCommentDesc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#og-task-49-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-49-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.team-comments-block {
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
}

.team-comments-block .dm-input-row {
  margin-top: 8px;
  width: 100%;
  box-sizing: border-box;
}

.team-comments-block [data-cmtsend] {
  min-height: 44px; /* 헌법 터치 타겟 규격 */
  box-sizing: border-box;
}

@media (max-width: 375px) {
  #og-task-49-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-49-action-btn {
    width: 100%;
  }
  .team-comments-block {
    overflow-x: hidden;
  }
}

/* ==========================================================================
   🌟 [TASK-ES-300 / 노션 50] 설정창 진입 시 모든 설정 섹션 기본 접힘(Collapsed) 상태 적용
   ========================================================================== */
#og-task-50-container {
  display: block;
  background: var(--surface-1, #1e293b);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-sizing: border-box;
  width: 100%;
}

#settingsCollapseDesc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#og-task-50-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-50-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

.settings-group-accordion {
  transition: all 0.2s ease;
}

.settings-group-accordion:not([open]) summary {
  opacity: 0.95;
}

@media (max-width: 375px) {
  #og-task-50-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-50-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-301 / 노션 51] 피드 게시 모달 내 '미리보기' 버튼 추가 및 피드 렌더링 사전 확인 기능 구현
   ========================================================================= */
#og-task-51-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

#og-task-51-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-51-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

#sharePreviewSlot {
  box-sizing: border-box;
  width: 100%;
  animation: fadeInPreview 0.2s ease-in-out;
}

@keyframes fadeInPreview {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

#sharePreviewBtn {
  min-height: 44px;
  box-sizing: border-box;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

#sharePreviewBtn:hover {
  filter: brightness(1.05);
}

#sharePreviewBtn:active {
  transform: scale(0.98);
}

@media (max-width: 375px) {
  #og-task-51-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-51-action-btn {
    width: 100%;
  }
}

/* =========================================================================
   [#TASK-ES-302 / 노션 52] 팀 목표 탭 최초 진입 시 접을 수 있는 모든 아코디언 요소 기본 접힘 처리
   ========================================================================= */
#og-task-52-container {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--surface-color, var(--card-bg, #ffffff));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-x: hidden;
}

#teamGoalsCollapseDesc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#og-task-52-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-52-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

@media (max-width: 375px) {
  #og-task-52-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-52-action-btn {
    width: 100%;
  }
}

/* ========================================================
   [TASK-ES-303 / 노션 53] 목표탭 '템플릿백과사전' 전체화면 팝업 및 상호작용
   ======================================================== */
#og-task-53-container {
  display: block;
  box-sizing: border-box;
  background: var(--card, #ffffff);
  border: 1px solid var(--rule, #e2e8f0);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

#og-task-53-container .og-feature-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

#og-task-53-container .og-feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  margin: 0;
}

#og-task-53-container .og-status-badge {
  font-size: 11px;
  padding: 2px 6px;
  background: var(--badge-bg, rgba(16, 185, 129, 0.1));
  color: var(--badge-color, #10b981);
  border-radius: 4px;
  font-weight: 600;
}

#og-task-53-container .og-feature-desc {
  font-size: 12px;
  color: var(--ink-soft, #64748b);
  margin-top: 4px;
  margin-bottom: 12px;
  line-height: 1.4;
}

#og-task-53-action-btn {
  min-width: 44px;
  min-height: 44px; /* 헌법 제7조 제8항 최소 터치 타겟 44px */
  padding: 8px 16px;
  background: var(--primary, var(--brand, #3b82f6));
  color: var(--chip-ink);
  border: none;
  border-radius: 8px;
  font-size: 13px; /* 폰트 최소 12px 고대비 */
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

#og-task-53-action-btn:active {
  transform: scale(0.97);
  background: var(--primary-hover, #2563eb);
}

#btnGoalTemplateEncyclopedia {
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  box-sizing: border-box;
  touch-action: manipulation;
  cursor: pointer;
}

.template-encyclopedia-fullscreen-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100005;
  box-sizing: border-box;
}

.template-encyclopedia-fullscreen-sheet {
  background: var(--card, #ffffff);
  color: var(--ink, #1e293b);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .template-encyclopedia-fullscreen-sheet {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
  }
}

@media (max-width: 375px) {
  #og-task-53-container {
    padding: 10px 12px;
    margin-bottom: 6px;
  }
  #og-task-53-action-btn {
    width: 100%;
  }
  #btnGoalTemplateEncyclopedia {
    min-height: 44px; /* 모바일 터치 타겟 44px */
    padding: 6px 10px;
  }
}

/* ========================================================
   [TASK-ES-304] 홈화면 상단 누적 배선용 테스트 카드(og-task-*) 23종 일괄 화면 은폐
   ======================================================== */
#ogTaskWireSlot,
.og-feature-card,
.og-avatar-welcome-card,
.og-home-layout-card,
.og-avatar-enlarge-card,
.og-quest-task-card {
  display: none !important;
}

/* ========================================================
   [TASK-ES-305] 노션 [54] 루틴 상세 모달 및 편집 기능 (목표탭 벤치마킹)
   ======================================================== */
.routine-detail-modal-box {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}

.routine-cat-chip,
.add-routine-cat-chip {
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.routine-cat-badge {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  line-height: 1.2;
}

.routine-linked-goal-badge {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

@media (max-width: 375px) {
  .routine-detail-modal-box {
    padding: 0;
  }
  .routine-cat-chip,
  .add-routine-cat-chip {
    padding: 4px 8px !important;
    font-size: .75rem !important;
  }
  .r-detail-day-btn,
  .r-day-btn {
    min-height: 38px;
  }
}

/* ==========================================================================
   TASK-ES-307: 성취통계 다중 선택된 측정지표 데이터 그래프 동시 렌더링 스타일
   ========================================================================== */
.trend-metrics-selector-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 6px;
  flex-wrap: wrap;
}

.trend-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 14px;
  font-size: 0.75rem;
  cursor: pointer;
  min-height: 32px;
  transition: all 0.15s ease;
  user-select: none;
}

.trend-metric-chip:hover {
  filter: brightness(1.1);
}

.trend-legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--ink-faint, rgba(255, 255, 255, 0.6));
  flex-wrap: wrap;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-multi-svg {
  width: 100%;
  height: 76px;
  display: block;
  margin: 4px 0 6px;
  overflow: visible;
}

.trend-summary-badges-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}

.trend-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

@media (max-width: 375px) {
  .trend-metrics-selector-row {
    gap: 4px;
    margin: 6px 0 4px;
  }
  .trend-metric-chip {
    padding: 3px 7px !important;
    font-size: 0.7rem !important;
    min-height: 28px !important;
  }
  .trend-legend-row {
    gap: 6px !important;
    font-size: 0.68rem !important;
  }
  .trend-summary-badge {
    font-size: 0.7rem !important;
    padding: 1px 5px !important;
  }
}

/* ==========================================================================
   TASK-ES-308: 소통탭 게시 시 공유 대상(목표·기록·AI피드백) 선택형 UI 스타일
   ========================================================================== */
.feed-target-chips-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-target-chips-bar::-webkit-scrollbar {
  display: none;
}

.feed-target-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.15));
  background: var(--card2, rgba(255, 255, 255, 0.05));
  color: var(--ink, #ffffff);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 32px;
}

.feed-target-chip:hover {
  border-color: var(--primary, #6366f1);
  color: var(--primary, #6366f1);
}

.feed-target-chip.active {
  background: var(--primary, #6366f1);
  color: #ffffff;
  border-color: var(--primary, #6366f1);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.25);
}

@media (max-width: 375px) {
  .feed-target-chips-bar {
    gap: 4px;
    padding: 2px 1px 6px 1px;
    margin-bottom: 6px;
  }
  .feed-target-chip {
    padding: 5px 10px !important;
    font-size: 0.74rem !important;
    min-height: 30px !important;
  }
}

/* ==========================================================================
   TASK-ES-309: 소통 피드 게시하기 내 실천 사진 첨부 드롭존 및 프리뷰 카드 스타일
   ========================================================================== */
.share-photo-uploader-box {
  width: 100%;
}

.share-photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--rule, rgba(255, 255, 255, 0.2));
  border-radius: 12px;
  padding: 16px 12px;
  background: var(--card2, rgba(255, 255, 255, 0.04));
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.share-photo-dropzone:hover,
.share-photo-dropzone.drag-over {
  border-color: var(--primary, #6366f1);
  background: rgba(99, 102, 241, 0.06);
}

.share-photo-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 12px;
  background: var(--card2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.15));
  padding: 12px;
  position: relative;
}

.share-photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(4px);
}

.share-photo-remove-btn:hover {
  background: rgba(239, 68, 68, 0.85);
}

@media (max-width: 375px) {
  .share-photo-dropzone {
    padding: 12px 8px !important;
  }
  .share-photo-remove-btn {
    width: 28px !important;
    height: 28px !important;
  }
}

/* ============ [#TASK-ES-310] 소통 피드 게시하기 카테고리 가로 스크롤 및 375px 반응형 ============ */
#shareCatPicker {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

#shareCatPicker::-webkit-scrollbar {
  display: none !important;
}

#shareCatPicker .feed-filter-chip {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
}

@media (max-width: 375px) {
  #shareCatPicker {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  #shareCatPicker .feed-filter-chip {
    font-size: 0.78rem !important;
    padding: 6px 10px !important;
    min-height: 40px !important;
  }
}


/* =========================================================================
 * [#TASK-ES-331] 전 탭 UI/UX 전면개편 프로덕션 정본 스타일 (74개 전수 항목)
 * ========================================================================= */

/* 4대 테마 변수 통일 */
:root, html[data-theme="focus-sanctuary"] {
  --s-bg: #0B0F17;
  --s-card: #131A26;
  --s-card2: #1A2332;
  --s-surface: #1E293B;
  --s-surface2: #243044;
  --s-rule: #2D3B4F;
  --s-ink: #F1F5F9;
  --s-ink-soft: #94A3B8;
  --s-ink-faint: #64748B;
  --s-brand: #10B981;
  --s-brand-soft: rgba(16, 185, 129, 0.15);
  --s-accent: #3B82F6;
  --s-gold: #F59E0B;
  --s-danger: #EF4444;
  --s-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

html[data-theme="black"] {
  --s-bg: #000000;
  --s-card: #0A0A0A;
  --s-card2: #141414;
  --s-surface: #1A1A1A;
  --s-surface2: #222222;
  --s-rule: #2A2A2A;
  --s-ink: #FFFFFF;
  --s-ink-soft: #A3A3A3;
  --s-ink-faint: #737373;
  --s-brand: #10B981;
  --s-brand-soft: rgba(16, 185, 129, 0.2);
  --s-accent: #38BDF8;
  --s-gold: #FBBF24;
  --s-danger: #F87171;
  --s-shadow: 0 8px 24px rgba(0,0,0,0.8);
}

html[data-theme="white"] {
  --s-bg: #F8FAFC;
  --s-card: #FFFFFF;
  --s-card2: #F1F5F9;
  --s-surface: #E2E8F0;
  --s-surface2: #CBD5E1;
  --s-rule: #E2E8F0;
  --s-ink: #0F172A;
  --s-ink-soft: #475569;
  --s-ink-faint: #94A3B8;
  --s-brand: #059669;
  --s-brand-soft: rgba(5, 150, 105, 0.12);
  --s-accent: #2563EB;
  --s-gold: #D97706;
  --s-danger: #DC2626;
  --s-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

html[data-theme="urban-city"] {
  --s-bg: #0B0F19;
  --s-card: #111827;
  --s-card2: #1F2937;
  --s-surface: #283548;
  --s-surface2: #374151;
  --s-rule: #1E293B;
  --s-ink: #F9FAFB;
  --s-ink-soft: #9CA3AF;
  --s-ink-faint: #6B7280;
  --s-brand: #0EA5E9;
  --s-brand-soft: rgba(14, 165, 233, 0.15);
  --s-accent: #818CF8;
  --s-gold: #F59E0B;
  --s-danger: #F43F5E;
  --s-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* 포커스 성소 공통 모던 글래스모피즘 카드 */
.blueprint-card {
  background: var(--card, #131A26);
  border: 1px solid var(--rule, #2D3B4F);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.blueprint-card:active {
  transform: scale(0.995);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink, #F1F5F9);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 홈 탭 3초 체크인 원카드 (.home-hero-card) */
.home-hero-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(19, 26, 38, 0.95) 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.12);
  position: relative;
  overflow: hidden;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.18);
  color: var(--brand, #10B981);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.home-hero-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--ink, #F1F5F9);
  margin-bottom: 4px;
  line-height: 1.35;
}

.home-hero-sub {
  font-size: 0.8rem;
  color: var(--ink-soft, #94A3B8);
  margin-bottom: 12px;
}

.home-hero-prog-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.home-hero-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-hero-checkin-btn {
  width: 100%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 13px;
  padding: 13px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.home-hero-checkin-btn:active {
  transform: scale(0.975);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* 7열 5행 완전 월달력 그리드 */
.full-month-calendar {
  margin-top: 6px;
}

.cal-weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-faint, #64748B);
  padding: 2px 0;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.month-day-cell {
  min-height: 48px;
  max-height: 56px;
  background: var(--surface, #1E293B);
  border: 1px solid var(--rule, #2D3B4F);
  border-radius: 9px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
}

.month-day-cell:active {
  transform: scale(0.96);
}

.month-day-cell.other-month {
  opacity: 0.35;
  background: transparent;
  border-color: transparent;
}

.month-day-cell.today {
  border: 1.5px solid var(--brand, #10B981);
  background: rgba(16, 185, 129, 0.08);
}

.month-day-cell.selected {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--brand, #10B981);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.day-num {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink, #F1F5F9);
  line-height: 1;
}

.day-badge-dot {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dot-check {
  font-size: 0.65rem;
  color: var(--brand, #10B981);
  font-weight: 900;
}

.photo-thumb-indicator {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, #10B981, #3B82F6);
  display: inline-block;
}

/* 서브탭 칩 세그먼트 */
.subtabs-segment-bar {
  display: flex;
  background: var(--card, #131A26);
  border: 1px solid var(--rule, #2D3B4F);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
  gap: 4px;
}

.subtab-segment-btn {
  flex: 1;
  text-align: center;
  padding: 7px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft, #94A3B8);
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.subtab-segment-btn.active {
  background: var(--brand, #10B981);
  color: var(--chip-ink);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* 카테고리 칩 스트립 */
.category-scroll-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  margin-bottom: 10px;
}

.category-scroll-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  background: var(--card, #131A26);
  border: 1px solid var(--rule, #2D3B4F);
  color: var(--ink-soft, #94A3B8);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-chip.active {
  background: var(--brand, #10B981);
  color: var(--chip-ink);
  border-color: var(--brand, #10B981);
}

/* 소통 탭 구형 허브 박스 시인성 강화 오버라이드 */
.comm-hub-slim-box {
  background: var(--card, #131A26) !important;
  border: 1px solid var(--rule, #2D3B4F) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  color: var(--ink, #F1F5F9) !important;
}

.comm-hub-slim-box h3,
.comm-hub-slim-box p,
.comm-hub-slim-box div {
  color: var(--ink, #F1F5F9) !important;
}

.comm-hub-slim-box p {
  color: var(--ink-soft, #94A3B8) !important;
  font-size: 0.78rem !important;
}

/* 4대 테마 설정 그리드 */
.theme-grid-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.theme-grid-chip {
  background: var(--surface, #1E293B);
  border: 1.5px solid var(--rule, #2D3B4F);
  border-radius: 11px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-grid-chip.active {
  border-color: var(--brand, #10B981);
  background: rgba(16, 185, 129, 0.12);
}

.theme-color-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
}

/* 12ms 햅틱 시각 피드백 클래스 */
.haptic-pulse {
  animation: hapticPulse 0.12s ease-out;
}

@keyframes hapticPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* =========================================================================
 * 74개 세부 항목 UI/UX 극단적 단순화 (Minimalist Clarity) 스타일
 * ========================================================================= */

/* 1. 홈 탭 단일 몰입 카드 여백 및 폰트 위계 */
.home-hero-card {
  padding: 16px 18px !important;
  margin-bottom: 12px !important;
  border-radius: 18px !important;
}

.home-head-row {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

/* 2. 소통 탭 미니멀 IA & 3단 제어바 슬림화 */
#commHeroCard {
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  border-radius: 12px !important;
}

#commHeroCard .toss-community-hero-stats {
  display: flex !important;
  justify-content: space-around !important;
  margin-top: 4px !important;
  padding: 4px 0 !important;
}

#commHeroCard .stat-val {
  font-size: 1.05rem !important;
}

.comm-subtabs-grid {
  display: flex !important;
  overflow-x: auto !important;
  gap: 4px !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
  margin-bottom: 8px !important;
}

.comm-subtabs-grid::-webkit-scrollbar {
  display: none !important;
}

.comm-subtab-btn {
  flex-shrink: 0 !important;
  padding: 6px 12px !important;
  font-size: 0.78rem !important;
  border-radius: 9px !important;
}

.comm-feed-filter-bar {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.comm-filter-btn {
  padding: 4px 10px !important;
  font-size: 0.74rem !important;
  border-radius: 999px !important;
}

.comm-mate-sub-bar {
  font-size: 0.72rem !important;
  color: var(--s-ink-soft, #94A3B8) !important;
  padding: 2px 4px !important;
  margin-bottom: 6px !important;
}

/* 3. 목표 탭 액션 툴바 슬림화 */
.goals-action-bar {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
  scrollbar-width: none !important;
  margin-bottom: 8px !important;
}

.goals-action-bar::-webkit-scrollbar {
  display: none !important;
}

.goals-action-bar button {
  flex-shrink: 0 !important;
  padding: 5px 9px !important;
  font-size: 0.75rem !important;
  border-radius: 8px !important;
}

/* 4. 설정 탭 애플 iOS 인셋 그룹 리스트 */
.settings-accordion-item {
  border-radius: 12px !important;
  margin-bottom: 8px !important;
  background: var(--card, #131A26) !important;
  border: 1px solid var(--rule, #2D3B4F) !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
}

.settings-accordion-head {
  padding: 11px 14px !important;
}

/* 5. 캘린더 탭 셀 및 리스트 일체형 뷰 */
.s-month-cal-card {
  padding: 12px 14px !important;
}

.s-cal-day-cell {
  min-height: 48px !important;
  max-height: 52px !important;
}

.s-cal-day-items-list .quest-item {
  padding: 8px 10px !important;
  margin-bottom: 6px !important;
}

/* 4대 테마 원클릭 설정 1줄 4분할 슬림화 */
.theme-grid-picker {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

.theme-grid-chip {
  padding: 8px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 4px !important;
  border-radius: 10px !important;
}

.theme-grid-chip .theme-color-dot {
  width: 14px !important;
  height: 14px !important;
}

.theme-grid-chip div div:first-child {
  font-size: 0.74rem !important;
  font-weight: 800 !important;
}

.theme-grid-chip div div:last-child {
  display: none !important;
}


/* =========================================================================
 * 6대 전 탭 중복 전면 소탕 및 목적·기대 효과 직관화 (#TASK-ES-331)
 * ========================================================================= */

/* 1. 홈 탭: 상단 몰입 카드와 중복되는 대표 목표의 하단 복제 카드 소탕 */
#homeGoalList > .toss-home-focus-card {
  display: none !important;
}

/* 2. 일정 탭: 달력 카드 내부 인라인 리스트와 중복되는 바깥 calDayDetail 카드 소탕 */
#screen-calendar #calDayDetail {
  display: none !important;
}

/* 3. 기록 탭: 히트맵 액션과 중복되는 중간 요약 카드의 복제 버튼 영역 정돈 */
#recHeroCard > div:last-child {
  display: none !important;
}

/* 4. 소통 탭: 0건 요약 박스를 숨겨 동료들의 실시간 피드를 최상단 전진 배치 */
#commHeroCard {
  display: none !important;
}

/* 5. 목표 탭: 상단 등반 로드맵과 중복되는 하단 toss-goal-hero-card 중복 헤더 카드 평탄화 */
#goalDetailBody > .toss-goal-hero-card {
  display: none !important;
}

/* 6. 일정 탭: 달력 선택 바 텍스트 간결화 */
.s-cal-sel-task {
  font-size: 0.76rem !important;
  color: var(--s-ink-soft, #94A3B8) !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   #TASK-UIUX-PHASE3-HOME-COCKPIT: 홈 1초 조망 ↔ 무저항 체크인 콕핏 8대 과업
   ========================================================================== */

/* 1. [#UIUX-32] 어제/오늘/내일 1초 전환 날짜 네비게이터 칩 */
.home-date-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 4px 0 12px 0 !important;
  width: 100% !important;
}
.home-date-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 6px 14px !important;
  min-height: 36px !important;
  border-radius: 18px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  background: var(--card2, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  cursor: pointer !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.home-date-chip:active {
  transform: scale(0.96) !important;
}
.home-date-chip.active {
  background: rgba(49, 130, 246, 0.15) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-weight: 800 !important;
}

/* 2. [#UIUX-30] 홈 히트맵 14px 스케일업 & 4주 콤팩트 뷰 */
.home-heatmap-4w-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.home-heatmap-4w-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 5px !important;
  justify-items: center !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.heatmap-cell-14 {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
}
.heatmap-cell-14:hover,
.heatmap-cell-14:active {
  transform: scale(1.25) !important;
}
.heatmap-cell-today {
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.7) !important;
  border: 1.5px solid #f59e0b !important;
}

/* 3. [#UIUX-31] 당일 퀘스트 44px 대형 체크박스 & 취소선 모션 */
.quest-checkbox-44 {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  background: var(--card2, rgba(255, 255, 255, 0.04)) !important;
  border: 1.5px solid var(--rule, rgba(255, 255, 255, 0.12)) !important;
  color: var(--ink, #f1f5f9) !important;
  font-size: 1.15rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}
.quest-checkbox-44:active {
  transform: scale(0.92) !important;
}
.quest-checkbox-44.checked {
  background: rgba(34, 197, 94, 0.18) !important;
  border-color: #22c55e !important;
  color: #22c55e !important;
}
.quest-done-strikethrough {
  text-decoration: line-through !important;
  opacity: 0.65 !important;
  transition: all 0.25s ease !important;
}

/* 4. [#UIUX-28] [공준 3: 차원 엄격 분리] 신체 컨디션과 정신 몰입도 독립 2줄 슬라이더 */
.checkin-dimension-sliders:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  margin: 3px 0 5px 0 !important;
  padding: 5px 8px !important;
  background: var(--card2, rgba(255, 255, 255, 0.03)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 8px !important;
}
.dimension-slider-row:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  flex-direction: column !important;
  gap: 1px !important;
}
.dimension-slider-header:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  color: var(--ink, #f1f5f9) !important;
  line-height: 1.1 !important;
}
.dimension-slider-val:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: var(--brand, #3182f6) !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 18px !important;
  min-height: 18px !important;
  background: transparent !important;
  outline: none !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-webkit-slider-runnable-track {
  width: 100% !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.15) !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-moz-range-track {
  width: 100% !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.15) !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--brand, #3182f6) !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  margin-top: -5px !important;
  transition: transform 0.12s ease !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-moz-range-thumb {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: var(--brand, #3182f6) !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
  cursor: pointer !important;
  transition: transform 0.12s ease !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-webkit-slider-thumb:active {
  transform: scale(1.22) !important;
}
.dimension-range-input:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::-moz-range-thumb:active {
  transform: scale(1.22) !important;
}

/* 🌟 [#TASK-ES-139] 홈 탭 불필요 요소 완전 은폐 및 화면 공간 확보 */
#homeGrassSummaryCard { display: none !important; }
.quick-checkin-chips:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { display: none !important; }
.home-date-nav { display: none !important; }

/* 5. [#UIUX-29] [공준 5: 촉각적 손맛] 실천 저장 즉시 0.5초 축하 연출 */
@keyframes celebrationPulse05 {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.2); box-shadow: 0 0 20px rgba(49, 130, 246, 0.5); }
  100% { transform: scale(1); filter: brightness(1); }
}
.celebration-pulse-05s {
  animation: celebrationPulse05 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 6. [#UIUX-25] 무스크롤 1초 원스크린 조망 콕핏 레이아웃 (Glance & Expand) */
.home-cockpit-card {
  padding: 14px 16px !important;
  border-radius: 20px !important;
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   [UI/UX 틀 개편 Phase 4] 목표 탭 노션급 데이터 관리 & 인지순행 IA (#TASK-UIUX-PHASE4-GOALS)
   ========================================================================== */

/* 1. [#UIUX-33] [GOALS-STICKY] 5대 서브탭 상단 고정(Sticky) 횡스크롤 탭바 */
.goals-sticky-subnav {
  position: sticky !important;
  top: var(--header-height, 52px) !important;
  z-index: 40 !important;
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 8px 12px !important;
  margin: 0 0 10px 0 !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.goals-sticky-subnav::-webkit-scrollbar {
  display: none !important;
}
.goals-subtab-chip {
  min-height: 44px !important;
  min-width: 44px !important;
  padding: 6px 14px !important;
  border-radius: 22px !important;
  background: var(--card, rgba(255, 255, 255, 0.08)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.14)) !important;
  color: var(--ink-soft, #cbd5e1) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  box-sizing: border-box !important;
}
.goals-subtab-chip:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  color: var(--ink, #ffffff) !important;
}
.goals-subtab-chip.active {
  background: var(--brand, #ff4f64) !important;
  border-color: var(--brand, #ff4f64) !important;
  color: var(--chip-ink) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 79, 100, 0.35) !important;
}

/* 2. [#UIUX-34] [EXPRESSION-FIRST] [공준 2: 인지 순행 원칙] 목표 추가 시 '표현(이름)' 먼저 입력 */
.goal-fast-add-box {
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}
.goal-fast-add-input-wrap {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 10px !important;
}
.goal-fast-add-input {
  flex: 1 !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: var(--surface, rgba(0, 0, 0, 0.25)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.12)) !important;
  color: var(--ink, #ffffff) !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.goal-fast-add-input:focus {
  border-color: var(--brand, #3182f6) !important;
  box-shadow: 0 0 0 2px rgba(49, 130, 246, 0.25) !important;
}
.goal-fast-add-btn {
  min-height: 44px !important;
  min-width: 68px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: var(--brand, #3182f6) !important;
  border: none !important;
  color: var(--chip-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: transform 0.12s ease, filter 0.12s ease !important;
}
.goal-fast-add-btn:active {
  transform: scale(0.96) !important;
}
.smart-tag-chips-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}
.smart-tag-label {
  font-size: 0.78rem !important;
  color: var(--ink-soft, #94a3b8) !important;
  margin-right: 4px !important;
}
.smart-tag-chip {
  min-height: 36px !important;
  padding: 4px 12px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.82rem !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.15s ease !important;
}
.smart-tag-chip:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink, #ffffff) !important;
}
.smart-tag-chip.active {
  background: rgba(49, 130, 246, 0.2) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-weight: 700 !important;
}

/* 3. [#UIUX-35] [CARD-HIERARCHY] 목표 카드 시각적 위계화 */
.goal-card-hierarchical {
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
  position: relative !important;
}
.goal-card-hierarchical:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}
.goal-card-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}
.goal-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 !important;
  overflow: hidden !important;
}
.goal-title-text {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--ink, #ffffff) !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
.goal-dday-badge {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  white-space: nowrap !important;
}
.goal-progress-wrap {
  margin: 10px 0 8px 0 !important;
}
.goal-progress-info {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 0.8rem !important;
  color: var(--ink-soft, #94a3b8) !important;
  margin-bottom: 4px !important;
}
.goal-progress-track {
  height: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}
.goal-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #3182f6, #60a5fa) !important;
  border-radius: 4px !important;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.goal-next-milestone-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  color: var(--ink-soft, #94a3b8) !important;
  margin-top: 6px !important;
}

/* 4. [#UIUX-36] [DND-REORDER] 모바일 터치 기반 DND 목표 순서 재배치 */
.goal-dnd-handle {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ink-soft, #64748b) !important;
  cursor: grab !important;
  font-size: 1.1rem !important;
  touch-action: none !important;
  user-select: none !important;
}
.goal-dnd-handle:active {
  cursor: grabbing !important;
  color: var(--brand, #3182f6) !important;
}
.goal-order-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}
.goal-order-btn:hover {
  color: var(--ink, #ffffff) !important;
}

/* 5. [#UIUX-37] [GOAL-DRAWER] 목표 카드 탭 시 페이지 이동 없는 우측 슬라이드 드로어 상세 뷰 */
.goal-detail-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: min(85vw, 420px) !important;
  height: 100% !important;
  background: var(--bg-surface-glass, rgba(17, 24, 39, 0.96)) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5) !important;
  z-index: 150 !important;
  display: none !important;
  flex-direction: column !important;
  border-left: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  max-width: 100vw !important;
}
.goal-detail-drawer.open {
  display: flex !important;
  transform: translateX(0) !important;
}
.goal-drawer-header {
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
}
.goal-drawer-body {
  flex: 1 !important;
  padding: 16px 20px !important;
  overflow-y: auto !important;
}

/* 7. [#UIUX-39] [TEMPLATE-HUB] 템플릿 백과사전 원클릭 내 목표 가져오기 */
.template-card-modern {
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.btn-template-adopt {
  min-height: 44px !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  background: rgba(49, 130, 246, 0.15) !important;
  border: 1px solid var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}
.btn-template-adopt:hover {
  background: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
}

/* 8. [#UIUX-40] [STATS-SIMPLIFY] 성취 통계 기간 버튼 40px 규격화 */
.goals-stat-period-nav {
  display: flex !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}
.goals-stat-period-btn {
  height: 40px !important;
  min-height: 40px !important;
  min-width: 44px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  background: var(--card, rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}
.goals-stat-period-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--ink, #ffffff) !important;
}
.goals-stat-period-btn.active {
  background: var(--brand, #3182f6) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   [PHASE 5] #TASK-UIUX-PHASE5-RECORDS-CALENDAR: 기록 회고 피로 해소 & 캘린더 공간 융합 8대 과업
   ========================================================================== */

/* 1. [#UIUX-41] [RECENT3-PAGING] 최신 3건 피드 카드 & 과거 기록 아카이빙 */
.rec-recent3-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}
.rec-recent3-card {
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  transition: transform 0.15s ease, border-color 0.15s ease !important;
}
.rec-recent3-card:hover {
  border-color: var(--brand, #3182f6) !important;
  transform: translateY(-1px) !important;
}
.rec-archive-wrapper {
  margin-top: 14px !important;
}
.btn-rec-archive-toggle {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px dashed var(--rule, rgba(255, 255, 255, 0.15)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}
.btn-rec-archive-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink, #ffffff) !important;
}

/* 3. [#UIUX-43] [CAL-CELL-EXPAND] 캘린더 셀 76px 와이드 확장 & 썸네일 가독성 */
.cal-wide-cell-76 {
  min-height: 76px !important;
  padding: 6px 4px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.cal-streak-marker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* 4. [#UIUX-44] [DIARY-SLOT] 사진형 일기 2장 분할 썸네일 & 인라인 프리뷰 */
.cal-diary-split-thumb {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2px !important;
  width: 100% !important;
  height: 28px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-top: 2px !important;
}
.cal-diary-split-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.cal-diary-preview-dialog {
  border-radius: 16px !important;
  padding: 16px !important;
  background: var(--surface, #1e293b) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
}

/* 5. [#UIUX-45] [CHART-SIMPLIFY] 8대 영역 라이프 밸런스 휠 & 콤팩트 카드 */
.life-balance-compact-card {
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
}
.balance-wheel-svg {
  width: 100% !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

/* 7. [#UIUX-47] [5UNIT-RECAP] 5단위(오늘·주·월·년·기간) 회고 아코디언 */
.five-unit-recap-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}
.recap-accordion-item {
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.recap-accordion-header {
  min-height: 44px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--ink, #ffffff) !important;
}

/* 8. [#UIUX-48] [DATA-SAFETY] 기록 데이터 1초 CSV 다운로드 & 무손실 안전핀 */
.btn-rec-export-csv {
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}
.btn-rec-export-csv:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink, #ffffff) !important;
}

/* ==========================================================================
   [PHASE 6] #TASK-UIUX-PHASE6-COMM-SETTINGS: 소통 무공해 연대 & 설정 1초 보안 제어 8대 과업
   ========================================================================== */

/* 1. [#UIUX-49] [COMM-3X2-HUB] 소통 탭 3×2 그리드 허브 (TASK-ES-129: 중복 렌더링 해체 및 완전 은폐) */
#commHubGrid,
.comm-hub-grid {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.comm-hub-card {
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 14px !important;
  padding: 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
}
.comm-hub-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink, #ffffff) !important;
}
.comm-hub-card.active {
  background: rgba(49, 130, 246, 0.15) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-weight: 700 !important;
}

/* 2. [#UIUX-50] [FEED-AVATAR-SHEET] 피드 작성자 아바타 터치 시 프로필 바텀시트 */
.comm-profile-bottomsheet {
  background: var(--surface, #1e293b) !important;
  border-radius: 20px 20px 0 0 !important;
  padding: 20px 16px !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
}
.comm-profile-avatar-wrap {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  background: var(--card, rgba(255, 255, 255, 0.1)) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2rem !important;
  margin: 0 auto 12px !important;
  border: 2px solid var(--brand, #3182f6) !important;
}

/* 3. [#UIUX-51] [INAPP-SAFE-DM] 프로필 시트 내 인앱 1:1 안심 DM 연결 */
.btn-inapp-dm-start {
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.15s ease !important;
}

/* 4. [#UIUX-52] [NONTOXIC-REACTION] 4종 무공해 연대 리액션 플로팅 바 */
.reaction-floating-bar {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 10px !important;
  padding: 6px 8px !important;
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  border-radius: 20px !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  width: fit-content !important;
}
.btn-reaction-chip {
  min-height: 32px !important;
  padding: 4px 10px !important;
  border-radius: 14px !important;
  background: transparent !important;
  border: none !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--ink-soft, #94a3b8) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.15s ease !important;
}
.btn-reaction-chip:active {
  transform: scale(1.15) !important;
}
.reaction-float-anim {
  animation: floatUpFade 0.6s ease-out forwards !important;
}
@keyframes floatUpFade {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-30px) scale(1.4); opacity: 0; }
}

/* 5. [#UIUX-53] [PEER-SEARCH-ANCHOR] 동반자 검색 핀포인트 4대 식별 앵커 */
.peer-search-anchor-box {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin: 10px 0 !important;
}
.peer-anchor-tag {
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  background: var(--card, rgba(255, 255, 255, 0.06)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
}

/* 6. [#UIUX-54] [SETTINGS-1SEC] 설정 계정 & 보안 1초 조망 카드 */
.settings-security-card {
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  margin-bottom: 14px !important;
}
.badge-2fa-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 8px !important;
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
}
.btn-security-refresh {
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  background: var(--card, rgba(255, 255, 255, 0.06)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  color: var(--ink, #ffffff) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* 7. [#UIUX-55] [DEVICE-KILLSWITCH] 연결된 기기 5대 식별 앵커 & 원격 차단 */
.device-session-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 0 !important;
  border-bottom: 1px dashed var(--rule, rgba(255, 255, 255, 0.08)) !important;
}
.btn-device-killswitch {
  min-height: 32px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.btn-device-killswitch:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* 8. [#UIUX-56] [THEME-SWATCHES] 4대 테마 실시간 미니 프리뷰 스와치 칩 */
.theme-swatch-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}
.theme-swatch-chip {
  min-height: 64px !important;
  padding: 8px 6px !important;
  border-radius: 14px !important;
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 2px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
}
.theme-swatch-chip:hover {
  border-color: var(--brand, #3182f6) !important;
}
.theme-swatch-chip.active {
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(49, 130, 246, 0.3) !important;
}
.theme-swatch-preview {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   [UI/UX 프레임워크 개편 Phase 7] 모바일 하드웨어 인터랙션 & 사용성 하드닝 (#TASK-UIUX-PHASE7-HARDWARE-HARDENING)
   과업: #UIUX-57 ~ #UIUX-64
   ========================================================================== */

/* 1. [#UIUX-57] [KEYBOARD-SHIELD] 가상 키보드 가림 방화벽 */
.keyboard-shield-lift {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), padding-bottom 0.25s ease !important;
}
.keyboard-shield-active {
  padding-bottom: 240px !important;
}

/* 2. [#UIUX-58] [BOUNCE-TUNE] iOS Safari 바운스 스크롤 고정 & 풀투리프레시 제어 */
html, body {
  overscroll-behavior-y: contain !important;
  -webkit-overflow-scrolling: touch !important;
}
.tab-content, .screen, .modal-scroll-body, .bottomsheet-content {
  overscroll-behavior-y: contain !important;
}

/* 3. [#UIUX-59] [ACTIVE-STATE] 모든 클릭/터치 요소 :active 시각 스케일 손맛 피드백 */
.touch-active-scale,
button:not(:disabled):active,
.btn:not(:disabled):active,
.clickable:active,
.card-clickable:active {
  transform: scale(0.97) !important;
  transition: transform 0.1s ease !important;
  touch-action: manipulation !important;
}

/* 4. [#UIUX-60] [DATA-FEEDBACK] 원격 동기화 & 마이크로 토스트 규격화 */
.toast-micro-feedback {
  position: fixed !important;
  bottom: 84px !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(20px) !important;
  background: rgba(15, 23, 42, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 20px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
}
.toast-micro-feedback.show {
  transform: translateX(-50%) translateY(0) !important;
  opacity: 1 !important;
}

/* 5. [#UIUX-61] [FONT-SCALING] 모바일 OS 시스템 폰트 확대(130%) 대응 */
.font-scale-safe {
  min-height: fit-content !important;
  overflow-wrap: break-word !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
}

/* 6. [#UIUX-62] [PWA-INSTALL] 크롬/사파리 홈화면 추가 3단계 카드뉴스 인앱 안내 모달 */
.pwa-guide-sheet {
  background: var(--card, #1e293b) !important;
  border-radius: 24px 24px 0 0 !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  border-bottom: none !important;
  padding: 20px 16px 28px !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4) !important;
}
.pwa-os-switcher {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}
.btn-pwa-os-tab {
  flex: 1 !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  background: var(--card, rgba(255, 255, 255, 0.05)) !important;
  border: 1.5px solid var(--rule, rgba(255, 255, 255, 0.1)) !important;
  color: var(--ink-soft, #94a3b8) !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}
.btn-pwa-os-tab.active {
  background: rgba(49, 130, 246, 0.15) !important;
  border-color: var(--brand, #3182f6) !important;
  color: var(--brand, #3182f6) !important;
}
.pwa-step-grid {
  /* [#TASK-ES-462] display 는 !important 로 묶지 않는다 — OS 탭(switchPwaOsTab)이 인라인 display 로 iOS·Android 단계 중 하나만 보이게 한다(기본은 마크업의 인라인 display:grid) */
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
}
.pwa-step-card {
  background: var(--surface-2, rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 14px !important;
  padding: 12px 8px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}
.pwa-step-badge {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pwa-step-icon {
  font-size: 1.5rem !important;
  margin: 4px 0 !important;
}
.pwa-step-desc {
  font-size: 0.74rem !important;
  color: var(--ink, #ffffff) !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  word-break: keep-all !important;
}

/* 7. [#UIUX-63] [DARK-SMOOTH] 다크 ↔ 라이트 테마 전환 200ms 눈부심 완화 트랜지션 */
.theme-smooth-transition,
html, body,
.screen, .header, .tab-bar, .card:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))), .bottomsheet {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* 8. [#UIUX-64] [ZERO-DEADCLICK] 전역 937+개 버튼 회귀 방화벽 보완 클래스 */
.btn-deadclick-safe {
  cursor: pointer !important;
  user-select: none !important;
  touch-action: manipulation !important;
}

/* [#TASK-ES-131] 기록 탭 스톱워치·히트맵·타임라인 3중 분산 해소 및 단일 콕핏 아키텍처 */
#screen-records #recHeroCard,
#screen-records #og-task-24-container,
#sHeatmapTimerCockpitBtn {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* 기간 필터 칩 40px+ 높이 및 13px+ 폰트 규격화 (31개 터치타깃 및 57개 미세폰트 원천 해소) */
.s-segment-pills {
  display: flex !important;
  gap: 8px !important;
  margin: 12px 0 !important;
  flex-wrap: nowrap !important;
}

.s-segment-pills .s-seg-pill,
.s-seg-pill {
  min-height: 40px !important;
  height: 40px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   #TASK-ES-133: 설정 탭 미니멀 IA 및 3대 조망 카드 중심 개편
   - 상단 중복 타이틀(.s-eyebrow, .s-title) 소거
   - 중복 레거시 테마 스와치(#legacyThemeSwatchCard) 은폐
   - 개발자 전용 컴포넌트 모듈화 허브(#og-task-23-container) 은폐
   - 설정 4대 아코디언 토스식 둥근 카드 조형 및 터치 44px+ 정규화
   ========================================================================== */
#screen-settings .s-eyebrow,
#screen-settings .s-title {
  display: none !important;
}

#legacyThemeSwatchCard,
#screen-settings #legacyThemeSwatchCard {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#og-task-23-container,
#screen-settings #og-task-23-container {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.settings-group-accordion.toss-settings-group {
  border: 1.5px solid var(--rule, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 18px !important;
  background: var(--card, rgba(255, 255, 255, 0.04)) !important;
  margin-bottom: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.settings-group-accordion.toss-settings-group summary {
  min-height: 48px !important;
  padding: 14px 16px !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* ==========================================================================
   #TASK-ES-134: 전 탭 44px 미달 터치 타깃 및 12px 미만 극소 폰트 일괄 44px/13px 규격화
   - WCAG AAA 및 모바일 터치 권장 규격 44px (min-height: 44px, min-width: 44px) 전역 안착
   - 터치 딜레이 완전 제거: touch-action: manipulation
   - 12px 미만 극소 폰트 일괄 12.5px~13px 최소 가독선 표준화 및 line-height 1.4 보정
   - 모바일 뷰포트 너비 안정성(docScrollWidth <= 390px) 및 제로 텍스트 클리핑
   ========================================================================== */

/* 1. 모바일 터치 타깃 44px 전역 규격화 */
.btn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.btn-sm:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.btn-unblock,
.cal-nav-row .btn,
.sel-bar .btn,
.notify-banner button,
.goal-chip,
.cat-major,
.theme-filter-chip,
.feed-filter-chip,
.cat-sub,
.ob-quick-action-chip,
.quick-prose-chip,
.feed-quick-chip,
.comm-subtab,
.format-opt,
.mode-chip,
.auth-tab,
.pro-sw-mode-chip,
.s-seg-pill,
.s-segment-pills .s-seg-pill,
.subtab,
.edit-toggle,
.today-glance-pill,
.pill-react,
.feed-react-btn,
.feed-comm-toggle,
.att-chip,
.att-add-btn,
.goal-chip-nav-btn,
.ms-priority-tag,
.duedate-row input[type=date],
.duedate-row select,
.sw-lap-memo-input,
.home-date-chip,
.btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.quick-checkin-chips .btn-quick-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.tier-btn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.btn-focus-pilot,
.toss-focus-complete-btn,
.rec-period-chip,
.btn-device-killswitch,
.btn-security-refresh,
.btn-deadclick-safe,
.notify-mode-btn,
.s-cal-mode-btn,
.s-rec-mode-btn,
.rec-pager-btn,
.btn-rec-export-csv,
button.dday-pill,
#calGcalMiniBadge,
#btnSettingsQuickAvatar,
#btnOpenDynamicAlbum,
.smart-tag-chip,
.schedule-pill-btn,
.btn-ghost:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.btn-ghost.btn-xs,
.s-goal-pill,
#sAddGoalBtn,
#screen-goals button {
  min-height: 44px !important;
  box-sizing: border-box !important;
  touch-action: manipulation !important;
}

.s-segment-pills .s-seg-pill,
.s-seg-pill,
.s-cal-mode-btn,
.s-rec-mode-btn,
.rec-pager-btn,
.btn-rec-export-csv,
.s-goal-pill,
#sAddGoalBtn {
  height: 44px !important;
}

.icon-btn,
.topbar-notif-btn,
.mic-btn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
.sanctuary-bell-btn,
.order-shift-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  touch-action: manipulation !important;
}

/* 2. 전 탭 극소 폰트(< 12px) 12.5px ~ 13px 일괄 가독선 표준화 */
.faint,
.meta,
.sub-text,
.text-muted,
.card-sub,
.item-sub,
.trend-summary-hint,
.btn-focus-pilot,
.order-shift-btn {
  font-size:0.8125rem !important;
  line-height: 1.4 !important;
}

.dday-pill,
.dday-mini,
.streak-pill,
.freeze-pill,
.topic-pill,
.privacy-badge,
.market-badge,
.pro-tpl-badge,
.notion-push-status-pill,
.rec-dur,
.tag,
.ms-priority-tag,
.feed-c-badge,
.feed-ai-tag,
.pro-trend-growth-badge,
.crew-badge,
.avatar-lv-pill,
.focus-goal-pill,
.s-heat-badge,
.options-toggle-hint,
.options-toggle-btn,
#activeAiModeTag:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
#aiModeDescBody:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),
#homeQuickGuideRow span,
.home-quick-guide-row span,
.quick-guide-title span,
#homeCunningPaperSlot span,
.sanctuary-theme-card div,
.sanctuary-theme-card span,
.lockscreen-save-banner span,
#lockscreenSaveBanner span,
.m-badge,
.trail-done-badge,
.minibar-status-tag,
.schedule-pill-btn,
.att-add-btn,
.btn-ghost.btn-xs,
#screen-settings .sanctuary-theme-card div,
#screen-settings .sanctuary-theme-card span,
small {
  font-size:0.78125rem !important;
  line-height: 1.4 !important;
}

/* 캘린더 히트맵 헤더, 캘린더 일간 태그, 기록 데이터 태그 폰트 규격화 */
.s-heatmap-header span,
.heatmap-day,
.s-heatmap-legend,
.s-heatmap-legend span,
.rec-stat-chip,
.rec-data-tag,
.stat-chip,
#recordsList .rec-card span,
.rec-card span,
#lsSimMonthGridWrap span,
.home-heatmap-4w-grid span,
.s-cal-cell span,
.cal-cell span,
.s-day-cell span,
#screen-calendar .cal-event-item,
#screen-calendar .s-day-all-day,
.rec-past-meta,
.rec-acc-chevron,
.rec-paged-range-badge,
#screen-records .s-heatmap-legend span {
  font-size:0.75rem !important;
  line-height: 1.4 !important;
}

/* 캘린더 날짜 셀 7열 그리드 0px 오버플로우 방어 */
.s-cal-day-cell .s-day-num {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}
.s-cal-day-cell .s-day-today-tag {
  font-size: 8px !important;
  line-height: 1 !important;
  padding: 1px 2px !important;
  max-width: 90% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  text-align: center !important;
}
.s-cal-day-cell span {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 인풋 플레이스홀더 폰트 표준화 */
:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  font-size:0.8125rem !important;
}

/* ==========================================================================
   #TASK-ES-135: 템플릿 백과사전 원클릭 둘러보기/이식 연동 및 마일스톤 D-day 직통 캘린더 연계 UX 완결
   - 템플릿 히어로 카드(.goal-template-hero-card, .template-quick-card) 조형
   - 마일스톤 D-day 뱃지(.milestone-dday-badge) 및 일정 버튼(.schedule-pill-btn) 44px 터치 규격
   ========================================================================== */
.goal-template-hero-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid var(--rule) !important;
}

.template-quick-card {
  transition: transform 0.15s ease, border-color 0.15s ease !important;
  border: 1px solid var(--rule) !important;
}

.template-quick-card:hover {
  border-color: var(--brand) !important;
  transform: translateY(-1px) !important;
}

.btn-quick-adopt-goal {
  min-height: 44px !important;
  touch-action: manipulation !important;
}

.milestone-dday-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.schedule-pill-btn {
  min-height: 44px !important;
  touch-action: manipulation !important;
}

/* ==========================================================================
   #TASK-ES-136: 팀 연계 개인목표 생성 의도 직통화 및 마니또 원클릭 웰컴 스탬프 & 실시간 피드백 배선
   - 팀 목표 상단 퀵 액션 바(.team-quick-action-bar) 및 버튼(.team-personal-goal-quick-btn)
   - 팀 카드 내 팀 연계 개인목표 버튼(.team-personal-goal-pill-btn) 44px 규격화
   - 가상 샘플 그룹 [예시 팀] 뱃지(.badge-mock-team)
   - 마니또 웰컴 스탬프 버튼(.manito-welcome-stamp-btn) 44px 및 피드백 하드닝
   ========================================================================== */
.team-quick-action-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  padding: 12px 14px !important;
  background: var(--card2) !important;
  border: 1px solid var(--rule) !important;
  border-radius: 14px !important;
}

.team-personal-goal-quick-btn {
  min-height: 44px !important;
  touch-action: manipulation !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  background: var(--gold, #d97706) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.team-personal-goal-pill-btn {
  min-height: 44px !important;
  touch-action: manipulation !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border: 1.5px solid var(--gold, #d97706) !important;
  color: var(--gold, #d97706) !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.badge-mock-team {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  background: rgba(217, 119, 6, 0.12) !important;
  color: var(--gold, #d97706) !important;
  border: 1px solid rgba(217, 119, 6, 0.25) !important;
  vertical-align: middle !important;
  margin-left: 6px !important;
}
/* [#TASK-ES-137] 3일 실천 레이더 차트 미리보기 & 위클리 리캡 액션 스타일 */
.btn-coldstart-record {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: var(--brand, #4f46e5) !important;
  color: var(--chip-ink) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
  box-sizing: border-box !important;
}

.btn-coldstart-record:active {
  transform: scale(0.97) !important;
  filter: brightness(0.95) !important;
}

.weekly-recap-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 44px !important;
  padding: 8px 14px !important;
  border-radius: 12px !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  touch-action: manipulation !important;
  box-sizing: border-box !important;
}

.weekly-recap-action-btn:active {
  transform: scale(0.97) !important;
}

/* [#TASK-ES-138] PWA 홈화면 추가 3초 가이드 및 게스트 무마찰 44px 모바일 터치 스타일 */
.pwa-guide-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  background: var(--brand, #3182f6) !important;
  color: var(--chip-ink) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  border: none !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: transform 0.15s ease, filter 0.15s ease !important;
}

.pwa-guide-action-btn:active {
  transform: scale(0.97) !important;
  filter: brightness(0.95) !important;
}

.btn-pwa-os-tab {
  min-height: 44px !important;
  touch-action: manipulation !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-inapp-dm-start {
  min-height: 44px !important;
  touch-action: manipulation !important;
}

/* ============ HOME-01 홈 원스크린 콕핏: 3대 미니 나침반 + 85vh 상세 바텀시트 (js/tabs/home/sub-onescreen.js) ============ */
.home-compass-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0;}
#screen-home #homeCompassRow{order:8;}
/* 하단 메뉴 여백은 main.screens 가 이미 준다(nav-h + 48px) — 원스크린 홈에서는 홈 자체의 이중 여백만 걷어낸다 */
#screen-home.home-onescreen{padding-bottom:0 !important;padding-top:4px !important;}
/* 한 화면 예산(375×812): 체크인 카드 아래 간격 6px, 비어 있는 히트맵 요약 카드의 여백 제거 */
#screen-home.home-onescreen #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){margin-bottom:6px !important;padding:8px 12px !important;}
#screen-home.home-onescreen #homeGrassSummaryCard{margin:0 !important;}
#screen-home.home-onescreen #sanctuaryTopBar{margin-bottom:1px !important;min-height:46px !important;}
#screen-home.home-onescreen #homeHeadlineSentence{margin-bottom:2px !important;font-size:0.85rem !important;}
#screen-home.home-onescreen .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){margin-bottom:2px !important;}
#screen-home.home-onescreen #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){min-height:48px !important;}
#screen-home.home-onescreen .home-hero-avatar-card{margin:1px 0 4px !important;}
#screen-home.home-onescreen #captureRowAnchor:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){flex-wrap:nowrap !important;gap:6px !important;margin-top:5px !important;}
#screen-home.home-onescreen #capturePhotoBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),#screen-home.home-onescreen #importExternalBtn:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){padding:5px 8px !important;min-height:38px !important;flex-shrink:0 !important;}
#screen-home.home-onescreen #capturePhotoBtn span:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))),#screen-home.home-onescreen #importExternalBtn span:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){display:none !important;}
#screen-home.home-onescreen .checkin-more-options:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))){margin-top:2px !important;padding-top:2px !important;}
.home-compass-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;padding:6px 6px;border-radius:14px;background:var(--card);border:1px solid var(--rule);color:var(--ink);cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,border-color .15s ease;}
.home-compass-btn:hover,.home-compass-btn:focus-visible{border-color:var(--brand);}
.home-compass-btn:active{transform:scale(0.97);}
.home-compass-ico{font-size:1.1rem;line-height:1;}
.home-compass-label{font-size:.84rem;font-weight:700;letter-spacing:-.01em;}
.home-compass-sub{font-size:.72rem;color:var(--ink-soft);}
.home-detail-sheet{position:fixed;inset:0;z-index:90;visibility:hidden;pointer-events:none;transition:visibility 0s linear .3s;}
.home-detail-sheet.open{visibility:visible;pointer-events:auto;transition:visibility 0s;}
.home-detail-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.35);opacity:0;transition:opacity .3s ease;}
.home-detail-sheet.open .home-detail-backdrop{opacity:1;}
.home-detail-panel{position:absolute;left:0;right:0;bottom:0;margin:0 auto;width:100%;max-width:var(--maxw, 520px);height:85vh;display:flex;flex-direction:column;background:linear-gradient(var(--card2, transparent), var(--card2, transparent)), var(--bg, #0B0F17);border-radius:24px 24px 0 0;border:1px solid var(--rule);border-bottom:none;box-shadow:0 -12px 36px rgba(0,0,0,.45);transform:translateY(100%);transition:transform .3s cubic-bezier(0.16, 1, 0.3, 1);box-sizing:border-box;overscroll-behavior-y:contain;}
.home-detail-sheet.open .home-detail-panel{transform:translateY(0);}
.home-detail-handle{display:flex;justify-content:center;padding:10px 0 6px;cursor:grab;touch-action:none;}
.home-detail-handle span{display:block;width:44px;height:5px;border-radius:999px;background:var(--surface-3, var(--rule));}
.home-detail-head{position:relative;padding:0 20px;touch-action:none;}
.home-detail-head h3{margin:0;padding:8px 52px 0 0;font-size:1.125rem;font-weight:800;color:var(--ink);letter-spacing:-.02em;}
.home-detail-head .modal-sheet-close{top:-6px;right:12px;}
.home-detail-hint{margin:6px 20px 8px;font-size:.78rem;color:var(--ink-soft);}
.home-detail-body{flex:1;overflow-y:auto;overscroll-behavior-y:contain;padding:0 16px calc(var(--nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 48px);}
.home-sheet-panel .home-recent-title{margin-top:8px;}
.sanctuary-top-right .home-topbar-add{min-height:44px;padding:0 14px;border-radius:999px;font-size:.84rem;font-weight:700;white-space:nowrap;color:var(--brand);border:1px solid var(--rule);background:var(--card);}
.sanctuary-top-right .home-topbar-add::before{content:"＋ ";}
.sanctuary-top-right .home-topbar-add:active{transform:scale(0.97);}

/* ============ [#TASK-ES-340] HOME-02/03/04/05/11 코어 인터랙션 4위 1체 ============ */
@keyframes avatarPulseBreathing {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 2px 8px rgba(99,102,241,0.18)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 4px 14px rgba(99,102,241,0.32)); }
}

.home-hero-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
  position: relative;
  text-align: center;
}

.home-hero-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: avatarPulseBreathing 3s ease-in-out infinite;
  transition: transform 0.15s ease;
  user-select: none;
  background: var(--card2, #f8fafc);
  border: 2px solid var(--brand, #6366f1);
  box-shadow: 0 4px 16px rgba(99,102,241,0.15);
}

.home-hero-avatar-wrap:active {
  transform: scale(0.95) !important;
}

.home-hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.home-hero-avatar-wrap .avatar-placeholder {
  font-size: 2.8rem;
  line-height: 1;
}

.hero-avatar-bubble {
  position: relative;
  background: var(--card, #ffffff);
  border: 1px solid var(--rule, rgba(0,0,0,0.08));
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 0.78125rem;
  font-weight: 700;
  color: var(--ink, #1e293b);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 6px;
  word-break: keep-all;
  max-width: 90%;
}

.hero-avatar-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 5px 0 5px;
  border-style: solid;
  border-color: var(--card, #ffffff) transparent transparent transparent;
}

.hero-avatar-exp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  width: 100%;
  max-width: 220px;
}

#homeHeroExpBar, .hero-avatar-exp-bar {
  width: 100%;
  max-width: 180px;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
  display: block;
}

.hero-avatar-exp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand, #6366f1), #a855f7);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* HOME-19: 경험치를 얻는 순간 아바타 위로 "+N EXP" 를 0.5초 띄운다(평소에는 비어 있고 투명) */
.hero-avatar-exp-gain {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, 0);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand, #6366f1);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.hero-avatar-exp-gain.is-showing {
  animation: heroExpGainFloat 0.5s ease-out forwards;
}
@keyframes heroExpGainFloat {
  0% { opacity: 0; transform: translate(-50%, 6px); }
  25% { opacity: 1; transform: translate(-50%, 0); }
  75% { opacity: 1; transform: translate(-50%, -10px); }
  100% { opacity: 0; transform: translate(-50%, -16px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-avatar-exp-gain.is-showing { animation: none; opacity: 1; }
}

/* HOME-04: 스마트 추천 칩 */
.smart-recommend-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 6px 0;
  flex-wrap: wrap;
}

.btn-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.22);
  color: var(--brand, #6366f1);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  min-height: 28px;
}

.btn-smart-chip:active, .btn-smart-chip.active {
  transform: scale(0.96);
  background: var(--brand, #6366f1);
  color: var(--chip-ink);
  border-color: var(--brand, #6366f1);
}

/* HOME-05: 접힘 듀얼 슬라이더 아코디언 */
.dimension-accordion {
  margin: 6px 0;
  border-top: 1px dashed var(--rule, rgba(0,0,0,0.08));
  padding-top: 6px;
  width: 100%;
}

.dimension-accordion summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-soft);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}

.dimension-accordion summary::-webkit-details-marker {
  display: none;
}

.dimension-accordion[open] summary {
  color: var(--brand, #6366f1);
}

/* HOME-11: 다정한 러닝메이트 UX 폰트 */
.home-running-mate-text {
  word-break: keep-all;
  line-height: 1.45;
}

/* HOME-13 & HOME-02: 375×667(iPhone SE) 무스크롤 완성 콤팩트 패딩 모드 */
@media (max-height: 700px) {
  #screen-home.home-onescreen { padding-top: 2px !important; }
  #screen-home.home-onescreen #sanctuaryTopBar { margin-bottom: 0px !important; padding: 2px 10px !important; min-height: 40px !important; }
  #screen-home.home-onescreen .sanctuary-greeting-box { margin-bottom: 0px !important; }
  #screen-home.home-onescreen .sanctuary-greeting { font-size: 0.88rem !important; line-height: 1.15 !important; }
  #screen-home.home-onescreen #homeHeadlineSentence { font-size: 0.78rem !important; margin-bottom: 1px !important; }
  #screen-home.home-onescreen .home-hero-avatar-card { margin: 0 0 2px !important; }
  #screen-home.home-onescreen .home-hero-avatar-wrap { width: 50px !important; height: 50px !important; }
  #screen-home.home-onescreen .home-hero-avatar-wrap .avatar-placeholder { font-size: 1.6rem !important; }
  #screen-home.home-onescreen .hero-avatar-bubble { font-size: 0.7rem !important; padding: 2px 6px !important; margin-bottom: 2px !important; }
  #screen-home.home-onescreen .hero-avatar-exp-text { font-size: 0.68rem !important; margin-top: 1px !important; }
  #screen-home.home-onescreen #levelBadgeRow { display: none !important; }
  #screen-home.home-onescreen #captureCardBox:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { padding: 4px 8px !important; margin-bottom: 2px !important; }
  #screen-home.home-onescreen #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { min-height: 36px !important; padding: 4px 6px !important; font-size: 0.8rem !important; }
  #screen-home.home-onescreen .capture-title:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) { margin-bottom: 1px !important; font-size: 0.82rem !important; }
  #screen-home.home-onescreen .home-compass-btn { min-height: 40px !important; padding: 2px 2px !important; border-radius: 10px !important; gap: 1px !important; }
  #screen-home.home-onescreen .home-compass-ico { font-size: 0.9rem !important; }
  #screen-home.home-onescreen .home-compass-label { font-size: 0.72rem !important; }
  #screen-home.home-onescreen .home-compass-sub { display: none !important; }
}

.btn-smart-chip.active-smart-chip:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction))) {
  background: rgba(99, 102, 241, 0.22) !important;
  border-color: var(--brand, #6366f1) !important;
  color: var(--brand, #6366f1) !important;
  font-weight: 700 !important;
}



/* 원077: 확정 기록 안내는 입력 빈칸에만, 네 공식 테마의 읽기 색을 따른다. */
html[data-theme="focus-sanctuary"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder,
html[data-theme="black"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder,
html[data-theme="white"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder,
html[data-theme="urban-city"] #captureInput:not(:where(#captureCardBox, #captureCardBox :not(#captureSyncStatus):not(#captureSyncAction)))::placeholder {
  color: var(--ink-soft) !important;
  opacity: 1 !important;
}

/* TASK-ES-ORCH-C003: 확대 글자는 높이를 늘리고 줄을 바꿔 읽는다. */
:is(#screen-home, #homeDetailSheet) {
  overflow-wrap: anywhere;
}
:is(#screen-home, #homeDetailSheet) .home-compass-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* 확대 뒤에도 마이크와 입력 글자가 겹치지 않게 오른쪽 칸을 확보한다. */
:is(body.font-large, body.font-xlarge) #screen-home.home-onescreen #captureInput {
  padding-right: 52px !important;
  min-height: 4em !important;
}
:is(body.font-large, body.font-xlarge) :is(#screen-home, #homeDetailSheet) :is(.btn, .tier-btn, .goal-detail-link, .home-compass-btn, .home-topbar-add) {
  height: auto !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-overflow: clip !important;
  max-width: 100%;
  line-height: 1.4;
}
:is(body.font-large, body.font-xlarge) :is(#screen-home, #homeDetailSheet) :is(.capture-title, summary, .goal-card-top, .crew-head, .crew-foot, .feedback-tier-bar, .dimension-slider-header, .sanctuary-top-bar, .sanctuary-top-right, .toss-focus-progress-labels) {
  flex-wrap: wrap;
  gap: 6px;
}
:is(body.font-large, body.font-xlarge) :is(#screen-home, #homeDetailSheet) :is(.goal-card-top, .capture-title, .ai-mode-setting-card, #firstCheckinTutorialBanner) div {
  min-width: 0;
  max-width: 100%;
}
:is(body.font-large, body.font-xlarge) :is(#screen-home, #homeDetailSheet) .goal-card-top h4 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
body:is(.font-large, .font-xlarge) #screen-home.home-onescreen #captureRowAnchor {
  flex-wrap: wrap !important;
}
body:is(.font-large, .font-xlarge) #screen-home #captureSave {
  flex-basis: 100% !important;
}
:is(body.font-large, body.font-xlarge) #screen-home :is(.capture-title, .ai-mode-setting-card) [style*="display:flex"] {
  flex-wrap: wrap;
  gap: 6px;
}
:is(body.font-large, body.font-xlarge) #screen-home .tier-btn {
  flex: 1 1 7em;
}
:is(body.font-large, body.font-xlarge) .home-detail-body {
  min-height: 0;
}
:is(body.font-large, body.font-xlarge) .bottomnav .navbtn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

:is(body.font-large, body.font-xlarge) :is(#homeGoalList, #crewPacingWidget) [style*="display:flex"] {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
:is(body.font-large, body.font-xlarge) #homeGoalList .goal-card-top > div {
  flex-basis: 100% !important;
}

/* 인라인 px는 HTML을 바꾸지 않고 홈의 기존 기본 크기와 같은 rem으로 덮어쓴다. */
#screen-home #firstCheckinTutorialTitle { font-size: 0.8125rem !important; }
#screen-home #firstCheckinTutorialDesc { font-size: 0.75rem !important; }
#screen-home #firstCheckinTutorialEmoji { font-size: 1.625rem !important; }
#screen-home #closeFirstCheckinTutorialBtn { font-size: 1rem !important; }

/* TASK-ES-ORCH-C003: 홈 커닝페이퍼 안내처럼 인라인 12.5px 로 박힌 글자도 글자 크기 설정을 따르게(12.5px = 0.78125rem). */
#screen-home [style*="font-size:12.5px"] { font-size: 0.78125rem !important; }
/* TASK-ES-ORCH-C003: 360px 「보통」에서도 AI 피드백 단계 단추 세 개가 화면 밖으로 밀리지 않게(원본에서 19px 넘침 실측) 줄바꿈을 허용한다. */
#screen-home #checkinFeedbackTierBar .tier-btn { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }

/* TASK-ES-ORCH-C047: 글자 크기를 유지한 설정 바닥 링크 누름 영역. */
#footInquiryLink,
#footSupportEmailLink,
#setTermsLink,
#setPrivacyLink {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
