    :root {
      --primary: #07345a;
      --primary-2: #135f8a;
      --primary-soft: #dbeaf8;
      --accent: #1a6e4f;
      --accent-soft: #dff3eb;
      --gold: #a06500;
      --gold-soft: #fff0d5;
      --surface: #f5f7fb;
      --surface-1: #ffffff;
      --surface-2: #eef3f8;
      --surface-3: #dde7f0;
      --line: #c9d1db;
      --line-2: #e3e8ef;
      --text: #182230;
      --muted: #5a6573;
      --success: #197b48;
      --warn: #9a5b00;
      --danger: #ba1a1a;
      --shadow: 0 18px 42px rgba(7, 52, 90, .10);
      --radius: 8px;
      --max: 1120px;
      --focus-ring: rgba(7, 52, 90, .55);
      /* 리커트 1→5 강도 램프 (단극: 낮음→높음, 쿨블루 농도 점증) */
      --s1: #e6eef9; --s2: #c5dcef; --s3: #8fbfd8; --s4: #3f86b8; --s5: #0f5e8c;
      --s1t: #3f6ea0; --s2t: #2f6ea0; --s3t: #1f5f8c; --s4t: #3f86b8; --s5t: #0f5e8c;
    }

    * { box-sizing: border-box; }
    /* FOUT/CLS 방지: 웹폰트(Pretendard) 로드 전까지 본문을 잠시 감췄다가 페이드인.
       폴백 글꼴↔Pretendard 메트릭 차이로 버튼 너비가 점프하던 문제를 제거한다. */
    html.fonts-pending body { opacity: 0; }
    body { opacity: 1; transition: opacity .18s ease; }
    @media (prefers-reduced-motion: reduce) { body { transition: none; } }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Segoe UI", sans-serif;
      font-size: 17px;
      color: var(--text);
      background:
        linear-gradient(180deg, #eef4f9 0, #f7f9fc 280px, var(--surface) 100%);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      word-break: keep-all;
      letter-spacing: -0.005em;
    }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }
    .ms { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal; font-size: 22px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24; }
    .fill { font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

    .appbar {
      position: sticky;
      top: 0;
      z-index: 20;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      border-bottom: 1px solid rgba(201, 209, 219, .86);
      background: rgba(255, 255, 255, .92);
      backdrop-filter: blur(14px);
    }
    .brand { display: flex; align-items: center; gap: 12px; color: var(--primary); font-weight: 700; letter-spacing: 0; cursor: pointer; border-radius: 8px; }
    .brand:hover { opacity: 0.82; }
    .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .brand-logo { height: 52px; width: auto; display: block; }
    .brand-name { font-size: 18px; font-weight: 700; color: var(--primary); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1.25; }
    @media (max-width: 520px) { .brand-name { font-size: 14px; padding-left: 10px; } .brand-logo { height: 40px; } }
    .brand .ms { font-size: 28px; }
    .top-actions { display: flex; align-items: center; gap: 8px; }
    .link-btn, .icon-btn {
      border: 0;
      background: transparent;
      color: var(--muted);
      min-height: 40px;
      border-radius: var(--radius);
      padding: 0 10px;
    }
    .icon-btn { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
    .link-btn:hover, .icon-btn:hover { background: var(--surface-2); color: var(--primary); }

    .page { width: min(var(--max), 100%); margin: 0 auto; padding: 28px 20px 112px; }
    .narrow { width: min(760px, 100%); }
    .center { margin-left: auto; margin-right: auto; }
    .stack { display: grid; gap: 24px; }
    .grid { display: grid; gap: 16px; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero { padding: 16px 0 6px; text-align: center; }
    .hero-panel {
      display: grid;
      gap: 18px;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background:
        linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 46%, rgba(255,255,255,.20) 100%),
        var(--hero-image, linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,253,.96)));
      background-size: cover;
      background-position: center right;
      box-shadow: var(--shadow);
    }
    .hero-panel > * { max-width: 720px; }
    .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); background: var(--accent-soft); border: 1px solid #b9ddce; border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
    h1, h2, h3, p { margin: 0; }
    h1 { font-size: 38px; line-height: 1.22; color: var(--text); letter-spacing: -0.025em; font-weight: 700; }
    h2 { font-size: 28px; line-height: 1.3; color: var(--primary); letter-spacing: -0.02em; font-weight: 700; }
    h3 { font-size: 21px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
    p { line-height: 1.65; }
    .muted { color: var(--muted); }
    .small { font-size: 13px; }

    .card {
      background: var(--surface-1);
      border: 1px solid var(--line);
      border-radius: 10px;
      box-shadow: 0 1px 0 rgba(0,0,0,.02);
    }
    .card.pad { padding: 22px; }
    .soft { background: var(--surface-2); border-color: #cfe0f4; }
    .feature { min-height: 168px; display: grid; align-content: start; gap: 12px; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
    .feature:hover { border-color: #aab9c8; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7, 52, 90, .08); }
    .feature-icon, .round-icon {
      width: 44px;
      height: 44px;
      border-radius: var(--radius);
      background: var(--primary-soft);
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .coupon {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 20px;
      background: linear-gradient(135deg, #ffffff, #fdecec);
      border: 1px solid #e6b3b3;
      border-radius: 12px;
      padding: 24px;
    }
    .coupon h2 { color: #c0392b; }
    .coffee {
      width: 76px;
      height: 76px;
      border-radius: 14px;
      background: var(--surface-1);
      color: #c0392b;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
    }
    .coffee .ms { font-size: 34px; }

    .form { display: grid; gap: 18px; }
    label.label { display: block; font-weight: 600; margin-bottom: 8px; }
    .input, .select, .textarea {
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--surface-1);
      color: var(--text);
      padding: 12px 14px;
      outline: none;
    }
    .textarea { min-height: 124px; resize: vertical; line-height: 1.55; }
    .input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(7, 52, 90, .12); }
    .check-row, .choice-row {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--surface-1);
    }
    .choice-row { align-items: center; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
    .choice-row:hover { border-color: #9fb0c1; background: #fbfdff; }
    .choice-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
    .choice-row:has(input:checked), .select-card.is-selected { border-color: var(--primary); background: #eef6fb; box-shadow: inset 0 0 0 1px var(--primary); }
    .choice-content { display: grid; gap: 4px; }
    .choice-title { font-weight: 700; }
    .choice-example { color: var(--muted); font-size: 13px; line-height: 1.5; }
    .mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .mode-card {
      border: 1px solid var(--line);
      background: var(--surface-1);
      border-radius: 12px;
      padding: 18px;
      display: grid;
      gap: 8px;
      text-align: left;
    }
    .mode-card.is-selected { border-color: var(--primary); background: #eef6fb; box-shadow: inset 0 0 0 1px var(--primary); }
    .mode-card .ms { color: var(--primary); }

    .btn {
      min-height: 48px;
      border-radius: 10px;
      border: 1px solid transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 18px;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: background-color .15s ease, box-shadow .15s ease, transform .06s ease, filter .15s ease;
    }
    .primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(7, 52, 90, .18); }
    .secondary { background: var(--surface-1); color: var(--primary); border-color: var(--line); }
    .ghost { background: transparent; color: var(--muted); border-color: transparent; }
    .danger { background: #fff5f4; color: var(--danger); border-color: #f0c7c4; }
    .btn:hover { filter: brightness(.97); }
    .primary:hover { background: var(--primary-2); }
    .secondary:hover, .ghost:hover { background: var(--surface-2); }
    .danger:hover { background: #ffe9e7; }
    .btn:active { transform: translateY(1px); }
    .btn:disabled { opacity: .45; cursor: not-allowed; }
    .btn:disabled:active { transform: none; }
    /* 키보드 포커스 가시성 — 전 인터랙티브 요소 통일 (KWCAG/웹접근성) */
    .btn:focus-visible, .link-btn:focus-visible, .icon-btn:focus-visible,
    .quick-chip:focus-visible, .side-nav button:focus-visible, .status-select:focus-visible,
    a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
      outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 8px;
    }
    .choice-row:has(input:focus-visible), .mode-card:has(input:focus-visible),
    .select-card:has(input:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
    input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
      outline: 2px solid var(--focus-ring); outline-offset: 2px;
    }

    .bottom-bar {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 25;
      background: rgba(248, 249, 255, .96);
      border-top: 1px solid var(--line);
      backdrop-filter: blur(14px);
      padding: 12px 20px max(12px, env(safe-area-inset-bottom));
    }
    .bottom-inner {
      width: min(var(--max), 100%);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }
    .bottom-inner .btn { min-width: 116px; }
    .bottom-inner .primary { min-width: 164px; }

    .progress-wrap { display: grid; gap: 10px; margin-bottom: 32px; }
    .progress-top { display: flex; justify-content: space-between; align-items: center; color: var(--primary); font-weight: 700; }
    .progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
    .progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: var(--value); }
    .select-card {
      min-height: 128px;
      border: 1px solid var(--line);
      background: var(--surface-1);
      border-radius: 12px;
      padding: 16px;
      display: grid;
      align-content: center;
      justify-items: center;
      gap: 10px;
      text-align: center;
      color: var(--text);
    }
    .select-card .ms { font-size: 34px; color: var(--muted); }
    .select-card.is-selected .ms { color: var(--primary); font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24; }

    .question { padding: 18px; transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease; }
    .question.is-complete { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 6px 18px rgba(26,110,79,.10); background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface-1) 64px); }
    .question.is-complete .lk-count { color: var(--accent); font-weight: 700; }
    .question.is-complete .lk-count::before { content: "✓ "; }
    .question-title { font-weight: 700; font-size: 18px; margin-bottom: 14px; }
    .question-desc { margin: -4px 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-1); border: 1px solid var(--line-2); }
    .question-desc .qd-label { font-weight: 700; font-size: 13.5px; color: var(--accent); margin-bottom: 6px; }
    .pick-groups { display: flex; flex-direction: column; gap: 12px; }
    .pick-group { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px 6px; margin: 0; }
    .pick-group-title { font-weight: 700; font-size: 13.5px; color: var(--accent); padding: 0 4px; }
    .pick-option { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; margin: 2px 0; border-radius: 9px; cursor: pointer; border: 1px solid transparent; font-size: 14.5px; color: #33414f; line-height: 1.5; }
    .pick-option:hover { background: var(--surface-1); }
    .pick-option:has(input:checked) { background: var(--accent-soft); border-color: #b9ddce; color: #143a2c; font-weight: 600; }
    .pick-option input { margin-top: 3px; accent-color: var(--accent); flex: none; }
    .pick-groups.choice-error .pick-group { border-color: #e6b3b3; }
    .rank-help { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--gold); background: var(--gold-soft); border-radius: 8px; padding: 9px 11px; }
    .rank-list { display: flex; flex-direction: column; gap: 8px; border-radius: 10px; padding: 2px; }
    .rank-list.choice-error { outline: 1px solid #e6b3b3; outline-offset: 3px; }
    .rank-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-1); cursor: pointer; font-size: 14.5px; color: #33414f; line-height: 1.45; transition: border-color .12s, background .12s; }
    .rank-item:hover { border-color: #b9ddce; }
    .rank-item.is-ranked { background: var(--accent-soft); border-color: #7fc0a5; color: #143a2c; font-weight: 600; }
    .rank-badge { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 700; color: #8b98a5; }
    .rank-item.is-ranked .rank-badge { background: var(--accent); border-color: var(--accent); color: #fff; }
    .rank-text { flex: 1; }
    .rank-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
    .rank-count { font-size: 13px; font-weight: 700; color: var(--accent); }
    .question.is-complete .rank-count::before { content: "✓ "; }
    .rank-reset { display: inline-flex; align-items: center; gap: 4px; background: none; border: none; cursor: pointer; font-size: 13px; color: #8b98a5; padding: 4px 6px; }
    .rank-reset:hover { color: #5b6b7a; }
    .rank-reset .ms { font-size: 16px; }
    .sd-savebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
    .sd-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
    .sd-edit-sectitle { font-weight: 700; }
    .sd-edit-desc { margin-top: 6px; font-size: 13px; }
    .sd-q-edit { border-top: 1px solid var(--line-2); padding: 12px 0 4px; }
    .sd-edit-title { font-weight: 600; margin-bottom: 6px; }
    .sd-edit-item { display: flex; gap: 8px; align-items: flex-start; margin: 5px 0; }
    .sd-edit-id { flex: none; width: 74px; padding-top: 9px; font-size: 11px; color: #8b98a5; font-family: ui-monospace, Menlo, monospace; word-break: break-all; }
    .sd-edit-text { min-height: 42px; font-size: 14px; line-height: 1.5; flex: 1; }
    .pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
    .task-admin-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
    .closed-card { text-align: center; gap: 20px; padding: 52px 34px; align-items: center; }
    .closed-logo { height: 84px; width: auto; margin: 0 auto 4px; }
    .closed-body { margin: 0; line-height: 1.8; font-size: 16px; color: var(--text); }
    .closed-sub { margin: 0; line-height: 1.8; font-size: 14.5px; color: #5b6b7a; }
    @media (max-width: 520px) { .closed-logo { height: 64px; } .closed-body { font-size: 15px; } }
    .closed-note { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 12px 16px; border-radius: 10px; background: #fdf5f5; border: 1px solid #e6b3b3; color: #8a3a3a; font-size: 14px; }
    .modal-scrim { position: fixed; inset: 0; background: rgba(15,25,40,.5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
    .modal-box { background: #fff; border-radius: 16px; width: min(680px, 100%); max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
    .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
    .modal-body { padding: 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
    .icon-btn { background: none; border: none; cursor: pointer; color: #8b98a5; padding: 2px; display: inline-flex; }
    .icon-btn:hover { color: #33414f; }
    .chat-msg { display: flex; flex-direction: column; gap: 3px; max-width: 88%; }
    .chat-msg.is-user { align-self: flex-end; align-items: flex-end; }
    .chat-msg.is-ai { align-self: flex-start; }
    .chat-role { font-size: 11px; color: #8b98a5; padding: 0 4px; }
    .chat-bubble { padding: 9px 13px; border-radius: 13px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
    .chat-msg.is-ai .chat-bubble { background: #eef1f6; color: #33414f; border-top-left-radius: 4px; }
    .chat-msg.is-user .chat-bubble { background: var(--accent-soft); color: #143a2c; border-top-right-radius: 4px; }
    .question-desc .qd-topic { font-weight: 600; font-size: 14.5px; color: #33414f; }
    .question-desc .qd-flow { margin-top: 4px; font-size: 14px; color: #5b6b7a; line-height: 1.7; word-break: keep-all; }
    .branch-pick .select-card { position: relative; }
    .branch-reco { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border: 1px solid #b9ddce; border-radius: 999px; padding: 2px 8px; }
    .req-star { color: #d64545; font-weight: 700; }
    .req-note { margin-top: 6px; }
    .ai-next-hint { display: flex; align-items: center; gap: 7px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
    .ai-next-hint.done { background: var(--accent-soft); color: var(--accent); border-color: #b9ddce; font-weight: 700; }
    .ai-next-hint .ms { font-size: 18px; }
    .verify-task .vt-head { display: flex; align-items: flex-start; gap: 12px; }
    .verify-task .vt-head-t { flex: 1; min-width: 0; }
    .verify-task .vt-head h2 { font-size: 18px; }
    .vt-editbtn { flex: 0 0 auto; padding: 8px 14px; font-size: 13.5px; }
    .vt-editbtn .ms { font-size: 17px; }
    .verify-task .vt-field { display: grid; gap: 6px; }
    .vt-label { font-size: 13px; font-weight: 700; color: var(--primary); }
    .vt-title-view { font-size: 16.5px; line-height: 1.4; }
    .vt-feat-rows { display: grid; gap: 8px; }
    .vt-feat-row { display: flex; align-items: center; gap: 8px; }
    .vt-feat-row .input { flex: 1; }
    .vt-feat-del { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; color: var(--muted); cursor: pointer; }
    .vt-feat-del:hover { color: #d64545; border-color: #eab8b8; background: #fdf4f4; }
    .vt-feat-add { align-self: start; padding: 8px 14px; font-size: 13.5px; margin-top: 2px; }
    .vt-feat-add .ms { font-size: 18px; }
    .section-head { padding: 6px 2px; border-left: 3px solid var(--primary); padding-left: 12px; }
    .section-head h2 { font-size: 20px; }
    /* 리커트 5점 매트릭스 */
    /* 상단 범례: 1~5 의미를 섹션당 한 번 정의 (아래 행엔 라벨 생략) */
    .section-desc { font-size: 15px; line-height: 1.55; }
    .lk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px; }
    .lk-chip { display: flex; align-items: center; gap: 7px; font-size: 14.5px; color: #33414f; background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px 6px 7px; white-space: nowrap; }
    .lk-chip b { font-weight: 700; color: var(--text); }
    .lk-dot { width: 21px; height: 21px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
    .lk-dot.d1 { background: var(--s1); color: var(--s1t); } .lk-dot.d2 { background: var(--s2); color: var(--s2t); }
    .lk-dot.d3 { background: var(--s3); } .lk-dot.d4 { background: var(--s4); } .lk-dot.d5 { background: var(--s5); }
    /* 매트릭스: 행마다 항목 + 1~5 색 버블 (라벨 없이 색·숫자로 강도 전달) */
    .lk-grid { display: grid; border-radius: 10px; }
    .lk-grid.choice-error { box-shadow: inset 0 0 0 2px rgba(186, 26, 26, .35); }
    .lk-row { display: flex; align-items: center; gap: 16px; padding: 14px 4px; border-top: 1px solid var(--line-2); }
    .lk-row:first-child { border-top: 0; }
    .lk-item { flex: 1; font-size: 16.5px; line-height: 1.5; }
    .lk-opts { display: flex; gap: 8px; flex-shrink: 0; }
    .lk-opt { cursor: pointer; }
    .lk-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
    .lk-bub { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 14px; font-weight: 700; border: 2px solid; background: var(--surface-1); transition: transform .08s ease, box-shadow .12s ease, background-color .1s; }
    .lk-opt.o1 .lk-bub { border-color: var(--s1); color: var(--s1t); } .lk-opt.o2 .lk-bub { border-color: var(--s2); color: var(--s2t); }
    .lk-opt.o3 .lk-bub { border-color: var(--s3); color: var(--s3t); } .lk-opt.o4 .lk-bub { border-color: var(--s4); color: var(--s4t); }
    .lk-opt.o5 .lk-bub { border-color: var(--s5); color: var(--s5t); }
    .lk-opt:hover .lk-bub { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(7, 52, 90, .16); }
    .lk-opt input:focus-visible + .lk-bub { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
    .lk-opt.o1 input:checked + .lk-bub { background: var(--s1); color: var(--s1t); }
    .lk-opt.o2 input:checked + .lk-bub { background: var(--s2); color: var(--s2t); }
    .lk-opt.o3 input:checked + .lk-bub { background: var(--s3); color: #fff; }
    .lk-opt.o4 input:checked + .lk-bub { background: var(--s4); color: #fff; }
    .lk-opt.o5 input:checked + .lk-bub { background: var(--s5); color: #fff; }
    .lk-opt input:checked + .lk-bub { box-shadow: 0 0 0 4px rgba(15, 94, 140, .16); }
    .lk-count { font-size: 12.5px; color: var(--muted); margin-top: 10px; font-variant-numeric: tabular-nums; }
    @media (max-width: 560px) {
      .lk-row { flex-direction: column; align-items: stretch; gap: 10px; }
      .lk-opts { justify-content: space-between; }
      .lk-opt { flex: 1; }
      .lk-bub { width: 100%; border-radius: 12px; height: 48px; }
    }
    .hint { margin-left: 30px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-size: 13px; line-height: 1.5; }

    .chat-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
    .tags { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 32px;
      border-radius: 999px;
      border: 1px solid var(--line);
      background: var(--surface-1);
      padding: 0 12px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 600;
    }
    .bubble {
      max-width: 82%;
      padding: 16px 18px;
      border: 1px solid var(--line);
      border-radius: 18px;
      line-height: 1.75;
      background: var(--surface-2);
    }
    .bubble.me { margin-left: auto; background: var(--primary); color: #fff; border-color: var(--primary); }
    .interview-card { display: grid; gap: 16px; }
    .ai-question { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: start; }
    .ai-avatar { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; box-shadow: var(--shadow); }
    .logic-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 10px; background: var(--accent-soft); color: #154d3a; border: 1px solid #bfdfd1; }
    .interview-lens {
      display: grid;
      gap: 10px;
      padding: 16px;
      border: 1px solid #b8c9d8;
      border-radius: 12px;
      background: linear-gradient(180deg, #ffffff, #f2f7fb);
    }
    .lens-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .lens-title { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; }
    .confidence { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
    .confidence > i { display: block; height: 100%; width: var(--score); background: linear-gradient(90deg, var(--accent), var(--primary-2)); }
    .interview-turns { display: grid; gap: 10px; }
    .turn-card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
    .turn-card .ms { color: var(--primary); }
    .turn-card b { display: block; margin-bottom: 4px; }
    .rationale { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 5px; }
    .hypothesis-list { display: grid; gap: 10px; }
    .hypothesis-card {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      padding: 14px;
      text-align: left;
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: start;
      transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    }
    .hypothesis-card.is-selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
    .hypothesis-card .ms { color: var(--accent); }
    .hypothesis-card small { display: block; color: var(--muted); line-height: 1.45; margin-top: 5px; }
    .discovery-summary { display: grid; gap: 10px; padding: 14px; border: 1px solid #cfe0f4; border-radius: 12px; background: var(--surface-2); }
    .metric-title { font-size: 16px; line-height: 1.5; }
    .metric-body { font-size: 15px; line-height: 1.6; color: var(--text); }
    .feat-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
    .feat-list li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.5; }
    .feat-list li::before { content: "check"; font-family: "Material Symbols Outlined"; position: absolute; left: 0; top: 1px; font-size: 15px; color: var(--accent); }
    .prompt-preview { white-space: pre-wrap; line-height: 1.6; max-height: 360px; overflow: auto; background: #0f2233; color: #eaf5ff; border-radius: 10px; padding: 16px; font-size: 13px; }
    .principle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .principle-pill { border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; background: #fff; font-size: 13px; font-weight: 700; color: var(--primary); }
    .quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .quick-chip { border: 1px solid var(--line); background: #fff; color: var(--primary); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
    .quick-chip:hover { background: var(--primary-soft); border-color: #9eb8d0; }
    .draft-card { position: sticky; top: 88px; }
    .metric { background: var(--surface-2); border-radius: 10px; padding: 14px; }
    .chat-panel { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .chat-log { display: grid; gap: 14px; max-height: 520px; overflow: auto; padding-right: 6px; }
    .chat-msg { max-width: min(88%, 700px); padding: 13px 15px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); line-height: 1.7; color: var(--text); }
    .chat-msg.user { margin-left: auto; background: var(--primary); border-color: var(--primary); color: #fff; }
    .chat-msg.typing { display: inline-flex; align-items: center; min-height: 22px; padding: 12px 16px; }
    .typing-dots { display: inline-flex; gap: 5px; }
    .typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing-bounce 1.2s infinite ease-in-out; }
    .typing-dots i:nth-child(2) { animation-delay: .15s; }
    .typing-dots i:nth-child(3) { animation-delay: .3s; }
    @keyframes typing-bounce { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
    .chat-actions { display: flex; gap: 10px; flex-wrap: wrap; }
    .consultant-wrap {
      display: grid;
      gap: 20px;
      padding: 24px;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: linear-gradient(180deg, #ffffff, #f4f8fc);
      color: var(--text);
      box-shadow: 0 2px 12px rgba(7, 52, 90, .05);
    }
    .consultant-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--line);
    }
    .consultant-id {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
    }
    .consultant-avatar {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(180deg, #e8f1fb, #dbeaf8);
      color: var(--primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      font-weight: 800;
      flex: 0 0 auto;
    }
    .consultant-avatar .ms { font-size: 28px; }
    .consultant-mini .ms { font-size: 20px; }
    .consultant-top h2 { color: var(--primary); font-size: 18px; line-height: 1.3; }
    .consultant-top p { color: var(--muted); }
    .consultant-status {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .consultant-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: rgba(19, 95, 138, .24);
    }
    .consultant-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding: 0 2px;
    }
    .consultant-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 34px;
      padding: 0 12px;
      border-radius: 999px;
      border: 1px solid #cfe0f4;
      background: var(--primary-soft);
      color: var(--primary);
      font-size: 13px;
      font-weight: 600;
    }
    .consultant-stage {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 320px;
      gap: 20px;
      align-items: start;
    }
    .consultant-chat {
      display: grid;
      grid-template-rows: auto auto;
      gap: 0;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface-1);
      overflow: hidden;
    }
    .consultant-chathead {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 20px 8px;
    }
    .consultant-chathead b { color: var(--primary); font-size: 16px; }
    .consultant-chathead span { color: var(--muted); font-size: 13px; }
    .consultant-transcript {
      padding: 8px 20px 16px;
      display: grid;
      align-content: start;
      gap: 14px;
      max-height: 420px;
      overflow: auto;
    }
    .consultant-entry {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 12px;
      align-items: start;
    }
    .consultant-entry.user { grid-template-columns: minmax(0, 1fr) 52px; }
    .consultant-entry.user .chat-msg { margin-left: auto; }
    .consultant-entry.user .consultant-mini {
      order: 2;
      background: #0f497c;
      color: #dcefff;
    }
    .consultant-mini {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-soft);
      color: var(--primary);
      font-weight: 800;
      font-size: 14px;
      border: 1px solid #cfe0f4;
    }
    .consultant-empty {
      min-height: 180px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      padding: 24px;
    }
    .consultant-draft {
      display: grid;
      gap: 12px;
      padding: 0;
    }
    .consultant-draft .draft-card {
      position: static;
      top: auto;
      background: #ffffff;
      border-color: var(--line);
      box-shadow: 0 14px 28px rgba(7, 52, 90, .08);
    }
    .consultant-composer {
      display: grid;
      gap: 12px;
      padding: 18px 20px 20px;
      border-top: 1px solid var(--line);
      background: var(--surface-2);
    }
    .consultant-input {
      min-height: 118px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #ffffff;
      color: var(--text);
      padding: 18px 20px;
      resize: vertical;
    }
    .consultant-input::placeholder { color: var(--muted); }
    .consultant-input:focus {
      outline: none;
      border-color: var(--primary-2);
      box-shadow: 0 0 0 3px rgba(19, 95, 138, .16);
    }
    .consultant-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }
    .consultant-actions .btn.secondary {
      background: #ffffff;
      border-color: var(--line);
      color: var(--primary);
    }
    .consultant-actions .btn.primary {
      background: var(--primary);
      box-shadow: 0 10px 26px rgba(7, 52, 90, .22);
    }
    .consultant-side {
      display: grid;
      gap: 16px;
      align-content: start;
    }
    .case-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
    .case-head { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--primary); margin-bottom: 4px; }
    .case-head .ms { font-size: 20px; }
    .case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 12px; }
    .case-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-1); padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
    .case-card b { font-size: 15px; color: var(--text); line-height: 1.4; }
    .case-card .small { color: var(--muted); line-height: 1.55; }
    .case-tag { display: inline-flex; align-items: center; gap: 5px; align-self: start; font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px 3px 8px; }
    .case-tag .ms { font-size: 15px; }
    .consultant-note,
    .consultant-detail {
      padding: 18px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--surface-1);
      color: var(--text);
    }
    .consultant-note p,
    .consultant-detail p,
    .consultant-detail li,
    .consultant-detail summary { color: var(--muted); }
    .consultant-detail summary {
      cursor: pointer;
      font-weight: 700;
      list-style: none;
    }
    .consultant-detail summary::-webkit-details-marker { display: none; }
    .consultant-detail ul {
      margin: 12px 0 0;
      padding-left: 18px;
      line-height: 1.7;
    }
    .consultant-free-opinion {
      min-height: 160px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--surface-2);
      color: var(--text);
      padding: 14px 16px;
      line-height: 1.7;
    }
    .consultant-draft .draft-card h2 { font-size: 22px; }
    .consultant-draft .metric b { font-size: 16px; line-height: 1.5; }
    .consultant-draft .metric,
    .consultant-draft .discovery-summary {
      background: var(--surface-2);
      border-color: #cfe0f4;
    }
    .consultant-draft .small,
    .consultant-draft .muted {
      color: var(--muted);
    }

    .done-hero { text-align: center; display: grid; justify-items: center; gap: 16px; padding-top: 24px; }
    .done-hero .round { width: 76px; height: 76px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; }
    .done-hero .ms { font-size: 42px; }
    .quote { border-left: 4px solid var(--primary); background: var(--surface-2); padding: 18px; border-radius: var(--radius); line-height: 1.8; }
    .login-shell { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 18px; }
    .login-card { width: min(420px, 100%); display: grid; gap: 18px; padding: 28px; }
    .login-mark { width: 58px; height: 58px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--primary); box-shadow: var(--shadow); }
    .login-mark .ms { font-size: 32px; }

    .admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
    .sidebar { border-right: 1px solid var(--line); background: #eaf2ff; padding: 22px 16px; position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; }
    .side-title { color: var(--primary); font-weight: 700; margin-bottom: 28px; }
    .side-nav { display: grid; gap: 8px; }
    .side-nav button { border: 0; background: transparent; border-radius: var(--radius); min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px; text-align: left; color: var(--text); }
    .side-nav button.is-active { background: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(7, 52, 90, .18); }
    .admin-main { padding: 36px; overflow: auto; }
    .admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
    .stat { padding: 18px; display: grid; gap: 6px; }
    .bars { display: grid; gap: 9px; margin-top: 10px; }
    .bar-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
    .bar-label { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bar-track { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
    .bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: 999px; }
    .bar-val { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; min-width: 42px; text-align: right; }
    .stat b { font-size: 28px; color: var(--primary); }
    table { width: 100%; border-collapse: collapse; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
    th, td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
    th { background: var(--surface-2); color: var(--muted); font-size: 13px; }
    tr:last-child td { border-bottom: 0; }
    .badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; border-radius: 999px; padding: 0 10px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--primary); }
    .badge.green { background: #dcf7e8; color: var(--success); }
    .badge.blue { background: #dceaff; color: #004a8b; }
    .badge.warn { background: #fff1d7; color: var(--warn); }
    .toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
    .builder-card { padding: 18px; display: grid; gap: 12px; }
    .task-feats { margin: 0; padding-left: 18px; display: grid; gap: 2px; }
    .task-feats li { font-size: 13px; }
    .sd-section { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
    .sd-section + .sd-section { margin-top: 12px; }
    .sd-q { padding: 6px 0; border-top: 1px dashed var(--line-2); }
    .sd-q:first-of-type { border-top: 0; }
    .sd-phase { font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); }
    .option-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
    .save-strip { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(248,249,255,.96); border-top: 1px solid var(--line); padding: 14px 0 0; backdrop-filter: blur(14px); }
    .empty { padding: 28px; text-align: center; color: var(--muted); }

    .toast {
      position: fixed;
      left: 50%;
      bottom: 96px;
      transform: translateX(-50%);
      z-index: 50;
      min-width: 220px;
      background: var(--primary);
      color: #fff;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 12px 16px;
      text-align: center;
      font-weight: 700;
      display: none;
    }
    .toast.show { display: block; }
    .privacy-box { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
    .privacy-box.privacy-emph { background: #fdf5f5; border-color: #e6b3b3; }
    .privacy-box.privacy-emph > b { color: #c0392b; }
    .privacy-box ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.7; }
    .resume-box { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #b9ddce; border-radius: 12px; background: var(--accent-soft); text-align: left; }
    .field-error { margin-top: 6px; color: var(--danger); font-size: 13px; font-weight: 700; line-height: 1.45; }
    .input.is-error, .select.is-error, .textarea.is-error, .choice-error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(186, 26, 26, .10); }
    .filter-panel { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(130px, .7fr)); gap: 12px; margin: 24px 0 18px; }
    .status-select { min-height: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 6px 8px; color: var(--text); }
    h1:focus { outline: 3px solid rgba(7, 52, 90, .24); outline-offset: 6px; border-radius: var(--radius); }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
      }
    }

    @media (max-width: 900px) {
      .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .chat-layout { grid-template-columns: 1fr; }
      .draft-card { position: static; }
      .consultant-stage { grid-template-columns: 1fr; }
      .consultant-chat { min-height: auto; }
      .admin-shell { grid-template-columns: minmax(0, 1fr); min-width: 0; }
      .sidebar { position: sticky; top: 64px; z-index: 10; width: 100%; max-width: 100%; min-width: 0; height: auto; align-self: auto; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
      .side-title { display: none; }
      .side-nav { display: flex; max-width: 100%; min-width: 0; overflow-x: auto; }
      .side-nav button { white-space: nowrap; }
      .admin-main { width: 100%; max-width: 100%; min-width: 0; padding: 24px 18px 104px; }
      .admin-head { flex-direction: column; }
    }
    @media (max-width: 640px) {
      .appbar { padding: 0 15px; }
      .brand { font-size: 20px; }
      .top-actions .link-btn { display: none; }
      .page { padding: 20px 15px 136px; }
      h1 { font-size: 30px; }
      h2 { font-size: 24px; }
      .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
      .mode-grid { grid-template-columns: 1fr; }
      .feature-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
      .feature-scroll .feature { flex: 0 0 82%; scroll-snap-align: start; }
      .bottom-bar { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }
      .bottom-inner { gap: 10px; }
      .bottom-inner .btn { min-height: 44px; }
      .consultant-wrap { gap: 14px; padding: 14px; border-radius: 18px; }
      .consultant-top { align-items: flex-start; }
      .consultant-top p { font-size: 13px; line-height: 1.55; }
      .consultant-status { display: none; }
      .consultant-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
      }
      .consultant-chip {
        min-height: 32px;
        justify-content: center;
        padding: 6px 10px;
        text-align: center;
      }
      .consultant-stage { gap: 12px; }
      .consultant-chat { border-radius: 18px; }
      .consultant-entry { grid-template-columns: 40px minmax(0, 1fr); }
      .consultant-entry.user { grid-template-columns: minmax(0, 1fr) 40px; }
      .consultant-mini { width: 36px; height: 36px; font-size: 12px; }
      .consultant-chathead { padding: 14px 14px 6px; }
      .consultant-chathead b { font-size: 15px; }
      .consultant-chathead span { font-size: 12px; }
      .consultant-transcript { padding: 6px 14px 12px; max-height: none; gap: 12px; }
      .chat-msg { max-width: 100%; font-size: 14px; line-height: 1.6; }
      .consultant-composer { padding: 14px; gap: 10px; }
      .consultant-input { min-height: 88px; padding: 14px 15px; border-radius: 16px; }
      .consultant-actions {
        flex-direction: column;
        align-items: stretch;
      }
      .consultant-actions > * {
        width: 100%;
      }
      .consultant-actions > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
      }
      .consultant-side {
        gap: 12px;
      }
      .consultant-draft .draft-card {
        padding: 16px;
      }
      .consultant-draft .draft-card h2 { font-size: 19px; }
      .consultant-draft .metric { padding: 12px; }
      .consultant-note,
      .consultant-detail {
        padding: 14px;
      }
      .consultant-free-opinion {
        min-height: 128px;
      }
      .coupon { grid-template-columns: 1fr; text-align: center; justify-items: center; }
      .bottom-inner .btn { flex: 1; min-width: 0; }
      .bottom-inner .primary { flex: 1.45; min-width: 0; }
      .bubble { max-width: 94%; }
      table { min-width: 720px; }
      .table-wrap { overflow-x: auto; }
      .builder-card, .builder-card > .grid, .option-line { min-width: 0; }
      .option-line { grid-template-columns: 22px minmax(0, 1fr) 40px; }
      .principle-grid { grid-template-columns: 1fr; }
      .filter-panel { grid-template-columns: 1fr; }
      .admin-head > div, .admin-head h1, .admin-head p { width: 100%; max-width: 100%; }
    }
  
