
  /* ===== PLW palette — dark cinematic (aligned with index.html's 玄鑄 ZR-7 system) ===== */
  :root {
    color-scheme: dark;
    --ink: #e8eaf0;
    --ink-soft: #9aa1b0;
    --ink-faint: #868c9c;
    --paper: #050506;
    --paper-raised: #101218;
    --paper-sunk: #0a0b0e;
    --line: rgba(232,234,240,.10);
    --line-strong: rgba(232,234,240,.20);
    --accent: #e8eaf0;
    --accent-strong: #ffffff;
    --accent-ink: #050506;
    --accent-soft: rgba(232,234,240,.07);
    --seal: #3ecb92;
    --seal-soft: rgba(62,203,146,.14);
    --seal-ink: #7fe8bb;
    --warn: #e0a83f;
    --warn-soft: rgba(224,168,63,.14);
    --warn-ink: #f3cf94;
    --alert: #e2607f;
    --alert-soft: rgba(226,96,127,.14);
    --alert-ink: #f5a8bc;
    --gold: #d4b555;
    --gold-soft: rgba(212,181,85,.14);
    --gold-ink: #ecd79a;
    --shadow: rgba(0,0,0,.55);
    --focus: #e8eaf0;
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-strong));
    --gradient-hero: linear-gradient(135deg, #050506 0%, #0b0c0f 55%, #14161c 100%);
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* soft backdrop: slow drifting halo glows (fixed, behind everything) — same idiom as index.html */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
      radial-gradient(640px 460px at 8% -8%, rgba(214,198,168,.075), transparent 60%),
      radial-gradient(720px 520px at 106% 10%, rgba(150,178,210,.065), transparent 60%),
      radial-gradient(600px 460px at 46% 108%, rgba(232,234,240,.045), transparent 65%),
      var(--paper);
    animation: blobDrift 30s ease-in-out infinite alternate;
  }
  @media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
  }

  @keyframes blobDrift {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(-1.5%, 1%, 0) scale(1.04); }
  }
  @keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.6deg); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  .ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 8px 0 0; }
  .ticker-track { display: flex; gap: 40px; width: max-content; animation: marquee 26s linear infinite; }
  .ticker-track span { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.08em; color: var(--ink-faint); white-space: nowrap; }
  .ticker-track span b { color: var(--ink); font-weight: 600; }
  @media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; flex-wrap: wrap; }
  }

  h1, h2, h3 { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; font-weight: 300; text-wrap: balance; margin: 0; letter-spacing: .02em; }

  .mono {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
  }

  a { color: inherit; }

  button {
    font-family: inherit;
    cursor: pointer;
  }

  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  /* ===== shell ===== */
  .shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 80px;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    margin: 18px auto 0;
    max-width: 1180px;
    width: calc(100% - 40px);
    border-radius: 100px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(232,234,240,.058), rgba(232,234,240,.016));
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 50px -30px rgba(0,0,0,.85);
    position: sticky;
    top: 16px;
    z-index: 30;
  }

  .brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .brand .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    flex: none;
    border-radius: 50%;
    background:
      radial-gradient(34% 30% at 34% 26%, #fff 0%, rgba(255,255,255,.55) 18%, transparent 55%),
      radial-gradient(70% 70% at 62% 74%, #4a4d55 0%, #0c0d10 72%);
    box-shadow: 0 0 16px rgba(200,214,240,.32), inset 0 -1px 2px rgba(255,255,255,.14);
    font-size: 0;
    color: transparent;
  }

  .brand-text { display: flex; flex-direction: column; gap: 1px; }

  .brand .name {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.01em;
  }

  .brand-en {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9.5px;
    letter-spacing: 0.08em;
    color: var(--ink-faint);
    text-transform: uppercase;
  }

  .brand .tag {
    font-size: 12.5px;
    color: var(--ink-faint);
    border-left: 1px solid var(--line-strong);
    padding-left: 10px;
  }

  .who {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-soft);
  }

  .who .badge {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
  }

  .switch-btn {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
  }
  .switch-btn:hover { background: var(--paper-raised); }

  /* ===== lobby ===== */
  .lobby-hero {
    padding: 56px 0 8px;
  }

  .brand-hero {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
    padding: 60px 24px 52px;
    text-align: center;
  }
  .brand-hero::after, .page-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 56px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--paper) 92%);
    pointer-events: none;
  }
  .brand-hero::after { height: 80px; }
  .brand-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .brand-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
  .brand-hero-eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.72);
    margin-bottom: 16px;
    text-transform: uppercase;
  }
  .brand-hero h1 {
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.4;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  }
  .brand-hero p {
    font-size: 14.5px;
    color: rgba(255,255,255,0.7);
    max-width: 56ch;
    margin: 0 auto;
  }
  .lobby-eyebrow {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    margin-bottom: 14px;
  }
  .lobby-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    max-width: 15ch;
    line-height: 1.3;
  }
  .lobby-hero p {
    max-width: 56ch;
    color: var(--ink-soft);
    font-size: 15.5px;
    margin-top: 16px;
  }

  .disclosure-strip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0 44px;
    padding: 14px 16px;
    background: var(--seal-soft);
    border: 1px solid color-mix(in srgb, var(--seal) 35%, transparent);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--seal-ink);
  }
  .disclosure-strip svg { flex: none; margin-top: 2px; }

  .login-card {
    max-width: 380px;
    margin: 0 auto 20px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 26px 26px 22px;
    box-shadow: 0 1px 0 var(--shadow);
  }
  .login-card-head { margin-bottom: 20px; text-align: center; }
  .login-card-head .mark { margin: 0 auto 14px; }
  .login-card-head h3 { font-size: 19px; }
  .login-card-desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
  .login-card .field label { text-align: left; }
  .login-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
  }
  .login-card-links { display: flex; flex-direction: column; gap: 5px; }
  .login-card-links a {
    font-size: 12.5px;
    color: var(--ink);
    text-decoration: none;
  }
  .login-card-links a:hover { text-decoration: underline; }
  .login-demo-hint {
    margin-top: 14px;
    font-size: 11.5px;
    color: var(--ink-faint);
    text-align: center;
    line-height: 1.6;
  }

  .counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 48px;
  }
  @media (max-width: 860px) {
    .counters { grid-template-columns: 1fr; }
  }

  .counter-card {
    position: relative;
    text-align: left;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 26px 22px 22px;
    box-shadow: 0 1px 0 var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  }
  .counter-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 8px 20px -12px var(--shadow);
  }
  .counter-no {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12.5px;
    color: var(--ink-faint);
    letter-spacing: 0.08em;
  }
  .counter-card h3 {
    font-size: 19px;
    margin: 10px 0 8px;
  }
  .counter-card p {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 0 0 20px;
    min-height: 58px;
  }
  .counter-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    background: none;
    border: none;
    padding: 0;
  }
  .counter-go svg { transition: transform 0.15s ease; }
  .counter-card:hover .counter-go svg { transform: translateX(3px); }

  /* ===== view ===== */
  #lobbyWrap { display: block; }
  #lobbyWrap.hide { display: none; }

  .view-title { margin-bottom: 4px; font-size: 24px; }
  .view-sub { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 30px; }

  /* ===== stat cards ===== */
  .stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 34px;
  }
  .stat {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px 16px 14px;
  }
  .stat .label { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.03em; }
  .stat .value { font-family: "IBM Plex Mono", monospace; font-size: 25px; font-weight: 600; margin-top: 6px; }
  .stat .value.seal { color: var(--seal); }
  .stat .value.alert { color: var(--alert); }
  .stat .delta { font-size: 12px; margin-top: 4px; color: var(--ink-faint); }

  /* ===== panels / tables ===== */
  .panel {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 24px;
    overflow: hidden;
  }
  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel-head h3 { font-size: 15.5px; }
  .panel-head .hint { font-size: 12px; color: var(--ink-faint); }

  table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
  th {
    text-align: left;
    font-weight: 500;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }
  td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    line-height: 1.5;
  }
  tr:last-child td { border-bottom: none; }
  /* 2026-09 UI/UX 優化：滑到哪一列就整列淡淡亮一下，長表格掃視、對齊欄位比較不容易看錯行 */
  tbody tr { transition: background .12s ease; }
  tbody tr:hover td { background: var(--accent-soft); }
  /* 同一格裡有好幾行資訊（例如商家名稱＋地區標籤＋帳號說明）時，用固定間距的直向排列，
     取代原本東一個 <br> 西一個 <br> 拼出來的排版，行距才會整齊、不會忽大忽小 */
  .cell-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  /* 2026-09 使用者回報：工讀生名單最後一欄的「重設密碼／封存」按鈕，視窗窄一點就會
     擠成兩行，不管全螢幕還是縮小都會發生——原因是這裡原本允許按鈕自己換行（flex-wrap:
     wrap），但同一張表的其他欄位（例如分級／每日上限）都是「按鈕絕對不換行、寬度不夠
     就交給外層 .table-wrap 的水平捲軸處理」，兩種欄位擠在同一張自動排版的表格裡，瀏覽器
     會犧牲「允許換行」的這一欄來讓其他欄位維持原寬，才會不管視窗多寬都被擠成兩行。
     改成跟其他欄位一致：按鈕不換行、也不會被壓縮變形，真的太窄就整張表一起橫向捲動，
     版面才會維持整齊、不會忽上忽下跑版。 */
  .cell-actions { display: flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
  .cell-actions > * { flex-shrink: 0; }
  .table-wrap { overflow-x: auto; }
  /* 2026-08-31 使用者回報：表格太寬時最右邊那欄（通常是操作按鈕）會被捲到看不到，
     要滑到最右邊才找得到；改成最後一欄固定貼齊右側，不管橫向捲到哪裡都看得到 */
  .table-wrap table th:last-child,
  .table-wrap table td:last-child {
    position: sticky;
    right: 0;
    background: var(--paper-raised);
    box-shadow: -8px 0 10px -8px rgba(0,0,0,.5);
  }
  .table-wrap table tbody tr:hover td:last-child { background: #14161d; }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 500;
  }
  .pill.ok { background: var(--seal-soft); color: var(--seal-ink); border: 1px solid rgba(62,203,146,0.35); }
  .pill.warn { background: var(--warn-soft); color: var(--warn-ink); border: 1px solid rgba(224,168,63,0.4); }
  .pill.bad { background: var(--alert-soft); color: var(--alert-ink); border: 1px dashed rgba(226,96,127,0.4); }
  .pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

  .bar-track {
    width: 100%;
    height: 6px;
    background: var(--paper-sunk);
    border-radius: 999px;
    overflow: hidden;
  }
  .bar-fill { height: 100%; background: var(--ink-soft); border-radius: 999px; }
  .bar-fill.seal { background: var(--seal); }

  .filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
  }
  .filter-pill:hover { background: var(--paper-sunk); }
  .filter-pill.active { background: var(--seal); border-color: var(--seal); color: var(--paper); }

  .review-link-btn {
    background: none;
    border: none;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
  }
  .review-link-btn:hover { text-decoration: underline; }

  /* ===== ticket cards (reviewer hall) ===== */
  /* 2026-08-31 改版：大廳從「多欄卡片格線」改成「依地區分段的直向精簡列表」，
     hall-grid 本身不再需要格線排版，交給裡面的 .hall-region-section 自己直向排列 */
  .hall-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
  }
  .ticket {
    position: relative;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 18px 16px;
  }
  .ticket::before, .ticket::after {
    content: "";
    position: absolute;
    top: 96px;
    width: 16px;
    height: 16px;
    background: var(--paper);
    border-radius: 50%;
  }
  .ticket::before { left: -9px; }
  .ticket::after { right: -9px; }
  .ticket .perf {
    border-top: 1.5px dashed var(--line-strong);
    margin: 14px 0;
  }
  .ticket .region {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 0.06em;
  }
  .ticket h4 { font-size: 16.5px; margin: 6px 0 4px; font-family: "Noto Sans TC", sans-serif; font-weight: 500; }
  .ticket-addr { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 6px; }
  .ticket .note { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; min-height: 34px; }
  .ticket .meta-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; }
  .ticket .meta-row b { color: var(--ink); font-family: "IBM Plex Mono", monospace; font-weight: 500; }
  .ticket .disc-req {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 11.5px;
    color: var(--ink);
    background: var(--accent-soft);
    border-radius: 6px;
    padding: 7px 9px;
    margin: 10px 0 12px;
  }
  .claim-btn {
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    border: none;
    background: var(--gradient-accent);
    color: var(--accent-ink);
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  .claim-btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(0,0,0,0.65); }
  .claim-btn:disabled { background: var(--paper-sunk); color: var(--ink-faint); cursor: not-allowed; box-shadow: none; }

  .hall-region-section { margin-bottom: 22px; }
  .hall-region-title { font-size: 13px; font-weight: 600; color: var(--ink-faint); margin: 0 0 8px; padding-left: 2px; letter-spacing: .03em; }
  .hall-row-list { display: flex; flex-direction: column; gap: 8px; }
  .hall-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 16px;
  }
  .hall-row-name { font-weight: 600; color: var(--ink); font-size: 14px; }
  .hall-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
  .hall-claim-btn {
    padding: 7px 20px;
    border-radius: 999px;
    border: none;
    background: var(--seal);
    color: #06170f;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
  }
  .hall-claim-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
  .hall-claim-btn:disabled { background: var(--paper-sunk); color: var(--ink-faint); cursor: not-allowed; }
  .hall-row-quota { font-size: 11.5px; color: var(--ink-faint); }

  .held-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .held-card:last-child { border-bottom: none; }
  .held-card .info h4 { font-size: 14.5px; margin-bottom: 3px; }
  .held-card .info span { font-size: 12px; color: var(--ink-faint); }
  .held-card .actions { display: flex; gap: 8px; }
  .assigned-material { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

  /* 2026-09：「補件任務」面板背景故意改成淺粉色警示色（見 app.html #failedPanel），
     但卡片文字顏色是繼承全站深色主題的預設值（接近白色），淺底配淺字幾乎看不到。
     這裡只針對這個淺色面板裡的卡片文字／邊框另外覆寫成深色，不影響大廳、保留中
     任務等其他地方原本在深色背景下使用的 .held-card 樣式。 */
  #failedPanel .held-card { border-bottom-color: rgba(161,38,38,.15); }
  #failedPanel .held-card .info h4 { color: #7a2020; }
  #failedPanel .held-card .info span { color: #8c4a4a; }
  #failedPanel .assigned-material { color: #8c4a4a; }
  #failedPanel .ghost-btn { color: #7a2020; border-color: rgba(161,38,38,.35); }
  #failedPanel .ghost-btn:hover { background: rgba(161,38,38,.08); }

  .support-msg {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 10px;
    background: var(--paper-sunk);
    align-self: flex-start;
  }
  .support-msg.from-admin { align-self: flex-end; background: var(--seal); color: #06150e; }
  .support-msg-role { font-size: 11px; opacity: .75; margin-bottom: 3px; }
  .support-msg-body { font-size: 13.5px; white-space: pre-wrap; line-height: 1.5; }
  .support-msg-time { font-size: 10.5px; opacity: .6; margin-top: 4px; text-align: right; }
  .ghost-btn {
    padding: 7px 13px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 500;
  }
  .ghost-btn:hover { background: var(--paper-sunk); }
  .primary-btn {
    padding: 7px 13px;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12.5px;
    font-weight: 700;
  }
  .primary-btn:hover { background: var(--accent-strong); color: var(--paper); }

  /* ===== modal ===== */
  .modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(2, 3, 4, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 40;
  }
  .modal-backdrop.open { display: flex; }
  .modal {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 12px;
    max-width: 460px;
    width: 100%;
    padding: 24px 24px 22px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal h3 { font-size: 17px; margin-bottom: 4px; }
  .modal .sub { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 18px; }
  /* 2026-09 使用者回報：訂單評論員明細裡則數多的商家，一長串評論員要往下捲，配合欄位
     太多要橫向捲很不方便——欄位已經精簡到 4 欄不太需要橫向捲了，這裡另外讓表格自己有
     獨立的捲動範圍（標題文字留在最上面不會被捲走），表頭也固定貼齊頂端，往下捲很多列
     時欄位名稱還在，不用捲上去對照這一列是哪一欄。 */
  .aot-table-wrap { max-height: 58vh; overflow-y: auto; }
  .aot-table thead th { position: sticky; top: 0; z-index: 1; background: var(--paper-raised); }
  .field { margin-bottom: 14px; }
  .field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
  .field textarea, .field input[type=text], .field input[type=tel], .field input[type=number], .field select {
    width: 100%;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    border-radius: 7px;
    padding: 9px 10px;
    font-family: inherit;
    font-size: 13px;
    resize: vertical;
  }
  .field select { appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239aa1b0'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
  .field select option { background: var(--paper-raised); color: var(--ink); }
  .field textarea { min-height: 82px; }
  .biz-info-copy-block {
    background: var(--paper-sunk);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .biz-info-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
  .biz-info-label { flex: none; width: 62px; color: var(--ink-faint); }
  .biz-info-val { flex: 1; color: var(--ink); overflow-wrap: anywhere; }
  .copy-btn {
    flex: none;
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: var(--paper-raised);
    color: var(--ink-soft);
    font-size: 11.5px;
    cursor: pointer;
  }
  .copy-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
  .check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--accent-soft);
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
  }
  .check-row input { margin-top: 3px; }
  .check-row label { font-size: 12.5px; color: var(--ink); line-height: 1.55; }
  .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
  .close-x {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 18px; color: var(--ink-faint);
  }

  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--paper);
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .two-col {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
  }
  @media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

  .trend-box {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
  }
  .trend-box h3 { font-size: 14.5px; margin-bottom: 2px; }
  .trend-box .cur { font-family: "IBM Plex Mono", monospace; font-size: 27px; margin: 10px 0 2px; }
  .trend-box .cur span { font-size: 13px; color: var(--ink-faint); font-weight: 400; }

  .footnote {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink-faint);
  }

  .admin-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--ink-faint);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
  }
  .admin-link:hover { color: var(--ink-soft); }

  .avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--paper-sunk);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: var(--ink-soft);
    margin-right: 8px;
  }
  /* 2026-09-13 使用者回報：工讀生名單這張表，每一列的格線都會斷開、對不齊，其他表格都
     正常。原因找到了：這裡原本讓 <td> 本身變成 flex 容器（display:flex）來讓大頭貼跟名字
     置中對齊，但 <td> 本來是「表格儲存格」這種特殊排版角色，瀏覽器計算一整列（同一個
     <tr> 裡）該對齊到多高，靠的是表格儲存格自己的高度計算規則；一旦把 <td> 改成
     display:flex，它就不再照表格儲存格的規則算高度，會跟同一列其他欄位差個零點幾像素，
     這零點幾像素的落差，就是格線看起來「接不起來」的原因。實測過（用 Playwright 量測
     實際渲染出來的高度）：改成下面這樣、讓 <td> 保持原本的表格儲存格角色，只在裡面多包
     一層 <span> 來做置中，這零點幾像素的落差就完全消失、格線密合，各種螢幕縮放比例都測
     過，都是穩定的。 */
  .name-cell-inner { display: inline-flex; align-items: center; }

  @media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
  }

  /* ===== app shell (sidebar + topbar layout, post-login) ===== */
  .app-shell {
    display: none;
    min-height: 100vh;
  }
  .app-shell.active { display: flex; }

  .sidebar {
    flex: none;
    width: 232px;
    background: linear-gradient(180deg, rgba(232,234,240,.05), rgba(232,234,240,.02));
    border-right: 1px solid var(--line);
    color: var(--ink);
    padding: 20px 14px 24px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  .sidebar-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
    margin-bottom: 14px;
  }
  .sidebar-brand-swirl { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .sidebar-brand .mark, .sidebar-brand > div { position: relative; z-index: 1; }
  .sidebar-brand .mark {
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 12px;
    padding: 6px 8px;
  }
  .sidebar-brand .name { font-family: "Noto Sans TC", sans-serif; font-weight: 800; font-size: 15.5px; color: var(--ink); }
  .sidebar-brand .role { font-size: 10.5px; color: rgba(255,255,255,0.5); display: block; margin-top: 1px; }

  .sidebar-group { margin-bottom: 20px; }
  .sidebar-group-label {
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.42);
    padding: 0 10px 8px;
    font-weight: 600;
  }
  .sidebar-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 7px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    margin-bottom: 2px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
  }
  .sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .sidebar-link.active { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
  .sidebar-link .ico { width: 15px; text-align: center; opacity: 0.9; }
  .nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
  }

  .main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper-raised);
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .app-search {
    position: relative;
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink-faint);
    font-size: 13px;
  }
  .app-search input {
    border: none;
    background: none;
    outline: none;
    color: var(--ink);
    font-size: 13px;
    width: 100%;
    font-family: inherit;
  }
  /* 2026-09 新增：管理者頂部「搜尋商家或評論員」用的下拉結果清單，跟其他還沒真的接上
     功能的搜尋框（.app-search 這個外觀在後台好幾個地方都有用到）共用同一顆殼，只有這裡
     額外掛結果清單，不會影響其他地方的樣式。 */
  .app-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    z-index: 30;
    max-height: 320px;
    overflow-y: auto;
  }
  .app-search-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--ink);
  }
  .app-search-result-item:hover {
    background: var(--paper);
  }
  .app-search-result-type {
    font-size: 11px;
    color: var(--ink-faint);
    flex-shrink: 0;
    white-space: nowrap;
  }
  .app-search-empty {
    padding: 12px;
    font-size: 12px;
    color: var(--ink-faint);
    text-align: center;
  }
  /* 點搜尋結果跳轉過去之後，用短暫的黃色閃一下標出是哪一列，找到人不用自己在整頁裡面找。 */
  .row-highlight-flash {
    animation: rowHighlightFlash 1.6s ease;
  }
  @keyframes rowHighlightFlash {
    0% { background: rgba(255, 196, 61, .38); }
    100% { background: transparent; }
  }
  .app-topbar-right { display: flex; align-items: center; gap: 10px; }
  .wallet-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
  }
  .wallet-chip:hover { filter: brightness(0.92); }
  .wallet-chip .wallet-label { opacity: 0.6; font-weight: 400; }
  .wallet-chip .wallet-amt { font-family: "IBM Plex Mono", monospace; }

  .wallet-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, rgba(232,234,240,.06), rgba(232,234,240,.02));
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 12px;
    padding: 24px 26px;
    margin: 18px 0 26px;
    flex-wrap: wrap;
  }
  .wallet-hero .wallet-hero-label { font-size: 12.5px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }
  .wallet-hero .wallet-hero-amt { font-family: "IBM Plex Mono", monospace; font-size: 34px; font-weight: 700; margin-top: 6px; }
  .wallet-hero .wallet-hero-note { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 8px; max-width: 42ch; }
  .app-cta {
    padding: 8px 14px;
    border-radius: 7px;
    border: none;
    background: var(--seal);
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
  }
  .app-cta:hover { filter: brightness(1.08); }
  .app-account {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 6px 5px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 12.5px;
    color: var(--ink-soft);
  }
  .main-content {
    padding: 28px 28px 60px;
    /* 2026-09 使用者回報：訂單管理欄位已經減到剩 5 欄＋操作了，還是要橫向捲動——
       真正卡住的不是欄位數，是這個給表單類頁面設計的閱讀寬度上限：不管螢幕多寬，
       資料表格頁面（訂單管理／工讀生名單／會員名單等）都套用同一個容器，被這個上限
       硬性卡住。放寬到 1400px，一般筆電螢幕（1280px 以上）就能一次看完整張表格，
       表單／統計卡片這種本來就用 grid/auto-fit 自動排版的頁面不受影響。 */
    max-width: 1400px;
    width: 100%;
  }
  /* 桌機不顯示漢堡按鈕；手機才出現 */
  .nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: 8px; background: none; color: var(--ink);
    font-size: 20px; cursor: pointer; flex: none; margin-right: 4px; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 250; }

  /* 2026-09-30 使用者確認：手機把側邊選單改成「抽屜」——平常收起來，按左上角 ☰ 才滑出來，
     內容一開始就看得到，不用先滑過一整排選單。 */
  @media (max-width: 880px) {
    .sidebar {
      position: fixed; top: 0; left: 0; height: 100vh; width: 270px; max-width: 82vw;
      transform: translateX(-100%); transition: transform .25s ease; z-index: 300;
      box-shadow: 0 10px 40px rgba(0,0,0,.55);
      background: var(--paper); /* 手機抽屜要不透明，不然後面內容會透出來 */
    }
    body.nav-open .sidebar { transform: translateX(0); }
    body.nav-open .nav-backdrop { display: block; }
    .nav-toggle { display: inline-flex; }
    .app-topbar { position: sticky; top: 0; z-index: 100; background: var(--paper); flex-wrap: wrap; }
  }
  @media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }

  /* ===== store / pricing / cart ===== */
  .store-head { max-width: 62ch; margin-bottom: 8px; }
  .store-head p { color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; }

  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 22px 0 28px;
  }
  .plan-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
  }
  .plan-card.flagship { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 28px -10px rgba(232,234,240,0.18); position: relative; }
  .plan-card.flagship::before { content: "推薦"; position: absolute; top: -1px; right: 16px; background: var(--gradient-accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 0 0 5px 5px; letter-spacing: 0.05em; }
  .plan-card-highlight { animation: planHighlight 1.6s ease; }
  @keyframes planHighlight {
    0% { box-shadow: 0 0 0 3px var(--accent); }
    100% { box-shadow: 0 0 0 0 rgba(232,234,240,0); }
  }
  .plan-card .plan-name { font-family: "Noto Sans TC", sans-serif; font-size: 17px; font-weight: 700; }
  .plan-card .plan-tagline { font-size: 12px; color: var(--ink-faint); margin: 3px 0 14px; }
  .plan-card .plan-price { font-family: "IBM Plex Mono", monospace; font-size: 26px; font-weight: 600; }
  .plan-card .plan-price span { font-size: 12.5px; color: var(--ink-faint); font-weight: 400; }
  .plan-card ul { list-style: none; padding: 0; margin: 14px 0 18px; font-size: 12.5px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 7px; flex: 1; }
  .plan-card ul li { display: flex; gap: 6px; align-items: flex-start; }
  .plan-card ul li::before { content: "✓"; color: var(--seal); font-weight: 700; flex: none; }
  .qty-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .qty-row label { font-size: 12px; color: var(--ink-faint); }
  .qty-row input {
    width: 64px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
  }

  .store-lower { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
  @media (max-width: 880px) { .store-lower { grid-template-columns: 1fr; } }

  .cart-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cart-item:last-child { border-bottom: none; }
  .cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
  .cart-line .qty { color: var(--ink-faint); font-size: 12px; }
  .cart-item-materials { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
  .cart-item-materials .field { margin: 0; }
  .cart-item-materials textarea { min-height: 52px; font-size: 12.5px; }
  .cart-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line-strong); font-weight: 700; font-size: 15px; }
  .remove-x { background: none; border: none; color: var(--ink-faint); font-size: 15px; cursor: pointer; padding: 0 2px; }
  .remove-x:hover { color: var(--alert); }

  .pay-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
  .pay-option input { margin-top: 3px; }
  .pay-option.disabled { opacity: 0.5; cursor: not-allowed; }
  .pay-option .pay-name { font-weight: 600; }
  .pay-option .pay-note { font-size: 11.5px; color: var(--ink-faint); }

  .bank-info { background: var(--paper-sunk); border-radius: 8px; padding: 14px 16px; font-size: 13px; margin: 14px 0; }
  .bank-info div { margin-bottom: 4px; }
  .bank-info .mono { font-size: 13.5px; }

  .order-code-box { text-align: center; padding: 8px 0 18px; }
  .order-code-box .oc { font-family: "IBM Plex Mono", monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.02em; }

  /* ===== marketing home page ===== */
  .topbar-actions { display: flex; align-items: center; gap: 8px; }
  .nav-ghost-btn {
    font-size: 13px; padding: 8px 14px; border-radius: 100px;
    border: none; background: transparent; color: var(--ink-soft);
  }
  .nav-ghost-btn:hover { background: rgba(232,234,240,.06); color: var(--ink); }
  .nav-primary-btn {
    font-size: 13px; padding: 8px 18px; border-radius: 100px;
    border: none; background: var(--accent); color: var(--accent-ink); font-weight: 600;
  }
  .nav-primary-btn:hover { background: var(--accent-strong); color: var(--accent-ink); }
  .topbar a[href="app.html"], .topbar-actions a[href="app.html"] {
    display: inline-flex; align-items: center;
    padding: 8px 18px; border-radius: 100px;
    background: var(--accent); color: var(--accent-ink); font-weight: 600;
    text-decoration: none;
  }
  .topbar a[href="app.html"]:hover { background: var(--accent-strong); }

  .home-section { margin: 46px 0; }
  .home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
  .home-section-head h2 { font-size: 21px; }
  .home-section-head .home-section-note { font-size: 12.5px; color: var(--ink-faint); }
  .home-section p.desc { color: var(--ink-soft); font-size: 13.5px; margin: 6px 0 20px; max-width: 60ch; }

  .consult-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
  }
  .consult-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
  }
  .consult-card .tag {
    align-self: flex-start;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--ink);
    border: 1px solid var(--line-strong);
    margin-bottom: 10px;
  }
  .consult-card h4 { font-family: "Noto Sans TC", sans-serif; font-weight: 500; font-size: 16.5px; margin-bottom: 6px; }
  .consult-card p { font-size: 12.5px; color: var(--ink-soft); flex: 1; margin-bottom: 16px; }
  .plan-card .tag.order-tag { background: var(--seal-soft); color: var(--seal-ink); }

  .faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
  .faq-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 2px 18px; }
  .faq-item summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-item summary::after { content: "+"; font-size: 18px; color: var(--ink-faint); font-weight: 400; flex: none; }
  .faq-item[open] summary::after { content: "\2212"; }
  .faq-item p { font-size: 13px; color: var(--ink-soft); padding-bottom: 16px; margin: 0; line-height: 1.75; }

  .academy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
  .academy-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 9px; padding: 16px 16px 15px; }
  .academy-card .academy-num { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink-faint); }
  .academy-card h5 { font-size: 14px; margin: 7px 0 6px; font-weight: 700; }
  .academy-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

  .gauth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border-radius: 7px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 10px;
  }
  .gauth-btn:hover { background: var(--paper-sunk); }
  .or-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 11.5px; color: var(--ink-faint); }
  .or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }


