/* CRM 营销系统 UI V4（2026-11-09）：A 收件箱为骨架 + C 外贸特色（当地时间、5 个核心需求、手机问候头图/下一件事/底部导航）
   + B 侧滑抽屉、收藏视图 + 一套原生 SVG 小图表。token 沿用 style.css（V3），这里只加新组件。
   颜色：分类色 #7046A8 / #119C8B / #D9771C（dataviz 校验脚本全过）；有序数据（阶段）用紫色单色阶；状态色只表示状态。 */
:root {
  --vc-1: #7046A8; --vc-2: #119C8B; --vc-3: #D9771C; --vc-4: #B5AFC2;
  --seq-1: #E4DAF2; --seq-2: #C3AEE0; --seq-3: #9A79C6; --seq-4: #6E46A3; --seq-5: #4A2470;
  --av-0: #582C84; --av-1: #1F7A6E; --av-2: #2C5F92; --av-3: #9A4D12; --av-4: #23805A; --av-5: #7A3E7E;
  --deep: #2D1645; --deep-2: #43216A;
}
.only-m { display: none !important; }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--c-border-strong); border-bottom-width: 2px; border-radius: 5px; background: var(--c-surface); color: var(--c-text-2); font: 600 11px/1 var(--font-num); vertical-align: 1px; }
button kbd { margin-left: 6px; background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); color: inherit; }
button:not(.primary) kbd { background: var(--c-surface-2); border-color: var(--c-border-strong); color: var(--c-text-3); }
.grow { flex: 1; min-width: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border-radius: var(--r-sm); border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2); font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: var(--violet-300); color: var(--c-primary); }
.icon-btn.lg { width: 48px; height: 48px; border-radius: 14px; font-size: 22px; }

/* ---------- 侧栏：搜索按钮、收藏视图 ---------- */
.cmdk-btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 0 0 var(--s-2); padding: 0 8px 0 10px; border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface); color: var(--c-text-3); font-size: var(--fs-sm); font-weight: 500; text-align: left; cursor: pointer; }
.cmdk-btn:hover { border-color: var(--violet-300); color: var(--c-text-2); }
.cmdk-btn kbd { margin: 0; background: var(--c-surface-2); color: var(--c-text-3); border-color: var(--c-border-strong); }
.cmdk-ico { width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%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='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.navviews { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.nv-h { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--s-3) 4px; font-size: var(--fs-xs); font-weight: 650; color: var(--c-text-3); letter-spacing: .02em; }
.nv-h .link { font-size: 16px; color: var(--c-text-3); padding: 0 4px; }
.nv-h .link:hover { color: var(--c-primary); }
.top nav .navviews a { min-height: 32px; font-size: var(--fs-sm); font-weight: 500; }
.navviews a .nv-del { visibility: hidden; font-size: 11px; color: var(--c-text-3); }
.navviews a:hover .nv-del, .navviews a:focus-within .nv-del { visibility: visible; }
.nv-empty { margin: 2px var(--s-3); font-size: var(--fs-xs); color: var(--c-text-3); white-space: normal; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c-primary); }
.dot-reply { background: var(--vc-1); } .dot-boss { background: var(--c-warning); } .dot-overdue { background: var(--c-danger); } .dot-today { background: var(--vc-3); } .dot-pool, .dot-view { background: var(--c-info); }

