/* ai-anywhere.net：暖色紙底、石板字、陶土色點綴，和 App 同一套顏色。 */
:root {
  --paper: #ffffff;
  --paper-2: #f1f2f8;
  --card: #ffffff;
  --band: #f7f7fc;           /* 交替區塊的底色：帶一點紫的淺灰 */
  --ink: #0b1020;
  --ink-2: #454b63;
  --ink-3: #626a85;
  --line: #e3e5f0;
  --navy: #0b1020;           /* 深色區塊 */
  --brand: #6366f1;          /* 靛紫 */
  --brand-ink: #4f46e5;      /* 白底上的連結與按鈕 */
  --brand-deep: #4338ca;
  --brand-soft: #eef0ff;
  --mint: #10b981;
  --clay: #6366f1;           /* 舊名稱，指向新主色 */
  --clay-ink: #4f46e5;
  --night: #1b1a17;          /* 產品畫面維持 App 的顏色 */
  --night-2: #24221f;
  --night-ink: #e8e4d9;
  --night-ink-2: #a8a297;
  --busy: #d97757;
  --waiting: #3b6fd6;
  --idle: #0f9f6e;
  --radius: 18px;
  --serif: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* 頁首是黏在上方的：跳到 #錨點 時留出它的高度，標題才不會被蓋住 */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--clay-ink); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
code, kbd { font-family: var(--mono); font-size: 0.88em; background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 5px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--waiting); outline-offset: 2px; border-radius: 4px; }
.nb { white-space: nowrap; }
/* 深色底上焦點框用淺靛色才看得清楚；選取文字用主色的淡色，兩種模式都一致 */
@media screen and (prefers-color-scheme: dark) { :focus-visible { outline-color: #a5b4fc; } }
::selection { background: rgba(99, 102, 241, 0.28); }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--clay-ink); margin-bottom: 12px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; }

/* ── 頁首 ── */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; }
.account-chip { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.account-chip img { width: 28px; height: 28px; border-radius: 14px; }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--card); border-radius: 8px; height: 40px; padding: 0 12px; font: inherit; }