/* ===== multi-page site nav additions ===== */
.nav-ghost-btn.current {
  background: var(--paper-sunk);
  font-weight: 700;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px 40px;
  margin-top: 20px;
}
.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.site-footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer-links a { color: var(--ink-soft); text-decoration: none; }
.site-footer-links a:hover { text-decoration: underline; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
  padding: 40px 24px;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  background:
    radial-gradient(600px 440px at 12% 0%, rgba(214,198,168,.15), transparent 62%),
    radial-gradient(640px 460px at 88% 18%, rgba(150,178,210,.14), transparent 62%),
    radial-gradient(520px 400px at 50% 120%, rgba(232,234,240,.05), transparent 65%);
  animation: blobDrift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
.page-hero svg { display: none; }
.page-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page-hero-lines {
  position: absolute;
  top: 0;
  width: 52%;
  height: 100%;
  opacity: 0.55;
  display: none;
}
.page-hero-lines-l { left: 0; transform: scaleX(-1); }
.page-hero-lines-r { right: 0; }
.page-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.page-hero-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: 0.18em; color: rgba(255,255,255,0.72); margin-bottom: 10px; text-transform: uppercase; }
.page-hero h1 { font-family: "Noto Sans TC", sans-serif; font-weight: 300; font-size: clamp(22px, 3.4vw, 30px); color: #fff; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 70px rgba(190,206,232,.28); }
.page-hero p { font-size: 13.5px; color: rgba(255,255,255,0.7); max-width: 56ch; margin: 0 auto; }

.about-section { margin: 16px 0 40px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.about-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px; }
.about-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.7; }
.about-note { font-size: 12px; color: var(--ink-faint); background: var(--paper-sunk); border-radius: 8px; padding: 10px 14px; margin-top: 20px; }