/* ---------- 今日：标题行、时钟条、指标卡 ---------- */
.t4-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.t4-title { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.t4-title h1 { margin: 0; font-size: var(--fs-2xl); }
.t4-sub { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.t4-sub .ministats { margin: 0; }
.clockwrap { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.clocks { display: flex; gap: 8px; flex-wrap: wrap; }
.clk { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border: 1px solid var(--c-border); border-radius: var(--r-pill); background: var(--c-surface); font-size: var(--fs-sm); color: var(--c-text-2); }
.clk > i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); }
.clk.work > i { background: var(--c-success); }
.clk b { font: 650 13px/1 var(--font-num); color: var(--c-heading); font-variant-numeric: tabular-nums; }
.clk small { font-size: 11px; color: var(--c-text-3); }
.clk.off { color: var(--c-text-3); }
.cc { display: inline-grid; place-items: center; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--gray-100); color: var(--c-text-2); font: 650 10.5px/1 var(--font-num); letter-spacing: .03em; vertical-align: 1px; }
.lt { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-text-3); font-weight: 550; }
.lt > i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-400); }
.lt.work { color: var(--c-success); } .lt.work > i { background: var(--c-success); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-3); }
.kpi { position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 12px 16px 6px; box-shadow: var(--sh-xs); cursor: pointer; transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.kpi:hover { border-color: var(--violet-300); box-shadow: var(--sh-md); }
.kpi-l { font-size: var(--fs-sm); color: var(--c-text-2); font-weight: 550; }
.kpi-v { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 4px; }
.kpi-v b { font: 700 26px/1.1 var(--font-num); color: var(--c-heading); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi.bad .kpi-v b { color: var(--c-danger); } .kpi.warn .kpi-v b { color: var(--c-accent-ink); } .kpi.good .kpi-v b { color: var(--c-success); }
.kpi-d { font-size: 12px; color: var(--c-text-3); font-weight: 550; }
.kpi .vc-spark { margin: 0 -4px; }
.ministats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.ms { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--c-surface); border: 1px solid var(--c-border); font-size: var(--fs-sm); color: var(--c-text-2); }
.ms b { font: 700 14px/1 var(--font-num); color: var(--c-heading); }
.ms.warn b { color: var(--c-accent-ink); } .ms.bad b { color: var(--c-danger); } .ms.good b { color: var(--c-success); }
a.ms:hover { text-decoration: none; border-color: var(--violet-300); }

/* ---------- 今日：收件箱（左列表 / 中详情 / 右概况） ---------- */
.inbox.card { display: grid; grid-template-columns: 360px minmax(0, 1fr) 252px; padding: 0; gap: 0; overflow: hidden; height: clamp(560px, calc(100vh - 286px), 900px); margin-bottom: var(--s-5); }
.ib-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--c-border); background: var(--c-surface); }
.ib-lhead { display: flex; align-items: center; gap: var(--s-3); padding: 14px 16px 10px; }
.ib-lhead > div { flex: 1; min-width: 0; }
.ib-lhead .vc-prog { margin-top: 8px; }
.ib-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--c-border); overflow-x: auto; scrollbar-width: none; flex: none; }
.ib-tabs::-webkit-scrollbar { display: none; }
.ib-tab { min-height: 38px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--c-text-2); font-weight: 550; white-space: nowrap; box-shadow: none; }
.ib-tab span { color: var(--c-text-3); font: 600 12px var(--font-num); margin-left: 2px; }
.ib-tab.on { color: var(--c-primary); border-bottom-color: var(--c-primary); background: none; }
.ib-tab:hover { background: var(--c-surface-2); }
.ib-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ib-gh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 16px 6px; background: var(--c-surface-2); color: var(--c-text-2); font-size: var(--fs-xs); font-weight: 650; border-bottom: 1px solid var(--c-hair); }
.ib-item { position: relative; overflow: hidden; border-bottom: 1px solid var(--c-hair); cursor: pointer; outline: none; }
.ib-row { position: relative; z-index: 1; display: flex; gap: 10px; padding: 12px 14px 12px 16px; background: var(--c-surface); transition: background var(--t-fast), transform .2s var(--ease); }
.ib-row.drag { transition: none; }
.ib-item:hover .ib-row { background: var(--c-surface-2); }
.ib-item.on .ib-row { background: var(--c-primary-soft); box-shadow: inset 3px 0 0 var(--c-primary); }
.ib-item.late .ib-row::after { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c-danger); }
.ib-item.on.late .ib-row::after { display: none; }
.ib-main { flex: 1; min-width: 0; }
.ib-top { display: flex; align-items: center; gap: 6px; }
.ib-co { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-heading); font-weight: 650; }
.ib-when { margin-left: auto; flex: none; font-size: 12px; color: var(--c-text-3); }
.ib-when.red { color: var(--c-danger); font-weight: 650; } .ib-when.info { color: var(--c-info); font-weight: 600; }
.ib-sub { font-size: var(--fs-sm); color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 2px 0 4px; }
.ib-chips { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ib-chips .chip { height: 20px; font-size: 11.5px; }
.ib-owner { margin-left: auto; }
.ib-swipe { position: absolute; inset: 0 0 0 auto; width: 150px; display: flex; }
.ib-swipe button { flex: 1; min-height: 0; height: 100%; border: 0; border-radius: 0; color: #fff; font-weight: 650; box-shadow: none; }
.ib-swipe .sw-ok { background: var(--c-primary); } .ib-swipe .sw-later { background: var(--gray-500); }
.ib-keys { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 10px 14px; border-top: 1px solid var(--c-border); background: var(--c-surface-2); font-size: 11.5px; color: var(--c-text-3); }
.ib-keys kbd { margin-left: 4px; }
.ib-empty { display: grid; place-items: center; gap: 8px; padding: 48px 16px; text-align: center; color: var(--c-text-3); }
.ib-empty p { margin: 0; }
.ib-empty.big { height: 100%; }
.ok-tick { width: 36px; height: 36px; border-radius: 50%; background: var(--c-success-soft); position: relative; }
.ok-tick::after { content: ""; position: absolute; left: 13px; top: 9px; width: 8px; height: 14px; border: solid var(--c-success); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.ib-detail { position: relative; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--c-bg); }
.ib-dhead { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--c-border); background: var(--c-surface); flex: none; }
.ib-dhead .ib-open { margin-left: auto; font-weight: 650; }
.ib-dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 24px; }
.ib-chead { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.ib-chead h2 { margin: 0 0 2px; font-size: var(--fs-lg); }
.ib-mail, .ib-draft, .ib-task { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--sh-xs); }
.ib-mail.compact { padding: 10px 14px; }
.ib-mail.compact ol { margin: 4px 0 0; padding-left: 18px; }
.ib-mhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ib-mtime { margin-left: auto; }
.ib-mtext { max-height: 160px; overflow-y: auto; margin: 8px 0; }
.ib-key { padding: 8px 12px; border: 1px dashed var(--violet-200); border-radius: var(--r-sm); background: var(--c-primary-soft); font-size: var(--fs-sm); color: var(--c-heading); }
.ib-draft { border-color: var(--violet-300); box-shadow: 0 0 0 3px var(--violet-050); }
.ib-draft.locked { border-color: var(--c-border); box-shadow: var(--sh-xs); }
.ib-dtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ib-review { margin: -2px 0 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ib-draft .draftedit { min-height: 220px; font-size: var(--fs-base); line-height: 1.65; }
.ib-task.late { border-left: 3px solid var(--c-danger); }
.ib-task .t { margin-bottom: 4px; }
.ib-foot { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.ib-foot form { margin: 0; gap: 8px; flex-wrap: nowrap; }
.ib-foot form input { flex: 1; min-width: 0; }
.chip.ai { background: var(--c-primary-soft); color: var(--c-primary); }
.chip.pool { background: var(--c-info-soft); color: var(--c-info); }

.ib-ctx { min-height: 0; overflow-y: auto; padding: 14px 16px; border-left: 1px solid var(--c-border); background: var(--c-surface); }
.ctx-h { margin: 16px 0 8px; font-size: var(--fs-xs); font-weight: 650; color: var(--c-text-3); letter-spacing: .02em; display: flex; justify-content: space-between; align-items: baseline; }
.ctx-h:first-child { margin-top: 0; }
.ctx-list { list-style: none; margin: 0; padding: 0; }
.ctx-list li { padding: 6px 0; border-bottom: 1px solid var(--c-hair); font-size: var(--fs-sm); }
.ctx-list li:last-child { border-bottom: 0; }
.tlmini .when { color: var(--c-text-3); font: 600 12px var(--font-num); margin-right: 4px; }
.segs { display: flex; gap: 3px; margin: 6px 0; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-150); }
.segs i.past { background: var(--seq-4); } .segs i.cur { background: var(--vc-1); box-shadow: 0 0 0 2px var(--violet-100); }
.segs i.opt:not(.past):not(.cur) { background: repeating-linear-gradient(135deg, var(--gray-150) 0 3px, transparent 3px 6px); }
.segs i.nur { background: var(--orange-100); } .segs i.lost { background: var(--gray-200); }
.needs-mini { list-style: none; padding: 0; margin: 0; }
.needs-mini li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: var(--fs-sm); }
.needs-mini li > i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gray-200); flex: none; }
.needs-mini li.ok > i { border-color: var(--c-success); background: var(--c-success); box-shadow: inset 0 0 0 2px #fff; }
.needs-mini li > span { margin-left: auto; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 头像 */
.av { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: #fff; font: 700 12px/1 var(--font-num); letter-spacing: .02em; background: var(--av-0); }
.av.xs { width: 22px; height: 22px; border-radius: 7px; font-size: 9.5px; }
.av.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10px; }
.av.lg { width: 46px; height: 46px; border-radius: 13px; font-size: 15px; }
.av-1 { background: var(--av-1); } .av-2 { background: var(--av-2); } .av-3 { background: var(--av-3); } .av-4 { background: var(--av-4); } .av-5 { background: var(--av-5); }

/* ---------- 撤销提示 ---------- */
.undo { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: var(--z-toast); display: flex; align-items: center; gap: 12px; min-width: min(92vw, 380px); max-width: min(92vw, 560px); padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--deep); color: #fff; font-size: var(--fs-sm); font-weight: 550; box-shadow: var(--sh-lg); animation: toast-in .2s var(--ease); }
.undo[hidden] { display: none; }
body[data-page="today"] .undo { bottom: 84px; }
.ok-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--c-success); flex: none; position: relative; }
.ok-dot::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.undo-btn { min-height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1); color: #fff; font-weight: 650; box-shadow: none; }
.undo-btn:hover { background: rgba(255,255,255,.2); }

