/* 漏刻与通政司（docs/WORLD_DESIGN.md §1–2，docs/COURT_UI_DESIGN.md §4.2、§4.9）：
   案上的光、暂停帘、"漏壶已停"、日暮、加急的牌。
   时间轴和报事台的布局随御案主样式 court.css 加载。 */

/* 壶底那一滴：走着的时候一滴滴落 */
.lk-drip { position: absolute; left: 50%; bottom: 2px; width: 3px; height: 4px; margin-left: -1.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #cfe9f7; animation: lkDrip 1.6s ease-in infinite; }
.tline.still .lk-drip, .tline.paused .lk-drip, .tline.still .lk-water::before, .tline.paused .lk-water::before { animation: none; opacity: 0; }
.tline.late .lk-water { background: linear-gradient(180deg, #e0a060, #8a3a1a); }
.tline.final .lk-drip { animation-duration: 0.9s; }
@keyframes lkShimmer { 50% { transform: translateX(30%); } }
@keyframes lkDrip { 0% { transform: translateY(-8px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(4px); opacity: 0; } }
@keyframes lkPulse { 50% { box-shadow: 0 0 0 2px rgba(215, 57, 47, 0.55), 0 0 18px rgba(215, 57, 47, 0.45); } }

/* ——暂停：帘子垂下来，案上的本子都看不见；点一下接着走—— */
.lk-curtain {
  position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; cursor: pointer;
  background:
    linear-gradient(180deg, rgba(10, 6, 4, 0.55), rgba(10, 6, 4, 0.2) 30%, rgba(10, 6, 4, 0.6)),
    repeating-linear-gradient(90deg, #5e4220 0 7px, #4a3218 7px 8px, #6b4c27 8px 13px, #3b2712 13px 14px);
  animation: lkDown 0.42s var(--out) both;
}
.lk-curtain[hidden] { display: none; }
.lk-curtain::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: linear-gradient(180deg, #2a1a0c, #6b4a22 60%, #2a1a0c); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); }
.lk-c-box { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 30px; border: 1px solid var(--gold); border-radius: 4px; background: rgba(12, 8, 5, 0.9); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7); text-align: center; }
.lk-c-box b { font: 400 32px/1.1 var(--f-brush); color: var(--gold-bright); letter-spacing: 0.3em; padding-left: 0.3em; }
.lk-c-box p { margin: 0; font-size: 14px; color: var(--text); }
.lk-c-box small { font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
@keyframes lkDown { from { transform: translateY(-100%); } to { transform: none; } }

/* ——案上的光：一个月当一天。罩色、窗格光影、四角压暗、案头的灯，都由 clock.js 按漏壶走到哪儿调；
   罩在御案底图和案头小笺上，展开的奏本、顶栏、奏匣都在它上面，不受影响。
   只用寻常的半透明叠色：这一层自成层叠上下文，混合模式碰不到下面的东西—— */
.daylight { --tint: rgba(255, 246, 226, 0.14); --bx: 20%; --bs: -6deg; --bo: 0.4; --vg: 0.12; --lamp: 0; position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.daylight[hidden] { display: none; }
.daylight > i { position: absolute; display: block; }
.dl-tint { inset: 0; background-color: var(--tint); transition: background-color 1.5s linear; }
/* 窗格的光影：一格格落在案上，清晨斜在左边，过午拉长到右边，掌灯后没了 */
.dl-beam {
  top: 6%; bottom: 6%; left: var(--bx); width: 46%; opacity: var(--bo); transform: skewX(var(--bs)); transform-origin: 50% 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='76'%3E%3Crect x='5' y='5' width='50' height='66' rx='2' fill='%23fff1cf'/%3E%3C/svg%3E");
  background-size: 60px 76px; filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 68%, transparent);
  transition: left 1.5s linear, transform 1.5s linear, opacity 1.5s linear;
}
.dl-lamp { inset: 0; opacity: var(--lamp); transition: opacity 2s ease; background: radial-gradient(circle at 20% 62%, rgba(255, 176, 90, 0.26), rgba(255, 140, 60, 0.08) 26%, transparent 46%), radial-gradient(circle at 84% 32%, rgba(255, 170, 80, 0.2), transparent 36%); }
.dl-vig { inset: 0; opacity: var(--vg); transition: opacity 1.5s linear; background: radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(6, 3, 2, 0.9) 100%); }
.daylight.final .dl-lamp { animation: lampFlicker 1.3s ease-in-out infinite; }
@keyframes lampFlicker { 0%, 100% { opacity: 1; } 18% { opacity: 0.72; } 30% { opacity: 0.95; } 52% { opacity: 0.66; } 70% { opacity: 0.9; } }
.scr-court .paper { z-index: 2; }

/* ——停表的浮层：召对、翻牌子、后宫、设置……右上角挂一枚"漏壶已停"（左上多是返回、当中多是标题）—— */
.lk-held {
  --k: 1; position: absolute; top: calc(var(--safe-t) + 10px); right: 12px; z-index: 60; display: flex; align-items: center; gap: 6px;
  padding: 3px 11px 3px 7px; border: 1px solid var(--gold-dim); border-radius: 13px;
  background: rgba(12, 8, 5, 0.86); color: var(--gold-bright); font-size: 12px; letter-spacing: 0.12em; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.lk-held .lk-pot { width: 11px; height: 15px; border-width: 1.5px; border-top-width: 2px; }

/* ——日暮：光沉下去，案上一行大字；没批的牌盖上"代批"被收走，在途的标"未及呈览"—— */
.scr-court.dusk-on .daylight { --tint: rgba(15, 8, 4, 0.5) !important; --bo: 0 !important; --vg: 0.92 !important; --lamp: 0.6 !important; }
.scr-court :is(.hud, .tline, .realm, .rail) { transition: filter 0.6s ease; }
.scr-court.dusk-on :is(.hud, .tline, .realm, .rail) { filter: brightness(0.5) saturate(0.7); }
.lk-dusk { position: absolute; left: 0; right: 0; top: 26%; z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; pointer-events: none; text-align: center; }
.lk-dusk b { font: 400 64px/1 var(--f-brush); color: var(--zhu-bright); letter-spacing: 0.3em; padding-left: 0.3em; text-shadow: 0 0 30px rgba(215, 57, 47, 0.5), 0 2px 6px #000; }
.lk-dusk small { font-size: 15px; color: var(--text); letter-spacing: 0.2em; text-shadow: 0 1px 4px #000; }
.dk-cost { min-height: 1.6em; margin: 4px 0 0; font-size: 15px; color: #ffd2c4; letter-spacing: 0.08em; text-shadow: 0 1px 4px #000; }
.m-dai { position: absolute; left: 50%; top: 46%; z-index: 3; padding: 2px 5px; transform: translate(-50%, -50%) rotate(-12deg); border: 2px solid #c0281e; border-radius: 3px; background: rgba(255, 240, 222, 0.9); color: #b3261e; font: 400 17px/1.1 var(--f-brush); letter-spacing: 0.1em; white-space: nowrap; animation: daiIn 0.22s var(--spring) both; }
@keyframes daiIn { from { transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); opacity: 0; } }
.mcard.ghost.missed .mface { border-color: rgba(215, 57, 47, 0.7); }
.mcard.ghost.missed .gh-t { color: #ff9c8a; }

/* ——加急的牌：右上一枚"急"，底边一条写着"到点代批"和读秒，上沿一根引线烧着限期—— */
.mcard.urgent .mface { padding-bottom: 22px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55), 0 0 0 2px #c0281e, 0 0 16px rgba(215, 57, 47, 0.45); }
.m-due { position: absolute; inset: 3px; z-index: 2; pointer-events: none; }
.m-due b { position: absolute; top: 0; right: 0; width: 20px; height: 20px; border-radius: 50%; background: #c0281e; color: #fff3d8; font: 400 13px/20px var(--f-brush); text-align: center; box-shadow: 0 0 8px rgba(255, 80, 40, 0.65); }
.m-due i { position: absolute; left: -2px; bottom: 15px; height: 3px; width: calc(var(--due, 1) * (100% + 4px)); border-radius: 2px; background: linear-gradient(90deg, #c0281e, #ffd08a); box-shadow: 0 0 6px rgba(255, 150, 60, 0.8); transition: width 0.5s linear; }
.m-due small { position: absolute; left: -3px; right: -3px; bottom: -3px; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 18px; padding: 0 5px; background: rgba(120, 20, 12, 0.92); color: #ffe7d4; font-size: 10px; line-height: 18px; white-space: nowrap; }
.m-due small em { font-style: normal; overflow: hidden; text-overflow: clip; }
.m-due small span { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.mcard.urgent.dire .m-due b { animation: lkPulse 0.8s ease-in-out infinite; }

/* ——新到的牌：左上一枚"新"，打开过一回就摘—— */
.m-new { display: none; position: absolute; top: 3px; left: 3px; z-index: 2; min-width: 18px; height: 18px; padding: 0 2px; border-radius: 3px; background: #1f6f5c; color: #f3ead2; font: 400 12px/18px var(--f-brush); font-style: normal; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.4); }
.mcard.fresh .m-new { display: block; animation: newIn 0.5s var(--spring) both; }
@keyframes newIn { from { transform: scale(0.2) rotate(-30deg); opacity: 0; } }

/* ——通政司：收下了、还没呈上来的本子，奏匣末尾一张虚线牌—— */
.mcard.ghost { cursor: default; }
.mcard.ghost .bob { animation: none; }
.mcard.ghost .mface { justify-content: center; gap: 1px; border: 1.5px dashed rgba(201, 161, 74, 0.55); background: rgba(24, 16, 10, 0.6); color: var(--text); box-shadow: none; transform: none; }
.mcard.ghost:hover .mface { box-shadow: none; }
.mcard.ghost .mk { margin-bottom: 4px; color: var(--gold-bright); background: transparent; border-color: rgba(201, 161, 74, 0.5); }
.gh-n { font: 400 30px/1 var(--f-brush); color: var(--gold-bright); }
.gh-t { font-size: 12px; color: var(--text); white-space: nowrap; }
.gh-s { margin-top: 2px; font-size: 10px; color: var(--dim); white-space: nowrap; }

/* ——急报：加急的本子纸面顶上一条——限期、到点谁照什么批、误了会怎样；过了期就是回执—— */
.p-alarm { margin: 6px 0 4px; padding: 8px 12px 8px 14px; border: 1px solid rgba(192, 40, 30, 0.5); border-left: 4px solid #c0281e; border-radius: 3px; background: linear-gradient(180deg, rgba(255, 224, 210, 0.85), rgba(255, 236, 226, 0.6)); color: #4a160f; font-size: 14px; line-height: 1.65; }
.p-alarm p { margin: 0; }
.pa-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 2px !important; }
.pa-top b { font: 400 18px/1.2 var(--f-brush); color: #b3261e; letter-spacing: 0.15em; }
.pa-cd { flex: none; font-size: 13px; color: #8e1d16; white-space: nowrap; }
.pa-cd i { font-style: normal; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.pa-harm { color: #7a1712; font-weight: 600; }
.p-alarm.dire { animation: alarmPulse 1s ease-in-out infinite; }
@keyframes alarmPulse { 50% { box-shadow: 0 0 0 2px rgba(215, 57, 47, 0.45), 0 0 14px rgba(215, 57, 47, 0.35); } }
.p-alarm.lapsed { border-color: rgba(90, 74, 58, 0.45); border-left-color: #5a4a3a; background: rgba(90, 74, 58, 0.1); color: #3a2c1e; }
.p-alarm.lapsed .pa-top b { color: #5a4a3a; }
@media (prefers-reduced-motion: reduce) {
  .p-alarm.dire { animation: none; box-shadow: 0 0 0 2px rgba(215, 57, 47, 0.45); }
  .mcard.fresh .m-new { animation: none; }
  .tline.final .tl-track, .tline.teach .lk-pot { animation: none; box-shadow: 0 0 0 2px rgba(215, 57, 47, 0.55); }
  .daylight.final .dl-lamp { animation: none; opacity: 0.8; }
  .daylight > i, .tl-fill, .tl-now, .tm-wait { transition: none; }
}

/* ——动静簿：风闻抽屉的「动静」一页，本月报过的事，新的在前；点了回到那件事—— */
.feed.news { display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 0; border: 0; border-bottom: 1px solid rgba(239, 228, 204, 0.06); border-radius: 0; background: transparent; font: inherit; font-size: 13px; line-height: 1.6; text-align: left; cursor: pointer; }
.feed.news:active { background: rgba(201, 161, 74, 0.08); }
.nw-day { flex: none; min-width: 2.6em; color: var(--dim); font-size: 11.5px; }
.nw-t { flex: 1; min-width: 0; color: #d8cbb0; }
.nw-go { flex: none; color: var(--gold-bright); font-size: 12px; font-weight: 600; white-space: nowrap; }
.feed.news:is(.k-urgent, .k-lapse, .k-final) .nw-t { color: #ffb9a6; }
.feed.news.k-call .nw-t { color: #f0c9a8; }
.feed.news.k-note .nw-t { color: var(--dim); }
.feed.news.k-spy .nw-t { color: #c3c8f0; }
.feed.news.k-harem .nw-t { color: #f0c6d4; }
@media (hover: hover) { .feed.news:hover { background: rgba(201, 161, 74, 0.08); } }

/* ——收月：按住时说清代价—— */
.dock { position: relative; }
.end-cost {
  position: absolute; right: 10px; bottom: calc(100% + 12px); z-index: 6; width: max-content; max-width: min(300px, calc(100vw - 32px)); margin: 0;
  padding: 8px 12px; border: 1px solid var(--zhu-bright); border-radius: 6px; background: rgba(44, 9, 6, 0.96); color: #ffe7d4;
  font-size: 13px; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; pointer-events: none;
}
.dock:has(.endbtn.holding, .endbtn.tapped) .end-cost { opacity: 1; transform: none; }

/* ——手机竖屏：暂停帘与日暮提示—— */
@media (max-width: 860px) {
  .lk-c-box { margin: 0 16px; padding: 18px 22px; }
  .lk-dusk { top: 22%; }
  .lk-dusk b { font-size: 48px; }
}

/* 候见：递了牌子在西苑外等着的人，排在名册最前；来意一句，细线是还能候多久 */
.tok.calling { grid-template-rows: auto auto auto; border-color: rgba(215, 57, 47, 0.55); background: rgba(179, 38, 30, 0.14); animation: tok-call 2.4s ease-in-out infinite; }
.tok.calling .tag { background: var(--zhu, #b3261e); color: #fff4e6; }
.tok .tw { grid-column: 1 / -1; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: #f0c9a8; }
.tok .tw::before { content: "来意："; color: var(--dim); }
.tok-wait { position: absolute; left: 3px; right: 3px; bottom: 1px; height: 2px; pointer-events: none; }
.tok-wait::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--wait, 1) * 100%); background: linear-gradient(90deg, var(--zhu, #b3261e), var(--gold, #c9a14a)); border-radius: 1px; }
.ibtn.calling { box-shadow: 0 0 0 2px rgba(215, 57, 47, 0.75), 0 0 10px rgba(215, 57, 47, 0.6); }
@keyframes tok-call { 50% { box-shadow: 0 0 10px rgba(215, 57, 47, 0.45); } }
@media (prefers-reduced-motion: reduce) { .tok.calling { animation: none; } }

/* ——在路上的本子：快到的几本各一张虚线牌，写着谁、什么类、约哪天；点了翻他的识人卡—— */
.mcard.ghost.one { cursor: pointer; }
.mcard.ghost.one .mface { gap: 2px; }
.gh-who { max-width: 100%; overflow: hidden; font: 400 19px/1.15 var(--f-brush); color: var(--gold-bright); text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .mcard.ghost.one:hover .mface { border-color: var(--gold-bright); } }

/* ——候见牌上案头：召见 · 不见—— */
.desk-calls { display: flex; flex-direction: column; gap: 6px; width: min(640px, calc(100% - 32px)); pointer-events: auto; }
.desk-calls[hidden] { display: none; }
.dcall { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid rgba(215, 57, 47, 0.55); border-radius: 8px; background: linear-gradient(180deg, rgba(70, 18, 12, 0.92), rgba(36, 12, 8, 0.92)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); animation: tok-call 2.4s ease-in-out infinite; }
.dcall .av { flex: none; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--gold-dim); border-radius: 50%; }
.dcall .av img, .dcall .av svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.dc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dc-t b { color: #ffe1c8; font-size: 13.5px; font-weight: 600; letter-spacing: 0; }
.dc-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #f0c9a8; font-size: 12px; line-height: 1.35; letter-spacing: 0; }
.dc-t small::before { content: "来意："; color: var(--dim); }
.dc-t .tok-wait { left: 10px; right: 10px; bottom: 3px; }
.dc-t .dc-tired { color: #f6d9a8; font-size: 12px; font-style: normal; line-height: 1.35; letter-spacing: 0; }
.dc-btns { flex: none; display: flex; flex-direction: column; gap: 5px; }
.dc-btns button { min-width: 52px; min-height: 30px; padding: 2px 10px; border: 1px solid var(--gold-dim); border-radius: 15px; background: rgba(20, 12, 8, 0.7); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.dc-btns .dc-go { border-color: #d7392f; background: #a3241b; color: #fff3e2; font-weight: 600; }
.dc-btns button:disabled { opacity: 0.5; }
.dcall.tired .dc-go { border-color: var(--gold-dim); background: rgba(20, 12, 8, 0.7); color: var(--dim); font-weight: 400; }
.dcall.tired .dc-no { border-color: var(--gold); color: var(--gold); }
.dc-more { color: var(--dim); font-size: 12px; letter-spacing: 0; text-align: center; }

/* ——名册状态签：这个月谁在动、谁该见—— */
.tok .tags { position: absolute; right: 6px; top: 5px; display: flex; gap: 3px; }
.tok .tags .tag { position: static; }
.tok .tag.t-hit { background: rgba(215, 57, 47, 0.28); color: #ffb9a6; }
.tok .tag.t-stir { background: rgba(120, 132, 214, 0.28); color: #d4d8f4; }
.tok .tag.t-way { background: transparent; border: 1px dashed rgba(201, 161, 74, 0.55); }
.tok.calling .tag.t-call { background: var(--zhu, #b3261e); color: #fff4e6; }
.tok.calling .tag:not(.t-call) { background: rgba(201, 161, 74, 0.18); color: var(--gold-bright); }

/* ——朱批的涟漪：印上荡开一圈；会听说的人名下亮一下—— */
.seal-ripple { position: fixed; z-index: 30; width: 160vmax; height: 160vmax; border: 2px solid rgba(240, 200, 110, 0.6); border-radius: 50%; box-shadow: 0 0 40px rgba(240, 200, 110, 0.25), inset 0 0 40px rgba(240, 200, 110, 0.18); pointer-events: none; }
.heard { animation: heard 2.4s ease-out; }
@keyframes heard { 0%, 100% { box-shadow: none; } 15% { box-shadow: 0 0 0 2px rgba(240, 200, 110, 0.85), 0 0 18px rgba(240, 200, 110, 0.6); } }
/* 批法条：这一笔传不传得开，骑在按钮上沿的一枚小签，不占行 */
.p-ways .pw { position: relative; }
.pw-heard { position: absolute; top: -8px; right: 6px; z-index: 1; padding: 0 6px; border: 1px solid var(--gold-dim); border-radius: 8px; background: #241810; color: #cdbb98; font: 10.5px/15px var(--f-serif); font-style: normal; letter-spacing: 0.05em; white-space: nowrap; }
.pw-heard.wide { border-color: #d7392f; background: #a3241b; color: #fff0de; }
@media (prefers-reduced-motion: reduce) { .dcall, .heard, .hud-wish.ask { animation: none; } .seal-ripple { display: none; } .heard { outline: 2px solid rgba(240, 200, 110, 0.85); } }

/* ——召对：他挂在嘴上的志向，各带一枚松动小印（不给数字）—— */
.aud-aims { position: absolute; left: 14px; top: calc(7vh + 10px); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: min(560px, calc(100% - 150px)); pointer-events: none; }
.aud-aims[hidden] { display: none; }
.aud-aims em { width: 100%; color: var(--dim); font-size: 11.5px; font-style: normal; letter-spacing: 0.1em; text-shadow: 0 1px 3px #000; }
.aud-aims .aa { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border: 1px solid rgba(201, 161, 74, 0.4); border-radius: 12px; background: rgba(14, 9, 6, 0.78); color: #f0dcae; font-size: 12.5px; }
.aa-seal { padding: 0 4px; border: 1px solid #d7392f; border-radius: 2px; color: #ff9c8a; font: 400 12px/1.3 var(--f-brush); font-style: normal; transform: rotate(-6deg); }
.aa-seal.deep { background: #b3261e; color: #fff0de; }
@media (max-width: 860px) { .aud-aims { top: calc(var(--safe-t) + 54px); left: 10px; max-width: calc(100% - 20px); } }

/* ——退下小结：点一下收起；易志盖一枚印—— */
.rs-card { position: relative; cursor: pointer; }
.rs-card h4 { margin: 0 0 10px; text-align: center; }
.rs-card ul { margin: 0; padding: 0; list-style: none; }
.rs-card li { padding: 8px 0; border-bottom: 1px dashed rgba(201, 161, 74, 0.18); font-size: 15px; line-height: 1.6; }
.rs-card li:last-child { border-bottom: 0; }
.rs-card li small { display: block; color: var(--dim); font-size: 12.5px; }
.rs-turn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.rs-turn s { color: var(--dim); text-decoration-color: #d7392f; text-decoration-thickness: 2px; }
.rs-turn s::before { content: "旧志："; text-decoration: none; display: inline-block; }
.rs-turn b { color: #ffd9a8; font-weight: 600; }
.rs-turn b::before { content: "→ "; color: #d7392f; }
.rs-seal { position: absolute; right: -4px; top: -10px; padding: 4px 8px; border: 3px solid #d7392f; border-radius: 4px; color: #d7392f; font: 400 26px/1 var(--f-brush); writing-mode: vertical-rl; letter-spacing: 0.1em; transform: rotate(-8deg); background: rgba(255, 240, 220, 0.04); }
.rs-tap { margin: 12px 0 0; color: var(--faint); font-size: 12px; text-align: center; }
.lk-held.say { letter-spacing: 0.04em; color: #ffe2a8; border-color: var(--gold); }

/* ——案头"此刻"：加急的本子、候见的人—— */
.dn-h { margin: 0; color: #ff9c8a; font: 400 14px/1 var(--f-brush); letter-spacing: 0.3em; text-shadow: 0 1px 4px #000; }
.dnow { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px 6px 6px; border: 1px solid #d7392f; border-radius: 8px; background: linear-gradient(180deg, rgba(96, 18, 11, 0.95), rgba(44, 9, 6, 0.95)); color: #ffe7d4; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 12px rgba(215, 57, 47, 0.3); }
.dn-ji { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #c0281e; color: #fff3d8; font: 400 17px/1 var(--f-brush); }
.dn-t { flex: 1; min-width: 0; overflow: hidden; font-size: 13px; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.dn-cd { flex: none; color: #ffb9a6; font: 600 13px/1 var(--f-serif); font-style: normal; font-variant-numeric: tabular-nums; }
.dn-go { flex: none; color: #ffd2c4; font-size: 13px; font-weight: 600; white-space: nowrap; }

/* 合上本子回案头：读时递到的加急，闪一下提醒朕 */
.dnow.flash { animation: dnowFlash 0.7s ease-in-out 3; }
@keyframes dnowFlash { 0%, 100% { box-shadow: 0 0 12px rgba(215, 57, 47, 0.3); } 50% { box-shadow: 0 0 0 3px rgba(255, 156, 138, 0.9), 0 0 26px rgba(215, 57, 47, 0.9); background: linear-gradient(180deg, rgba(150, 30, 20, 0.98), rgba(80, 14, 8, 0.98)); } }
@media (prefers-reduced-motion: reduce) { .dnow.flash { animation: none; outline: 2px solid #ff9c8a; } }

/* 新到的先压在小签里：手指底下的列表不跳，点了才并进去 */
.hand-new, .feed-new {
  padding: 4px 14px; border: 1px solid var(--gold-bright); border-radius: 14px; background: rgba(34, 22, 12, 0.96); color: var(--gold-bright);
  font: inherit; font-size: 13px; letter-spacing: 0.08em; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px rgba(242, 207, 122, 0.35);
}
.hand-new[hidden], .feed-new[hidden] { display: none; }
.hand-new { grid-area: hand; align-self: start; justify-self: center; position: relative; z-index: 6; margin-top: -6px; width: max-content; animation: tok-call 2.4s ease-in-out infinite; }
/* 手机竖屏：标题行右头是「已批」「暗匣」，小签不挤进去，落在奏匣那一排的上沿、居中（不压标题行上的任何东西） */
@media (max-width: 860px) { .hand-new { grid-area: hand; align-self: start; justify-self: center; margin: 2px 0 0; padding: 3px 12px; font-size: 12.5px; } }
.feed-new-wrap { position: sticky; top: 0; z-index: 3; height: 0; overflow: visible; text-align: center; }
.feed-new { position: relative; top: 6px; }

/* ——差事簿—— */
.errands-go { display: flex; align-items: baseline; gap: 8px; width: 100%; margin-top: 6px; padding: 8px 12px; border: 1px dashed rgba(201, 161, 74, 0.6); border-radius: 6px; background: rgba(28, 18, 11, 0.88); color: var(--gold-bright); font: inherit; font-size: 13.5px; letter-spacing: 0.08em; text-align: left; cursor: pointer; pointer-events: auto; }
.errands-go small { flex: 1; color: var(--dim); font-size: 12px; letter-spacing: 0; }
.er-p { padding: 10px 0; border-bottom: 1px solid rgba(239, 228, 204, 0.08); }
.er-who { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.er-who .av { width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--gold-dim); border-radius: 50%; }
.er-who .av img, .er-who .av svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.er-who b { font-size: 15px; }
.er-who small { margin-left: auto; color: var(--gold-bright); font-size: 12px; }
.er-p ul { margin: 6px 0 0 44px; padding: 0; list-style: none; }
.er-p li { padding: 4px 0; font-size: 14px; line-height: 1.55; }
.er-p li small { display: block; color: var(--dim); font-size: 12px; }
/* 耳目截来的信：报事台那一句只摘一截，点开摆全文 */
.ln-full { padding: 4px 2px 8px; }
.ln-head { margin: 0 0 10px; color: var(--dim); font-size: 13px; line-height: 1.6; }
.ln-body { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--gold-dim); background: rgba(239, 228, 204, 0.06); color: var(--text); font-size: 16px; line-height: 1.9; white-space: pre-wrap; }
.ln-who { display: block; margin: 0 auto; }
.er-p li.off span { color: var(--dim); text-decoration: line-through; }
.er-p li.done small { color: #9fc49a; }
.tok .tag.t-loose { background: rgba(240, 200, 110, 0.22); color: #ffe2a8; }
.tok .tag.t-errand { background: rgba(80, 140, 90, 0.25); color: #c8ecc8; }
.hud-wish.ask { animation: tok-call 2.4s ease-in-out infinite; }
@media (max-width: 860px) { .desk-calls { width: calc(100% - 20px); } }