/* ── 按鈕 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #1f2540; color: #fff; }
.btn-clay { background: var(--clay-ink); color: #fff; }
.btn-clay:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-danger { background: transparent; color: #9b2c1d; border-color: #e3b8ae; }
.btn-danger:hover { background: #fbeae6; color: #7c2114; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ── 首頁主視覺 ── */
.hero { padding: 72px 0 40px; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 680px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero .fine { font-size: 14px; color: var(--ink-3); }

/* App 畫面示意：用 HTML 畫，不是截圖 */
.mock { margin-top: 48px; border-radius: 14px; overflow: hidden; background: #2a2926; box-shadow: 0 30px 80px rgba(31, 30, 27, 0.28), 0 0 0 1px rgba(31, 30, 27, 0.08); color: var(--night-ink); font-size: 13px; }
.mock-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--night-2); }
.mock-bar i { width: 12px; height: 12px; border-radius: 6px; display: block; }
.mock-bar .title { flex: 1; text-align: center; color: var(--night-ink-2); font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 250px; min-height: 380px; }
.mock-pane { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-pane + .mock-term { border-left: 1px solid #3a3834; }
.mock-band { background: #3a3834; border-radius: 6px; padding: 5px 9px; font-size: 12px; font-weight: 700; margin-top: 6px; }
.mock-person { display: flex; align-items: center; gap: 9px; padding: 6px 7px; border-radius: 6px; }
.mock-person.on { background: #403d38; }
.mock-person .dot { width: 9px; height: 9px; border-radius: 5px; flex-shrink: 0; }
.mock-person small { display: block; color: #bcb6aa; font-size: 11px; line-height: 1.3; }
.mock-term { background: var(--night); display: flex; flex-direction: column; }
.mock-tabs { display: flex; background: var(--night-2); font-size: 12px; }
.mock-tabs span { padding: 7px 18px; color: var(--night-ink-2); }
.mock-tabs span.sel { background: var(--night); color: var(--night-ink); font-weight: 700; }
.mock-screen { padding: 14px 16px; font: 12px/1.75 var(--mono); color: var(--night-ink); white-space: pre-wrap; }
.mock-screen .you { color: #f0c6b4; }
.mock-screen .dim { color: #8a8579; }
.mock-desk { border-left: 1px solid #3a3834; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-seg { display: flex; background: #3a3834; border-radius: 8px; padding: 2px; font-size: 12px; }
.mock-seg span { flex: 1; text-align: center; padding: 5px; border-radius: 6px; }
.mock-seg span.sel { background: #4f46e5; color: #fff; font-weight: 700; }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 11px; }
.mock-tiles div { border-radius: 7px; padding: 6px 2px; }
.mock-tiles b { display: block; font-size: 16px; }
.mock-card { background: #33312d; border-radius: 8px; padding: 9px 10px; font-size: 12px; }
.mock-card small { color: var(--night-ink-2); display: block; }

/* ── 區塊 ── */
section { padding: 72px 0; }
section.alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--night); color: var(--night-ink); }
section.dark .muted { color: var(--night-ink-2); }
section.dark a { color: #f0b08f; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
section.alt .card { background: var(--card); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 52px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 18px; }

.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.flow .node { background: #2a2926; border: 1px solid #3a3834; border-radius: var(--radius); padding: 20px; }
.flow .node.hot { border-color: var(--clay); }
.flow .node small { display: block; color: var(--night-ink-2); font-size: 13px; }
.flow .arrow { color: var(--night-ink-2); font-size: 13px; text-align: center; }

.cta { text-align: center; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ── 功能頁與說明頁 ── */
.page-head { padding: 56px 0 24px; }
.page-head .lead { font-size: 19px; color: var(--ink-2); max-width: 700px; }
.feature { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.feature h2 { font-size: 26px; }
.feature ul { margin: 0; padding-left: 1.2em; }
.feature li { margin-bottom: 8px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); margin-right: 6px; }
.tag.soon { background: #e8eefb; color: #274b8f; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.doc h2 { font-size: 28px; margin-top: 48px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 28px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.note { background: #fffaeb; border: 1px solid #fedf89; border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; background: var(--card); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--paper-2); font-weight: 700; }
pre { background: var(--night); color: var(--night-ink); padding: 14px 16px; border-radius: 10px; overflow-x: auto; font: 14px/1.6 var(--mono); }
pre code { background: none; padding: 0; color: inherit; }

/* ── 下載與帳號 ── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 36px; }
.panel-center { text-align: center; }
.signin-slot { display: flex; justify-content: center; min-height: 48px; margin: 22px 0 8px; }
.release { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.release dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 12px 0 0; font-size: 15px; }
.release dt { color: var(--ink-3); }
.release dd { margin: 0; }
.release + .release { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile { display: flex; align-items: center; gap: 16px; }
.profile img { width: 56px; height: 56px; border-radius: 28px; }
.status { font-size: 15px; margin-top: 12px; }
.status.error { color: #9b2c1d; }
[hidden] { display: none !important; }

/* ── 頁尾 ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.site-footer a { color: var(--ink-2); text-decoration: none; }

/* ── 窄螢幕 ── */
@media (max-width: 900px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-pane, .mock-desk { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); }
  .feature, .doc { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a, .nav .account-chip { padding: 10px 0; width: 100%; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  section { padding: 52px 0; }
  .hero { padding-top: 44px; }
}

/* ── 第 1 輪：首頁的新段落 ── */
.assurances { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.assurances li { display: flex; align-items: center; gap: 8px; }
.assurances li::before { content: ""; width: 16px; height: 16px; border-radius: 8px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; flex-shrink: 0; }
.mock-figure { margin: 48px 0 0; }
.mock-figure .mock { margin-top: 0; }
.mock-pane, .mock-term, .mock-desk { position: relative; }
.callout { position: absolute; top: 8px; right: 8px; z-index: 1; width: 24px; height: 24px; border-radius: 12px; background: var(--clay); color: #fff; font: 700 13px/24px var(--sans); text-align: center; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.35); }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.legend span { display: flex; gap: 10px; align-items: flex-start; }
.legend b { flex-shrink: 0; width: 22px; height: 22px; border-radius: 11px; background: var(--clay); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 2px; }
.pain h3 { font-size: 19px; }
.bridge { margin: 32px 0 0; font-size: 19px; font-weight: 600; text-align: center; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more { margin: 24px 0 0; font-weight: 600; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; font-size: 17px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d0d5dd; }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
@media (max-width: 900px) {
  .legend, .steps-3 { grid-template-columns: 1fr; }
  .callout { display: none; }
}

/* ── 第 3 輪：功能頁 ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.chips a:hover { border-color: var(--ink-3); color: var(--ink); }
/* 第二排以後的籌碼（類別、來源）：比第一排小一點，整排空的時候不要留空白 */
.chips-sub { margin: 0 0 8px; }
.chips-sub a { padding: 4px 11px; font-size: 13px; }
.chips-sub:empty { display: none; }
.num { display: block; font-size: 14px; font-weight: 700; color: var(--clay-ink); margin-bottom: 8px; letter-spacing: 0.04em; }
.gain { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 9px; background: #e3f8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.checks.soon li::before { background: #eef2fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='4' fill='none' stroke='%233b6fd6' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat; }
.compare td:first-child { font-weight: 600; white-space: nowrap; width: 9em; }
.tech { margin: 24px 0 64px; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; background: var(--band); }
.tech summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--ink-2); }
.tech ul { padding-left: 1.2em; margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.tech li { margin-bottom: 8px; }
@media (max-width: 640px) { .compare td:first-child { white-space: normal; width: auto; } }

/* ── 第 4 輪：使用說明依角色 ── */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.role { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.role:hover { border-color: var(--ink-3); color: var(--ink); }
.role b { font-size: 19px; }
.role span:last-child { color: var(--ink-2); font-size: 15px; }
.role-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.role-tag.it { background: #e6f7f1; color: #047857; }
.part { display: flex; align-items: center; gap: 12px; margin: 8px 0 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--band); border: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.part + h2 { margin-top: 28px; }
.doc .part:not(:first-child) { margin-top: 64px; }
.toc-head { display: block; font-size: 12px; color: var(--ink-3); margin: 14px 0 2px; letter-spacing: 0.04em; }
.toc-head:first-child { margin-top: 0; }
/* 目錄標出現在讀到的那一節：左邊一條主色線 */
.toc a { position: relative; padding-left: 12px; margin-left: -12px; border-left: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.toc a[aria-current] { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 600; }
/* 窄螢幕：目錄變成黏在頁首下面、左右滑的一排小膠囊；分組標題收起來 */
@media (max-width: 900px) {
  .toc { position: sticky; top: 56px; z-index: 4; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
  .toc::-webkit-scrollbar { display: none; }
  .toc-head { display: none; }
  .toc a { flex: none; white-space: nowrap; margin: 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px; }
  .toc a[aria-current] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
  html:has(.toc) { scroll-padding-top: 120px; }
}
@media screen and (prefers-color-scheme: dark) and (max-width: 900px) { .toc a[aria-current] { background: var(--brand); border-color: var(--brand); } }
.tip { background: #eef7f1; border: 1px solid #c6e3cf; border-radius: 10px; padding: 14px 16px; margin: 16px 0; font-size: 15px; }
.table th[scope="row"] { width: 11em; background: var(--band); }
@media (max-width: 640px) { .roles { grid-template-columns: 1fr; } .table th[scope="row"] { width: auto; } }

/* ── 第 5 輪：一天怎麼用 ── */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 40px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 8px; background: var(--card); border: 3px solid var(--brand); box-sizing: border-box; }
.timeline time { display: block; font-size: 14px; font-weight: 700; color: var(--clay-ink); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 18px; }
.timeline p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline li { padding: 0 0 24px 36px; }
  .timeline li::before { top: 2px; }
}
section.alt .timeline li::before { background: var(--band); }
section:not(.alt) .card { background: var(--card); }

/* ── 第 6 輪：開始使用 ── */
.mini-steps { list-style: none; counter-reset: ms; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 24px 0 0; }
.mini-steps li { counter-increment: ms; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px 16px 58px; position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); font-size: 15px; }
.mini-steps li::before { content: counter(ms); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.mini-steps b { color: var(--ink); font-size: 17px; }
.start { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.start .panel h2 { margin-bottom: 8px; }
.start .signin-slot { justify-content: flex-start; }
.prep { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--band); }
.prep .checks li { font-size: 15px; color: var(--ink-2); }
.prep .checks b { color: var(--ink); }
@media (max-width: 900px) { .start, .mini-steps { grid-template-columns: 1fr; } }

/* ── 第 7 輪：比較表 ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.table.vs { margin: 0; border-radius: 0; font-size: 16px; }
.table.vs th, .table.vs td { padding: 14px 18px; }
.table.vs thead th { background: var(--band); font-size: 15px; }
.table.vs th[scope="row"] { width: 8em; background: var(--card); color: var(--ink-2); font-weight: 600; }
.table.vs td { color: var(--ink-3); }
.table.vs .us { background: #f6f6ff; color: var(--ink); font-weight: 600; }
.table.vs thead .us { background: #e9e9ff; color: var(--brand-ink); }
.table.vs tr:last-child th, .table.vs tr:last-child td { border-bottom: 0; }

/* ── 第 8 輪：法律頁的重點摘要 ── */
.summary { border: 1px solid var(--line); border-radius: var(--radius); background: var(--band); padding: 22px 24px 12px; margin-bottom: 36px; }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.summary .checks li { color: var(--ink-2); }
.narrow > h2 { font-size: 24px; margin-top: 36px; }

/* ── 第 12 輪：深色主視覺 ── */
.hero-dark { position: relative; overflow: hidden; background: #0b1020; color: #fff; padding: 88px 0 72px; isolation: isolate; }
.hero-dark::before, .hero-dark::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: 0.55; pointer-events: none; }
.hero-dark::before { width: 620px; height: 620px; left: -160px; top: -220px; background: #6366f1; }
.hero-dark::after { width: 520px; height: 520px; right: -140px; top: 120px; background: #10b981; opacity: 0.28; }
.hero-dark h1 { color: #fff; }
.hero-dark .eyebrow { color: #a5b4fc; }
.hero-dark .lead { color: #c7cbe0; }
.hero-dark .assurances { color: #c7cbe0; }
.hero-dark .legend { color: #aab0c9; }
.hero-dark .legend b { background: var(--brand); }
.hero-dark .mock { box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.grad { background: linear-gradient(92deg, #a5b4fc 0%, #818cf8 40%, #34d399 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-glow { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45); }
.btn-glow:hover { color: #fff; filter: brightness(1.08); }
.btn-glass { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ── 第 13 輪：首頁導覽列、卡片、步驟 ── */
.page-index .site-header { background: rgba(11, 16, 32, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08); }
.page-index .brand, .page-index .account-chip { color: #fff; }
.page-index .nav a { color: #c7cbe0; }
.page-index .nav a:hover { color: #fff; }
.page-index .menu-toggle { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
@media (max-width: 640px) { .page-index .nav { background: #0b1020; border-bottom-color: rgba(255, 255, 255, 0.08); } }
.card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 16, 32, 0.08); border-color: #d4d7ec; }
.pain { position: relative; overflow: hidden; }
.pain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #f43f5e, #f59e0b); }
.icon-rose { background: #fff1f3; color: #e11d48; }
.icon-amber { background: #fff7e6; color: #d97706; }
.icon-sky { background: #ecf6ff; color: #0284c7; }
.steps li::before { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35); }
.bridge { color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }

/* ── 第 14 輪：管控與適合誰 ── */
section.trust { background: linear-gradient(180deg, #eef0ff 0%, #f7f7fc 100%); }
section.trust .card { border-color: #dfe1f7; }
.tag-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag-indigo { background: var(--brand-soft); color: var(--brand-ink); }
.tag-mint { background: #e3f8f0; color: #047857; }
.tag-amber { background: #fff4e0; color: #b45309; }

/* ── 第 15 輪：比較表、常見問題、結尾 ── */
.table.vs thead .us { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.table.vs td.us { position: relative; padding-left: 44px; }
.table.vs td.us::before { content: ""; position: absolute; left: 16px; top: 50%; margin-top: -9px; width: 18px; height: 18px; border-radius: 9px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.table.vs td:not(.us) { color: #8a90a8; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 2px 20px; }
.faq details[open] { border-color: #c9ccf5; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08); }
.faq summary::after { color: var(--brand-ink); }
.cta-band.glow { position: relative; overflow: hidden; isolation: isolate; background: #0b1020; }
.cta-band.glow::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -60%; width: 900px; height: 520px; margin-left: -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.55), transparent); }

/* ── 第 16 輪：功能頁 ── */
.page-head { position: relative; }
.page-features .page-head, .page-guide .page-head, .page-download .page-head { background: linear-gradient(180deg, #eef0ff 0%, rgba(238, 240, 255, 0) 100%); padding-bottom: 36px; margin-bottom: 8px; }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 10px; border-radius: 999px; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 13px; letter-spacing: 0.02em; margin-bottom: 12px; }
.gain { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 4px 12px; border-radius: 8px; line-height: 1.6; }
.chips a { transition: all 0.15s ease; }
.chips a:hover { background: var(--brand-soft); border-color: #c9ccf5; color: var(--brand-ink); }
.compare thead th { background: var(--ink); color: #fff; }
.compare td:first-child { color: var(--ink); background: #fafaff; }
#soon > div:last-child { background: #f5f8ff; border: 1px solid #dde6fb; border-radius: var(--radius); padding: 22px 24px 12px; }
.feature { border-top-color: #eceef6; }

/* ── 第 17 輪：其他頁的新配色 ── */
.role { position: relative; overflow: hidden; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.role::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.role:nth-child(2)::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.role:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(11, 16, 32, 0.08); }
.part { background: linear-gradient(90deg, #eef0ff, #f7f7fc); border-color: #dfe1f7; }
.mini-steps li::before { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.prep, .summary { background: linear-gradient(180deg, #f3f4ff, #fafaff); border-color: #dfe1f7; }
.panel { border-color: #e3e5f0; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.page-download .panel h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 10px; vertical-align: middle; background: linear-gradient(135deg, #6366f1, #10b981); }
.tip { background: #ecfdf5; border-color: #b7ecd6; }
.toc a:hover { color: var(--brand-ink); }
.site-footer { background: #fafaff; }

/* ── 第 19 輪：對比度（白字底色至少 4.5:1） ── */
.btn-glow, .steps li::before, .mini-steps li::before, .num, .table.vs thead .us { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.btn-glow { box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45); }
.hero-dark .legend b, .callout { background: #4f46e5; }
.table.vs td:not(.us) { color: #6b7190; }
@media (max-width: 900px) {
  .mock-body { min-height: 0; }
  .mock-term { display: none; }
  .mock-desk { display: flex; border-left: 0; padding: 16px; }
  .mock-desk .callout { display: none; }
}
@media (max-width: 900px) { .hero-dark .legend { display: none; } }

/* ── 第 21 輪：導覽列的行動按鈕 ── */
.nav .nav-cta { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35); }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { color: #fff; filter: brightness(1.08); }
.page-index .nav .nav-cta { color: #fff; }
@media (max-width: 640px) { .nav .nav-cta { margin-top: 8px; width: auto !important; padding: 0 18px !important; } }

/* ── 第 22 輪：企業導入頁 ── */
.page-business .page-head { background: linear-gradient(180deg, #eef0ff 0%, rgba(238, 240, 255, 0) 100%); padding-bottom: 36px; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: ph; }
.phase { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--card); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.phase::after { content: ""; position: absolute; top: 44px; right: -21px; width: 22px; height: 2px; background: #c9ccf5; }
.phase:last-child::after { display: none; }
.phase-no { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.phase:nth-child(2) .phase-no { background: linear-gradient(135deg, #7c3aed, #0d9488); }
.phase:nth-child(3) .phase-no { background: linear-gradient(135deg, #0d9488, #047857); }
.phase h3 { font-size: 24px; margin: 14px 0 2px; }
.phase-time { color: var(--ink-3); font-size: 14px; margin-bottom: 16px; }
.phase .checks li { font-size: 15px; color: var(--ink-2); }
.phase-goal { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.roles-table { margin: 0; border-radius: 0; }
.roles-table thead th { background: var(--ink); color: #fff; }
.roles-table th[scope="row"] { width: 15em; background: #fafaff; }
.need { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-right: 8px; }
.need-0 { background: #e3f8f0; color: #047857; }
.need-1 { background: #fff4e0; color: #b45309; }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
/* 左邊的標題跟著右邊的長清單一起捲：捲到清單中段時，左邊不會只剩一片空白 */
@media (min-width: 901px) { .two-col > :first-child { position: sticky; top: 96px; } }
.checklist { list-style: none; counter-reset: cl; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { counter-increment: cl; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink-2); }
.checklist li::before { content: counter(cl); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.checklist b { color: var(--ink); }
@media (max-width: 900px) { .phases, .two-col { grid-template-columns: 1fr; } .phase::after { display: none; } .roles-table th[scope="row"] { width: auto; } }
/* 列印：一律淺色（深色模式的變數只在 screen 生效），拿掉導覽、CTA、浮動按鈕；連結保留文字就好 */
@media print {
  .site-header, .site-footer, .cta-band, .sticky-cta, .to-top, .skip, .menu-toggle, .assess, .float-note { display: none !important; }
  body { background: #fff; color: #0b1020; }
  .page-head, section, .alt { background: none !important; }
  a { color: inherit; text-decoration: underline; }
  .card, .panel, .phase, .fnode, .tldr { break-inside: avoid; box-shadow: none; }
  h2, h3 { break-after: avoid; }
}

/* ── 第 23 輪：資安說明 ── */
.page-security .page-head { background: linear-gradient(180deg, #e8f7f2 0%, rgba(232, 247, 242, 0) 100%); padding-bottom: 36px; }
.flows { display: flex; flex-direction: column; gap: 14px; }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
.fnode { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--card); display: flex; flex-direction: column; gap: 2px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.fnode small { color: var(--ink-3); font-size: 13px; }
.fnode-you { border-color: #c9ccf5; background: #f6f6ff; }
.flink { position: relative; height: 2px; margin: 0 12px; background: linear-gradient(90deg, #a5b4fc, #7c3aed); }
.flink::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left-color: #7c3aed; border-right: 0; }
.flink span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; color: var(--ink-2); background: var(--paper); padding: 0 8px; }
.flink-lock { background: linear-gradient(90deg, #34d399, #0d9488); }
.flink-lock::after { border-left-color: #0d9488; }
.flink-lock span { color: #047857; font-weight: 600; }
.store-table { margin: 0; border-radius: 0; }
.store-table thead th { background: var(--ink); color: #fff; }
.store-table th[scope="row"] { background: #fafaff; width: 22em; }
.yn { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-right: 8px; }
.yn.no { background: #e3f8f0; color: #047857; }
.yn.yes { background: #fff4e0; color: #b45309; }
@media (max-width: 900px) {
  .flow-row { grid-template-columns: 1fr; gap: 26px; }
  .flink { height: 26px; width: 2px; margin: 0 auto; }
  .flink::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top-color: #7c3aed; border-bottom: 0; }
  .flink-lock::after { border-top-color: #0d9488; }
  .flink span { left: 16px; bottom: 4px; transform: none; }
  .store-table th[scope="row"] { width: auto; }
}

/* ── 第 24 輪：深色模式（跟系統設定） ── */
@media screen and (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1020; --paper-2: #161c30; --card: #121830; --band: #0f1528;
    --ink: #eef0fa; --ink-2: #b8bdd4; --ink-3: #969cb8; --line: #252c46;
    --brand-ink: #a5b4fc; --brand-deep: #c7d2fe; --brand-soft: #1e2350;
  }
  body { background: var(--paper); }
  .site-header { background: rgba(11, 16, 32, 0.88); border-bottom-color: var(--line); }
  .brand, .account-chip { color: var(--ink); }
  .menu-toggle { background: var(--card); color: var(--ink); border-color: var(--line); }
  @media (max-width: 640px) { .nav { background: var(--paper); } }
  .card, .panel, .role, .phase, .fnode, .checklist li, .mini-steps li, .faq details, .table-wrap, .chips a { background: var(--card); border-color: var(--line); box-shadow: none; }
  .card:hover, .role:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); border-color: #343c60; }
  .table { background: var(--card); }
  .table th { background: #161c30; }
  .table th, .table td { border-bottom-color: var(--line); }
  .table.vs th[scope="row"], .roles-table th[scope="row"], .store-table th[scope="row"], .compare td:first-child, .table th[scope="row"] { background: #10162b; color: var(--ink-2); }
  .table.vs .us { background: #171d3d; color: var(--ink); }
  .table.vs td:not(.us) { color: #8a90ab; }
  .fnode-you { background: #171d3d; border-color: #343c78; }
  .flink span { background: var(--paper); }
  section.trust { background: linear-gradient(180deg, #141a3a 0%, var(--band) 100%); }
  section.trust .card { border-color: #2c3462; }
  .page-features .page-head, .page-guide .page-head, .page-download .page-head, .page-business .page-head { background: linear-gradient(180deg, #151b3d 0%, rgba(21, 27, 61, 0) 100%); }
  .page-security .page-head { background: linear-gradient(180deg, #0f2a26 0%, rgba(15, 42, 38, 0) 100%); }
  .part { background: linear-gradient(90deg, #171d3d, var(--band)); border-color: #2c3462; }
  .prep, .summary { background: linear-gradient(180deg, #151b3d, #10162b); border-color: #2c3462; }
  #soon > div:last-child { background: #111a33; border-color: #25325a; }
  .tip { background: #0f2a22; border-color: #1f5543; }
  .note { background: #2a2210; border-color: #5a4a1c; }
  code, kbd { background: #1a2140; color: #dfe3f7; }
  .site-footer { background: #090d1a; }
  .icon-rose { background: #3a1522; color: #fb7185; }
  .icon-amber { background: #3a2a10; color: #fbbf24; }
  .icon-sky { background: #0f2a3d; color: #38bdf8; }
  .tag-mint, .yn.no, .need-0, .role-tag.it { background: #0f2a22; color: #6ee7b7; }
  .tag-amber, .yn.yes, .need-1 { background: #3a2a10; color: #fbbf24; }
  .checks li::before { filter: saturate(1.2) brightness(0.9); }
  .btn-ghost { color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { background: var(--card); }
  /* 深色底上主要按鈕用主色（和頁首「開始使用」同一個顏色），不用整塊白 */
  .btn-primary { background: #4f46e5; color: #fff; }
  .btn-primary:hover { background: #5b54f0; color: #fff; }
  .timeline li::before { background: var(--paper); }
  section.alt .timeline li::before { background: var(--band); }
  .status.error { color: #fca5a5; }
}
@media screen and (prefers-color-scheme: dark) {
  .store-table thead th, .roles-table thead th, .compare thead th { background: #1e2448; color: #fff; }
}
@media screen and (prefers-color-scheme: dark) { :root { --clay-ink: #a5b4fc; --clay: #818cf8; } }

/* ── 第 25 輪：動態效果（減少動態時全部關掉） ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.55); } 50% { box-shadow: 0 0 0 5px rgba(217, 119, 87, 0); } }
@keyframes pulse-blue { 0%, 100% { box-shadow: 0 0 0 0 rgba(59, 111, 214, 0.6); } 50% { box-shadow: 0 0 0 5px rgba(59, 111, 214, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.mock-person.on .dot { animation: pulse 2s ease-in-out infinite; }
.mock-person .dot[style*="3b6fd6"] { animation: pulse-blue 2s ease-in-out infinite; }
.mock-screen .cursor { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #f0c6b4; animation: blink 1.1s steps(1) infinite; }
.hero-dark .mock { animation: float 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock-person .dot, .mock-screen .cursor, .hero-dark .mock { animation: none; }
}

/* ── 第 26 輪：重點數字 ── */
.stats-strip { background: #0b1020; border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 28px 0 36px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats div { display: flex; align-items: baseline; gap: 12px; padding: 4px 0; }
.stats b { font-size: 44px; line-height: 1; font-weight: 800; background: linear-gradient(135deg, #a5b4fc, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { color: #c7cbe0; font-size: 15px; line-height: 1.5; text-wrap: balance; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ── 第 27 輪：步驟的迷你示意圖 ── */
.steps-3 li { padding-top: 0; }
.steps-3 li::before { position: static; display: grid; margin-bottom: 14px; }
.mini { height: 150px; box-sizing: border-box; margin-bottom: 18px; padding: 14px; border-radius: 14px; background: linear-gradient(160deg, #f3f4ff, #ffffff); border: 1px solid #e3e5f7; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--ink-2); overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border-radius: 8px; background: #fff; border: 1px solid #eceef8; }
.mini-row i { width: 8px; height: 8px; border-radius: 4px; background: #10b981; flex-shrink: 0; }
.mini-row i.d2 { background: #6366f1; }
.mini-row i.d3 { background: #f59e0b; }
.mini-row em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); padding: 0 7px; border-radius: 999px; }
.mini-head { background: transparent; border: 0; padding: 0 2px; font-weight: 700; color: var(--ink); }
.mini-input { padding: 9px 11px; border-radius: 9px; background: #fff; border: 1.5px solid #a5b4fc; color: var(--ink); }
.mini-split { background: transparent; border: 0; padding: 0; justify-content: space-between; }
.mini-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3e5f7; }
.mini-btn { font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.mini-wait { background: #fffaeb; border-color: #fde68a; color: #92400e; }
.mini-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; font-size: 12px; }
.mini-tiles span { padding: 8px 2px; border-radius: 10px; }
.mini-tiles b { display: block; font-size: 22px; line-height: 1.2; }
.mini-tiles .t1 { background: #fff1ec; color: #c2410c; }
.mini-tiles .t2 { background: #eef2ff; color: #3b5bd6; }
.mini-tiles .t3 { background: #e9f8f1; color: #047857; }
.mini-need { border-color: #a5b4fc; color: var(--brand-ink); font-weight: 700; }
@media screen and (prefers-color-scheme: dark) {
  .mini { background: linear-gradient(160deg, #151b3d, #10162b); border-color: #2c3462; }
  .mini-row, .mini-input, .mini-chip { background: #121830; border-color: #2c3462; color: var(--ink-2); }
  .mini-head, .mini-split { background: transparent; }
  .mini-input { color: var(--ink); border-color: #4f46e5; }
  .mini-wait { background: #2a2210; border-color: #5a4a1c; color: #fbbf24; }
  .mini-tiles .t1 { background: #3a2016; color: #fdba74; }
  .mini-tiles .t2 { background: #1a2350; color: #a5b4fc; }
  .mini-tiles .t3 { background: #0f2a22; color: #6ee7b7; }
}
.mini { height: auto; min-height: 164px; }

/* ── 第 28 輪：功能一覽（bento） ── */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 180px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11, 16, 32, 0.1); color: var(--ink-2); }
.tile b { font-size: 19px; color: var(--ink); line-height: 1.35; }
.tile span:last-child { font-size: 15px; }
.tile-k { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-ink); }
.tile-lg { grid-column: span 2; min-height: 200px; justify-content: flex-end; }
.tile-lg b { font-size: 24px; }
.tile-indigo { background: linear-gradient(140deg, #4f46e5, #7c3aed); border: 0; color: #e0e3ff; }
.tile-indigo b, .tile-indigo:hover { color: #fff; }
.tile-indigo .tile-k { color: #c7d2fe; }
.tile-dark { background: radial-gradient(120% 140% at 100% 0%, rgba(16, 185, 129, 0.35), transparent 55%), #0b1020; border: 0; color: #c7cbe0; }
.tile-dark b, .tile-dark:hover { color: #fff; }
.tile-dark .tile-k { color: #6ee7b7; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .tile-lg { grid-column: auto; } }
@media screen and (prefers-color-scheme: dark) { .tile:not(.tile-indigo):not(.tile-dark) { background: var(--card); } .tile-dark { border: 1px solid var(--line); } }

/* ── 第 29 輪：頁尾 ── */
.site-footer { background: #0b1020; color: #aab0c9; border-top: 0; padding: 56px 0 28px; }
.footer-grid { display: grid !important; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 14px 0 18px; max-width: 360px; color: #aab0c9; font-size: 15px; }
.site-footer nav { display: flex !important; flex-direction: column; gap: 10px; margin: 0 !important; }
.site-footer nav b { color: #fff; font-size: 14px; margin-bottom: 4px; }
.site-footer a { color: #aab0c9; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-glow { color: #fff; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: #7c83a3; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media screen and (prefers-color-scheme: dark) { .site-footer { background: #070a15; } }

/* ── 第 30 輪：404 ── */
.lost-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 28px; }
.lost-links a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.lost-links a:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.lost-links b { color: var(--ink); }
.lost-links span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 560px) { .lost-links { grid-template-columns: 1fr; } }

/* ── 第 31 輪：文案 ── */
.hero .lead { max-width: 720px; }
@media (max-width: 900px) { .br-wide { display: none; } }

/* ── 第 32 輪：功能頁圖示 ── */
.ficon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.28); }
.ficon svg { width: 24px; height: 24px; }
.ficon-mint { background: linear-gradient(135deg, #059669, #0d9488); box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28); }
.ficon-sky { background: linear-gradient(135deg, #0284c7, #4f46e5); box-shadow: 0 8px 20px rgba(2, 132, 199, 0.28); }
.feature .num { margin-left: 10px; vertical-align: 2px; }
.feature > div:first-child { position: sticky; top: 92px; align-self: start; }
@media (max-width: 900px) { .feature > div:first-child { position: static; } }
.feature .ficon { display: inline-grid; vertical-align: middle; margin: 0 0 14px; }
.feature .num { margin: 0 0 14px 12px; vertical-align: middle; }
@media screen and (prefers-color-scheme: dark) { .feature { border-top-color: var(--line); } }

/* ── 第 33 輪：認識畫面 ── */
.screen-map { display: grid; grid-template-columns: 1fr 1.6fr 1.1fr; gap: 0; margin: 16px 0 12px; border-radius: 14px; overflow: hidden; border: 1px solid #2c2a26; background: #2a2926; color: #e8e4d9; font-size: 13px; }
.sm-col { display: flex; flex-direction: column; gap: 6px; padding: 16px; min-height: 170px; }
.sm-col b { font-size: 14px; color: #fff; }
.sm-col span { color: #a8a297; font-size: 12px; margin-bottom: 4px; }
.sm-left i { display: block; height: 22px; border-radius: 6px; background: #403d38; }
.sm-left i.off { opacity: 0.45; }
.sm-mid { background: #1b1a17; border-left: 1px solid #3a3834; border-right: 1px solid #3a3834; }
.sm-mid code { background: transparent; color: #e8e4d9; font-size: 12px; line-height: 1.8; padding: 0; }
.sm-right em { font-style: normal; margin-top: 4px; padding: 8px 10px; border-radius: 8px; border: 1px solid #3b6fd6; color: #9dbaf2; font-weight: 700; }
.sm-notes { list-style: none; padding: 0; margin: 0 0 8px; }
.sm-notes li { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); }
.sm-notes b { color: var(--ink); }
@media (max-width: 640px) { .screen-map { grid-template-columns: 1fr; } .sm-mid { border: 0; border-top: 1px solid #3a3834; border-bottom: 1px solid #3a3834; } .sm-col { min-height: 0; } }

/* ── 第 34 輪：開始使用頁的評估資源 ── */
.side-stack { display: flex; flex-direction: column; gap: 16px; }
.assess { border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; background: var(--card); display: flex; flex-direction: column; gap: 8px; }
.assess h2 { margin-bottom: 4px; }
.assess a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease; }
.assess a:hover { background: var(--brand-soft); border-color: #c9ccf5; }
.assess b { color: var(--ink); font-size: 15px; }
.assess span { color: var(--ink-3); font-size: 13px; }
/* 看得出是連結：右邊一個箭頭，滑過去往右推一點；列與列之間細線分開 */
.assess { gap: 0; }
.assess a { position: relative; padding-right: 36px; }
.assess a + a { border-top-color: var(--line); border-radius: 0; }
.assess a:hover { border-radius: 10px; }
.assess a:hover + a { border-top-color: transparent; }
.assess a::after { content: "→"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); transition: transform 0.15s ease, color 0.15s ease; }
.assess a:hover::after { color: var(--brand-ink); transform: translate(3px, -50%); }
@media screen and (prefers-color-scheme: dark) { .assess a:hover { border-color: #343c78; } }

/* ── 第 35 輪：字體與間距 ── */
body { line-height: 1.8; }
h1, h2, h3 { line-height: 1.3; }
p, li { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
@media (min-width: 1100px) { section { padding: 96px 0; } .section-head { margin-bottom: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; letter-spacing: 0.04em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: linear-gradient(135deg, #6366f1, #10b981); }
.hero-dark .eyebrow, .stats-strip .eyebrow { background: rgba(255, 255, 255, 0.08); color: #c7d2fe; border: 1px solid rgba(255, 255, 255, 0.12); }
.cta-band .eyebrow { background: rgba(255, 255, 255, 0.08); color: #c7d2fe; }
.page-head .lead, .section-head p { max-width: 40em; }

/* ── 第 36 輪：CTA 區的安心標章 ── */
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 28px 0 0; padding: 0; }
.trust-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; color: #e0e7ff; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.trust-chips li::before { content: ""; width: 12px; height: 12px; flex: none; background: #34d399; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── 第 37 輪：首頁的企業導入預告 ── */
section.rollout { background: radial-gradient(900px 400px at 85% 0%, #e0e3ff 0%, transparent 70%), #f7f7fc; border-top: 1px solid #e6e8f5; border-bottom: 1px solid #e6e8f5; }
.rollout-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.rollout-inner .btn { margin-top: 12px; }
.rollout-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.rollout-steps::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(#6366f1, #10b981); opacity: 0.35; }
.rollout-steps li { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 20px 16px 14px; background: #fff; border: 1px solid #e3e5f5; border-radius: 16px; box-shadow: 0 6px 20px -12px rgba(79, 70, 229, 0.35); }
.rollout-steps span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.rollout-steps li:last-child span { background: linear-gradient(135deg, #047857, #0d9488); }
.rollout-steps b { display: block; font-size: 17px; }
.rollout-steps small { color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .rollout-inner { grid-template-columns: 1fr; gap: 28px; } }
@media screen and (prefers-color-scheme: dark) {
  section.rollout { background: radial-gradient(900px 400px at 85% 0%, #1f2552 0%, transparent 70%), var(--band); border-color: #232a52; }
  .rollout-steps li { background: #141a36; border-color: #2a3160; box-shadow: none; }
}

/* ── 第 38 輪：手機選單 ── */
@media (max-width: 640px) {
  .menu-toggle { gap: 8px; }
  .menu-toggle::before { content: ""; width: 16px; height: 12px; background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
  .menu-toggle[aria-expanded="true"]::before { background: linear-gradient(45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%); height: 14px; width: 14px; }
  .nav.open { height: calc(100dvh - 64px); padding: 12px 20px 32px; overflow-y: auto; animation: nav-in 0.18s ease-out; }
  .nav a, .nav .account-chip { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .page-index .nav a, .page-index .nav .account-chip { border-bottom-color: rgba(255, 255, 255, 0.08); }
  .nav .nav-cta { order: 99; margin-top: auto; width: 100% !important; height: 52px; justify-content: center; font-size: 17px; border-bottom: 0; }
  .nav [data-account] { width: 100%; }
  .nav .account-chip { display: flex; }
  body.menu-open { overflow: hidden; }
  /* 手機選單：每列右邊一個箭頭；現在這一頁用主色、左邊一條色帶標出來 */
  .nav > a:not(.nav-cta) { display: flex; align-items: center; justify-content: space-between; }
  .nav > a:not(.nav-cta)::after, .nav [data-account] > a::after { content: "›"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--ink-3); }
  .nav > a[aria-current="page"] { color: var(--brand-ink); padding-left: 14px; box-shadow: inset 3px 0 0 var(--brand); }
  .page-index .nav > a[aria-current="page"] { color: #c7d2fe; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nav.open { animation: none; } }

/* ── 第 42 輪：一件工作的流程 ── */
.flow-strip { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: fs; }
.flow-strip li { position: relative; padding: 20px 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(79, 70, 229, 0.35); }
.flow-strip li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 34px; width: 10px; height: 10px; border-top: 2px solid #a5b4fc; border-right: 2px solid #a5b4fc; transform: rotate(45deg); }
.flow-strip b { display: block; font-size: 20px; margin: 12px 0 6px; }
.flow-strip small { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.fs-who { display: inline-grid; place-items: center; min-width: 36px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #065f46; background: #d1fae5; }
.fs-who.fs-ai { color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.how-sub { font-size: 18px; color: var(--ink-3); font-weight: 600; margin: 0 0 20px; }
@media (max-width: 860px) {
  .flow-strip { grid-template-columns: 1fr 1fr; }
  .flow-strip li::after { display: none; }
}
@media (max-width: 520px) { .flow-strip { grid-template-columns: 1fr; } }
@media screen and (prefers-color-scheme: dark) {
  .flow-strip li { box-shadow: none; }
  .fs-who { color: #a7f3d0; background: rgba(16, 185, 129, 0.16); }
}

/* ── 第 43 輪：每個部門可以交代的事 ── */
.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept { --c: #6366f1; position: relative; padding: 22px 22px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.dept::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.dept h3 { margin: 0 0 10px; font-size: 19px; }
.dept ul { list-style: none; margin: 0; padding: 0; }
.dept li { position: relative; padding: 7px 0 7px 22px; border-top: 1px dashed var(--line); color: var(--ink-2); font-size: 15px; }
.dept li:first-child { border-top: 0; }
.dept li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.dept-mint { --c: #10b981; } .dept-amber { --c: #f59e0b; } .dept-sky { --c: #0ea5e9; } .dept-rose { --c: #f43f5e; } .dept-violet { --c: #8b5cf6; }
@media (max-width: 860px) { .depts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .depts { grid-template-columns: 1fr; } }

/* ── 第 44 輪：適合誰的心聲 ── */
.fit { display: flex; flex-direction: column; }
.fit .fit-q { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 15px; }
.fit .tag-pill { align-self: flex-start; }

/* ── 第 46 輪：功能一句話看懂 ── */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 40px; }
.glance a { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.glance a:hover { border-color: #a5b4fc; transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(79, 70, 229, 0.5); }
.glance .gl-no { grid-row: span 2; font-size: 13px; font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.glance b { font-size: 17px; }
.glance small { color: var(--ink-3); font-size: 14px; }
.glance a { align-items: start; align-content: start; row-gap: 4px; }
.glance .gl-no { line-height: 1.6; padding-top: 2px; }
.glance b { line-height: 1.4; }
.glance small { line-height: 1.5; }
/* 十項：寬的時候 5×2 剛好排滿，不留一張落單；窄的時候兩欄 */
@media (min-width: 1000px) { .glance { grid-template-columns: repeat(5, minmax(0, 1fr)); } .glance a { padding: 16px; } }
@media (max-width: 999px) { .glance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .glance { gap: 8px; } .glance a { padding: 12px 14px; } .glance b { font-size: 16px; } .glance small { font-size: 13px; } }
@media screen and (prefers-color-scheme: dark) { .glance .gl-no { color: #a5b4fc; } }

/* ── 第 47 輪：開始只要三樣東西 ── */
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow { margin-inline: auto; }
.need3-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: n3; }
.need3-list li { position: relative; text-align: center; padding: 28px 24px 26px; border-radius: 20px; background: linear-gradient(180deg, var(--brand-soft), transparent 70%); border: 1px solid var(--line); }
.need3-list li::before { counter-increment: n3; content: counter(n3); position: absolute; top: 14px; left: 16px; font-size: 13px; font-weight: 700; color: var(--brand-ink); }
.need3-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.6); margin-bottom: 14px; }
.need3-ic svg { width: 28px; height: 28px; }
.need3-list b { display: block; font-size: 19px; margin-bottom: 6px; }
.need3-list small { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .need3-list { grid-template-columns: 1fr; } }
@media screen and (prefers-color-scheme: dark) {
  .need3-list li { background: linear-gradient(180deg, #161c3e, transparent 70%); }
  .need3-list li::before { color: #a5b4fc; }
}

/* ── 第 48 輪：手機底部的行動按鈕 ── */
.sticky-cta { display: none; }
@media (max-width: 640px) {
  .sticky-cta:not([hidden]) { display: flex; position: fixed; z-index: 4; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(11, 16, 32, 0.92); backdrop-filter: blur(10px); color: #e0e7ff; font-size: 14px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(11, 16, 32, 0.6); animation: sticky-in 0.2s ease-out; }
  .sticky-cta .btn { flex: none; height: 42px; padding: 0 16px; font-size: 15px; }
  body.menu-open .sticky-cta { display: none; }
}
@keyframes sticky-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { animation: none !important; } }

/* ── 第 49 輪：痛點配上解法 ── */
.card.pain { display: flex; flex-direction: column; }
.card.pain .fix { margin: auto 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); font-size: 15px; color: var(--ink); font-weight: 600; }
.card.pain .fix b { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; font-size: 12px; color: #065f46; background: #d1fae5; vertical-align: 2px; }
.card.pain > .muted { margin-bottom: 16px; }
@media screen and (prefers-color-scheme: dark) { .card.pain .fix b { color: #a7f3d0; background: rgba(16, 185, 129, 0.16); } }

/* ── 第 50 輪：使用說明的小辭典 ── */
.glossary { margin: 0 0 40px; padding: 22px 24px; border-radius: 18px; background: var(--band); border: 1px solid var(--line); }
.glossary h2 { font-size: 18px; margin: 0 0 12px; }
.glossary dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.glossary dl > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.glossary dt { font-weight: 700; color: var(--brand-ink); }
.glossary dd { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .glossary dl { grid-template-columns: 1fr; } }
@media screen and (prefers-color-scheme: dark) { .glossary dt { color: #a5b4fc; } }

/* ── 第 51 輪：首頁畫面裡的對話逐行出現 ── */
.mock-screen .ln { animation: ln-in 0.35s ease-out both; }
.mock-screen .ln:nth-child(1) { animation-delay: 0.3s; }
.mock-screen .ln:nth-child(2) { animation-delay: 1.3s; }
.mock-screen .ln:nth-child(3) { animation-delay: 1.8s; }
.mock-screen .ln:nth-child(4) { animation-delay: 2.3s; }
.mock-screen .ln:nth-child(5) { animation-delay: 2.8s; }
.mock-screen .ln:nth-child(6) { animation-delay: 3.5s; }
.mock-screen .ln:nth-child(7) { animation-delay: 4.2s; }
@keyframes ln-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.still .mock-screen .ln { animation: none; }
@media (prefers-reduced-motion: reduce) { .mock-screen .ln { animation: none; } }

/* ── 第 52 輪：判斷值不值得的四個問題 ── */
.judge .card { position: relative; padding-left: 76px; }
.judge-no { position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.judge .card h3 { margin-top: 4px; }

/* ── 第 54 輪：資安頁給老闆的三句話 ── */
.tldr { margin-top: 24px; max-width: 760px; padding: 20px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--mint); box-shadow: 0 12px 30px -20px rgba(16, 185, 129, 0.6); }
.tldr > b { display: block; font-size: 14px; letter-spacing: 0.04em; color: #047857; margin-bottom: 8px; }
.tldr ol { margin: 0; padding-left: 1.4em; }
.tldr li { padding: 4px 0; font-size: 17px; }
.tldr strong { color: var(--ink); background: linear-gradient(transparent 62%, rgba(16, 185, 129, 0.22) 62%); }
@media screen and (prefers-color-scheme: dark) { .tldr > b { color: #6ee7b7; } }

/* ── 第 55 輪：開始使用頁的第一天 ── */
.get-list { margin: 18px 0 8px; }
.get-list li { padding: 4px 0 4px 30px; }
.day-one { margin-top: 20px; padding: 24px 28px; border-radius: var(--radius); border: 1px dashed #c7cbef; }
.day-one h2 { font-size: 18px; margin: 0 0 14px; }
.day-one ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; counter-reset: d1; }
.day-one li { position: relative; padding-left: 40px; }
.day-one li::before { counter-increment: d1; content: counter(d1); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--brand-ink); background: var(--brand-soft); }
.day-one b { display: block; }
.day-one span { color: var(--ink-3); font-size: 14px; }
@media (max-width: 640px) { .day-one ol { grid-template-columns: 1fr; } }
@media screen and (prefers-color-scheme: dark) { .day-one { border-color: #2f3668; } .day-one li::before { color: #c7d2fe; background: #1e2448; } }

/* ── 第 57 輪：手機上的首頁更緊湊 ── */
@media (max-width: 520px) {
  .flow-strip { gap: 10px; margin-bottom: 40px; }
  .flow-strip li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; padding: 14px 16px; }
  .flow-strip .fs-who { grid-row: span 2; margin-top: 2px; }
  .flow-strip b { margin: 0 0 2px; font-size: 17px; }

  .depts { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; scrollbar-width: none; }
  .depts::-webkit-scrollbar { display: none; }
  .dept { flex: 0 0 78%; scroll-snap-align: start; }

  .bento .tile { min-height: 0 !important; padding: 18px 20px; }

  .need3-list { gap: 10px; }
  .need3-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; text-align: left; padding: 16px 18px; }
  .need3-list li::before { display: none; }
  .need3-ic { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .need3-ic svg { width: 24px; height: 24px; }
  .need3-list b { margin: 2px 0 2px; font-size: 17px; }
}

/* ── 第 58 輪：深色模式修正 ── */
@media screen and (prefers-color-scheme: dark) {
  .btn-clay { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
  .btn-clay:hover { background: linear-gradient(135deg, #4338ca, #6d28d9); color: #fff; }
}

/* ── 第 61 輪：頁首 ── */
.site-header { transition: box-shadow 0.2s ease, background-color 0.2s ease; }
.site-header .wrap { transition: height 0.2s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -16px rgba(11, 16, 32, 0.45); }
.site-header.scrolled .wrap { height: 56px; }
@media (min-width: 641px) {
  .nav > a:not(.nav-cta) { position: relative; padding: 6px 2px; }
  .nav > a:not(.nav-cta)::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #6366f1, #10b981); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
  .nav > a:not(.nav-cta):hover::after, .nav > a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
}
.brand img { transition: transform 0.25s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header .wrap, .brand img, .nav a::after { transition: none !important; } }

/* ── 第 62 輪：按鈕 ── */
.btn { border-radius: 999px; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, filter 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-clay, .btn-glow { box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.7); }
.btn-clay:hover, .btn-glow:hover { box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 0.8); }
a.btn-glow::after, a.btn-clay:not([data-download])::after { content: "→"; display: inline-block; transition: transform 0.15s ease; }
a.btn-glow:hover::after, a.btn-clay:not([data-download]):hover::after { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn::after { transition: none !important; } .btn:hover { transform: none; } }

/* ── 第 63 輪：首頁畫面旁的浮動通知 ── */
.mock-figure { position: relative; }
.float-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.96); color: #0b1020; font-size: 13px; line-height: 1.4; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.55); animation: float-bob 5s ease-in-out infinite; }
.float-note b { display: block; font-size: 14px; }
.float-note i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-style: normal; font-weight: 800; color: #fff; }
.fn-done { top: -22px; right: 48px; }
.fn-done i { background: linear-gradient(135deg, #059669, #10b981); }
.fn-wait { bottom: 96px; left: 36%; animation-delay: -2.5s; }
.fn-wait i { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
@keyframes float-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.still .float-note { animation: none; }
@media (prefers-reduced-motion: reduce) { .float-note { animation: none; } }

@media (max-width: 860px) { .float-note { display: none; } }

/* ── 第 64 輪：卡片的一致手感 ── */
.card, .dept, .phase, .flow-strip li, .need3-list li, .rollout-steps li, .judge .card { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card:hover, .dept:hover, .phase:hover, .flow-strip li:hover, .need3-list li:hover, .rollout-steps li:hover { transform: translateY(-3px); border-color: #c7cbf5; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08), 0 16px 34px -18px rgba(79, 70, 229, 0.45); }
@media screen and (prefers-color-scheme: dark) {
  .card:hover, .dept:hover, .phase:hover, .flow-strip li:hover, .need3-list li:hover, .rollout-steps li:hover { border-color: #3b4380; box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1), 0 16px 34px -18px rgba(0, 0, 0, 0.8); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .card:hover, .dept:hover, .phase:hover, .flow-strip li:hover, .need3-list li:hover, .rollout-steps li:hover { transform: none; }
}

/* ── 第 65 輪：常見問題 ── */
.faq details { position: relative; transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.faq details::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(#6366f1, #10b981); opacity: 0; transition: opacity 0.18s ease; }
.faq details[open]::before { opacity: 1; }
.faq summary { padding-right: 48px; transition: color 0.15s ease; }
.faq summary:hover { color: var(--brand-ink); }
.faq summary::after, .faq details[open] summary::after { content: "+"; top: 50%; right: 0; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; line-height: 1; background: var(--brand-soft); color: var(--brand-ink); transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--brand-ink); color: #fff; }
.faq details[open] > p { animation: faq-in 0.25s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media screen and (prefers-color-scheme: dark) {
  .faq summary::after { background: #1e2448; color: #c7d2fe; }
  .faq details[open] summary::after { background: #6366f1; color: #fff; }
  .faq details[open] { border-color: #3b4380; box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.8); }
  .faq summary:hover { color: #c7d2fe; }
}
@media (prefers-reduced-motion: reduce) { .faq details[open] > p { animation: none; } .faq summary::after { transition: none; } }

/* ── 第 66 輪：頁尾 ── */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, #6366f1 25%, #10b981 75%, transparent); opacity: 0.8; }
.site-footer::after { content: ""; position: absolute; width: 640px; height: 320px; left: -160px; top: -200px; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent); pointer-events: none; }
.site-footer .wrap { position: relative; z-index: 1; }
.site-footer nav a { transition: color 0.15s ease, transform 0.15s ease; display: block; width: fit-content; }
.site-footer nav a:hover { transform: translateX(3px); }
.site-footer .footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.to-top { color: inherit; text-decoration: none; opacity: 0.8; }
.to-top:hover { opacity: 1; color: #fff; }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── 第 67 輪：功能頁右側改成卡片 ── */
.feature > div:last-child:not(:first-child) { padding: 26px 28px 20px; border-radius: var(--radius); background: linear-gradient(180deg, var(--brand-soft), var(--card) 120px); border: 1px solid var(--line); }
.feature > div:last-child:not(:first-child) > p:first-child { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 0; }
.feature .checks li { padding-top: 10px; padding-bottom: 10px; border-top: 1px dashed var(--line); }
.feature .checks li:first-child { border-top: 0; }
.feature { border-top: 0; padding: 28px 0; }
@media screen and (prefers-color-scheme: dark) {
  .feature > div:last-child:not(:first-child) { background: linear-gradient(180deg, #161c3e, var(--card) 120px); }
}
.feature .checks li { margin-bottom: 0; }
.feature .checks li::before { top: 16px; }
.get-list li::before { top: 9px; }

/* ── 第 68 輪：資料流向圖 ── */
.flows { display: grid; gap: 14px; }
.fnode { border-radius: var(--radius); }
.flink span { top: 50%; bottom: auto; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: 999px; border: 1px solid #d9dcf7; background: var(--card); box-shadow: 0 6px 16px -10px rgba(79, 70, 229, 0.5); z-index: 1; }
.flink-lock span { border-color: #a7f3d0; padding-left: 30px; }
.flink-lock span::before { content: ""; position: absolute; left: 11px; top: 50%; width: 13px; height: 13px; margin-top: -7px; background: #059669; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.flink::before { content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; box-shadow: 0 0 10px 2px rgba(124, 58, 237, 0.6); animation: packet 2.6s linear infinite; }
.flink-lock::before { background: #10b981; box-shadow: 0 0 10px 2px rgba(16, 185, 129, 0.6); animation-delay: -1.3s; }
@keyframes packet { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.still .flink::before { animation: none; left: 30%; }
@media (prefers-reduced-motion: reduce) { .flink::before { animation: none; left: 30%; } }
@media (max-width: 900px) {
  /* 直式箭頭（900px 以下都是）：標籤靠在箭頭右邊，不能再用置中的位移，不然會被切到左邊 */
  .flink span { top: 50%; left: 18px; transform: translateY(-50%); }
  .flink::before { display: none; }
}
@media screen and (prefers-color-scheme: dark) { .flink span { border-color: #343c78; } .flink-lock span { border-color: #1f5e4c; color: #6ee7b7; } .flink-lock span::before { background: #34d399; } }
@media (max-width: 900px) {
  .flows { gap: 16px; }
  .flow-row { gap: 14px; padding: 14px; border-radius: 22px; background: var(--band); border: 1px solid var(--line); }
  .flink { height: 30px; margin: 0 0 0 28px; }
}

/* ── 第 69 輪：導入三階段 ── */
.phase { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.phase::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 33%; background: linear-gradient(90deg, #6366f1, #7c3aed); }
.phase:nth-child(2)::before { width: 66%; background: linear-gradient(90deg, #6366f1, #0ea5e9); }
.phase:nth-child(3)::before { width: 100%; background: linear-gradient(90deg, #6366f1, #10b981); }
.phase .phase-goal { margin: auto -26px -26px; padding: 14px 26px 16px; border-top: 0; background: var(--brand-soft); }
.phase:nth-child(3) .phase-goal { background: #e7f8f1; color: #047857; }
.phase .checks { margin-bottom: 18px; }
.phase-start { border-color: #c7cbf5; box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08); }
.phase-start-tag { position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed); }
@media screen and (prefers-color-scheme: dark) {
  .phase .phase-goal { background: #1a2047; }
  .phase:nth-child(3) .phase-goal { background: #10302a; color: #6ee7b7; }
  .phase-start { border-color: #3b4380; }
}
.phase .phase-no { align-self: flex-start; }
.phase::after { display: none; }

/* 核准頁：App 上顯示的代碼 */
.link-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 16px 0 20px; }
.link-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.code-input { font: 22px/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; width: 9.5em; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.code-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ── 會議頁（/meet，不套頁首頁尾）：小卡片走流程，進到會議後是滿版的聊天畫面 ── */
.bare main { min-height: 100vh; min-height: 100dvh; }
.meet { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.meet section.meet-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; }
.meet-card h1 { font-size: 26px; }
.meet-card form { display: grid; gap: 10px; margin: 20px 0 16px; text-align: left; }
.meet-card label { font-weight: 600; font-size: 14px; }
.meet-card input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.meet-end-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 8px; }
.meet-end-actions > span { display: contents; }
.meet-logo { width: 44px; height: 44px; margin: 0 auto 14px; }
.meet-spinner { width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand-ink); animation: meet-spin 0.9s linear infinite; }
@keyframes meet-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .meet-spinner { animation: none; } }

.meet:has(.meet-room:not([hidden])) { display: block; padding: 0; }
/* 全站的 section 有上下內距；會議畫面要貼滿視窗 */
.meet section.meet-room { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--meet-top, 0px); height: var(--meet-h, 100%); padding: 0; }
.meet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(12px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); border-bottom: 1px solid var(--line); background: var(--card); }
.meet-head h1 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.meet-head p { margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-head > div:first-child { min-width: 0; }
.meet-net { margin: 0; padding: 6px 20px; font-size: 14px; text-align: center; }
.meet-net[data-state="down"] { background: #fff4e5; color: #8a4b00; }
.meet-net[data-state="back"] { background: #e7f8ef; color: #0b6b44; }
.meet-net [data-meet-retry] { margin-left: 10px; border: 1px solid currentColor; background: none; color: inherit; border-radius: 6px; padding: 1px 10px; font: inherit; font-size: 13px; cursor: pointer; }
@media screen and (prefers-color-scheme: dark) {
  .meet-net[data-state="down"] { background: #3a2a10; color: #f5c27a; }
  .meet-net[data-state="back"] { background: #10301f; color: #7ee2ad; }
}
.meet-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.meet-chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.meet-scroll { flex: 1; overflow-y: auto; padding: 16px 20px; }
.meet-messages { list-style: none; margin: 0 auto; padding: 0; max-width: var(--meet-col); display: grid; gap: 14px; }
.meet-msg { padding: 10px 14px; border-radius: 12px; background: var(--paper-2); overflow-wrap: anywhere; }
.meet-ai { background: var(--brand-soft); }
.meet-msg.meet-ai { background: var(--brand-soft); }
.meet-msg.meet-host { background: var(--band); border: 1px solid var(--line); }
.meet-msg.meet-system { background: none; text-align: center; color: var(--ink-3); font-size: 14px; padding: 2px; }
.meet-who { display: flex; gap: 10px; align-items: baseline; font-size: 14px; margin-bottom: 2px; }
.meet-msg.meet-mine { background: var(--clay-ink); color: #fff; margin-left: auto; max-width: min(85%, 640px); }
.meet-msg.meet-mine .meet-who, .meet-msg.meet-mine .meet-who time { color: rgba(255, 255, 255, 0.8); justify-content: flex-end; }
.meet-messages { grid-auto-rows: auto; }
.meet-msg.meet-cont { margin-top: -10px; }
.meet-msg.meet-pending { opacity: 0.7; }
.meet-note { font-size: 12px; margin-top: 2px; opacity: 0.85; text-align: right; }
.meet-msg.meet-pending.is-lost { opacity: 1; outline: 2px dashed rgba(255, 255, 255, 0.5); outline-offset: -4px; }
.meet-note button { margin-left: 6px; border: 1px solid rgba(255, 255, 255, 0.6); background: none; color: inherit; border-radius: 6px; padding: 0 8px; font: inherit; cursor: pointer; }
.meet-say button:disabled { opacity: 0.45; cursor: not-allowed; }
.meet-msg.meet-cont > .meet-who { display: none; }
@media screen and (prefers-color-scheme: dark) { .meet-msg.meet-mine { background: #4338ca; } }
.meet-who time { color: var(--ink-3); font-size: 12px; }
.meet-text > :first-child { margin-top: 0; }
.meet-text > :last-child { margin-bottom: 0; }
.meet-text p, .meet-text ul, .meet-text ol, .meet-text pre, .meet-text blockquote { margin: 0.5em 0; }
.meet-text h3, .meet-text h4, .meet-text h5, .meet-text h6 { font-size: 16px; margin: 0.8em 0 0.3em; }
.meet-text pre { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.meet-text pre code { background: none; padding: 0; }
.meet-text blockquote { border-left: 3px solid var(--line); padding-left: 12px; color: var(--ink-2); }
.meet-table { overflow-x: auto; margin: 0.5em 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.meet-table table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.meet-table th, .meet-table td { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; text-align: left; }
.meet-table th { background: var(--paper-2); font-weight: 600; }
.meet-table td:first-child { white-space: nowrap; }
.meet-chat { position: relative; }
.meet-jump { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 2; border: 0; border-radius: 999px;
  padding: 8px 16px; font: 600 14px var(--sans); background: var(--clay-ink); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); cursor: pointer; }
.meet-typing { max-width: var(--meet-col); margin: 14px 0 0 max(0px, calc((100% - var(--meet-col)) / 2)); padding: 10px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 14px; color: var(--ink-2); width: fit-content; }
.meet-typing b { color: var(--ink); }
.meet-typing[data-state="asking"] { background: #fff4e5; color: #8a4b00; }
.meet-typing-hint { margin: 4px 0 0; font-size: 13px; }
.meet-dots { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.meet-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: meet-dot 1.2s infinite; }
.meet-dots i:nth-child(2) { animation-delay: 0.2s; }
.meet-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes meet-dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .meet-dots i { animation: none; opacity: 0.6; } }
@media screen and (prefers-color-scheme: dark) { .meet-typing[data-state="asking"] { background: #3a2a10; color: #f5c27a; } }
.meet-status { margin: 0 20px 6px; font-size: 14px; color: #9b2c1d; }
.meet-say { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); position: relative; }
.meet-say textarea { font: inherit; resize: none; min-height: 48px; max-height: 40vh; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow-y: auto; }
.meet-count { position: absolute; right: 120px; bottom: 2px; font-size: 12px; color: var(--ink-3); }
.meet-count.over { color: #9b2c1d; }
.meet-side { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; background: var(--card); }
.meet-side h2 { font-size: 14px; color: var(--ink-3); margin: 0 0 8px; }
.meet-side h2:not(:first-child) { margin-top: 20px; }
.meet-people, .meet-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.meet-people li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.meet-people li b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-person-pick { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; margin: -4px -6px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.meet-person-pick:hover { background: var(--paper-2); }
.meet-person-pick:hover b::after { content: " ＠"; color: var(--ink-3); font-weight: 400; }
.meet-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--sans); font-style: normal;
  background: var(--paper-2); color: var(--ink-2); flex-shrink: 0; }
.meet-person-ai .meet-avatar { background: var(--brand-soft); color: var(--brand-ink); }
.meet-person-host .meet-avatar { background: var(--clay-ink); color: #fff; }
.meet-people span { font-size: 12px; color: var(--ink-3); }
.meet-file { width: 100%; text-align: left; display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.meet-file:hover { border-color: var(--brand-ink); }
.meet-file b { font-size: 14px; overflow-wrap: anywhere; }
.meet-file span { font-size: 12px; color: var(--ink-3); }
.meet-file { position: relative; overflow: hidden; }
.meet-file span.error { color: #b42318; }
.meet-file-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--pct, 0%); background: var(--clay-ink); transition: width 0.2s; }
.meet-panel-toggle.has-new::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--busy); margin-left: 4px; }
@media screen and (prefers-color-scheme: dark) { .meet-file span.error { color: #f19a8a; } }
.meet-head-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.meet-bell[aria-pressed="true"] { border-color: var(--clay-ink); color: var(--clay-ink); }
.meet-bell[hidden] { display: none; }
.meet-panel-toggle, .meet-panel-close { display: none; }
/* 分享檔案：迴紋針、拖放的提示、對話裡自己這邊的上傳卡片 */
.meet-say.can-attach { grid-template-columns: auto 1fr auto; }
.meet-attach { align-self: end; width: 44px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.meet-attach:hover { color: var(--clay-ink); border-color: var(--clay-ink); }
.meet-attach[hidden] { display: none; }
.meet-drop { position: absolute; inset: 8px; z-index: 4; display: grid; place-items: center; border: 2px dashed var(--clay-ink); border-radius: 14px;
  background: color-mix(in srgb, var(--card) 88%, transparent); color: var(--clay-ink); font-weight: 600; pointer-events: none; }
.meet-drop[hidden] { display: none; }
.meet-msg.meet-upload { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; min-width: min(320px, 85%); }
.meet-upload-name { grid-column: 1; overflow-wrap: anywhere; }
.meet-upload-meta { grid-column: 1; font-size: 13px; opacity: 0.85; }
.meet-upload-act { grid-column: 2; grid-row: 1 / span 2; border: 1px solid rgba(255, 255, 255, 0.5); background: none; color: inherit; border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.meet-upload-act[hidden] { display: none; }
.meet-upload .meet-file-bar { background: rgba(255, 255, 255, 0.85); }
.meet-msg.meet-upload.is-failed { background: #fdecea; color: #8a1c10; }
.meet-msg.meet-upload.is-cancelled { opacity: 0.55; }
.meet-msg.meet-upload.is-failed .meet-upload-act { border-color: currentColor; }
@media screen and (prefers-color-scheme: dark) { .meet-msg.meet-upload.is-failed { background: #3b1712; color: #f5b3a8; } }
/* 人打的字照原樣換行；複製鈕 */
.meet-msg:not(.meet-ai) > .meet-text { white-space: pre-wrap; }
.meet-msg { position: relative; }
.meet-tools { position: absolute; top: 6px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.12s; }
.meet-msg:hover .meet-tools, .meet-msg:focus-within .meet-tools { opacity: 1; }
.meet-tools .meet-copy { position: static; opacity: 1; white-space: nowrap; }
.meet-tools { width: max-content; }
.meet-msg.meet-mine > .meet-tools { right: auto; left: 8px; }
.meet-copy { position: absolute; top: 6px; right: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 6px;
  padding: 1px 8px; font: 12px var(--sans); cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.meet-msg:hover > .meet-copy, .meet-msg:focus-within > .meet-copy, .meet-text pre:hover > .meet-copy, .meet-copy:focus-visible { opacity: 1; }
.meet-text pre { position: relative; }
.meet-msg.meet-mine .meet-tools .meet-copy { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.35); }
/* 觸控：沒有滑過，點一下訊息才出現（.show-tools） */
@media (hover: none) { .meet-text pre > .meet-copy { opacity: 0.8; } .meet-msg .meet-tools { display: none; } .meet-msg.show-tools .meet-tools { display: flex; opacity: 1; } }
.meet-quote { white-space: normal; border-left: 3px solid currentColor; padding: 2px 0 2px 10px; margin-bottom: 6px; opacity: 0.75; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.meet-quote[role="link"] { cursor: pointer; }
.meet-quote[role="link"]:hover, .meet-quote[role="link"]:focus-visible { opacity: 1; }
.meet-sep { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); }
.meet-sep::before, .meet-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.meet-sep.meet-unread { color: var(--busy); font-weight: 600; }
.meet-sep.meet-unread::before, .meet-sep.meet-unread::after { background: var(--busy); opacity: 0.6; }
.meet-msg.is-folded > .meet-text { overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.meet-unfold { display: block; margin: 6px auto 0; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 3px 14px; font: 13px var(--sans); cursor: pointer; }
.meet-msg.meet-mine .meet-unfold { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.meet-file { grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.meet-file > b, .meet-file > span { grid-column: 2; }
.meet-file-icon { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font: 700 11px var(--sans); font-style: normal; background: var(--paper-2); color: var(--ink-2); }
.meet-file-pdf { background: #fdecea; color: #b42318; }
.meet-file-md { background: var(--brand-soft); color: var(--brand-ink); }
.meet-file-image { background: #e7f8ef; color: #0b6b44; }
@media screen and (prefers-color-scheme: dark) { .meet-file-pdf { background: #3b1712; color: #f5b3a8; } .meet-file-image { background: #10301f; color: #7ee2ad; } }
.meet-file.is-new { border-color: var(--busy); }
.meet-new { font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--busy); border-radius: 4px; padding: 0 5px; vertical-align: 2px; }
.meet-note-open { border: 1px solid var(--line); background: var(--card); color: var(--clay-ink); border-radius: 6px; padding: 0 8px; font: inherit; font-size: 13px; cursor: pointer; }
.meet-mention { position: absolute; left: 20px; bottom: calc(100% + 4px); z-index: 6; list-style: none; margin: 0; padding: 4px; min-width: 200px; max-width: 320px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.meet-mention[hidden] { display: none; }
.meet-mention li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.meet-mention li span { font-size: 12px; color: var(--ink-3); }
.meet-mention li[aria-selected="true"] { background: var(--brand-soft); }
.meet-msg.meet-to-me { box-shadow: inset 3px 0 0 var(--busy); }
[data-meet-end-title]:focus { outline: none; }
.meet button:focus-visible, .meet .meet-file:focus-visible { outline: 2px solid var(--clay-ink); outline-offset: 2px; }
/* 別人說的話：頭像＋名字列＋氣泡（li 本身不上底色，底色在氣泡上）。連著說的後幾則不重複頭像與名字，對齊同一欄。 */
.meet-msg.meet-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 0; background: none; border: 0; border-radius: 0; }
.meet-msg.meet-row > .meet-avatar { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; font-size: 15px; align-self: start; }
.meet-msg.meet-row > :not(.meet-avatar):not(.meet-tools) { grid-column: 2; }
.meet-msg.meet-row.meet-cont > .meet-avatar { visibility: hidden; height: 0; }
.meet-msg.meet-row.meet-cont { margin-top: -8px; }
.meet-msg.meet-row > .meet-who { margin-bottom: 4px; align-items: center; }
.meet-msg.meet-row > .meet-text { width: fit-content; max-width: min(100% - 150px, var(--meet-bubble)); padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--paper-2); line-height: 1.65; }
.meet-msg.meet-row.meet-cont > .meet-text { border-radius: 14px; }
.meet-msg.meet-ai.meet-row > .meet-text { background: var(--brand-soft); border-left: 3px solid var(--brand-ink); }
.meet-msg.meet-host.meet-row > .meet-text { background: var(--card); border: 1px solid var(--line); }
.meet-msg.meet-row.meet-to-me { box-shadow: none; }
.meet-msg.meet-row.meet-to-me > .meet-text { box-shadow: inset 3px 0 0 var(--busy); }
.meet-msg.meet-row > .meet-unfold { justify-self: start; margin-left: 0; }
.meet-msg.meet-row > .meet-text { position: relative; }
.meet-msg.meet-row .meet-text > .meet-tools { top: auto; bottom: 2px; left: calc(100% + 6px); right: auto; }
/* 收起的長訊息會裁掉外面的東西；窄螢幕右邊沒空間：這兩種放回氣泡裡的右上角 */
.meet-msg.meet-row.is-folded .meet-text > .meet-tools { left: auto; right: 6px; }
@media (max-width: 760px) { .meet-msg.meet-row .meet-text > .meet-tools { left: auto; right: 6px; } .meet-msg.meet-row > .meet-text { max-width: 100%; } }
.meet-avatar-ai { background: var(--brand-soft); color: var(--brand-ink); }
.meet-avatar-host { background: var(--clay-ink); color: #fff; }
.meet-avatar-guest { background: var(--paper-2); color: var(--ink-2); }
.meet-role { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; line-height: 1.5; }
.meet-role-ai { background: var(--brand-soft); color: var(--brand-ink); }
.meet-role-host { background: var(--paper-2); color: var(--ink-2); }
/* 自己說的話也收窄，靠右 */
.meet-msg.meet-mine { max-width: min(80%, 640px); }
/* 系統的一行（誰加入、新檔案）小一點、靠緊一點 */
.meet-msg.meet-system { font-size: 13px; padding: 0; }
.meet-messages > .meet-system + .meet-system { margin-top: -8px; }
.meet-to { font-size: 12px; color: var(--ink-3); }
.meet-to.meet-to-you { color: #fff; background: var(--busy); border-radius: 4px; padding: 0 6px; font-weight: 600; }
.meet-msg.meet-mine .meet-to { color: rgba(255, 255, 255, 0.85); }
.meet-to-hint { position: absolute; left: 20px; top: -22px; font-size: 12px; color: var(--ink-3); background: var(--card); padding: 1px 8px; border-radius: 6px 6px 0 0; border: 1px solid var(--line); border-bottom: 0; max-width: calc(100% - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-to-hint[hidden] { display: none; }
/* 附件列（輸入框上方，按送出才傳）與訊息裡的附件方塊 */
.meet-replying { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 4px 4px 10px; border-left: 3px solid var(--brand);
  background: var(--paper-2); border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); }
.meet-replying[hidden] { display: none; }
.meet-replying-label { color: var(--brand-ink); font-weight: 600; flex: none; }
.meet-replying-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-replying button { flex: none; width: 26px; height: 26px; border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; border-radius: 6px; cursor: pointer; }
.meet-replying button:hover { background: var(--paper); color: var(--ink); }
.meet-attachments { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meet-attachments[hidden] { display: none; }
.meet-attachments li { position: relative; }
.meet-tile > .meet-attach-x { top: 2px; right: 2px; }
.meet-attach-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 14px/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0; }
.meet-tile { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 64px; min-width: 64px; max-width: 220px; padding: 0 10px 0 6px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); overflow: hidden; font: inherit; text-align: left; vertical-align: top; }
.meet-tile:has(> img) { padding: 0; width: 64px; }
.meet-tile > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-tile > b { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-tile > .meet-file-icon { grid-row: auto; flex-shrink: 0; }
button.meet-tile { cursor: pointer; }
.meet-tile-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--pct, 0%); background: var(--clay-ink); transition: width 0.2s; }
.meet-tile-state { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-size: 10px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); pointer-events: none; }
.meet-tile.is-failed { outline: 2px solid #d64545; outline-offset: -2px; opacity: 0.7; }
.meet-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.meet-msg.meet-mine .meet-strip { justify-content: flex-end; }
.meet-msg.meet-row > .meet-strip { grid-column: 2; }
.meet-msg.meet-mine .meet-tile { border-color: rgba(255, 255, 255, 0.35); }
.meet-empty { max-width: 520px; margin: 32px auto 0; padding: 20px 24px; border: 1px dashed var(--line); border-radius: 14px; color: var(--ink-2); }
.meet-empty[hidden] { display: none; }
.meet-empty b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.meet-empty ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 14px; }
.meet-find { display: flex; align-items: center; gap: 6px; padding: 6px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
.meet-find[hidden] { display: none; }
.meet-find input { flex: 1; min-width: 0; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.meet-find-n { font-size: 13px; color: var(--ink-3); white-space: nowrap; min-width: 4em; text-align: right; }
.meet-find button { border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font: inherit; }
.meet-find button.meet-find-me { width: auto; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.meet-find button.meet-find-me[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.meet-find-btn { padding-left: 10px; padding-right: 10px; display: inline-flex; align-items: center; }
::highlight(meet-find) { background: rgba(250, 204, 21, 0.45); color: inherit; }
::highlight(meet-find-current) { background: #f59e0b; color: #111; }
.meet-msg.is-hit.is-current > .meet-text { outline: 2px solid #f59e0b; outline-offset: 2px; }
@supports not selector(::highlight(x)) { .meet-msg.is-hit > .meet-text { box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.6); } }
.meet-file-icon.has-thumb { padding: 0; overflow: hidden; background: var(--paper-2); }
.meet-file-icon.has-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-tile.has-thumb { padding: 0; width: 64px; }
.meet-tile.has-thumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.meet-ai-time { color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 4px; }
.meet-jump-me { bottom: 140px; background: var(--busy); }
.meet-jump-me[hidden] { display: none; }
.meet-msg.is-flash > .meet-text { animation: meet-flash 1.6s ease-out; }
@keyframes meet-flash { 0%, 30% { box-shadow: 0 0 0 3px var(--busy); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .meet-msg.is-flash > .meet-text { animation: none; box-shadow: 0 0 0 3px var(--busy); } }
.meet-msg.meet-merged { display: none; }
.meet-code { margin: 0.5em 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.meet-code-bar { display: flex; align-items: center; gap: 6px; padding: 3px 6px 3px 12px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.meet-code-bar > span { flex: 1; font-family: var(--mono); }
.meet-code-bar .meet-copy { position: static; opacity: 1; }
.meet-code-bar .meet-copy[aria-pressed="true"] { color: var(--clay-ink); border-color: var(--clay-ink); }
.meet-text .meet-code pre { margin: 0; border: 0; border-radius: 0; max-height: 420px; overflow: auto; }
.meet-text .meet-code pre.is-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.meet-side-time { display: none; }
.meet-msg.meet-row.meet-cont > .meet-side-time { display: block; grid-column: 1; grid-row: 1; align-self: center; justify-self: center; font-size: 11px; color: var(--ink-3); opacity: 0; transition: opacity 0.12s; font-variant-numeric: tabular-nums; }
.meet-msg.meet-row.meet-cont:hover > .meet-side-time, .meet-msg.meet-row.meet-cont:focus-within > .meet-side-time { opacity: 1; }
.meet-more { position: relative; }
.meet-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3); display: grid; gap: 2px; }
.meet-menu[hidden] { display: none; }
.meet-menu > button { text-align: left; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.meet-menu > button:hover, .meet-menu > button:focus-visible { background: var(--paper-2); }
.meet-menu-row { display: flex; align-items: center; gap: 4px; padding: 4px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 14px; }
.meet-menu-row span { flex: 1; color: var(--ink-3); }
.meet-menu-row button { border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 6px; min-width: 34px; height: 30px; font: inherit; cursor: pointer; }
.meet-menu-row button[aria-checked="true"] { border-color: var(--clay-ink); color: var(--clay-ink); font-weight: 600; }
.meet[data-fs="small"] .meet-messages, .meet[data-fs="small"] .meet-say textarea { font-size: 14px; }
.meet[data-fs="large"] .meet-messages, .meet[data-fs="large"] .meet-say textarea { font-size: 18px; }
.meet-viewer-nav { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 8px; width: 32px; height: 32px; font-size: 20px; line-height: 1; cursor: pointer; }
.meet-viewer-nav[hidden] { display: none; }
.meet-viewer-body[data-kind="image"] img { cursor: zoom-in; }
.meet-viewer-body.is-zoom { display: block; place-items: unset; }
.meet-viewer-body.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.meet-over { margin: 0; padding: 8px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--paper-2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.meet-over[hidden] { display: none; }
.meet-room.is-over .meet-say, .meet-room.is-over [data-meet-leave], .meet-room.is-over [data-meet-bell], .meet-room.is-over [data-meet-menu-bell],
.meet-room.is-over .meet-pushask, .meet-room.is-over .meet-net, .meet-room.is-over .meet-away, .meet-room.is-over .meet-typing,
.meet-room.is-over .meet-status, .meet-room.is-over .meet-quote-btn, .meet-room.is-over [data-meet-menu-forget], .meet-room.is-over [data-meet-menu-install] { display: none !important; }
.meet-files > li:has(.meet-file-where) { position: relative; }
.meet-file-where { position: absolute; top: 6px; right: 6px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); border-radius: 6px;
  padding: 1px 8px; font: inherit; font-size: 12px; cursor: pointer; opacity: 0; transition: opacity 0.12s; }
.meet-files > li:hover .meet-file-where, .meet-file-where:focus-visible { opacity: 1; }
@media (hover: none) { .meet-file-where { opacity: 1; } }
.meet-files-group { font-size: 12px; color: var(--ink-3); margin: 6px 0 0; }
.meet-files-group:first-child { margin-top: 0; }
/* 讀螢幕用的播報：固定在左上角。用 absolute 時它會排到很長的對話清單底下，把整頁撐高、畫面就能被捲走 */
.meet-sr { position: fixed; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* 會議頁本身不捲（只捲對話區）：就算又有東西溢出，表頭也不會被捲出視窗 */
html:has(body.page-meet), body.page-meet { height: 100%; overflow: hidden; }
.meet-summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 14px; }
.meet-summary[hidden] { display: none; }
.meet-summary dt { color: var(--ink-3); }
.meet-summary dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.meet-summary-file { font-size: 13px; padding: 1px 8px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); font-family: inherit; }
.meet-summary-file.can-save { cursor: pointer; color: var(--clay-ink); }
.meet-head h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-head > div:first-child { flex: 1; }
.meet-menu .only-narrow { display: none; }
@media (max-width: 760px) {
  .meet-head { gap: 10px; }
  .meet-head h1 { font-size: 17px; }
  .meet-head-actions { gap: 6px; }
  .meet-find-btn, .meet-bell { display: none !important; }
  .meet-menu .only-narrow:not([hidden]) { display: block; }
}
.meet-status-act { margin-left: 6px; border: 1px solid currentColor; background: none; color: inherit; border-radius: 6px; padding: 1px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.meet-row > .meet-who > b, .meet-row > .meet-avatar { cursor: pointer; }
.meet-room.is-over .meet-row > .meet-who > b, .meet-room.is-over .meet-row > .meet-avatar { cursor: default; text-decoration: none; }
.meet-row > .meet-who > b:hover { text-decoration: underline; text-underline-offset: 3px; }
.meet-marks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 4px; }
.meet-marks[hidden], [data-meet-marks-title][hidden] { display: none; }
.meet-marks button { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 13px; cursor: pointer; overflow-wrap: anywhere; }
.meet-marks button:hover { border-color: var(--busy); }
.meet-msg.is-marked > .meet-text, .meet-msg.meet-mine.is-marked { box-shadow: inset 0 0 0 2px rgba(217, 119, 87, 0.55); }
.meet-away { margin: 0; padding: 6px 20px; font-size: 14px; text-align: center; background: #fff4e5; color: #8a4b00; }
.meet-away[data-state="back"] { background: #e7f8ef; color: #0b6b44; }
.meet-away[hidden] { display: none; }
@media screen and (prefers-color-scheme: dark) { .meet-away { background: #3a2a10; color: #f5c27a; } .meet-away[data-state="back"] { background: #10301f; color: #7ee2ad; } }
.meet-remembered { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.meet-remembered a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--paper); }
.meet-remembered a:hover { border-color: var(--clay-ink); }
/* 欄寬：一般 820px、氣泡 760px；寬視窗放寬。帶表格或程式碼的 AI 回覆（.meet-wide）用整欄 */
.meet { --meet-col: 820px; --meet-bubble: 760px; }
@media (min-width: 1400px) { .meet { --meet-col: 1100px; --meet-bubble: 900px; } }
@media (min-width: 1800px) { .meet { --meet-col: 1240px; --meet-bubble: 980px; } }
.meet-msg.meet-row.meet-wide > .meet-text { max-width: calc(100% - 150px); }
@media (max-width: 760px) { .meet-msg.meet-row.meet-wide > .meet-text { max-width: 100%; } }
/* iPhone 的按鈕預設藍字：表頭與輸入區的按鈕指定顏色 */
.meet-head .btn:not(.btn-clay):not(.btn-danger), .meet-menu button { color: var(--ink); -webkit-tap-highlight-color: transparent; }
.meet-head [data-meet-leave]:not(.btn-danger) { background: var(--paper-2); border-color: var(--line); }
@media (max-width: 760px) {
  .meet-head { padding-top: calc(10px + env(safe-area-inset-top)); padding-bottom: 10px; }
  .meet-head .btn-small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
  .meet-head p { font-size: 12px; }
  /* 輸入區：迴紋針、輸入框、送出同一高度、置中對齊 */
  .meet-say { gap: 8px; align-items: center; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .meet-say textarea { min-height: 44px; padding: 10px 12px; font-size: 16px; }
  .meet-attach { width: 44px; height: 44px; align-self: center; }
  .meet-say button[type=submit] { min-height: 44px; padding: 0 16px; align-self: center; }
}
/* iPhone 主畫面打開、底下有一段畫不到（.ios-short）：頁面底色跟輸入區一樣，輸入區不再留底部橫條的空間 */
html.ios-short, html.ios-short body { background: var(--card); }
html.ios-short .meet-say { padding-bottom: 8px; }
.meet-pushask { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 20px; font-size: 14px; background: var(--brand-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.meet-pushask[hidden] { display: none; }
.meet-pushask > span { flex: 1; min-width: 12em; }
.meet-pushask .btn-small { min-height: 34px; padding: 0 14px; font-size: 14px; }
/* 手機：一行就好（短說明＋開啟＋×），不要擠掉半個對話區 */
.meet-pushask-short { display: none; }
@media (max-width: 760px) {
  .meet-pushask { flex-wrap: nowrap; padding: 6px 12px 6px 16px; gap: 6px; }
  .meet-pushask .meet-pushask-long { display: none; }
  .meet-pushask .meet-pushask-short { display: inline; }
  .meet-pushask > .meet-pushask-short { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .meet-pushask .btn-small { min-height: 32px; padding: 0 12px; }
  .meet-pushask [data-meet-pushask-no] { padding: 0; width: 32px; font-size: 18px; }
}
/* 檔案預覽 */
.meet-viewer { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); display: none; flex-direction: column; }
.meet-viewer[open] { display: flex; }
.meet-viewer::backdrop { background: rgba(5, 8, 20, 0.6); }
.meet-keys { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); }
.meet-keys::backdrop { background: rgba(5, 8, 20, 0.6); }
.meet-keys header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.meet-keys dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; padding: 14px 16px 18px; font-size: 14px; }
.meet-keys dt { text-align: right; }
.meet-keys dd { margin: 0; color: var(--ink-2); }
.meet-keys kbd { font: 12px var(--mono, ui-monospace, monospace); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--paper-2); white-space: nowrap; }
@media (hover: none) { .meet-menu .only-keyboard { display: none; } }
.meet-viewer header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.meet-viewer header b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.meet-viewer header span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meet-viewer-close { border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.meet-viewer-body { flex: 1; overflow: auto; padding: 16px 20px; min-height: 120px; }
.meet-viewer-body[data-kind="image"] { display: grid; place-items: center; background: var(--paper-2); }
.meet-viewer-body img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.meet-viewer-body pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 760px) { .meet-viewer { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; } }
@media (max-width: 760px) {
  .meet-body { grid-template-columns: 1fr; }
  .meet-head, .meet-scroll, .meet-say { padding-left: 16px; padding-right: 16px; }
  .meet-panel-toggle { display: inline-flex; }
  /* 抽屜：平常收在畫面外，開的時候從下面滑上來蓋住對話的下半 */
  .meet-side { position: fixed; left: 0; right: 0; bottom: 0; max-height: 70vh; z-index: 5; border-left: 0; border-top: 1px solid var(--line);
    border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3); padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform 0.2s ease; }
  .meet-room.panel-open .meet-side { transform: none; }
  .meet-panel-close { display: block; position: absolute; top: 8px; right: 12px; border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .meet-side { transition: none; } }
@media screen and (prefers-color-scheme: dark) {
  .meet-status, .meet-count.over { color: #f19a8a; }
}

/* ── 帳號頁的方案與公司、公司管理頁 ── */
.form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 14px 0; }
.form-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.input, .select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; max-width: 100%; }
.input:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
/* 單行的輸入框、下拉選單和同一列的按鈕一樣高，排在一起底邊才對齊 */
.input:not(textarea), .select { height: 44px; padding-top: 0; padding-bottom: 0; }
.form-row .btn-small { min-height: 44px; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23969cb8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.table .select { height: 36px; padding: 0 30px 0 10px; font-size: 14px; background-position: right 10px center; }
.input::placeholder { color: var(--ink-3); opacity: 0.8; }
.input:hover:not(:focus), .select:hover:not(:focus) { border-color: var(--ink-3); }
@media screen and (prefers-color-scheme: dark) { .input[type=month], .input[type=date] { color-scheme: dark; } }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.org-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.org-list:empty { display: none; }
.org-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.org-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
/* 手機：文字那塊至少 220px，按鈕一律退到下一列，每張卡的按鈕位置才一致（不會一張在右邊、一張在下面） */
@media (max-width: 640px) { .org-item > div:first-child { flex: 1 1 220px; } }
.org-group { list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 10px 0 -4px; }   /* 公司的會議：部門分組的標題 */
.table-scroll, .table-wrap-plain { overflow-x: auto; }
.table-scroll .table, .table-wrap-plain .table { min-width: 520px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 15px; }
.check-row input { margin-top: 4px; }
/* 公司管理頁的頁首：公司名稱可能很長，字小一號；方案、試用、角色是一列標籤 */
.page-company .page-head h1, .page-company-meetings .page-head h1 { font-size: clamp(30px, 4.2vw, 44px); overflow-wrap: anywhere; }
.page-company .page-head { padding-bottom: 12px; }
.page-company [data-co-plan] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.co-badge { display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); }
.co-badge-plan { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.co-badge-warn { background: #fff4e0; border-color: transparent; color: #8a5300; }
@media screen and (prefers-color-scheme: dark) { .co-badge-warn { background: #3a2a10; color: #fbbf24; } }
.co-plan-note { flex-basis: 100%; font-size: 15px; color: var(--ink-2); }
/* 資料剩一週內就會刪掉：同一句話，顏色改成警告 */
.co-plan-note-warn { color: #8a5300; font-weight: 600; }
@media screen and (prefers-color-scheme: dark) { .co-plan-note-warn { color: #fbbf24; } }
.company .co-section h2 { font-size: 22px; }
/* 區塊標題列：標題在左，這一區的工具（月份、下載）在右；窄的時候工具換到下一行 */
.co-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.co-head h2 { margin: 0; }
.co-head + .co-stats { margin-top: 16px; }
.co-head-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.co-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.co-head-tools .btn-small { min-height: 44px; }
.table .num-col { text-align: right; font-variant-numeric: tabular-nums; }
.company .co-section h3 { font-size: 17px; margin-top: 24px; }
.co-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.co-nav a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.co-nav a:hover { border-color: var(--brand); color: var(--brand-ink); }
/* 區塊選單黏在頁首下面（頁首捲動後是 56px 高），跳過去的標題要讓出頁首＋選單的高度 */
.co-nav { position: sticky; top: 56px; z-index: 4; padding: 10px 0; margin: 0 -2px; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.co-nav a { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.co-nav a[aria-current] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
@media screen and (prefers-color-scheme: dark) { .co-nav a[aria-current] { background: var(--brand); border-color: var(--brand); } }
html:has(.co-nav) { scroll-padding-top: 128px; }
/* 分頁：沒選到的區塊收起來；選單是一排分頁，選中的那頁填主色 */
.co-section.is-off { display: none; }
.company .co-section { margin-top: 12px; }
.co-nav a { display: inline-flex; align-items: center; gap: 6px; }
.co-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; line-height: 1;
  background: var(--brand-soft); color: var(--brand-ink); }
.co-nav a[aria-current] .co-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
/* 手機：選單排成一行左右滑，不要折成好幾行蓋住內容；兩側淡出提示還有 */
@media (max-width: 640px) {
  .co-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 10px 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
  .co-nav::-webkit-scrollbar { display: none; }
  .co-nav a { flex: none; white-space: nowrap; }
  html:has(.co-nav) { scroll-padding-top: 124px; }
}
.co-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.co-stats dt { font-size: 13px; color: var(--ink-3); }
.co-stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.co-unit { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.co-stats > div, .co-stats dt, .co-stats dd { min-width: 0; }
@media (max-width: 640px) { .form-row label, .form-row .input, .form-row .select { width: 100%; } }
.table-scroll .table th, .table-wrap-plain .table th { white-space: nowrap; }
.table-scroll .table[data-co-audit] { min-width: 760px; }
.table-scroll .table[data-co-members] { min-width: 600px; }
/* 成員表：頭像縮寫＋名字、角色是小標籤；每格垂直置中，勾選框用主色 */
:root { accent-color: var(--brand-ink); }
@media screen and (prefers-color-scheme: dark) { :root { } }
.table[data-co-members] td { vertical-align: middle; }
.table[data-co-members] input[type=checkbox] { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.table tbody tr:last-child td { border-bottom: 0; }
.co-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-who-name { font-weight: 600; }
.co-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.co-role { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.co-role-owner { background: var(--brand-soft); color: var(--brand-ink); }
.co-stats > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.table-wrap-plain .table[data-devices] { min-width: 600px; }
.table[data-devices] td { vertical-align: middle; }
.table[data-devices] td:first-child .small, .table[data-devices] td:last-child, .table .btn { white-space: nowrap; }
.table[data-devices] .select { max-width: 150px; text-overflow: ellipsis; }
.table[data-devices] th, .table[data-devices] td { padding-left: 12px; padding-right: 12px; }
/* 帳號頁：每台 Mac 能不能經中繼連進來 */
.relay-pill { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.relay-ok { background: #e7f8f0; color: #0b7a52; }
.relay-stale { background: #fff4e0; color: #8a5300; }
.relay-none { background: var(--paper-2); color: var(--ink-3); }
@media screen and (prefers-color-scheme: dark) { .relay-ok { background: #0f2a22; color: #6ee7b7; } .relay-stale { background: #3a2a10; color: #fbbf24; } }
.relay-note { margin-top: 14px; font-size: 14px; line-height: 1.7; }
/* 會議紀錄會交給公司（company-kit.md §8.3） */
.meet-archive { margin: 0; padding: 6px 20px; font-size: 13px; text-align: center; background: var(--brand-soft); color: var(--brand-ink); }
@media screen and (prefers-color-scheme: dark) { .meet-archive { background: #1d1f4a; color: #c7c9ff; } }
.co-kit { width: 100%; font: 13px/1.6 var(--mono); min-height: 160px; resize: vertical; padding: 14px 16px 34px; tab-size: 2; }
.co-kit-box { position: relative; }
.co-kit-check { position: absolute; left: 12px; bottom: 10px; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 999px; pointer-events: none;
  background: var(--paper-2); color: var(--ink-3); }
.co-kit-check:empty { display: none; }
.co-kit-check[data-state=ok]::before, .co-kit-check[data-state=dirty]::before { content: "✓ "; }
.co-kit-check[data-state=ok] { background: #e7f8f0; color: #0b7a52; }
.co-kit-check[data-state=dirty] { background: var(--brand-soft); color: var(--brand-ink); }
.co-kit-check[data-state=bad] { background: #fdecea; color: #9b2c1d; }
@media screen and (prefers-color-scheme: dark) { .co-kit-check[data-state=ok] { background: #0f2a22; color: #6ee7b7; } .co-kit-check[data-state=bad] { background: #3b1712; color: #f5b3a8; } }
.row-actions { align-items: center; }
/* 手機上的知識審核：「給誰」那一截自己一列，「採用」「不採用」才會並排在下一列（不會一顆在右邊、一顆掉下去） */
@media (max-width: 640px) { .row-actions[data-co-adopt] > label { flex: 1 1 100%; } }
.company .muted code { white-space: nowrap; }
.co-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 var(--mono); color: inherit; background: var(--paper-2); padding: 10px 12px; border-radius: 8px; max-height: 320px; overflow: auto; }
.co-proposal { align-items: flex-start; }
.co-proposal > div:first-child { flex: 1 1 320px; }
.co-record { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.co-record header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.co-lines { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.co-line-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.co-archive code { font-size: 14px; overflow-wrap: anywhere; }
/* 紀錄金鑰的狀態卡：沒設是灰的，有設是綠的，左邊一條色帶 */
.co-archive { margin: 16px 0 4px; padding: 14px 18px 14px 20px; border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: 12px; background: var(--paper); }
.co-archive[data-state=on] { border-left-color: var(--mint); }
.co-archive p { margin: 0; font-size: 15px; }
.co-archive p + p { margin-top: 6px; }
.co-archive:empty { display: none; }
/* 卡片裡最後一個元素不要再撐出底部空白 */
.panel > :last-child, .co-section > :last-child:not(table) { margin-bottom: 0; }
/* 選檔案：整塊虛線框都能按，瀏覽器內建的「選擇檔案」改成和頁面一樣的按鈕 */
.file-drop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0; padding: 14px 16px;
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.file-drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-drop input[type=file] { font: inherit; font-size: 14px; color: var(--ink-3); max-width: 100%; cursor: pointer; }
.file-drop input[type=file]::file-selector-button { font: 600 14px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; margin-right: 10px; cursor: pointer; }
.file-drop input[type=file]::file-selector-button:hover { border-color: var(--brand); color: var(--brand-ink); }
.status.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; margin: 0; max-width: min(560px, calc(100% - 32px)); padding: 12px 18px;
  border-radius: 12px; background: var(--navy); color: #fff; box-shadow: 0 14px 40px -12px rgba(11, 16, 32, 0.5); font-size: 15px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.status.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }   /* 點一下收起來 */
.status.toast.error { background: #9b2c1d; color: #fff; }
@media screen and (prefers-color-scheme: dark) { .status.toast { background: #eef0fa; color: #0b1020; } .status.toast.error { background: #f5b3a8; color: #3b1712; } }
@media (prefers-reduced-motion: reduce) { .status.toast { transition: none; } }
[data-co-rename] .input { width: 24em; }
.co-sub { margin-top: 24px; padding-top: 4px; border-top: 1px solid var(--line); }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 28px; padding: 18px 20px;
  border: 1px solid #e3b8ae; border-radius: 12px; background: #fdf6f4; }
.danger-zone h3 { margin: 0 0 4px; color: #9b2c1d; }
.company .danger-zone h3 { margin-top: 0; }
.danger-zone p { margin: 0; }
.danger-zone > div { flex: 1 1 320px; min-width: 0; }
@media screen and (prefers-color-scheme: dark) {
  .danger-zone { border-color: #5a2a22; background: #1f1214; }
  .danger-zone h3 { color: #f5b3a8; }
  .btn-danger { color: #f5b3a8; border-color: #6b3128; }
  .btn-danger:hover { background: #3b1712; color: #ffd4cc; }
}
.empty-state { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 16px 18px; border: 1.5px dashed var(--line); border-radius: 12px;
  color: var(--ink-3); font-size: 14px; }
.empty-state::before { content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 11.5l2.2-6.2A1.5 1.5 0 0 1 6.6 4.3h6.8a1.5 1.5 0 0 1 1.4 1l2.2 6.2V15a1.5 1.5 0 0 1-1.5 1.5h-11A1.5 1.5 0 0 1 3 15z M3 11.5h4l1 2h4l1-2h4' fill='none' stroke='%23969cb8' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.empty-state[hidden] { display: none; }
.section-more { margin-top: 24px; font-weight: 600; }
/* 區塊結尾的「→」延伸連結：做成膠囊（和頁面的次要按鈕一樣），滑過去填淡主色 */
.more a, .section-more a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--brand-ink); font-size: 15px; text-decoration: none; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.more a:hover, .section-more a:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .more a, .section-more a { transition: none; } .more a:hover, .section-more a:hover { transform: none; } }

/* 章節標題後面的「#」連結：滑過標題或用鍵盤移到它才看得到；按了拷貝網址，旁邊冒一句「已拷貝連結」 */
.h-anchor { position: relative; margin-left: 10px; font-size: 0.7em; font-weight: 600; color: var(--ink-3); text-decoration: none; opacity: 0; transition: opacity 0.15s ease; vertical-align: 0.1em; }
h2:hover > .h-anchor, .h-anchor:focus-visible, .h-anchor[data-copied] { opacity: 1; }
.h-anchor:hover { color: var(--brand-ink); }
.h-anchor[data-copied]::after { content: attr(data-copied); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--navy); color: #fff; }
@media screen and (prefers-color-scheme: dark) { .h-anchor[data-copied]::after { background: #eef0fa; color: #0b1020; } }
@media (hover: none) { .h-anchor { opacity: 0.5; } }
@media print { .h-anchor { display: none; } }

/* 常駐同事：每位一張卡；表單兩欄，可鎖的欄位旁邊有「鎖定」 */
.co-res-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.co-res-list:empty { display: none; }
.co-res { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); min-width: 0; }
.co-res .table-scroll { max-width: 100%; }
.co-res header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.co-res header > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.co-res-name { font-size: 17px; }
.co-res-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.co-res .co-badge { font-size: 12px; padding: 2px 10px; }
.co-res > p { margin: 8px 0 0; }
.co-res-assign { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-res-assign .btn-small { min-height: 32px; padding: 0 12px; }
.co-res-people { margin: 12px 0 0; min-width: 560px; }
.co-res-people td { vertical-align: middle; }
.co-res-versions { margin-top: 10px; font-size: 14px; }
.co-res-versions summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.co-res-versions ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.co-res-versions li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.co-res-versions .btn-small { min-height: 30px; padding: 0 12px; }
.co-res-assign-form { margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.co-res-assign-form fieldset { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.co-res-assign-form legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; padding: 0; }
.co-res-assign-form .check-row { margin: 4px 0; }
.co-res-form { margin: 16px 0; padding: 18px 20px; border: 1px solid var(--brand); border-radius: 14px; background: var(--paper); }
.co-res-form h3 { margin-top: 0 !important; }
.co-res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.co-res-grid > label, .co-lockable > label:first-child { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.co-res-grid > label.check-row { flex-direction: row; font-weight: 400; }
.co-res-grid .co-wide { grid-column: 1 / -1; }
.co-res-grid textarea { font: 14px/1.6 var(--sans); resize: vertical; }
.co-lockable { position: relative; }
.co-lock { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.co-lock input { margin: 0; }
.co-dep { width: 9em; height: 36px !important; font-size: 14px; }
@media (max-width: 640px) { .co-res-grid { grid-template-columns: 1fr; } }

/* 加入頁、重設密碼頁的表單；登入框下面的「用 email 和密碼登入」 */
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.auth-form h2 { font-size: 20px; margin: 0; }
.auth-form > label:not(.check-row) { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; max-width: 420px; }
.auth-form .row-actions { margin-top: 4px; }
.auth-form p { margin: 0; }
.code-field { font: 600 18px var(--mono); letter-spacing: 3px; text-transform: uppercase; max-width: 240px; }
.join-org { padding: 10px 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.pw-signin { margin: 14px auto 0; max-width: 320px; text-align: left; font-size: 14px; }
.pw-signin summary { cursor: pointer; color: var(--ink-2); font-weight: 600; text-align: center; list-style-position: inside; }
.pw-signin form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pw-signin label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.pw-signin p { margin: 0; text-align: center; }
.start .pw-signin, .start .pw-signin summary { margin-left: 0; text-align: left; }
.signin-slot { flex-direction: column; align-items: center; }
.start .signin-slot { align-items: flex-start; }

/* 公司管理頁：搜尋列、開關、套件的表單 */
.co-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0; }
.co-filter[hidden], .co-search[hidden] { display: none; }
.co-search { flex: 1 1 240px; max-width: 360px; height: 40px; }
.co-filter .select { height: 40px; width: auto; }
section > .co-search, [data-cm-body] > .co-search { display: block; width: 100%; margin: 12px 0; }
.co-switch { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.co-switch input { width: 18px; height: 18px; margin-top: 2px; }
.co-switch[hidden] { display: none; }
.co-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.co-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.co-file-btn:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
/* 公司套件的子頁：上面一排格子同時是摘要與切換 */
.co-kit-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 14px 0 4px; }
@media (max-width: 720px) {
  .co-kit-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; margin-left: -4px; margin-right: -4px; padding: 4px; scrollbar-width: none;
    /* 右邊淡出：提示後面還有格子（跟上面的分頁選單一樣） */
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent 100%); }
  .co-kit-tabs::-webkit-scrollbar { display: none; }
}
.co-kit-tab { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 72px; padding: 10px 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.co-kit-tab:hover { border-color: var(--brand); }
.co-kit-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.co-kit-tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.co-kit-tab-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.co-kit-tab[aria-selected="true"] .co-kit-tab-label { color: var(--brand-ink); font-weight: 600; }
.co-kit-tab-value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-kit-tab.is-text .co-kit-tab-value { font-size: 15px; white-space: normal; }
.co-kit-tab.is-text .co-unit { display: block; font-size: 12px; font-weight: 500; }
.co-dot { width: 8px; height: 8px; border-radius: 50%; background: #d97706; }
[data-co-kit-view].is-off { display: none; }
.co-dirty-mark, .co-undo { display: none !important; }
[data-dirty] .co-dirty-mark { display: inline-block !important; vertical-align: middle; font-size: 12px; }
[data-dirty] .co-undo { display: inline-flex !important; }
.co-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
[data-co-deny-presets] { display: contents; }
[data-co-tpl-form] input[readonly], [data-co-res-form] input[readonly] { color: var(--ink-3); background: var(--paper-2); }
.co-chip { min-height: 32px !important; padding: 0 10px !important; font: 12px/1 var(--mono) !important; }
.co-chip:disabled { opacity: 0.55; cursor: default; }
.co-meters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 10px 0; }
.co-meter { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; max-width: 320px; }
.co-meter-bar { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.co-meter-bar > span { display: block; height: 100%; background: var(--brand); }
.co-meter.is-high .co-meter-bar > span { background: #d97706; }
.co-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.co-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.co-group .btn-small, .co-shared-key .btn-small { min-height: 30px; padding: 0 10px; font-size: 12px; }
.co-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.co-shared-key { display: inline-flex; align-items: center; gap: 4px; }
.co-kit-item > div:first-child { flex: 1 1 320px; }
.co-kit-item code { font-size: 12px; overflow-wrap: anywhere; }
.co-item-actions { align-items: center; }
.co-scope { height: 36px; width: auto; max-width: 220px; font-size: 14px; }
.co-mono-sm { font: 12px/1.6 var(--mono); }
.co-kit-form .row-actions { margin-top: 12px; }
.co-kit-form textarea { width: 100%; resize: vertical; font: 14px/1.6 var(--sans); }
.co-kit-form .co-mono { font: 13px/1.6 var(--mono); }
.co-kit-form :disabled { opacity: 0.5; }
.co-checks { display: flex; flex-direction: column; justify-content: flex-end; }
.co-checks .check-row { margin: 4px 0; font-size: 14px; }
.co-json > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 10px 0; }
.co-json[open] > summary { margin-bottom: 8px; }
.co-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.co-seats-left { margin: -4px 0 10px; color: var(--ink-2); }
.co-seats-left.error { color: #9b2c1d; }
.co-grow { flex: 1 1 320px; }
.co-step { min-width: 44px; padding: 0 !important; font-size: 20px; }
.co-step:disabled { opacity: 0.4; cursor: default; }
@media screen and (prefers-color-scheme: dark) { .co-seats-left.error { color: #fca5a5; } }

/* 匯入 plugin 的預覽 */
.co-plugin { margin-top: 20px; }
.co-plugin-title { margin: 16px 0 6px; font-size: 16px; }
.co-plugin-table { min-width: 720px; }
.co-plugin-table td { vertical-align: top; }
.co-plugin-table tr.is-off td { opacity: 0.55; }
.co-plugin-table tr.is-off td:first-child { opacity: 1; }
.co-plugin-scope { min-width: 150px; height: 36px; font-size: 14px; }
.co-plugin-notes { margin: 8px 0; padding-left: 20px; font-size: 14px; }
.co-plugin-more { margin: 6px 0; font-size: 14px; }
.co-plugin-more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.co-plugin-more ul { margin: 6px 0 0; padding-left: 20px; color: var(--ink-2); }
.co-plugin-total { font-weight: 600; }
.co-plugin-total.error { color: #9b2c1d; }
.co-warn { color: #8a5300; }
.co-manage { border-top: 1px solid var(--line); padding-top: 12px; }
.co-manage > .check-row { font-weight: 600; }
.co-manage [data-co-manage-body] { margin-top: 10px; }
.co-direct { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.co-break { overflow-wrap: anywhere; }
@media screen and (prefers-color-scheme: dark) { .co-warn { color: #fbbf24; } .co-plugin-total.error { color: #fca5a5; } }

/* 成員表、常駐同事的成員表在手機上（.co-cards）：一列一張卡，第一欄（誰）一行、其他欄「標籤／值」排兩欄，不用橫向捲 */
@media (max-width: 640px) {
  .table-scroll:has(> .co-cards), .table-wrap-plain:has(> .co-cards) { overflow: visible; }
  .table-scroll .table.co-cards, .table-wrap-plain .table.co-cards { min-width: 0; }
  .co-cards thead { display: none; }
  .co-cards, .co-cards tbody { display: block; }
  .co-cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .co-cards tr:last-child { border-bottom: 0; }
  .co-cards tr[hidden] { display: none; }
  .co-cards td { display: block; padding: 0; border: 0; min-width: 0; }
  .co-cards td:first-child { grid-column: 1 / -1; }
  .co-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
  .co-cards td .select, .co-cards td .input { width: 100%; }
  .co-cards .co-member-act { align-self: end; text-align: right; }
  .co-cards .co-member-act:empty { display: none; }
}

/* 稽核紀錄：按日期分段，日期那一列跨整排 */
.co-day-row th { background: var(--paper); color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 14px 12px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.co-audit td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }
.co-audit td:nth-child(3) { white-space: nowrap; }
@media (max-width: 640px) {
  .co-cards tr.co-day-row { display: block; padding: 0; border: 0; }
  .co-cards tr.co-day-row th { display: block; padding: 16px 0 4px; }
  /* 稽核一筆兩行：「時間 誰 做了什麼 對象」，下一行是內容 */
  .co-audit tr:not(.co-day-row) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 0; }
  .co-audit td[data-label]::before { display: none; }
  .co-audit td:nth-child(3) { font-weight: 600; }
  .co-cards.co-audit td:last-child { flex-basis: 100%; color: var(--ink-3); font-size: 13px; }
  .co-cards.co-audit td:first-child { color: var(--ink-3); }
  .co-audit td:last-child:empty { display: none; }
}

/* 「待處理」：一列小連結，點了到那個分頁 */
.co-todo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 2px; padding: 10px 14px; border: 1px solid #f3d9a4; background: #fff8e8; border-radius: 12px; font-size: 14px; }
.co-todo[hidden] { display: none; }
.co-todo-label { font-weight: 700; color: #8a5a00; margin-right: 4px; }
.co-todo a { color: #6b4500; text-decoration: none; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid #f0d08e; }
.co-todo a:hover { border-color: #c98f1c; }
@media screen and (prefers-color-scheme: dark) {
  .co-todo { background: rgba(240, 180, 60, 0.1); border-color: rgba(240, 180, 60, 0.3); }
  .co-todo-label { color: #f3c26b; }
  .co-todo a { color: #f6d79b; background: rgba(255, 255, 255, 0.04); border-color: rgba(240, 180, 60, 0.35); }
}

/* 報表：數字下面「比上個月多／少」 */
.co-stats dd.co-delta { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.co-stats dd.co-delta.up { color: #0f7a4a; }
.co-stats dd.co-delta.down { color: #b4561b; }
@media screen and (prefers-color-scheme: dark) { .co-stats dd.co-delta.up { color: #5fd39b; } .co-stats dd.co-delta.down { color: #f0a46b; } }

/* 「更多」選單（常駐同事卡片） */
.co-more { position: relative; }
.co-more > summary { list-style: none; cursor: pointer; }
.co-more > summary::-webkit-details-marker { display: none; }
.co-more > summary::after { content: "▾"; margin-left: 6px; font-size: 11px; }
.co-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; min-width: 180px; padding: 6px; display: grid; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 24, 40, 0.14); }
.co-more-menu button { text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.co-more-menu button:hover, .co-more-menu button:focus-visible { background: var(--paper); }
.co-more-menu button.danger { color: #b42318; }
@media screen and (prefers-color-scheme: dark) { .co-more-menu { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); } .co-more-menu button.danger { color: #ff8a80; } }

/* 成員表可以排序的欄位標題 */
.co-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.co-sort::after { content: "↕"; font-size: 11px; opacity: 0.35; }
th[aria-sort="ascending"] .co-sort::after { content: "↑"; opacity: 0.9; }
th[aria-sort="descending"] .co-sort::after { content: "↓"; opacity: 0.9; }
.co-sort:hover { color: var(--brand-ink); }
.co-sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
/* 帳號頁「所屬公司」的卡：名稱＋角色標籤一行、方案一行、按鈕在下面 */
.org-info { min-width: 0; flex: 1 1 260px; }
.org-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; overflow-wrap: anywhere; }
.org-role { flex: none; white-space: nowrap; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.org-meta { margin-top: 4px; }
/* 試用剩一週內：說一聲到期會怎樣（到期本身是悄悄發生的） */
.org-warn { color: #8a5300; font-weight: 600; }
.org-role-warn { background: #fff4e0; border-color: transparent; color: #8a5300; }
@media screen and (prefers-color-scheme: dark) { .org-warn { color: #fbbf24; } .org-role-warn { background: #3a2a10; color: #fbbf24; } }
.org-invite { border-color: var(--brand); }
.org-invite .org-role { background: #4f46e5; color: #fff; border-color: transparent; }
.org-create { margin-top: 14px; }
.org-create > summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ink-2); list-style: none; }
.org-create > summary::-webkit-details-marker { display: none; }
.org-create > summary:hover { color: var(--ink); }
.org-create[open] > summary { color: var(--ink); }
[data-plan-line] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
[data-plan-line] .plan-sub { flex-basis: 100%; }
.co-mcp-h { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.co-asks { margin-top: 6px; display: grid; gap: 4px; }
/* 給誰：勾選多個的挑選框（打開時在原地展開，不浮在上面，放在表格與手機上也不會被切掉） */
.co-scope-pick { display: inline-block; max-width: 100%; vertical-align: middle; }
.co-scope-pick > summary.co-scope { display: flex; align-items: center; height: auto; min-height: 36px; max-width: 280px; padding-top: 6px; padding-bottom: 6px; list-style: none; cursor: pointer; white-space: normal; text-align: left; line-height: 1.4; }
.co-scope-pick > summary::-webkit-details-marker { display: none; }
.co-scope-menu { margin-top: 6px; padding: 8px 12px; min-width: 220px; max-width: min(340px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 400; }
.co-scope-menu .check-row { margin: 6px 0; font-size: 14px; }
.co-scope-menu p { margin: 6px 0; }
.co-scope-menu .row-actions { margin-top: 8px; }
.co-scope-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.co-scope-field .co-scope-pick { display: block; }
.co-scope-field .co-scope-pick > summary.co-scope { max-width: none; min-height: 44px; font-size: 15px; }
.co-scope-field .co-scope-menu { max-width: none; }
.co-item-actions > .co-inline, .co-filter > .co-inline { flex-wrap: wrap; white-space: nowrap; }
.co-scope-pick, .co-scope-menu { white-space: normal; }
/* MCP 標頭的值（金鑰）預設遮住，按「顯示」才看得到 */
.co-secret-row { display: flex; gap: 8px; align-items: center; }
.co-secret-row .input { flex: 1; min-width: 0; }
.co-secret:not(.is-shown) { -webkit-text-security: disc; text-security: disc; }
/* 下載頁：還沒簽章的 Windows 版的說明 */
.callout-warn { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #d97706; border-radius: 10px; background: rgba(217, 119, 6, 0.08); line-height: 1.7; }
/* 功能頁：「公司一起用」「每台電腦上的 AI 員工」兩段的段落標題 */
.feat-part { margin: 48px 0 0; padding-top: 8px; font-size: 15px; letter-spacing: 0.08em; color: var(--brand-ink); text-transform: none; }
.feat-part + .feature { border-top: 0; padding-top: 16px; }
@media (max-width: 900px) and (min-width: 641px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 公司守則：內容整段顯示（不收起來，因為每條都短） */
.co-gd-list { padding-left: 0; }
.co-gd-body { margin: 6px 0 0; white-space: pre-wrap; max-height: 12em; overflow: auto; }
/* 首頁主視覺：工作空間的工作清單與驗收 */
.mock-rows { display: flex; flex-direction: column; padding: 8px 10px; gap: 4px; }
.mock-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 8px; border-radius: 7px; font-size: 12.5px; }
.mock-row:first-child { background: #26304a; box-shadow: inset 0 0 0 1px #3b6fd6; }
.mock-row code { font: 11px var(--mono); color: var(--night-ink-2); }
.mock-row .mr-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .mr-ai { font-size: 11px; color: #c4b5fd; background: rgba(139, 92, 246, 0.16); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.mock-row .mr-who { font-size: 11px; color: var(--night-ink-2); padding: 2px 8px; white-space: nowrap; }
.mock-row .mr-st { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-review { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.st-doing { background: rgba(59, 111, 214, 0.2); color: #9dbaf2; }
.st-todo { background: rgba(148, 145, 136, 0.18); color: #c9c4b8; }
.st-done { background: rgba(76, 143, 90, 0.2); color: #8fc49a; }
.mock-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-verdict span { text-align: center; padding: 8px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.mock-verdict .mv-ok { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.mock-verdict .mv-no { background: #33312d; color: var(--night-ink); border: 1px solid #4a4741; }
@media (max-width: 1100px) { .mock-row .mr-who, .mock-row .mr-ai { display: none; } .mock-row { grid-template-columns: 48px minmax(0, 1fr) auto; } }
/* 首頁：資料放在哪裡 */
.data-where { margin-top: 20px; }
.data-where h3 { margin-bottom: 8px; }
.trust .more a + a { margin-left: 12px; }
/* 功能頁：一個人也能先用 */
.solo-note { margin: 16px 0 8px; }
.solo-note .mini-steps { margin-top: 14px; }
/* 部門清單：每個部門一個小牌子，誰在用、改名 */
.co-dep-chip { display: inline-flex; align-items: center; gap: 6px; }
.co-dep-chip .btn-small { min-height: 26px; padding: 0 8px; font-size: 12px; }
.co-dep-chip.is-extra { border-style: dashed; }

/* ── 問題回報（feedback.html）── */
.fb-kinds { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.fb-kinds .check-row { margin: 0; }
.page-feedback .auth-form > label:not(.check-row) { max-width: none; }
.page-feedback .auth-form [data-when] label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; max-width: 420px; margin-bottom: 6px; }
.page-feedback textarea.input { width: 100%; resize: vertical; }
.fb-list { margin-top: 24px; }
.fb-search { display: grid; gap: 4px; margin: 0 0 12px; }
.fb-who { color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.fb-who:hover { color: var(--brand-ink); border-color: currentColor; }
.fb-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.fb-tools p { margin: 0; }
.fb-item { border-top: 1px solid var(--line); padding: 14px 0; }
.fb-item:first-child { border-top: 0; padding-top: 0; }
.fb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 4px; }
.fb-diag { overflow-wrap: anywhere; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.fb-diag-box { margin-top: 6px; }
.fb-diag-box summary { cursor: pointer; }
dl.fb-diag { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 6px 0 0; }
dl.fb-diag dt { color: var(--ink-3); }
dl.fb-diag dd { margin: 0; }
.fb-note { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); }
.fb-status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.fb-status.fb-new { background: #fde68a; color: #78350f; }
.fb-status.fb-doing { background: #c7d2fe; color: #312e81; }
.fb-status.fb-done { background: #bbf7d0; color: #14532d; }
.fb-edit { display: grid; grid-template-columns: 130px 1fr auto; gap: 8px; margin-top: 8px; }
.chips a.on { background: var(--brand-soft); border-color: #c9ccf5; color: var(--brand-ink); }
@media (max-width: 600px) { .fb-edit { grid-template-columns: 1fr; } }
@media screen and (prefers-color-scheme: dark) {
  .fb-status.fb-new { background: #78350f; color: #fde68a; }
  .fb-status.fb-doing { background: #312e81; color: #c7d2fe; }
  .fb-status.fb-done { background: #14532d; color: #bbf7d0; }
}