/* ---------- 右侧抽屉 ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 45; background: rgba(45,22,69,.18); opacity: 0; transition: opacity .18s var(--ease); }
.drawer-bg.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 46; width: min(480px, 100vw); display: flex; flex-direction: column; background: var(--c-surface); border-left: 1px solid var(--c-border); box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .2s var(--ease); outline: none; }
.drawer.open { transform: none; }
.dr-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-border); }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 0; display: flex; flex-direction: column; }
.dr-co { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.dr-co h2 { margin: 0 0 2px; font-size: var(--fs-lg); }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.dr-tile { border: 1px solid var(--c-border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.dr-tile b { display: block; color: var(--c-heading); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dr-tile b.red { color: var(--c-danger); }
.dr-tile .vc-prog { margin: 6px 0 2px; }
.drawer .kv { margin: 0; }
.dr-rec { margin-top: 12px; }
.dr-foot { position: sticky; bottom: 0; margin: auto -20px 0; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.dr-foot .btn.primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pool-row[data-drawer], tr[data-drawer] { cursor: pointer; }

/* ---------- 命令面板 / 快捷键 ---------- */
.cmdk-bg { position: fixed; inset: 0; z-index: 55; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; background: rgba(45,22,69,.28); }
.cmdk-bg[hidden] { display: none; }
.cmdk-box { width: min(620px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--c-surface); border-radius: 16px; box-shadow: var(--sh-lg); overflow: hidden; border: 1px solid var(--c-border); }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--c-border); color: var(--c-text-3); }
.cmdk-in input { flex: 1; height: 54px; border: 0; box-shadow: none; padding: 0; font-size: 16px; background: none; }
.cmdk-in input:focus { box-shadow: none; }
.cmdk-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 8px; }
.cmdk-sec { padding: 10px 10px 4px; font-size: var(--fs-xs); font-weight: 650; color: var(--c-text-3); }
.cmdk-it { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; cursor: pointer; font-size: var(--fs-base); }
.cmdk-it.on { background: var(--c-primary-soft); color: var(--c-heading); }
.cmdk-arrow { width: 22px; text-align: center; color: var(--c-text-3); }
.cmdk-foot { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-top: 1px solid var(--c-border); background: var(--c-surface-2); font-size: 12px; color: var(--c-text-3); }
.cmdk-box.keys { padding: 18px 20px 6px; }
.cmdk-box.keys td { padding: 7px 8px; } .cmdk-box.keys td:first-child { white-space: nowrap; }

