/* 指间云 新前端样式。设计令牌来自画布「设计规范」：用户端主色蓝，四档动效时长，一条缓动曲线。
   字体：英文数字用本地 Inter（vendor/），中文用系统字体（国内访问不了 Google Fonts，不能外链）。 */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../vendor/inter-latin-wght.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F5F6F8; --surface: #FFFFFF; --surface2: #F0F2F5; --line: #E3E6EB;
  --text: #151922; --muted: #5A6372;
  --primary: #2B59E0; --primary-h: #2149BF; --primary-ink: #FFFFFF; --primary-soft: #EAF0FF;
  --ok: #0F7A4D; --ok-soft: #E5F5EC; --warn: #9A5400; --warn-soft: #FFF2DF;
  --danger: #C2362B; --danger-soft: #FDECEA;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 12px rgba(16,24,40,.06);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.16);
  --scrim: rgba(17,22,30,.32);
  --ease: cubic-bezier(.2,.8,.2,1);
  --d1: 120ms; --d2: 180ms; --d3: 280ms; --d4: 420ms;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0D1015; --surface: #151920; --surface2: #1C212A; --line: #2A303B;
  --text: #E8EBF0; --muted: #9BA4B3;
  --primary: #7B9BFF; --primary-h: #9AB2FF; --primary-ink: #0B0F18; --primary-soft: #1D2742;
  --ok: #4CC38A; --ok-soft: #13291F; --warn: #F0A848; --warn-soft: #2E2312;
  --danger: #FF7A6E; --danger-soft: #341A1A;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.5);
  --scrim: rgba(0,0,0,.55);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  transition: background var(--d3) var(--ease), color var(--d3) var(--ease);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.row-gap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