@media (max-width: 720px) {
  /* 2026-10-03 手機版導覽列優化：桌機的橫長藥丸（border-radius:100px）在手機換行會被撐成
     橢圓泡泡且跟內容重疊。改成：Logo 置中一排、選單在下方細線分隔處換行排整齊、圓角改小
     成卡片。這段是全站共用的 .topbar，一次修好所有內頁（關於我們／服務介紹／常見問題…）。 */
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 18px;
    padding: 12px 14px;
    width: calc(100% - 24px);
    margin-top: 12px;
    top: 10px;
  }
  .topbar .brand { justify-content: center; }
  .topbar-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 2px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 2px;
  }
  .nav-ghost-btn { font-size: 12.5px; padding: 6px 10px; }
  /* 手機沒有 hover，服務介紹的大下拉面板用不到，直接關掉（點「服務介紹」會進該頁） */
  .nav-dropdown-panel { display: none !important; }
}


/* ===== services mega-dropdown nav ===== */
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropdown-panel {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 36px -14px var(--shadow), 0 0 0 1px rgba(232,234,240,0.04);
  min-width: 220px;
  padding: 16px 8px 8px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown-panel a:hover { background: var(--paper-sunk); color: var(--ink); }
.nav-dropdown-panel .panel-divider { height: 1px; background: var(--line); margin: 6px 4px; }

/* ===== service catalog (services.html) ===== */
.service-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}
.service-toc a {
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  text-decoration: none;
}
.service-toc a:hover { background: var(--paper-sunk); color: var(--ink); }