/* ---------- 图表 ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-4); }
.chart-grid > .card { margin: 0; min-width: 0; }
.chart-grid > .span2 { grid-column: 1 / -1; }
.vc { position: relative; width: 100%; }
.vc svg { display: block; overflow: visible; }
.vc-ax { font: 500 11px var(--font-num); fill: var(--c-text-3); }
.vc-val { font: 650 11px var(--font-num); fill: var(--c-text-2); }
.vc-hit { cursor: crosshair; }
.vc-hit[data-drill] { cursor: pointer; }
.vc-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--c-text-2); }
.vc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vc-legend b { font: 650 12.5px var(--font-num); color: var(--c-heading); }
.vc-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--vc-1); flex: none; }
.vc-sw[data-c="1"], .vc-sw[data-d="1"] { background: var(--vc-2); } .vc-sw[data-c="2"], .vc-sw[data-d="2"] { background: var(--vc-3); } .vc-sw[data-d="3"] { background: var(--vc-4); }
.vc-sw.seg-0, .vc-seg.seg-0 { background: var(--seq-1); } .vc-sw.seg-1, .vc-seg.seg-1 { background: var(--seq-3); } .vc-sw.seg-2, .vc-seg.seg-2 { background: var(--seq-4); } .vc-sw.seg-3, .vc-seg.seg-3 { background: var(--seq-5); }
.vc-sw.seg-4, .vc-seg.seg-4 { background: #F4C79B; } .vc-sw.seg-5, .vc-seg.seg-5 { background: var(--gray-200); }
.vc-tip { position: fixed; z-index: 70; max-width: 260px; padding: 8px 11px; border-radius: 10px; background: var(--deep); color: #fff; font-size: 12.5px; line-height: 1.5; box-shadow: var(--sh-lg); pointer-events: none; }
.vc-tip b { display: block; font-weight: 650; margin-bottom: 2px; }
.vc-tip.touch { pointer-events: auto; }
.vc-tiphint { margin-top: 4px; color: #D6C4EE; font-size: 11.5px; }
.vc-tipbtn { display: block; width: 100%; margin-top: 6px; min-height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-weight: 650; box-shadow: none; }
.vc-hbars, .vc-stack, .vc-funnel { display: flex; flex-direction: column; gap: 6px; }
.vc-hrow, .vc-srow, .vc-frow { display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) 46px; align-items: center; gap: 10px; min-height: 26px; font-size: var(--fs-sm); border-radius: 6px; }
.vc-hrow.drill:hover, .vc-frow:hover { background: var(--c-surface-2); }
.vc-hl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-2); }
.vc-hl small { margin-left: 6px; color: var(--c-text-3); font-size: 11.5px; }
.vc-ht { position: relative; height: 10px; border-radius: 5px; background: var(--gray-100); overflow: hidden; }
.vc-hf { display: block; width: 0; height: 100%; border-radius: 0 5px 5px 0; background: var(--vc-1); transition: width .45s var(--ease); }
.vc-hf.bad { background: var(--c-danger); } .vc-hf.cur { background: var(--vc-3); }
.vc-hv { text-align: right; font: 650 13px var(--font-num); color: var(--c-heading); font-variant-numeric: tabular-nums; }
.vc-st { display: flex; gap: 2px; height: 14px; width: 0; transition: width .45s var(--ease); }
.vc-seg { display: block; height: 100%; min-width: 3px; }
.vc-seg:first-child { border-radius: 3px 0 0 3px; } .vc-seg:last-child { border-radius: 0 4px 4px 0; }
.vc-seg.drill { cursor: pointer; } .vc-seg.drill:hover { filter: brightness(.9); }
.vc-frow { grid-template-columns: 76px minmax(0, 1fr) 42px 40px; cursor: pointer; padding: 1px 0; }
.vc-fl { color: var(--c-text-2); white-space: nowrap; }
.vc-ft { display: flex; justify-content: center; height: 22px; }
.vc-ff { display: block; width: 0; height: 100%; border-radius: 5px; background: var(--seq-3); transition: width .45s var(--ease); }
.vc-frow:nth-child(1) .vc-ff { background: var(--seq-2); } .vc-frow:nth-child(n+3) .vc-ff { background: var(--seq-4); } .vc-frow:nth-child(n+5) .vc-ff { background: var(--seq-5); }
.vc-fr { font: 600 12px var(--font-num); color: var(--c-text-3); text-align: right; }
.vc-heat { display: flex; gap: 6px; }
.vc-hwk { display: grid; grid-template-rows: repeat(7, 20px); gap: 4px; font-size: 10.5px; color: var(--c-text-3); }
.vc-hwk span { display: flex; align-items: center; height: 100%; }
.vc-hgrid { display: grid; grid-template-rows: repeat(7, 20px); grid-auto-flow: column; grid-auto-columns: 20px; gap: 4px; }
.vc-hc { display: block; border-radius: 4px; background: var(--gray-100); min-width: 12px; min-height: 12px; }
.vc-hc.blank { background: transparent; }
.vc-hc.h1 { background: var(--seq-1); } .vc-hc.h2 { background: var(--seq-2); } .vc-hc.h3 { background: var(--seq-4); } .vc-hc.h4 { background: var(--seq-5); }
.vc-hc.drill { cursor: pointer; } .vc-hc.drill:hover { box-shadow: 0 0 0 2px var(--violet-300); }
.vc-hkey { display: flex; align-items: center; gap: 3px; margin-top: 8px; font-size: 11px; color: var(--c-text-3); }
.vc-hkey .vc-hc { width: 12px; height: 12px; }
.vc-donut { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.vc-donut path.drill { cursor: pointer; } .vc-donut path:hover { stroke-width: 19; }
.vc-dc { font: 700 20px var(--font-num); fill: var(--c-heading); }
.vc-ds { font: 500 11px var(--font); fill: var(--c-text-3); }
.vc-dleg { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); }
.vc-dleg span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text-2); }
.vc-dleg span.drill { cursor: pointer; } .vc-dleg span.drill:hover { color: var(--c-primary); }
.vc-dleg b { font: 650 13px var(--font-num); color: var(--c-heading); }
.vc-ring-bg { stroke: var(--gray-150); } .vc-ring-fg { stroke: var(--vc-1); transition: stroke-dasharray .5s var(--ease); }
.vc-ring-n { font: 700 15px var(--font-num); fill: var(--c-heading); } .vc-ring-s { font: 500 10px var(--font); fill: var(--c-text-3); }
.vc-ring.on-dark .vc-ring-bg { stroke: rgba(255,255,255,.18); } .vc-ring.on-dark .vc-ring-fg { stroke: #fff; } .vc-ring.on-dark .vc-ring-n { fill: #fff; font-size: 20px; }
.vc-prog { display: block; height: 6px; border-radius: 3px; background: var(--gray-150); overflow: hidden; }
.vc-prog i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--vc-1); transition: width .45s var(--ease); }
.vc-prog.good i { background: var(--c-success); }
.vc-table { margin-top: 10px; }
.vc-table summary { color: var(--c-text-3); cursor: pointer; }
.vc-table .scroll { max-height: 260px; overflow: auto; }
.pool-charts { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-6); align-items: start; }
.pool-charts.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); margin-top: 10px; }
.pool-dist summary { cursor: pointer; }

/* 客户详情：5 个核心需求 */
.needs .vc-prog { margin: 4px 0 10px; }
.needs-list { list-style: none; padding: 0; margin: 0; }
.needs-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--c-hair); }
.needs-list li:last-child { border-bottom: 0; }
.needs-list li.ok label { color: var(--c-heading); font-weight: 600; }
.needs-list li > span { text-align: right; max-width: 60%; }

