/* ===== Noday 電腦版（瀏覽器寬螢幕，body.desk）：依 ChatGPT 設計稿 — 上方搜尋列、左邊選單、日曆三欄 ===== */
body.desk { --acc: #007aff; --acc-soft: rgba(0,122,255,.10); --card: #fff; --line: #ececf0; background: #f6f6f8; }
body.desk[data-accent="red"]    { --acc: #ff3b30; --acc-soft: rgba(255,59,48,.10); }
body.desk[data-accent="green"]  { --acc: #1fa851; --acc-soft: rgba(31,168,81,.11); }
body.desk[data-accent="purple"] { --acc: #8b5cf6; --acc-soft: rgba(139,92,246,.11); }
body.desk { --tint: var(--acc); }

/* 上方列 */
#deskTop { position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 30; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
#deskTop svg { width: 20px; height: 20px; }
.dt-logo { width: 172px; display: flex; align-items: center; gap: 10px; flex: none; }
.dt-logo img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.dt-logo b { font-size: 20px; letter-spacing: -.3px; }
.dt-logo small { white-space: nowrap; font-size: 12px; color: #8e8e93; margin-top: 3px; }
.dt-search { flex: 1; max-width: 560px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border-radius: 12px; background: #f2f2f5; color: #8e8e93; }
.dt-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: #1c1c1e; }
.dt-search kbd { font: 11px/1 -apple-system, system-ui, sans-serif; padding: 4px 6px; border-radius: 6px; background: #fff; border: 1px solid #e3e3e8; color: #8e8e93; }
.dt-search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--acc-soft), 0 0 0 1px var(--acc); }
.dt-r { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dt-r button { width: 38px; height: 38px; border-radius: 10px; border: 0; background: none; color: #3a3a3c; display: grid; place-items: center; cursor: pointer; }
.dt-r button:hover { background: #f2f2f5; }
.dt-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--acc); }

/* 左邊選單 */
body.desk .tabbar { top: 64px; bottom: 0; left: 0; right: auto; width: 196px; display: flex !important; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px 14px; border-top: 0; border-right: 1px solid var(--line); background: #fff; height: auto; }
body.desk .tabbar[hidden] { display: flex !important; }
body.desk .tabbar > button { flex-direction: row; justify-content: flex-start; gap: 12px; height: 46px; padding: 0 14px; border-radius: 12px; font-size: 15px; color: #3a3a3c; }
body.desk .tabbar > button[hidden] { display: flex; }
body.desk .tabbar > button svg { width: 22px; height: 22px; }
body.desk .tabbar > button:hover { background: #f5f5f7; }
body.desk .tabbar > button.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.ds-sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 4px 48px; }
.ds-sub button { text-align: left; border: 0; background: none; font: inherit; font-size: 13.5px; color: #6e6e73; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.ds-sub button:hover { background: #f5f5f7; }
.ds-sub button.on { color: var(--acc); font-weight: 600; }
.ds-trip { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; color: #3a3a3c; text-decoration: none; font-size: 15px; border-radius: 0; }
.ds-trip svg { width: 22px; height: 22px; }
.ds-trip svg:last-child { width: 15px; height: 15px; margin-left: auto; color: #aeaeb2; }
.ds-trip:hover { color: var(--acc); }
.ds-art { margin-top: auto; text-align: center; padding: 16px 10px 14px; border-radius: 16px; background: linear-gradient(180deg, var(--acc-soft), rgba(255,255,255,0)); }
.ds-art img { width: 96px; height: auto; display: block; margin: 0 auto 6px; }
.ds-art b { display: block; font-size: 15px; }
.ds-art small { font-size: 12px; color: #8e8e93; line-height: 1.5; }

/* 每一頁 */
body.desk .view { margin-left: 196px; padding: 64px 32px 40px; }
body.desk .view > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
body.desk .view .nav { position: sticky; top: 64px; z-index: 10; background: transparent; }
body.desk .view.white { background: #f6f6f8; }
body.desk .large { display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding-left: 0; padding-right: 0; }
body.desk .large .h-ill { width: 44px; height: 44px; object-fit: contain; }
body.desk .large h1 { font-size: 28px; }

/* ---------- 日曆 ---------- */
body.desk #v-cal.on { display: grid; grid-template-columns: minmax(0, 72fr) minmax(300px, 28fr); column-gap: 22px; align-items: start; padding-left: max(32px, calc((var(--vw, 100vw) - 196px - 1440px) / 2)); padding-right: max(32px, calc((var(--vw, 100vw) - 196px - 1440px) / 2)); }
body.desk #v-cal > * { max-width: none; margin: 0; grid-column: 1; }
body.desk #v-cal .nav { display: none; }
body.desk #v-cal .large { grid-column: 1 / -1; padding: 22px 0 6px; }
body.desk #v-cal #calTitle { font-size: 0; }
body.desk #v-cal #calTitle::before { content: "日曆"; font-size: 28px; }
#deskCalBar { grid-column: 1 / -1 !important; display: flex; align-items: center; gap: 10px; padding: 8px 0 16px; }
#dcTitle { font-size: 19px; min-width: 120px; text-align: center; }
.dc-arrow { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; line-height: 1; color: #3a3a3c; cursor: pointer; }
.dc-pill { height: 34px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; cursor: pointer; margin-left: 6px; }
.dc-arrow:hover, .dc-pill:hover { border-color: #d1d1d6; }
.dc-seg { display: flex; margin-left: auto; background: #ececf0; padding: 3px; border-radius: 11px; }
.dc-seg button { border: 0; background: none; font: inherit; font-size: 14px; padding: 6px 18px; border-radius: 8px; color: #3a3a3c; cursor: pointer; }
.dc-seg button.on { background: #fff; color: var(--acc); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dc-add { height: 38px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--acc); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px var(--acc-soft); }
.dc-add:hover { filter: brightness(1.06); }

body.desk #calSearchBox { grid-column: 1; margin: 0 0 12px; }
body.desk #calMonthWrap { background: var(--card); border-radius: 18px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
body.desk #calMonthWrap .dow { padding: 10px 0; font-size: 13px; color: #8e8e93; border-bottom: 1px solid var(--line); }
body.desk .week { height: clamp(96px, calc(var(--cellw, 130px) * .82), 150px); border-top: 1px solid #f2f2f5; }
body.desk .week.wkbig { height: 520px; }
body.desk .month .num, body.desk .month .d { font-size: 15px; }
body.desk .pill { height: 18px; line-height: 18px; font-size: 12px; border-radius: 5px; padding: 0 6px; }
body.desk .week.wkbig .pill { height: 21px; line-height: 21px; font-size: 13px; }
body.desk .pill.more { font-size: 12px; }

#deskBelow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px !important; }
.dcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.dcard-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.dcard-h svg { width: 18px; height: 18px; color: var(--acc); }
#dsLegend { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.lg { display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; }
.lg input { accent-color: var(--acc); width: 16px; height: 16px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; }
.up { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 9px 4px; border-bottom: 1px solid #f2f2f5; cursor: pointer; border-radius: 8px; }
.up:last-child { border-bottom: 0; }
.up:hover { background: #fafafa; }
.up b { flex: 1; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.up b i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.up-d { font-size: 13px; color: #8e8e93; white-space: nowrap; }
.up-n { font-size: 12px; color: #8e8e93; background: #f2f2f5; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.up-n.now { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.ds-none { font-size: 13.5px; color: #8e8e93; padding: 6px 2px; }

/* 右欄 */
#deskSide { grid-column: 2 !important; grid-row: 3 / span 20; display: flex; flex-direction: column; gap: 14px; }
#deskSide .dcard { padding: 14px 16px; }
#deskSide .dcard-h { margin-bottom: 8px; }
#dsLegend { gap: 8px 14px; }
#dsLegend .lg { font-size: 13.5px; }
#dsToday { padding: 2px 0 6px !important; max-height: calc(var(--vh, 1vh) * 40); overflow: auto; }
body.desk #calDay { background: none; border: 0; min-height: 0; }
body.desk #calDay .daytitle { padding: 14px 18px 8px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
body.desk #calDay .daytitle.sm { font-size: 13px; padding-top: 10px; }
.today-tag { font-size: 12px; font-weight: 600; color: var(--acc); background: var(--acc-soft); padding: 2px 8px; border-radius: 99px; }
body.desk #calDay .empty { padding: 10px 18px 14px !important; }
.ds-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ds-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 2px 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 13px; color: #3a3a3c; cursor: pointer; }
.ds-quick button:hover { border-color: var(--acc); color: var(--acc); }
.ds-quick img { width: 40px; height: 40px; object-fit: contain; }

/* 日、行程列表 */
body.desk #v-cal.dv-big #deskBelow { display: none; }
#dcBig:empty { display: none; }
#dcBig { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 8px 0 14px; }
.dv-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px; }
.dv-head b { font-size: 17px; }
.dv-all { display: flex; align-items: center; gap: 8px; padding: 6px 18px 12px 70px; border-bottom: 1px solid var(--line); position: relative; }
.dv-all span { position: absolute; left: 18px; font-size: 12px; color: #8e8e93; }
.dv-chip { border: 0; border-radius: 7px; padding: 4px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dv-grid { position: relative; margin: 0 18px; }
.dv-hr { height: 56px; border-top: 1px solid #f2f2f5; position: relative; }
.dv-hr span { position: absolute; top: -8px; left: 0; font-size: 11.5px; color: #8e8e93; background: #fff; padding-right: 6px; }
.dv-ev { position: absolute; left: 56px; right: 8px; min-height: 44px; border: 0; border-left: 3px solid; border-radius: 8px; padding: 6px 10px; text-align: left; font: inherit; font-size: 13.5px; cursor: pointer; }
.dv-ev small { display: block; opacity: .75; font-size: 12px; }
.dl-day { display: flex; gap: 18px; padding: 12px 18px; border-bottom: 1px solid #f2f2f5; }
.dl-day:last-child { border-bottom: 0; }
.dl-d { width: 46px; text-align: center; flex: none; }
.dl-d b { display: block; font-size: 22px; }
.dl-d small { font-size: 12px; color: #8e8e93; }
.dl-day.today .dl-d b { color: var(--acc); }
.dl-evs { flex: 1; min-width: 0; }
.dv-empty { text-align: center; padding: 50px 0; color: #8e8e93; }
.dv-empty img { width: 120px; display: block; margin: 0 auto 10px; }
.dv-empty b { display: block; color: #1c1c1e; font-size: 16px; margin-bottom: 4px; }

/* ---------- 其他頁 ---------- */
body.desk #linkList { column-count: 3; column-gap: 16px; padding: 0; }
body.desk #linkList .sec { break-inside: avoid; margin: 0 0 16px; width: auto; }
body.desk #linkList > :not(.sec) { column-span: all; }
body.desk .embeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; }
body.desk .embeds .embed { margin: 0; }
body.desk #accMode { display: none; }
body.desk .chip.on, body.desk .seg button.on { color: var(--acc); }

/* 彈出視窗改在畫面中間 */
body.desk .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; height: auto; max-height: calc(var(--vh, 1vh) * 84); border-radius: 18px; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; box-shadow: 0 24px 60px rgba(0,0,0,.22); z-index: 60; }
body.desk .sheet.on { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; }
body.desk .backdrop { z-index: 55; }
body.desk .sheet-body { overflow: auto; }
body.desk .composer { left: 196px; bottom: 0; padding: 12px max(28px, calc(50% - 590px)); }
body.desk .chat-view .chat-head { margin-top: 0; }
body.desk .chat-more { display: none; }
body.desk .day.today .n, body.desk .day.sel.today .n { background: var(--acc); }
body.desk .day.sel:not(.today) .n { background: #1c1c1e; }

/* ===================== 收藏、記帳、加班、提醒、輸入（電腦版） ===================== */
body.desk #v-links > :not(.dpage), body.desk #v-acc > :not(.dpage), body.desk #v-rem > :not(.dpage) { display: none !important; }
body.desk .dpage[hidden] { display: none !important; }
body.desk .view > .dpage { max-width: 1440px; }
.dp-head { display: flex; align-items: center; gap: 14px; padding: 22px 0 14px; }
.dp-head .h-ill { width: 52px; height: 52px; object-fit: contain; }
.dp-head h1 { font-size: 28px; font-weight: 700; }
.dp-head p { color: #6e6e73; font-size: 14px; margin-top: 2px; }
.dp-r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.dp-btn { height: 40px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap; }
.dp-btn svg, .dl-chip svg { width: 16px; height: 16px; }
.dp-btn:hover { border-color: var(--acc); color: var(--acc); }
.dp-mini { margin-left: auto; border: 1px solid var(--line); background: #fff; color: var(--acc); font: inherit; font-size: 12.5px; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.dl-search { flex: 1; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 11px; background: #f2f2f5; color: #8e8e93; }
.dl-search svg { width: 17px; height: 17px; }
.dl-search input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14px; color: #1c1c1e; min-width: 0; }
.dl-search.sm { height: 34px; flex: none; width: 220px; }
.dl-search:focus-within { background: #fff; box-shadow: 0 0 0 1px var(--acc); }
.dpage select { height: 40px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font: inherit; font-size: 14px; padding: 0 10px; color: #1c1c1e; }
.dt-tools select { height: 34px; }

/* 收藏 */
.dl-tool { display: flex; gap: 10px; align-items: center; padding: 12px; }
.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dl-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: #3a3a3c; }
.dl-chip span { color: #8e8e93; font-size: 12.5px; }
.dl-chip.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); font-weight: 600; }
.dl-chip.on span { color: var(--acc); }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dl-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; cursor: pointer; transition: box-shadow .15s, border-color .15s; min-width: 0; }
.dl-card:hover { border-color: #d6e6ff; box-shadow: 0 6px 18px rgba(0,60,140,.08); }
.dl-thumb { position: relative; width: 76px; height: 76px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 28px; font-weight: 700; overflow: hidden; }
.dl-thumb img { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; background: inherit; box-shadow: 0 0 0 20px var(--card); border-radius: 10px; }
.dl-thumb img { box-shadow: none; background: #fff; padding: 6px; width: 48px; height: 48px; border-radius: 12px; }
.dl-body { flex: 1; min-width: 0; }
.dl-top { display: flex; align-items: flex-start; gap: 6px; }
.dl-top b { flex: 1; font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dl-acts { display: flex; gap: 2px; opacity: .55; }
.dl-card:hover .dl-acts { opacity: 1; }
.dl-acts button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: #6e6e73; cursor: pointer; display: grid; place-items: center; }
.dl-acts button:hover { background: #f2f2f5; color: var(--acc); }
.dl-acts button[data-a="del"]:hover { color: #ff3b30; }
.dl-acts svg { width: 16px; height: 16px; }
.dl-dom { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--acc); margin: 3px 0 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-dom svg { width: 13px; height: 13px; flex: none; }
.dl-body p { font-size: 13px; color: #6e6e73; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 6px; }
.dl-tags span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 8px; border-radius: 7px; font-weight: 600; }
.dl-tags svg { width: 12px; height: 12px; }
.dl-grid .dv-empty { grid-column: 1 / -1; background: #fff; border-radius: 16px; border: 1px solid var(--line); }

/* 記帳、加班 */
.dp-nav { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.dp-month { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 15px; }
.dp-month svg { width: 17px; height: 17px; color: var(--acc); }
.dp-nav small { color: #8e8e93; font-size: 13px; }
.da-sum { display: grid; grid-template-columns: repeat(3, 1fr) 150px; gap: 14px; align-items: center; margin-bottom: 16px; }
.da-box { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; }
.da-box small { display: block; font-size: 13.5px; color: #3a3a3c; margin-bottom: 2px; }
.da-box b { font-size: 26px; letter-spacing: -.3px; }
.da-box.in { background: #eaf3ff; } .da-box.in b, .da-box.in .ds-i { color: #007aff; }
.da-box.out { background: #fff0f0; } .da-box.out b, .da-box.out .ds-i { color: #ff3b30; }
.da-box.bal { background: #eaf8ef; } .da-box.bal b, .da-box.bal .ds-i { color: #1fa851; }
.ds-i { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; color: var(--acc); }
.ds-i svg { width: 22px; height: 22px; }
.da-art { width: 120px; justify-self: center; }
.da-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.da-side { display: flex; flex-direction: column; gap: 14px; }
.da-table { padding: 0; overflow: hidden; }
.dt-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dt-h b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dt-h b svg { width: 18px; height: 18px; color: var(--acc); }
.dt-h b small { color: #8e8e93; font-weight: 400; font-size: 13px; }
.dt-tools { margin-left: auto; display: flex; gap: 8px; }
.dtab { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtab th { text-align: left; font-weight: 600; font-size: 13px; color: #6e6e73; background: #fafafc; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtab th[data-s] { cursor: pointer; user-select: none; }
.dtab th[data-s]:hover { color: var(--acc); }
.dtab th.on { color: var(--acc); }
.dtab th.on::after { content: attr(data-dir); margin-left: 4px; }
.dtab td { padding: 12px 16px; border-bottom: 1px solid #f2f2f5; vertical-align: middle; }
.dtab tbody tr:last-child td { border-bottom: 0; }
.dtab tbody tr[data-id] { cursor: pointer; }
.dtab tbody tr[data-id]:hover { background: #f7faff; }
.dtab td small { display: block; color: #8e8e93; font-size: 12px; margin-top: 2px; }
.dtab td b { font-weight: 600; }
.dtab .r { text-align: right; }
.dtab .mute { color: #6e6e73; }
.dtab .amt { font-weight: 600; color: #ff3b30; white-space: nowrap; }
.dtab .amt.in { color: #1fa851; }
.dtab tr.none td { text-align: center; color: #8e8e93; padding: 40px 0; }
.dchip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; background: #f2f2f5; color: #3a3a3c; border: 0; font-family: inherit; white-space: nowrap; }
.dchip.hol { background: #fff0f0; color: #ff3b30; }
.da-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.da-cats .dchip { text-align: left; padding: 8px 10px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.da-rule { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #f2f2f5; color: #3a3a3c; flex-wrap: wrap; }
.da-rule:last-child { border-bottom: 0; }
.da-rule > span:first-of-type { color: #aeaeb2; }
.do-stats { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dstat { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.dstat small { display: block; font-size: 13px; color: #6e6e73; margin-bottom: 3px; }
.dstat b { font-size: 22px; letter-spacing: -.2px; }
.dstat .ds-i { background: var(--acc-soft); width: 40px; height: 40px; }
.dstat.big { background: var(--acc-soft); border-color: transparent; }
.dstat.big img { width: 64px; }
.dstat.big b { font-size: 28px; color: #1c1c1e; }
.dstat.warn b, .dstat.warn .ds-i { color: #ff3b30; } .dstat.warn .ds-i { background: #fff0f0; }
.dstat.ok b { font-size: 17px; color: #1fa851; } .dstat.ok .ds-i { background: #eaf8ef; color: #1fa851; }
.dtab .wd { color: #6e6e73; } .dtab .wd.hol { color: #ff3b30; }
.dtab .ot-sw { margin-left: auto; }
body.desk .dtab .ot-sw { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font: inherit; }

/* 提醒 */
.dr-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dr-top .dc-seg { margin-left: 0; }
.dr-top .dl-search { margin-left: auto; }
.dr-stats { grid-template-columns: 1fr 1fr 2fr; }
.dstat.wide { position: relative; overflow: hidden; }
.dstat.wide b { font-size: 17px; }
.dstat.wide img { position: absolute; right: 10px; bottom: -6px; width: 78px; opacity: .95; }
.dr-cols { display: grid; gap: 14px; align-items: start; }
.dr-col { padding: 0; overflow: hidden; }
.dr-h { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--acc-soft); color: var(--acc); font-weight: 700; font-size: 15px; }
.dr-h svg { width: 18px; height: 18px; }
.dr-h span { font-weight: 500; }
.dr-col .ds-none { padding: 16px; }
.dr-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-bottom: 1px solid #f2f2f5; background: none; padding: 12px 16px; font: inherit; text-align: left; cursor: pointer; }
.dr-row:last-child { border-bottom: 0; }
.dr-row:hover { background: #f7faff; }
.dr-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; flex: none; }
.dr-t { flex: 1; min-width: 0; }
.dr-t b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dr-t small { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #8e8e93; margin-top: 2px; }
.dr-t small svg { width: 12px; height: 12px; }
.dr-next { font-size: 12px; font-weight: 600; color: var(--acc); background: var(--acc-soft); padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.dr-next.soon { color: #ff3b30; background: #fff0f0; }

/* 輸入 */
body.desk #v-chat.on { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr auto; column-gap: 18px; padding-left: max(32px, calc((var(--vw, 100vw) - 196px - 1440px) / 2)); padding-right: max(32px, calc((var(--vw, 100vw) - 196px - 1440px) / 2)); height: calc(var(--vh, 1vh) * 100); padding-bottom: 20px; background: #f6f6f8; }
body.desk #v-chat > * { max-width: none; margin: 0; }
body.desk #v-chat .chat-head { display: none; }
.dchat-h { grid-column: 1 / -1; }
body.desk #v-chat .chat-list { grid-column: 1; grid-row: 2; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 18px 22px; overflow-y: auto; min-height: 0; }
body.desk #v-chat .composer { position: static; grid-column: 1; grid-row: 3; background: #fff; border: 1px solid var(--line); border-top: 1px solid #f2f2f5; border-radius: 0 0 18px 18px; padding: 12px 14px; }
body.desk #v-chat .composer textarea { background: #f2f2f5; box-shadow: none; font-size: 15px; }
body.desk #v-chat .composer button { background: var(--acc); }
body.desk .me { background: var(--acc-soft); color: #0a3d80; font-size: 15px; max-width: 60%; }
body.desk .reply { width: auto; min-width: 360px; max-width: 70%; box-shadow: none; border: 1px solid var(--line); }
#dChatSide { grid-column: 2; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.dc-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: #f7f8fa; margin-bottom: 7px; font-size: 13px; }
.dc-row .ds-i { width: 32px; height: 32px; background: var(--acc-soft); }
.dc-row .ds-i svg { width: 17px; height: 17px; }
.dc-row b { width: 34px; font-size: 14px; }
.dc-row > span:last-child { display: flex; align-items: center; gap: 5px; color: #3a3a3c; }
.dc-row > span:last-child svg { width: 14px; height: 14px; color: var(--acc); }
.dc-rec { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f2f2f5; }
.dc-rec:last-child { border-bottom: 0; }
.dc-rec .ds-i { width: 34px; height: 34px; }
.dc-rec .ds-i svg { width: 18px; height: 18px; }
.dc-rec div { flex: 1; min-width: 0; }
.dc-rec b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dc-rec small { font-size: 12px; color: #8e8e93; }
.dc-rec time { font-size: 12px; color: #8e8e93; }

/* 收藏：跟手機一樣分區塊（每個分類一張卡，自動排成三欄） */
.dl-secs { column-count: 3; column-gap: 16px; margin-top: 16px; }
@media (max-width: 1280px) { .dl-secs { column-count: 2; } }
.dl-sec { break-inside: avoid; background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 0 0 16px; overflow: hidden; }
.dl-sec-h { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; font: inherit; padding: 12px 14px; cursor: pointer; text-align: left; border-bottom: 1px solid #f2f2f5; }
.dl-sec-h:hover { background: #fafbfd; }
.dl-sec-h b { font-size: 16px; }
.dl-pin { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dl-pin svg { width: 16px; height: 16px; }
.dl-n { font-size: 12.5px; color: #8e8e93; background: #f2f2f5; border-radius: 99px; padding: 2px 8px; }
.dl-fold { margin-left: auto; color: #aeaeb2; transition: transform .2s; }
.dl-sec.closed .dl-fold { transform: rotate(180deg); }
.dl-sec.closed .dl-rows { display: none; }
.dl-sec.closed .dl-sec-h { border-bottom: 0; }
.dl-rows { padding: 4px 6px 6px; }
.dl-secs .dl-card { display: flex; align-items: center; gap: 11px; padding: 8px; border: 0; border-radius: 10px; box-shadow: none; }
.dl-secs .dl-card:hover { background: #f5f8ff; box-shadow: none; }
.dl-fav { position: relative; width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 15px; overflow: hidden; }
.dl-fav img { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; padding: 7px; background: #fff; border-radius: 9px; box-sizing: border-box; border: 1px solid #eef0f4; }
.dl-tt { flex: 1; min-width: 0; }
.dl-tt b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-tt small { display: block; font-size: 12px; color: #8e8e93; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-secs .dl-acts { opacity: 0; }
.dl-secs .dl-card:hover .dl-acts { opacity: 1; }
.dl-secs .dv-empty { column-span: all; background: #fff; border-radius: 16px; border: 1px solid var(--line); }

/* ===== 依 GPT 檢查建議微調（11/17） ===== */
body.desk { --line: #e5e5ea; background: #f5f6fa; color: #1d1d1f; }
body.desk .view.white, body.desk #v-chat.on { background: #f5f6fa; }
.dp-head h1, body.desk .large h1, body.desk #v-cal #calTitle::before { font-size: 26px; }
.dp-head .h-ill, body.desk .large .h-ill { width: 44px; height: 44px; }
.dcard-h { font-size: 16px; }
.dc-add { height: 40px; }
.dc-arrow, .dc-pill { height: 36px; min-width: 36px; }
.dtab, .dtab td { font-variant-numeric: tabular-nums; }
.dtab .amt { text-align: right; }
/* 日曆：今天實心藍圈、選到的日子淡藍底；右欄 324px；行事曆顯示一列一個 */
body.desk #v-cal.on { grid-template-columns: minmax(0, 1fr) 324px; column-gap: 24px; }
body.desk .day.sel:not(.today) .n { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
#dsLegend { flex-direction: column; gap: 9px; }
/* 收藏 */
.dl-sec-h { min-height: 44px; padding: 8px 14px; }
.dl-secs .dl-card { min-height: 52px; padding: 8px 8px; }
.dl-tt b { font-weight: 600; }
.dl-tt small { color: #6e6e73; }
.dl-n { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.dl-fav, .dl-fav img { width: 28px; height: 28px; }
.dl-fav img { padding: 5px; }
.dl-acts button { width: 32px; height: 32px; }
/* 表格右邊的編輯、刪除 */
.dtab th.ops, .dtab td.ops { width: 84px; padding-left: 0; padding-right: 10px; text-align: right; }
.row-acts { display: inline-flex; gap: 2px; opacity: .35; }
.dtab tr:hover .row-acts { opacity: 1; }
.row-acts button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; color: #6e6e73; cursor: pointer; display: grid; place-items: center; }
.row-acts button:hover { background: #eef3ff; color: var(--acc); }
.row-acts button[data-a="del"]:hover { background: #fff0f0; color: #ff3b30; }
.row-acts svg { width: 16px; height: 16px; }
.dt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 16px; border-top: 1px solid #f2f2f5; font-size: 13px; color: #6e6e73; }
.dt-pager:empty { display: none; }
.dt-pager button:disabled { opacity: .35; cursor: default; }
.da-box { min-height: 90px; box-sizing: border-box; }
.da-box b { font-size: 28px; }
.da-box small { font-size: 13px; }
/* 加班 */
.do-stats .dstat { min-height: 104px; box-sizing: border-box; }
.dstat b { font-size: 26px; }
.dstat small { font-size: 13px; }
button.dstat { font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.dstat:hover { border-color: #ffc2c0; }
button.dstat.ok:hover { border-color: #b9e6c8; }
.dstat.sel { box-shadow: 0 0 0 2px #ff3b30 inset; }
.ot-tab th:nth-child(1) { width: 20%; } .ot-tab th:nth-child(2) { width: 15%; } .ot-tab th:nth-child(3) { width: 25%; } .ot-tab th:nth-child(4) { width: 15%; }
.ot-st { width: 100px; height: 36px; border-radius: 10px; border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #ececf0; color: #3a3a3c; transition: background .15s; }
.ot-st:hover { background: #e2e2e8; }
.ot-st.on { background: var(--acc); color: #fff; }
.ot-st.on:hover { filter: brightness(1.06); }
.do-hint { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #f2f2f5; font-size: 13.5px; }
.do-hint:empty { display: none; }
.do-hint svg { width: 16px; height: 16px; }
.do-hint.warn { color: #c4302b; background: #fff8f7; }
.do-hint.ok { color: #1a8c45; background: #f4fbf6; }
/* 提醒 */
.dr-stats .dstat { min-height: 88px; box-sizing: border-box; }
.dr-top .dl-search.sm { width: 260px; height: 40px; }
.dr-next { width: 100px; box-sizing: border-box; text-align: center; flex: none; }
.dr-t small { font-size: 12.5px; color: #6e6e73; }
/* 輸入：結果卡片變矮，按鈕放右邊 */
body.desk #v-chat .chat-list .reply { display: flex; flex-wrap: wrap; align-items: center; margin-top: 8px; }
body.desk #v-chat .chat-list .me + .reply { margin-top: 8px; }
body.desk #v-chat .chat-list .reply + .me { margin-top: 24px; }
body.desk .reply .main { flex: 1; width: auto; min-width: 0; padding: 9px 12px; }
body.desk .reply .bx { width: 36px; height: 36px; }
body.desk .reply .m { font-size: 15px; }
body.desk .reply .acts { border-top: 0; gap: 6px; padding-right: 10px; }
body.desk .reply .acts button { flex: none; padding: 6px 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--acc); background: #fff; }
body.desk .reply .acts button + button { border-left: 1px solid var(--line); }
body.desk .reply .cats, body.desk .reply .hits { flex-basis: 100%; }
body.desk #v-chat .composer { min-height: 64px; box-sizing: border-box; }
.dc-row { padding: 6px 8px; margin-bottom: 5px; }
.dc-row .ds-i { width: 28px; height: 28px; }

/* 待辦 */
.td-main { display: grid; grid-template-columns: minmax(0, 1fr) 324px; gap: 20px; align-items: start; }
.td-list { padding: 6px 0; }
.td-g + .td-g { border-top: 1px solid #f2f2f5; }
.td-gh { display: flex; align-items: center; gap: 8px; padding: 14px 18px 6px; }
.td-gh b { font-size: 16px; }
.td-gh small { margin-left: auto; color: #aeaeb2; font-size: 12px; }
.td-g.overdue .td-gh b { color: #ff3b30; }
.td-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--acc); color: #fff; }
.td-tag.soft { background: var(--acc-soft); color: var(--acc); }
.td-tag.warn { background: #fff0f0; color: #ff3b30; }
.td-row { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; font: inherit; text-align: left; padding: 9px 18px; cursor: pointer; }
.td-row:hover { background: #f7faff; }
.td-ck { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c7c7cc; flex: none; display: grid; place-items: center; color: #fff; transition: all .15s; }
.td-row:hover .td-ck { border-color: var(--acc); }
.td-ck svg { width: 14px; height: 14px; stroke-width: 3; }
.td-row.done .td-ck { background: #34c759; border-color: #34c759; }
.td-tx { font-size: 15px; line-height: 1.4; }
.td-row.done .td-tx { color: #aeaeb2; text-decoration: line-through; }
.td-side { display: flex; flex-direction: column; gap: 14px; }
.td-side .dcard .td-row { padding: 7px 4px; }
.td-stats { grid-template-columns: 1fr 1fr; margin: 0; }
.td-stats .dstat { min-height: 84px; }
.td-opt { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 12px 16px; }
.td-opt input { accent-color: var(--acc); width: 16px; height: 16px; }
.td-notice { font-size: 14px; padding: 8px 10px; background: #fff8e6; border-radius: 10px; margin-bottom: 6px; color: #7a5400; }
.td-at { text-align: right; padding: 0 4px; }
.td-setup { padding: 22px 24px; max-width: 640px; }
.td-setup b { font-size: 17px; }
.td-setup p { color: #6e6e73; font-size: 14px; margin: 8px 0 14px; line-height: 1.6; }
.td-setrow { display: flex; gap: 10px; }
.td-setrow input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; font: inherit; font-size: 15px; }
.td-err { color: #ff3b30 !important; }
.td-errcard { display: flex; align-items: center; gap: 8px; color: #c4302b; background: #fff8f7; border-color: #ffd6d3; margin-bottom: 14px; font-size: 14px; }
.td-errcard svg { width: 18px; height: 18px; flex: none; }
.td-stats .dstat b { font-size: 26px; }

.dt-size { font: 600 15px/1 -apple-system, system-ui, sans-serif !important; color: #3a3a3c; }