/* ---------- 按钮 ---------- */
.btn {
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none;
  transition: transform var(--d1) var(--ease), background var(--d2) var(--ease), border-color var(--d2) var(--ease), color var(--d2) var(--ease);
}
.btn:active:not([disabled]) { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .icon-btn:focus-visible, .tab:focus-visible, .nav-item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-soft), 0 0 0 1px var(--primary); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover:not([disabled]) { background: var(--primary-h); }
.btn-second { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-second:hover:not([disabled]) { background: var(--surface2); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover:not([disabled]) { background: var(--surface2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-dghost { background: transparent; color: var(--danger); border-color: var(--line); }
.btn-dghost:hover:not([disabled]) { background: var(--danger-soft); border-color: var(--danger); }
.btn-ok { background: var(--ok-soft); color: var(--ok); }
.btn-ok:hover:not([disabled]) { background: var(--ok); color: var(--surface); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 36px; height: 36px; border: none; background: transparent; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.icon-btn:hover { background: var(--surface2); }
.link-btn { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; font-size: 13px; }

/* ---------- 卡片、表单 ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; transition: background var(--d3) var(--ease), border-color var(--d2) var(--ease); }
.card-pad { padding: 20px 22px; }
.card-head { padding: 18px 22px 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head b { font-size: 16px; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
/* 标题和副标题直接写在卡片里时，副标题和下面的内容隔开 */
.card-pad > .card-sub { margin-bottom: 12px; }
.field, select.field, textarea.field {
  width: 100%; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: 14px;
  transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease);
}
textarea.field { padding: 10px 12px; line-height: 1.6; resize: vertical; }
.field:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field.err { border-color: var(--danger); }
.field[disabled] { background: var(--surface2); color: var(--muted); }
/* 下拉框收起时的样子：去掉系统外观，自己画箭头；弹出的选项列表由 js/ui-select.js 画（样式见文件末尾）。 */
/* 所有单选下拉统一：去掉系统外观、画同一个箭头（有些页面自己写了 background 简写，所以这里用 !important 保住箭头） */
select:not([multiple]):not([size]):not([data-native]) {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6372' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px !important;
  text-overflow: ellipsis;
}
[data-theme="dark"] select:not([multiple]):not([size]):not([data-native]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239BA4B3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; }
select.field:hover:not([disabled]) { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
select.field[aria-expanded="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
.field-err { font-size: 12px; font-weight: 400; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; margin-top: 8px; }

/* ---------- 徽标 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-run { background: var(--primary-soft); color: var(--primary); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface2); color: var(--muted); }
.badge-dark { background: var(--text); color: var(--bg); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pulse { animation: pulse 1.4s var(--ease) infinite; }

/* ---------- 标签页、分段、开关 ---------- */
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { background: none; border: none; color: var(--muted); height: 42px; padding: 0 2px; font-size: 14px; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 6px; transition: color var(--d2) var(--ease); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform var(--d3) var(--ease); }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); font-weight: 600; }
.tab.on::after { transform: scaleX(1); }
.tab-count { font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); display: inline-flex; align-items: center; justify-content: center; }
.seg { display: inline-flex; width: fit-content; max-width: 100%; padding: 3px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: none; background: transparent; color: var(--muted); height: 30px; padding: 0 12px; border-radius: 7px; cursor: pointer; font-size: 13px; transition: all var(--d2) var(--ease); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sw { width: 40px; height: 24px; border-radius: 999px; border: none; background: var(--line); position: relative; cursor: pointer; transition: background var(--d2) var(--ease); padding: 0; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--d3) var(--ease); }
.sw.on { background: var(--primary); }
.sw.on::after { transform: translateX(16px); }
.sw[disabled] { opacity: .45; cursor: not-allowed; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all var(--d2) var(--ease); }
.chip:hover { border-color: var(--primary); }
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface2); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { animation: fadeUp var(--d4) var(--ease) both; transition: background var(--d2) var(--ease); }
.tbl tbody tr:hover { background: var(--surface2); }
.tbl .r { text-align: right; }

/* ---------- 状态块 ---------- */
.empty { padding: 28px 22px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); }
.loading { padding: 24px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.error-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.notice { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.notice-warn { background: var(--warn-soft); color: var(--warn); }
.notice-info { background: var(--surface2); color: var(--muted); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; flex: none; }

/* ---------- 弹窗、轻提示 ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn var(--d3) var(--ease) both; }
.modal { width: 480px; max-width: 100%; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop var(--d3) var(--ease) both; }
.modal-wide { width: 880px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 8px; font-size: 17px; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.toast { position: fixed; right: 24px; top: 20px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow-lg); animation: toastIn var(--d3) var(--ease) both; }
.toast-error { background: var(--danger); color: #fff; }
.toast-out { animation: toastOut var(--d3) var(--ease) both; }

/* ---------- 外壳 ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: width var(--d3) var(--ease); }
.shell.collapsed .side { width: 72px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; white-space: nowrap; overflow: hidden; }
.side-brand .name { font-size: 16px; font-weight: 700; }
.side-brand .sub { font-size: 11px; color: var(--muted); }
.grp { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); padding: 14px 12px 6px; white-space: nowrap; }
.nav-item { min-height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: none; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap; font-size: 14px; transition: background var(--d2) var(--ease), color var(--d2) var(--ease); }
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.nav-item svg { flex: none; }
.label-txt { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-paid { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--surface2); color: var(--muted); }
.shell.collapsed .label-txt, .shell.collapsed .grp, .shell.collapsed .side-brand .txt, .shell.collapsed .nav-paid { display: none; }
.side-spacer { flex: 1; min-height: 12px; }
/* 窗口不够高时，侧栏里的项目不能被压扁（否则 logo 和菜单叠在一起），改为侧栏自己滚动 */
.side > :not(.side-spacer) { flex-shrink: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 32px; min-height: 56px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
/* 桌面端页面标题已在下面大字显示，顶栏不再重复；手机上没有侧栏，保留它来认页面 */
@media (min-width: 761px) { .topbar .crumb { display: none; } }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.user-chip:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.user-av { width: 32px; height: 32px; font-size: 12px; }
.user-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.15; }
.user-name { font-size: 13px; font-weight: 600; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-tier { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); }
.user-tier.free { background: var(--surface2); color: var(--muted); font-weight: 600; letter-spacing: 0; }
.menu-btn { display: none; }
.side-scrim { display: none; }
.page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; animation: fadeUp var(--d4) var(--ease) both; max-width: 2400px; width: 100%; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > * { min-width: 0; }
/* 同一行的卡片等高、底边对齐（工作台用；表单+汇总这类页面仍按各自内容高度） */
.cols.cols-eq { align-items: stretch; }
.col-main { flex: 999 1 460px; }
.col-side { flex: 1 1 300px; }
.paid-gate { max-width: 620px; margin: 24px auto; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.paid-gate h2 { font-size: 20px; }
.paid-gate p { margin: 0; line-height: 1.7; }
.paid-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }

/* ---------- 列表行 ---------- */
.row-item { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; animation: fadeUp var(--d4) var(--ease) both; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); animation: fadeUp var(--d4) var(--ease) both; transition: background var(--d2) var(--ease); }
.list-row:hover { background: var(--surface2); }
button.list-row { width: 100%; border-left: none; border-right: none; border-bottom: none; background: transparent; text-align: left; cursor: pointer; }
.bar { height: 6px; border-radius: 999px; background: var(--surface2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--primary); transition: width 900ms var(--ease); }

/* ---------- 工作台 ---------- */
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); animation: fadeUp var(--d4) var(--ease) both; }
.todo:hover { background: var(--surface2); }
.todo-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.todo-title { font-size: 14px; font-weight: 600; }
.todo-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.quota-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.clock { position: relative; padding: 12px 14px; border-radius: 12px; background: var(--surface2); display: flex; flex-direction: column; gap: 4px; animation: fadeUp var(--d4) var(--ease) both; }
.clock .tm { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- 卡片网格（调研类型、报告卡片、成果卡片）---------- */
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.flow-card { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-size: 15px; transition: transform var(--d2) var(--ease), border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.flow-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.report-card { display: flex; flex-direction: column; gap: 10px; animation: fadeUp var(--d4) var(--ease) both; transition: transform var(--d2) var(--ease), border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.report-card.clickable { cursor: pointer; }
.report-card.clickable:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }

/* ---------- 询盘：会话列表 + 聊天窗 ---------- */
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: stretch; min-height: 520px; }
.conv-pane { overflow-y: auto; max-height: 640px; padding: 6px; }
.conv { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: none; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; transition: background var(--d2) var(--ease); }
.conv:hover { background: var(--surface2); }
.conv.sel { background: var(--primary-soft); }
.conv-t { display: flex; align-items: center; gap: 8px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex: none; }
.unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 440px; background: var(--surface2); }
.msg { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; animation: fadeUp var(--d3) var(--ease) both; }
.msg small { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); }
.ai-draft { margin: 0 16px 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--text); border: 1px solid var(--line); }
.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; } .conv-pane { max-height: 260px; } }