/* 「我的」页 */
.me-page .me-card { display: flex; gap: 14px; align-items: center; }
.me-page .me-card h1 { margin: 0; font-size: 20px; }
.me-links { display: flex; flex-direction: column; padding: 4px 0; }
.me-links > a, .me-links > button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 var(--s-5); border-bottom: 1px solid var(--c-hair); color: var(--c-heading); font-weight: 550; text-align: left; font-size: var(--fs-base); }
.me-links > :last-child { border-bottom: 0; }
.me-links .ni { background: var(--c-primary); }
.me-links .red { color: var(--c-danger); }
.me-links > button { width: 100%; justify-content: flex-start; padding-left: calc(var(--s-5) + 30px); }

/* 语言切换：登录后放在侧栏用户区（改密码 / 退出那一行），不再浮动 */
.me-acts { align-items: center; flex-wrap: nowrap; gap: 10px !important; }
.langpick.in-side { position: static; right: auto; bottom: auto; z-index: auto; height: 24px; min-height: 0; max-width: 72px; margin: 0 !important; padding: 0 18px 0 7px; font-size: 11.5px; box-shadow: none; opacity: 1; background-position: right 6px center; }
.me-lang { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 var(--s-5); border-bottom: 1px solid var(--c-hair); color: var(--c-heading); font-weight: 550; }
.me-lang select { width: auto; min-width: 110px; }

