﻿:root {
      --bg: #f8f7f4;
      --paper: #ffffff;
      --paper-soft: #fafaf8;
      --line: #e9e6e0;
      --line-strong: #ddd9d1;
      --text: #1c1f26;
      --muted: #71798a;
      --faint: #9aa1b0;

      --blue: #2f6fed;
      --blue-soft: #e9effd;
      --green: #168a5a;
      --green-soft: #e2f3eb;
      --amber: #b87514;
      --amber-soft: #fbf0da;
      --red: #d4493e;
      --red-soft: #fbe9e7;
      --violet: #7a4fd9;
      --violet-soft: #efe9fb;
      --pink: #d6437e;
      --pink-soft: #fbe8f0;
      --gray-chip: #5d6573;
      --gray-soft: #eeedea;

      --radius-lg: 18px;
      --radius-md: 13px;
      --radius-sm: 10px;
      --shadow-sm: 0 1px 2px rgba(25, 28, 40, 0.04), 0 4px 16px rgba(25, 28, 40, 0.05);
      --shadow-md: 0 2px 6px rgba(25, 28, 40, 0.06), 0 10px 30px rgba(25, 28, 40, 0.08);
      --desktop-app-zoom: 0.8;

      color-scheme: light;
      font-family:
        "Pretendard Variable",
        "Pretendard",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        "Malgun Gothic",
        system-ui,
        sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    body.theme-dark {
      --bg: #171a22;
      --paper: #20242d;
      --paper-soft: #262b35;
      --line: #3d4552;
      --line-strong: #4d5665;
      --text: #eef2f8;
      --muted: #b4bdca;
      --faint: #8e98a8;
      --blue-soft: #24385f;
      --green-soft: #203c31;
      --amber-soft: #44341e;
      --red-soft: #452b29;
      --violet-soft: #382d55;
      --pink-soft: #472d3a;
      --gray-soft: #2d333d;
      --gray-chip: #b3bac8;
      --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.2);
      --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.34), 0 18px 42px rgba(0, 0, 0, 0.28);
      color-scheme: dark;
    }

    body.theme-dark .sidebar,
    body.theme-dark .card,
    body.theme-dark .archive-gantt,
    body.theme-dark .archive-gantt-task,
    body.theme-dark .archive-gantt-head,
    body.theme-dark .drawer-comment,
    body.theme-dark .file-drop-zone,
    body.theme-dark .drawer-inline-form input,
    body.theme-dark .drawer-comment-form textarea,
    body.theme-dark .decision-box textarea,
    body.theme-dark .mini-select,
    body.theme-dark .archive-filter-row select,
    body.theme-dark .topbar .mini-select {
      background-color: var(--paper);
      color: var(--text);
    }

    body.theme-dark .archive-filter-row,
    body.theme-dark .archive-period-tools,
    body.theme-dark .archive-gantt-track,
    body.theme-dark .timeline-grid,
    body.theme-dark .month-card,
    body.theme-dark .game,
    body.theme-dark .file-item {
      background-color: var(--paper-soft);
    }

    body.theme-dark .modal input,
    body.theme-dark .modal select,
    body.theme-dark .modal textarea {
      border-color: var(--line-strong);
      background: var(--paper-soft);
      color: var(--text);
      box-shadow: none;
    }

    body.theme-dark .modal input::placeholder,
    body.theme-dark .modal textarea::placeholder {
      color: var(--faint);
    }

    body.theme-dark .modal input[type="date"],
    body.theme-dark .modal input[type="time"],
    body.theme-dark .modal select {
      color-scheme: dark;
    }

    body.theme-dark .modal > .modal-actions {
      background: rgba(25, 30, 39, 0.94);
    }

    body.theme-dark .schedule-attachment-drop,
    body.theme-dark .modal-attachment-drop {
      border-color: var(--line-strong);
      background: linear-gradient(180deg, var(--paper), var(--paper-soft));
    }

    body.theme-dark .modal-attachment-drop span {
      background: var(--gray-soft);
      color: #9bbcff;
    }

    body.theme-dark .file-drop-zone strong {
      color: var(--text);
    }

    body.theme-dark .file-drop-zone em,
    body.theme-dark .file-drop-zone span {
      color: var(--muted);
    }

    body.theme-dark .person-list {
      border-color: var(--line-strong);
      background: var(--paper);
    }

    body.theme-dark .person-choice {
      border-color: var(--line-strong);
      background: var(--paper-soft);
      color: var(--muted);
    }

    body.theme-dark .person-choice input {
      accent-color: var(--blue);
    }

    body.theme-dark .person-choice small {
      color: var(--muted);
    }

    body[data-app-scale="compact"],
    body[data-app-scale="normal"],
    body:not([data-app-scale]) {
      --desktop-app-zoom: 0.8;
    }

    body[data-app-scale="large"] {
      --desktop-app-zoom: 0.96;
    }

    /* ---------- 커버 ---------- */

    .cover {
      position: relative;
      height: 188px;
      background:
        radial-gradient(820px 420px at 10% -12%, rgba(122, 79, 217, 0.6), transparent 62%),
        radial-gradient(720px 380px at 72% -6%, rgba(47, 111, 237, 0.55), transparent 60%),
        radial-gradient(560px 320px at 96% 96%, rgba(255, 141, 102, 0.38), transparent 62%),
        radial-gradient(420px 260px at 38% 110%, rgba(64, 199, 175, 0.22), transparent 60%),
        linear-gradient(158deg, #0f1430 0%, #1b1442 54%, #2a1a4e 100%);
    }

    .cover::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1.6px 1.6px at 11% 28%, rgba(255, 255, 255, 0.95), transparent 70%),
        radial-gradient(1.2px 1.2px at 23% 64%, rgba(255, 255, 255, 0.7), transparent 70%),
        radial-gradient(1.8px 1.8px at 34% 22%, rgba(255, 255, 255, 0.85), transparent 70%),
        radial-gradient(1.1px 1.1px at 47% 52%, rgba(255, 255, 255, 0.6), transparent 70%),
        radial-gradient(1.5px 1.5px at 58% 18%, rgba(255, 255, 255, 0.9), transparent 70%),
        radial-gradient(1.1px 1.1px at 66% 58%, rgba(255, 255, 255, 0.55), transparent 70%),
        radial-gradient(1.7px 1.7px at 78% 30%, rgba(255, 255, 255, 0.9), transparent 70%),
        radial-gradient(1.2px 1.2px at 87% 66%, rgba(255, 255, 255, 0.65), transparent 70%),
        radial-gradient(1.4px 1.4px at 93% 20%, rgba(255, 255, 255, 0.8), transparent 70%),
        radial-gradient(1.2px 1.2px at 6% 74%, rgba(255, 255, 255, 0.5), transparent 70%),
        linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.055) 50%, transparent 58%);
    }

    .cover::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    }

    .cover-moon {
      position: absolute;
      top: 32px;
      right: 11%;
      width: 58px;
      height: 58px;
      border-radius: 50%;
      background: radial-gradient(circle at 36% 32%, #fff7e8, #f3d9a4 58%, #d9ab5e);
      box-shadow: 0 0 44px 10px rgba(247, 219, 158, 0.32);
      opacity: 0.92;
    }

    /* ---------- 페이지 본문 ---------- */

    .page {
      width: min(1380px, calc(100vw - 48px));
      margin: 0 auto;
      padding-bottom: 52px;
    }

    .page > * {
      animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    }

    .page > *:nth-child(1) { animation-delay: 0.02s; }
    .page > *:nth-child(2) { animation-delay: 0.07s; }
    .page > *:nth-child(3) { animation-delay: 0.12s; }
    .page > *:nth-child(4) { animation-delay: 0.17s; }
    .page > *:nth-child(5) { animation-delay: 0.22s; }
    .page > *:nth-child(6) { animation-delay: 0.27s; }
    .page > *:nth-child(7) { animation-delay: 0.32s; }
    .page > *:nth-child(8) { animation-delay: 0.37s; }
.page > *:nth-child(9) { animation-delay: 0.42s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

body.dashboard-ready .page > * {
  animation: none !important;
}

body.dashboard-ready .progress span {
  animation: none !important;
}

    /* ---------- 히어로 ---------- */

    .hero { position: relative; }

    .page-icon {
      display: grid;
      place-items: center;
      width: 72px;
      height: 72px;
      margin-top: -38px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: var(--paper);
      box-shadow: var(--shadow-md);
      font-size: 38px;
      line-height: 1;
    }

    .crumb {
      margin: 12px 0 4px;
      color: var(--faint);
      font-size: 12.5px;
      font-weight: 600;
    }

    .crumb b {
      color: var(--muted);
      font-weight: 700;
    }

    h1 {
      margin: 0;
      font-size: clamp(25px, 2.6vw, 34px);
      font-weight: 800;
      letter-spacing: -0.02em;
      line-height: 1.18;
    }

    .hl {
      padding: 0 2px;
      background: linear-gradient(transparent 62%, #ffe09c 62%);
      border-radius: 2px;
    }

    .hero-sub {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 12px;
      margin: 9px 0 0;
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 600;
    }

    .hero-sub b {
      color: var(--text);
      font-weight: 800;
    }

    .hero-sub .sep {
      width: 3px;
      height: 3px;
      border-radius: 999px;
      background: var(--faint);
    }

    /* ---------- 겹친 마일스톤 ---------- */

    .focus-bar {
      margin-top: 12px;
      margin-bottom: 14px;
      padding: 10px 12px 12px;
      border: 1px solid #dce4f4;
      border-radius: var(--radius-md);
      background:
        linear-gradient(95deg, rgba(47, 111, 237, 0.07), rgba(122, 79, 217, 0.05)),
        var(--paper);
      box-shadow: var(--shadow-sm);
    }

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

    .fb-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
    }

    .fb-label b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .fb-label em {
      display: inline-grid;
      min-width: 22px;
      height: 22px;
      place-items: center;
      padding: 0 7px;
      border-radius: 999px;
      background: #edf3ff;
      color: var(--blue);
      font-style: normal;
      font-size: 11px;
      font-weight: 900;
    }

    .fb-meta {
      flex: none;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .fb-title {
      display: flex;
      align-items: center;
      min-width: 0;
      font-size: 13.5px;
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    .fb-title .fb-game {
      display: grid;
      place-items: center;
      flex: none;
      width: 22px;
      height: 22px;
      margin-right: 7px;
      border-radius: 7px;
      background: var(--fb-soft, var(--blue-soft));
      color: var(--fb-tone, var(--blue));
      font-size: 11px;
      font-weight: 900;
    }

    .fb-copy {
      min-width: 0;
      display: flex;
      align-items: baseline;
      gap: 7px;
    }

    .fb-copy b,
    .fb-copy em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-style: normal;
    }

    .fb-copy b {
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 900;
    }

    .fb-copy em {
      color: var(--text);
      font-size: 13.5px;
      font-weight: 900;
    }

    .fb-milestones {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
      align-items: center;
      width: 100%;
      min-width: 0;
      gap: 8px;
    }

    .fb-milestone {
      display: grid;
      grid-template-columns: minmax(140px, 1fr) minmax(82px, 110px) auto;
      align-items: center;
      min-width: 0;
      gap: 10px;
      padding: 9px 10px;
      border: 1px solid rgba(35, 45, 70, 0.08);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.66);
    }

    .fb-milestone:first-child {
      padding-left: 10px;
    }

    .fb-milestone.tone-blue { --fb-tone: var(--blue); --fb-soft: var(--blue-soft); }
    .fb-milestone.tone-violet { --fb-tone: var(--violet); --fb-soft: var(--violet-soft); }
    .fb-milestone.tone-green { --fb-tone: var(--green); --fb-soft: var(--green-soft); }
    .fb-milestone.tone-amber { --fb-tone: var(--amber); --fb-soft: var(--amber-soft); }
    .fb-milestone.tone-red { --fb-tone: var(--red); --fb-soft: var(--red-soft); }

    .fb-progress {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .fb-progress .progress { flex: 1; height: 7px; }

    .fb-extra {
      margin-top: 8px;
    }

    .fb-extra summary {
      width: max-content;
      max-width: 100%;
      cursor: pointer;
      list-style: none;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.74);
      border: 1px solid rgba(35, 45, 70, 0.08);
      color: var(--muted);
      padding: 5px 10px;
      font-size: 11px;
      font-weight: 900;
    }

    .fb-extra summary::-webkit-details-marker {
      display: none;
    }

    .fb-extra[open] summary {
      margin-bottom: 8px;
      color: var(--blue);
      background: #edf3ff;
      border-color: #d2defa;
    }

    .fb-extra-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
      gap: 8px;
    }

    .progress {
      overflow: hidden;
      height: 7px;
      border-radius: 999px;
      background: #edeef2;
    }

    .progress span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, #5b8cff, var(--blue));
      animation: fill 1.1s 0.3s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    }

    @keyframes fill { from { width: 0; } }

    .progress-num {
      font-size: 11.5px;
      font-weight: 800;
      color: var(--fb-tone, var(--blue));
    }

    .fb-milestone .progress span {
      background: var(--fb-tone, var(--blue));
    }

    .fb-due {
      justify-self: end;
      white-space: nowrap;
    }

    /* ---------- 성과 지표 ---------- */

    .hero-title-row {
      display: flex;
      align-items: flex-end;
      gap: 14px;
      flex-wrap: wrap;
    }

    .hero-title-row > div:first-child {
      min-width: 0;
    }

    .hero-title-row .hero-tools {
      transform: translateY(2px);
    }

    .kpi-tabs,
    .archive-tabs,
    .archive-folder-tabs,
    .library-tabs,
    .gantt-zoom-tabs {
      display: inline-flex;
      gap: 6px;
      padding: 4px;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
    }

    .kpi-tabs button,
    .archive-tabs button,
    .archive-folder-tabs button,
    .library-tabs button,
    .gantt-zoom-tabs button {
      min-height: 30px;
      padding: 0 13px;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: rgba(255, 255, 255, 0.82);
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .kpi-tabs button.active,
    .archive-tabs button.active,
    .archive-folder-tabs button.active,
    .library-tabs button.active,
    .gantt-zoom-tabs button.active {
      background: #fff;
      color: var(--blue);
      box-shadow: 0 8px 18px rgba(15, 18, 35, 0.16);
    }

    .kpi-overview {
      display: grid;
      grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 0.8fr) minmax(300px, 1fr);
      gap: 12px;
      align-items: center;
      margin: 12px 0 14px;
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .kpi-overview-main {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }

    .kpi-overview-main strong {
      display: block;
      font-size: 18px;
      font-weight: 950;
    }

    .kpi-overview-main > div span {
      display: block;
      margin-top: 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .kpi-block-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .kpi-block {
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .kpi-block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .kpi-block-head > div {
      display: grid;
      grid-template-columns: 32px minmax(0, 1fr);
      column-gap: 10px;
      align-items: center;
      min-width: 0;
    }

    .kpi-block-head .game-ico {
      grid-row: span 2;
      display: grid;
      place-items: center;
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
      font-weight: 900;
    }

    .kpi-block-head strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 15px;
      font-weight: 950;
    }

    .kpi-block-head em {
      color: var(--muted);
      font-size: 11.5px;
      font-style: normal;
      font-weight: 800;
    }

    .kpi-support-line {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      min-width: 0;
      margin: 8px 0 10px;
    }

    .kpi-support-line span {
      display: grid;
      gap: 2px;
      min-width: 0;
      min-height: 42px;
      padding: 7px 8px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
    }

    .kpi-support-line b {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-support-line em,
    .kpi-person-support {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-ring {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      flex: none;
      width: 58px;
      height: 58px;
      border-radius: 999px;
      background:
        conic-gradient(var(--blue) calc(var(--pct) * 1%), #edf0f5 0);
    }

    .kpi-ring::before {
      content: "";
      position: absolute;
      inset: 7px;
      border-radius: inherit;
      background: var(--paper);
    }

    .kpi-ring b {
      position: relative;
      z-index: 1;
      color: var(--text);
      font-size: 15px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-ring b::after {
      content: "%";
      margin-left: 1px;
      font-size: 9px;
      font-weight: 900;
    }

    .kpi-ring em {
      position: relative;
      z-index: 1;
      color: var(--muted);
      font-size: 9px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-stack {
      overflow: hidden;
      display: flex;
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: #edf0f5;
    }

    .kpi-stack span {
      min-width: 4px;
      height: 100%;
    }

    .kpi-stack .green { background: var(--green); }
    .kpi-stack .blue { background: var(--blue); }
    .kpi-stack .amber { background: var(--amber); }
    .kpi-stack .gray { background: #b7bac2; }
    .kpi-stack .red { background: var(--red); }
    .kpi-stack .violet { background: var(--violet); }

    .kpi-person-list,
    .kpi-project-list,
    .kpi-task-table {
      display: grid;
      gap: 8px;
      margin-top: 12px;
    }

    .kpi-person-row {
      width: 100%;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
    }

    .kpi-person-name {
      display: flex;
      align-items: baseline;
      gap: 7px;
      min-width: 0;
    }

    .kpi-person-stat {
      display: grid;
      gap: 6px;
      justify-items: end;
      text-align: right;
    }

    .kpi-person-count b {
      font-size: 18px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-person-count i {
      margin-left: 2px;
      color: var(--muted);
      font-style: normal;
      font-size: 11px;
      font-weight: 800;
    }

    .kpi-person-flags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
      justify-content: flex-end;
    }

    .kpi-flag {
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 10.5px;
      font-weight: 850;
      line-height: 1.5;
    }

    .kpi-flag.red { background: var(--red-soft, #fde8e6); color: var(--red); }
    .kpi-flag.amber { background: var(--amber-soft, #fbf0d9); color: #9a6300; }
    .kpi-flag.violet { background: var(--violet-soft, #ece8fb); color: var(--violet); }
    .kpi-flag.ok { background: var(--green-soft, #e3f3e9); color: var(--green); }

    .kpi-person-row:hover {
      border-color: rgba(47, 111, 237, 0.2);
      background: #fff;
      box-shadow: var(--shadow-sm);
    }

    .avatar.small {
      width: 34px;
      height: 34px;
      font-size: 11px;
    }

    .kpi-person-main {
      display: grid;
      gap: 7px;
      min-width: 0;
    }

    .kpi-person-main strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 13.5px;
      font-weight: 950;
    }

    .kpi-person-main em {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 800;
    }

    .kpi-mini-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(42px, 1fr));
      gap: 6px;
      min-width: 210px;
    }

    .kpi-mini-metrics span {
      display: grid;
      gap: 2px;
      min-height: 40px;
      padding: 6px 8px;
      border-radius: 8px;
      background: #fff;
      border: 1px solid var(--line);
    }

    .kpi-mini-metrics b {
      font-size: 15px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-mini-metrics em {
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-mini-metrics .danger b,
    .kpi-task-table .danger {
      color: var(--red);
    }

    .kpi-block.person {
      padding: 10px;
    }

    .kpi-block.person > .kpi-person-row {
      border-color: transparent;
      background: transparent;
    }

    .kpi-project-row {
      display: grid;
      grid-template-columns: 28px minmax(110px, 0.9fr) minmax(90px, 1fr) 44px;
      align-items: center;
      gap: 9px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
    }

    .kpi-project-row span {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: #fff;
    }

    .kpi-project-row strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 950;
    }

    .kpi-project-row em {
      justify-self: end;
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 900;
    }

    .kpi-detail {
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .kpi-detail-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(520px, auto);
      align-items: center;
      gap: 14px;
    }

    .kpi-person-title {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .kpi-person-title strong {
      display: block;
      font-size: 18px;
      font-weight: 950;
    }

    .kpi-person-title em {
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-person-select {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .kpi-person-select select {
      width: 100%;
      min-height: 36px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      padding: 0 10px;
      color: var(--text);
      font: inherit;
      font-size: 12.5px;
      font-weight: 850;
    }

    .kpi-detail-controls {
      display: flex;
      align-items: end;
      justify-content: flex-end;
      gap: 9px;
      min-width: 0;
    }

    .kpi-period-tools {
      display: flex;
      align-items: end;
      gap: 7px;
      min-width: 0;
    }

    .kpi-period-field {
      display: grid;
      gap: 5px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .kpi-period-field select,
    .kpi-period-field input {
      width: 100%;
      min-height: 36px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      padding: 0 10px;
      color: var(--text);
      font: inherit;
      font-size: 12.5px;
      font-weight: 850;
    }

    .kpi-period-field select {
      min-width: 132px;
    }

    .kpi-period-field input {
      min-width: 138px;
    }

    .kpi-detail-summary {
      display: grid;
      grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1fr);
      gap: 12px;
      align-items: center;
      margin-top: 14px;
    }

    .kpi-period-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 8px;
      margin-top: 14px;
    }

    .kpi-period {
      min-height: 112px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
    }

    .kpi-period strong {
      display: block;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .kpi-period b {
      display: block;
      margin: 4px 0 8px;
      font-size: 24px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-period div {
      display: grid;
      gap: 4px;
    }

    .kpi-period span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text);
      font-size: 11px;
      font-weight: 800;
    }

    .kpi-period.red { border-color: rgba(212, 73, 62, 0.2); background: rgba(212, 73, 62, 0.055); }
    .kpi-period.blue { border-color: rgba(47, 111, 237, 0.2); background: rgba(47, 111, 237, 0.055); }
    .kpi-period.amber { border-color: rgba(197, 134, 28, 0.22); background: rgba(197, 134, 28, 0.06); }
    .kpi-period.violet { border-color: rgba(122, 79, 217, 0.18); background: rgba(122, 79, 217, 0.052); }
    .kpi-period.green { border-color: rgba(18, 143, 89, 0.18); background: rgba(18, 143, 89, 0.052); }

    .kpi-task-table button {
      display: grid;
      grid-template-columns: 120px minmax(0, 1fr) 130px;
      align-items: center;
      gap: 10px;
      width: 100%;
      min-height: 42px;
      padding: 0 11px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .kpi-task-table span,
    .kpi-task-table em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-task-table strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 950;
    }

    .kpi-rate-pill,
    .kpi-detail-score {
      display: inline-grid;
      place-items: center;
      min-width: 76px;
      min-height: 38px;
      padding: 0 12px;
      border-radius: 999px;
      background: rgba(47, 111, 237, 0.1);
      color: var(--blue);
      font-size: 12px;
      font-weight: 950;
      white-space: nowrap;
    }

    .kpi-detail-score {
      gap: 1px;
      min-width: 70px;
      min-height: 54px;
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(47, 111, 237, 0.12), rgba(47, 111, 237, 0.05));
    }

    .kpi-detail-score b {
      font-size: 18px;
      line-height: 1;
    }

    .kpi-detail-score em {
      color: var(--muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-card-summary,
    .kpi-detail-focus {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin: 10px 0;
    }

    .kpi-detail-focus {
      display: grid;
      grid-template-columns: repeat(6, minmax(108px, 1fr));
      gap: 10px;
      margin: 14px 0 16px;
      padding: 10px;
      border: 1px solid rgba(47, 111, 237, 0.14);
      border-radius: 14px;
      background: linear-gradient(180deg, rgba(47, 111, 237, 0.055), rgba(255, 255, 255, 0.95));
    }

    .kpi-project-strip {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 8px;
      margin-top: 14px;
    }

    .kpi-project-mini {
      min-width: 0;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) auto;
      align-items: center;
      gap: 9px;
      min-height: 54px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
    }

    .kpi-project-mini div {
      min-width: 0;
    }

    .kpi-project-mini strong,
    .kpi-project-mini em {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .kpi-project-mini strong {
      font-size: 12px;
      font-weight: 950;
    }

    .kpi-project-mini em {
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-project-mini b {
      color: var(--blue);
      font-size: 13px;
      font-weight: 950;
    }

    .kpi-card-summary span,
    .kpi-detail-focus span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      min-height: 28px;
      padding: 0 11px;
      border: 0;
      border-radius: 999px;
      background: var(--paper-soft);
    }

    .kpi-detail-focus span {
      min-height: 66px;
      justify-content: space-between;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 8px 22px rgba(22, 34, 51, 0.06);
    }

    .kpi-detail-focus .total {
      border-color: rgba(47, 111, 237, 0.2);
      background: linear-gradient(180deg, rgba(47, 111, 237, 0.11), rgba(47, 111, 237, 0.035));
    }

    .kpi-detail-focus .done {
      border-color: rgba(18, 143, 89, 0.18);
      background: linear-gradient(180deg, rgba(18, 143, 89, 0.1), rgba(18, 143, 89, 0.035));
    }

    .kpi-detail-focus .progress {
      border-color: rgba(47, 111, 237, 0.2);
      background: linear-gradient(180deg, rgba(47, 111, 237, 0.1), rgba(47, 111, 237, 0.035));
    }

    .kpi-detail-focus .average {
      border-color: rgba(122, 79, 217, 0.18);
      background: linear-gradient(180deg, rgba(122, 79, 217, 0.09), rgba(122, 79, 217, 0.03));
    }

    .kpi-card-summary b,
    .kpi-detail-focus b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text);
      font-size: 15px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-detail-focus b {
      font-size: 24px;
    }

    .kpi-card-summary em,
    .kpi-detail-focus em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-detail-focus em {
      color: var(--text-soft);
      font-size: 11px;
      font-weight: 900;
    }

    .kpi-card-summary .green,
    .kpi-detail-focus .green {
      background: rgba(18, 143, 89, 0.055);
      color: var(--green);
    }

    .kpi-card-summary .blue {
      background: rgba(47, 111, 237, 0.055);
      color: var(--blue);
    }

    .kpi-card-summary .amber {
      background: rgba(197, 134, 28, 0.06);
      color: #9a6300;
    }

    .kpi-card-summary .violet {
      background: rgba(122, 79, 217, 0.052);
      color: var(--violet);
    }

    .kpi-card-summary .red,
    .kpi-detail-focus .danger {
      background: rgba(212, 73, 62, 0.055);
      color: var(--red);
    }

    .kpi-detail-focus .danger b,
    .kpi-detail-focus .danger em {
      color: var(--red);
    }

    .kpi-section-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin: 12px 0 8px;
    }

    .kpi-section-label strong {
      font-size: 12px;
      font-weight: 950;
    }

    .kpi-section-label span {
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 850;
      text-align: right;
    }

    .kpi-contribution-list {
      display: grid;
      gap: 8px;
    }

    .kpi-contribution-list.compact,
    .kpi-contribution-list.detail {
      gap: 7px;
    }

    .kpi-contribution-row {
      width: 100%;
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) minmax(74px, auto);
      align-items: center;
      gap: 10px;
      padding: 10px 0;
      border: 0;
      border-top: 1px solid rgba(31, 35, 48, 0.08);
      border-radius: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      text-align: left;
    }

    .kpi-contribution-row:first-child {
      border-top: 0;
    }

    button.kpi-contribution-row {
      cursor: pointer;
      transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
    }

    button.kpi-contribution-row:hover {
      border-color: rgba(47, 111, 237, 0.24);
      background: #fff;
      box-shadow: var(--shadow-sm);
    }

    .kpi-contribution-row.project {
      background: transparent;
    }

    .kpi-contribution-row .game-ico {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      font-size: 14px;
      font-weight: 900;
    }

    .kpi-contribution-main {
      display: grid;
      gap: 5px;
      min-width: 0;
    }

    .kpi-contribution-title {
      display: flex;
      align-items: baseline;
      gap: 7px;
      min-width: 0;
    }

    .kpi-contribution-title strong,
    .kpi-detail-panel > header strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 950;
    }

    .kpi-contribution-title em,
    .kpi-contribution-meta,
    .kpi-detail-panel > header span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-contribution-bar {
      overflow: hidden;
      display: block;
      width: 100%;
      height: 7px;
      border-radius: 999px;
      background: #e9edf5;
    }

    .kpi-contribution-bar i {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--blue), #20a66a);
    }

    .kpi-contribution-side {
      display: grid;
      gap: 3px;
      justify-items: end;
      min-width: 0;
      text-align: right;
    }

    .kpi-contribution-side b {
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      line-height: 1;
    }

    .kpi-contribution-side em {
      color: var(--muted);
      font-size: 9.5px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-work-chip-row,
    .kpi-task-chip-list {
      grid-column: 2 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      min-width: 0;
    }

    .kpi-work-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 23px;
      padding: 0 8px;
      border-radius: 999px;
      background: #eef1f6;
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
    }

    .kpi-work-chip em {
      font-style: normal;
      font-weight: 850;
    }

    .kpi-work-chip b {
      color: var(--text);
      font-weight: 950;
    }

    .kpi-work-chip.green { background: rgba(18, 143, 89, 0.1); color: var(--green); }
    .kpi-work-chip.blue { background: rgba(47, 111, 237, 0.1); color: var(--blue); }
    .kpi-work-chip.violet { background: rgba(122, 79, 217, 0.1); color: var(--violet); }
    .kpi-work-chip.red { background: rgba(212, 73, 62, 0.1); color: var(--red); }
    .kpi-work-chip.amber { background: rgba(197, 134, 28, 0.12); color: #9a6300; }
    .kpi-work-chip.share { background: rgba(32, 166, 106, 0.1); color: #0e7a4b; }

    .kpi-task-chip-list {
      margin-top: -1px;
    }

    .kpi-task-chip,
    .kpi-more-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      max-width: 100%;
      min-height: 26px;
      padding: 0 9px;
      border: 0;
      border-radius: 999px;
      background: #fff;
      color: var(--text);
      font: inherit;
      font-size: 10.5px;
      font-weight: 900;
      box-shadow: inset 0 0 0 1px rgba(31, 35, 48, 0.08);
      cursor: pointer;
    }

    .kpi-task-chip b {
      flex: none;
      color: var(--muted);
      font-size: 9px;
      font-weight: 950;
    }

    .kpi-task-chip span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      min-width: 0;
    }

    .kpi-task-chip.done {
      background: rgba(18, 143, 89, 0.08);
    }

    .kpi-task-chip.danger {
      background: rgba(212, 73, 62, 0.08);
      color: var(--red);
    }

    .kpi-task-chip.review {
      background: rgba(122, 79, 217, 0.08);
      color: var(--violet);
    }

    .kpi-task-chip.soon {
      background: rgba(197, 134, 28, 0.09);
      color: #805400;
    }

    .kpi-task-chip:hover {
      background: #fff;
      box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.24), 0 5px 12px rgba(15, 18, 35, 0.08);
    }

    .kpi-more-chip {
      color: var(--muted);
      cursor: default;
    }

    .kpi-contribution-row.summary {
      cursor: pointer;
    }

    .kpi-contribution-row.summary:hover {
      background: rgba(47, 111, 237, 0.035);
    }

    .kpi-person-modal {
      width: min(760px, calc(100vw - 28px));
      max-height: min(88vh, 820px);
      overflow: auto;
    }

    .modal-head-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 12px;
    }

    .modal-head-row h3 {
      margin: 0;
    }

    .kpi-modal-head {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) auto;
      align-items: center;
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid rgba(31, 35, 48, 0.08);
    }

    .kpi-modal-head strong {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 18px;
      font-weight: 950;
    }

    .kpi-modal-head em {
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-modal-stats {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin: 12px 0;
    }

    .kpi-modal-stats span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 30px;
      padding: 0 11px;
      border-radius: 999px;
      background: var(--paper-soft);
    }

    .kpi-modal-stats span.danger {
      background: rgba(212, 73, 62, 0.08);
      color: var(--red);
    }

    .kpi-modal-stats b {
      color: var(--text);
      font-size: 15px;
      font-weight: 950;
    }

    .kpi-modal-stats em {
      color: var(--muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-modal-task-groups {
      display: grid;
      gap: 12px;
    }

    .kpi-modal-task-group {
      min-width: 0;
    }

    .kpi-modal-task-group header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }

    .kpi-modal-task-group header strong {
      font-size: 12px;
      font-weight: 950;
    }

    .kpi-modal-task-group header span {
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
    }

    .kpi-modal-task-group > div {
      display: grid;
      gap: 6px;
    }

    .kpi-modal-task {
      display: grid;
      grid-template-columns: 72px minmax(0, 1fr) 120px;
      align-items: center;
      gap: 9px;
      width: 100%;
      min-height: 38px;
      padding: 0 10px;
      border: 0;
      border-radius: 10px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .kpi-modal-task span,
    .kpi-modal-task em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
    }

    .kpi-modal-task strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
      font-weight: 950;
    }

    .kpi-modal-task.danger {
      background: rgba(212, 73, 62, 0.07);
    }

    .kpi-modal-task.review {
      background: rgba(122, 79, 217, 0.07);
    }

    .kpi-modal-task.done {
      background: rgba(18, 143, 89, 0.07);
    }

    .kpi-modal-task.soon {
      background: rgba(197, 134, 28, 0.08);
    }

    .kpi-person-summary {
      background: linear-gradient(180deg, #fff, var(--paper-soft));
    }

    .kpi-person-card .kpi-card-summary {
      margin-top: 8px;
    }

    .kpi-detail-columns {
      display: grid;
      grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1fr);
      gap: 12px;
    }

    .kpi-detail-panel {
      min-width: 0;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--paper-soft);
    }

    .kpi-detail-panel > header {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .kpi-task-table.compact {
      margin-top: 0;
    }

    .kpi-task-table.compact button {
      grid-template-columns: 110px minmax(0, 1fr) 118px;
      background: #fff;
    }

    .kpi-task-detail-panel {
      margin-top: 10px;
      background: #fff;
    }

    .kpi-task-table.detail-list {
      display: grid;
      gap: 7px;
    }

    .kpi-task-table.detail-list button {
      grid-template-columns: minmax(150px, 190px) minmax(0, 1fr) 86px 140px;
      background: var(--paper-soft);
    }

    .kpi-task-project {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .kpi-task-project .game-ico {
      flex: none;
      width: 25px;
      height: 25px;
      border-radius: 8px;
      font-size: 10px;
    }

    .kpi-task-project b,
    .kpi-task-state {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .kpi-task-project b {
      min-width: 0;
      font-weight: 900;
    }

    .kpi-task-state {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 24px;
      padding: 0 8px;
      border-radius: 999px;
      background: #eef1f6;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 950;
    }

    .kpi-task-state.danger {
      background: rgba(212, 73, 62, 0.08);
      color: var(--red);
    }

    .empty.tiny {
      min-height: 40px;
      display: grid;
      place-items: center;
      border: 1px dashed var(--line);
      border-radius: 10px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    @media (max-width: 1120px) {
      .kpi-overview,
      .archive-summary,
      .library-summary,
      .kpi-detail-head,
      .kpi-detail-summary,
      .kpi-card-summary,
      .kpi-detail-columns {
        grid-template-columns: 1fr;
      }

      .kpi-detail-focus {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .kpi-block-grid {
        grid-template-columns: 1fr;
      }

      .kpi-detail-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
      }
    }

    @media (max-width: 760px) {
      .kpi-tabs,
      .archive-tabs,
      .library-tabs {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
      }

      .kpi-overview {
        align-items: stretch;
        padding: 12px;
      }

      .kpi-overview-main,
      .kpi-block-head,
      .kpi-detail-head {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .kpi-overview-main {
        display: grid;
      }

      .kpi-detail-controls,
      .kpi-period-tools {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
      }

      .kpi-person-select,
      .kpi-period-field {
        flex: 1 1 160px;
      }

      .kpi-block-head {
        display: grid;
      }

      .kpi-person-row {
        grid-template-columns: 34px minmax(0, 1fr);
      }

      .kpi-person-row > .kpi-mini-metrics,
      .kpi-person-row > .kpi-ring {
        grid-column: 1 / -1;
      }

      .kpi-mini-metrics {
        min-width: 0;
      }

      .kpi-detail-focus {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
      }

      .kpi-project-row,
      .archive-task,
      .kpi-task-table button,
      .kpi-task-table.compact button,
      .kpi-task-table.detail-list button,
      .kpi-contribution-row {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .kpi-task-state {
        justify-content: flex-start;
      }

      .kpi-contribution-side {
        width: 100%;
        justify-items: start;
        text-align: left;
      }

      .kpi-work-chip-row,
      .kpi-task-chip-list {
        grid-column: 1 / -1;
      }

      .kpi-modal-head,
      .kpi-modal-task {
        grid-template-columns: 1fr;
        align-items: start;
      }

      .archive-task-stats {
        width: 100%;
        justify-content: flex-start;
      }

      .archive-period-title {
        width: 100%;
        margin-left: 0;
      }

      .archive-date-picker {
        flex: 1 1 190px;
      }

      .archive-date-picker input {
        width: 100%;
      }

      .library-group-head {
        align-items: flex-start;
        flex-direction: column;
      }

      .library-group-count {
        white-space: normal;
      }

      .kpi-period-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* ---------- 그리드 ---------- */

    .main-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 360px;
      gap: 14px;
      margin-bottom: 14px;
    }

    .dashboard-board-grid {
      grid-template-columns: 1fr;
      min-width: 0;
    }

    .dashboard-board-grid > .card {
      min-width: 0;
      overflow: hidden;
    }

    .sub-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-bottom: 14px;
    }

    .sub-grid.single {
      grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-work-header {
      justify-content: flex-start;
    }

    .dashboard-work-title {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      flex-wrap: wrap;
    }

    .dashboard-work-title h2 {
      margin: 0;
      flex: 0 0 auto;
    }

    .dashboard-work-actions {
      align-items: center;
      gap: 8px;
    }

    .dashboard-work-switch {
      display: inline-grid;
      grid-template-columns: repeat(2, minmax(56px, 1fr));
      align-items: center;
      overflow: hidden;
      min-width: 128px;
      height: 28px;
      padding: 2px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #f6f8fc;
    }

    .dashboard-work-switch button {
      height: 22px;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
    }

    .dashboard-work-switch button.active {
      background: var(--paper);
      color: var(--blue);
      box-shadow: 0 1px 3px rgba(31, 42, 68, 0.12);
    }

    .dashboard-gantt-inline {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
    }

    .dashboard-gantt-inline .panel {
      margin: 0;
      min-width: 0;
      box-shadow: none;
      border-radius: 0;
      background: transparent;
    }

    .dashboard-gantt-inline .panel-header {
      display: none;
    }

    .dashboard-gantt-inline .gantt-wrap {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: auto;
    }

    /* ---------- 카드 공통 ---------- */

    .card {
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 18px 12px;
    }

    .card-header .header-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-width: 0;
    }

    h2 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0;
      font-size: 16.5px;
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    h2 .emoji { font-size: 17px; }

    .archive-section {
      display: grid;
      gap: 14px;
      padding: 16px;
    }

    .schedule-form-stack .schedule-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: end;
    }

    .schedule-form-stack .schedule-grid .field {
      min-width: 0;
    }

    .schedule-form-stack .schedule-grid input,
    .schedule-form-stack .schedule-grid select {
      width: 100%;
      min-height: 40px;
    }

    .schedule-form-stack .schedule-type-field,
    .schedule-form-stack .title-field {
      grid-column: 1 / -1;
    }

    .archive-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(110px, 1fr));
      gap: 8px;
    }

    .archive-summary span {
      display: grid;
      gap: 3px;
      min-width: 0;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
    }

    .archive-summary .summary-mile {
      border-color: #d8e6ff;
      background: #f3f7ff;
    }

    .archive-summary .summary-task {
      border-color: #d7f0e2;
      background: #f2fbf6;
    }

    .archive-summary .summary-file {
      border-color: #eadfff;
      background: #f8f4ff;
    }

    .archive-summary .summary-duration {
      border-color: #f7e4c2;
      background: #fff8eb;
    }

    .archive-summary b {
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      line-height: 1;
    }

    .archive-summary em {
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .archive-period-tools {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      min-width: 0;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
    }

    .archive-period-step {
      display: inline-grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--text);
      font: inherit;
      font-size: 14px;
      font-weight: 950;
      cursor: pointer;
    }

    .archive-date-picker {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 28px;
      min-width: 0;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #f7f9fc;
    }

    .archive-date-picker span {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .archive-date-picker input {
      min-width: 118px;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      outline: 0;
    }

    .archive-date-picker input[type="month"] {
      min-width: 96px;
    }

    .archive-period-title {
      min-width: 0;
      margin-left: auto;
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .archive-folder-tabs {
      width: fit-content;
      border-color: var(--line);
      background: #f7f9fc;
    }

    .archive-folder-tabs button {
      color: var(--muted);
    }

    .archive-folder-tabs button.active {
      color: var(--blue);
      box-shadow: 0 6px 14px rgba(47, 111, 237, 0.12);
    }

    .archive-gantt-tools {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 9px;
      min-width: 0;
    }

    .archive-filter-row {
      display: flex;
      flex-wrap: nowrap;
      gap: 8px;
      align-items: center;
      min-width: 0;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
    }

    .archive-filter-row label {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .archive-filter-row label span {
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 900;
    }

    .archive-filter-row select {
      width: 140px;
      min-height: 32px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 850;
    }

    .archive-filter-reset {
      min-height: 32px;
      padding: 0 11px;
      border: 1px solid rgba(47, 111, 237, 0.2);
      border-radius: 9px;
      background: var(--blue-soft);
      color: var(--blue);
      font: inherit;
      font-size: 11px;
      font-weight: 950;
      cursor: pointer;
      white-space: nowrap;
    }

    .archive-gantt {
      --archive-left: minmax(230px, 0.72fr);
      --archive-grid-line: #e2e7ef;
      --archive-track-bg: #fff;
      display: grid;
      min-width: 0;
      overflow: auto;
      border: 1px solid #dfe5ee;
      border-radius: 12px;
      background: #fff;
    }

    .archive-gantt-head,
    .archive-gantt-row {
      display: grid;
      grid-template-columns: var(--archive-left) minmax(calc(var(--archive-days) * 34px), 1fr);
      min-width: calc(230px + var(--archive-days) * 34px);
    }

    .archive-gantt-head {
      position: sticky;
      top: 0;
      z-index: 2;
      border-bottom: 1px solid #dfe5ee;
      background: #f8fafc;
    }

    .archive-gantt-left-head {
      display: flex;
      align-items: center;
      gap: 6px;
      min-height: 38px;
      padding: 6px 9px;
      border-right: 1px solid #e4e9f1;
    }

    .archive-gantt-left-head button {
      min-height: 25px;
      padding: 0 8px;
      border: 1px solid #dce8ff;
      border-radius: 8px;
      background: #fff;
      color: var(--blue);
      font: inherit;
      font-size: 10.5px;
      font-weight: 950;
      cursor: pointer;
    }

    .archive-gantt-days {
      display: grid;
      grid-template-columns: repeat(var(--archive-days), minmax(34px, 1fr));
      min-height: 38px;
    }

    .archive-gantt-days span {
      display: grid;
      place-items: center;
      border-right: 1px solid #e5e9f0;
      color: var(--text);
      font-size: 11.5px;
      font-weight: 950;
      line-height: 1;
    }

    .archive-gantt-days span.saturday {
      color: #2563eb;
    }

    .archive-gantt-days span.holiday {
      color: var(--red);
    }

    .archive-gantt-body {
      display: grid;
      min-width: 0;
    }

    .archive-gantt-row {
      min-height: 46px;
      border-bottom: 1px solid #eef1f6;
    }

    .archive-gantt-row:last-child {
      border-bottom: 0;
    }

    .archive-gantt-task {
      display: flex;
      align-items: center;
      min-width: 0;
      padding: 8px 10px;
      border: 0;
      border-right: 1px solid #e4e9f1;
      background: #fff;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .archive-gantt-task-line {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 7px;
      width: 100%;
      min-width: 0;
    }

    .archive-gantt-task strong,
    .archive-gantt-task time {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .archive-gantt-task strong {
      color: var(--text);
      font-size: 12px;
      font-weight: 950;
    }

    .archive-gantt-task time {
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 800;
    }

    .archive-gantt-track {
      position: relative;
      display: grid;
      grid-template-columns: repeat(var(--archive-days), minmax(34px, 1fr));
      align-items: center;
      min-width: 0;
      padding: 7px 0;
      background-color: var(--archive-track-bg);
      background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--archive-grid-line) calc(100% - 1px));
      background-size: calc(100% / var(--archive-days)) 100%;
    }

    .archive-gantt-bar {
      position: relative;
      z-index: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      height: 24px;
      margin: 0 3px;
      padding: 0;
      border: 1px solid color-mix(in srgb, var(--archive-bar, var(--blue)) 18%, transparent);
      border-radius: 8px;
      background: var(--archive-bar, var(--blue));
      color: #fff;
      box-shadow: 0 6px 16px color-mix(in srgb, var(--archive-bar, var(--blue)) 24%, transparent);
      font: inherit;
      font-size: 10.5px;
      font-weight: 950;
      cursor: pointer;
    }

    .archive-gantt-composite {
      display: grid;
      grid-template-columns: repeat(var(--archive-composite-cols, 1), minmax(0, 1fr));
      gap: 0;
      overflow: hidden;
      border-color: color-mix(in srgb, var(--archive-bar, var(--blue)) 28%, var(--line));
      background: color-mix(in srgb, var(--archive-bar, var(--blue)) 8%, #fff);
      box-shadow: 0 6px 16px color-mix(in srgb, var(--archive-bar, var(--blue)) 14%, transparent);
    }

    .archive-gantt-segment {
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      height: 100%;
      overflow: hidden;
      color: inherit;
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      white-space: nowrap;
    }

    .archive-gantt-plan {
      background: var(--archive-bar, var(--blue));
      color: #fff;
    }

    .archive-gantt-variance {
      border-left: 1px solid rgba(255, 255, 255, 0.46);
      background-color: rgba(255, 255, 255, 0.62);
    }

    .archive-gantt-late {
      color: #9f312b;
      background-image:
        repeating-linear-gradient(135deg, rgba(212, 73, 62, 0.32) 0 5px, rgba(212, 73, 62, 0.11) 5px 10px),
        linear-gradient(180deg, rgba(212, 73, 62, 0.15), rgba(212, 73, 62, 0.09));
    }

    .archive-gantt-early {
      color: #0d6f4b;
      background-image:
        repeating-linear-gradient(135deg, rgba(22, 138, 90, 0.3) 0 5px, rgba(22, 138, 90, 0.1) 5px 10px),
        linear-gradient(180deg, rgba(22, 138, 90, 0.15), rgba(22, 138, 90, 0.08));
    }

    .archive-gantt-bar.tone-blue { --archive-bar: var(--blue); }
    .archive-gantt-bar.tone-green { --archive-bar: var(--green); }
    .archive-gantt-bar.tone-violet { --archive-bar: var(--violet); }
    .archive-gantt-bar.tone-amber { --archive-bar: var(--amber); }
    .archive-gantt-bar.tone-red { --archive-bar: var(--red); }
    .archive-gantt-bar.tone-gray { --archive-bar: var(--gray-chip); }

    .archive-gantt-empty {
      display: grid;
      place-items: center;
      min-height: 120px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .archive-list,
    .archive-game-groups,
    .archive-group-list {
      display: grid;
      gap: 10px;
    }

    .archive-game-group {
      display: grid;
      gap: 10px;
      min-width: 0;
      padding: 12px;
      border: 1px solid #dfe5ee;
      border-radius: var(--radius-md);
      background: #fff;
    }

    .archive-game-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
      padding-bottom: 9px;
      border-bottom: 1px solid #eef1f6;
    }

    .archive-game-head h3 {
      margin: 2px 0 0;
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
    }

    .archive-group-count {
      flex: 0 0 auto;
      min-height: 23px;
      padding: 4px 9px;
      border: 1px solid #dce8ff;
      border-radius: 999px;
      background: #eef5ff;
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .archive-milestone-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
      gap: 10px;
      align-items: start;
    }

    .archive-list {
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
      align-items: start;
    }

    .archive-card,
    .archive-group {
      display: grid;
      align-content: start;
      gap: 11px;
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: #fbfcff;
    }

    .archive-card.milestone {
      position: relative;
      overflow: hidden;
      border-left-width: 4px;
      background: #fff;
    }

    .archive-card.milestone::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 3px;
      background: #dce8ff;
    }

    .archive-card.tone-blue {
      border-left-color: #4d7dff;
    }

    .archive-card.tone-blue::before {
      background: #dce8ff;
    }

    .archive-card.tone-violet {
      border-left-color: #7c5cff;
    }

    .archive-card.tone-violet::before {
      background: #e7ddff;
    }

    .archive-card.tone-green {
      border-left-color: #20a66a;
    }

    .archive-card.tone-green::before {
      background: #d8f2e5;
    }

    .archive-card.tone-red {
      border-left-color: #e05757;
    }

    .archive-card.tone-red::before {
      background: #ffe0df;
    }

    .archive-card.tone-amber {
      border-left-color: #d7901d;
    }

    .archive-card.tone-amber::before {
      background: #ffe9bd;
    }

    .archive-card.standalone {
      background: #fff;
    }

    .archive-head,
    .archive-group-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }

    .archive-head h3,
    .archive-group-head h3 {
      margin: 3px 0 0;
      color: var(--text);
      font-size: 15px;
      font-weight: 900;
      line-height: 1.25;
    }

    .archive-kicker,
    .archive-meta,
    .archive-empty,
    .archive-group-meta {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .archive-meta {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 5px;
    }

    .archive-meta span {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      max-width: 100%;
      height: 22px;
      min-height: 0;
      padding: 0 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      line-height: 1;
      white-space: nowrap;
    }

    .archive-meta .meta-date {
      border-color: #e0e6ee;
      background: #f7f9fc;
    }

    .archive-meta .meta-task {
      border-color: #d7f0e2;
      background: #f2fbf6;
      color: #168450;
    }

    .archive-meta .meta-duration {
      border-color: #f7e4c2;
      background: #fff8eb;
      color: #a66900;
    }

    .archive-meta .meta-file {
      border-color: #dce8ff;
      background: #eef5ff;
      color: var(--blue);
    }

    .archive-meta .meta-empty {
      border-color: #eceff5;
      background: #fafbfe;
      color: var(--faint);
    }

    .archive-group-meta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }

    .archive-group-meta b {
      color: var(--blue);
      font-size: 14px;
      font-weight: 950;
    }

    .archive-task-list {
      display: grid;
      gap: 7px;
    }

    .archive-task {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      width: 100%;
      min-width: 0;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper);
      color: inherit;
      font: inherit;
      text-align: left;
    }

    .archive-task-open {
      display: grid;
      width: 100%;
      min-width: 0;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .archive-task-open:hover .archive-task-main strong,
    .archive-task-open:focus-visible .archive-task-main strong {
      color: var(--blue);
    }

    .archive-reopen {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 25px;
      padding: 0 9px;
      border: 1px solid rgba(47, 111, 237, 0.22);
      border-radius: 999px;
      background: var(--blue-soft);
      color: var(--blue);
      font: inherit;
      font-size: 10.5px;
      font-weight: 950;
      white-space: nowrap;
      cursor: pointer;
    }

    .archive-reopen:hover,
    .archive-reopen:focus-visible {
      border-color: rgba(47, 111, 237, 0.42);
      background: #fff;
      outline: none;
    }

    .archive-task-main {
      display: grid;
      min-width: 0;
      gap: 6px;
    }

    .archive-task-main strong,
    .archive-task-stats em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .archive-task-main strong {
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
    }

    .archive-task-stats b,
    .archive-task-stats em {
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 800;
    }

    .archive-task-stats {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-wrap: wrap;
      gap: 5px;
      min-width: 0;
    }

    .archive-task-stats span {
      display: inline-flex;
      align-items: center;
      min-width: 0;
      max-width: 170px;
      min-height: 22px;
      gap: 4px;
      padding: 0 8px;
      border: 1px solid #e7ebf2;
      border-radius: 999px;
      background: #f7f9fc;
    }

    .archive-task-stats .chip-assignee {
      border-color: #eadfff;
      background: #f8f4ff;
    }

    .archive-task-stats .chip-duration {
      border-color: #f7e4c2;
      background: #fff8eb;
    }

    .archive-task-stats .chip-date {
      border-color: #d7f0e2;
      background: #f2fbf6;
    }

    .archive-task-stats .chip-plan {
      max-width: 260px;
      border-color: #dce8ff;
      background: #f2f7ff;
    }

    .archive-task-stats b {
      flex: 0 0 auto;
      color: var(--faint);
      font-size: 9px;
    }

    .archive-task-stats em {
      min-width: 0;
      font-size: 10px;
    }

    .archive-task-stats .has-file {
      border-color: #dce8ff;
      background: #eef5ff;
    }

    .archive-task-stats .has-file em {
      color: var(--blue);
    }

    .archive-task-stats .no-file {
      background: #fafbfe;
    }

    .archive-task-stats .no-file em {
      color: var(--faint);
    }

    .inline-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }

    .inline-actions .add-btn.inline {
      margin-left: 0;
    }

    .small {
      color: var(--faint);
      font-size: 12px;
      font-weight: 600;
    }

    /* ---------- 칩 ---------- */

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 23px;
      padding: 0 9px;
      border-radius: 999px;
      font-size: 11.5px;
      font-weight: 700;
      white-space: nowrap;
    }

    .chip.blue { background: var(--blue-soft); color: var(--blue); }
    .chip.green { background: var(--green-soft); color: var(--green); }
    .chip.amber { background: var(--amber-soft); color: var(--amber); }
    .chip.red { background: var(--red-soft); color: var(--red); }
    .chip.violet { background: var(--violet-soft); color: var(--violet); }
    .chip.gray { background: var(--gray-soft); color: var(--gray-chip); }

    /* ---------- 보드 ---------- */

    .board { padding: 0 14px 14px; }

    .columns {
      display: grid;
      grid-template-columns: repeat(var(--kanban-columns, 4), minmax(148px, 1fr));
      gap: 10px;
    }

    .column {
      min-height: 230px;
      padding: 9px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
    }

    .column.readonly {
      background:
        repeating-linear-gradient(135deg, rgba(212, 73, 62, 0.035) 0 8px, transparent 8px 16px),
        var(--paper-soft);
    }

    .column-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 9px;
    }

    .col-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      height: 22px;
      padding: 0 9px;
      border-radius: 6px;
      font-size: 11.5px;
      font-weight: 800;
    }

    .col-chip::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 999px;
      background: currentColor;
    }

    .col-chip.gray { background: var(--gray-soft); color: var(--gray-chip); }
    .col-chip.blue { background: var(--blue-soft); color: var(--blue); }
    .col-chip.amber { background: var(--amber-soft); color: var(--amber); }
    .col-chip.red { background: var(--red-soft); color: var(--red); }
    .col-chip.violet { background: var(--violet-soft); color: var(--violet); }
    .col-chip.green { background: var(--green-soft); color: var(--green); }

    .col-count {
      color: var(--faint);
      font-size: 11.5px;
      font-weight: 800;
    }

    .task {
      margin-bottom: 7px;
      padding: 10px 11px;
      min-height: 44px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--paper);
      box-shadow: 0 1px 2px rgba(25, 28, 40, 0.04);
      transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    .task:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-sm);
    }

    .task strong {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: normal;
      overflow-wrap: normal;
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.35;
    }

    .task-title-row {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto auto;
      align-items: center;
      gap: 7px;
      min-width: 0;
    }

    .task-title-row .truncate-tooltip,
    .task-title-row strong {
      min-width: 0;
      padding-top: 0;
    }

    .task-title-row .truncate-tooltip {
      align-self: center;
    }

    .task-title-row .truncate-text {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow-wrap: normal;
    }

    .task-title-row > .task-project-badge,
    .task-title-row > .task-assignee-chip,
    .task-title-row > .task-urgent-dot {
      align-self: center;
    }

    .task-urgent-dot {
      display: inline-block;
      justify-self: end;
      align-self: center;
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--red);
      box-shadow: 0 0 0 3px rgba(196, 66, 58, 0.12);
    }

    .task-project-badge,
    .task-assignee-chip {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: none;
      border: 1px solid color-mix(in srgb, var(--task-tone, var(--blue)) 18%, var(--line));
      border-radius: 999px;
      background: var(--task-soft, var(--blue-soft));
      color: var(--task-tone, var(--blue));
      font-size: 10px;
      font-weight: 950;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
    }

    .task-project-badge {
      width: 46px;
      min-width: 46px;
      height: 24px;
      padding: 0 5px;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .task-assignee-chip {
      width: auto;
      min-width: 42px;
      height: 25px;
      padding: 0 8px;
      background: color-mix(in srgb, var(--task-soft, var(--blue-soft)) 88%, #fff);
      border-color: transparent;
      font-size: 10px;
      justify-self: end;
    }

    .task-project-badge.tone-blue,
    .task-assignee-chip.tone-blue {
      --task-tone: var(--blue);
      --task-soft: var(--blue-soft);
    }

    .task-project-badge.tone-green,
    .task-assignee-chip.tone-green {
      --task-tone: var(--green);
      --task-soft: var(--green-soft);
    }

    .task-project-badge.tone-violet,
    .task-assignee-chip.tone-violet {
      --task-tone: var(--violet);
      --task-soft: var(--violet-soft);
    }

    .task-project-badge.tone-amber,
    .task-assignee-chip.tone-amber {
      --task-tone: var(--amber);
      --task-soft: var(--amber-soft);
    }

    .task-project-badge.tone-red,
    .task-assignee-chip.tone-red {
      --task-tone: var(--red);
      --task-soft: var(--red-soft);
    }

    .task-project-badge.tone-gray,
    .task-assignee-chip.tone-gray {
      --task-tone: var(--gray-chip);
      --task-soft: var(--gray-soft);
    }

    .task.readonly {
      cursor: default;
      opacity: 0.82;
    }

    .task.overdue {
      border-color: color-mix(in srgb, var(--red) 34%, var(--line));
      background: color-mix(in srgb, var(--red-soft) 36%, var(--paper));
    }

    .task-checklist {
      display: inline-flex;
      align-items: center;
      width: max-content;
      margin-top: 8px;
      padding: 2px 7px;
      border-radius: 999px;
      background: #eef2ff;
      color: #3151d3;
      font-size: 11px;
      font-weight: 800;
    }

    .column.done .task { opacity: 0.72; }

    .notification-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .notification-card {
      min-height: 220px;
    }

    .notification-list {
      display: grid;
      gap: 8px;
    }

    .notification-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      width: 100%;
      min-height: 56px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }

    .notification-item:hover {
      border-color: #bfc8d8;
      background: #f9fbff;
    }

    .notification-main,
    .notification-meta {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .notification-main strong,
    .notification-main em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .notification-main em,
    .notification-meta small {
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
    }

    .notification-meta {
      justify-items: end;
      flex: 0 0 auto;
    }

    .empty-state.compact {
      min-height: 88px;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
      color: var(--ink-secondary);
      text-align: left;
    }

    .empty-insight {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 14px;
      min-height: 86px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }

    .empty-insight-main {
      display: flex;
      align-items: center;
      min-width: 0;
      gap: 10px;
    }

    .empty-insight-main > span:last-child {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .empty-insight-main strong {
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1.25;
    }

    .empty-insight-main em {
      overflow: hidden;
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .empty-insight-icon {
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      width: 36px;
      height: 36px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 950;
    }

    .empty-insight-icon.done {
      border: 1px solid #bdebd3;
      background: #ecfbf3;
      color: #128452;
    }

    .empty-insight-icon.folder {
      border: 1px solid #dce8ff;
      background: #eef5ff;
      color: var(--blue);
    }

    .empty-insight-chips {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 6px;
      min-width: 0;
    }

    .empty-insight-chips span {
      display: grid;
      gap: 2px;
      min-width: 74px;
      min-height: 42px;
      padding: 7px 9px;
      border: 1px solid #e7ebf2;
      border-radius: 10px;
      background: #fff;
    }

    .empty-insight-chips b {
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
      line-height: 1;
    }

    .empty-insight-chips em {
      color: var(--muted);
      font-size: 10px;
      font-style: normal;
      font-weight: 850;
      line-height: 1.1;
    }

    .empty-insight.compact-row {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
      min-height: 96px;
    }

    .empty-insight.compact-row .empty-insight-chips {
      justify-content: flex-start;
    }

    @media (max-width: 700px) {
      .empty-insight {
        grid-template-columns: minmax(0, 1fr);
      }

      .empty-insight-main {
        align-items: flex-start;
      }

      .empty-insight-main em {
        white-space: normal;
      }

      .empty-insight-chips {
        justify-content: flex-start;
      }
    }

    .checklist-section h3 {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .checklist-section h3 small {
      color: var(--muted);
      font-size: 12px;
    }

    .checklist-list {
      display: grid;
      gap: 8px;
    }

    .checklist-item {
      display: flex;
      align-items: center;
      gap: 9px;
      min-height: 36px;
      padding: 8px 10px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      font-weight: 800;
    }

    .checklist-item input {
      width: 16px;
      height: 16px;
      accent-color: #2563eb;
    }

    .checklist-item.done span {
      color: var(--muted);
      text-decoration: line-through;
    }

    @media (max-width: 920px) {
      .notification-grid {
        grid-template-columns: 1fr;
      }
    }

    /* ---------- 마일스톤 / 프로젝트 리스트 ---------- */

    .game-list {
      display: grid;
      gap: 8px;
      padding: 0 16px 16px;
    }

    .game {
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      align-items: center;
      gap: 11px;
      min-height: 58px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
      transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    }

    button.game {
      width: 100%;
      color: inherit;
      text-align: left;
      cursor: pointer;
    }

    .game:hover {
      transform: translateX(2px);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .game-ico {
      display: flex;
      align-items: center;
      justify-content: center;
      flex: none;
      width: 48px;
      min-width: 48px;
      height: 34px;
      padding: 0 5px;
      border-radius: 9px;
      background: var(--paper);
      border: 1px solid var(--line);
      color: var(--text);
      font-size: 12px;
      font-weight: 950;
      letter-spacing: 0;
      line-height: 1;
      text-align: center;
      white-space: nowrap;
      word-break: keep-all;
    }

    .game-ico.project-avatar,
    .game-ico.team-avatar {
      border-color: color-mix(in srgb, var(--task-tone, var(--blue)) 18%, var(--line));
      background: color-mix(in srgb, var(--task-soft, var(--blue-soft)) 86%, #fff);
      color: var(--task-tone, var(--blue));
    }

    .game-ico.project-avatar.tone-blue { --task-tone: var(--blue); --task-soft: var(--blue-soft); }
    .game-ico.project-avatar.tone-green { --task-tone: var(--green); --task-soft: var(--green-soft); }
    .game-ico.project-avatar.tone-violet { --task-tone: var(--violet); --task-soft: var(--violet-soft); }
    .game-ico.project-avatar.tone-amber { --task-tone: var(--amber); --task-soft: var(--amber-soft); }
    .game-ico.project-avatar.tone-red { --task-tone: var(--red); --task-soft: var(--red-soft); }
    .game-ico.project-avatar.tone-gray { --task-tone: var(--gray-chip); --task-soft: var(--gray-soft); }

    .game-ico.team-avatar {
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--task-tone, var(--blue)) 10%, transparent);
    }

    .game-info {
      min-width: 0;
    }

    .project-row {
      grid-template-columns: 48px minmax(160px, 1fr) max-content max-content;
    }

    .team-member-row {
      grid-template-columns: 48px minmax(150px, 0.78fr) minmax(220px, 1.35fr) max-content;
    }

    .game-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .game-top strong {
      font-size: 13px;
      font-weight: 700;
    }

    .game-info > strong {
      display: block;
      overflow: hidden;
      color: var(--ink);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.25;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .game-top .badges {
      display: flex;
      gap: 5px;
      flex: none;
    }

    .game-info em {
      display: block;
      margin-top: 2px;
      color: var(--faint);
      font-size: 11px;
      font-style: normal;
      font-weight: 600;
    }

    .game-info .progress {
      height: 5px;
      margin-top: 8px;
    }

    .team-project-line {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 4px;
      min-width: 0;
      overflow: hidden;
    }

    .team-project-line b,
    .team-projects span {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      padding: 3px 7px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--paper);
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 850;
      max-width: 136px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-role {
      justify-self: end;
    }

    .team-detail {
      display: grid;
      gap: 14px;
    }

    .team-detail-head {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
    }

    .team-detail-head strong,
    .team-detail-head em {
      display: block;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-detail-head em {
      margin-top: 2px;
      color: var(--muted);
      font-size: 12px;
      font-style: normal;
      font-weight: 750;
    }

    .team-detail-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px;
    }

    .team-detail-stats span {
      display: grid;
      gap: 3px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
    }

    .team-detail-stats b {
      font-size: 18px;
      font-weight: 950;
    }

    .team-detail-stats em {
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 800;
    }

    .team-security-panel {
      display: grid;
      gap: 9px;
      padding: 12px;
      border: 1px solid #dbe3f0;
      border-radius: 14px;
      background: linear-gradient(135deg, #fbfdff 0%, #f6f8fc 100%);
    }

    .team-security-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
    }

    .team-security-title strong {
      font-size: 12px;
      font-weight: 950;
      color: var(--ink);
    }

    .team-security-title span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      white-space: nowrap;
    }

    .team-security-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .team-security-events {
      display: grid;
      gap: 6px;
    }

    .team-security-events span {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
      padding: 8px 10px;
      border: 1px solid rgba(155, 164, 181, 0.28);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.78);
    }

    .team-security-events b,
    .team-security-events em {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .team-security-events b {
      color: var(--ink);
      font-size: 11px;
      font-weight: 900;
    }

    .team-security-events em {
      flex: 0 0 auto;
      color: var(--muted);
      font-size: 10.5px;
      font-style: normal;
      font-weight: 800;
    }

    .team-projects {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .game.amber .progress span { background: var(--amber); }
    .game.green .progress span { background: var(--green); }
    .game.red .progress span { background: var(--red); }

    .game.none .game-info .progress {
      background: repeating-linear-gradient(90deg, #edeef2 0 6px, transparent 6px 11px);
    }

    .game.none .progress span { display: none; }

    .milestone-list {
      display: grid;
      gap: 7px;
      padding: 0 16px 16px;
    }

    .milestone-list.empty-list {
      min-height: 92px;
      place-items: center;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .milestone-row {
      --milestone-tone: var(--blue);
      --milestone-soft: var(--blue-soft);
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-width: 0;
      padding: 9px 11px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: linear-gradient(90deg, var(--milestone-soft), transparent 46%), var(--paper);
      box-shadow: 0 1px 2px rgba(25, 28, 40, 0.025);
    }

    .milestone-row.tone-red { --milestone-tone: var(--red); --milestone-soft: var(--red-soft); }
    .milestone-row.tone-amber { --milestone-tone: var(--amber); --milestone-soft: var(--amber-soft); }
    .milestone-row.tone-green { --milestone-tone: var(--green); --milestone-soft: var(--green-soft); }
    .milestone-row.tone-violet { --milestone-tone: var(--violet); --milestone-soft: var(--violet-soft); }

    .milestone-mark {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 9px;
      background: var(--paper);
      border: 1px solid var(--line);
      color: var(--milestone-tone);
      font-size: 14px;
      font-weight: 900;
    }

    .milestone-main {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .milestone-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
    }

    .milestone-top strong {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12.5px;
      font-weight: 950;
      color: var(--text);
    }

    .milestone-dday {
      flex: none;
      color: var(--milestone-tone);
      font-size: 11px;
      font-weight: 950;
    }

    .milestone-meta {
      display: flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 800;
    }

    .milestone-meta span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .milestone-progress {
      overflow: hidden;
      height: 5px;
      border-radius: 999px;
      background: #edf0f5;
    }

    .milestone-progress-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .milestone-progress span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: var(--milestone-tone);
    }

    .milestone-percent {
      min-width: 34px;
      text-align: right;
      color: var(--milestone-tone);
      font-size: 11px;
      font-weight: 950;
    }

    .milestone-side {
      display: grid;
      justify-items: end;
      gap: 6px;
      min-width: 0;
      align-self: end;
    }

    .milestone-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 5px;
      min-width: 0;
    }

    .milestone-actions .btn-ghost.compact,
    .milestone-actions .btn-danger.compact {
      min-height: 26px;
      height: 26px;
      padding: 0 8px;
      font-size: 10px;
    }

    /* ---------- 주간 일정 ---------- */

    .week-section { margin-bottom: 14px; }

    .week-title {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px 8px;
      min-width: 0;
    }

    .title-action-row {
      display: inline-flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px 8px;
      min-width: 0;
    }

    .schedule-title-row {
      gap: 6px 9px;
    }

    .schedule-title-row .week-nav {
      margin-left: 2px;
    }

    .week-nav {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }

    .week-nav.inline {
      gap: 5px;
      margin-left: 2px;
    }

    .week-title .nav-btn {
      width: 22px;
      height: 22px;
      font-size: 11px;
    }

    .nav-btn {
      display: grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .nav-btn:hover {
      border-color: var(--line-strong);
      background: var(--gray-soft);
    }

    .week-label {
      min-width: 96px;
      text-align: center;
    }

    .week-label.inline {
      min-width: 0;
      padding: 3px 8px;
      border-radius: 999px;
      background: var(--gray-soft);
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
      line-height: 1;
    }

    .week {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 9px;
      padding: 0 18px 18px;
    }

    .day {
      min-height: 132px;
      padding: 11px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
    }

    .day-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 12.5px;
      font-weight: 800;
    }

    .day-head .date { color: var(--faint); font-weight: 700; font-size: 11px; }

    .day.today {
      background: var(--paper);
    }

    .week-timeline {
      position: relative;
      min-height: calc(58px + var(--week-lanes, 1) * 28px);
      margin: 0 18px 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
      box-shadow: 0 1px 2px rgba(25, 28, 40, 0.035);
    }

    .week-days {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .week-day {
      min-width: 0;
      min-height: 100%;
      padding: 9px 10px;
      border-right: 1px solid var(--line);
      background: transparent;
    }

    .week-day:last-child {
      border-right: 0;
    }

    .week-day.today {
      background: transparent;
    }

    .week-day-head {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: center;
      gap: 8px;
      min-height: 20px;
      font-size: 12.5px;
      font-weight: 900;
    }

    .week-day-title {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: max-content;
      color: var(--text);
    }

    .week-day-title .date {
      color: var(--faint);
      font-size: 11px;
      font-weight: 800;
    }

    .week-day-updates {
      min-width: 0;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 5px;
      overflow: hidden;
    }

    .week-update-chip {
      min-width: 0;
      height: 20px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0 8px;
      border-radius: 5px;
      border: 1px solid rgba(184, 117, 20, 0.2);
      background: #f7e2ba;
      color: #77500d;
      font-size: 10px;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      cursor: pointer;
    }

    .week-update-chip span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .week-update-chip:hover,
    .week-update-chip:focus-visible {
      filter: brightness(0.98);
      outline: none;
    }

    .week-bars {
      position: absolute;
      inset: 38px 0 10px;
      z-index: 2;
      pointer-events: none;
    }

    .week-bar {
      position: absolute;
      left: calc((var(--start) - 1) * 100% / 7 + 7px);
      top: calc(var(--lane) * 28px);
      width: calc(var(--span) * 100% / 7 - 14px);
      height: 22px;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 0 10px;
      border-radius: 5px;
      color: #1f252e;
      font-size: 11px;
      font-weight: 850;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      box-shadow: 0 7px 16px rgba(25, 28, 40, 0.08);
      cursor: pointer;
      pointer-events: auto;
      transition: box-shadow 0.12s ease, filter 0.12s ease;
    }

    .week-bar:hover,
    .week-bar:focus-visible {
      filter: brightness(0.985);
      box-shadow: 0 9px 20px rgba(25, 28, 40, 0.12);
      outline: none;
    }

    .week-bar.continues-before {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      margin-left: -7px;
      padding-left: 17px;
    }

    .week-bar.continues-after {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      width: calc(var(--span) * 100% / 7 - 7px);
    }

    .week-bar.continues-before.continues-after {
      width: calc(var(--span) * 100% / 7);
    }

    .week-bar strong {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      overflow: hidden;
      font-size: 11.5px;
      font-weight: 950;
    }

    .schedule-title-text {
      flex: 0 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .week-bar > span {
      flex: 0 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      color: rgba(31, 37, 46, 0.72);
      font-size: 10px;
      font-weight: 800;
    }

    .week-bar.blue { background: #dbe7ff; color: #183f93; }
    .week-bar.violet { background: #e8e0fb; color: #4e3294; }
    .week-bar.amber { background: #f7e2ba; color: #77500d; }
    .week-bar.red { background: #f7d7d4; color: #983029; }
    .week-bar.green { background: #d8eedf; color: #0d633f; }

    .week-bar.blue > span { color: rgba(24, 63, 147, 0.7); }
    .week-bar.violet > span { color: rgba(78, 50, 148, 0.7); }
    .week-bar.amber > span { color: rgba(119, 80, 13, 0.7); }
    .week-bar.red > span { color: rgba(152, 48, 41, 0.7); }
    .week-bar.green > span { color: rgba(13, 99, 63, 0.7); }

    .today-chip {
      display: inline-flex;
      align-items: center;
      flex: none;
      height: 18px;
      padding: 0 7px;
      border-radius: 999px;
      background: var(--blue);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
    }

    .event {
      display: grid;
      gap: 7px;
      margin-top: 6px;
      padding: 8px 9px;
      border-radius: 8px;
      font-size: 11.5px;
      font-weight: 700;
      line-height: 1.3;
      cursor: pointer;
      transition: transform 0.12s ease, box-shadow 0.12s ease;
    }

    .event:hover,
    .event:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(25, 28, 40, 0.08);
      outline: none;
    }

    .event::before {
      display: none;
    }

    .event strong {
      min-width: 0;
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .event-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .event-chip {
      display: inline-flex;
      align-items: center;
      min-height: 20px;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.64);
      color: currentColor;
      font-size: 10.5px;
      font-weight: 850;
      line-height: 1;
    }

    .event-chip.author {
      color: var(--muted);
    }

    .event.blue { background: var(--blue-soft); color: #2456b8; }
    .event.violet { background: var(--violet-soft); color: #6240ae; }
    .event.amber { background: var(--amber-soft); color: #93600f; }
    .event.red { background: var(--red-soft); color: #b03a31; }
    .event.green { background: var(--green-soft); color: #11704a; }

    .day .empty {
      margin-top: 6px;
      color: var(--faint);
      font-size: 11.5px;
      font-weight: 600;
    }

    /* ---------- 간트 ---------- */

    .gantt-toolbar {
      display: flex;
      align-items: end;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 14px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .gantt-toolbar-title {
      min-height: 50px;
      min-width: 240px;
      padding: 7px 12px;
      display: grid;
      align-content: center;
      gap: 2px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      color: var(--text);
    }

    .gantt-toolbar-title strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 14px;
      font-weight: 900;
    }

    .gantt-toolbar-title span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .gantt-toolbar .mini-select {
      border-color: var(--line);
      background: #fff;
    }

    .gantt-view-tabs {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
    }

    .gantt-filterbar {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      margin-right: auto;
    }

    .gantt-filterbar label {
      display: grid;
      gap: 4px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
    }

    .gantt-filterbar select {
      min-width: 128px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      color: var(--text);
      padding: 0 10px;
      font: inherit;
      font-size: 12px;
      font-weight: 800;
    }

    .gantt-view-tabs button {
      min-height: 30px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      padding: 0 10px;
      font: inherit;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }

    .gantt-view-tabs button.active {
      background: var(--blue-soft);
      color: var(--blue);
    }

    .seg-button {
      min-height: 32px;
      padding: 0 11px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: var(--muted);
      font-weight: 850;
      cursor: pointer;
    }

    .seg-button.active {
      background: var(--blue-soft);
      color: var(--blue);
      box-shadow: inset 0 0 0 1px rgba(47, 111, 237, 0.16);
    }

    .gantt-panel {
      overflow: hidden;
    }

    .gantt-legend {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      flex-wrap: wrap;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .gantt-legend span {
      display: inline-flex;
      align-items: center;
      gap: 5px;
    }

    .gantt-legend i {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      display: inline-block;
    }

    .today-line-sample {
      width: 2px !important;
      height: 16px !important;
      border-radius: 0 !important;
      background: var(--violet);
    }

    .gantt-wrap {
      overflow: auto;
      padding: 0;
      background: #fff;
    }

    .wbs-gantt {
      min-width: calc(680px + var(--timeline-width));
      display: grid;
      grid-template-columns: 680px var(--timeline-width);
      align-items: start;
    }

    .wbs-table {
      position: sticky;
      left: 0;
      z-index: 5;
      background: #fff;
      border-right: 1px solid var(--line);
      box-shadow: 10px 0 24px rgba(25, 28, 40, 0.055);
    }

    .wbs-head,
    .wbs-row {
      display: grid;
      grid-template-columns: minmax(190px, 1fr) 104px 92px 116px 36px;
      align-items: center;
      height: 44px;
      border-bottom: 1px solid var(--line);
    }

    .wbs-head {
      position: sticky;
      top: 0;
      z-index: 6;
      height: 42px;
      background: var(--paper-soft);
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .wbs-head span,
    .wbs-row > div {
      padding: 0 10px;
    }

    .wbs-row {
      background: #fff;
      font-size: 12px;
    }

    .wbs-row.task:hover {
      background: var(--paper-soft);
    }

    .wbs-row.milestone {
      background: #f7f5fb;
      font-weight: 900;
    }

    .wbs-row.delayed {
      box-shadow: inset 3px 0 0 rgba(212, 73, 62, 0.45);
    }

    .wbs-title {
      min-width: 0;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .wbs-toggle-placeholder {
      width: 18px;
      height: 18px;
      flex: 0 0 18px;
    }

    .wbs-title-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 900;
    }

    .wbs-count {
      min-width: 18px;
      height: 18px;
      display: inline-grid;
      place-items: center;
      border-radius: 999px;
      background: var(--violet-soft);
      color: var(--violet);
      font-size: 11px;
      font-weight: 900;
    }

    .wbs-status .chip {
      height: 22px;
      padding: 0 8px;
      font-size: 11px;
    }

    .wbs-assignee,
    .wbs-dates {
      color: var(--muted);
      font-weight: 800;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .wbs-dates.danger {
      color: var(--red);
    }

    .wbs-actions {
      text-align: right;
    }

    .wbs-action-button {
      display: inline-grid;
      place-items: center;
      width: 26px;
      height: 26px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--muted);
      font-weight: 900;
      cursor: pointer;
    }

    .timeline-pane {
      position: relative;
      overflow: visible;
    }

    .timeline-scale {
      position: sticky;
      top: 0;
      z-index: 3;
      height: 42px;
      display: grid;
      grid-template-columns: repeat(auto-fill, var(--gantt-day, 64px));
      background: #fbfcfa;
      border-bottom: 1px solid var(--line);
    }

    .timeline-day {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      border-right: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .timeline-day.weekend {
      background: #f7f3fb;
    }

    .timeline-day.today {
      color: var(--violet);
      background: var(--violet-soft);
    }

    .timeline-day.minor {
      border-right-color: transparent;
    }

    .today-marker {
      position: absolute;
      top: 0;
      height: 42px;
      width: 2px;
      background: var(--violet);
      pointer-events: none;
      z-index: 4;
    }

    .today-marker span {
      position: absolute;
      top: 4px;
      left: 6px;
      width: max-content;
      padding: 2px 5px;
      border-radius: 5px;
      background: var(--violet);
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      white-space: nowrap;
    }

    .timeline-body {
      position: relative;
    }

    .today-body-marker {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--violet);
      pointer-events: none;
      z-index: 2;
    }

    .timeline-row {
      position: relative;
      height: 44px;
      border-bottom: 1px solid var(--line);
      background: repeating-linear-gradient(
        to right,
        transparent 0,
        transparent calc(var(--gantt-stripe, 64px) - 1px),
        var(--line) var(--gantt-stripe, 64px)
      );
    }

    .timeline-row.milestone {
      background-color: #f7f5fb;
    }

    .timeline-row.delayed {
      background-color: #fff8f7;
    }

    .gantt-track {
      height: 44px;
      position: relative;
    }

    .gantt-bar {
      position: absolute;
      top: 12px;
      height: 20px;
      min-width: 22px;
      border: 0;
      border-radius: 7px;
      color: #fff;
      font: inherit;
      font-size: 11px;
      font-weight: 900;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      box-shadow: 0 7px 15px rgba(25, 28, 40, 0.14);
      cursor: pointer;
    }

    .gantt-bar.delayed {
      outline: 2px solid rgba(212, 73, 62, 0.22);
    }

    .gantt-bar-label {
      pointer-events: none;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .gantt-bar.milestone {
      height: 14px;
      top: 16px;
      border-radius: 999px;
      opacity: 0.88;
      cursor: default;
    }

    .wbs-gantt.zoom-month .gantt-bar-label,
    .wbs-gantt.zoom-week .gantt-bar-label {
      font-size: 10.5px;
    }

    .wbs-gantt.zoom-month .gantt-bar-label {
      display: none;
    }

    /* ---------- 월간 일정 ---------- */

    .month-section {
      overflow: hidden;
      margin-bottom: 14px;
    }

    .month-scroll {
      overflow-x: auto;
      padding: 0 18px 18px;
    }

    .month-calendar {
      min-width: 0;
    }

    .month-weekdays,
    .month-week-days {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .month-weekdays {
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 900;
      text-align: center;
    }

    .month-weeks {
      display: grid;
      gap: 8px;
    }

    .month-week-row {
      position: relative;
      min-height: calc(96px + var(--month-lanes, 1) * 32px);
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
      box-shadow: 0 1px 2px rgba(25, 28, 40, 0.035);
    }

    .month-week-days {
      position: absolute;
      inset: 0;
      z-index: 1;
    }

    .month-day {
      min-height: 100%;
      padding: 9px 10px;
      border-right: 1px solid var(--line);
      background: transparent;
    }

    .month-day:last-child {
      border-right: 0;
    }

    .month-day.outside {
      opacity: 0.46;
    }

    .month-day.today {
      background: transparent;
    }

    .month-day-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      min-height: 20px;
      min-width: 0;
    }

    .month-day-title {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: max-content;
    }

    .month-day-updates {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 5px;
      overflow: hidden;
    }

    .month-day-head strong {
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
    }

    .month-bars {
      position: absolute;
      inset: 42px 0 12px;
      z-index: 2;
      pointer-events: none;
    }

    .month-bar {
      position: absolute;
      left: calc((var(--start) - 1) * 100% / 7 + 7px);
      top: calc(var(--lane) * 28px);
      width: calc(var(--span) * 100% / 7 - 14px);
      height: 22px;
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 0 10px;
      border-radius: 5px;
      color: #1f252e;
      font-size: 11px;
      font-weight: 850;
      line-height: 1;
      white-space: nowrap;
      overflow: hidden;
      box-shadow: 0 7px 16px rgba(25, 28, 40, 0.08);
      cursor: pointer;
      pointer-events: auto;
      transition: box-shadow 0.12s ease, filter 0.12s ease;
    }

    .month-bar:hover,
    .month-bar:focus-visible {
      filter: brightness(0.985);
      box-shadow: 0 9px 20px rgba(25, 28, 40, 0.12);
      outline: none;
    }

    .month-bar.continues-before {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      margin-left: -7px;
      padding-left: 17px;
    }

    .month-bar.continues-after {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0;
      width: calc(var(--span) * 100% / 7 - 7px);
    }

    .month-bar.continues-before.continues-after {
      width: calc(var(--span) * 100% / 7);
    }

    .month-bar strong {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-width: 0;
      overflow: hidden;
      font-size: 11.5px;
      font-weight: 950;
    }

    .month-bar > span {
      flex: 0 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      color: rgba(31, 37, 46, 0.72);
      font-size: 10px;
      font-weight: 800;
    }

    .month-bar.blue { background: #dbe7ff; color: #183f93; }
    .month-bar.violet { background: #e8e0fb; color: #4e3294; }
    .month-bar.amber { background: #f7e2ba; color: #77500d; }
    .month-bar.red { background: #f7d7d4; color: #983029; }
    .month-bar.green { background: #d8eedf; color: #0d633f; }

    .month-bar.blue > span { color: rgba(24, 63, 147, 0.7); }
    .month-bar.violet > span { color: rgba(78, 50, 148, 0.7); }
    .month-bar.amber > span { color: rgba(119, 80, 13, 0.7); }
    .month-bar.red > span { color: rgba(152, 48, 41, 0.7); }
    .month-bar.green > span { color: rgba(13, 99, 63, 0.7); }

    @media (max-width: 760px) {
      .month-week-row {
        min-height: calc(80px + var(--month-lanes, 1) * 32px);
      }

      .month-bars {
        top: 44px;
      }

      .month-bar {
        height: 23px;
        top: calc(var(--lane) * 30px);
      }
    }

    /* ---------- 최근 자료 ---------- */

    .docs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      padding: 0 18px 18px;
    }

    .library-drop {
      display: grid;
      place-items: center;
      gap: 5px;
      min-height: 92px;
      margin: 0 18px 14px;
      border: 1px dashed var(--line-strong);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
      color: var(--muted);
      text-align: center;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease;
    }

    .library-drop strong {
      color: var(--text);
      font-size: 13px;
      font-weight: 950;
    }

    .library-drop span {
      font-size: 12px;
      font-weight: 750;
    }

    .library-drop.drag-over {
      border-color: rgba(47, 111, 237, 0.55);
      background: var(--blue-soft);
    }

    .library-section {
      display: grid;
      gap: 14px;
      padding: 16px;
    }

    .library-section .library-drop {
      margin: 0;
    }

    .library-tools {
      display: grid;
      grid-template-columns: minmax(220px, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }

    .library-search {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
      padding: 8px 12px;
      border: 1px solid var(--line-strong);
      border-radius: 12px;
      background: var(--paper);
      box-shadow: var(--shadow-sm);
    }

    .library-search:focus-within {
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
    }

    .library-search input {
      flex: 1 1 auto;
      min-width: 0;
      border: 0;
      background: transparent;
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 750;
      outline: 0;
    }

    .library-search input::placeholder {
      color: var(--faint);
      font-weight: 650;
    }

    .library-search input::-webkit-search-cancel-button {
      appearance: none;
    }

    .library-period-tools {
      justify-self: end;
      width: min(100%, 520px);
    }

    .library-filter-note {
      justify-self: end;
      min-height: 30px;
      padding: 8px 11px;
      border: 1px solid #dce8ff;
      border-radius: 999px;
      background: #eef5ff;
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .library-summary {
      display: grid;
      grid-template-columns: repeat(4, minmax(110px, 1fr));
      gap: 8px;
    }

    .library-summary span {
      display: grid;
      gap: 3px;
      min-width: 0;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
    }

    .library-summary .summary-docs {
      border-color: #d8e6ff;
      background: #f3f7ff;
    }

    .library-summary .summary-library {
      border-color: #d7f0e2;
      background: #f2fbf6;
    }

    .library-summary .summary-attached {
      border-color: #eadfff;
      background: #f8f4ff;
    }

    .library-summary .summary-latest {
      border-color: #f7e4c2;
      background: #fff8eb;
    }

    .library-summary b {
      color: var(--text);
      font-size: 18px;
      font-weight: 950;
      line-height: 1;
    }

    .library-summary em {
      overflow: hidden;
      color: var(--muted);
      font-size: 11px;
      font-style: normal;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .library-groups {
      display: grid;
      gap: 10px;
    }

    .library-group {
      display: grid;
      gap: 10px;
      min-width: 0;
      padding: 12px;
      border: 1px solid #dfe5ee;
      border-radius: var(--radius-md);
      background: #fff;
    }

    .library-group-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-width: 0;
      padding-bottom: 9px;
      border-bottom: 1px solid #eef1f6;
    }

    .library-group-head h3 {
      margin: 2px 0 0;
      color: var(--text);
      font-size: 14px;
      font-weight: 950;
    }

    .library-group-count {
      flex: 0 0 auto;
      min-height: 23px;
      padding: 4px 9px;
      border: 1px solid #dce8ff;
      border-radius: 999px;
      background: #eef5ff;
      color: var(--blue);
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
    }

    .library-list {
      display: grid;
      gap: 7px;
    }

    .library-item {
      position: relative;
      display: grid;
      min-width: 0;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: #fff;
    }

    .library-item::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      width: 3px;
      border-radius: 10px 0 0 10px;
      background: #dce8ff;
    }

    .library-item.source-library::before { background: #20a66a; }
    .library-item.source-task::before { background: #7c5cff; }
    .library-item.source-schedule::before { background: #d7901d; }

    .library-item-link {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      align-items: center;
      gap: 10px;
      min-width: 0;
      min-height: 58px;
      padding: 9px 12px 9px 13px;
      color: inherit;
      text-decoration: none;
    }

    .library-owned .library-item-link {
      padding-right: 54px;
    }

    .library-item-icon {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border: 1px solid #e7ebf2;
      border-radius: 9px;
      background: #f7f9fc;
      font-size: 14px;
    }

    .library-item-main {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .library-item-main strong {
      overflow: hidden;
      color: var(--text);
      font-size: 13px;
      font-weight: 950;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .library-chip-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 5px;
      min-width: 0;
    }

    .library-chip {
      display: inline-flex;
      align-items: center;
      max-width: 180px;
      height: 22px;
      padding: 0 8px;
      border: 1px solid #e7ebf2;
      border-radius: 999px;
      background: #f7f9fc;
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      line-height: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .library-chip.type {
      border-color: #dce8ff;
      background: #eef5ff;
      color: var(--blue);
    }

    .library-chip.source {
      border-color: #d7f0e2;
      background: #f2fbf6;
      color: #168450;
    }

    .source-task .library-chip.source {
      border-color: #eadfff;
      background: #f8f4ff;
      color: #6b50d8;
    }

    .source-schedule .library-chip.source {
      border-color: #f7e4c2;
      background: #fff8eb;
      color: #a66900;
    }

    .library-chip.origin {
      border-color: #eceff5;
      background: #fafbfe;
    }

    .library-chip.size {
      border-color: #e0e6ee;
      background: #f7f9fc;
    }

    .library-chip.date {
      border-color: #f7e4c2;
      background: #fff8eb;
      color: #a66900;
    }

    .library-delete {
      top: 50%;
      right: 9px;
      transform: translateY(-50%);
      min-height: 21px;
      padding: 0 7px;
      background: var(--red-soft);
      box-shadow: none;
      font-size: 10px;
    }

    .doc {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper);
      transition: transform 0.18s ease, box-shadow 0.18s ease;
      cursor: pointer;
    }

    .doc a {
      display: block;
      color: inherit;
      text-decoration: none;
    }

    .doc:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
    }

    .doc-cover {
      position: relative;
      height: 46px;
    }

    .doc:nth-child(1) .doc-cover { background: linear-gradient(120deg, #5b8cff, #8a6ef5); }
    .doc:nth-child(2) .doc-cover { background: linear-gradient(120deg, #f37d5e, #e4537f); }
    .doc:nth-child(3) .doc-cover { background: linear-gradient(120deg, #8a6ef5, #c465d9); }
    .doc:nth-child(4) .doc-cover { background: linear-gradient(120deg, #2fb583, #3fc0c9); }

    .doc-ico {
      position: absolute;
      left: 12px;
      bottom: -13px;
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper);
      box-shadow: var(--shadow-sm);
      font-size: 15px;
    }

    .doc-body { padding: 18px 12px 11px; }

    .doc strong {
      display: block;
      margin-bottom: 4px;
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.35;
    }

    .doc span {
      color: var(--faint);
      font-size: 11px;
      font-weight: 600;
    }

    .doc-delete,
    .doc-source {
      position: absolute;
      right: 8px;
      top: 8px;
      min-height: 24px;
      border: 0;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.88);
      color: var(--muted);
      padding: 0 8px;
      font-size: 11px;
      font-weight: 900;
      box-shadow: var(--shadow-sm);
    }

    .doc-delete {
      color: var(--red);
      cursor: pointer;
    }

    .docs-compact {
      grid-template-columns: 1fr;
      gap: 7px;
    }

    .doc.doc-row {
      border-radius: 10px;
      background: var(--paper-soft);
      box-shadow: none;
    }

    .doc.doc-row:hover {
      transform: translateX(2px);
      box-shadow: var(--shadow-sm);
      background: var(--paper);
    }

    .doc.doc-row .doc-row-link {
      display: grid;
      grid-template-columns: 31px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      min-height: 54px;
      padding: 9px 12px;
    }

    .doc-row-icon {
      display: grid;
      place-items: center;
      width: 31px;
      height: 31px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper);
      font-size: 14px;
      box-shadow: 0 1px 2px rgba(25, 28, 40, 0.035);
    }

    .doc-row-main {
      min-width: 0;
    }

    .doc-row-main strong {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin: 0 0 3px;
      font-size: 12px;
      font-weight: 950;
    }

    .doc-row-main span {
      display: block;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--muted);
      font-size: 10.5px;
      font-weight: 800;
    }

    .doc-row-badge {
      display: inline-grid;
      place-items: center;
      min-width: 34px;
      height: 21px;
      padding: 0 8px;
      border-radius: 999px;
      background: var(--gray-soft);
      color: var(--muted);
      font-size: 10px;
      font-weight: 950;
    }

    .doc.doc-row .doc-delete {
      top: 50%;
      right: 8px;
      transform: translateY(-50%);
      min-height: 21px;
      padding: 0 7px;
      background: var(--red-soft);
      box-shadow: none;
      font-size: 10px;
    }

    .doc-row-library .doc-row-link {
      padding-right: 48px;
    }

    /* ---------- 인용구 + 푸터 ---------- */

    .quote {
      margin: 24px 0 0;
      padding: 13px 18px;
      border-left: 3px solid var(--text);
      color: var(--text);
      font-size: 14.5px;
      font-weight: 600;
      line-height: 1.5;
    }

    .quote b { font-weight: 800; }

    .foot {
      margin-top: 10px;
      color: var(--faint);
      font-size: 12px;
      font-weight: 600;
    }

    /* ---------- 추가 버튼 & 입력 모달 ---------- */

    .header-tools {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .add-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      height: 29px;
      padding: 0 13px;
      border: 0;
      border-radius: 999px;
      background: var(--blue-soft);
      color: var(--blue);
      font: inherit;
      font-size: 12.5px;
      font-weight: 850;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
      transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

    .add-btn:hover {
      background: var(--blue);
      color: #fff;
      transform: translateY(-1px);
    }

    .add-btn.inline {
      height: var(--control-height-sm, 25px);
      margin-left: 0;
      padding: 0 10px;
      font-size: 11.5px;
      line-height: 1;
      vertical-align: middle;
    }

    .overlay {
      position: fixed;
      inset: 0;
      width: auto;
      max-width: none;
      z-index: 50;
      display: grid;
      place-items: center;
      padding: 20px;
      overflow-x: hidden;
      background: rgba(15, 18, 35, 0.45);
      backdrop-filter: blur(3px);
    }

    .overlay[hidden] { display: none; }

    body:has([data-overlay]),
    body:has([data-detail-overlay]) {
      overflow-x: clip;
    }

    body:has([data-overlay]) #app,
    body:has([data-detail-overlay]) #app,
    body:has([data-overlay]) .shell,
    body:has([data-detail-overlay]) .shell,
    body:has([data-overlay]) .main,
    body:has([data-detail-overlay]) .main {
      max-width: 100vw;
      overflow-x: clip;
    }

    .detail-modal-overlay {
      position: fixed;
      inset: 0;
      width: auto;
      max-width: none;
      z-index: 48;
      display: grid;
      place-items: center;
      padding: 24px;
      overflow-x: hidden;
      background: rgba(15, 18, 35, 0.36);
      backdrop-filter: blur(4px);
    }

    .task-detail-modal {
      width: min(920px, calc(100vw - 32px));
      max-width: calc(100vw - 28px);
      height: min(760px, calc(100vh - 32px));
      max-height: min(94vh, 900px);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--paper);
      box-shadow: 0 26px 72px rgba(15, 18, 35, 0.24);
      animation: detailPop 0.2s ease both;
    }

    .task-detail-modal.no-animate {
      animation: none;
    }

    @keyframes detailPop {
      from { opacity: 0; transform: translateY(10px) scale(0.985); }
      to { opacity: 1; transform: none; }
    }

    .task-detail-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
      gap: 16px;
      align-items: start;
      min-height: 0;
      margin-top: 16px;
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-gutter: stable;
    }

    .task-detail-body.task-detail-view {
      grid-template-columns: 1fr;
    }

    .task-detail-content {
      display: grid;
      gap: 14px;
      min-width: 0;
    }

    .task-detail-lower {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
      gap: 14px;
      align-items: start;
      min-width: 0;
    }

    .task-detail-lower-main {
      display: grid;
      gap: 16px;
      align-content: start;
      min-width: 0;
    }

    .detail-main {
      min-width: 0;
    }

    .detail-side {
      min-width: 0;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
    }

    .detail-side-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .detail-side-head h3 {
      margin: 0;
      font-size: 13px;
      font-weight: 900;
    }

    .task-detail-modal .drawer-actions {
      flex: none;
      margin: 18px 0 0;
      padding: 14px 0 0;
      border-top: 1px solid var(--line);
      background: transparent;
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 48;
      display: flex;
      justify-content: flex-end;
      background: rgba(15, 18, 35, 0.2);
      backdrop-filter: blur(2px);
    }

    .task-drawer {
      width: min(480px, calc(100vw - 28px));
      height: 100%;
      overflow-y: auto;
      padding: 22px;
      border-left: 1px solid var(--line);
      background: var(--paper);
      box-shadow: -22px 0 54px rgba(25, 28, 40, 0.16);
      animation: drawerIn 0.2s ease both;
    }

    .task-drawer.no-animate {
      animation: none;
    }

    @keyframes drawerIn {
      from { transform: translateX(26px); opacity: 0; }
      to { transform: none; opacity: 1; }
    }

    @media (max-width: 860px) {
      .detail-modal-overlay {
        padding: 14px;
      }

      .task-detail-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 28px);
        padding: 16px;
      }

      .task-detail-body {
        grid-template-columns: 1fr;
      }

      .task-detail-lower {
        grid-template-columns: 1fr;
      }

      .task-detail-view .task-note-form textarea {
        min-height: 170px;
      }

      .drawer-section.overdue-decision {
        flex-wrap: wrap;
      }

      .schedule-edit-layout {
        grid-template-columns: 1fr;
      }
    }

    .drawer-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }

    .drawer-head > div:first-child {
      min-width: 0;
    }

    .task-detail-titleblock {
      display: grid;
      gap: 7px;
      min-width: 0;
    }

    .task-detail-context {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-width: 0;
      color: var(--muted);
      font-size: 12px;
      font-weight: 850;
    }

    .task-detail-context > span:last-child {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .drawer-kicker {
      display: block;
      margin-bottom: 7px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
    }

    .drawer-head h2 {
      display: block;
      margin: 0;
      font-size: 22px;
      line-height: 1.25;
      overflow-wrap: anywhere;
    }

    .drawer-close {
      display: grid;
      place-items: center;
      flex: none;
      width: 32px;
      height: 32px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--paper-soft);
      color: var(--muted);
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
    }

    .drawer-head-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: none;
    }

    .drawer-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin: 16px 0;
    }

    .task-summary {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px 9px;
      margin-top: 10px;
      min-width: 0;
    }

    .task-project-badge.detail {
      width: auto;
      min-width: 31px;
      max-width: 72px;
      height: 24px;
    }

    .task-assignee-chip.detail-assignee {
      max-width: min(34vw, 180px);
      height: 22px;
      min-width: 0;
      overflow: hidden;
      padding: 0 9px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .task-summary-route {
      position: relative;
      min-width: 0;
      max-width: min(34vw, 280px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text);
      font-size: 12.5px;
      font-weight: 900;
      line-height: 1.35;
    }

    .task-summary-meta b {
      flex: none;
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
    }

    .task-summary-meta {
      min-width: 0;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .task-summary-meta em {
      min-width: 0;
      max-width: min(34vw, 260px);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: var(--text);
      font-size: 12px;
      font-style: normal;
      font-weight: 800;
      line-height: 1.35;
    }

    .task-completion-delta {
      display: inline-flex;
      align-items: center;
      margin-left: 2px;
      font-size: 0.95em;
      font-weight: 950;
      white-space: nowrap;
    }

    .task-completion-delta.late {
      color: var(--red);
    }

    .task-completion-delta.early {
      color: var(--blue);
    }

    @media (max-width: 680px) {
      .task-summary {
        gap: 7px 10px;
      }

      .task-summary-route,
      .task-summary-meta em {
        max-width: 100%;
      }
    }

    .drawer-section {
      margin-top: 14px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: var(--paper-soft);
    }

    .drawer-section.warn {
      border-color: rgba(212, 73, 62, 0.22);
      background: var(--red-soft);
    }

    .drawer-section.ok {
      border-color: rgba(36, 146, 96, 0.22);
      background: var(--green-soft);
    }

    .drawer-section.overdue-decision {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 9px;
      min-height: 0;
      padding: 8px 10px;
      border-color: color-mix(in srgb, var(--red) 22%, var(--line));
      background: color-mix(in srgb, var(--red-soft) 58%, var(--paper));
    }

    .drawer-section.overdue-decision h3 {
      margin: 0;
      white-space: nowrap;
      line-height: 28px;
    }

    .drawer-section h3 {
      margin: 0 0 10px;
      font-size: 13px;
      font-weight: 900;
    }

    .detail-main > .drawer-section:first-child {
      margin-top: 0;
    }

    .task-detail-content > .drawer-section,
    .task-detail-lower .drawer-section,
    .task-detail-lower .detail-side {
      margin-top: 0;
    }

    .drawer-note {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.5;
      overflow-wrap: anywhere;
    }

    .task-note-editor {
      background: var(--paper);
    }

    .task-note-form {
      display: grid;
      gap: 10px;
      position: relative;
    }

    .task-note-form textarea {
      min-height: 132px;
      width: 100%;
      resize: vertical;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      padding: 12px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      font-size: 13px;
      font-weight: 650;
      line-height: 1.5;
    }

    .task-detail-view .task-note-form textarea {
      min-height: 220px;
    }

    .task-note-form textarea:focus {
      outline: none;
      border-color: var(--blue);
      box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
      background: var(--paper);
    }

    .task-note-form textarea:disabled {
      color: var(--muted);
      background: var(--paper-soft);
      cursor: not-allowed;
    }

    .note-editor-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px;
    }

    .overdue-detail-actions {
      display: flex;
      align-items: center;
      flex-wrap: nowrap;
      gap: 6px;
    }

    .drawer-list {
      display: grid;
      gap: 8px;
      margin-bottom: 10px;
    }

    .drawer-link,
    .file-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--paper);
      color: var(--text);
      text-decoration: none;
    }

    .file-list {
      display: grid;
      gap: 8px;
      margin-bottom: 10px;
    }

    .upload-queue {
      display: grid;
      gap: 8px;
      margin-bottom: 10px;
    }

    .file-item,
    .upload-item {
      color: var(--text);
      text-decoration: none;
    }

    .upload-item {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr) 28px;
      align-items: center;
      gap: 12px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--paper);
    }

    .upload-item.failed {
      border-color: rgba(212, 73, 62, 0.22);
      background: rgba(212, 73, 62, 0.05);
    }

    .upload-cancel {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--paper-soft);
      color: var(--muted);
      font: inherit;
      font-size: 18px;
      line-height: 1;
      cursor: pointer;
    }

    .upload-cancel:hover {
      border-color: rgba(212, 73, 62, 0.28);
      background: rgba(212, 73, 62, 0.08);
      color: var(--red);
    }

    .file-icon {
      display: grid;
      place-items: center;
      flex: none;
      width: 34px;
      height: 34px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper-soft);
      color: var(--blue);
      font-size: 18px;
      font-weight: 900;
    }

    .file-copy {
      min-width: 0;
    }

    .file-copy strong,
    .drawer-link strong,
    .drawer-comment strong,
    .drawer-log strong {
      display: block;
      font-size: 13px;
      font-weight: 900;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .file-copy em,
    .drawer-link em,
    .drawer-comment time,
    .drawer-log em {
      display: block;
      margin-top: 3px;
      color: var(--muted);
      font-size: 11.5px;
      font-style: normal;
      font-weight: 700;
    }

    .drawer-link b {
      flex: none;
      color: var(--blue);
      font-size: 12px;
      font-weight: 900;
    }

    .file-drop-form {
      margin-top: 10px;
    }

    .file-drop-zone {
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      gap: 3px;
      min-height: 72px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
      color: var(--muted);
      text-align: center;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    }

    .file-drop-zone input {
      position: absolute;
      width: 1px;
      height: 1px;
      opacity: 0;
      pointer-events: none;
    }

    .file-drop-zone span {
      color: var(--muted);
      font-size: 20px;
      font-weight: 700;
      line-height: 1;
    }

    .file-drop-zone strong {
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }

    .file-drop-zone em {
      color: var(--faint);
      font-size: 12px;
      font-style: normal;
      font-weight: 700;
    }

    .file-drop-zone:hover,
    .file-drop-zone.drag-over {
      border-color: rgba(47, 111, 237, 0.38);
      background: var(--blue-soft);
      box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08);
    }

    .file-drop-zone.disabled {
      cursor: not-allowed;
      background: var(--paper-soft);
      opacity: 0.72;
    }

    .file-drop-zone.loading {
      border-color: rgba(47, 111, 237, 0.4);
      background: var(--blue-soft);
    }

    .schedule-attachment-drop {
      min-height: 92px;
      border-style: dashed;
      background: linear-gradient(180deg, #fff, var(--paper-soft));
    }

    .modal-attachment-drop {
      grid-template-columns: 34px minmax(0, 1fr);
      justify-items: start;
      align-items: center;
      min-height: 78px;
      border-style: dashed;
      background: linear-gradient(180deg, #fff, var(--paper-soft));
      text-align: left;
    }

    .modal-attachment-drop span {
      display: grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 999px;
      background: var(--paper-soft);
      color: var(--blue);
    }

    .modal-attachment-drop strong,
    .modal-attachment-drop em {
      grid-column: 2;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .schedule-attachment-drop.has-file,
    .modal-attachment-drop.has-file {
      border-color: rgba(47, 111, 237, 0.38);
      background: var(--blue-soft);
    }

    .schedule-attachment-drop.has-file span,
    .modal-attachment-drop.has-file span {
      color: var(--blue);
    }

    .schedule-attachment-drop.has-file strong,
    .modal-attachment-drop.has-file strong {
      color: var(--blue);
    }

    .file-upload-message {
      margin: 9px 0 0;
      padding: 9px 11px;
      border-radius: 8px;
      background: rgba(212, 73, 62, 0.08);
      color: var(--red);
      font-size: 12px;
      font-weight: 850;
      line-height: 1.45;
    }

    .drawer-inline-form,
    .drawer-comment-form,
    .drawer-edit-form {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .drawer-comment-form {
      position: relative;
    }

    .drawer-inline-form input,
    .drawer-comment-form textarea,
    .decision-box textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper);
      color: var(--text);
      padding: 10px 11px;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      outline: none;
    }

    .drawer-comment-form textarea,
    .decision-box textarea {
      min-height: 86px;
      resize: vertical;
    }

    .drawer-inline-form button,
    .drawer-comment-form button {
      justify-self: end;
    }

    .drawer-comment-form + .drawer-list {
      margin-top: 10px;
      margin-bottom: 0;
    }

    .edit-actions,
    .decision-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin-top: 12px;
    }

    .log-section summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      color: var(--text);
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      list-style: none;
    }

    .log-section summary::-webkit-details-marker {
      display: none;
    }

    .log-section summary small {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 800;
    }

    .log-section summary small::after {
      content: "⌄";
      color: var(--faint);
      font-size: 14px;
      line-height: 1;
      transition: transform 0.15s ease;
    }

    .log-section[open] summary small::after {
      transform: rotate(180deg);
    }

    .log-section .drawer-log-list {
      margin-top: 12px;
    }

    .drawer-comment {
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: var(--radius-sm);
      background: var(--paper);
    }

    .drawer-comment.reply {
      margin-left: 22px;
      border-left: 3px solid var(--blue);
      background: color-mix(in srgb, var(--blue-soft) 26%, var(--paper));
    }

    .drawer-comment div {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 10px;
    }

    .drawer-comment p {
      margin: 7px 0 0;
      color: var(--text);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.55;
      overflow-wrap: anywhere;
    }

    .comment-actions,
    .reply-actions {
      display: flex;
      justify-content: flex-end;
      gap: 6px;
      margin-top: 8px;
    }

    .reply-comment-form {
      margin-top: 9px;
      padding-top: 9px;
      border-top: 1px dashed var(--line);
    }

    .mention-suggest {
      position: absolute;
      z-index: 30;
      display: grid;
      gap: 4px;
      width: min(100%, 340px);
      max-height: 184px;
      overflow-y: auto;
      margin-top: 0;
      padding: 6px;
      border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
      border-radius: 10px;
      background: var(--paper);
      box-shadow: 0 12px 28px rgba(25, 28, 40, 0.12);
    }

    .mention-suggest[hidden] {
      display: none;
    }

    .mention-suggest button {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      min-height: 30px;
      padding: 0 9px;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .mention-suggest button.active,
    .mention-suggest button:hover {
      background: var(--blue-soft);
      color: var(--blue);
    }

    .mention-suggest b {
      min-width: 0;
      overflow: hidden;
      font-size: 12px;
      font-weight: 950;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mention-suggest small {
      flex: none;
      color: var(--muted);
      font-size: 10px;
      font-weight: 850;
      white-space: nowrap;
    }

    .mention-token {
      padding: 1px 4px;
      border-radius: 5px;
      background: var(--blue-soft);
      color: var(--blue);
      font-weight: 900;
    }

    .mention-input-wrap {
      position: relative;
      display: grid;
      width: 100%;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--paper);
      transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
    }

    .mention-input-wrap:focus-within {
      border-color: var(--focus-border);
      box-shadow: var(--focus-ring);
    }

    .mention-input-wrap textarea[data-mention-input] {
      position: relative;
      z-index: 1;
      width: 100%;
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      caret-color: var(--blue);
    }

    .mention-input-highlight {
      position: absolute;
      inset: 0;
      z-index: 0;
      overflow: hidden;
      color: transparent;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      pointer-events: none;
      border-color: transparent;
    }

    .mention-live-token {
      border-radius: 6px;
      background: color-mix(in srgb, var(--blue) 18%, transparent);
      box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 32%, transparent);
      color: transparent;
    }

    .drawer-log-list {
      display: grid;
      gap: 10px;
    }

    .drawer-log {
      display: grid;
      grid-template-columns: 10px 1fr;
      gap: 9px;
      align-items: start;
    }

    .drawer-log > span {
      width: 8px;
      height: 8px;
      margin-top: 5px;
      border-radius: 999px;
      background: var(--blue);
      box-shadow: 0 0 0 3px var(--blue-soft);
    }

    .drawer-log p {
      margin: 5px 0 0;
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 650;
      line-height: 1.45;
      overflow-wrap: anywhere;
    }

    .drawer-actions {
      position: sticky;
      bottom: 0;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      margin: 18px -22px -22px;
      padding: 14px 22px 18px;
      border-top: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.92);
      backdrop-filter: blur(12px);
    }

    .modal {
      --modal-pad: 20px;
      box-sizing: border-box;
      width: min(400px, 92vw);
      max-width: calc(100vw - 28px);
      max-height: min(92vh, 820px);
      display: flex;
      flex-direction: column;
      padding: var(--modal-pad);
      border: 1px solid var(--line);
      border-radius: 16px;
      background: var(--paper);
      box-shadow: 0 24px 60px rgba(15, 18, 35, 0.25);
      animation: pop 0.22s cubic-bezier(0.2, 0.7, 0.3, 1.2) both;
      overflow: hidden;
      overflow-x: hidden;
      contain: layout paint;
      overscroll-behavior: contain;
    }

    .modal > h3,
    .modal > .modal-head-row {
      flex: none;
    }

    .modal > .modal-head-row {
      margin: 0;
      padding: 0 0 14px;
      border-bottom: 1px solid var(--line);
    }

    .modal-body {
      flex: 1 1 auto;
      min-height: 0;
      min-width: 0;
      margin-top: 14px;
      overflow-x: hidden;
      overflow-y: auto;
      scrollbar-gutter: stable;
    }

    .modal.task-modal {
      width: min(760px, calc(100vw - 28px));
    }

    .modal[data-modal-form="task"],
    .modal[data-modal-form="editTask"],
    .modal[data-modal-form="schedule"],
    .modal[data-modal-form="editSchedule"] {
      width: min(920px, calc(100vw - 32px));
      height: min(760px, calc(100vh - 32px));
      max-height: min(760px, calc(100vh - 32px));
    }

    .modal.management-modal {
      width: min(820px, calc(100vw - 28px));
    }

    .modal.schedule-edit-modal {
      width: min(880px, calc(100vw - 28px));
    }

    .modal.schedule-detail-modal {
      width: min(920px, calc(100vw - 32px));
      height: min(760px, calc(100vh - 32px));
      max-height: min(760px, calc(100vh - 32px));
      padding: 0;
      overflow: hidden;
      animation: detailPop 0.2s ease both;
    }

    .schedule-detail-shell {
      display: grid;
      gap: 0;
      min-height: 0;
    }

    .schedule-detail-head {
      margin: 0;
      padding: 18px 20px 14px;
      border-bottom: 1px solid var(--line);
    }

    .schedule-detail-body {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 14px;
      min-height: 0;
      padding: 16px 20px 20px;
      overflow: auto;
      max-height: calc(86vh - 112px);
    }

    .schedule-detail-main {
      display: grid;
      gap: 10px;
      min-width: 0;
    }

    .schedule-detail-main > .drawer-section,
    .schedule-detail-main > .detail-side {
      margin-top: 0;
    }

    .schedule-note-card {
      background: var(--paper);
    }

    .schedule-detail-main .task-note-form textarea {
      min-height: 190px;
    }

    .schedule-note-card p,
    .schedule-empty-text {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
      line-height: 1.6;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .schedule-detail-bottom {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 12px;
    }

    .schedule-info-card {
      padding: 0 2px 4px;
      border: 0;
      background: transparent;
      box-shadow: none;
    }

    .schedule-info-line {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 18px;
    }

    .schedule-info-line span {
      position: relative;
      display: inline-flex;
      align-items: baseline;
      gap: 6px;
      min-width: 0;
    }

    .schedule-info-line span + span::before {
      content: "";
      position: absolute;
      left: -9px;
      top: 50%;
      width: 1px;
      height: 12px;
      background: var(--line);
      transform: translateY(-50%);
    }

    .schedule-info-line b {
      color: var(--muted);
      font-size: 10px;
      font-weight: 900;
    }

    .schedule-info-line em {
      overflow: hidden;
      color: var(--text);
      font-size: 12px;
      font-style: normal;
      font-weight: 850;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .compact-log-list article {
      display: grid;
      gap: 4px;
      padding: 9px 10px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
    }

    .compact-log-list time {
      color: var(--muted);
      font-size: 10px;
      font-weight: 750;
    }

    .schedule-edit-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
      gap: 14px;
      align-items: start;
      margin-top: 12px;
    }

    .schedule-edit-form {
      min-width: 0;
    }

    .schedule-file-side {
      align-self: stretch;
    }

    .schedule-detail-main > .schedule-file-side {
      padding-bottom: 12px;
      background: var(--paper);
    }

    .schedule-detail-main > .schedule-file-side .file-drop-zone {
      min-height: 82px;
    }

    @keyframes pop {
      from { opacity: 0; transform: translateY(10px) scale(0.97); }
      to { opacity: 1; transform: none; }
    }

    .modal h3 {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 0 0 4px;
      font-size: 16px;
      font-weight: 800;
    }

    .modal .m-sub {
      margin: 0 0 14px;
      color: var(--faint);
      font-size: 12px;
      font-weight: 600;
    }

    .guide-modal {
      width: min(860px, calc(100vw - 28px));
      max-height: min(86vh, 860px);
      overflow: auto;
    }

    .guide-stack {
      display: grid;
      gap: 12px;
      margin-bottom: 14px;
    }

    .guide-wizard {
      display: grid;
      grid-template-columns: 190px minmax(0, 1fr);
      gap: 14px;
      margin-bottom: 14px;
    }

    .guide-stepper {
      display: grid;
      gap: 7px;
      align-content: start;
    }

    .guide-stepper button {
      display: grid;
      grid-template-columns: 24px minmax(0, 1fr);
      gap: 8px;
      align-items: center;
      min-height: 36px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.72);
      color: var(--muted);
      font: inherit;
      font-size: 12px;
      font-weight: 850;
      text-align: left;
      cursor: pointer;
    }

    .guide-stepper button b {
      display: grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border-radius: 999px;
      background: var(--gray-soft);
      color: var(--gray-chip);
      font-size: 11px;
      font-weight: 900;
    }

    .guide-stepper button span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .guide-stepper button.active {
      border-color: rgba(47, 111, 237, 0.34);
      background: var(--blue-soft);
      color: var(--blue);
      box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08);
    }

    .guide-stepper button.active b {
      background: var(--blue);
      color: #fff;
    }

    .guide-current {
      display: grid;
      gap: 12px;
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--paper-soft);
    }

    .guide-current-head {
      display: grid;
      gap: 5px;
    }

    .guide-current-head > span {
      color: var(--blue);
      font-size: 12px;
      font-weight: 900;
    }

    .guide-current h4 {
      margin: 0;
      color: var(--text);
      font-size: 17px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .guide-current p {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      line-height: 1.55;
    }

    .guide-actions {
      display: grid;
      gap: 8px;
      margin: 0;
      padding-left: 20px;
      color: var(--text);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.55;
    }

    .guide-done {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border: 1px solid rgba(45, 140, 94, 0.2);
      border-radius: 10px;
      background: var(--green-soft);
      color: var(--green);
    }

    .guide-done strong {
      font-size: 12px;
      font-weight: 950;
    }

    .guide-done span {
      color: var(--text);
      font-size: 12.5px;
      font-weight: 800;
      line-height: 1.45;
    }

    .guide-values {
      display: grid;
      gap: 8px;
    }

    .guide-nav {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }

    .guide-nav button {
      height: 32px;
      padding: 0 14px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--text);
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      cursor: pointer;
    }

    .guide-nav button:not(:disabled):hover {
      border-color: rgba(47, 111, 237, 0.34);
      color: var(--blue);
      background: var(--blue-soft);
    }

    .guide-nav button:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .guide-alert,
    .guide-section {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: var(--paper-soft);
    }

    .guide-alert {
      display: grid;
      gap: 5px;
      padding: 12px 13px;
    }

    .guide-alert strong,
    .guide-section h4 {
      margin: 0;
      color: var(--text);
      font-size: 13.5px;
      font-weight: 900;
      letter-spacing: 0;
    }

    .guide-alert span {
      color: var(--muted);
      font-size: 12px;
      font-weight: 700;
      line-height: 1.5;
    }

    .guide-section {
      display: grid;
      gap: 10px;
      padding: 13px;
    }

    .guide-section ol {
      display: grid;
      gap: 6px;
      margin: 0;
      padding-left: 18px;
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 700;
      line-height: 1.55;
    }

    .guide-section li strong {
      color: var(--text);
      font-weight: 900;
    }

    .guide-section code,
    .guide-alert code {
      padding: 2px 5px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.78);
      color: var(--text);
      font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
      font-size: 12px;
      font-weight: 800;
    }

    .guide-two {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .guide-two > div {
      display: grid;
      gap: 7px;
      align-content: start;
    }

    .guide-two > div > strong {
      color: var(--text);
      font-size: 12px;
      font-weight: 900;
    }

    .copy-row,
    .link-row {
      display: grid;
      gap: 8px;
      align-items: center;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.78);
    }

    .copy-row {
      grid-template-columns: 150px minmax(0, 1fr) auto;
    }

    .link-row {
      grid-template-columns: 150px minmax(0, 1fr) auto auto;
    }

    .copy-row span,
    .link-row span {
      min-width: 0;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 850;
    }

    .copy-row code,
    .link-row code {
      min-width: 0;
      overflow-wrap: anywhere;
      background: transparent;
      padding: 0;
    }

    .copy-row button,
    .link-row button,
    .link-row a {
      display: inline-grid;
      place-items: center;
      height: 27px;
      padding: 0 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: #fff;
      color: var(--blue);
      font: inherit;
      font-size: 11.5px;
      font-weight: 900;
      cursor: pointer;
      text-decoration: none;
    }

    .copy-row button:hover,
    .link-row button:hover,
    .link-row a:hover {
      border-color: rgba(47, 111, 237, 0.38);
      background: var(--blue-soft);
    }

    .field { margin-bottom: 13px; }

    .f-label {
      display: block;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 11.5px;
      font-weight: 800;
    }

    .f-input {
      width: 100%;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--paper-soft);
      color: var(--text);
      font: inherit;
      font-size: 13.5px;
      font-weight: 600;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .f-input:focus {
      border-color: var(--blue);
      background: var(--paper);
      box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.13);
    }

    .f-input.err {
      border-color: var(--red);
      box-shadow: 0 0 0 3px rgba(212, 73, 62, 0.12);
    }

    .choice-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .choice {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      height: 28px;
      padding: 0 11px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: var(--paper);
      color: var(--muted);
      font: inherit;
      font-size: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
    }

    .choice:hover {
      border-color: var(--line-strong);
      background: var(--paper-soft);
    }

    .choice.sel {
      border-color: var(--blue);
      background: var(--blue-soft);
      color: var(--blue);
    }

    .modal-note {
      display: flex;
      align-items: flex-start;
      gap: 7px;
      margin: 2px 0 14px;
      padding: 9px 11px;
      border-radius: 10px;
      background: var(--violet-soft);
      color: #6240ae;
      font-size: 11.5px;
      font-weight: 700;
      line-height: 1.45;
    }

    .modal-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
      min-height: 52px;
    }

    .modal > .modal-actions {
      flex: none;
      margin: 18px 0 0;
      padding: 14px 0 0;
      border-top: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.94);
      backdrop-filter: blur(12px);
    }

    .modal-actions .btn-danger:first-child {
      margin-right: auto;
    }

    .btn-ghost,
    .btn-primary {
      height: 34px;
      padding: 0 16px;
      border: 0;
      border-radius: 999px;
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

    .btn-ghost {
      background: var(--gray-soft);
      color: var(--gray-chip);
    }

    .btn-ghost:hover { background: #e4e2dd; }

    .btn-ghost.compact {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 32px;
      padding: 0 12px;
      border: 1px solid rgba(47, 111, 237, 0.16);
      background: var(--blue-soft);
      color: var(--blue);
      font-size: 12px;
    }

    .btn-primary.compact {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 32px;
      padding: 0 12px;
      font-size: 12px;
    }

    .btn-primary {
      background: linear-gradient(92deg, #2f6fed, #5b5bd6);
      color: #fff;
      box-shadow: 0 5px 14px rgba(47, 111, 237, 0.28);
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 20px rgba(47, 111, 237, 0.34);
    }

    .btn-ghost:disabled,
    .btn-primary:disabled {
      cursor: not-allowed;
      opacity: 0.58;
      transform: none;
      box-shadow: none;
    }

    .btn-warn {
      height: 34px;
      padding: 0 16px;
      border: 0;
      border-radius: 999px;
      background: var(--red-soft);
      color: var(--red);
      font: inherit;
      font-size: 13px;
      font-weight: 800;
      cursor: pointer;
    }

    .event .pub {
      margin-left: auto;
      font-size: 10.5px;
    }

    /* ---------- 반응형 ---------- */

    @media (max-width: 1100px) {
      .main-grid,
      .sub-grid { grid-template-columns: 1fr; }

      .columns,
      .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 680px) {
      .cover { height: 152px; }

      .page {
        width: min(100vw - 24px, 560px);
      }

      .columns,
      .week,
      .docs { grid-template-columns: 1fr; }

      .fb-milestones,
      .fb-extra-list,
      .fb-milestone {
        min-width: 0;
        width: 100%;
      }

      .fb-milestones,
      .fb-extra-list {
        grid-template-columns: 1fr;
      }

      .fb-milestone {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 9px 10px;
      }

      .fb-progress {
        width: 160px;
      }

      .fb-due {
        justify-self: start;
      }
    }
/* ---------- 앱 로그인/운영 보강 ---------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(820px 420px at 10% -12%, rgba(122, 79, 217, 0.22), transparent 62%),
    radial-gradient(720px 380px at 72% -6%, rgba(47, 111, 237, 0.18), transparent 60%),
    var(--bg);
}
.auth-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}
.auth-card h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: 0; }
.auth-card p { margin: 0 0 22px; color: var(--muted); font-weight: 600; }
.auth-card label, .field { display: grid; gap: 7px; min-width: 0; margin-bottom: 13px; }
.auth-card span, .field label, .field span { color: var(--muted); font-size: 13px; font-weight: 800; }
.field-help {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}
.auth-card input, .field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  outline: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.auth-card input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: color-mix(in srgb, var(--blue) 58%, var(--line));
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1);
}
.button {
  border: 1px solid #1c1f26;
  border-radius: 10px;
  background: #1c1f26;
  color: #fff;
  padding: 10px 13px;
  font-weight: 850;
}
.button.secondary { border-color: var(--line); background: #fff; color: var(--text); }
.button.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.button.small { padding: 7px 9px; font-size: 13px; }
.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.google-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.deploy-status {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}
.deploy-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-soft);
}
.deploy-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.deploy-row strong {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.deploy-row strong.ok { color: var(--green); }
.deploy-row strong.warn { color: var(--red); }
.oauth-guide {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}
.oauth-guide strong {
  font-size: 13px;
  font-weight: 900;
}
.oauth-guide span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.oauth-guide input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  padding: 9px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
}
.oauth-guide em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}
.google-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.google-status > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}
.google-status span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.google-status strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}
.google-status strong.ok { color: #10815d; }
.google-status strong.warn { color: var(--red); }
.google-status em,
.google-status a {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.google-status a {
  color: var(--blue);
  text-decoration: none;
}
.error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 800;
}
.app-actions {
  position: fixed;
  z-index: 10;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}
.app-actions strong { font-size: 13px; }
.app-actions .avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.task { cursor: grab; }
.task.dragging { opacity: .55; }
.column.over { outline: 2px solid rgba(47,111,237,.24); outline-offset: 2px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 40;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-weight: 850;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.form-grid .full { grid-column: 1 / -1; }
.modal-form-stack {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.modal-form-stack *,
.modal-form-stack *::before,
.modal-form-stack *::after {
  box-sizing: border-box;
}
.form-section.flat {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.form-section.flat + .form-section.flat {
  padding-top: 2px;
}
.priority-grid {
  gap: 11px 12px;
}
.title-field input {
  min-height: 42px;
  font-size: 14.5px;
  font-weight: 850;
}
.memo-field textarea {
  min-height: 86px;
}
.attachment-field {
  margin-bottom: 0;
}
.modal-file-list {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}
.item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.item-actions .button.small {
  min-width: 42px;
  padding-inline: 9px;
  white-space: nowrap;
}

.button.danger,
.button.ghost.danger {
  color: var(--red);
}

.btn-danger {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.btn-danger.compact {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 12px;
}
.people-picker {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.people-search {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  outline: none;
}
.people-search:focus {
  border-color: rgba(47, 111, 237, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.08);
}
.person-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-height: 142px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.management-modal .person-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-height: 196px;
  padding: 8px;
  box-shadow: inset 0 -14px 18px -20px rgba(15, 18, 35, 0.42);
}
.person-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.person-choice[hidden] {
  display: none;
}
.person-choice input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin: 0;
}
.person-choice span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.person-choice small {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
}

.collaborator-field {
  margin-bottom: 0;
}

.collaborator-picker {
  gap: 0;
}

.collaborator-list {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  max-height: 104px;
  padding: 7px;
}

.collaborator-list .person-choice {
  min-height: 32px;
  padding: 0 9px;
}
.mini-select {
  width: auto;
  min-width: 190px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 800;
}
.empty-inline {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}
@media (max-width: 720px) {
  .app-actions { position: static; margin: 10px 12px 0 auto; width: max-content; }
  .form-grid { grid-template-columns: 1fr; }
  .google-status { grid-template-columns: 1fr; }
  .card-header .header-actions { flex-wrap: wrap; }
  .guide-wizard { grid-template-columns: 1fr; }
  .guide-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-two { grid-template-columns: 1fr; }
  .copy-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .link-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .copy-row button,
  .link-row button,
  .link-row a { justify-self: start; }
}

/* ---------- 새 앱 껍데기: 왼쪽 메뉴는 유지, 팀 설정을 제외한 화면은 커버 상단 적용 ---------- */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 6px 18px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1c1f26;
  color: #fff;
  font-weight: 900;
}

.brand strong { display: block; font-size: 17px; }
.brand span { color: var(--muted); font-size: 12px; font-weight: 700; }

.nav {
  display: grid;
  gap: 5px;
  margin-top: 18px;
}

.nav button {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  padding: 10px 9px;
  text-align: left;
  font-weight: 850;
}

.nav button.active {
  background: #1c1f26;
  color: #fff;
}

.nav small {
  min-width: 24px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 11px;
}

.nav button.active small { background: rgba(255, 255, 255, 0.18); }

.main {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 38px) 46px;
}

.dashboard-main {
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 10px;
}

.dashboard-main .topbar {
  position: absolute;
  top: 22px;
  left: 36px;
  right: 48px;
  z-index: 4;
  flex-wrap: wrap;
  margin-bottom: 0;
  color: #fff;
}

.global-project-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.global-project-filter > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.topbar .mini-select {
  min-width: 170px;
  max-width: 260px;
  border-color: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.dashboard-main .global-project-filter > span,
.dashboard-main .account strong {
  color: rgba(255, 255, 255, 0.93);
}

.dashboard-main .topbar .mini-select {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(10, 13, 24, 0.16);
}

.dashboard-main .avatar {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-main .button.ghost.small {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.account > strong {
  display: block;
  min-width: 0;
  max-width: min(220px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}

.account-menu {
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: none;
  width: 224px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(20, 24, 31, 0.18);
}

.account-menu.open .account-menu-panel {
  display: grid;
  gap: 8px;
}

.account-menu-panel fieldset {
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.account-menu-panel legend {
  padding: 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.account-menu-panel label {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.account-menu-panel input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.account-menu-panel > button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.account-menu-panel > button:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}

body.theme-dark .account-menu-panel {
  background: rgba(32, 36, 45, 0.99);
  border-color: var(--line-strong);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  min-height: 170px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(18, 22, 38, 0.78), rgba(18, 22, 38, 0.24)),
    var(--app-banner-image, url("/assets/workspace-cover.png")) center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.dashboard-main .dashboard-hero {
  min-height: 188px;
  padding-top: 50px;
}

.dashboard-hero.compact {
  min-height: 138px;
}

.dashboard-main .dashboard-hero.compact {
  min-height: 188px;
  padding-top: 50px;
}

.dashboard-hero span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.dashboard-hero h2 {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.dashboard-hero .hero-count {
  display: inline-block;
  min-width: 0.72em;
  margin: 0 2px;
  font: inherit;
  font-weight: 950;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.dashboard-hero .hero-count[data-tone="done"] { color: #3ddc91; }
.dashboard-hero .hero-count[data-tone="progress"] { color: #72a7ff; }
.dashboard-hero .hero-count[data-tone="urgent"] { color: #ff776d; }

.dashboard-hero > div > span + h2 {
  margin-top: 6px;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.hero-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mini-select {
  width: auto;
  min-width: 178px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-weight: 800;
}

.empty-inline {
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.task { cursor: grab; }
.task.dragging { opacity: .55; }
.column.over { outline: 2px solid rgba(47,111,237,.24); outline-offset: 2px; }

@media (max-width: 1080px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .card {
    max-width: 100%;
    overflow-x: clip;
  }

  .card-header {
    min-width: 0;
    flex-wrap: wrap;
  }

  .card-header .add-btn {
    margin-left: auto;
  }

  body:has([data-overlay]) {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body:has([data-overlay]) .shell,
  body:has([data-overlay]) .main {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
  }

  body:has([data-overlay]) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 0;
    min-width: 0;
    max-width: 0;
    height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
  }

  .main { padding: 16px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .global-project-filter {
    width: 100%;
    justify-content: space-between;
  }
  .topbar .mini-select {
    min-width: 0;
    width: min(100%, 260px);
  }
  .dashboard-main .topbar {
    position: static;
    color: var(--text);
    margin-bottom: 10px;
  }
  .dashboard-main .global-project-filter > span,
  .dashboard-main .account strong {
    color: var(--muted);
  }
  .dashboard-main .avatar {
    background: var(--blue-soft);
    color: var(--blue);
  }
  .dashboard-main .button.ghost.small {
    border-color: var(--line);
    background: var(--paper);
    color: var(--muted);
  }
  .dashboard-main .dashboard-hero {
    min-height: 130px;
    padding-top: 22px;
  }
  .dashboard-main .dashboard-hero.compact {
    min-height: 130px;
    padding-top: 22px;
  }
  .account {
    width: 100%;
    flex-wrap: wrap;
  }
  .account > strong {
    max-width: calc(100vw - 88px);
  }
  .account-actions { justify-content: flex-start; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav button {
    min-height: 38px;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    padding: 8px 9px;
  }
  .game-list {
    min-width: 0;
    max-width: 100%;
    padding-inline: 12px;
    overflow-x: clip;
  }
  .game,
  .project-row,
  .team-member-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  .project-row .game-ico,
  .team-member-row .game-ico {
    grid-row: 1 / span 3;
  }
  .project-row .item-actions,
  .team-member-row .team-project-line,
  .team-member-row .team-role {
    grid-column: 2;
  }
  .project-row .item-actions,
  .team-member-row .team-role {
    justify-self: start;
  }
  .team-member-row .team-project-line {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .team-project-line b,
  .team-projects span {
    max-width: min(136px, 100%);
  }
  .month-calendar { min-width: 760px; }
}

/* ---------- 간트 원본 연결 ---------- */
:root {
  --surface: var(--paper);
  --surface-soft: var(--paper-soft);
  --ink: var(--text);
  --ink-secondary: var(--muted);
  --ink-muted: var(--muted);
  --ink-indigo: var(--violet);
  --accent: var(--green);
  --accent-soft: var(--green-soft);
  --good: var(--green);
  --warn: var(--red);
  --hairline: var(--line);
  --caption-size: 11.5px;
  --shadow-soft: var(--shadow-sm);
  --status-todo: var(--gray-chip);
  --status-todo-tint: var(--gray-soft);
  --status-progress: var(--blue);
  --status-progress-tint: var(--blue-soft);
  --status-review: var(--amber);
  --status-review-tint: var(--amber-soft);
  --status-blocked: var(--red);
  --status-blocked-tint: var(--red-soft);
  --status-done: var(--green);
  --status-done-tint: var(--green-soft);
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.panel-body {
  padding: 16px 18px 18px;
}

.inline-field {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.inline-field label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 900;
}

.inline-field select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font-weight: 850;
}

.gantt-panel .panel-body {
  padding: 0;
}

.gantt-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.gantt-panel-title .meta-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.todo,
.status-pill.hold,
.status-pill:not(.review):not(.rejected):not(.done):not(.blocked):not(.progress) {
  background: var(--status-todo-tint);
  color: var(--status-todo);
}

.status-pill.progress {
  background: var(--status-progress-tint);
  color: var(--status-progress);
}

.status-pill.review {
  background: var(--status-review-tint);
  color: var(--status-review);
}

.status-pill.done {
  background: var(--status-done-tint);
  color: var(--status-done);
}

.status-pill.rejected,
.status-pill.blocked {
  background: var(--status-blocked-tint);
  color: var(--status-blocked);
}

.empty-state {
  margin: 0;
  padding: 28px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.wbs-status select {
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: transparent;
  padding-left: 20px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-secondary);
  appearance: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wbs-status select:hover {
  background-color: var(--surface-soft);
  border-color: var(--hairline);
}

.wbs-row.milestone {
  background: var(--surface-soft);
  box-shadow: none;
}

.wbs-row.delayed {
  background: transparent;
  box-shadow: none;
}

.wbs-row,
.timeline-row {
  border-bottom-color: var(--hairline);
}

.timeline-day {
  border-right-color: var(--hairline);
}

.timeline-scale {
  grid-template-columns: repeat(auto-fill, var(--gantt-day, 64px));
}

.timeline-row {
  background: transparent;
}

.timeline-day.minor {
  border-right-color: transparent;
}

/* ---------- 간트 화면 일치용 최종값 ---------- */
.gantt-page-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.gantt-page-head .eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  width: 100%;
}

.gantt-page-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gantt-page-head h2 .emoji {
  font-size: 22px;
}

.gantt-page-head .add-btn.inline {
  margin-left: 4px;
}

.legacy-gantt-scope {
  margin-inline: 0;
  padding-inline: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 232px);
  min-height: 420px;
  --primary: #3b5bdb;
  --primary-tint: #eef1fd;
  --surface: #ffffff;
  --surface-soft: #fbfaf9;
  --surface-sunken: #f1efec;
  --hairline: #e7e5e1;
  --hairline-strong: #d8d5cf;
  --ink: #1a1a18;
  --ink-secondary: #3a3a36;
  --ink-muted: #6b6863;
  --ink-faint: #a6a29b;
  --ink-indigo: #1b1f33;
  --accent: var(--primary);
  --accent-soft: var(--primary-tint);
  --good: #2f8f57;
  --warn: #c4453f;
  --gold: #c47d10;
  --status-todo: #8a8782;
  --status-todo-tint: #efedea;
  --status-progress: var(--blue);
  --status-progress-tint: var(--blue-soft);
  --status-review: var(--amber);
  --status-review-tint: var(--amber-soft);
  --status-done: #2f8f57;
  --status-done-tint: #e4f2e9;
  --status-blocked: #c4453f;
  --status-blocked-tint: #fae8e7;
  --gantt-grid-line: #c8beb2;
  --gantt-grid-soft: #dcd4ca;
  --radius: 16px;
  --radius-md: 10px;
  --caption-size: 12px;
  --shadow: 0 18px 42px rgba(20, 24, 31, 0.08);
  --shadow-soft: 0 8px 22px rgba(20, 24, 31, 0.055);
  color: var(--ink);
}

.legacy-gantt-scope .panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.legacy-gantt-scope .panel-header {
  padding: 17px 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
}

.legacy-gantt-scope .panel-header h2,
.legacy-gantt-scope .panel-header h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.3px;
}

.legacy-gantt-scope .panel-header h2 {
  font-size: 18px;
}

.legacy-gantt-scope .panel-body {
  padding: 17px 18px 18px;
}

.legacy-gantt-scope .inline-field {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.legacy-gantt-scope .inline-field label {
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 900;
}

.legacy-gantt-scope .inline-field select {
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}

.legacy-gantt-scope .button.secondary {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 800;
}

.legacy-gantt-scope .gantt-toolbar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #dbe4dd;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legacy-gantt-scope .gantt-toolbar-title {
  min-height: 50px;
  min-width: 240px;
  padding: 7px 12px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.legacy-gantt-scope .gantt-toolbar-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.legacy-gantt-scope .gantt-toolbar-title span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.legacy-gantt-scope .gantt-toolbar .inline-field {
  min-width: 210px;
}

.legacy-gantt-scope .gantt-view-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.legacy-gantt-scope .seg-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.legacy-gantt-scope .seg-button:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
}

.legacy-gantt-scope .seg-button.active {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(15, 23, 32, 0.08);
}

.legacy-gantt-scope .gantt-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe4dd;
  background: #fff;
}

.legacy-gantt-scope .gantt-panel .panel-header .gantt-legend {
  justify-content: flex-start;
}

.legacy-gantt-scope .panel-header .milestone-add-button {
  flex: none;
}

.legacy-gantt-scope .gantt-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.legacy-gantt-scope .gantt-panel-title .meta-line {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.legacy-gantt-scope .gantt-panel-title .milestone-add-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}

.legacy-gantt-scope .gantt-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 800;
}

.legacy-gantt-scope .gantt-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legacy-gantt-scope .gantt-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.legacy-gantt-scope .today-line-sample {
  width: 2px !important;
  height: 16px !important;
  border-radius: 0 !important;
  background: #7b48d8;
}

.legacy-gantt-scope .gantt-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.legacy-gantt-scope .gantt-panel .panel-body.gantt-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.legacy-gantt-scope .gantt-wrap {
  overflow: visible;
  padding: 0;
  background: #fff;
}

.dashboard-gantt-inline.legacy-gantt-scope {
  overflow: visible;
}

.legacy-gantt-scope .gantt-filter-note {
  position: sticky;
  left: 0;
  z-index: 7;
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: var(--caption-size);
  font-weight: 600;
}

.legacy-gantt-scope .wbs-gantt {
  --gantt-head-height: 42px;
  --gantt-row-height: 44px;
  --gantt-table-width: 500px;
  width: 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: var(--gantt-table-width) minmax(0, 1fr);
  grid-auto-rows: auto;
  align-items: stretch;
  align-content: stretch;
}

.legacy-gantt-scope .wbs-table {
  position: sticky;
  left: 0;
  z-index: 5;
  background: #fff;
  border-right: 1px solid var(--hairline);
  box-shadow: 10px 0 24px rgba(18, 24, 31, 0.055);
}

.legacy-gantt-scope .wbs-head,
.legacy-gantt-scope .wbs-row {
  display: grid;
  grid-template-columns: minmax(204px, 1fr) 96px 88px 100px;
  align-items: center;
  height: var(--gantt-row-height);
  border-bottom: 1px solid var(--hairline);
}

.legacy-gantt-scope .wbs-head {
  position: sticky;
  top: 0;
  z-index: 6;
  height: var(--gantt-head-height);
  background: #f8faf7;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 900;
}

.legacy-gantt-scope .wbs-head span,
.legacy-gantt-scope .wbs-head button {
  height: 100%;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.legacy-gantt-scope .wbs-row > div {
  height: 100%;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.legacy-gantt-scope .wbs-head-sort {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.legacy-gantt-scope .wbs-head-sort:hover,
.legacy-gantt-scope .wbs-head-sort.active {
  color: var(--accent);
  background: rgba(47, 125, 92, 0.08);
}

.legacy-gantt-scope .wbs-head-sort.active::after {
  content: " " attr(data-sort-label);
  margin-left: 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}

.legacy-gantt-scope .wbs-row {
  background: #fff;
  font-size: 12px;
  transition: background 120ms ease;
}

.legacy-gantt-scope .wbs-row.task,
.legacy-gantt-scope .timeline-row.task {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.task:hover {
  background: #fbfcf9;
  transform: none;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.task {
  cursor: grab;
}

.legacy-gantt-scope .wbs-row.task:active,
.legacy-gantt-scope .wbs-row.dragging {
  cursor: grabbing;
}

.legacy-gantt-scope .wbs-row.dragging {
  opacity: 0.58;
}

.legacy-gantt-scope .wbs-row.drop-before {
  box-shadow: inset 0 3px 0 var(--accent);
}

.legacy-gantt-scope .wbs-row.drop-after {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.legacy-gantt-scope .wbs-row.drop-inside {
  background: #edf7f2;
  outline: 2px solid rgba(47, 125, 92, 0.28);
  outline-offset: -2px;
}

.legacy-gantt-scope .wbs-row.row-sync,
.legacy-gantt-scope .timeline-row.row-sync {
  background-color: transparent;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.row-sync {
  background-color: #fbfcf9;
}

.legacy-gantt-scope .timeline-row.row-sync {
  background-color: transparent;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.milestone {
  background: var(--surface-soft);
  font-weight: 900;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.subtask {
  color: #3f4c57;
}

.legacy-gantt-scope .wbs-row.delayed {
  background: transparent;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: calc(6px + var(--depth, 0) * 14px) !important;
}

.legacy-gantt-scope .wbs-toggle,
.legacy-gantt-scope .wbs-toggle-placeholder {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.legacy-gantt-scope .wbs-toggle-placeholder {
  width: 0;
  flex-basis: 0;
}

.legacy-gantt-scope .wbs-toggle {
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid #cfd8cf;
  background: #fff;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.legacy-gantt-scope .wbs-toggle:hover {
  background: #eef5f1;
  color: var(--accent);
  border-color: #b9cec1;
}

.legacy-gantt-scope .wbs-row.collapsed .wbs-count {
  background: var(--accent);
  color: #fff;
}

.legacy-gantt-scope .wbs-title-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.legacy-gantt-scope .wbs-project-chip {
  flex: 0 0 auto;
  max-width: 48px;
  height: 22px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gantt-project-tone, #6b7280) 20%, var(--hairline));
  border-radius: 999px;
  background: var(--gantt-project-soft, #eef1f4);
  color: var(--gantt-project-tone, #6b7280);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-gantt-scope .wbs-project-chip.tone-blue { --gantt-project-tone: var(--blue); --gantt-project-soft: var(--blue-soft); }
.legacy-gantt-scope .wbs-project-chip.tone-green { --gantt-project-tone: var(--green); --gantt-project-soft: var(--green-soft); }
.legacy-gantt-scope .wbs-project-chip.tone-violet { --gantt-project-tone: var(--violet); --gantt-project-soft: var(--violet-soft); }
.legacy-gantt-scope .wbs-project-chip.tone-amber { --gantt-project-tone: var(--amber); --gantt-project-soft: var(--amber-soft); }
.legacy-gantt-scope .wbs-project-chip.tone-red { --gantt-project-tone: var(--red); --gantt-project-soft: var(--red-soft); }
.legacy-gantt-scope .wbs-project-chip.tone-gray { --gantt-project-tone: #6b7280; --gantt-project-soft: #eef1f4; }

.legacy-gantt-scope .wbs-assignee {
  display: flex;
  align-items: center;
}

.legacy-gantt-scope .wbs-assignee-chip {
  max-width: 78px;
  height: 22px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gantt-assignee-tone, #6b7280) 18%, var(--hairline));
  border-radius: 999px;
  background: var(--gantt-assignee-soft, #eef1f4);
  color: var(--gantt-assignee-tone, #6b7280);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-gantt-scope .wbs-assignee-chip.tone-blue { --gantt-assignee-tone: var(--blue); --gantt-assignee-soft: var(--blue-soft); }
.legacy-gantt-scope .wbs-assignee-chip.tone-green { --gantt-assignee-tone: var(--green); --gantt-assignee-soft: var(--green-soft); }
.legacy-gantt-scope .wbs-assignee-chip.tone-violet { --gantt-assignee-tone: var(--violet); --gantt-assignee-soft: var(--violet-soft); }
.legacy-gantt-scope .wbs-assignee-chip.tone-amber { --gantt-assignee-tone: var(--amber); --gantt-assignee-soft: var(--amber-soft); }
.legacy-gantt-scope .wbs-assignee-chip.tone-red { --gantt-assignee-tone: var(--red); --gantt-assignee-soft: var(--red-soft); }

.legacy-gantt-scope .wbs-add-child {
  width: 22px;
  height: 20px;
  padding: 0;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid #cfe0d5;
  background: #f8fcf9;
  color: var(--good);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  opacity: 0.62;
}

.legacy-gantt-scope .wbs-row:hover .wbs-add-child,
.legacy-gantt-scope .wbs-add-child:focus-visible {
  opacity: 1;
}

.legacy-gantt-scope .wbs-add-child:hover {
  background: #e6f5eb;
  border-color: #a9d0b8;
}

.legacy-gantt-scope .wbs-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.legacy-gantt-scope .wbs-actions .wbs-add-child {
  width: auto;
  min-width: 38px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
}

.legacy-gantt-scope .wbs-actions .wbs-add-child.danger {
  border-color: #f0c7c4;
  background: #fff7f6;
  color: var(--red);
}

.legacy-gantt-scope .wbs-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #e6f0ea;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.legacy-gantt-scope .wbs-status select {
  width: 100%;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background-color: transparent;
  padding: 0 6px 0 20px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-secondary);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.legacy-gantt-scope .gantt-status-select {
  position: relative;
  display: block;
  width: 100%;
}

.legacy-gantt-scope .gantt-status-select::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--status-color);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

.legacy-gantt-scope .wbs-status select:hover {
  background-color: var(--surface-soft);
  border-color: var(--hairline);
}

.legacy-gantt-scope .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.legacy-gantt-scope .status-pill.todo,
.legacy-gantt-scope .status-pill.hold,
.legacy-gantt-scope .status-pill:not(.review):not(.rejected):not(.done):not(.blocked):not(.progress) {
  background: var(--status-todo-tint);
  color: var(--status-todo);
}

.legacy-gantt-scope .status-pill.progress {
  background: var(--status-progress-tint);
  color: var(--status-progress);
}

.legacy-gantt-scope .status-pill.review {
  background: var(--status-review-tint);
  color: var(--status-review);
}

.legacy-gantt-scope .status-pill.done {
  background: var(--status-done-tint);
  color: var(--status-done);
}

.legacy-gantt-scope .status-pill.rejected,
.legacy-gantt-scope .status-pill.blocked {
  background: var(--status-blocked-tint);
  color: var(--status-blocked);
}

.legacy-gantt-scope .status-pill.hold {
  background: var(--violet-soft);
  color: var(--violet);
}

.legacy-gantt-scope .wbs-assignee,
.legacy-gantt-scope .wbs-dates,
.legacy-gantt-scope .wbs-issues {
  color: var(--ink-muted);
  font-weight: 600;
}

.legacy-gantt-scope .wbs-assignee,
.legacy-gantt-scope .wbs-dates {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-gantt-scope .wbs-dates,
.legacy-gantt-scope .wbs-dates span {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-dates.danger {
  color: var(--warn);
}

.legacy-gantt-scope .wbs-actions {
  display: inline-flex;
}

.legacy-gantt-scope .icon-button.small {
  width: 28px;
  height: 28px;
  min-height: 28px;
  font-size: 13px;
}

.legacy-gantt-scope .timeline-pane {
  position: relative;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: var(--gantt-update-pad-negative, -22px);
  padding-top: var(--gantt-update-pad, 22px);
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
}

.legacy-gantt-scope .timeline-scale {
  position: sticky;
  top: 0;
  z-index: 3;
  height: var(--gantt-head-height);
  display: grid;
  overflow: visible;
  background: #fbfcfa;
  border-bottom: 1px solid var(--gantt-grid-line);
}

.legacy-gantt-scope .timeline-day {
  position: relative;
  min-width: 0;
  display: block;
  overflow: visible;
  padding: 4px 3px;
  border-radius: 0;
  border-right: 1px solid var(--gantt-grid-line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
}

.legacy-gantt-scope .timeline-day.weekend {
  background: #f4f0f8;
}

.legacy-gantt-scope .timeline-day.today {
  color: #6335bd;
  background: #f0eafb;
}

.legacy-gantt-scope .timeline-day.minor {
  border-right-color: var(--gantt-grid-soft);
}

.legacy-gantt-scope .timeline-day.has-update::after {
  content: none;
}

.legacy-gantt-scope .timeline-update-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 72px;
  max-width: 148px;
  height: 17px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(209, 138, 24, 0.24);
  border-radius: 3px;
  background: rgba(255, 240, 207, 0.96);
  color: #9a6300;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 5;
}

.legacy-gantt-scope .timeline-date-label {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  min-height: 11px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.legacy-gantt-scope .timeline-day.saturday .timeline-date-label {
  color: #2563eb;
}

.legacy-gantt-scope .timeline-day.holiday .timeline-date-label {
  color: var(--red);
}

.legacy-gantt-scope .timeline-update-line {
  position: absolute;
  bottom: 5px;
  height: 3px;
  border-radius: 999px;
  background: #d18a18;
  box-shadow: 0 0 0 1px rgba(209, 138, 24, 0.12);
  pointer-events: none;
  z-index: 3;
}

.legacy-gantt-scope .timeline-update-chip {
  max-width: calc(var(--gantt-day, 64px) - 8px);
  height: 16px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--hairline));
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-gantt-scope .today-marker {
  position: absolute;
  top: 0;
  height: var(--gantt-head-height);
  width: 2px;
  background: #7b48d8;
  pointer-events: none;
  z-index: 4;
}

.legacy-gantt-scope .today-marker span {
  position: absolute;
  top: 4px;
  left: 6px;
  width: max-content;
  padding: 2px 5px;
  border-radius: 0;
  background: #7b48d8;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.legacy-gantt-scope .timeline-body {
  position: relative;
  flex: 0 0 auto;
}

.legacy-gantt-scope .timeline-grid-lines {
  position: absolute;
  inset: 0;
  display: grid;
  pointer-events: none;
  z-index: 0;
}

.legacy-gantt-scope .timeline-grid-line {
  position: relative;
  min-width: 0;
  border-right: 1px solid var(--gantt-grid-line);
}

.legacy-gantt-scope .timeline-grid-line.minor {
  border-right-color: var(--gantt-grid-soft);
}

.legacy-gantt-scope .timeline-update-marker {
  position: absolute;
  top: 0;
  height: var(--gantt-head-height);
  width: 2px;
  background: #d18a18;
  transform: translateX(var(--marker-offset, 0));
  pointer-events: none;
  z-index: 4;
}

.legacy-gantt-scope .timeline-update-marker span {
  position: absolute;
  top: var(--update-lane-top, -18px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 76px;
  max-width: 156px;
  height: 17px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(209, 138, 24, 0.24);
  border-radius: 3px;
  background: rgba(255, 240, 207, 0.98);
  color: #9a6300;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(64, 42, 14, 0.08);
}

.legacy-gantt-scope .timeline-update-body-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d18a18;
  transform: translateX(var(--marker-offset, 0));
  pointer-events: none;
  z-index: 2;
}

.legacy-gantt-scope .today-body-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #7b48d8;
  pointer-events: none;
  z-index: 2;
}

.legacy-gantt-scope .timeline-row {
  position: relative;
  height: var(--gantt-row-height);
  border-bottom: 1px solid var(--gantt-grid-soft);
  background: transparent;
}

.legacy-gantt-scope .timeline-row.milestone {
  background-color: var(--surface-soft);
}

.legacy-gantt-scope .timeline-row.delayed {
  background-color: transparent;
}

.legacy-gantt-scope .gantt-track {
  height: var(--gantt-row-height);
  position: relative;
}

.legacy-gantt-scope .gantt-bar {
  position: absolute;
  top: 9px;
  height: 26px;
  min-height: 0;
  max-height: 26px;
  min-width: 22px;
  margin: 0;
  box-sizing: border-box;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 7px 15px rgba(18, 24, 31, 0.14);
  z-index: 3;
}

.legacy-gantt-scope .gantt-bar:hover {
  transform: none;
}

.legacy-gantt-scope .gantt-bar.draggable {
  cursor: grab;
}

.legacy-gantt-scope .gantt-bar.draggable:active,
.legacy-gantt-scope .gantt-bar.dragging {
  cursor: grabbing;
  opacity: 0.82;
}

.legacy-gantt-scope .gantt-bar.readonly {
  cursor: pointer;
}

.legacy-gantt-scope .gantt-bar.delayed {
  outline: 2px solid rgba(185, 80, 59, 0.22);
}

.legacy-gantt-scope .gantt-bar-label {
  pointer-events: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legacy-gantt-scope .gantt-handle {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  opacity: 0;
  transition: opacity 0.12s ease, background 0.12s ease;
}

.legacy-gantt-scope .gantt-handle.start {
  left: 3px;
  cursor: ew-resize;
}

.legacy-gantt-scope .gantt-handle.end {
  right: 3px;
  cursor: ew-resize;
}

.legacy-gantt-scope .gantt-bar:hover .gantt-handle,
.legacy-gantt-scope .gantt-bar:focus-within .gantt-handle,
.legacy-gantt-scope .gantt-bar.dragging .gantt-handle {
  opacity: 0.68;
}

.legacy-gantt-scope .gantt-bar.milestone {
  height: 14px;
  min-height: 0;
  max-height: 14px;
  top: 16px;
  border-radius: 999px;
  opacity: 0.86;
  cursor: default;
}

.legacy-gantt-scope .wbs-gantt.zoom-month .gantt-bar-label,
.legacy-gantt-scope .wbs-gantt.zoom-week .gantt-bar-label {
  font-size: 10.5px;
}

.legacy-gantt-scope .wbs-gantt.zoom-month .gantt-bar-label {
  display: none;
}

@media (max-width: 760px) {
  .legacy-gantt-scope .gantt-toolbar {
    align-items: stretch;
  }

  .legacy-gantt-scope .gantt-toolbar-title,
  .legacy-gantt-scope .gantt-toolbar .inline-field {
    width: 100%;
    min-width: 0;
  }

  .legacy-gantt-scope .gantt-view-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .legacy-gantt-scope .milestone-add-button {
    margin-left: 0;
  }
}

/* ---------- 운영 밀도: 기본 80%, 큰 보기 100% 기준 ---------- */
@media (min-width: 1081px) {
  body {
    font-size: 13px;
    zoom: var(--desktop-app-zoom);
  }

  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .sidebar {
    padding: 14px 11px;
  }

  .brand {
    gap: 9px;
    padding: 5px 5px 15px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 12px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 10px;
  }

  .nav {
    gap: 4px;
    margin-top: 14px;
  }

  .nav button {
    grid-template-columns: 21px 1fr auto;
    gap: 7px;
    padding: 8px 8px;
    border-radius: 8px;
    font-size: 11.5px;
  }

  .nav small {
    min-width: 20px;
    padding: 1px 5px;
    font-size: 9.5px;
  }

  .main {
    padding: 18px clamp(16px, 2.6vw, 32px) 36px;
  }

  .topbar {
    gap: 13px;
    margin-bottom: 8px;
  }

  .global-project-filter {
    gap: 6px;
  }

  .global-project-filter > span {
    font-size: 10.5px;
  }

  .account {
    gap: 7px;
    font-size: 12px;
  }

  .account-actions {
    gap: 3px;
  }

  .avatar {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .dashboard-hero {
    min-height: 136px;
    gap: 14px;
    margin-bottom: 11px;
    padding: 18px;
    border-radius: 10px;
  }

  .dashboard-hero.compact {
    min-height: 110px;
  }

  .dashboard-hero span {
    font-size: 10.5px;
  }

  .dashboard-hero h2 {
    font-size: clamp(22px, 2.56vw, 32px);
  }

  .dashboard-hero p {
    max-width: 576px;
    margin-top: 8px;
    font-size: 12px;
  }

  .hero-tools {
    gap: 6px;
  }

  .mini-select {
    min-width: 142px;
    padding: 7px 9px;
    border-radius: 8px;
    font-size: 12px;
  }

  .topbar .mini-select {
    min-width: 136px;
    max-width: 210px;
  }

  .card,
  .panel,
  .legacy-gantt-scope .panel {
    border-radius: 14px;
  }

  .card-header {
    gap: 13px;
    padding: 13px 14px 10px;
  }

  .card-header .header-actions,
  .header-tools {
    gap: 7px;
  }

  h2 {
    gap: 6px;
    font-size: 13.5px;
  }

  h2 .emoji {
    font-size: 14px;
  }

  .small {
    font-size: 10px;
  }

  .button {
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .button.small {
    padding: 6px 7px;
    font-size: 10.5px;
  }

  .add-btn {
    height: 24px;
    padding: 0 11px;
    font-size: 11px;
    font-weight: 850;
  }

  .add-btn.inline {
    height: 22px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .main-grid,
  .sub-grid {
    gap: 11px;
    margin-bottom: 11px;
  }

  .focus-bar {
    grid-template-columns: minmax(130px, 0.18fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  .fb-header {
    gap: 8px;
  }

  .fb-label,
  .fb-meta,
  .fb-milestone,
  .fb-extra summary {
    font-size: 10px;
  }

  .fb-milestones,
  .fb-extra-list {
    gap: 7px;
  }

  .fb-milestone {
    grid-template-columns: minmax(150px, 1fr) minmax(78px, 110px) auto;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
  }

  .chip {
    height: 19px;
    padding: 0 7px;
    font-size: 9.5px;
  }

  .game-list,
  .milestone-list,
  .docs,
  .archive-task-list {
    gap: 7px;
  }

  .game {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .project-row,
  .team-member-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .project-row .game-ico,
  .team-member-row .game-ico {
    grid-row: 1 / span 2;
  }

  .project-row .item-actions,
  .team-member-row .team-project-line {
    grid-column: 2 / 4;
  }

  .project-row .item-actions {
    justify-self: end;
  }

  .team-member-row .team-role {
    grid-column: 3;
    grid-row: 1;
  }

  .game-ico {
    width: 38px;
    min-width: 38px;
    height: 30px;
    font-size: 11px;
  }

  .game-info strong,
  .doc-body strong {
    font-size: 11.5px;
  }

  .game-info em,
  .doc-body span {
    font-size: 10px;
  }

  .milestone-list {
    padding: 0 13px 13px;
  }

  .milestone-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 9px;
  }

  .milestone-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
  }

  .milestone-main {
    gap: 5px;
  }

  .milestone-top strong {
    font-size: 11px;
  }

  .milestone-dday,
  .milestone-percent {
    font-size: 9.5px;
  }

  .milestone-progress-row {
    gap: 7px;
  }

  .milestone-percent {
    min-width: 28px;
  }

  .milestone-side {
    gap: 4px;
  }

  .milestone-actions {
    gap: 4px;
  }

  .milestone-actions .btn-ghost.compact,
  .milestone-actions .btn-danger.compact {
    height: 24px;
    min-height: 24px;
    padding: 0 7px;
    font-size: 9px;
  }

  .milestone-meta {
    gap: 6px;
    font-size: 9px;
  }

  .milestone-progress {
    height: 4px;
  }

  .week-section,
  .month-section {
    margin-bottom: 11px;
  }

  .week-nav {
    gap: 6px;
    font-size: 10px;
  }

  .nav-btn {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }

  .week-label {
    min-width: 77px;
    font-size: 10px;
  }

  .week-label.inline {
    min-width: 0;
    padding: 3px 7px;
    font-size: 10.8px;
  }

  .week {
    gap: 7px;
    padding: 0 14px 14px;
  }

  .day {
    padding: 9px;
    border-radius: 10px;
  }

  .day-head,
  .week-day-head {
    font-size: 10.5px;
  }

  .week-timeline {
    --week-lane-height: 23px;
  }

  .week-day {
    padding: 7px 8px;
  }

  .week-bars {
    inset: 34px 0 9px;
  }

  .week-bar {
    top: calc(var(--lane) * 22px);
    height: 18px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 9px;
  }

  .week-update-chip,
  .today-chip,
  .event-chip {
    height: 18px;
    padding: 0 6px;
    font-size: 9px;
  }

  .month-scroll {
    padding: 0 14px 14px;
  }

  .month-weekdays {
    margin-bottom: 5px;
    font-size: 9.5px;
  }

  .month-weeks {
    gap: 6px;
  }

  .month-week-row {
    min-height: calc(94px + var(--month-lanes, 1) * 30px);
    border-radius: 8px;
  }

  .month-day {
    padding: 7px 8px;
  }

  .month-day-head {
    min-height: 16px;
  }

  .month-day-head strong {
    font-size: 10px;
  }

  .month-bars {
    inset: 36px 0 10px;
  }

  .month-bar {
    left: calc((var(--start) - 1) * 100% / 7 + 6px);
    top: calc(var(--lane) * 22px);
    width: calc(var(--span) * 100% / 7 - 12px);
    height: 18px;
    gap: 6px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 9px;
  }

  .library-drop {
    gap: 4px;
    margin: 0 14px 14px;
    padding: 10px;
    border-radius: 11px;
  }

  .library-drop strong {
    font-size: 11px;
  }

  .library-drop span {
    font-size: 10px;
  }

  .library-section {
    gap: 10px;
    padding: 13px;
  }

  .library-tools {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .library-search {
    padding: 7px 10px;
    border-radius: 10px;
  }

  .library-search input {
    font-size: 11px;
  }

  .library-period-tools,
  .library-filter-note {
    justify-self: stretch;
    width: 100%;
  }

  .library-filter-note {
    min-height: 28px;
    border-radius: 10px;
    text-align: center;
  }

  .library-summary {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    gap: 7px;
  }

  .library-summary span {
    padding: 8px 9px;
    border-radius: 9px;
  }

  .library-summary b {
    font-size: 14px;
  }

  .library-summary em {
    font-size: 9px;
  }

  .library-groups {
    gap: 10px;
  }

  .library-group {
    gap: 8px;
    padding: 10px;
    border-radius: 11px;
  }

  .library-group-head {
    gap: 8px;
    padding-bottom: 7px;
  }

  .library-group-head h3 {
    font-size: 11.5px;
  }

  .library-group-count {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .library-list {
    gap: 6px;
  }

  .library-item-link {
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 47px;
    gap: 8px;
    padding: 7px 9px 7px 11px;
  }

  .library-owned .library-item-link {
    padding-right: 42px;
  }

  .library-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 12px;
  }

  .library-item-main {
    gap: 5px;
  }

  .library-item-main strong {
    font-size: 10.5px;
  }

  .library-chip-row {
    gap: 4px;
  }

  .library-chip {
    max-width: 132px;
    height: 18px;
    padding: 0 6px;
    font-size: 8.8px;
  }

  .library-delete {
    min-height: 18px;
    padding: 0 6px;
    font-size: 9px;
  }

  .docs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 14px 14px;
  }

  .doc {
    border-radius: 10px;
  }

  .doc-cover {
    height: 78px;
  }

  .doc-ico {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .doc-body {
    padding: 14px 10px 9px;
  }

  .doc.doc-row .doc-row-link {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    min-height: 44px;
    gap: 8px;
    padding: 7px 9px;
  }

  .doc-row-icon {
    width: 27px;
    height: 27px;
    border-radius: 8px;
    font-size: 12px;
  }

  .doc-row-main strong {
    font-size: 10.5px;
  }

  .doc-row-main span,
  .doc-row-badge,
  .doc.doc-row .doc-delete {
    font-size: 9px;
  }

  .doc-row-badge {
    min-width: 30px;
    height: 18px;
    padding: 0 6px;
  }

  .doc-row-library .doc-row-link {
    padding-right: 42px;
  }

  .doc-delete,
  .doc-source {
    top: 7px;
    right: 7px;
    font-size: 9.5px;
  }

  .kpi-tabs,
  .archive-tabs,
  .archive-folder-tabs,
  .library-tabs,
  .gantt-zoom-tabs {
    gap: 5px;
    padding: 3px;
  }

  .kpi-tabs button,
  .archive-tabs button,
  .archive-folder-tabs button,
  .library-tabs button,
  .gantt-zoom-tabs button {
    min-height: 26px;
    padding: 0 10px;
    font-size: 10px;
  }

  .kpi-overview {
    grid-template-columns: minmax(210px, 0.8fr) minmax(230px, 0.8fr) minmax(260px, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 12px;
  }

  .kpi-overview-main {
    gap: 11px;
  }

  .kpi-overview-main strong,
  .kpi-person-title strong {
    font-size: 14.5px;
  }

  .kpi-overview-main > div span,
  .kpi-person-title em {
    font-size: 10px;
  }

  .kpi-block-grid {
    gap: 10px;
  }

  .kpi-block,
  .kpi-detail,
  .archive-card,
  .archive-group {
    padding: 11px;
    border-radius: 12px;
  }

  .kpi-ring {
    width: 46px;
    height: 46px;
  }

  .kpi-ring b {
    font-size: 12px;
  }

  .kpi-ring em,
  .kpi-ring b::after {
    font-size: 8px;
  }

  .kpi-support-line span,
  .kpi-mini-metrics span,
  .kpi-period {
    padding: 6px 7px;
    border-radius: 8px;
  }

  .kpi-support-line b,
  .kpi-mini-metrics b {
    font-size: 12px;
  }

  .kpi-support-line em,
  .kpi-person-support,
  .kpi-mini-metrics em,
  .kpi-period strong,
  .kpi-period span {
    font-size: 9px;
  }

  .kpi-person-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 9px;
  }

  .kpi-person-main strong,
  .kpi-project-row strong,
  .kpi-task-table strong {
    font-size: 10.5px;
  }

  .kpi-person-main em,
  .kpi-person-count i,
  .kpi-project-row em,
  .kpi-task-table span,
  .kpi-task-table em {
    font-size: 9px;
  }

  .kpi-person-count b {
    font-size: 14px;
  }

  .kpi-flag {
    padding: 2px 6px;
    font-size: 9px;
  }

  .kpi-rate-pill {
    min-width: 64px;
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .kpi-detail-score {
    min-width: 58px;
    min-height: 44px;
    border-radius: 11px;
  }

  .kpi-detail-score b,
  .kpi-contribution-side b {
    font-size: 14px;
  }

  .kpi-detail-score em,
  .kpi-contribution-side em {
    font-size: 8.5px;
  }

  .kpi-card-summary,
  .kpi-detail-focus {
    gap: 6px;
    margin: 8px 0;
  }

  .kpi-card-summary span,
  .kpi-detail-focus span {
    min-height: 23px;
    padding: 0 8px;
  }

  .kpi-card-summary b,
  .kpi-detail-focus b {
    font-size: 12px;
  }

  .kpi-card-summary em,
  .kpi-detail-focus em,
  .kpi-section-label span,
  .kpi-contribution-title em,
  .kpi-contribution-meta,
  .kpi-detail-panel > header span {
    font-size: 9px;
  }

  .kpi-detail-focus {
    gap: 8px;
    margin: 10px 0 12px;
  }

  .kpi-detail-focus span {
    min-height: 64px;
    padding: 0 14px;
  }

  .kpi-detail-focus b {
    font-size: 24px;
  }

  .kpi-detail-focus em {
    font-size: 11px;
  }

  .kpi-section-label {
    margin: 10px 0 7px;
  }

  .kpi-section-label strong,
  .kpi-contribution-title strong,
  .kpi-detail-panel > header strong {
    font-size: 10.5px;
  }

  .kpi-contribution-list {
    gap: 7px;
  }

  .kpi-contribution-row {
    grid-template-columns: 28px minmax(0, 1fr) minmax(62px, auto);
    gap: 8px;
    padding: 8px 0;
  }

  .kpi-contribution-row .game-ico,
  .kpi-contribution-row .avatar.small {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 10px;
  }

  .kpi-contribution-bar {
    height: 5px;
  }

  .kpi-work-chip {
    min-height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  .kpi-task-chip,
  .kpi-more-chip {
    min-height: 22px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .kpi-task-chip b {
    font-size: 8px;
  }

  .kpi-person-modal {
    border-radius: 12px;
  }

  .modal-head-row {
    margin-bottom: 10px;
  }

  .kpi-modal-head {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding-bottom: 10px;
  }

  .kpi-modal-head strong {
    font-size: 14px;
  }

  .kpi-modal-head em {
    font-size: 10px;
  }

  .kpi-modal-stats {
    gap: 6px;
    margin: 10px 0;
  }

  .kpi-modal-stats span {
    min-height: 24px;
    padding: 0 8px;
  }

  .kpi-modal-stats b {
    font-size: 12px;
  }

  .kpi-modal-stats em,
  .kpi-modal-task span,
  .kpi-modal-task em,
  .kpi-modal-task-group header span {
    font-size: 9px;
  }

  .kpi-modal-task-groups {
    gap: 10px;
  }

  .kpi-modal-task {
    grid-template-columns: 60px minmax(0, 1fr) 104px;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 8px;
  }

  .kpi-modal-task strong,
  .kpi-modal-task-group header strong {
    font-size: 10.5px;
  }

  .kpi-detail-columns {
    gap: 10px;
  }

  .kpi-detail-panel {
    padding: 10px;
    border-radius: 10px;
  }

  .kpi-task-table.compact button {
    grid-template-columns: 98px minmax(0, 1fr) 104px;
  }

  .archive-section {
    gap: 10px;
    padding: 13px;
  }

  .archive-summary {
    grid-template-columns: repeat(4, minmax(82px, 1fr));
    gap: 7px;
  }

  .archive-summary span {
    padding: 8px 9px;
    border-radius: 9px;
  }

  .archive-summary b {
    font-size: 14px;
  }

  .archive-summary em {
    font-size: 9px;
  }

  .archive-period-tools {
    gap: 6px;
    padding: 7px 8px;
    border-radius: 9px;
  }

  .archive-gantt-tools {
    flex-wrap: wrap;
  }

  .archive-period-step {
    width: 23px;
    height: 23px;
    font-size: 12px;
  }

  .archive-date-picker {
    min-height: 23px;
    gap: 5px;
    padding: 0 8px;
  }

  .archive-date-picker span,
  .archive-period-title {
    font-size: 9.5px;
  }

  .archive-date-picker input {
    min-width: 102px;
    font-size: 10px;
  }

  .archive-date-picker input[type="month"] {
    min-width: 82px;
  }

  .archive-filter-row {
    flex-wrap: wrap;
    gap: 7px;
    padding: 8px;
  }

  .archive-filter-row select {
    width: 124px;
  }

  .archive-filter-reset {
    width: auto;
  }

  .archive-gantt {
    border-radius: 10px;
  }

  .archive-gantt-head,
  .archive-gantt-row {
    grid-template-columns: minmax(180px, 0.66fr) minmax(calc(var(--archive-days) * 31px), 1fr);
    min-width: calc(180px + var(--archive-days) * 31px);
  }

  .archive-gantt-days,
  .archive-gantt-track {
    grid-template-columns: repeat(var(--archive-days), minmax(31px, 1fr));
  }

  .archive-gantt-left-head {
    min-height: 34px;
    padding: 5px 7px;
  }

  .archive-gantt-days {
    min-height: 34px;
  }

  .archive-gantt-days span {
    font-size: 10px;
  }

  .archive-gantt-row {
    min-height: 42px;
  }

  .archive-gantt-task {
    padding: 7px 8px;
  }

  .archive-gantt-bar {
    height: 25px;
    border-radius: 7px;
    font-size: 9.5px;
  }

  .archive-list,
  .archive-game-groups,
  .archive-group-list {
    gap: 10px;
  }

  .archive-game-group {
    gap: 8px;
    padding: 10px;
    border-radius: 11px;
  }

  .archive-game-head {
    gap: 8px;
    padding-bottom: 7px;
  }

  .archive-game-head h3 {
    font-size: 11.5px;
  }

  .archive-group-count {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 9px;
  }

  .archive-milestone-list {
    gap: 8px;
  }

  .archive-card.milestone::before {
    height: 2px;
  }

  .archive-head h3,
  .archive-group-head h3 {
    font-size: 12px;
  }

  .archive-kicker,
  .archive-meta,
  .archive-empty,
  .archive-group-meta,
  .archive-task-stats em {
    font-size: 9.5px;
  }

  .archive-meta {
    gap: 4px;
  }

  .archive-meta span {
    height: 18px;
    padding: 0 6px;
  }

  .archive-task {
    gap: 5px;
    padding: 7px 8px;
    border-radius: 8px;
  }

  .archive-task-main strong {
    font-size: 10.5px;
  }

  .archive-task-stats {
    gap: 4px;
  }

  .archive-task-stats span {
    max-width: 132px;
    min-height: 19px;
    gap: 3px;
    padding: 0 6px;
  }

  .archive-task-stats b {
    font-size: 8px;
  }

  .archive-task-stats em {
    font-size: 8.8px;
  }

  .deploy-status {
    gap: 7px;
    padding: 0 13px 13px;
  }

  .deploy-row {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .deploy-row span,
  .oauth-guide span,
  .field span,
  .auth-card span,
  .field label {
    font-size: 11px;
    font-weight: 850;
  }

  .field-help {
    font-size: 9px;
  }

  .deploy-row strong,
  .oauth-guide input,
  .field input,
  .field select,
  .field textarea {
    font-size: 12.25px;
    font-weight: 760;
  }

  .panel-body {
    padding: 13px 14px 14px;
  }

  .oauth-guide {
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
  }

  .google-status {
    gap: 8px;
  }

  .modal {
    --modal-pad: 16px;
    width: min(448px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    padding: var(--modal-pad);
    border-radius: 12px;
  }

  .modal.task-modal {
    width: min(784px, calc(100vw - 28px));
  }

  .modal[data-modal-form="task"],
  .modal[data-modal-form="editTask"],
  .modal[data-modal-form="schedule"],
  .modal[data-modal-form="editSchedule"] {
    width: min(920px, calc(100vw - 28px));
    height: min(760px, calc(100vh - 28px));
    max-height: min(760px, calc(100vh - 28px));
  }

  .modal.schedule-edit-modal {
    width: min(704px, calc(100vw - 28px));
  }

  .modal.schedule-detail-modal {
    width: min(920px, calc(100vw - 28px));
    height: min(760px, calc(100vh - 28px));
    max-height: min(760px, calc(100vh - 28px));
  }

  .schedule-detail-head {
    padding: 15px 16px 12px;
  }

  .schedule-detail-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 13px 16px 16px;
    max-height: calc(88vh - 96px);
  }

  .schedule-detail-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .schedule-note-card {
    min-height: 0;
  }

  .schedule-detail-main .task-note-form textarea {
    min-height: 170px;
  }

  .form-grid {
    gap: 8px;
  }

  .field {
    gap: 6px;
    margin-bottom: 10px;
  }

  .auth-card input,
  .field input,
  .field select,
  .field textarea {
    padding: 8px 10px;
    border-radius: 8px;
  }

  .modal-actions {
    gap: 7px;
    padding-top: 11px;
  }

  .management-modal .person-list {
    max-height: min(27vh, 150px);
    padding: 8px;
  }

  .task-detail-modal {
    width: min(920px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    height: min(760px, calc(100vh - 28px));
    max-height: min(760px, calc(100vh - 28px));
  }

  .task-drawer {
    width: min(720px, calc(100vw - 28px));
  }

  .drawer-shell {
    gap: 11px;
    padding: 18px;
  }

  .drawer-title h2 {
    font-size: 18px;
  }

  .drawer-section {
    padding: 11px;
    border-radius: 10px;
  }

  .legacy-gantt-scope {
    height: calc(100vh - 186px);
    min-height: 336px;
    --caption-size: 9.5px;
  }

  .legacy-gantt-scope .panel-header {
    gap: 10px;
    padding: 14px 14px 0;
  }

  .legacy-gantt-scope .panel-header h2 {
    font-size: 14.5px;
  }

  .legacy-gantt-scope .panel-body {
    padding: 14px;
  }

  .legacy-gantt-scope .gantt-toolbar {
    gap: 8px;
    margin-bottom: 11px;
    padding: 8px;
  }

  .legacy-gantt-scope .gantt-toolbar-title {
    min-height: 40px;
    min-width: 192px;
    padding: 6px 10px;
  }

  .legacy-gantt-scope .gantt-toolbar-title strong {
    font-size: 11.5px;
  }

  .legacy-gantt-scope .gantt-toolbar-title span,
  .legacy-gantt-scope .inline-field label,
  .legacy-gantt-scope .gantt-legend,
  .legacy-gantt-scope .gantt-panel-title .meta-line {
    font-size: 9.5px;
  }

  .legacy-gantt-scope .inline-field,
  .legacy-gantt-scope .gantt-toolbar .inline-field {
    min-width: 168px;
  }

  .legacy-gantt-scope .inline-field select,
  .legacy-gantt-scope .button.secondary,
  .legacy-gantt-scope .seg-button {
    min-height: 27px;
    padding: 0 10px;
    font-size: 10px;
  }

  .legacy-gantt-scope .gantt-panel .panel-header {
    gap: 11px;
    padding-bottom: 11px;
  }

  .legacy-gantt-scope .wbs-gantt {
    --gantt-head-height: 35px;
    --gantt-row-height: 35px;
    --gantt-table-width: 468px;
    width: 100%;
    min-width: 0;
    grid-template-columns: var(--gantt-table-width) minmax(0, 1fr);
  }

  .legacy-gantt-scope .wbs-head,
  .legacy-gantt-scope .wbs-row,
  .legacy-gantt-scope .timeline-row,
  .legacy-gantt-scope .gantt-track {
    height: var(--gantt-row-height);
  }

  .legacy-gantt-scope .wbs-head {
    font-size: 9.5px;
  }

  .legacy-gantt-scope .wbs-row {
    font-size: 9.5px;
  }

  .legacy-gantt-scope .wbs-head,
  .legacy-gantt-scope .wbs-row {
    grid-template-columns: minmax(168px, 1fr) 96px 78px 88px;
  }

  .legacy-gantt-scope .wbs-head span,
  .legacy-gantt-scope .wbs-head button {
    padding: 0 6px;
  }

  .legacy-gantt-scope .wbs-row > div {
    padding: 0 7px;
  }

  .legacy-gantt-scope .timeline-scale,
  .legacy-gantt-scope .today-marker {
    height: var(--gantt-head-height);
  }

  .legacy-gantt-scope .timeline-day,
  .legacy-gantt-scope .gantt-bar,
  .legacy-gantt-scope .status-pill,
  .legacy-gantt-scope .wbs-status select {
    font-size: 9px;
  }

  .legacy-gantt-scope .timeline-update-label {
    top: -18px;
    min-width: 76px;
    max-width: 152px;
    height: 16px;
    padding: 0 7px;
    font-size: 10px;
  }

  .legacy-gantt-scope .timeline-update-marker span {
    top: var(--update-lane-top, -18px);
    min-width: 76px;
    max-width: 152px;
    height: 16px;
    padding: 0 7px;
    font-size: 10px;
  }

  .legacy-gantt-scope .wbs-assignee-chip {
    max-width: 66px;
    height: 20px;
    padding: 0 7px;
    font-size: 9px;
  }

  .legacy-gantt-scope .timeline-update-chip {
    height: 14px;
    padding: 0 4px;
    font-size: 8px;
  }

  .legacy-gantt-scope .gantt-bar {
    top: 5px;
    height: 25px;
    max-height: 25px;
    min-width: 18px;
    padding: 0 8px;
    border-radius: 6px;
  }

  .legacy-gantt-scope .gantt-bar.milestone {
    top: 13px;
    height: 11px;
    max-height: 11px;
  }
}

/* ---------- Visual system polish: roadmap C-1 ~ C-4 ---------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --control-radius: 8px;
  --control-height: 32px;
  --control-height-sm: 26px;
  --chip-height: 24px;
  --chip-height-sm: 22px;
  --chip-radius: 999px;
  --chip-font: 11px;
  --chip-font-sm: 10px;
  --focus-ring: 0 0 0 3px rgba(47, 111, 237, 0.18);
  --focus-border: rgba(47, 111, 237, 0.45);
}

.truncate-text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.truncate-tooltip {
  position: relative;
  display: block;
  min-width: 0;
  max-width: 100%;
}

.truncate-tooltip::before,
.truncate-tooltip::after {
  position: absolute;
  left: 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  z-index: 80;
}

.truncate-tooltip::before {
  content: "";
  bottom: calc(100% + 3px);
  border: 5px solid transparent;
  border-top-color: rgba(24, 28, 38, 0.96);
  transform: translateY(2px);
}

.truncate-tooltip::after {
  content: attr(data-tooltip);
  bottom: calc(100% + 12px);
  width: max-content;
  max-width: min(320px, 72vw);
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(24, 28, 38, 0.96);
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 18, 28, 0.22);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
  transform: translateY(4px);
}

.truncate-tooltip:hover::before,
.truncate-tooltip:hover::after,
.truncate-tooltip:focus-visible::before,
.truncate-tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

button,
[role="button"],
a,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
[role="button"],
.button,
.add-btn,
.btn-ghost,
.btn-primary,
.btn-danger,
.btn-warn,
.nav-btn,
.archive-period-step,
.archive-reopen,
.archive-filter-reset,
.archive-gantt-left-head button,
.archive-gantt-task,
.archive-gantt-bar,
.dashboard-work-switch button,
.archive-tabs button,
.archive-folder-tabs button,
.library-tabs button,
.gantt-zoom-tabs button,
.legacy-gantt-scope .seg-button,
.legacy-gantt-scope .wbs-head-sort,
.legacy-gantt-scope .wbs-toggle,
.legacy-gantt-scope .wbs-add-child {
  transition:
    background-color 0.14s ease,
    border-color 0.14s ease,
    color 0.14s ease,
    box-shadow 0.14s ease,
    transform 0.14s ease,
    opacity 0.14s ease;
}

button:focus-visible,
[role="button"]:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible,
.add-btn:focus-visible,
.btn-ghost:focus-visible,
.btn-primary:focus-visible,
.btn-danger:focus-visible,
.btn-warn:focus-visible,
.nav-btn:focus-visible,
.archive-period-step:focus-visible,
.archive-reopen:focus-visible,
.archive-filter-reset:focus-visible,
.archive-gantt-left-head button:focus-visible,
.archive-gantt-task:focus-visible,
.archive-gantt-bar:focus-visible,
.dashboard-work-switch button:focus-visible,
.archive-tabs button:focus-visible,
.archive-folder-tabs button:focus-visible,
.library-tabs button:focus-visible,
.gantt-zoom-tabs button:focus-visible,
.legacy-gantt-scope .seg-button:focus-visible,
.legacy-gantt-scope .wbs-head-sort:focus-visible,
.legacy-gantt-scope .wbs-toggle:focus-visible,
.legacy-gantt-scope .wbs-add-child:focus-visible {
  outline: none;
  border-color: var(--focus-border);
  box-shadow: var(--focus-ring);
}

button:disabled,
.button:disabled,
.add-btn:disabled,
.btn-ghost:disabled,
.btn-primary:disabled,
.btn-danger:disabled,
.btn-warn:disabled,
select:disabled,
input:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.ui-icon {
  --icon-glyph: "•";
  --ui-icon-bg: #f4f7ff;
  --ui-icon-border: #dfe8ff;
  --ui-icon-color: var(--blue);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--ui-icon-border);
  border-radius: 7px;
  background: var(--ui-icon-bg);
  color: var(--ui-icon-color);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.ui-icon::before {
  content: var(--icon-glyph);
}

.icon-dashboard { --icon-glyph: "⌂"; --ui-icon-bg: #f2f5ff; --ui-icon-border: #dce6ff; --ui-icon-color: var(--blue); }
.icon-board { --icon-glyph: "▦"; --ui-icon-bg: #f2f5ff; --ui-icon-border: #dce6ff; --ui-icon-color: var(--blue); }
.icon-calendar { --icon-glyph: "□"; --ui-icon-bg: #fff8eb; --ui-icon-border: #f5dfb8; --ui-icon-color: var(--amber); }
.icon-done { --icon-glyph: "✓"; --ui-icon-bg: #f2fbf6; --ui-icon-border: #d5eedf; --ui-icon-color: var(--green); }
.icon-folder { --icon-glyph: "▤"; --ui-icon-bg: #f8f4ff; --ui-icon-border: #e8ddff; --ui-icon-color: var(--violet); }
.icon-chart { --icon-glyph: "◌"; --ui-icon-bg: #eef5ff; --ui-icon-border: #dce8ff; --ui-icon-color: var(--blue); }
.icon-settings { --icon-glyph: "⚙"; --ui-icon-bg: #f3f4f6; --ui-icon-border: #e4e7ec; --ui-icon-color: var(--gray-chip); }

.leader-permission-summary span.enabled {
  border-color: rgba(36, 146, 96, 0.22);
  background: var(--green-soft);
  color: var(--green);
}

.leader-permission-summary span.disabled {
  border-color: rgba(117, 124, 140, 0.18);
  color: var(--muted);
  opacity: 0.72;
}
.icon-target { --icon-glyph: "◎"; --ui-icon-bg: #f2fbf6; --ui-icon-border: #d5eedf; --ui-icon-color: var(--green); }
.icon-people { --icon-glyph: "◦"; --ui-icon-bg: #eef5ff; --ui-icon-border: #dce8ff; --ui-icon-color: var(--blue); }
.icon-project { --icon-glyph: "◇"; --ui-icon-bg: #fff8eb; --ui-icon-border: #f5dfb8; --ui-icon-color: var(--amber); }
.icon-deploy { --icon-glyph: "↗"; --ui-icon-bg: #f2fbf6; --ui-icon-border: #d5eedf; --ui-icon-color: var(--green); }
.icon-link { --icon-glyph: "⌁"; --ui-icon-bg: #f8f4ff; --ui-icon-border: #e8ddff; --ui-icon-color: var(--violet); }
.icon-key { --icon-glyph: "◆"; --ui-icon-bg: #fbe9e7; --ui-icon-border: #f5d0cc; --ui-icon-color: var(--red); }

h2 .ui-icon,
.modal h3 .ui-icon {
  margin-right: 0;
}

.modal h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-hero h2 {
  display: block;
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nav button {
  border-radius: var(--control-radius);
}

.nav button:hover:not(.active) {
  background: #f1f3f6;
  color: var(--text);
}

body.theme-dark .nav button {
  color: var(--muted);
}

body.theme-dark .nav button:hover:not(.active) {
  background: rgba(69, 78, 94, 0.58);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(151, 163, 181, 0.18);
}

body.theme-dark .nav button:hover:not(.active) small {
  background: rgba(238, 242, 248, 0.12);
  color: var(--text);
}

body.theme-dark .nav button.active {
  background: rgba(47, 111, 237, 0.20);
  color: #dce8ff;
  box-shadow: inset 0 0 0 1px rgba(110, 157, 255, 0.28);
}

body.theme-dark .nav button.active small {
  background: rgba(110, 157, 255, 0.20);
  color: #edf4ff;
}

.nav button .nav-icon {
  width: 22px;
  height: 22px;
  border-color: transparent;
  background: transparent;
  color: currentColor;
}

.nav button.active .nav-icon {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.card,
.panel,
.legacy-gantt-scope .panel {
  border-radius: var(--radius-md);
}

.card-header {
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.card-header .header-actions,
.header-tools,
.hero-tools,
.inline-actions {
  gap: var(--space-2);
}

.main-grid,
.sub-grid,
.notification-grid,
.library-groups,
.archive-game-groups,
.archive-group-list {
  gap: var(--space-4);
}

.board {
  padding: 0 var(--space-4) var(--space-4);
}

.columns {
  gap: var(--space-3);
}

.column {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
}

.column-title {
  margin-bottom: var(--space-3);
}

.task {
  margin-bottom: var(--space-2);
  border-radius: var(--control-radius);
}

.task:last-child {
  margin-bottom: 0;
}

.chip,
.col-chip,
.task-project-badge,
.task-assignee-chip,
.archive-meta span,
.archive-group-count,
.archive-task-stats span,
.library-group-count,
.library-chip,
.doc-row-badge,
.event-chip,
.week-update-chip,
.today-chip,
.legacy-gantt-scope .wbs-project-chip,
.legacy-gantt-scope .wbs-assignee-chip,
.legacy-gantt-scope .status-pill,
.legacy-gantt-scope .wbs-count {
  border-radius: var(--chip-radius);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.chip,
.col-chip {
  height: var(--chip-height);
  padding: 0 10px;
  font-size: var(--chip-font);
}

.col-chip {
  gap: 6px;
}

.col-chip::before,
.legacy-gantt-scope .gantt-legend i,
.legacy-gantt-scope .gantt-status-select::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
}

.task-project-badge {
  width: 46px;
  min-width: 46px;
  height: var(--chip-height);
}

.task-assignee-chip {
  min-width: 40px;
  height: var(--chip-height);
}

.legacy-gantt-scope .wbs-project-chip,
.legacy-gantt-scope .wbs-assignee-chip,
.legacy-gantt-scope .status-pill {
  height: var(--chip-height-sm);
  min-height: var(--chip-height-sm);
  padding: 0 8px;
  font-size: var(--chip-font-sm);
}

.legacy-gantt-scope .wbs-assignee-chip {
  max-width: 86px;
}

.button,
.add-btn,
.btn-ghost,
.btn-primary,
.btn-danger,
.btn-warn {
  min-height: var(--control-height);
  border-radius: var(--chip-radius);
  font-weight: 850;
}

.button.small,
.add-btn.inline,
.btn-ghost.compact,
.btn-primary.compact,
.btn-danger.compact {
  min-height: var(--control-height-sm);
}

.button:hover:not(:disabled),
.add-btn:hover:not(:disabled),
.btn-ghost:hover:not(:disabled),
.btn-primary:hover:not(:disabled),
.btn-danger:hover:not(:disabled),
.btn-warn:hover:not(:disabled),
.nav-btn:hover:not(:disabled),
.archive-period-step:hover:not(:disabled),
.archive-reopen:hover:not(:disabled) {
  transform: translateY(-1px);
}

.week-section,
.month-section {
  margin-bottom: var(--space-4);
}

.week-title,
.title-action-row {
  gap: var(--space-2);
}

.schedule-title-row {
  gap: var(--space-2);
}

.week-nav,
.week-nav.inline {
  gap: var(--space-1);
}

.week-label.inline {
  min-height: var(--chip-height-sm);
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
}

.week-timeline {
  margin: 0 var(--space-4) var(--space-4);
  border-radius: var(--control-radius);
}

.week-day {
  padding: var(--space-2) var(--space-3);
}

.week-day-head {
  gap: var(--space-2);
}

.week-day-updates {
  gap: var(--space-1);
}

.week-update-chip {
  height: var(--chip-height-sm);
  min-width: 76px;
  max-width: 132px;
  padding: 0 8px;
  font-size: var(--chip-font-sm);
}

.month-scroll {
  padding: 0 var(--space-4) var(--space-4);
}

.month-week-row,
.month-day,
.week-day {
  border-color: var(--line-strong);
}

.legacy-gantt-scope .wbs-row.row-sync,
.legacy-gantt-scope .timeline-row.row-sync {
  background-color: transparent;
  box-shadow: none;
}

.legacy-gantt-scope .wbs-row.row-sync {
  background-color: #f8fafc;
}

.legacy-gantt-scope .wbs-row.task:hover,
.legacy-gantt-scope .wbs-head-sort:hover,
.legacy-gantt-scope .wbs-head-sort.active {
  background: #f3f7f6;
}

.legacy-gantt-scope .timeline-day,
.legacy-gantt-scope .timeline-grid-line {
  border-right-color: var(--gantt-grid-line);
}

.today-chip,
.today-marker,
.today-body-marker,
.today-line-sample,
.legacy-gantt-scope .today-marker,
.legacy-gantt-scope .today-body-marker,
.legacy-gantt-scope .today-line-sample {
  display: none !important;
}

.month-day.today,
.week-day.today,
.legacy-gantt-scope .timeline-day.today {
  background: transparent;
  color: inherit;
}

body.theme-dark .legacy-gantt-scope {
  --primary-tint: #2d3b64;
  --surface: #222730;
  --surface-soft: #282e38;
  --surface-sunken: #1e232c;
  --hairline: #3d4552;
  --hairline-strong: #4d5665;
  --ink: #eef2f8;
  --ink-secondary: #cbd3df;
  --ink-muted: #aeb7c5;
  --ink-faint: #818b9b;
  --ink-indigo: #eef2f8;
  --accent-soft: #2d3b64;
  --status-todo-tint: #303640;
  --status-progress-tint: #24385f;
  --status-review-tint: #44341e;
  --status-done-tint: #203c31;
  --status-blocked-tint: #452b29;
  --gantt-grid-line: #4b5360;
  --gantt-grid-soft: #3b4350;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

body.theme-dark .legacy-gantt-scope .panel,
body.theme-dark .legacy-gantt-scope .panel-header,
body.theme-dark .legacy-gantt-scope .gantt-wrap,
body.theme-dark .legacy-gantt-scope .gantt-toolbar,
body.theme-dark .legacy-gantt-scope .gantt-toolbar-title,
body.theme-dark .legacy-gantt-scope .wbs-table,
body.theme-dark .legacy-gantt-scope .timeline-pane,
body.theme-dark .legacy-gantt-scope .timeline-body {
  background: var(--surface);
}

body.theme-dark .legacy-gantt-scope .wbs-head,
body.theme-dark .legacy-gantt-scope .timeline-scale,
body.theme-dark .legacy-gantt-scope .wbs-row.milestone,
body.theme-dark .legacy-gantt-scope .timeline-row.milestone {
  background: var(--surface-soft);
}

body.theme-dark .legacy-gantt-scope .wbs-row {
  background: var(--surface);
}

body.theme-dark .legacy-gantt-scope .wbs-row.task,
body.theme-dark .legacy-gantt-scope .wbs-row.task.overdue,
body.theme-dark .legacy-gantt-scope .wbs-row.task.readonly {
  background: var(--surface) !important;
  border-color: var(--hairline);
  opacity: 1;
  box-shadow: none;
}

body.theme-dark .legacy-gantt-scope .wbs-row.row-sync,
body.theme-dark .legacy-gantt-scope .wbs-row.task:hover,
body.theme-dark .legacy-gantt-scope .wbs-head-sort:hover,
body.theme-dark .legacy-gantt-scope .wbs-head-sort.active {
  background: #2d3440 !important;
}

body.theme-dark .legacy-gantt-scope .wbs-head-sort:hover {
  color: var(--ink);
}

body.theme-dark .legacy-gantt-scope .wbs-head-sort.active {
  color: #9bbcff;
  background: rgba(47, 111, 237, 0.18) !important;
}

body.theme-dark .legacy-gantt-scope .wbs-head-sort.active::after {
  color: #9bbcff;
}

body.theme-dark .legacy-gantt-scope .timeline-row,
body.theme-dark .legacy-gantt-scope .timeline-row.row-sync,
body.theme-dark .legacy-gantt-scope .timeline-row.delayed {
  background: transparent;
  border-bottom-color: var(--gantt-grid-soft);
}

body.theme-dark .legacy-gantt-scope .timeline-day.weekend {
  background: rgba(122, 79, 217, 0.12);
}

body.theme-dark .legacy-gantt-scope .timeline-day.today {
  background: rgba(122, 79, 217, 0.16);
  color: var(--ink);
}

body.theme-dark .legacy-gantt-scope .timeline-day.saturday .timeline-date-label {
  color: #8fb7ff;
}

body.theme-dark .legacy-gantt-scope .timeline-day.holiday .timeline-date-label {
  color: #ff8c84;
}

body.theme-dark .legacy-gantt-scope .inline-field select,
body.theme-dark .legacy-gantt-scope .button.secondary,
body.theme-dark .legacy-gantt-scope .seg-button {
  background: var(--surface-soft);
  border-color: var(--hairline);
  color: var(--ink);
}

body.theme-dark .legacy-gantt-scope .timeline-update-label,
body.theme-dark .legacy-gantt-scope .timeline-update-marker span {
  border-color: rgba(223, 165, 74, 0.32);
  background: rgba(84, 58, 24, 0.95);
  color: #ffc879;
}

@media (min-width: 1081px) {
  :root {
    --control-height: 27px;
    --control-height-sm: 23px;
    --chip-height: 20px;
    --chip-height-sm: 19px;
    --chip-font: 9.5px;
    --chip-font-sm: 8.8px;
  }

  .ui-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 10px;
  }

  .nav button .nav-icon {
    width: 19px;
    height: 19px;
  }

  .task-project-badge {
    width: 42px;
    min-width: 42px;
  }

  .task-assignee-chip {
    min-width: 36px;
  }

  .week-update-chip {
    min-width: 72px;
    max-width: 128px;
  }

  .legacy-gantt-scope .wbs-assignee-chip {
    max-width: 72px;
  }
}

.dashboard-main .account {
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(8, 10, 24, 0.22);
  backdrop-filter: blur(10px);
}

.dashboard-main .account-actions {
  flex-wrap: nowrap;
}

@media (max-width: 720px) {
  .dashboard-main .account {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .dashboard-main .account-actions {
    flex-wrap: wrap;
  }

  .account-menu-panel {
    right: auto;
    left: 0;
    width: min(224px, calc(100vw - 32px));
  }
}

/* 완료함 검색 (전역검색 1순위 — 완료 아카이브 범위) */
.archive-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.archive-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.archive-search-icon {
  flex: none;
  color: var(--faint);
}

.archive-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.archive-search input::placeholder {
  color: var(--faint);
  font-weight: 600;
}

.archive-search input:focus {
  outline: none;
}

.archive-search input::-webkit-search-cancel-button {
  appearance: none;
}

.archive-search-clear {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--gray-soft);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.archive-search-clear:hover {
  background: var(--line-strong);
  color: var(--text);
}

.archive-search-result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.archive-search-result-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 850;
  color: var(--text);
}

/* 칸반 보드 필터 / 정렬 / 저장된 뷰 (3순위) */
.board-filterbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 var(--space-4, 14px) var(--space-3, 14px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.board-filter-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.board-filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.board-filter-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
}

.board-filter-select {
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 5px 8px;
  background: var(--paper);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.board-filter-select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.board-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.board-filter-toggle.on {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.board-filter-toggle input {
  accent-color: var(--red);
}

.board-filter-reset,
.board-filter-save {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--paper);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
}

.board-filter-reset:hover,
.board-filter-save:hover:not([disabled]) {
  border-color: var(--blue);
  color: var(--blue);
}

.board-filter-save[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.board-saved-views {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-strong);
}

.board-saved-label {
  font-size: 11px;
  font-weight: 850;
  color: var(--faint);
}

.board-saved-view {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--blue-soft);
  border-radius: 999px;
  overflow: hidden;
  background: var(--blue-soft);
}

.board-saved-view-apply {
  border: 0;
  padding: 4px 10px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--blue);
  cursor: pointer;
}

.board-saved-view-apply:hover {
  background: rgba(47, 111, 237, 0.16);
}

.board-saved-view-remove {
  border: 0;
  border-left: 1px solid rgba(47, 111, 237, 0.22);
  padding: 0 7px;
  background: transparent;
  font-size: 13px;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
}

.board-saved-view-remove:hover {
  background: rgba(47, 111, 237, 0.16);
}

.task-detail-modal .task-note-form textarea[data-task-note-input] {
  min-height: 184px;
}

@media (max-width: 680px) {
  .task-detail-modal .task-note-form textarea[data-task-note-input] {
    min-height: 160px;
  }
}

@media (max-width: 860px) {
  .modal.schedule-detail-modal {
    width: calc(100vw - 24px);
  }

  .schedule-detail-body,
  body[data-app-scale="compact"] .schedule-detail-body {
    grid-template-columns: 1fr;
  }

  .schedule-detail-bottom,
  body[data-app-scale="compact"] .schedule-detail-bottom {
    grid-template-columns: 1fr;
  }
}

/* 준실시간 동기화 배너 (편집 중 비차단 알림) */
.sync-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 45;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, 92vw);
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-md);
  animation: sync-banner-in 0.18s ease;
}

.sync-banner.app-update-banner {
  bottom: 76px;
}

@keyframes sync-banner-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.sync-banner-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.sync-banner-text {
  flex: 1 1 auto;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
}

.sync-banner-refresh {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.sync-banner-refresh:hover {
  filter: brightness(1.05);
}

.sync-banner-close {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--gray-soft);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.sync-banner-close:hover {
  background: var(--line-strong);
  color: var(--text);
}

/* 슬랙 알림 설정 안내 (팀 설정) */
.slack-guide {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
}

.slack-guide strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}

.slack-guide em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
}

.slack-guide b {
  color: var(--text);
  font-weight: 850;
}

.banner-preview {
  display: grid;
  align-content: end;
  gap: 4px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(18, 22, 38, 0.78), rgba(18, 22, 38, 0.28)),
    var(--preview-banner-image, url("/assets/workspace-cover.png")) center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.banner-preview strong {
  font-size: 18px;
  font-weight: 950;
}

.banner-preview em {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.banner-size-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.slack-event-picker .person-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-height: none;
}

/* ---------- 다크모드 표면 보정 ---------- */
body.theme-dark .archive-summary span {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

body.theme-dark .archive-summary .summary-mile {
  border-color: rgba(95, 145, 255, 0.34);
  background: rgba(47, 111, 237, 0.12);
}

body.theme-dark .archive-summary .summary-task {
  border-color: rgba(79, 210, 146, 0.28);
  background: rgba(22, 138, 90, 0.13);
}

body.theme-dark .archive-summary .summary-file {
  border-color: rgba(157, 123, 238, 0.32);
  background: rgba(122, 79, 217, 0.14);
}

body.theme-dark .archive-summary .summary-duration {
  border-color: rgba(229, 166, 68, 0.34);
  background: rgba(184, 117, 20, 0.14);
}

body.theme-dark .archive-period-tools,
body.theme-dark .archive-date-picker,
body.theme-dark .archive-filter-row {
  border-color: var(--line-strong);
  background: var(--paper);
}

body.theme-dark .archive-period-step,
body.theme-dark .archive-gantt-left-head button,
body.theme-dark .archive-filter-reset {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: #9bbcff;
  box-shadow: none;
}

body.theme-dark .archive-date-picker input,
body.theme-dark .archive-filter-row select {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--text);
  color-scheme: dark;
}

body.theme-dark .archive-gantt {
  --archive-grid-line: rgba(151, 163, 181, 0.38);
  --archive-track-bg: #20262f;
  border-color: var(--line-strong);
  background: var(--paper);
}

body.theme-dark .archive-gantt-head {
  border-color: var(--line-strong);
  background: #262c36;
}

body.theme-dark .archive-gantt-left-head,
body.theme-dark .archive-gantt-task {
  border-color: var(--line-strong);
}

body.theme-dark .archive-gantt-days span,
body.theme-dark .archive-gantt-row {
  border-color: rgba(151, 163, 181, 0.28);
}

body.theme-dark .archive-gantt-composite {
  border-color: color-mix(in srgb, var(--archive-bar, var(--blue)) 34%, var(--line-strong));
  background: color-mix(in srgb, var(--archive-bar, var(--blue)) 12%, var(--paper-soft));
  box-shadow: none;
}

body.theme-dark .archive-gantt-variance {
  border-left-color: rgba(15, 23, 42, 0.42);
  background-color: rgba(226, 232, 240, 0.12);
}

body.theme-dark .archive-gantt-late {
  color: #ffd8d4;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 125, 116, 0.46) 0 5px, rgba(255, 125, 116, 0.18) 5px 10px),
    linear-gradient(180deg, rgba(212, 73, 62, 0.28), rgba(212, 73, 62, 0.16));
}

body.theme-dark .archive-gantt-early {
  color: #bff4d9;
  background-image:
    repeating-linear-gradient(135deg, rgba(69, 214, 147, 0.42) 0 5px, rgba(69, 214, 147, 0.16) 5px 10px),
    linear-gradient(180deg, rgba(22, 138, 90, 0.26), rgba(22, 138, 90, 0.14));
}

body.theme-dark .mention-suggest {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

body.theme-dark .mention-suggest button {
  color: var(--text);
}

body.theme-dark .mention-suggest button.active,
body.theme-dark .mention-suggest button:hover {
  background: var(--blue-soft);
  color: #9bbcff;
}

body.theme-dark .mention-suggest small {
  color: var(--muted);
}

body.theme-dark .library-drop,
body.theme-dark .library-search,
body.theme-dark .library-group,
body.theme-dark .library-item {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: none;
}

body.theme-dark .library-drop {
  background: var(--paper-soft);
}

body.theme-dark .library-drop.drag-over {
  border-color: rgba(110, 157, 255, 0.58);
  background: rgba(47, 111, 237, 0.16);
}

body.theme-dark .library-drop strong,
body.theme-dark .library-group-head h3,
body.theme-dark .library-item-main strong {
  color: var(--text);
}

body.theme-dark .library-search input {
  color: var(--text);
}

body.theme-dark .library-search input::placeholder {
  color: var(--faint);
}

body.theme-dark .library-filter-note,
body.theme-dark .library-group-count {
  border-color: rgba(110, 157, 255, 0.28);
  background: rgba(47, 111, 237, 0.16);
  color: #9bbcff;
}

body.theme-dark .library-summary span {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

body.theme-dark .library-summary .summary-docs {
  border-color: rgba(110, 157, 255, 0.28);
  background: rgba(47, 111, 237, 0.14);
}

body.theme-dark .library-summary .summary-library {
  border-color: rgba(79, 210, 146, 0.26);
  background: rgba(22, 138, 90, 0.14);
}

body.theme-dark .library-summary .summary-attached {
  border-color: rgba(174, 145, 255, 0.28);
  background: rgba(122, 79, 217, 0.15);
}

body.theme-dark .library-summary .summary-latest {
  border-color: rgba(229, 166, 68, 0.30);
  background: rgba(184, 117, 20, 0.15);
}

body.theme-dark .library-group-head {
  border-bottom-color: var(--line);
}

body.theme-dark .library-item-link:hover {
  background: rgba(238, 242, 248, 0.04);
}

body.theme-dark .library-item-icon,
body.theme-dark .library-chip {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--muted);
}

body.theme-dark .library-chip.type {
  border-color: rgba(110, 157, 255, 0.28);
  background: rgba(47, 111, 237, 0.16);
  color: #9bbcff;
}

body.theme-dark .library-chip.source {
  border-color: rgba(79, 210, 146, 0.26);
  background: rgba(22, 138, 90, 0.15);
  color: #7fe3b0;
}

body.theme-dark .source-task .library-chip.source {
  border-color: rgba(174, 145, 255, 0.28);
  background: rgba(122, 79, 217, 0.16);
  color: #c7b8ff;
}

body.theme-dark .source-schedule .library-chip.source,
body.theme-dark .library-chip.date {
  border-color: rgba(229, 166, 68, 0.30);
  background: rgba(184, 117, 20, 0.16);
  color: #f0c170;
}

body.theme-dark .library-chip.origin,
body.theme-dark .library-chip.size {
  border-color: var(--line-strong);
  background: rgba(238, 242, 248, 0.05);
}

body.theme-dark .dashboard-work-switch,
body.theme-dark .kpi-tabs,
body.theme-dark .archive-tabs,
body.theme-dark .archive-folder-tabs,
body.theme-dark .library-tabs,
body.theme-dark .gantt-zoom-tabs {
  border-color: var(--line-strong);
  background: rgba(32, 36, 45, 0.94);
}

body.theme-dark .dashboard-work-switch button,
body.theme-dark .kpi-tabs button,
body.theme-dark .archive-tabs button,
body.theme-dark .archive-folder-tabs button,
body.theme-dark .library-tabs button,
body.theme-dark .gantt-zoom-tabs button {
  color: var(--muted);
}

body.theme-dark .dashboard-work-switch button.active,
body.theme-dark .kpi-tabs button.active,
body.theme-dark .archive-tabs button.active,
body.theme-dark .archive-folder-tabs button.active,
body.theme-dark .library-tabs button.active,
body.theme-dark .gantt-zoom-tabs button.active {
  background: var(--blue-soft);
  color: #9bbcff;
  box-shadow: inset 0 0 0 1px rgba(110, 157, 255, 0.24);
}

body.theme-dark .kpi-overview,
body.theme-dark .kpi-block,
body.theme-dark .kpi-detail,
body.theme-dark .kpi-detail-panel {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: none;
}

body.theme-dark .kpi-detail-focus {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(47, 111, 237, 0.14), rgba(38, 43, 53, 0.96));
}

body.theme-dark .kpi-card-summary span,
body.theme-dark .kpi-detail-focus span,
body.theme-dark .kpi-project-mini,
body.theme-dark .kpi-task-table.compact button,
body.theme-dark .kpi-task-detail-panel,
body.theme-dark .kpi-task-table.detail-list button,
body.theme-dark .kpi-person-summary {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  box-shadow: none;
}

body.theme-dark .kpi-detail-focus .total,
body.theme-dark .kpi-detail-focus .progress {
  background: rgba(47, 111, 237, 0.16);
}

body.theme-dark .kpi-detail-focus .done {
  background: rgba(22, 138, 90, 0.16);
}

body.theme-dark .kpi-detail-focus .average {
  background: rgba(122, 79, 217, 0.16);
}

body.theme-dark .kpi-detail-focus .danger {
  background: rgba(212, 73, 62, 0.15);
}

body.theme-dark .kpi-contribution-row {
  border-top-color: var(--line);
  color: var(--text);
}

body.theme-dark button.kpi-contribution-row:hover {
  border-color: rgba(110, 157, 255, 0.3);
  background: var(--paper-soft);
  box-shadow: none;
}

body.theme-dark .kpi-task-state {
  background: var(--gray-soft);
  color: var(--muted);
}

body.theme-dark .doc,
body.theme-dark .doc.doc-row {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  box-shadow: none;
}

body.theme-dark .doc.doc-row:hover {
  background: #2d3440;
  box-shadow: none;
}

body.theme-dark .doc-ico,
body.theme-dark .doc-row-icon {
  border-color: var(--line-strong);
  background: var(--paper);
  box-shadow: none;
}

body.theme-dark .doc-delete,
body.theme-dark .doc-source {
  background: rgba(32, 36, 45, 0.92);
  color: var(--muted);
  box-shadow: none;
}

body.theme-dark .doc-row-badge {
  background: var(--gray-soft);
  color: var(--muted);
}

body.theme-dark .empty-inline,
body.theme-dark .empty-state.compact,
body.theme-dark .empty-insight {
  border-color: var(--line-strong);
  background: var(--paper-soft);
  color: var(--muted);
}

body.theme-dark .empty-insight-chips span {
  border-color: var(--line-strong);
  background: var(--paper);
}

body.theme-dark .empty-insight-icon.folder {
  border-color: rgba(110, 157, 255, 0.34);
  background: rgba(47, 111, 237, 0.14);
  color: #9bbcff;
}

body.theme-dark .empty-insight-icon.done {
  border-color: rgba(79, 210, 146, 0.3);
  background: rgba(22, 138, 90, 0.16);
  color: #bff4d9;
}

body.theme-dark .deploy-row,
body.theme-dark .oauth-guide,
body.theme-dark .google-status > div,
body.theme-dark .slack-guide {
  border-color: var(--line-strong);
  background: var(--paper-soft);
}

body.theme-dark .field input,
body.theme-dark .field select,
body.theme-dark .field textarea,
body.theme-dark .oauth-guide input,
body.theme-dark .google-status input,
body.theme-dark .slack-guide input,
body.theme-dark .sub-grid input,
body.theme-dark .sub-grid select,
body.theme-dark .sub-grid textarea {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--text);
  box-shadow: none;
  color-scheme: dark;
}

body.theme-dark .field input::placeholder,
body.theme-dark .field textarea::placeholder,
body.theme-dark .oauth-guide input::placeholder,
body.theme-dark .sub-grid input::placeholder,
body.theme-dark .sub-grid textarea::placeholder {
  color: var(--faint);
}

body.theme-dark .dashboard-gantt-inline .gantt-wrap,
body.theme-dark .legacy-gantt-scope .timeline-grid-lines {
  background: var(--paper);
}

body.theme-dark .legacy-gantt-scope .timeline-pane {
  scrollbar-color: #8a94a3 #20242d;
}

.dashboard-hero .add-btn,
.section-head .add-btn,
.card-header .add-btn,
.gantt-page-head .add-btn,
.add-btn.inline[data-modal="schedule"],
.add-btn.inline[data-modal="task"] {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, transparent);
  background: color-mix(in srgb, var(--blue) 13%, #fff);
  color: var(--blue);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(47, 111, 237, 0.14);
}

.add-btn.inline[data-modal="schedule"],
.add-btn.inline[data-modal="task"] {
  height: 38px;
}

.dashboard-hero .add-btn:hover:not(:disabled),
.section-head .add-btn:hover:not(:disabled),
.card-header .add-btn:hover:not(:disabled),
.gantt-page-head .add-btn:hover:not(:disabled),
.add-btn.inline[data-modal="schedule"]:hover:not(:disabled),
.add-btn.inline[data-modal="task"]:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 237, 0.2);
}

body.theme-dark .mention-input-wrap {
  border-color: var(--line-strong);
  background: var(--paper);
}

body.theme-dark .mention-input-wrap:focus-within {
  border-color: #8fb0ff;
  box-shadow: 0 0 0 3px rgba(88, 135, 255, 0.22);
}

body.theme-dark .mention-live-token {
  background: rgba(104, 152, 255, 0.32);
  box-shadow: inset 0 0 0 1px rgba(155, 188, 255, 0.55);
}

body.theme-dark .dashboard-hero .add-btn,
body.theme-dark .section-head .add-btn,
body.theme-dark .card-header .add-btn,
body.theme-dark .gantt-page-head .add-btn,
body.theme-dark .add-btn.inline[data-modal="schedule"],
body.theme-dark .add-btn.inline[data-modal="task"] {
  border-color: rgba(132, 168, 255, 0.4);
  background: rgba(68, 114, 225, 0.22);
  color: #dce7ff;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.26);
}

body.theme-dark .dashboard-hero .add-btn:hover:not(:disabled),
body.theme-dark .section-head .add-btn:hover:not(:disabled),
body.theme-dark .card-header .add-btn:hover:not(:disabled),
body.theme-dark .gantt-page-head .add-btn:hover:not(:disabled),
body.theme-dark .add-btn.inline[data-modal="schedule"]:hover:not(:disabled),
body.theme-dark .add-btn.inline[data-modal="task"]:hover:not(:disabled) {
  border-color: #9bbcff;
  background: #4776e6;
  color: #fff;
}
