/* 一桌网页端。配色与版式按 iOS 人机界面指南的系统色（浅色 / 深色跟随系统，与手机 App 一致；客户 10/10bz：「原来深色绿色可以换掉，用 iOS 最佳实践配色」）。 */
:root {
  color-scheme: light;
  --bg: #f2f2f7; --card: #ffffff; --card2: #e5e5ea; --hover: #f2f2f7; --ink: #000000; --dim: rgba(60,60,67,.6); --faint: rgba(60,60,67,.3); --line: rgba(60,60,67,.18);
  --acc: #007aff; --acc-dim: rgba(0,122,255,.12); --on-acc: #ffffff; --green: #34c759; --err: #ff3b30; --warn: #ff9500; --blue: #007aff; --purple: #af52de; --teal: #30b0c7;
  --bar: rgba(249,249,249,.86); --scrim: rgba(0,0,0,.3); --sheet: #f2f2f7; --shadow: 0 8px 30px rgba(0,0,0,.12);
  --tabbar-h: 56px; --rail-w: 232px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #000000; --card: #1c1c1e; --card2: #2c2c2e; --hover: #2c2c2e; --ink: #ffffff; --dim: rgba(235,235,245,.6); --faint: rgba(235,235,245,.3); --line: rgba(84,84,88,.6);
    --acc: #0a84ff; --acc-dim: rgba(10,132,255,.18); --on-acc: #ffffff; --green: #30d158; --err: #ff453a; --warn: #ff9f0a; --blue: #0a84ff; --purple: #bf5af2; --teal: #40c8e0;
    --bar: rgba(30,30,30,.86); --scrim: rgba(0,0,0,.5); --sheet: #1c1c1e; --shadow: 0 8px 30px rgba(0,0,0,.5);
  }
}
* { box-sizing: border-box; margin: 0; }
.student-batch select { width:100%; max-width:100%; }
.student-batch .lbl { display:block; }
.batch-summary, .batch-summary label, .batch-date { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.batch-summary { justify-content:space-between; }
.student-batch input[type="checkbox"] { width:20px; height:20px; flex-shrink:0; }
.batch-students { margin-top:10px; max-height:38dvh; overflow:auto; border:1px solid var(--line); border-radius:10px; }
.batch-student { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding:10px; min-height:44px; border-bottom:1px solid var(--line); }
.batch-student .small { margin-left:auto; }
.batch-review { padding:10px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.batch-date { margin-top:12px; }
.batch-date input { width:auto; max-width:100%; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { background: var(--acc-dim); color: var(--acc); border: none; border-radius: 10px; padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(.96); }
button:active:not(:disabled) { opacity: .6; }
button.pri { background: var(--acc); color: var(--on-acc); font-weight: 600; }

button.danger { color: var(--err); background: rgba(255,59,48,.12); }
button.link { background: none; color: var(--blue); padding: 4px 6px; font-weight: 400; }
button.mini { padding: 3px 9px; font-size: 13px; border-radius: 8px; }
a.mini { display: inline-block; padding: 3px 9px; font-size: 13px; font-weight: 500; border-radius: 8px; background: var(--acc-dim); color: var(--acc); text-decoration: none; line-height: 1.47; }
button:disabled { opacity: .4; cursor: default; }
input, textarea, select { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 16px; width: 100%; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
select { background: var(--card2); border: none; color: var(--ink); font-size: 13px; padding: 2px 8px; border-radius: 7px; }
textarea { resize: vertical; min-height: 88px; }
select { width: auto; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
a { color: var(--blue); }
.center { min-height: 100dvh; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.shell { min-height: 100dvh; }
main { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
.page { padding: 14px max(16px, env(safe-area-inset-left)) 24px; max-width: 820px; margin: 0 auto; }
.head { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 12px; flex-wrap: wrap; }
.head h1 { font-size: 34px; font-weight: 700; letter-spacing: .01em; }
.head .sub { color: var(--dim); font-size: 14px; }
.head .sp { flex: 1; }
h2 { font-size: 13px; color: var(--dim); font-weight: 400; text-transform: uppercase; margin: 24px 16px 7px; display: flex; gap: 8px; align-items: baseline; }
h2 .n { color: var(--faint); font-weight: 400; }
.hint { color: var(--dim); font-size: 13px; margin: 7px 16px 0; }
.card { background: var(--card-glass); border: 1px solid var(--card-line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 16px; cursor: pointer; position: relative; }
.row + .row::before, .more::before, .kv + .kv::before { content: ''; position: absolute; left: 16px; right: 0; top: 0; border-top: .5px solid var(--line); }

.row:hover { background: var(--hover); }
.row .main { flex: 1; min-width: 0; }
.row .t { overflow-wrap: anywhere; }
.row.faded { opacity: .55; }
.row .quick { display: flex; gap: 6px; opacity: 0; transition: opacity .12s; }
.row:hover .quick { opacity: 1; }
@media (hover: none) { .row .quick { display: none; } }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; font-size: 12.5px; color: var(--dim); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: var(--card2); color: var(--dim); white-space: nowrap; font-weight: 500; }
.chip.blue { background: var(--acc-dim); color: var(--blue); }
.chip.green { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.chip.red { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
.chip.warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chip.teal { background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.chip.purple { background: color-mix(in srgb, var(--purple) 15%, transparent); color: var(--purple); }
button.chip { border: none; cursor: pointer; }
.more { display: block; width: 100%; text-align: left; border: none; border-radius: 0; background: none; color: var(--blue); padding: 11px 16px; font-size: 15px; position: relative; }
.empty { color: var(--dim); padding: 18px 14px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); color: var(--ink); padding: 10px 18px; border-radius: 999px; font-size: 15px; display: flex; gap: 12px; align-items: center; z-index: 60; box-shadow: var(--shadow); }
.toast button { padding: 2px 10px; font-size: 13px; }
.banner { background: color-mix(in srgb, var(--warn) 14%, var(--card)); color: var(--ink); padding: 11px 16px; border-radius: 10px; font-size: 15px; margin: 8px 0; }
.banner.ok { background: color-mix(in srgb, var(--green) 14%, var(--card)); }
.banner.err { background: color-mix(in srgb, var(--err) 12%, var(--card)); color: var(--err); }
/* 底部页签（手机）/ 左导轨（宽屏） */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: .5px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 6px 0 4px; color: #999; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tabbar svg { width: 26px; height: 26px; }
.tabbar a span { font-size: 10px; font-weight: 500; }
.tabbar a.on { color: var(--acc); }
.tabbar .brand { display: none; }
@media (min-width: 1100px) {
  main { padding-left: var(--rail-w); padding-bottom: 32px; }
  .tabbar { top: 0; right: auto; width: var(--rail-w); flex-direction: column; border-top: none; border-right: .5px solid var(--line); padding: 20px 10px; gap: 2px; background: var(--bg); backdrop-filter: none; }
  .tabbar .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; padding: 4px 10px 18px; color: var(--ink); }
  .tabbar .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .tabbar a { flex: none; flex-direction: row; gap: 12px; padding: 8px 12px; border-radius: 9px; color: var(--ink); }
  .tabbar a svg { width: 22px; height: 22px; color: var(--acc); }
  .tabbar a span { font-size: 15px; font-weight: 400; }
  .tabbar a.on { background: var(--acc); color: #fff; }
  .tabbar a.on svg { color: #fff; }
  .toast { bottom: 24px; margin-left: calc(var(--rail-w) / 2); }
}
/* 弹层：手机底部抽屉，宽屏居中 */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--sheet); border-radius: 14px 14px 0 0; width: 100%; max-width: 620px; max-height: 88dvh; overflow: auto; padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 18px; max-height: 84dvh; } }
.sheet h3 { font-size: 18px; margin-bottom: 6px; overflow-wrap: anywhere; }
.sheet .sec { margin-top: 16px; }
.sheet .sec > .lbl { color: var(--dim); font-size: 13px; margin-bottom: 7px; text-transform: uppercase; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.home-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 12px; }
.home-link-card { padding: 14px; min-width: 0; }
.home-link-heading, .home-link-bottom, .home-links-save { display: flex; align-items: center; gap: 8px; }
.home-link-heading .sp, .home-links-save .sp { flex: 1; }
.home-link-picture { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--card2); }
.home-link-number, .home-link-field { color: var(--dim); font-size: 14px; }
.home-link-heading button { min-width: 40px; min-height: 40px; padding: 4px 10px; }
.home-link-field { display: grid; gap: 5px; margin-top: 12px; }
.home-link-field input { min-width: 0; width: 100%; }
.home-link-bottom { justify-content: space-between; flex-wrap: wrap; margin-top: 14px; }
.home-link-bottom select, .home-page-picker select { min-height: 40px; max-width: 100%; font-size: 15px; }
.home-link-bottom button { min-height: 40px; }
.home-links-actions { padding: 14px; margin-top: 12px; }
.home-links-actions .hint { margin-bottom: 0; }
.home-page-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.home-page-picker select { min-width: 0; width: min(100%, 300px); }
.home-links-save { flex-wrap: wrap; margin-top: 12px; }
.sheet .close { float: right; }
.list-pick { max-height: 300px; overflow: auto; background: var(--card); border-radius: 10px; margin-top: 8px; }
.list-pick button { display: block; width: 100%; text-align: left; border: none; border-top: .5px solid var(--line); border-radius: 0; background: none; color: var(--ink); font-size: 15px; font-weight: 400; padding: 10px 14px; }
.list-pick button:first-child { border-top: none; }
.list-pick button.cur { color: var(--blue); font-weight: 600; }
.composer { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.composer textarea { border: none; background: transparent; padding: 4px; min-height: 96px; box-shadow: none; }
.composer .bar { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 13px; flex-wrap: wrap; }
.composer .bar select { min-width: 0; max-width: 100%; }
.composer .bar .sp { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.kv { display: flex; gap: 10px; align-items: center; padding: 11px 16px; position: relative; }

.kv .k { flex: 1; }
.kv .v { color: var(--dim); font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot.bad { background: var(--warn); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
.toolbar input { flex: 1; min-width: 160px; width: auto; }
.icon { font-size: 18px; width: 22px; text-align: center; flex: none; }
.small { font-size: 13px; color: var(--dim); }
.reason { font-size: 13px; color: var(--dim); margin-top: 3px; }
.dev { font-size: 12.5px; color: var(--warn); margin-top: 3px; }
.tgt { font-size: 14px; color: var(--blue); margin-top: 2px; }

button { white-space: nowrap; }
.wide-only { display: none; }
@media (min-width: 700px) { .wide-only { display: inline; } }
@media (max-width: 699px) { .row .quick { display: none; } }
.card.otherline { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; color: var(--ink); text-decoration: none; }
.card.otherline .small { color: var(--dim); }
.pad { padding: 10px 16px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.pad:first-child { border-top: 0; }
details.pad summary { cursor: pointer; }
/* 问知识库 */
.kb-turn { margin: 14px 0 12px; }
.kb-q { justify-self: end; margin: 0 0 6px auto; max-width: 85%; background: var(--acc); color: var(--on-acc); padding: 8px 12px; border-radius: 14px 14px 4px 14px; width: fit-content; white-space: pre-wrap; }
.kb-a { white-space: pre-wrap; line-height: 1.6; }
.kb-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
button.cite { background: none; border: 0; padding: 0 1px; color: var(--acc); font-size: .85em; vertical-align: super; cursor: pointer; }
pre.kb-note { white-space: pre-wrap; word-break: break-word; font: 14px/1.6 var(--font, system-ui); background: var(--card2); padding: 12px; border-radius: 10px; max-height: 60vh; overflow: auto; }
/* 项目全貌（OD.PROJ）：宽屏左导轨有「项目」；手机在「全部」里分「事项 / 项目」 */
.tabbar a.rail-only { display: none; }
.seg { display: flex; background: var(--card2); border-radius: 9px; padding: 2px; margin: 4px 0 8px; }
.seg a { flex: 1; text-align: center; padding: 6px 0; border-radius: 7px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.seg a.on { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
@media (max-width: 1099px) { .tabbar a.on-narrow { color: var(--acc); } }
@media (min-width: 1100px) { .tabbar a.rail-only { display: flex; } .narrow-only { display: none; } }
a.link { text-decoration: none; font-size: 15px; }
.page.wide { max-width: 1240px; }
.cols { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.cols h2 { margin-left: 4px; }
@media (min-width: 1100px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.row.static { cursor: default; }
.chip.wrap { white-space: normal; }
/* 图卦（OD.DAILY） */
.dcard { padding: 14px 16px; display: grid; gap: 10px; margin-bottom: 12px; }
.dtext { white-space: pre-wrap; line-height: 1.6; }
.dimg { max-width: 100%; border-radius: 8px; display: block; }
.dimg-bad { font-size: 13px; color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--card)); border-radius: 8px; padding: 8px 12px; }
.toolbar a.chip { text-decoration: none; }
.kbe { padding: 8px 0; border-top: 1px solid var(--line); }
.kbe:first-of-type { border-top: none; }
pre.diff { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--card2); border-radius: 8px; padding: 8px 10px; margin-top: 6px; max-height: 50vh; overflow: auto; white-space: pre-wrap; word-break: break-word; }
pre.diff .add { background: color-mix(in srgb, var(--green) 18%, transparent); }
pre.diff .del { background: color-mix(in srgb, var(--err) 16%, transparent); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--err) 50%, transparent); }
pre.diff .gap { color: var(--dim); font-style: italic; }
a.row { color: inherit; text-decoration: none; }
.row .grip { flex: none; display: flex; align-items: center; align-self: stretch; padding: 0 8px 0 0; margin-left: -4px; color: var(--faint); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.row .grip:hover { color: var(--dim); }
.row.dragging { background: var(--hover); box-shadow: var(--shadow); position: relative; z-index: 2; opacity: .92; }
.composer.dropping { outline: 2px dashed var(--acc); outline-offset: -4px; }
.composer .shot { display: flex; align-items: flex-end; gap: 10px; }
.composer .shot img { max-height: 160px; max-width: min(100%, 320px); border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: var(--card2); }

/* 事项详情里的原图 */
.item-shot img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; border: 1px solid var(--line, rgba(127,127,127,.25)); }

/* 主页面「记一件」按钮（客户 10-07）：点一下打字、按住说话；放底部正中、玻璃感（客户 10-07：「记一记按钮放中间吧。玻璃感一点。」） */
:root { --glass-bg: rgba(255,255,255,.42); --glass-line: rgba(255,255,255,.75); --glass-shine: rgba(255,255,255,.55); --glass-shadow: 0 8px 28px rgba(0,0,0,.16), 0 1px 2px rgba(0,0,0,.08); }
@media (prefers-color-scheme: dark) { :root { --glass-bg: rgba(60,60,67,.38); --glass-line: rgba(255,255,255,.22); --glass-shine: rgba(255,255,255,.14); --glass-shadow: 0 8px 28px rgba(0,0,0,.55); } }
.qf { position: fixed; left: 50%; bottom: calc(var(--tabbar-h, 56px) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 35;
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--glass-line); color: var(--acc); font-size: 30px; line-height: 1; cursor: pointer;
  background: linear-gradient(160deg, var(--glass-shine), transparent 55%), var(--glass-bg);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .15s, background .15s; }
.qf:active { transform: translateX(-50%) scale(.96); }
.qf.rec { background: linear-gradient(160deg, rgba(255,255,255,.35), transparent 55%), rgba(255,59,48,.82); color: #fff; transform: translateX(-50%) scale(1.1); }
.qf.cancel { background: linear-gradient(160deg, rgba(255,255,255,.3), transparent 55%), rgba(142,142,147,.85); color: #fff; }
.qf:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.qf-panel { position: fixed; left: 50%; transform: translateX(-50%); width: min(460px, calc(100% - 36px)); bottom: calc(var(--tabbar-h, 56px) + 92px + env(safe-area-inset-bottom)); z-index: 35;
  background: var(--glass-bg); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--glass-shadow); }
.qf-hint { font-size: 13px; font-weight: 600; color: var(--err); } .qf-hint.off { color: var(--dim); }
.qf-live { margin-top: 4px; font-size: 16px; color: var(--ink); max-height: 8em; overflow: auto; }
/* 提示条让到按钮上方 */
.toast { bottom: calc(var(--tabbar-h, 56px) + 92px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) {
  .qf { bottom: 26px; left: calc(50% + var(--rail-w, 0px) / 2); }
  .qf-panel { bottom: 104px; left: calc(50% + var(--rail-w, 0px) / 2); }
  .toast { bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .qf { transition: none; } }
main { padding-bottom: calc(var(--tabbar-h) + 104px + env(safe-area-inset-bottom)); }
@media (min-width: 1100px) { main { padding-bottom: 112px; } }

/* 今天页迷你状态栏（客户 10-07） */
.mini-status { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; text-decoration: none; color: inherit; }
.mini-status .dots { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.mini-status .md { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--dim); }
.mini-status .md i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* 邮件原文（客户 10-07） */
.mail-body .mail-head { display: grid; gap: 2px; margin-bottom: 8px; color: var(--dim); word-break: break-all; }
.mail-body .mail-text { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.6; max-height: 60vh; overflow: auto; padding: 10px 12px; background: var(--hover); border-radius: 10px; }

/* 网络不通时的提示条（客户 10-07「不能太依赖网络」） */
.offline-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 40; max-width: min(92vw, 560px); padding: 8px 14px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: var(--ink); background: var(--card); border: 1px solid var(--warn); box-shadow: var(--shadow); text-align: center }
button.mini.on-green { background: rgba(52,199,89,.15); color: var(--green); }

/* 今天页顶上的两块磁贴（客户 10-07：ISJournal 入口照原型首页磁贴放显眼处） */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--card-glass); border: 1px solid var(--card-line); min-width: 0; backdrop-filter: blur(20px) saturate(170%); -webkit-backdrop-filter: blur(20px) saturate(170%); }
.tile:hover { border-color: var(--acc); }
.tile .ti { font-size: 26px; line-height: 1.1; }
.tile .tt { font-size: 17px; font-weight: 600; }
.tile .ts { font-size: 13px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.isj { background: linear-gradient(135deg, var(--tint-blue), transparent 70%), var(--card-glass); }
.tile.tg { background: linear-gradient(135deg, var(--tint-orange), transparent 70%), var(--card-glass); }
.recs3 .row .t { font-size: 15px; }

/* 统一玻璃风格（客户 10-07：「风格不太统一 要玻璃感 尺寸一致 都是圆角或者都是方角」）：卡片与磁贴同一种半透明玻璃、同一个圆角；
   页面底色叠几团很淡的光，玻璃才透得出层次 */
:root { --radius: 10px; --card-glass: rgba(255,255,255,.66); --card-line: rgba(255,255,255,.85); --tint-blue: rgba(0,122,255,.16); --tint-orange: rgba(255,149,0,.16);
  --glow-1: rgba(0,122,255,.12); --glow-2: rgba(255,149,0,.10); --glow-3: rgba(48,176,199,.09); }
@media (prefers-color-scheme: dark) { :root { --card-glass: rgba(44,44,46,.55); --card-line: rgba(255,255,255,.10); --tint-blue: rgba(10,132,255,.22); --tint-orange: rgba(255,159,10,.20);
  --glow-1: rgba(10,132,255,.22); --glow-2: rgba(255,159,10,.14); --glow-3: rgba(64,200,224,.12); } }
body { background: radial-gradient(1100px 620px at 0% 0%, var(--glow-1), transparent 62%), radial-gradient(900px 520px at 100% 18%, var(--glow-2), transparent 62%),
  radial-gradient(1000px 640px at 15% 100%, var(--glow-3), transparent 62%), var(--bg); background-attachment: fixed; }

/* 预约日历（客户 10-07：坐班换成日历的表达形式，点格子加占用 / 取消 / 确认） */
:root { --cal-free: rgba(52,199,89,.22); --cal-blk: rgba(142,142,147,.38); --cal-pend: rgba(255,149,0,.42); --cal-conf: rgba(0,122,255,.38); --cal-done: rgba(142,142,147,.22); --cal-off: rgba(120,120,128,.06); }
@media (prefers-color-scheme: dark) { :root { --cal-free: rgba(48,209,88,.26); --cal-blk: rgba(142,142,147,.42); --cal-pend: rgba(255,159,10,.45); --cal-conf: rgba(10,132,255,.45); --cal-done: rgba(142,142,147,.24); --cal-off: rgba(255,255,255,.04); } }
.cal-wrap { padding: 8px; overflow-x: auto; }
.cal { display: grid; grid-template-columns: 40px repeat(var(--n), minmax(44px, 1fr)); gap: 3px; min-width: 0; }
.cal .ch { font-size: 12px; text-align: center; color: var(--dim); padding: 2px 0 4px; line-height: 1.25; }
.cal .ch span { display: block; font-size: 11px; color: var(--faint); }
.cal .ch.today { color: var(--acc); font-weight: 600; }
.cal .ch.today span { color: var(--acc); }
.cal .ct { font-size: 11px; color: var(--dim); text-align: right; padding-right: 4px; line-height: 28px; font-variant-numeric: tabular-nums; }
.cc { height: 28px; border: 0; border-radius: 6px; background: var(--cal-off); font-size: 11px; color: var(--ink); padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; min-width: 0; }
.cc.free { background: var(--cal-free); }
.cc.blk { background: var(--cal-blk); color: var(--dim); }
.cc.pend { background: var(--cal-pend); font-weight: 600; }
.cc.conf { background: var(--cal-conf); font-weight: 600; }
.cc.done { background: var(--cal-done); color: var(--dim); }
.cc.past { opacity: .4; }
.cc.sel { outline: 2px solid var(--acc); outline-offset: -2px; }
.cc:disabled { cursor: progress; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 2px 8px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i.cc { display: inline-block; width: 16px; height: 12px; border-radius: 3px; cursor: default; }
details.fold { margin-top: 18px; }
details.fold > summary { cursor: pointer; color: var(--dim); font-size: 14px; padding: 6px 2px; }

/* AI 状态与进度（客户 10-07：问知识库、找文件时看得到 AI 是谁、好不好、做了多久） */
.ai-badge { display: flex; align-items: center; gap: 6px; margin: 8px 4px 4px; color: var(--dim); }
.ai-badge i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.ai-working { margin: 10px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--card-glass); border: 1px solid var(--card-line); color: var(--dim); }
.ai-working .small { margin-top: 4px; }
.ai-working .spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--acc); border-right-color: transparent; border-radius: 50%; animation: od-spin .8s linear infinite; }
@keyframes od-spin { to { transform: rotate(360deg); } }
.ai-meta { color: var(--dim); margin-top: 6px; }

/* 计划与常用磁贴、计划笔记页（客户 10-08） */
.tile.plan { background: linear-gradient(135deg, rgba(48,176,199,.16), transparent 70%), var(--card-glass); }
.tile.link { background: linear-gradient(135deg, rgba(175,82,222,.14), transparent 70%), var(--card-glass); }
.tile .tt { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

/* 宽屏排版（客户 10-08：「网页版的可以重新布局更好看一些。目前两边较多空白」） */
.today-grid { display: block; }
@media (min-width: 1280px) {
  .page { max-width: 960px; }
  .page.today { max-width: 1400px; }
  .today-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(340px, 30%, 440px); gap: 0 28px; align-items: start; }
  .today-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .today-side { grid-column: 2; grid-row: 1; padding-bottom: 12px; }   /* 不固定、不单独滚动：右栏跟着页面走，矮屏也不会被裁掉（审查 P2） */
  .today-side > .mini-status:first-child { margin-top: 0; }
  .page.settings, .page.wide { max-width: 1240px; }
  .settings-grid { display: grid; grid-template-columns: 188px minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .settings-nav { flex-direction: column; align-items: stretch; position: sticky; top: 14px; margin-top: 18px; gap: 4px; }
  .settings-nav button { text-align: left; background: none; color: var(--ink); font-weight: 400; padding: 8px 12px; }
  .settings-nav button.pri { background: var(--acc); color: var(--on-acc); font-weight: 500; }
  .settings-body { min-width: 0; }
}
@media (min-width: 1680px) { .page.today { max-width: 1560px; } .today-grid { grid-template-columns: minmax(0, 1fr) 480px; } }
/* 定时提醒页 */
.remind .rk { align-items: flex-start; }
.remind .rk > input[type=checkbox] { margin-top: 3px; flex: none; }
.remind .rk .k .small { margin-top: 2px; }
.remind .rk .v { white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.remind .tw { overflow-x: auto; }
.rtab { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.rtab th, .rtab td { text-align: left; padding: 9px 12px; border-bottom: .5px solid var(--line); vertical-align: top; }
.rtab th { color: var(--dim); font-weight: 500; font-size: 12.5px; }
.rtab tr:last-child td { border-bottom: 0; }
.rtab .nw { white-space: nowrap; }
@media (max-width: 699px) { .remind .rk { flex-wrap: wrap; } .remind .rk .v { width: 100%; padding-left: 30px; } }
.tile.plan .ts { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* AI 用量页（10-16）：标签不竖排，表格窄屏可左右滑 */
.aiuse .kv .k { white-space: nowrap; }
.aiuse .tw { overflow-x: auto; }
.aiuse .rtab td:first-child { min-width: 7em; }

/* 主题笔记：原话可读、窄屏无横向溢出 */
.topic-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;font:inherit;font-size:0.9em;background:var(--bg);padding:14px;border-radius:12px}.topic-text{white-space:pre-wrap;overflow-wrap:anywhere}.topic-field{display:flex;flex-direction:column;gap:6px;margin:12px 0;min-width:0}.topic-field input,.topic-field select{max-width:100%;width:100%;box-sizing:border-box}.topic-fm{display:flex;gap:12px;flex-wrap:wrap}.topic-fm>.topic-field{flex:1;min-width:90px}
/* AI 一键整理（CR-67）：每组一张卡，复选框与标题同一行 */
.consol-group { margin: 8px 0; padding: 10px 12px; }
.consol-group .consol-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.consol-group .consol-head input[type=checkbox] { position: static; width: 20px; height: 20px; margin: 0; flex: none; }
.consol-group .topic-preview { max-height: 40vh; overflow: auto; }
.consol-summary { margin: 6px 0; }
.consol-summary .topic-preview { white-space: pre-wrap; max-height: 30vh; overflow: auto; }
.consol-auto { margin: 6px 0; }
.notes-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.incoming-folder-button{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:14px 16px;text-align:left;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.incoming-folder-button .main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.incoming-folder-button .t{overflow-wrap:anywhere}
.incoming-folder-button svg{flex-shrink:0;color:#007aff}
.incoming-folder-items{margin-left:16px;border-left:2px solid var(--line);padding-left:6px}.incoming-folder{border-bottom:1px solid var(--line)}.incoming-folder:last-child{border-bottom:0}

/* Saved articles retain their original body and local pictures. */
.saved-clip-summary{display:flex;align-items:flex-start;gap:16px;padding:8px 0;max-width:100%}
.clip-copy{flex:1;min-width:0}.clip-title{font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.clip-excerpt{font-size:.9em;color:var(--dim);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:6px 0;overflow-wrap:anywhere}
.clip-thumbnail{width:112px;height:92px;object-fit:cover;border-radius:10px;flex-shrink:0;background:var(--bg)}
.clip-source{color:var(--dim);overflow-wrap:anywhere}.clip-body{white-space:pre-wrap;line-height:1.75;margin:18px 0;overflow-wrap:anywhere}
.clip-image-link{display:block;margin:14px 0}.clip-image{display:block;max-width:100%;height:auto;border-radius:8px}
.clip-image-missing{color:var(--warn);font-size:.85em}.saved-clip-detail{max-width:100%}
@media(max-width:600px){.saved-clip-summary{gap:12px}.clip-thumbnail{width:76px;height:76px}.clip-title{font-size:1em}.clip-excerpt{font-size:.85em}.clip-source{font-size:12px}}
