/* kn-light.css — 2026-10-16 (owner: 全站的深色方匡改成蜂蜜奶油等模板配色、以亮色為主).
   Every big "night" card / panel / bar / bubble of the work pages becomes a light card: cream with a honey glow and ink
   text. Most pages draw these with their own --kXX-night / --kXX-night-ink pair, so the pair is swapped inside the
   card (surface ↔ ink): text, dividers and inverse buttons follow by themselves. Colours come from the site theme
   variables, so the other themes (dark ones too) keep working.
   Selectors start with :root and double the class so they outrank the page modules' own styles, whatever order the
   modules inject them in. Buttons, checkboxes, progress fills, toasts and dim backdrops keep their colours. */
:root{
  --kl-hair:color-mix(in oklab,var(--ink) 9%,transparent);
  --kl-bg:radial-gradient(420px 260px at 0% 0%,color-mix(in oklab,var(--accent) 30%,transparent),transparent 70%),linear-gradient(160deg,color-mix(in oklab,var(--surface) 86%,var(--accent)),var(--surface));
  --kl-shadow:0 1px 0 rgba(255,255,255,.5) inset,0 22px 46px -34px color-mix(in oklab,var(--ink) 55%,transparent);
  --kl-honey:color-mix(in oklab,var(--accent) 26%,var(--surface));
  --kl-honey2:color-mix(in oklab,var(--accent) 48%,var(--surface));
}

/* ---- hero cards (總覽, 回收桶, 任務中心, 時間軸, 知識圖譜, 檢索架構, 用量) ---- */
:root .kov-hero.kov-hero{--kov-night:var(--surface);--kov-night-ink:var(--ink)}
:root .knt-hero.knt-hero{--knt-night:var(--surface);--knt-night-ink:var(--ink)}
:root .kjc-hero.kjc-hero{--kjc-night:var(--surface);--kjc-night-ink:var(--ink)}
:root .ktl-hero.ktl-hero{--ktl-night:var(--surface);--ktl-night-ink:var(--ink)}
:root .kgx-hero.kgx-hero{--kgx-night:var(--surface);--kgx-night-ink:var(--ink)}
:root .knq-hero.knq-hero{--knq-night:var(--surface);--knq-night-ink:var(--ink)}
:root .knu-hero.knu-hero{--knu-night:var(--surface);--knu-night-ink:var(--ink);--knu-spark:var(--accent)}
:root .kev-hero.kev-hero{--kna-night:var(--surface);--kna-night-ink:var(--ink)}
:root :is(.kov-hero,.knt-hero,.kjc-hero,.ktl-hero,.kgx-hero,.knq-hero,.knu-hero,.kev-hero):is(.kov-hero,.knt-hero,.kjc-hero,.ktl-hero,.kgx-hero,.knq-hero,.knu-hero,.kev-hero){
  background:var(--kl-bg);color:var(--ink);border:1px solid var(--kl-hair);box-shadow:var(--kl-shadow)}

/* ---- 錄音: the player bar, the empty-state tile, the bulk bar of 分享管理 ---- */
:root .knx .knx-player.knx-player{--knx-night:var(--surface);--knx-night-ink:var(--ink);--knx-wf-head:var(--ink);--knx-wf-off:color-mix(in oklab,var(--ink) 22%,transparent);
  background:var(--kl-bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--kl-hair),0 18px 36px -28px color-mix(in oklab,var(--ink) 50%,transparent)}
/* (audit 2026-10-23) the speed panel sits inside the light player, where --knx-night is the surface colour: the chosen
   speed looked unselected (chip = panel colour) — ink marks the choice and the slider there */
:root .knx .knx-player .knr-speed-presets button.on{background:var(--ink);color:var(--surface);border-color:var(--ink)}
:root .knx .knx-player .knr-speed-range::-webkit-slider-runnable-track{background:linear-gradient(to right,var(--ink) var(--pct),var(--knx-well) var(--pct))}
:root .knx .knx-player .knr-speed-range::-webkit-slider-thumb{border-color:var(--ink)}
:root .knx .knx-empty__art.knx-empty__art{background:var(--kl-honey);color:var(--accent-text,var(--ink));box-shadow:0 18px 36px -24px color-mix(in oklab,var(--accent) 60%,transparent)}
:root .knx .ksh-bulk.ksh-bulk{--knx-night:var(--surface);--knx-night-ink:var(--ink);background:var(--kl-honey);color:var(--ink);box-shadow:inset 0 0 0 1px var(--kl-hair)}

