  @font-face {
    font-family: 'DungGeunMo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/DungGeunMo.woff') format('woff');
    font-display: swap;
  }

  :root {
    --sky1: #9d9aec; --sky2: #c3aef0; --sky3: #f0c6e4; --sky4: #aebef1;
    --panel: rgba(253, 251, 255, 0.94);
    --panel-solid: #fdfbff;
    --panel-alt: #f4eefc;
    --line: #ddd0f2;
    --line-strong: #c9b8ea;
    --ink: #4a4177;
    --ink-2: #7c72a8;
    --ink-3: #a89fce;
    --accent: #8b7cf6;
    --accent-deep: #6f5fe0;
    --accent-subtle: #ece7fd;
    --star: #ffd966;
    --alert-bg: #fff0f3; --alert-line: #f6b8c8;
    --ai-bg: #f3edff; --ai-line: #cdb8f8;
    --ok-bg: #eafaf0; --ok-line: #a9e6bd;
    --empty: #efecf6;
    --shadow: 0 4px 0 rgba(111, 95, 224, 0.10), 0 10px 28px rgba(111, 95, 224, 0.16);
    --r: 14px;
  }

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

  body {
    font-family: 'Galmuri11', 'DungGeunMo', sans-serif;
    color: var(--ink);
    background:
      radial-gradient(1100px 500px at 85% 108%, rgba(255, 214, 240, .55), transparent 60%),
      radial-gradient(900px 420px at 8% 112%, rgba(255, 219, 242, .5), transparent 60%),
      linear-gradient(178deg, var(--sky1) 0%, var(--sky2) 38%, var(--sky3) 74%, var(--sky4) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 28px clamp(14px, 3vw, 44px) 40px;
  }

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

  /* ── 하늘 데코 ── */
  #sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
  .sky-star { position: absolute; color: #fff; text-shadow: 0 0 6px rgba(255,255,255,.9); animation: twinkle 3.2s ease-in-out infinite; }
  .cloud { position: absolute; background: rgba(255,255,255,.5); filter: blur(22px); border-radius: 999px; }
  .moon { position: absolute; top: 22px; left: 3vw; font-size: 84px; line-height: 1; filter: drop-shadow(0 0 22px rgba(255,233,168,.8)); animation: floaty 6s ease-in-out infinite; }
  .shooting { position: absolute; top: 60px; right: 6vw; width: 130px; height: 3px; background: linear-gradient(90deg, transparent, #fff); transform: rotate(-18deg); border-radius: 3px; opacity: .85; }
  .shooting::after { content: '✦'; position: absolute; right: -8px; top: -9px; color: var(--star); font-size: 18px; }
  @keyframes twinkle { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @media (prefers-reduced-motion: reduce) { .sky-star, .moon, .orb, .wand { animation: none; } }

  main { position: relative; z-index: 1; max-width: 1500px; margin: 0 auto; }

  /* ── 헤더 ── */
  .hero { text-align: center; margin-bottom: 26px; }
  .hero h1 {
    font-family: 'DungGeunMo', 'Galmuri11', sans-serif;
    font-size: clamp(36px, 5vw, 56px); color: #fff; letter-spacing: 2px;
    text-shadow: 3px 3px 0 var(--accent-deep), 6px 6px 0 rgba(111,95,224,.35), 0 0 30px rgba(255,255,255,.5);
  }
  .hero h1 .deco { font-size: .7em; vertical-align: middle; text-shadow: none; }
  .hero .tagline {
    display: inline-block; margin-top: 12px; background: rgba(255,255,255,.82);
    border: 2px solid var(--line-strong); border-radius: 999px; padding: 6px 18px;
    font-size: 13px; box-shadow: 0 3px 0 rgba(111,95,224,.12);
  }

  /* ── 패널 공통 ── */
  .panel { background: var(--panel); border: 2px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); }
  .panel-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; font-size: 15px; font-weight: 700; }
  .panel-head .spacer, .spacer { flex: 1; }

  .row-top { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(300px, .9fr); gap: 22px; align-items: stretch; }
  .row-bottom { display: grid; grid-template-columns: 1.6fr 1.15fr .85fr; gap: 22px; align-items: stretch; margin-top: 22px; }
  @media (max-width: 1280px) { .row-top, .row-bottom { grid-template-columns: 1fr; } }

  /* ── 메인 윈도우 ── */
  .window { overflow: hidden; display: flex; flex-direction: column; }
  .titlebar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 2px solid var(--line); background: rgba(255,255,255,.6); }
  .titlebar i { width: 12px; height: 12px; border-radius: 50%; }
  .titlebar i:nth-child(1) { background: #ff8a80; }
  .titlebar i:nth-child(2) { background: #ffd966; }
  .titlebar i:nth-child(3) { background: #9ae6a8; }
  .window-body { display: grid; grid-template-columns: 200px minmax(0,1fr) 264px; gap: 14px; padding: 14px; flex: 1; }
  @media (max-width: 1100px) { .window-body { grid-template-columns: 1fr; } }
  /* 세 칼럼을 각각 분리된 카드로 */
  .window-body > .sidebar, .window-body > .cal, .window-body > .daypane {
    border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 4px 14px rgba(74,65,119,.06);
  }

  /* 사이드바 */
  .sidebar { padding: 16px 12px; background: rgba(248,244,255,.6); }
  .sidebar .logo { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; padding: 4px 8px 14px; }
  .side-sec { margin-top: 14px; border-top: 2px dashed var(--line); padding-top: 12px; }
  .side-sec h4 { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; padding: 0 8px 8px; }
  .repo-card { border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; margin: 0 4px 8px; font-size: 12px; }
  .repo-card .name { display: flex; gap: 6px; align-items: center; font-weight: 700; margin-bottom: 6px; word-break: break-all; }
  .repo-card .name a { color: inherit; text-decoration: none; }
  .repo-card .name a:hover { text-decoration: underline; }
  .chip-btn { border: none; cursor: pointer; font: inherit; }
  .chip-btn:hover { filter: brightness(0.96); }
  .h4-btn { border: none; background: none; cursor: pointer; font-size: 12px; padding: 0 2px; opacity: 0.7; }
  .h4-btn:hover { opacity: 1; }
  .gh-items { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
  .gh-h { font-size: 10px; font-weight: 700; color: var(--ink-3); margin: 4px 0 2px; }
  .gh-item { display: flex; align-items: center; gap: 4px; padding: 2px 0; font-size: 11px; }
  .gh-item a { flex: 1; color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gh-item a:hover { text-decoration: underline; }
  .gh-due { font-size: 9px; color: var(--accent-deep); white-space: nowrap; }
  .gh-act { border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 10px; padding: 1px 5px; white-space: nowrap; }
  .gh-act:hover { background: var(--accent); color: #fff; }
  .gh-hint { font-size: 10px; color: var(--ink-3); margin: 4px 0 0; }
  .gh-mark { font-size: 10px; }
  .gh-sched time { font-size: 12px; }
  .dlg-note { font-size: 11px; color: var(--ink-3); line-height: 1.5; margin: 0 0 10px; }
  .chip { display: inline-block; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 1px 8px; font-size: 11px; color: var(--ink-2); background: var(--panel-alt); margin-right: 4px; }
  .mini-x { border: none; background: none; color: var(--ink-3); cursor: pointer; font-size: 12px; margin-left: auto; }
  .mini-x:hover { color: #e5738c; }
  .side-form { display: flex; gap: 5px; margin: 2px 4px 0; }
  .side-form input { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 8px; padding: 4px 8px; font-size: 11px; background: #fff; }
  .btn-sm { border: 2px solid var(--accent); background: #fff; color: var(--accent-deep); border-radius: 8px; font-size: 11px; padding: 3px 9px; cursor: pointer; box-shadow: 0 2px 0 var(--accent-subtle); }
  .btn-sm:active { transform: translateY(1px); box-shadow: none; }
  .tag-row { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); padding: 5px 10px; margin: 0 4px 5px; background: var(--panel-alt); border: 1.5px solid var(--line); border-radius: 999px; transition: box-shadow .15s, transform .15s; }
  .tag-row:hover { box-shadow: 0 2px 8px rgba(74,65,119,.12); transform: translateY(-1px); }
  .tag-row input[type="color"] { width: 20px; height: 20px; border: none; background: none; padding: 0; cursor: pointer; }
  .tag-row input[type="text"] { flex: 1; min-width: 0; border: none; background: none; font-size: 12px; color: var(--ink-2); }
  .tag-row input[type="text"]:focus { outline: 1px dashed var(--accent); border-radius: 4px; }

  /* 캘린더 */
  .cal { padding: 18px 20px; display: flex; flex-direction: column; }
  .cal-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
  .cal-top h2 { font-family: 'DungGeunMo', sans-serif; font-size: 24px; letter-spacing: 1px; min-width: 158px; text-align: center; }
  .nav-arrow { border: none; background: none; font-size: 20px; color: var(--ink-2); cursor: pointer; padding: 0 6px; }
  .nav-arrow:hover { color: var(--accent-deep); }
  .btn-today { border: 2px solid var(--accent); color: var(--accent-deep); background: #fff; border-radius: 999px; padding: 3px 14px; font-size: 12px; cursor: pointer; box-shadow: 0 2px 0 var(--accent-subtle); }
  .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: auto repeat(6, minmax(0, 1fr)); flex: 1; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
  .cal-grid .wd { padding: 8px 0; text-align: center; font-size: 12px; color: var(--ink-2); background: var(--panel-alt); border-bottom: 2px solid var(--line); }
  .cal-grid .wd.sun { color: #e5738c; }
  .cell { min-height: 86px; padding: 7px 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 13px; position: relative; cursor: pointer; overflow: hidden; }
  .cell:hover { background: var(--accent-subtle); }
  .cell:nth-child(-n+14) { border-top: none; }
  .cell:nth-child(7n+1) { border-left: none; }
  .cell.dim { color: var(--ink-3); background: #fbf9fe; }
  .cell.sun .d { color: #e5738c; }
  .cell .d { font-weight: 700; }
  .cell .star-b { position: absolute; top: 5px; right: 6px; font-size: 11px; }
  .cell .evs { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
  .cell .ev-bar { font-size: 10.5px; line-height: 1.5; padding: 1px 5px 1px 6px; border-radius: 4px; border-left: 3px solid; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cell .ev-more { font-size: 9px; color: var(--ink-3); padding-left: 4px; }
  .cell.sel .ev-bar, .cell.sel .ev-more { color: #4a4177; }
  .cell.sel { background: var(--accent); border-radius: 10px; color: #fff; box-shadow: inset 0 0 0 2px var(--accent-deep); }
  .cell.sel .d { color: #fff; }
  .cell.today-ring { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 10px; }

  /* 오늘(선택일) 패널 */
  .daypane { padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: rgba(252,250,255,.7); }
  .daypane h3 { font-size: 16px; display: flex; align-items: center; gap: 7px; }
  .day-box { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; transition: transform .15s, box-shadow .15s; }
  .day-box:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74,65,119,.10); }
  .day-box h5 { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; display: flex; align-items: center; }
  .sched { display: flex; gap: 8px; font-size: 13px; padding: 4px 2px; align-items: baseline; }
  .sched time { color: var(--ink-2); font-variant-numeric: tabular-nums; flex: none; }
  .sched .tagdot { width: 11px; height: 11px; border-radius: 4px; flex: none; align-self: center; box-shadow: inset 0 1px 1px rgba(255,255,255,.6), 0 1px 2px rgba(74,65,119,.28); }
  .empty-note { font-size: 12px; color: var(--ink-3); padding: 2px; }
  .routine { display: flex; align-items: center; gap: 8px; font-size: 12.5px; border: 2px solid; border-radius: 10px; padding: 7px 10px; margin-bottom: 7px; }
  .routine time { margin-left: auto; color: var(--ink-2); flex: none; }
  .routine .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid; flex: none; display: grid; place-items: center; font-size: 11px; cursor: pointer; background: #fff; color: transparent; }
  .routine .ck.on { background: var(--accent); border-color: var(--accent-deep); color: #fff; }
  .routine.k-alert { background: var(--alert-bg); border-color: var(--alert-line); }
  .routine.k-ai { background: var(--ai-bg); border-color: var(--ai-line); }
  .routine.k-habit { background: var(--ok-bg); border-color: var(--ok-line); }
  .routine.off { opacity: .45; }
  .sumline { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 5px 2px; }
  .sumline b { margin-left: auto; font-size: 15px; }
  .btn-add { margin-top: auto; align-self: flex-end; background: var(--accent); color: #fff; border: none; font-size: 14px; padding: 10px 22px; border-radius: 999px; cursor: pointer; box-shadow: 0 3px 0 var(--accent-deep); }
  .btn-add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }

  /* ── 10분 트래커 ── */
  .tracker { padding-bottom: 14px; }
  .tracker .range { font-size: 12px; color: var(--ink-2); padding: 0 16px 8px; }
  .trk-grid { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; user-select: none; touch-action: none; }
  .trk-row { display: flex; align-items: center; gap: 4px; }
  .trk-row.midnight { border-top: 2px dashed var(--line-strong); padding-top: 8px; margin-top: 4px; }
  .trk-row.day2 .h { color: var(--accent-deep); }
  .trk-row .h { width: 26px; border: none; background: none; padding: 0; text-align: left; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; cursor: pointer; }
  .trk-row .h:hover { color: var(--accent-deep); font-weight: 700; }
  .blk { flex: 1; aspect-ratio: 1; max-width: 28px; border-radius: 5px; border: 1.5px solid rgba(74,65,119,.10); background: var(--empty); cursor: pointer; }
  .blk:hover { box-shadow: inset 0 0 0 2px var(--accent); }
  .blk.now { outline: 2px solid var(--accent-deep); outline-offset: 1px; }
  .paint-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
  .pchip { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2); border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; cursor: pointer; }
  .pchip i { width: 11px; height: 11px; border-radius: 3px; }
  .pchip.on { border-color: var(--accent-deep); background: var(--accent-subtle); color: var(--ink); box-shadow: 0 2px 0 var(--accent-subtle); }

  /* ── 위클리 ── */
  .wk-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; font-size: 14px; font-weight: 700; }
  .wk-range { font-weight: 400; font-size: 12px; color: var(--ink-2); }
  .wk-cal { display: grid; grid-template-columns: 44px repeat(7, 1fr); padding: 0 14px 8px; font-size: 11px; }
  .wk-cal .col-h { text-align: center; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid var(--line); }
  .wk-cal .col-h.is-today { color: var(--accent-deep); font-weight: 700; }
  .wk-times { position: relative; }
  .wk-times span { position: absolute; right: 6px; transform: translateY(-50%); color: var(--ink-3); font-variant-numeric: tabular-nums; }
  .wk-col { position: relative; border-left: 1px dashed var(--line); }
  .wk-body { display: grid; grid-template-columns: 44px repeat(7, 1fr); padding: 0 14px 6px; height: 344px; }
  .evt { position: absolute; left: 3px; right: 3px; border-radius: 7px; padding: 3px 5px; font-size: 10px; line-height: 1.25; color: var(--ink); border: 1.5px solid rgba(74,65,119,.14); overflow: hidden; cursor: pointer; }
  .evt:hover { box-shadow: 0 0 0 2px var(--accent); }

  /* ── 대시보드 ── */
  .dash { display: flex; flex-direction: column; }
  .dash-stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; padding: 4px 16px 12px; }
  .stat { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; font-size: 11px; color: var(--ink-2); transition: transform .15s, box-shadow .15s; }
  .stat:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(74,65,119,.10); }
  .stat b { display: block; font-size: 18px; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
  .stat small { font-size: 11px; color: var(--ink-3); }
  .xpbar { display: block; height: 9px; background: var(--panel-alt); border-radius: 999px; margin-top: 8px; overflow: hidden; }
  .xpbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #b3a8f8); border-radius: 999px; transition: width .2s ease-out; }
  .dash-lower { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; padding: 0 16px 16px; flex: 1; }
  .donut-box { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; }
  .donut-box h5 { font-size: 12px; color: var(--ink-2); margin-bottom: 10px; }
  .donut-flex { display: flex; gap: 14px; align-items: center; }
  .donut {
    width: 104px; height: 104px; border-radius: 50%; flex: none; background: var(--empty);
    -webkit-mask: radial-gradient(circle 33px at 50% 50%, transparent 98%, #000 100%);
            mask: radial-gradient(circle 33px at 50% 50%, transparent 98%, #000 100%);
  }
  .donut-lg { font-size: 11.5px; display: flex; flex-direction: column; gap: 7px; color: var(--ink-2); flex: 1; }
  .donut-lg span { display: flex; align-items: center; gap: 6px; }
  .donut-lg b { margin-left: auto; color: var(--ink); }
  .donut-lg i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
  .auto-card { border: 2px solid var(--ai-line); border-radius: 12px; background: var(--ai-bg); padding: 12px; font-size: 11.5px; color: var(--ink-2); }
  .auto-card h5 { font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-bottom: 8px; }
  .auto-card li { margin: 0 0 5px 16px; }
  .auto-card .wand { font-size: 22px; display: block; text-align: right; animation: floaty 4.5s ease-in-out infinite; }

  /* ── Claude / 알람 카드 ── */
  .stack { display: flex; flex-direction: column; gap: 18px; height: 100%; }
  .claude-card { border-color: var(--ai-line); background: linear-gradient(180deg, #f6f1ff, #fdfbff); flex: 1; display: flex; flex-direction: column; }
  .claude-card .orb { margin-top: auto; }
  .badge-ai { background: var(--accent); color: #fff; font-size: 10px; border-radius: 6px; padding: 2px 7px; }
  .claude-card .desc { font-size: 11.5px; color: var(--ink-2); padding: 0 16px 10px; line-height: 1.6; }
  .rec { display: flex; gap: 9px; padding: 6px 16px; font-size: 12px; align-items: center; }
  .rec .ic { flex: none; }
  .rec .body { flex: 1; }
  .rec b { display: block; font-size: 11px; color: var(--ink-2); font-weight: 400; }
  .claude-card .orb { font-size: 30px; text-align: right; padding: 0 18px 12px; animation: floaty 5.5s ease-in-out infinite; }
  .med-card { border-color: var(--alert-line); background: linear-gradient(180deg, #fff2f5, #fffafb); }
  .med-row { display: flex; align-items: center; gap: 10px; padding: 4px 16px 12px; font-size: 13px; }
  .med-row .body { flex: 1; }
  .med-row time { color: var(--ink-2); font-size: 12px; display: block; }
  .toggle { width: 44px; height: 25px; border: none; background: #d8d2e8; border-radius: 999px; position: relative; flex: none; cursor: pointer; transition: background .15s; }
  .toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
  .toggle.on { background: #f2758c; }
  .toggle.on::after { left: 22px; }
  .med-form { display: flex; gap: 6px; padding: 0 16px 14px; }
  .med-form input, .med-form select { border: 2px solid var(--line); border-radius: 8px; padding: 4px 7px; font-size: 11px; background: #fff; min-width: 0; }
  .med-form input[type="text"] { flex: 1; }

  /* ── 모달 ── */
  dialog { margin: auto; border: 2px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); background: var(--panel-solid); color: var(--ink); padding: 20px; width: min(360px, 92vw); }
  dialog[open] { animation: pop-in .18s cubic-bezier(.2,.8,.3,1.3); }
  @keyframes pop-in { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  dialog::backdrop { background: rgba(74, 65, 119, .35); backdrop-filter: blur(3px); }
  dialog h3 { font-size: 16px; margin-bottom: 14px; }
  .f-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 12px; color: var(--ink-2); }
  .f-row input, .f-row select, .f-row textarea { border: 2px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px; background: #fff; font-family: inherit; }
  .f-row textarea { resize: vertical; min-height: 40px; line-height: 1.5; }
  .seg { display: flex; gap: 3px; margin-bottom: 12px; border: 2px solid var(--line); border-radius: 999px; padding: 3px; background: var(--panel-alt); }
  .seg-btn { flex: 1; border: none; background: none; font: inherit; font-size: 12px; color: var(--ink-2); padding: 6px 0; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; }
  .seg-btn.on { background: var(--accent); color: #fff; }
  .sched-desc { font-size: 11px; color: var(--ink-3); line-height: 1.45; padding: 1px 2px 5px 18px; white-space: pre-wrap; word-break: break-word; }
  .sched time.notime { color: var(--ink-3); font-size: 11px; }
  .evt.evt-allday { height: 16px; padding: 1px 5px; font-size: 9.5px; opacity: .95; }
  .f-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .f-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
  .btn-ghost { border: 2px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; }
  .btn-primary { border: none; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 18px; font-size: 13px; cursor: pointer; box-shadow: 0 3px 0 var(--accent-deep); }

  /* ── 토스트 ── */
  #toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
  .toast { background: var(--panel-solid); border: 2px solid var(--alert-line); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 18px; font-size: 13px; display: flex; gap: 9px; align-items: center; }

  .foot { text-align: center; margin-top: 34px; font-size: 15px; color: #fff; text-shadow: 0 2px 0 rgba(111,95,224,.4); }
  #selftest { position: fixed; bottom: 4px; right: 8px; font-size: 10px; color: var(--ink-3); z-index: 100; }

  /* ── 장기 계획 ── */
  .plan-mark { font-size: 9px; margin-left: 1px; }
  .row-plans { margin-top: 16px; }
  .plans-panel { padding-bottom: 8px; }
  .plan-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0 16px 12px; }
  .plan-card { border: 2px solid var(--line); border-left-width: 5px; border-radius: 12px; background: #fff; padding: 12px; }
  .plan-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
  .plan-title { font-size: 13px; font-weight: 700; flex: 1; word-break: break-word; }
  .plan-dday { font-size: 11px; font-weight: 700; color: var(--accent-deep); background: var(--accent-subtle); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
  .plan-bar { height: 8px; border-radius: 999px; background: var(--empty); overflow: hidden; }
  .plan-bar i { display: block; height: 100%; border-radius: 999px; transition: width .25s; }
  .plan-prog { font-size: 10px; color: var(--ink-3); margin: 4px 0 8px; }
  .plan-steps { display: flex; flex-direction: column; gap: 5px; }
  .pstep { display: flex; align-items: center; gap: 7px; font-size: 12px; }
  .pstep .ck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; font-size: 10px; cursor: pointer; background: #fff; color: transparent; }
  .pstep .ck.on { background: var(--accent); border-color: var(--accent-deep); color: #fff; }
  .pstep-t { flex: 1; word-break: break-word; }
  .pstep-t time { font-size: 10px; color: var(--ink-3); margin-left: 3px; }
  .pstep.done .pstep-t { text-decoration: line-through; color: var(--ink-3); }
  .plan-addstep { display: flex; gap: 5px; margin-top: 9px; }
  .plan-addstep input[type="text"] { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 8px; padding: 4px 7px; font-size: 11px; background: #fff; font-family: inherit; }
  .plan-addstep input[type="date"] { border: 2px solid var(--line); border-radius: 8px; padding: 3px 5px; font-size: 10px; background: #fff; font-family: inherit; }
  .dayplan { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
  .dayplan .ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; font-size: 11px; cursor: pointer; background: #fff; color: transparent; }
  .dayplan .ck:hover { border-color: var(--accent-deep); }
  .dp-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .dp-title { font-size: 12px; font-weight: 700; word-break: break-word; }
  .dp-title time { font-size: 10px; font-weight: 700; color: var(--accent-deep); margin-left: 4px; }
  .dp-next { font-size: 11px; color: var(--ink-2); word-break: break-word; }

  /* 로그인 게이트 */
  #loginGate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(74, 65, 119, 0.5); backdrop-filter: blur(6px); }
  #loginGate[hidden] { display: none; }
  .login-card { width: 100%; max-width: 320px; background: var(--panel-solid); border: 2px solid var(--line-strong); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 22px; text-align: center; }
  .login-card h2 { font-size: 20px; color: var(--ink); margin: 0 0 4px; }
  .login-card input { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: #fff; }
  .login-card .btn-primary { width: 100%; margin-top: 12px; }
  .login-error { color: #d9556f; font-size: 12px; margin: 8px 0 0; }