.service-block {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  scroll-margin-top: 20px;
}
.service-block:first-of-type { border-top: none; }
.service-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.service-block-num { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--ink-faint); }
.service-block h3 { font-size: 19px; }
.service-block .new-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.service-block p.lead { color: var(--ink-soft); font-size: 13.5px; max-width: 62ch; margin: 8px 0 14px; }
.service-block ul.deliverables { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; }
.service-block ul.deliverables li { font-size: 13px; color: var(--ink-soft); display: flex; gap: 7px; align-items: flex-start; }
.service-block ul.deliverables li::before { content: "✓"; color: var(--ink); font-weight: 700; flex: none; }
.service-block .fit-note { font-size: 12.5px; color: var(--ink-faint); background: var(--paper-sunk); border-radius: 8px; padding: 8px 12px; display: inline-block; }

/* ===== LINE floating button ===== */
.line-float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  padding: 9px 22px 9px 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.24);
  box-shadow: 0 12px 26px -6px rgba(6,199,85,.55), 0 2px 8px rgba(0,0,0,.35);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.line-float-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -6px rgba(6,199,85,.72), 0 4px 12px rgba(0,0,0,.4); }
.line-float-btn::before { content: ""; position: absolute; inset: 0; border-radius: 999px; animation: linePulse 2.4s ease-out infinite; }
@keyframes linePulse { 0% { box-shadow: 0 0 0 0 rgba(6,199,85,.5); } 70% { box-shadow: 0 0 0 16px rgba(6,199,85,0); } 100% { box-shadow: 0 0 0 0 rgba(6,199,85,0); } }
@media (prefers-reduced-motion: reduce) { .line-float-btn::before { animation: none; } }
.line-float-btn svg { flex: none; }
.line-badge { width: 32px; height: 32px; border-radius: 9px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* 2026-09 使用者確認：工讀生登入後不需要看到這顆浮動按鈕（是給訪客／商家用的行銷連結） */
body.worker-mode .line-float-btn { display: none; }
@media (max-width: 640px) {
  .line-float-btn span { display: none; }
  .line-float-btn { padding: 12px; }
}

/* ---- service hub grid (services.html overview) ---- */
.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}
.service-hub-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  background: var(--paper-raised);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
  position: relative;
}
.service-hub-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.service-hub-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--paper-sunk);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.service-hub-card .icon-wrap svg { width: 22px; height: 22px; }
.service-hub-card h4 { font-family: "Noto Sans TC", sans-serif; font-weight: 500; font-size: 16.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.service-hub-card p { font-size: 12.5px; color: var(--ink-soft); margin: 0; flex: 1; }
.service-hub-card .more-link { font-size: 12px; color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.service-hub-card .new-tag { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* ---- individual service page ---- */
.service-page-lead { font-size: 14px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 22px; }
.service-page-section { margin: 30px 0; }
.service-page-section h2 { font-size: 19px; margin-bottom: 10px; }
.service-consult-box {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 22px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--paper-sunk);
}
.service-consult-box .txt strong { display: block; font-size: 15px; margin-bottom: 4px; }
.service-consult-box .txt span { font-size: 12.5px; color: var(--ink-soft); }
.service-nav-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 40px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.service-nav-pager a {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  max-width: 46%;
}
.service-nav-pager a:hover { color: var(--ink); }
.service-nav-pager a .dir { display: block; font-size: 10.5px; color: var(--ink-faint); margin-bottom: 3px; letter-spacing: .04em; }
.service-nav-pager a.next { text-align: right; margin-left: auto; }
.service-back-link { font-size: 12.5px; color: var(--ink-soft); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 18px; }
.service-back-link:hover { color: var(--ink); }

/* ---- unified frosted-glass depth, matching index.html's .glass system ---- */
.about-card, .service-hub-card, .academy-card, .consult-card, .plan-card,
.panel, .stat, .counter-card, .ticket, .trend-box, .modal, .login-card,
.faq-item, .nav-dropdown-panel, .wallet-hero, .service-consult-box,
.bank-info, .biz-info-copy-block {
  background:
    linear-gradient(180deg, rgba(232,234,240,.07), rgba(232,234,240,.018)),
    var(--paper-raised);
  border-color: var(--line) !important;
  border-radius: 16px;
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 30px 60px -35px rgba(0,0,0,.9);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.about-card:hover, .service-hub-card:hover, .academy-card:hover, .consult-card:hover,
.faq-item:hover, .ticket:hover, .trend-box:hover {
  border-color: var(--line-strong) !important;
}
.nav-dropdown-panel { border-radius: 14px; }
.nav-dropdown-panel a:hover { background: rgba(232,234,240,.07); }

/* ---- notice / disclaimer block (amber warning accent) ---- */
.notice-block {
  border: 1px dashed rgba(224,168,63,0.4);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 22px 0;
  background: var(--warn-soft);
}
.notice-block .notice-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--warn); }
.notice-block .notice-head svg { flex: none; width: 18px; height: 18px; }
.notice-block p { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 6px; line-height: 1.7; }
.notice-block p:last-child { margin-bottom: 0; }

/* ---- 訂單管理／建立訂單表單：改用 grid 排列，避免不同寬度欄位用 flex-wrap 擠成一團 ---- */
.order-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px 18px;
  align-items: end;
  margin-bottom: 18px;
}
.order-form-grid .field { margin-bottom: 0; }
.order-form-grid .field-wide { grid-column: span 2; }
.order-form-checks {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; margin-bottom: 16px;
}
.order-form-checks label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--ink-soft);
}
.order-form-actions { display: flex; justify-content: flex-end; }
.modal.modal-wide { max-width: 640px; }
.modal-wide .order-form-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* 2026-09-30 服務名稱小標籤：任務大廳、方案卡、待審核任務左上角顯示這筆屬於哪個服務 */
.svc-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  padding: 1px 7px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--ink-soft);
  margin: 0 6px 4px 0;
  vertical-align: middle;
  white-space: nowrap;
}
.svc-tag.manual { border-color: var(--gold); color: var(--gold-ink, var(--gold)); background: var(--gold-soft); }
.svc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.catalog-plan-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.catalog-plan-row.off { opacity: 0.55; }
@media (max-width: 720px) { .catalog-plan-row { grid-template-columns: 1fr 1fr; } }