/* ---------- 手机底部导航（≤720 显示） ---------- */
.bnav { display: none; }

/* ---------- 断点 ---------- */
@media (max-width: 1360px) {
  .inbox.card { grid-template-columns: 340px minmax(0, 1fr); }
  .ib-ctx { display: none; }
}
@media (max-width: 1023px) {
  .cmdk-btn { order: 2; width: 36px; padding: 0; justify-content: center; margin: 0 4px 0 0; }
  .cmdk-btn .grow, .cmdk-btn kbd { display: none; }
  .navviews { display: none; }
  .top .me { order: 2; }
  .inbox.card { grid-template-columns: 300px minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-grid { grid-template-columns: minmax(0, 1fr); }
  .pool-charts, .pool-charts.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .only-m { display: block !important; }
  .only-d { display: none !important; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .top nav { display: none; }
  .top .brand-sub { display: none; }
  .top .me #meName { max-width: 40vw; }
  .top { padding-bottom: 10px; }
  main { padding-top: var(--s-3); }
  body[data-page="today"] .top { display: none; }
  body[data-page="today"] main { padding-top: 0; }
  /* 问候头图（深紫）+ 进度环 + 时钟 */
  .hero-m { margin: 0 calc(-1 * var(--s-4)); padding: 22px 20px 64px; background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; }
  .hero-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .hero-m h1 { margin: 0 0 4px; color: #fff; font-size: 24px; }
  .hero-m p { margin: 0; color: #E3D7F2; font-size: 14px; }
  .hero-ring { flex: none; }
  .clocks.dark { margin-top: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .clocks.dark .clk { flex: none; height: 30px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #EDE4F8; }
  .clocks.dark .clk b { color: #fff; }
  .clocks.dark .clk.work > i { background: #7FD8B0; }
  .next-wrap { margin-top: -48px; margin-bottom: var(--s-4); position: relative; z-index: 2; }
  .next-card { background: var(--c-surface); border-radius: 20px; padding: 16px 16px 14px; box-shadow: var(--sh-lg); }
  .next-card.empty { display: grid; justify-items: center; gap: 6px; color: var(--c-text-3); }
  .next-card.empty p { margin: 0; }
  .nc-tag { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
  .nc-co { display: flex; gap: 12px; align-items: center; }
  .nc-co b { font-size: 17px; color: var(--c-heading); }
  .nc-text { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; color: var(--c-text); }
  .nc-acts { display: flex; gap: 10px; }
  .nc-acts .primary { flex: 1; min-height: 48px; border-radius: 14px; font-size: 16px; }
  .kpis { gap: 10px; }
  .kpi { padding: 10px 12px 6px; }
  .kpi-v b { font-size: 22px; }
  .kpi-d { display: none; }
  .ministats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--s-4)) var(--s-4); padding: 0 var(--s-4); }
  .ms { flex: none; }
  /* 收件箱：手机上只显示列表，点一项全屏出详情 */
  .inbox.card { display: block; height: auto; overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .ib-left { border: 0; background: transparent; }
  .ib-tabs { margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-3); background: transparent; }
  .ib-list { overflow: visible; }
  .ib-gh { position: static; background: transparent; border: 0; padding: 14px 2px 6px; }
  .ib-item { border: 1px solid var(--c-border); border-radius: 16px; margin-bottom: 10px; box-shadow: var(--sh-xs); }
  .ib-item.on .ib-row { background: var(--c-surface); box-shadow: none; }
  .ib-item.is-next { display: none; }
  .ib-row { padding: 14px; }
  .ib-detail { display: none; }
  .inbox.detail-open .ib-detail { display: flex; position: fixed; inset: 0; z-index: 48; }
  .inbox.detail-open .ib-dhead { position: sticky; top: 0; }
  .ib-dbody { padding: 14px 14px 20px; }
  .ib-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ib-foot form { flex-basis: 100%; }
  .ib-foot > button { flex: 1; }
  .ib-ctx { display: none; }
  .ib-mtime { margin-left: 0; flex-basis: 100%; }
  .ib-dhead > .muted { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .ib-dhead .ib-open { white-space: nowrap; }
  button kbd, .ib-keys { display: none; }
  body[data-page="today"] .undo { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .drawer { width: 100vw; }
  .dr-grid { grid-template-columns: 1fr 1fr; }
  .cmdk-bg { padding-top: 8px; }
  .cmdk-box { max-height: 82vh; }
  .vc-hrow, .vc-srow { grid-template-columns: minmax(64px, 36%) minmax(0, 1fr) 40px; }
  .vc-frow { grid-template-columns: 64px minmax(0, 1fr) 36px 34px; }
  .vc-donut { justify-content: center; }
  .undo { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .langpick:not(.in-side) { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .langpick.in-side { display: none; }
  .bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: calc(64px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,255,255,.97); border-top: 1px solid var(--c-border); box-shadow: 0 -2px 12px rgba(45,22,69,.06); }
  .bnav a, .bnav .bn-plus { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 64px; color: var(--c-text-3); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .bnav a .ni { width: 22px; height: 22px; -webkit-mask-size: 22px; mask-size: 22px; }
  .bnav a.on { color: var(--c-primary); } .bnav a.on .ni { background: var(--c-primary); }
  .bnav .bn-plus { border: 0; background: none; box-shadow: none; min-height: 0; padding: 0; justify-content: flex-start; }
  .bnav .bn-plus span { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 28px; font-weight: 400; box-shadow: 0 0 0 4px #fff, var(--sh-md); }
  .bnav .bn-plus em { font-style: normal; color: var(--c-text-2); }
  .drawer, .inbox.detail-open .ib-detail { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .ib-row, .vc-hf, .vc-st, .vc-ff, .vc-prog i { transition: none !important; } }
@media print { .bnav, .drawer, .cmdk-bg, .undo, .ib-keys { display: none !important; } }

/* 11-09 泰文审校：泰文词长，手机底栏缩字号；中间「บันทึกการติดตาม」允许两行，避免和「พูลส่วนกลาง」挤在一起 */
html[lang="th"] .bnav a, html[lang="th"] .bnav .bn-plus { font-size: 10.5px; letter-spacing: -.1px; }
html[lang="th"] .bnav .bn-plus { gap: 1px; }
html[lang="th"] .bnav .bn-plus em { max-width: 100%; white-space: normal; text-align: center; line-height: 1.15; }

/* ===================== V4.1（2026-11-10）今日页排版松绑 =====================
   业务反馈「拥挤」：三栏改两栏（客户概况并进详情区，宽时右侧、窄时排下面），顶部三行压成两行，
   只留列表和详情各一个滚动区；业务员视角的回信排到最后只作知悉；完成时可一键填常用结果。 */
body[data-page="today"] main { max-width: 1520px; padding: 22px 28px 64px; }
@media (min-width: 1600px) { body[data-page="today"] .top:not([hidden]) ~ main { margin-left: var(--side-w); max-width: min(1520px, calc(100vw - var(--side-w))); } }
.t4-head { margin-bottom: 14px; }
.t4-title h1 { font-size: 22px; }
/* 指标卡：数字在左、走势在右，一行高 */
.kpis { gap: 12px; margin-bottom: 10px; }
.kpi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, 42%); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 14px; }
.kpi > .kpi-l { grid-column: 1; }
.kpi > .kpi-v { grid-column: 1; margin: 2px 0 0; }
.kpi > .vc { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.kpi-v b { font-size: 24px; }
/* 小统计 + 时钟：去边框，变成一行轻量文字 */
.t4-sub { margin-bottom: 14px; gap: 6px 16px; }
.ministats { gap: 4px 14px; }
.ms { padding: 0; border: 0; background: none; font-size: 13px; }
.ms b { font-size: 14px; }
a.ms:hover { color: var(--c-primary); }
.clocks { gap: 6px; }
.clk { height: 26px; font-size: 12.5px; background: var(--c-surface-2); border-color: transparent; }
/* 收件箱：两栏，整体高度贴合屏幕 */
.inbox.card { grid-template-columns: 340px minmax(0, 1fr); height: clamp(600px, calc(100vh - 200px), 1040px); }
.ib-lhead { padding: 14px 14px 10px 16px; }
.ib-lt { display: flex; align-items: baseline; gap: 10px; }
.ib-lt b { font-size: 15px; }
.ib-lhead .icon-btn { width: 30px; height: 30px; font-size: 15px; color: var(--c-text-3); }
.ib-tab { min-height: 40px; padding: 0 12px; }
.ib-gh { padding: 12px 16px 7px; }
.ib-row { padding: 13px 14px 13px 16px; gap: 12px; }
.ib-sub { margin: 3px 0 6px; line-height: 1.5; }
.ib-item.fyi .ib-row { background: var(--c-surface-2); }
.ib-item.fyi .ib-co, .ib-item.fyi .ib-sub { color: var(--c-text-3); }
.ib-item.fyi .av { opacity: .55; }
.ib-item.fyi.on .ib-row { background: var(--c-primary-soft); }
/* 详情区 */
.ib-detail { container-type: inline-size; container-name: ibd; }
.ib-dhead { padding: 10px 18px; }
.ib-dbody { padding: 20px 24px 28px; }
.ib-chead { align-items: flex-start; margin-bottom: 16px; }
.ib-chead h2 { font-size: 19px; line-height: 1.3; }
.ib-chead .small { margin-top: 2px; }
.ib-contact { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; max-width: 46%; }
.ib-who { font-size: var(--fs-sm); color: var(--c-text-2); margin-right: 4px; }
.btn.small.wa { color: #0E7C66; border-color: #9ED9C8; background: #EEFAF6; }
.btn.small.wa:hover { border-color: #0E7C66; }
.ib-mail, .ib-draft, .ib-task { padding: 16px 18px; margin-bottom: 14px; }
.ib-tk { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; color: var(--c-text-3); margin-bottom: 6px; }
.ib-task .t { font-size: 15.5px; line-height: 1.5; margin-bottom: 4px; }
.ib-steps { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--c-border); }
.ib-steps ol { margin: 6px 0 0; padding-left: 20px; font-size: var(--fs-sm); line-height: 1.65; }
.ib-steps li + li { margin-top: 4px; }
.ib-mtext { max-height: 240px; line-height: 1.65; }
.ib-dgrid { display: block; }
.ib-dgrid > .ib-ctx { display: block; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--r); background: var(--c-surface); overflow: visible; min-height: 0; }
@container ibd (min-width: 880px) {
  .ib-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: start; }
  .ib-dgrid > .ib-ctx { position: sticky; top: 0; }
}
@container ibd (max-width: 879px) {
  /* 窄时概况排在下面，分两列放，少占高度 */
  .ib-dgrid > .ib-ctx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .ib-dgrid > .ib-ctx > .ctx-h { margin-top: 12px; }
  .ib-dgrid > .ib-ctx > .ctx-h:nth-of-type(-n+2) { margin-top: 0; }
}
/* 底部操作条 */
.ib-foot { padding: 12px 18px; gap: 8px 10px; }
.ib-quick { flex-basis: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ib-quick .muted { margin-right: 2px; }
.qchip { min-height: 28px; padding: 0 11px; border-radius: var(--r-pill); border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-text-2); font-size: 12.5px; font-weight: 550; box-shadow: none; }
.qchip:hover { border-color: var(--violet-300); color: var(--c-primary); background: var(--c-primary-soft); }
.ib-foot form input { min-height: 38px; }
/* 下方卡片区：两列，各自往下排，不留大空洞 */
.t4-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.t4-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.t4-col > .card, .t4-col > details.card { margin: 0; }
@media (max-width: 1360px) {
  .inbox.card { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 1023px) {
  body[data-page="today"] main { padding: 18px 18px 64px; }
  .inbox.card { grid-template-columns: 290px minmax(0, 1fr); }
  .ib-contact { max-width: none; }
  .t4-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body[data-page="today"] main { padding: 0 var(--s-4) 24px; }
  .inbox.card { height: auto; }
  .kpi { grid-template-columns: minmax(0, 1fr); }
  .kpi > .vc { grid-column: 1; grid-row: auto; }
  .ib-chead { flex-wrap: wrap; }
  .ib-contact { flex-basis: 100%; justify-content: flex-start; }
  .ib-dgrid > .ib-ctx { display: block; margin-bottom: 8px; }
  .ib-dbody { padding: 14px 14px 20px; }
  .ib-foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ib-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .qchip { flex: none; }
}
.t4-head .clockwrap { margin-left: auto; }
.t4-head .clk small { display: none; }
.t4-sub { margin-bottom: 12px; }
.inbox.card { height: clamp(600px, calc(100vh - 222px), 1040px); }
.t4-head .clockwrap { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
.t4-head .clocks { flex-wrap: nowrap; }
@media (max-width: 1500px) { .t4-head .clk:nth-child(n+4) { display: none; } }
@media (max-width: 1250px) { .t4-head .clk:nth-child(n+3) { display: none; } }
details.more { margin-top: 6px; }
details.more summary { color: var(--c-primary); cursor: pointer; font-weight: 600; }
.feed.fold > li:nth-child(n+7) { display: none; }
.ib-quick > .muted { white-space: nowrap; }