/* ---------- 工作台：时钟编辑、快速开始、紧凑空状态 ---------- */
.clock-x { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: none; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: color var(--d2) var(--ease), background var(--d2) var(--ease); }
.clock-x:hover { background: var(--danger); color: #fff; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* 内容区放不下四个就两排两个，不要 3+1 的孤儿；手机一列 */
@media (max-width: 1180px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr; } }
.quick-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); animation: fadeUp var(--d4) var(--ease) both; transition: transform var(--d2) var(--ease), border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.quick-tile:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow); }
.quick-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: none; }
.quick-go { color: var(--muted); transition: transform var(--d2) var(--ease), color var(--d2) var(--ease); }
.quick-tile:hover .quick-go { transform: translateX(3px); color: var(--primary); }
.todo-clear { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); }
.mini-empty { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--line); font-size: 14px; }
/* 空状态：图标 + 说明 + 下一步 */
.empty-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-act { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- 通知铃铛与侧栏角标 ---------- */
.bell { position: relative; }
.bell-dot { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; animation: pulse 1.8s var(--ease) infinite; }
.pop { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: calc(100vw - 24px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 40; overflow: hidden; animation: pop var(--d3) var(--ease) both; transform-origin: top right; }
.pop-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.pop-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 13px; line-height: 1.5; transition: background var(--d2) var(--ease); }
.pop-row:hover { background: var(--surface2); }
.pop-foot { padding: 10px 16px; text-align: right; }
.nav-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-count.danger { background: var(--danger); color: #fff; }
.shell.collapsed .nav-count { display: none; }

/* ---------- 顶栏搜索与快速跳转 ---------- */
.search-btn { display: flex; align-items: center; gap: 10px; height: 38px; min-width: 260px; max-width: 420px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color var(--d2) var(--ease), box-shadow var(--d2) var(--ease); }
.search-btn:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-btn span { flex: 1; text-align: left; }
.search-btn kbd, .pal-row kbd { font: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.pal-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.pal-row { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 12px; border: none; border-radius: 9px; background: transparent; color: var(--text); font-size: 14px; cursor: pointer; text-align: left; }
.pal-row.on { background: var(--primary-soft); color: var(--primary); }
@media (max-width: 760px) { .search-btn { display: none; } }

/* ---------- 报告正文（Markdown）---------- */
.md { font-size: 14px; line-height: 1.8; color: var(--text); }
.md h2 { font-size: 20px; margin: 20px 0 8px; }
.md h3 { font-size: 17px; margin: 16px 0 6px; }
.md h4, .md h5 { font-size: 15px; margin: 12px 0 4px; }
.md p { margin: 8px 0; }
.md ul, .md ol { padding-left: 22px; margin: 8px 0; }
.md blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); background: var(--surface2); border-radius: 0 8px 8px 0; }
.md code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--surface2); padding: 1px 5px; border-radius: 5px; }
.md-table { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.md-table th { background: var(--surface2); text-align: left; padding: 8px 10px; font-weight: 600; border-bottom: 1px solid var(--line); }
.md-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------- 登录页（对照画布 Login.dc.html）---------- */
.login-root { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--surface); }
.brand { flex: 1 1 480px; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: #1E3FA8; color: #fff; position: relative; overflow: hidden; }
.brand-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; animation: pan 30s linear infinite; }
.brand-top { position: relative; display: flex; align-items: center; gap: 12px; }
.brand-name { font-size: 20px; font-weight: 700; }
.brand-stage { position: relative; height: 380px; }
.brand-foot { position: relative; }
.brand-title { font-size: 30px; font-weight: 700; line-height: 1.3; }
.brand-sub { font-size: 15px; opacity: .8; margin-top: 10px; }
.fl { position: absolute; background: rgba(255,255,255,.96); color: #151922; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 14px 16px; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.fl b { font-size: 13px; }
.fl .fl-muted { color: #5A6372; }
.fl-bar { height: 6px; border-radius: 99px; background: #EEF1F5; overflow: hidden; display: block; }
.fl-bar i { display: block; height: 100%; background: #2B59E0; border-radius: 99px; }
.fl-tag { align-self: flex-start; padding: 3px 8px; border-radius: 99px; background: #E5F5EC; color: #0F7A4D; font-weight: 600; }
.f1 { animation: float 7s ease-in-out infinite; }
.f2 { animation: float 8s ease-in-out -2s infinite; }
.f3 { animation: float 9s ease-in-out -4s infinite; }
.login-side { flex: 1 1 440px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.form-col { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 22px; animation: fadeUp var(--d4) var(--ease) both; }
.form-title { font-size: 26px; font-weight: 700; }
.form-hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-fields .field { min-height: 48px; font-size: 15px; border-radius: 12px; }
.fw { position: relative; display: block; }
.fw .field { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: none; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eye:hover { background: var(--surface2); }
.go { height: 48px; border-radius: 12px; border: none; background: var(--primary); color: var(--primary-ink); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background var(--d2) var(--ease), transform var(--d1) var(--ease); }
.go:hover:not([disabled]) { background: var(--primary-h); }
.go:active:not([disabled]) { transform: scale(.98); }
.go[disabled] { opacity: .6; cursor: not-allowed; }
.form-err { font-size: 13px; color: var(--danger); animation: fadeUp var(--d3) var(--ease) both; }
.terms { font-size: 12px; color: var(--muted); text-align: center; }
.shake { animation: shake 420ms var(--ease); }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes shake { 0%,100% { transform: none; } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pan { to { background-position: 44px 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .collapse-btn { display: none; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform var(--d3) var(--ease); width: 248px !important; }
  .shell.drawer-open .side { transform: none; box-shadow: var(--shadow-lg); }
  .shell.drawer-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 49; background: var(--scrim); animation: fadeIn var(--d3) var(--ease) both; }
  .shell.collapsed .label-txt, .shell.collapsed .grp, .shell.collapsed .side-brand .txt { display: initial; }
  .user-name { display: none; }
  .user-chip { padding-right: 6px; }
  .topbar { padding: 10px 16px; min-height: 52px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .page { padding: 20px 16px 40px; }
  .page-title { font-size: 24px; }
  .clocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { min-height: auto; padding: 24px 20px; }
  .brand-stage { display: none; }
  .brand-title { font-size: 22px; }
  .login-side { padding: 28px 20px; }
  .modal-wide { width: 100%; }
}
/* ---------- 渠道：获取模型列表 / 测试连接（2026-11-20） ---------- */
.mfield-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 8px; }
.mpick { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface2); margin-bottom: 10px; }
.mpick-bar { display: flex; align-items: center; gap: 12px; }
.mpick-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mpick-kinds .chip { height: 28px; font-size: 12px; }
.mpick-list { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.mpick-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); }
.mpick-item:last-child { border-bottom: 0; }
.mpick-item:hover { background: var(--surface2); }
.mpick-item.on { background: var(--primary-soft); }
.mpick-item input { accent-color: var(--primary); flex: none; }
.mpick-name { flex: 1; min-width: 0; word-break: break-all; }
.mpick-kind { flex: none; font-size: 12px; color: var(--muted); }
.chk { margin-top: 8px; }
.chk-conn { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chk-hint { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
@media (max-width: 640px) { .mpick-bar { flex-direction: column; align-items: stretch; } }
/* ---------- 渠道：模型类型总览与分组（2026-11-20） ---------- */
.kov { padding: 18px 22px; }
.kov-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
/* 说明文字放到标题下面一行，和其它卡片的「标题 + 副标题」一致 */
.kov-head > .muted { flex-basis: 100%; order: 3; font-size: 12px; line-height: 1.6; }
.kov .table-wrap { border: 1px solid var(--line); border-radius: 10px; }
.kov-head .btn { margin-left: auto; }
.kov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kov-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--d2) var(--ease), background var(--d2) var(--ease); }
.kov-cell:hover { border-color: var(--primary); }
.kov-cell.on { border-color: var(--primary); background: var(--primary-soft); }
.kov-label { font-size: 13px; font-weight: 600; }
.kov-num { font-size: 12px; color: var(--ok); }
.kov-ch { color: var(--muted); word-break: break-all; }
.kov-cell.none { border-style: dashed; background: var(--surface2); }
.kov-cell.none .kov-num { color: var(--warn); }
.mgroups { display: flex; flex-direction: column; gap: 6px; }
.mgroup { display: flex; align-items: baseline; gap: 8px; border-radius: 6px; }
.mgroup.hl { background: var(--primary-soft); box-shadow: 0 0 0 4px var(--primary-soft); }
.ktag { flex: none; font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.mnames { min-width: 0; font-size: 12px; word-break: break-all; }
/* 渠道表：5 列紧凑布局，不出横向滚动条（2026-11-20） */
.ch-tbl { table-layout: auto; width: 100%; }
.ch-tbl td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
.ch-name { min-width: 120px; }
.ch-url { margin-top: 4px; word-break: break-all; }
.ch-state { white-space: nowrap; }
.ch-state .small { margin-top: 6px; }
.ch-models { min-width: 180px; }
.ch-probe { white-space: nowrap; line-height: 1.7; }
.ch-err { color: var(--danger); white-space: normal; word-break: break-all; max-width: 220px; }
.ch-ops { width: 1%; }
.ch-ops-grid { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; justify-content: start; }
.ch-tbl .mgroup { align-items: flex-start; }
@media (min-width: 1280px) { .ch-ops-grid { grid-template-columns: repeat(4, auto); } }
.fm { padding: 18px 22px; }
.fm-list { display: flex; flex-direction: column; }
.fm-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 80px; gap: 4px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.fm-row:first-child { border-top: 0; }
.fm-sel select { width: 100%; }
.fm-note { grid-column: 2 / 4; line-height: 1.5; }
@media (max-width: 640px) { .fm-row { grid-template-columns: 1fr; } .fm-note { grid-column: 1; } }

/* ---------- 自制滚动条（不用系统默认的粗滚动条和上下箭头） ---------- */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
*::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, var(--muted) 32%, transparent); border: 2px solid transparent; border-radius: 999px; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--muted) 58%, transparent); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; } }

/* ---------- 自制下拉列表（js/ui-select.js） ---------- */
.zsel-pop {
  position: fixed; z-index: 1000; min-width: 160px; padding: 5px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: zselIn var(--d2) var(--ease);
}
@keyframes zselIn { from { opacity: 0; transform: translateY(-4px); } }
.zsel-pop.up { animation-name: zselUp; }
@keyframes zselUp { from { opacity: 0; transform: translateY(4px); } }
.zsel-opt { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px; border-radius: 8px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.zsel-opt.active { background: var(--surface2); }
.zsel-opt[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.zsel-opt[aria-disabled="true"] { color: var(--muted); opacity: .6; cursor: default; }
.zsel-grp { padding: 8px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .zsel-pop { animation: none; } }

/* ---------- 自制勾选框、单选框 ---------- */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none; width: 16px; height: 16px;
  display: inline-grid; place-content: center; vertical-align: -3px; cursor: pointer;
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: 5px;
  transition: background var(--d1) var(--ease), border-color var(--d1) var(--ease), box-shadow var(--d1) var(--ease);
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not([disabled]), input[type="radio"]:hover:not([disabled]) { border-color: var(--primary); }
input[type="checkbox"]:checked, input[type="radio"]:checked, input[type="checkbox"]:indeterminate { background: var(--primary); border-color: var(--primary); }
input[type="checkbox"]::before { content: ""; width: 9px; height: 9px; background: var(--primary-ink); transform: scale(0); transition: transform var(--d1) var(--ease);
  clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 22%, 86% 8%, 39% 68%); }
input[type="checkbox"]:checked::before { transform: scale(1); }
input[type="checkbox"]:indeterminate::before { clip-path: inset(40% 5% 40% 5%); transform: scale(1); }
input[type="radio"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-ink); transform: scale(0); transition: transform var(--d1) var(--ease); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
input[type="checkbox"][disabled], input[type="radio"][disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- 自制日期选择（js/ui-date.js） ---------- */
input[type="date"]:not([data-native]), input[type="datetime-local"]:not([data-native]) { cursor: pointer; }
input[type="date"]:not([data-native])::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:not([data-native])::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; width: 14px; height: 14px; padding: 0; background: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
  background-color: var(--text);
}
input[data-open] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.zdp-pop {
  position: fixed; z-index: 1000; width: 280px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: zselIn var(--d2) var(--ease); font-size: 13px;
}
.zdp-head { display: flex; align-items: center; justify-content: space-between; }
.zdp-head b { font-size: 14px; font-weight: 600; }
.zdp-nav { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.zdp-nav:hover { background: var(--surface2); }
.zdp-week, .zdp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.zdp-week span { font-size: 12px; color: var(--muted); padding: 4px 0; }
.zdp-day { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; font: inherit; font-variant-numeric: tabular-nums; }
.zdp-day:hover:not([disabled]) { background: var(--surface2); }
.zdp-day.other { color: var(--muted); opacity: .55; }
.zdp-day.today { box-shadow: inset 0 0 0 1px var(--primary); }
.zdp-day.on { background: var(--primary); color: var(--primary-ink); font-weight: 600; }
.zdp-day[disabled] { opacity: .3; cursor: not-allowed; }
.zdp-time { display: flex; align-items: center; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.zdp-time span { color: var(--muted); margin-right: auto; }
.zdp-t { width: 46px; height: 32px; text-align: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; }
.zdp-t:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.zdp-foot { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.zdp-link { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 4px 2px; font: inherit; }
@media (prefers-reduced-motion: reduce) { .zdp-pop { animation: none; } }