/* ---- 行事曆: secretary notes, dark panels / boxes, the first suggestion ---- */
:root :is(.kcl-demo .kcl-note,.kcl-panel--dark,.kcl-box--dark,.kcl-sug:first-child):is(.kcl-note,.kcl-panel--dark,.kcl-box--dark,.kcl-sug){
  --kcl-night:var(--surface);--kcl-night-ink:var(--ink);--kcl-night-dim:color-mix(in oklab,var(--ink) 28%,transparent);
  background:var(--kl-bg);color:var(--ink);border:1px solid var(--kl-hair);box-shadow:var(--kl-shadow)}

/* ---- 進度管理: the night list, the bulk bar, dark events ---- */

/* ---- 對話: the night card, the main scope card ---- */
:root .knc .knc-night.knc-night,:root .knc .knc-sc.is-main.is-main{--knc-night:var(--surface);--knc-night-ink:var(--ink);background:var(--kl-bg);color:var(--ink);border:1px solid var(--kl-hair);box-shadow:var(--kl-shadow)}

/* ---- 上傳: the floating progress tray ---- */
:root .kup-tray.kup-tray{background:var(--kl-bg),var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--kl-hair),0 24px 50px -22px color-mix(in oklab,var(--ink) 55%,transparent)}
:root .kup-tray.kup-tray .kup-x{border-color:color-mix(in oklab,var(--ink) 22%,transparent);color:var(--ink)}

/* ---- 來源同步 (Google): the picker dock, the dark KPI card ---- */
:root .kgd-dock.kgd-dock,:root .kgd-kpi--night.kgd-kpi--night{--kgd-night:var(--surface);--kgd-night-ink:var(--ink);background:var(--kl-bg),var(--surface);color:var(--ink);border:1px solid var(--kl-hair);box-shadow:var(--kl-shadow)}

/* ---- 知識圖譜: the path strip, the bottom peek ---- */
:root .kgx-strip.kgx-strip,:root .kgx-peek.kgx-peek{--kgx-night:var(--surface);--kgx-night-ink:var(--ink);background:var(--kl-bg),var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1px var(--kl-hair),var(--kl-shadow)}

/* ---- 設定 › AI 與處理: the last pipeline step ---- */
:root .kse-pipe.kse-pipe > div:last-child{background:var(--kl-honey2);color:var(--ink)}

/* ---- the person's own message bubbles (對話, 行事曆, 時間軸 / 回收桶 previews, 管理後台, AI 對我的了解, 問問) ---- */
:root .knc .knc-user.knc-user,:root .kcl-msg--me.kcl-msg--me .kcl-msg__b,:root .ktl-msg--user.ktl-msg--user,:root .knt-msg--user.knt-msg--user,
:root .kau-msg.u.u,:root .kmv-bub--me.kmv-bub--me,:root .kmv-ak__me.kmv-ak__me{background:var(--kl-honey);color:var(--ink);box-shadow:inset 0 0 0 1px color-mix(in oklab,var(--accent) 30%,transparent)}

/* ---- 管理後台 › 成員名冊 week view: news blocks ---- */
:root .kmb-wk__ev--news.kmb-wk__ev--news{background:var(--kl-honey2);color:var(--ink)}

/* ---- 資料管理: the chosen stage card stays white with a breathing red frame (2026-10-19, data-hub.js) — nothing here ---- */

/* ---- the account popup's header (name / e-mail) ---- */
:root .kn-acct-hero.kn-acct-hero{color:var(--ink);background:radial-gradient(90% 120% at 100% 0%,color-mix(in oklab,var(--accent) 30%,transparent),transparent 62%),var(--surface);
  box-shadow:inset 0 0 0 1px var(--kl-hair),0 14px 26px -22px color-mix(in oklab,var(--ink) 55%,transparent)}
:root .kn-acct-hero.kn-acct-hero .kn-acct-av{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px color-mix(in oklab,var(--accent) 70%,var(--ink))}
:root .kn-acct-hero.kn-acct-hero .kn-acct-av:not([style*="url("]){background:var(--btn-bg)!important;color:var(--btn-text)!important}
:root .kn-acct-hero.kn-acct-hero .kn-acct-x{background:color-mix(in oklab,var(--ink) 7%,transparent)}
:root .kn-acct-hero.kn-acct-hero .kn-acct-x::before{background:var(--ink)}
:root .kn-acct-hero.kn-acct-hero .kn-acct-x:hover{background:color-mix(in oklab,var(--ink) 13%,transparent)}
