/* Work Table — 精简 iOS 风格；仅系统字体，无外部资源 */
:root {
  --hour: 64px;
  --q: calc(var(--hour) / 4);
  --gutter: 52px;

  --bg: #ffffff;
  --bg-grouped: #f2f2f7;
  --text: #1c1c1e;
  --text-2: #6c6c70;
  --text-3: #a1a1a6;
  --sep: rgba(60, 60, 67, .12);
  --line-h: rgba(60, 60, 67, .10);
  --line-q: rgba(60, 60, 67, .035);
  --accent: #3b5bdb;
  --accent-soft: rgba(59, 91, 219, .09);
  --night: rgba(59, 91, 219, .028);
  --danger: #e5484d;
  --now: #ff3b30;

  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  letter-spacing: .01em;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
svg { fill: currentColor; display: block; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 .5px 0 var(--sep);
  padding-top: env(safe-area-inset-top);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.bar-title { min-width: 0; }
.week-label { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.week-label .yr { color: var(--text-3); font-weight: 600; margin-right: 4px; }
.bar-sub { margin-top: 2px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub .sep { margin: 0 5px; color: var(--text-3); }
.bar-sub { display: flex; align-items: center; }
.tz-pill { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px 0 9px; margin-left: 1px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tz-pill:active { background: rgba(59, 91, 219, .16); }
.tz-pill svg { opacity: .8; }
.opt-row { width: 100%; text-align: left; cursor: pointer; }
.opt-row .k { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.opt-row .k small { font-size: 12.5px; color: var(--text-2); }
.opt-row .v { display: flex; align-items: center; gap: 10px; }
.opt-row .check { width: 18px; color: var(--accent); visibility: hidden; }
.opt-row.on .check { visibility: visible; }
.opt-row:active { background: rgba(0, 0, 0, .03); }
.bar-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.seg { display: flex; align-items: center; background: var(--bg-grouped); border-radius: 10px; padding: 2px; }
.seg button { height: 32px; min-width: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--text); }
.seg .seg-text { padding: 0 10px; font-size: 13px; font-weight: 600; }
.seg .seg-text.off { color: var(--accent); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button:active { background: rgba(0,0,0,.06); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); }
.icon-btn:active { background: var(--bg-grouped); }

/* 日期条 */
.daytabs { display: grid; grid-template-columns: repeat(7, 1fr); padding: 2px 8px 6px; }
.daytab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0 6px; border-radius: 12px; }
.daytab .dow { font-size: 11px; font-weight: 500; color: var(--text-3); }
.daytab .dnum { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); transition: background .15s, color .15s; }
.daytab .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); opacity: 0; }
.daytab.has .dot { opacity: 1; }
.daytab.today .dnum { color: var(--accent); font-weight: 700; }
.daytab.today .dow { color: var(--accent); }
.daytab.active .dnum { background: var(--text); color: #fff; font-weight: 600; }
.daytab.active.today .dnum { background: var(--accent); }
.daytab.active .dot { background: var(--text-2); }

.dayspan { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 9px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dayspan .arrow { color: var(--text-3); margin: 0 4px; }
.dayspan .cnt { color: var(--text-3); }

.colheads { display: none; }
.admin-banner { display: flex; justify-content: space-between; align-items: center; padding: 7px 16px; font-size: 12.5px; color: #8a5a00; background: #fff8e6; box-shadow: inset 0 .5px 0 var(--sep); }
.sys-banner { padding: 8px 16px; font-size: 12.5px; line-height: 1.45; color: #b42318; background: #fff1f0; box-shadow: inset 0 .5px 0 var(--sep); }
.admin-banner button { color: #8a5a00; font-weight: 600; }

/* ---------- 时间轴 ---------- */
.board { padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.timeline { display: grid; grid-template-columns: var(--gutter) 1fr; position: relative; padding-top: 16px; }
.gutter { position: relative; height: calc(var(--hour) * var(--rows, 24)); }
.gutter .night-g { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--hour) * 9); background: var(--night); }
.hour-label { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; line-height: 1; text-align: right; }
.hour-label .sub { display: block; margin-top: 3px; font-size: 10px; color: var(--accent); font-weight: 600; opacity: .8; }
.now-label { position: absolute; right: 5px; transform: translateY(-50%); z-index: 7; font-size: 11px; font-weight: 700; color: var(--now); background: var(--bg); padding: 2px 3px; font-variant-numeric: tabular-nums; line-height: 1; }
.cols { display: grid; grid-template-columns: 1fr; position: relative; }
.col {
  position: relative; height: calc(var(--hour) * var(--rows, 24)); touch-action: pan-y; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  background-image: linear-gradient(to bottom, var(--line-h) 1px, transparent 1px), linear-gradient(to bottom, var(--line-q) 1px, transparent 1px);
  background-size: 100% var(--hour), 100% var(--q);
}
.col + .col { box-shadow: inset .5px 0 0 var(--sep); }
.col .night { position: absolute; inset: 0 0 auto 0; height: calc(var(--hour) * 9); background: var(--night); pointer-events: none; }
.col .zone { position: absolute; left: 12px; font-size: 10.5px; font-weight: 500; color: var(--text-3); pointer-events: none; letter-spacing: .04em; }
.col .zone.n { top: 6px; color: rgba(59, 91, 219, .55); }
.col .zone.d { top: calc(var(--hour) * 9 + 6px); }
.col .boundary { position: absolute; left: 0; right: 0; top: calc(var(--hour) * 9); border-top: 1px solid rgba(59, 91, 219, .16); pointer-events: none; }
.col .midnight { position: absolute; left: 0; right: 0; border-top: 1.5px solid rgba(59, 91, 219, .38); pointer-events: none; z-index: 1; }
.col .midnight-label { position: absolute; right: 6px; transform: translateY(-50%); padding: 1px 8px; border-radius: 999px; background: #eef2ff; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .02em; pointer-events: none; z-index: 2; box-shadow: 0 0 0 2px #fff; white-space: nowrap; }
@media (min-width: 900px) { .col .midnight-label { right: 4px; font-size: 10px; padding: 0 6px; } }
.now-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--now); z-index: 6; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -4.75px; width: 8px; height: 8px; border-radius: 50%; background: var(--now); }

.booking {
  position: absolute; left: 4px; right: 6px; z-index: 4; overflow: hidden;
  border-radius: 8px; padding: 5px 8px 5px 11px;
  background: var(--bk-bg); color: var(--bk-fg);
  font-size: 13px; line-height: 1.32; cursor: pointer;
  display: flex; flex-direction: column; gap: 1px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.booking::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bk-bar); }
.booking:active { transform: scale(.985); }
.booking .b-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking .b-task { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .82; }
.booking .b-time { font-size: 11px; opacity: .62; font-variant-numeric: tabular-nums; white-space: nowrap; }
.booking .b-note { font-size: 11.5px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking.compact { flex-direction: row; align-items: center; gap: 6px; padding-top: 0; padding-bottom: 0; font-size: 12px; }
.booking.compact .b-name { flex: none; max-width: 55%; }
.booking.compact .b-task { flex: 1; min-width: 0; }
.booking.compact .b-time, .booking.compact .b-note { display: none; }
.booking.cont-top { border-top-left-radius: 2px; border-top-right-radius: 2px; }
.booking.cont-bottom { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }

.selection { position: absolute; left: 4px; right: 6px; z-index: 5; border-radius: 8px; background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); pointer-events: none; padding: 4px 8px; font-size: 11.5px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.hover-slot { position: absolute; left: 4px; right: 6px; z-index: 3; height: var(--q); border-radius: 6px; background: var(--accent-soft); pointer-events: none; display: none; align-items: center; padding-left: 8px; font-size: 10.5px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.empty-hint { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--text-3); pointer-events: none; }

/* ---------- 浮动按钮 ---------- */
.fab { position: fixed; right: 18px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 25; width: 58px; height: 58px; border-radius: 18px; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(59, 91, 219, .32), 0 2px 6px rgba(59, 91, 219, .2); transition: transform .12s; }
.fab:active { transform: scale(.94); }

/* ---------- 底部弹窗（iOS 分组样式） ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); z-index: 40; animation: fade .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg-grouped); border-radius: 14px 14px 0 0; max-height: 92vh; display: flex; flex-direction: column; animation: up .28s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 40px rgba(0, 0, 0, .12); }
.sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: rgba(60, 60, 67, .22); margin: 6px auto 0; flex: none; }
.sheet-body { overflow-y: auto; padding: 0 16px 20px; -webkit-overflow-scrolling: touch; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 48px; margin: 0 -4px 4px; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .link { justify-self: start; color: var(--accent); font-size: 16px; padding: 8px 4px; }
.sheet-caption { margin: 0 4px 16px; font-size: 13px; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; }

.group { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.group-label { margin: 0 16px 6px; font-size: 12.5px; color: var(--text-2); }
.row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 16px; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.row > .k { flex: none; color: var(--text); }
.row > .v { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.row input, .row select, .group textarea { font: inherit; font-size: 16px; color: var(--text); background: transparent; border: 0; outline: none; -webkit-appearance: none; appearance: none; }
.row input { flex: 1; min-width: 0; text-align: right; height: 46px; }
.row input::placeholder, .group textarea::placeholder { color: var(--text-3); }
.row select { flex: 1; min-width: 0; height: 46px; text-align: right; text-align-last: right; color: var(--accent); font-variant-numeric: tabular-nums; padding-right: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='13' viewBox='0 0 8 13'%3E%3Cpath d='M1 1l5.5 5.5L1 12' fill='none' stroke='%23c4c4c7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; }
.row select option { color: var(--text); }
.group textarea { display: block; width: 100%; min-height: 84px; padding: 13px 16px; resize: none; line-height: 1.45; }
.row.warn .v { color: var(--danger); }
.hint-warn { margin: -12px 16px 18px; font-size: 13px; color: var(--danger); }
.hint-warn:empty { display: none; }
.form-error { margin: -6px 4px 14px; font-size: 14px; font-weight: 500; color: var(--danger); text-align: center; }
.form-error:empty { display: none; }

.btn-primary { display: block; width: 100%; height: 50px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 17px; font-weight: 600; transition: opacity .15s, transform .1s; }
.btn-primary:active { transform: scale(.99); opacity: .9; }
.btn-primary:disabled { opacity: .45; }
.btn-plain { display: block; width: 100%; height: 48px; margin-top: 8px; border-radius: 12px; font-size: 16px; color: var(--accent); }
.btn-plain.danger { color: var(--danger); }
.btn-plain:active { background: rgba(0, 0, 0, .04); }

.detail-head { display: flex; gap: 12px; align-items: stretch; margin: 6px 4px 20px; }
.detail-head .bar-c { width: 4px; border-radius: 2px; flex: none; }
.detail-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.detail-head p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.detail-head .mine { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; vertical-align: 4px; }
.note-text { padding: 13px 16px; font-size: 15px; line-height: 1.5; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.footnote { margin: 12px 4px 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.info-row { padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--text); }
.info-row + .info-row { box-shadow: inset 16px .5px 0 #fff, inset 0 .5px 0 var(--sep); }
.info-row b { font-weight: 600; }

/* ---------- 口令页 ---------- */
.gate { position: fixed; inset: 0; z-index: 60; background: var(--bg-grouped); display: grid; place-items: center; padding: 24px; }
.gate-card { width: 100%; max-width: 340px; text-align: center; }
.gate-card img { border-radius: 14px; }
.gate-card h2 { margin: 16px 0 6px; font-size: 22px; font-weight: 700; }
.gate-card p { margin: 0 0 22px; font-size: 14px; color: var(--text-2); }
.gate-input { width: 100%; height: 50px; border: 0; border-radius: 12px; background: #fff; padding: 0 16px; font: inherit; font-size: 17px; text-align: center; outline: none; margin-bottom: 14px; }
.gate-input:focus { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); transform: translate(-50%, -12px); z-index: 70; background: rgba(28, 28, 30, .92); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s ease; white-space: nowrap; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- 桌面：7 列 ---------- */
@media (min-width: 900px) {
  :root { --hour: 56px; --gutter: 60px; --bg: #ffffff; }
  .bar { padding: 14px 24px 12px; }
  .week-label { font-size: 24px; }
  .daytabs, .dayspan, .fab { display: none !important; }
  .colheads { display: grid; grid-template-columns: var(--gutter) repeat(7, 1fr); padding: 0 0 8px; }
  .colhead { padding: 2px 10px 0; min-width: 0; }
  .colhead.corner { display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 8px 4px 0; font-size: 10px; color: var(--text-3); text-align: right; line-height: 1.3; }
  .colhead .ch-row { display: flex; align-items: center; gap: 6px; }
  .colhead .ch-dow { font-size: 12px; font-weight: 500; color: var(--text-2); }
  .colhead .ch-num { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; height: 30px; min-width: 30px; padding: 0 6px; margin-left: -6px; border-radius: 15px; display: grid; place-items: center; }
  .colhead .ch-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
  .colhead .ch-span { margin-top: 1px; font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .colhead.today .ch-dow { color: var(--accent); }
  .colhead.today .ch-num { background: var(--accent); color: #fff; margin-left: 0; }
  .board { padding-bottom: 48px; }
  .cols { grid-template-columns: repeat(7, 1fr); }
  .booking { left: 3px; right: 4px; border-radius: 6px; padding: 3px 6px 3px 9px; font-size: 12px; }
  .booking.compact { font-size: 10.5px; line-height: 12px; gap: 4px; padding-left: 8px; }
  .colheads + .admin-banner { margin-top: 0; }
  .col .zone { left: auto; right: 6px; font-size: 10px; }
  .col:hover .hover-slot { display: flex; }
  .booking:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
  .sheet-backdrop { animation: fade .15s; }
  .sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: 420px; transform: translate(-50%, -50%); border-radius: 16px; max-height: 88vh; animation: pop .2s ease; padding-bottom: 0; box-shadow: 0 24px 64px rgba(0, 0, 0, .18); }
  .sheet-grip { display: none; }
  .sheet-body { padding: 4px 20px 20px; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
}
@media (max-width: 370px) {
  :root { --gutter: 48px; }
  .bar { padding-left: 14px; padding-right: 10px; }
  .week-label { font-size: 20px; }
  .seg .seg-text { padding: 0 8px; }
}

/* 个人身份 / 成员颜色 */
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.name-lock { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.name-lock svg { color: var(--text-3); }
.link.small { color: var(--accent); font-size: 14px; font-weight: 500; margin-left: 6px; }
.group.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 6px 0; }
.legend-item { display: flex; align-items: center; gap: 9px; padding: 9px 16px; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-item .swatch { width: 12px; height: 12px; border-radius: 4px; }
.gate-input { letter-spacing: .18em; font-weight: 600; }
.gate-input::placeholder { letter-spacing: 0; font-weight: 400; }
.row > .v.name-lock { color: var(--text); }

/* 品牌 */
.bar-sub .brand { font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.gate-brand { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.gate-card .gate-brand + h2 { margin-top: 6px; }
.booking .b-sub { opacity: .78; font-style: normal; }

/* ---------- 公告 ---------- */
.bar-actions { gap: 2px; }
.icon-btn.bell { position: relative; }
.icon-btn .badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.ann-banner { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 16px; height: 34px; background: #f4f7ff; box-shadow: inset 0 .5px 0 var(--sep); }
.ann-banner[hidden] { display: none; }
.ann-banner-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 100%; color: var(--accent); font-size: 13px; font-weight: 500; text-align: left; }
.ann-banner-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-banner-main svg { flex: none; opacity: .85; }
.ann-banner-x { width: 30px; height: 30px; border-radius: 8px; color: var(--text-3); font-size: 12px; }
.ann-banner-x:active { background: rgba(0, 0, 0, .05); }
.nav-row { width: 100%; text-align: left; cursor: pointer; }
.nav-row:active { background: rgba(0, 0, 0, .03); }
.nav-row .v { display: inline-flex; align-items: center; gap: 8px; }
.nav-row.danger .k { color: var(--danger); }
.chev { width: 7px; height: 7px; border-right: 1.6px solid var(--text-3); border-top: 1.6px solid var(--text-3); transform: rotate(45deg); margin-right: 3px; }
.count-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.admin-chip { margin-left: 8px; padding: 1px 7px; border-radius: 6px; background: #fff3d6; color: #8a5a00; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; }
.sheet-head .link.right { justify-self: end; font-weight: 600; }
.sheet-caption.left { text-align: left; margin-top: -10px; }
.ann-pop-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 12px; }
.ann-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.ann-pager { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.ann-card { background: #fff; border-radius: 14px; padding: 18px 18px 16px; margin-bottom: 14px; max-height: 52vh; overflow: auto; -webkit-overflow-scrolling: touch; }
.ann-title { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; word-break: break-word; }
.ann-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; font-size: 12.5px; color: var(--text-2); }
.ann-author { font-weight: 600; color: var(--text); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--bg-grouped); color: var(--text-2); font-size: 11.5px; font-weight: 600; }
.tag.pin { background: #fff3d6; color: #8a5a00; }
.ann-body { font-size: 15.5px; line-height: 1.6; color: var(--text); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.ann-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.ann-body.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ann-nav { display: flex; justify-content: space-between; margin: -4px 2px 12px; }
.ann-nav[hidden] { display: none; }
.ann-nav button { height: 34px; padding: 0 10px; border-radius: 9px; color: var(--accent); font-size: 14px; font-weight: 500; }
.ann-nav button:disabled { color: var(--text-3); }
.ann-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.ann-item { position: relative; background: #fff; border-radius: 14px; padding: 16px 16px 14px; }
.ann-item.dim { opacity: .62; }
.ann-item .ann-title { font-size: 16.5px; padding-right: 14px; }
.ann-item .ann-body { font-size: 15px; }
.ann-item .more { margin: 6px 0 0; padding: 0; }
.unread-dot { position: absolute; top: 20px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.ann-admin { margin-top: 12px; padding-top: 10px; border-top: .5px solid var(--sep); }
.ann-admin > .tag { margin-right: 6px; margin-bottom: 8px; }
.ann-stats-line { font-size: 13px; color: var(--text-2); }
.ann-stats-line b { color: var(--text); font-weight: 600; }
.ann-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 3px 9px; border-radius: 999px; background: var(--bg-grouped); color: var(--text-3); font-size: 12.5px; }
.chip.on { background: #e9f7ef; color: #1f7a45; font-weight: 600; }
.chip.on::before { content: "✓ "; }
.ann-actions { display: flex; gap: 6px; margin-top: 10px; }
.ann-actions button { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--bg-grouped); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.ann-actions button.danger { color: var(--danger); margin-left: auto; }
.ann-preview { margin-top: 12px; box-shadow: 0 0 0 1.5px var(--accent-soft) inset; }
.empty { text-align: center; padding: 40px 20px 20px; color: var(--text-3); }
.empty p { margin: 10px 0 22px; font-size: 15px; }
.ta-count { padding: 0 16px 10px; text-align: right; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.group textarea#acBody { min-height: 150px; }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: #e5e5ea; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); transition: transform .2s; }
.switch input:checked + i { background: #34c759; }
.switch input:checked + i::after { transform: translateX(20px); }
.hour-label.hide-near-now { visibility: hidden; }

/* 前晚引导区（东八区顶部 21:00–24:00） */
.timeline.has-lead { padding-top: 30px; }
.col .lead-label { position: absolute; top: -24px; left: 10px; right: 4px; font-size: 11px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; font-variant-numeric: tabular-nums; background: none; }
.booking.lead { opacity: .55; }
.booking.lead:hover { opacity: .8; }
.col .midnight.top { border-top-width: 0; }
.col .midnight-label.top { transform: translateY(4px); }
.col .zone.d, .col .zone.n { z-index: 0; }

/* 预约详情（日历风格） */
.dt-bar { display: flex; align-items: center; gap: 4px; margin: 0 -8px 6px; height: 44px; }
.dt-sp { flex: 1; }
.dt-btn { width: 42px; height: 42px; border-radius: 21px; display: grid; place-items: center; color: var(--text-2); }
.dt-btn:active { background: rgba(0, 0, 0, .06); }
.dt-btn.danger { color: var(--danger); }
.dt-title { display: flex; gap: 14px; align-items: flex-start; padding: 4px 4px 18px; }
.dt-dot { width: 16px; height: 16px; border-radius: 5px; flex: none; margin-top: 7px; }
.dt-title h2 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.dt-title .mine { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 6px; vertical-align: 4px; }
.dt-task { margin: 4px 0 0; font-size: 16px; color: var(--text); }
.dt-row { display: flex; gap: 16px; align-items: flex-start; padding: 12px 4px 12px 3px; border-top: .5px solid var(--sep); color: var(--text-2); }
.dt-row svg { flex: none; margin-top: 1px; }
.dt-main { font-size: 16px; color: var(--text); font-weight: 500; }
.dt-sub { margin-top: 3px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dt-note { font-size: 15.5px; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.dt-row.muted .dt-sub { margin-top: 0; font-size: 13px; }