/* 2026-09-30 訂單管理：方案／進度欄的進度條（灰底＝還沒被認領的名額） */
.opb { display: flex; width: 100%; max-width: 180px; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line-strong); margin: 3px 0 1px; }
.opb-seg { display: block; height: 100%; }
.opb-seg.done { background: #3ecf8e; }
.opb-seg.reviewing { background: var(--gold, #e0a83f); }
.opb-seg.progress { background: #5b9cf5; }
.opb-seg.repair { background: #e5484d; }
.opb-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 3px; vertical-align: 1px; }
.opb-dot.reviewing { background: var(--gold, #e0a83f); }
.opb-dot.progress { background: #5b9cf5; }
.opb-dot.open { background: var(--line-strong); }
.opb-dot.repair { background: #e5484d; }

/* 2026-09-30 重新整理時的「登入中…」遮罩：本來就登入著就先蓋住，避免閃一下登入頁 */
#bootOverlay { display: none; position: fixed; inset: 0; z-index: 9999; background: var(--paper, #0b0b0d);
  flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
html.booting #bootOverlay { display: flex; }
html.booting #lobbyWrap, html.booting .app-shell { display: none !important; }
.boot-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line-strong, #333);
  border-top-color: var(--accent, #e8eaf0); animation: bootspin 0.8s linear infinite; }
.boot-text { color: var(--ink-soft, #aaa); font-size: 14px; letter-spacing: 0.05em; }
@keyframes bootspin { to { transform: rotate(360deg); } }

/* ============================================================
   2026-10-01 手機版全面優化：全站共用的手機基礎。放在檔案最後，確保覆蓋前面的桌機規則。
   目標：寬表格在手機上不再爆版（改成一列一張卡片）、點擊區加大、彈窗近全寬、
   輸入框 16px 避免 iOS 聚焦時自動放大、內容左右留白縮小。
   ============================================================ */
@media (max-width: 760px) {
  .main-content { padding: 16px 12px 56px; }
  .view-title { font-size: 21px; }
  .view-sub { font-size: 13px; margin-bottom: 18px; }
  .panel { border-radius: 12px; }
  .panel-head { padding: 14px 16px; }
  .panel-head h3 { font-size: 15px; }

  /* 點擊區加大，手指比較好按 */
  .ghost-btn, .primary-btn, .claim-btn { padding: 9px 14px; font-size: 13px; }
  .ghost-btn { min-height: 38px; }

  /* 輸入框／下拉：16px 避免 iOS 聚焦自動放大畫面；寬度吃滿欄位 */
  input[type="text"], input[type="number"], input[type="password"],
  input[type="email"], input[type="tel"], select, textarea { font-size: 16px; }
  .field input, .field select, .field textarea { width: 100%; }

  /* 彈窗：改成貼齊底部的近全寬「底部表單」，手機單手好操作、可捲動 */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal, .modal.modal-wide { max-width: 100%; width: 100%; border-radius: 16px 16px 0 0; padding: 20px 16px 24px; max-height: 92vh; }

  /* 頂部搜尋列：窄螢幕讓搜尋框吃滿、帳號資訊收小 */
  .app-topbar { gap: 8px; padding: 10px 12px; }
  .app-search { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 640px) {
  /* ── 表格 → 卡片：每一列變成一張卡片，表頭隱藏，欄位改「標籤｜值」左右排 ── */
  .table-wrap { overflow-x: visible; }
  .table-wrap table { display: block; min-width: 0; width: 100%; max-width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: auto; max-width: 100%; }
  .table-wrap tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 4px 2px 6px;
    background: var(--paper-raised);
  }
  .table-wrap tr:last-child td { border-bottom: none; }
  .table-wrap td {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    text-align: right;
    line-height: 1.5;
  }
  .table-wrap td:last-child { border-bottom: none; }
  .table-wrap td > * { min-width: 0; }
  .table-wrap td { overflow-wrap: anywhere; }
  /* 欄位標籤：有加 data-label 的欄位會在左邊顯示欄名，像「狀態：xxx」 */
  .table-wrap td::before {
    content: attr(data-label);
    font-size: 11.5px;
    color: var(--ink-faint);
    font-weight: 500;
    text-align: left;
    flex: none;
    white-space: nowrap;
  }
  /* 第一欄當卡片標題：整行、左對齊、較大、底下一條分隔線 */
  .table-wrap td:first-child {
    justify-content: flex-start;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    padding-top: 11px;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap td:first-child::before { content: none; }
  .table-wrap td:first-child .cell-stack { align-items: flex-start; }

  /* 2026-10：名字欄（第一欄）在手機卡片模式下，大頭貼＋名字一行、歸屬小字獨立一行，
     整體左對齊直向堆疊，避免被壓成同一橫行而把名字擠到逐字斷行。 */
  .table-wrap td.name-cell:first-child { flex-direction: column; align-items: flex-start; gap: 3px; }
  .table-wrap td.name-cell .name-cell-inner { max-width: 100%; }
  .table-wrap td.name-cell .avatar { flex: 0 0 auto; }

  /* 操作欄（通常是最後一欄的按鈕群）：左對齊、允許換行、按鈕不被壓扁 */
  .table-wrap td:last-child { justify-content: flex-start; text-align: left; flex-wrap: wrap; }
  .table-wrap td.cell-actions, .table-wrap td:last-child > div { flex-wrap: wrap; justify-content: flex-start; }
  .table-wrap td:last-child::before { color: var(--ink-faint); }

  /* 取消桌機版「最後一欄固定貼右」在手機上的黏著與陰影 */
  .table-wrap table th:last-child, .table-wrap table td:last-child {
    position: static; box-shadow: none; background: none;
  }

  /* 跨欄的列（分組標題、空狀態「目前沒有…」）維持整行、置中，不要被卡片化 */
  .table-wrap td[colspan] {
    display: block; text-align: center; justify-content: center;
    border-bottom: none; padding: 16px 12px;
  }
  .table-wrap td[colspan]::before { content: none; }
  /* 分組標題列（有背景色的）本身就是一整張標題卡 */
  .table-wrap tr:has(> td[colspan]) { background: var(--paper-sunk); padding: 0; }
}

/* ── 2026-10 待審核任務頁面 UI 改善（可折疊說明、連結換行、操作鍵）── */
.panel-note { margin: 0 18px 12px; }
.panel-note > summary {
  cursor: pointer; color: var(--ink-faint); font-size: 12.5px;
  list-style: none; padding: 7px 0; user-select: none;
}
.panel-note > summary::-webkit-details-marker { display: none; }
.panel-note > summary::before { content: "ℹ️ "; }
.panel-note[open] > summary { color: var(--ink-soft); font-weight: 600; }
.panel-note > div { color: var(--ink-faint); font-size: 12px; line-height: 1.65; padding: 2px 0 6px; }

.url-cell { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-cell { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

@media (max-width: 640px) {
  /* 手機卡片模式：連結完整換行、操作鍵放大好點 */
  .url-cell { max-width: 100%; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .action-cell { justify-content: flex-end; }
  .action-cell .ghost-btn, .action-cell .primary-btn { flex: 1; min-width: 100px; padding: 9px 12px; }
}
