/* 朕的目标（docs/GOALS_DESIGN.md §9）：目标栏、选牌抽屉、自拟、任务单面板、章节卡上的目标。
   牌面 .wcard、御印 .w-seal 原在 game.css 里（旧心愿样式），第 4 期删旧界面时搬到了这里。
   手机竖屏是正版：可点处 ≥44，正文 ≥14，输入 ≥16；电脑宽屏同一套组件摊开。 */

/* ——类别配色：目标栏、选牌、面板、章节卡共用—— */
.gb-chip, .gcard, .gl-prog li { --edge: #2c5170; --edge-hi: #8fb8de; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-xiuxuan { --edge: #23675a; --edge-hi: #7fd1b9; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-yingjian { --edge: #84461f; --edge-hi: #e0a46a; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-neitang { --edge: #9a7426; --edge-hi: #f2cf7a; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-yuren { --edge: #4b2a63; --edge-hi: #c9a6e8; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-hougong { --edge: #8e3149; --edge-hi: #f0a0b4; }
:is(.gb-chip, .gcard, .gl-prog li, .wcard).c-ink { --edge: #3a3128; --edge-hi: #d8cbb0; }

/* ——牌面（goalCardHtml）：目标栏缩略、选牌、任务单顶、章节卡共用—— */
/* 目标牌：540×768 的竖牌。上半幅是插画，下半幅是米色纸面，字由程序写在纸面上。
   牌面图到位后由 ui-card-wish-<类> 换上，牌背由 ui-card-wish-back 换上（槽位名是旧的，图路径 ui/card/wish_* 不动）；没图时用类别色的边框、大字代替插画 */
.wcard { --ww: 200px; --edge: #2c5170; --edge-hi: #8fb8de; position: relative; flex: none; width: var(--ww); aspect-ratio: 540 / 768; perspective: 900px; cursor: pointer; }
.wc-flip { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg); transition: transform 0.6s var(--spring); }
.wcard.open .wc-flip { transform: none; }
.wc-back, .wc-face { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--ww) * 0.04); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.wc-back { transform: rotateY(180deg); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, transparent 0 calc(var(--ww) * 0.22), rgba(242, 207, 122, 0.85) calc(var(--ww) * 0.22 + 1px) calc(var(--ww) * 0.235), transparent calc(var(--ww) * 0.235 + 1px)), radial-gradient(ellipse at 50% 40%, #b0261c, #6e140f 75%);
  border: calc(var(--ww) * 0.025) solid #c9a14a; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6), inset 0 0 0 calc(var(--ww) * 0.02) #6e140f, inset 0 0 0 calc(var(--ww) * 0.03) rgba(242, 207, 122, 0.6); }
.wc-medal { font: normal calc(var(--ww) * 0.2) / 1 var(--f-brush); color: var(--gold-bright); text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.ui-card-wish-back .wc-back { background: var(--ui-card-wish-back) center / 100% 100% no-repeat; border: 0; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.ui-card-wish-back .wc-medal { display: none; }
.wc-face { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: box-shadow 0.25s, filter 0.5s;
  background: linear-gradient(180deg, var(--edge), color-mix(in srgb, var(--edge) 70%, #000)); border: 1px solid color-mix(in srgb, var(--edge-hi) 60%, transparent); }
.wc-pic { position: absolute; left: 7%; right: 7%; top: 5%; height: 46%; display: grid; place-items: center; border-radius: 3px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--edge-hi) 45%, transparent), transparent 70%), linear-gradient(180deg, #14171c, color-mix(in srgb, var(--edge) 50%, #0b0806)); box-shadow: inset 0 0 0 1px rgba(242, 207, 122, 0.55); }
.wc-pic b { font: normal calc(var(--ww) * 0.3) / 1 var(--f-brush); color: color-mix(in srgb, var(--edge-hi) 80%, #fff); opacity: 0.8; text-shadow: 0 0 calc(var(--ww) * 0.08) color-mix(in srgb, var(--edge-hi) 70%, transparent); }
.wc-paper { position: absolute; left: 8%; right: 8%; top: 55.5%; bottom: 6%; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: calc(var(--ww) * 0.016); padding: calc(var(--ww) * 0.055) calc(var(--ww) * 0.05) calc(var(--ww) * 0.03); border-radius: 2px; text-align: center; color: var(--paper-ink);
  background: linear-gradient(180deg, #f3ead6, #e6d7b5); box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.6); }
.wc-title { flex: none; font: normal calc(var(--ww) * 0.09) / 1.15 var(--f-brush); color: #2a1810; letter-spacing: 0.04em; }
.wc-goal { flex: none; margin: 0; font-size: calc(var(--ww) * 0.056); line-height: 1.45; color: #4a3826; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-reward { flex: none; margin-top: auto; font-size: calc(var(--ww) * 0.05); color: color-mix(in srgb, var(--edge) 80%, #000); letter-spacing: 0.04em; }
.wc-cat { position: absolute; left: 50%; top: 51.6%; transform: translateX(-50%); padding: 0 calc(var(--ww) * 0.04); border-radius: 2px; font: normal calc(var(--ww) * 0.06) / 1.5 var(--f-brush); letter-spacing: 0.2em; color: #f6ecd2; background: var(--edge); box-shadow: 0 0 0 1px rgba(242, 207, 122, 0.7); white-space: nowrap; z-index: 1; }
.wc-tag { position: absolute; right: 9%; top: 57%; z-index: 1; padding: 0 4px; border: 1px solid var(--zhu); border-radius: 2px; font-size: calc(var(--ww) * 0.045); line-height: 1.5; color: var(--zhu); transform: rotate(6deg); }
.wcard .shine { z-index: 2; }
.wcard:hover .shine, .wcard.sel .shine { opacity: 1; }
.ui-card-wish-xiuxuan .wcard.c-xiuxuan .wc-face { background: var(--ui-card-wish-xiuxuan) center / 100% 100% no-repeat; }
.ui-card-wish-yingjian .wcard.c-yingjian .wc-face { background: var(--ui-card-wish-yingjian) center / 100% 100% no-repeat; }
.ui-card-wish-neitang .wcard.c-neitang .wc-face { background: var(--ui-card-wish-neitang) center / 100% 100% no-repeat; }
.ui-card-wish-yuren .wcard.c-yuren .wc-face { background: var(--ui-card-wish-yuren) center / 100% 100% no-repeat; }
.ui-card-wish-tianxia .wcard.c-tianxia .wc-face { background: var(--ui-card-wish-tianxia) center / 100% 100% no-repeat; }
.ui-card-wish-hougong .wcard.c-hougong .wc-face { background: var(--ui-card-wish-hougong) center / 100% 100% no-repeat; }
:is(.ui-card-wish-xiuxuan .c-xiuxuan, .ui-card-wish-yingjian .c-yingjian, .ui-card-wish-neitang .c-neitang, .ui-card-wish-yuren .c-yuren, .ui-card-wish-tianxia .c-tianxia, .ui-card-wish-hougong .c-hougong) :is(.wc-pic) { display: none; }
:is(.ui-card-wish-xiuxuan .c-xiuxuan, .ui-card-wish-yingjian .c-yingjian, .ui-card-wish-neitang .c-neitang, .ui-card-wish-yuren .c-yuren, .ui-card-wish-tianxia .c-tianxia, .ui-card-wish-hougong .c-hougong) .wc-face { border: 0; }
:is(.ui-card-wish-xiuxuan .c-xiuxuan, .ui-card-wish-yingjian .c-yingjian, .ui-card-wish-neitang .c-neitang, .ui-card-wish-yuren .c-yuren, .ui-card-wish-tianxia .c-tianxia, .ui-card-wish-hougong .c-hougong) .wc-paper { background: none; box-shadow: none; }
.wcard.sel .wc-face { box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65), 0 0 0 2px var(--gold-bright), 0 0 34px color-mix(in srgb, var(--edge-hi) 60%, transparent); }
.wcard.gold .wc-face { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 50px 10px rgba(242, 207, 122, 0.55); animation: goalGlow 1.6s ease-in-out infinite alternate; }
@keyframes goalGlow { to { box-shadow: 0 0 0 2px var(--gold-bright), 0 0 70px 18px rgba(242, 207, 122, 0.35); } }
.wcard.ashen .wc-face { filter: grayscale(1) sepia(0.35) brightness(0.55) contrast(1.1); }
/* 御印：盖在达成的那张牌上 */
.w-seal { position: absolute; right: 6%; bottom: 5%; z-index: 3; display: grid; place-items: center; width: calc(var(--ww) * 0.26); height: calc(var(--ww) * 0.26); border: calc(var(--ww) * 0.016) solid var(--zhu-bright); border-radius: 4px; font: normal calc(var(--ww) * 0.085) / 1.05 var(--f-brush); color: var(--zhu-bright); text-align: center; background: rgba(215, 57, 47, 0.1); transform: rotate(-8deg); }
.w-seal.gold { border-color: #b8860b; color: #9a6a00; background: rgba(242, 207, 122, 0.25); }
.ui-seal-grain .w-seal { -webkit-mask: var(--ui-seal-grain) center / 100% 100% no-repeat; mask: var(--ui-seal-grain) center / 100% 100% no-repeat; }

/* ——烛焰（精力灯）：仙缘多出来的那一盏灯是青色的—— */
.flames.boon .flame:last-of-type b { filter: hue-rotate(115deg) saturate(1.3); }

/* 小印：类别的一个字，染类别色 */
.gb-seal { flex: none; display: grid; place-items: center; width: 30px; height: 34px; border-radius: 3px;
  background: linear-gradient(180deg, var(--edge), color-mix(in srgb, var(--edge) 60%, #000));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--edge-hi) 70%, transparent), 0 2px 6px rgba(0, 0, 0, 0.5);
  font: normal 16px/1 var(--f-brush); color: color-mix(in srgb, var(--edge-hi) 85%, #fff); }

/* ——目标栏：天下条上方一行。包在 .hud-wrap 里，和顶栏同占一个格子—— */
.hud-wrap { grid-area: hud; position: relative; z-index: 3; min-width: 0; }
.goal-bar { display: flex; gap: 8px; min-width: 0; padding: 3px 10px 4px; background: rgba(8, 5, 4, 0.78); border-bottom: 1px solid var(--line); transition: filter 0.6s ease; }
.goal-bar[hidden] { display: none; }
.scr-court.dusk-on .goal-bar { filter: brightness(0.5) saturate(0.7); }
.gb-chip { position: relative; flex: 1 1 0; min-width: 0; max-width: 320px; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 4px 10px 5px 6px; overflow: hidden; text-align: left;
  border: 1px solid var(--gold-dim); border-radius: 4px; background: linear-gradient(180deg, rgba(30, 20, 12, 0.92), rgba(14, 9, 6, 0.92)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, transform 0.2s var(--spring), opacity 0.2s; }
.gb-chip:hover { border-color: var(--gold-bright); transform: translateY(-1px); }
.gb-t { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.gb-t b { font: 400 14px/1.25 var(--f-brush); color: var(--gold-bright); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-t small { font-size: 12px; line-height: 1.25; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(239, 228, 204, 0.12); }
.gb-bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform 0.9s var(--out); background: linear-gradient(90deg, #a8832e, #f2cf7a); }
.gb-bar.broken i { background: linear-gradient(90deg, #5a1712, #b3261e); }
.gb-chip.full .gb-seal { box-shadow: inset 0 0 0 1px var(--gold-bright), 0 0 14px rgba(242, 207, 122, 0.6); }
/* 空格：虚线框，等着翻牌；未开的格子灰着 */
.gb-chip.is-empty { border-style: dashed; border-color: rgba(201, 161, 74, 0.5); background: rgba(239, 228, 204, 0.03); box-shadow: none; }
.gb-chip.is-empty .gb-t b { color: var(--text); }
.gb-plus { flex: none; display: grid; place-items: center; width: 30px; height: 34px; border-radius: 3px; border: 1px dashed rgba(201, 161, 74, 0.55); font: normal 18px/1 var(--f-brush); color: var(--gold); }
.gb-chip.is-locked { border-style: dotted; border-color: rgba(201, 161, 74, 0.25); background: rgba(239, 228, 204, 0.02); box-shadow: none; filter: grayscale(0.8); opacity: 0.5; }
.gb-chip.is-locked:hover { transform: none; border-color: rgba(201, 161, 74, 0.25); }
.gb-chip.is-locked .gb-plus { border-color: rgba(201, 161, 74, 0.25); color: var(--faint); font-size: 14px; }
.gb-chip.is-locked .gb-t b { color: var(--dim); }
.gb-chip.is-goal { flex-grow: 1.6; }
@media (max-width: 560px) {
  /* 手机：三格并排，有目标的那格宽些，标题好多露几个字 */
  .gb-chip { gap: 6px; padding: 4px 6px 5px 5px; }
  .gb-seal, .gb-plus { width: 24px; height: 30px; font-size: 14px; }
}
@media (min-width: 861px) {
  .goal-bar { padding: 5px 16px 7px; gap: 10px; }
  .gb-t b { font-size: 15px; }
}

/* ——选牌抽屉 .goal-deal、自拟 .goal-write—— */
.goal-deal .sheet { max-height: 82dvh; }
.gd-lead, .gw-lead { margin: 2px 0 12px; font-size: 14px; line-height: 1.8; color: var(--dim); }
.gd-list { display: flex; flex-direction: column; gap: 10px; }
.gcard { border: 1px solid var(--gold-dim); border-radius: 6px; background: linear-gradient(180deg, rgba(30, 20, 12, 0.92), rgba(14, 9, 6, 0.92)); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.gcard.sel { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright), 0 0 24px color-mix(in srgb, var(--edge-hi) 35%, transparent); }
.gc-head { width: 100%; min-height: 88px; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border: 0; background: transparent; text-align: left; }
.gc-thumb { flex: none; }
.gc-thumb .wcard { --ww: 54px; cursor: inherit; }
.gc-thumb .wc-paper, .gc-thumb .wc-tag, .gc-thumb .wc-cat { display: none; }
.gc-thumb .wc-pic { inset: 8% 8% 8% 8%; height: auto; top: 8%; }
.gc-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.gc-main small { font-size: 12px; color: var(--faint); letter-spacing: 0.1em; }
/* 开局三张卡的"新手"小印：朱红描边，免费教学的记号 */
.gc-tag { display: inline-block; margin-left: 8px; padding: 0 5px; border: 1px solid var(--zhu); border-radius: 2px; font-style: normal; font-size: 12px; line-height: 1.5; letter-spacing: 0.1em; color: var(--zhu-bright); transform: rotate(-3deg); }
.gc-main b { font: 400 20px/1.3 var(--f-brush); color: var(--gold-bright); letter-spacing: 0.06em; }
.gc-main em { font-style: normal; font-size: 14px; line-height: 1.5; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc-arrow { flex: none; font: normal 24px/1 var(--f-serif); color: var(--gold); transition: transform 0.25s var(--out); }
.gc-head[aria-expanded="true"] .gc-arrow { transform: rotate(90deg); }
.gc-body { display: flex; flex-direction: column; gap: 10px; padding: 2px 14px 14px; border-top: 1px dashed rgba(201, 161, 74, 0.25); }
.gc-why { margin: 10px 0 0; font-size: 14.5px; line-height: 1.9; color: #d8cbb0; }
.gc-facts { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gc-facts div { display: flex; gap: 10px; align-items: baseline; }
.gc-facts dt { flex: none; min-width: 5.2em; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-size: 12px; text-align: center; color: var(--dim); }
.gc-facts dd { margin: 0; flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; }
.gc-facts dd.ok { color: #9fd6c3; }
.gc-facts dd.bad { color: #e08a7e; }
.gc-take { align-self: stretch; min-height: 48px; letter-spacing: 0.3em; }
.gd-write { width: 100%; min-height: 48px; margin-top: 12px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px dashed rgba(201, 161, 74, 0.5); border-radius: 6px; background: rgba(239, 228, 204, 0.03); font: 400 17px/1 var(--f-brush); letter-spacing: 0.12em; color: var(--gold-bright); }
.gd-write i { font: normal 22px/1 var(--f-serif); font-style: normal; }
.gw-ta { display: block; width: 100%; min-height: 96px; padding: 12px 14px; resize: none; border: 1px solid var(--gold-dim); border-radius: 6px; background: rgba(239, 228, 204, 0.06); color: var(--text); font-size: 16px; line-height: 1.7; outline: none; user-select: text; -webkit-user-select: text; }
.gw-ta:focus { border-color: var(--gold-bright); background: rgba(239, 228, 204, 0.1); }
.gw-meta { display: flex; justify-content: space-between; gap: 10px; margin: 6px 2px 14px; font-size: 12px; color: var(--faint); }
.gw-go { width: 100%; min-height: 52px; }

/* ——任务单面板 .goal-panel：手机全屏页；电脑停靠右边，不挡奏本—— */
.gp { display: flex; flex-direction: column; gap: 16px; }
.gp-head { display: flex; gap: 14px; align-items: flex-start; }
.gp-card { flex: none; }
.gp-card .wcard { --ww: 88px; cursor: default; }
.gp-card .wc-paper, .gp-card .wc-tag { display: none; }
.gp-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gp-info small { font-size: 12px; color: var(--faint); letter-spacing: 0.1em; }
.gp-info b { font: 400 24px/1.3 var(--f-brush); color: var(--gold-bright); }
.gp-info span { font-size: 14px; color: var(--dim); }
.gp-sec h4, .gp-ms h4, .gp-eg h4, .gp-plan h4 { margin: 0 0 6px; font: 400 17px/1.3 var(--f-brush); letter-spacing: 0.2em; color: var(--gold); }
.gp-sec p { margin: 0; font-size: 15px; line-height: 1.85; }
.gp-sec p + p { margin-top: 6px; }
.gp-dim { color: var(--dim); font-size: 14px !important; }
.gp-prog { margin-top: 8px; }
.gp-prog p { margin-top: 4px; font-size: 14px; color: var(--dim); }
.gp-rw p { font-size: 14px; }
.gp-rw em { margin-right: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 12px; }
.gp-rw .ok { color: #9fd6c3; }
.gp-rw .bad { color: #e08a7e; }
.gp-plan.gp-empty { padding: 12px 14px; border: 1px dashed rgba(201, 161, 74, 0.35); border-radius: 6px; background: rgba(239, 228, 204, 0.03); }
.gp-none { color: var(--dim); }
.gp-foot { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; justify-content: flex-end; }
.gp-foot .gbtn { flex: 1 1 auto; min-height: 44px; }
.gl-bar { position: relative; display: block; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(239, 228, 204, 0.12); box-shadow: inset 0 0 0 1px rgba(201, 161, 74, 0.3); }
.gl-bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform 0.9s var(--out); background: linear-gradient(90deg, #a8832e, #f2cf7a); }
.gl-bar.broken i { background: linear-gradient(90deg, #5a1712, #b3261e); }
@media (min-width: 1100px) and (min-height: 600px) {
  /* 停靠右栏：背后的御案照常点、照常走 */
  #layer > .page-wrap.goal-panel { justify-content: flex-end; align-items: stretch; padding: 0; background: transparent; pointer-events: none; }
  #layer > .page-wrap.goal-panel .page { pointer-events: auto; width: min(400px, 32vw); height: 100%; max-height: none; border-radius: 0; border-width: 0 0 0 1px; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.55); }
}

/* ——章节卡上的目标 .ch-goals—— */
.ch-goals { width: min(640px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gl-row { display: flex; gap: 20px; align-items: center; padding: 16px 20px; border: 1px solid var(--gold-dim); border-radius: 4px; background: rgba(12, 8, 6, 0.88); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
.gl-card { flex: none; }
.gl-row .wcard { --ww: 128px; cursor: default; }
.gl-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gl-text > small { color: var(--faint); font-size: 12px; letter-spacing: 0.1em; }
.gl-text > b { font: normal 22px/1.3 var(--f-brush); color: var(--gold-bright); }
.gl-final { margin: 0; font-size: 14px; color: var(--dim); }
.gl-verdict { margin: 4px 0 0; font-size: 14.5px; }
.gl-verdict em { margin-right: 8px; padding: 1px 8px; border-radius: 2px; font: normal 16px var(--f-brush); background: rgba(242, 207, 122, 0.16); color: var(--gold-bright); border: 1px solid rgba(242, 207, 122, 0.5); }
.gl-verdict em.neg { background: rgba(120, 110, 100, 0.16); color: #b8aea4; border-color: #6b6560; }
.gl-vent { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.gl-vent p { margin: 0; font-size: 14.5px; line-height: 1.8; }
.gl-vent .row { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-vent .gbtn { min-height: 44px; }
.gl-vent .gbtn small { margin-left: 6px; font-size: 12px; opacity: 0.75; }
.gl-vent .gbtn.chosen { box-shadow: 0 0 0 2px var(--gold-bright); }
.gl-shard { position: fixed; z-index: 19; pointer-events: none; }
.gl-shard > .wcard { width: 100%; height: 100%; aspect-ratio: auto; }
.gl-block { padding: 14px 18px; border: 1px solid var(--gold-dim); border-radius: 4px; background: rgba(12, 8, 6, 0.88); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.gl-block h4 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 400 18px/1.3 var(--f-brush); letter-spacing: 0.15em; color: var(--gold-bright); }
.gl-block h4 small { font: 12px var(--f-serif); letter-spacing: 0.05em; color: var(--faint); }
.gl-lines { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 1.8; color: var(--text); }
.gl-prog { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gl-prog li { display: flex; align-items: center; gap: 10px; }
.gl-name { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.gl-name b { font: 400 16px/1.3 var(--f-brush); color: var(--gold-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-name small { font-size: 12.5px; color: var(--dim); }
.gl-prog .gl-bar { flex: none; width: 88px; }
@media (max-width: 560px) {
  .gl-row { gap: 12px; padding: 12px 12px; }
  .gl-row .wcard { --ww: 92px; }
  .gl-text > b { font-size: 19px; }
  .gl-prog .gl-bar { width: 56px; }
}

/* =====================================================================
   第 2 期：任务单（docs/GOALS_DESIGN.md §9.3–9.9）
   ===================================================================== */

/* 小印按类别染色（目标栏的 chip 已有，这里补给下一步条、本月单子上的独立小印） */
.gb-seal.c-xiuxuan { --edge: #23675a; --edge-hi: #7fd1b9; }
.gb-seal.c-yingjian { --edge: #84461f; --edge-hi: #e0a46a; }
.gb-seal.c-neitang { --edge: #9a7426; --edge-hi: #f2cf7a; }
.gb-seal.c-yuren { --edge: #4b2a63; --edge-hi: #c9a6e8; }
.gb-seal.c-hougong { --edge: #8e3149; --edge-hi: #f0a0b4; }
.gb-seal.c-ink { --edge: #3a3128; --edge-hi: #d8cbb0; }
.gb-seal.c-tianxia { --edge: #2c5170; --edge-hi: #8fb8de; }

/* ——精力分段条：已办实心、计划描边、应急虚线、计划外红；望日的刻度竖在第 max 格后面—— */
.eg-bar { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; height: 14px; margin: 6px 0 4px; }
.eg { min-width: 0; border-radius: 2px; border: 1px solid rgba(239, 228, 204, 0.16); background: transparent; transition: background 0.4s, opacity 0.3s; }
.eg.k-done { background: linear-gradient(180deg, #f2cf7a, #b8893a); border-color: #f2cf7a; }
.eg.k-plan { border-color: var(--gold); background: rgba(201, 161, 74, 0.14); }
.eg.k-reserve { border: 1px dashed rgba(201, 161, 74, 0.85); }
.eg.k-unplanned { background: #b3261e; border-color: #e2584c; }
.eg.k-spent { background: rgba(239, 228, 204, 0.3); border-color: rgba(239, 228, 204, 0.45); }
.eg.other { opacity: 0.32; }
.eg-wang { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; pointer-events: none; background: #fff3c8; box-shadow: 0 0 6px rgba(255, 240, 190, 0.8);
  left: calc((100% - (var(--n) - 1) * 2px) / var(--n) * var(--wang) + (var(--wang) - 0.5) * 2px); }
.eg-bar.half .eg-wang { opacity: 0.35; box-shadow: none; }
.eg-bar.compact { height: 5px; margin: 0; gap: 1px; }
.eg-bar.compact .eg { border-width: 0; background: rgba(239, 228, 204, 0.1); border-radius: 0; }
.eg-bar.compact .eg.k-done { background: #f2cf7a; }
.eg-bar.compact .eg.k-plan { background: rgba(201, 161, 74, 0.5); }
.eg-bar.compact .eg.k-reserve { background: repeating-linear-gradient(90deg, rgba(201, 161, 74, 0.55) 0 2px, transparent 2px 4px); }
.eg-bar.compact .eg.k-unplanned { background: #d7392f; }
.eg-bar.compact .eg.k-spent { background: rgba(239, 228, 204, 0.4); }
.eg-bar.compact .eg-wang { top: 0; bottom: 0; width: 1px; margin-left: 0; box-shadow: none; }
.eg-note { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); }
.eg-miss { font-style: normal; color: #f0a060; }

/* ——下一步条：手机上在报事台正下方、奏匣正上方，和报事台叠在同一个格子里（.bao-wrap）；
   宽屏上 court.js 把它挪到顶上目标栏那一行（.goal-row），挨着目标，御案和奏匣之间不再横一条—— */
.bao-wrap { grid-area: bao; position: relative; z-index: 4; min-width: 0; display: flex; flex-direction: column; }
.bao-wrap > .baoshi { grid-area: auto; }
.goal-next { position: relative; width: auto; margin: 0 12px 4px; overflow: hidden; border: 1px solid rgba(201, 161, 74, 0.38); border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 23, 14, 0.96), rgba(16, 10, 7, 0.96)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38); }
.goal-next[hidden] { display: none; }
.goal-row { min-width: 0; }
@media (min-width: 861px) {
  /* 目标栏一行：三格目标，右边接着"下一步"。底色、底线归这一行 */
  .goal-row:has(> .goal-bar:not([hidden])) { display: flex; align-items: center; gap: 10px; padding-right: 16px; background: rgba(8, 5, 4, 0.78); border-bottom: 1px solid var(--line); transition: filter 0.6s ease; }
  .goal-row > .goal-bar { flex: 1 1 auto; max-width: 1012px; background: transparent; border-bottom: 0; }
  .scr-court.dusk-on .goal-row { filter: brightness(0.5) saturate(0.7); }
  .scr-court.dusk-on .goal-row > .goal-bar { filter: none; }
  .goal-row > .goal-next { flex: 0 1 420px; min-width: 240px; margin: 5px 0 7px; border-radius: 4px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4); }
  .goal-row > .goal-bar[hidden] + .goal-next { display: none; }
  .goal-row .gn-row { min-height: 40px; }
  .goal-row .gn-go { min-height: 40px; min-width: 58px; font-size: 16px; }

  /* 报事台不另占一行：浮在御案底边，有事才浮上来，禀完就隐去（禀过的都在动静簿里） */
  .bao-wrap { grid-area: desk; align-self: end; justify-self: center; width: min(640px, calc(100% - 32px)); padding-bottom: 10px; pointer-events: none; z-index: 5; }
  .bao-wrap > .baoshi { width: 100%; margin: 0; pointer-events: auto; transition: border-color 0.3s, opacity 0.3s, transform 0.3s, visibility 0s; }
  .bao-wrap > .baoshi.idle { opacity: 0; transform: translateY(10px); visibility: hidden; pointer-events: none; transition: opacity 0.4s, transform 0.4s, visibility 0s 0.4s; }
  /* 奏本能滚过浮条：批法那排按钮滚到底时不被它压着 */
  .scr-court .desk { padding-bottom: 76px; }
}
.gn-row { display: flex; align-items: stretch; min-height: 48px; }
.gn-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 0; background: transparent; color: inherit; text-align: left; }
.gn-body .gb-seal { width: 26px; height: 30px; font-size: 14px; }
.gn-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gn-t b { font: 400 14.5px/1.3 var(--f-brush); letter-spacing: 0.03em; color: var(--gold-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gn-t small { font-size: 12px; line-height: 1.3; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gn-row.wait .gn-t b, .gn-row.done .gn-t b { color: var(--dim); }
.gn-go { flex: none; min-width: 64px; min-height: 44px; padding: 0 14px; border: 0; border-left: 1px solid rgba(201, 161, 74, 0.3); background: linear-gradient(180deg, #c8352a, #8e1d16); color: #fff4e6; font: 400 17px/1 var(--f-brush); letter-spacing: 0.12em; }
.gn-go:disabled { background: rgba(239, 228, 204, 0.06); color: var(--faint); }
.gn-body:active { background: rgba(201, 161, 74, 0.1); }
.gn-seal { position: absolute; left: 6px; top: 50%; width: 34px; height: 34px; margin-top: -19px; display: grid; place-items: center; border: 2px solid #c0281e; border-radius: 4px; background: rgba(192, 40, 30, 0.35); color: #ffb9a6; font: 20px/1 var(--f-brush); pointer-events: none; }

/* ——任务单面板里的零件—— */
.goal-panel .pg-head { grid-template-columns: var(--tap, 44px) minmax(0, 1fr) auto; }
.goal-panel .pg-title { font-size: 19px; letter-spacing: 0.12em; }
.gp-date { padding: 0 10px 0 4px; font-size: 12.5px; color: var(--dim); white-space: nowrap; }
.gp-notes { display: flex; align-items: flex-start; gap: 4px; padding: 6px 2px 6px 12px; border: 1px solid #c9a14a; border-radius: 6px; background: rgba(242, 207, 122, 0.14); color: #f6deb0; }
.gp-notes div { flex: 1; min-width: 0; padding-top: 6px; }
.gp-notes p { margin: 0 0 4px; font-size: 14px; line-height: 1.7; }
.gp-x { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: #f6deb0; font: 24px/1 var(--f-serif); }
.gp-dir p { color: #d8cbb0; }
.gp-ms { padding: 10px 12px; border-left: 3px solid var(--gold-dim); background: rgba(239, 228, 204, 0.04); border-radius: 0 6px 6px 0; }
.gp-ms.met { border-left-color: #7fbf7a; }
.gp-ms-t { display: flex; gap: 8px; margin: 0; font-size: 15px; line-height: 1.7; }
.gp-ms-t i { flex: none; width: 1.2em; font-style: normal; color: var(--gold); }
.gp-ms.met .gp-ms-t i { color: #7fbf7a; }
.gp-ms-d { margin: 4px 0 0; font-size: 13px; color: var(--dim); }
.gp-ms-b { margin: 6px 0 0; font-size: 13.5px; color: var(--gold-bright); }
.gp-ms-b em { margin-right: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 12px; }
.gp-eg .eg-bar { margin-top: 2px; }
.gp-plan h4 small { margin-left: 10px; font: 12px var(--f-serif); letter-spacing: 0; color: var(--faint); text-decoration: underline dotted; }
.gp-all { margin: 0 0 8px; padding: 6px 10px; border-radius: 4px; background: rgba(127, 191, 122, 0.12); color: #b8e0b3; font-size: 14px; }
.gp-stretch { display: block; margin: 8px 0 2px auto; }

/* 步骤：已办 ✓、当前 ▶ 展开、待办 ○、待递到 ⌛ 灰 */
.gs-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.gs { position: relative; border: 1px solid rgba(201, 161, 74, 0.26); border-radius: 6px; background: rgba(239, 228, 204, 0.04); }
.gs.st-cur { border-color: var(--gold-bright); background: rgba(242, 207, 122, 0.08); }
.gs.st-done { border-color: rgba(127, 191, 122, 0.4); background: rgba(127, 191, 122, 0.05); }
.gs.st-wait { border-style: dashed; opacity: 0.66; }
.gs.stamped { animation: gsFlash 1.3s ease-out; }
@keyframes gsFlash { 0% { background: rgba(242, 207, 122, 0.4); box-shadow: 0 0 18px rgba(242, 207, 122, 0.6); } 100% { box-shadow: none; } }
.gs-head { position: relative; width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; background: transparent; color: inherit; text-align: left; }
.gs-mark { flex: none; width: 20px; text-align: center; font-style: normal; font-size: 15px; color: var(--gold); }
.st-done .gs-mark { color: #7fbf7a; }
.st-wait .gs-mark { color: var(--dim); }
.gs-n { flex: none; font: 16px/1 var(--f-serif); color: var(--faint); }
.gs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gs-t b { font-weight: 400; font-size: 14.5px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-done .gs-t b { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(127, 191, 122, 0.55); }
.gs-t small { font-size: 12px; line-height: 1.4; color: var(--dim); }
.gs-cost { flex: none; font-style: normal; font-size: 12px; color: var(--dim); }
.gs-cost b { margin-right: 2px; font: 400 17px/1 var(--f-brush); color: var(--gold-bright); }
.gs-body { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 12px; border-top: 1px dashed rgba(201, 161, 74, 0.25); font-size: 14px; line-height: 1.8; }
.gs-body[hidden] { display: none; }
.gs-body p { margin: 0; }
.gs-body em { margin-right: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 12px; color: var(--faint); white-space: nowrap; }
.gs-ok { color: #b8e0b3; }
.gs-risk { color: #e08a7e; }
.gs-risk em { color: #e08a7e; }
.gs-whos { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.gs-w, .gs-q { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; border: 0; background: transparent; font-size: 14px; }
.gs-w { color: var(--gold-bright); text-decoration: underline dotted; text-underline-offset: 4px; }
.gs-q { color: var(--dim); font-size: 13px; padding-left: 0; }
.gs-intro { padding: 8px 10px; border-left: 3px solid var(--gold-dim); background: rgba(0, 0, 0, 0.25); font-size: 13.5px; color: #d8cbb0; }
.gs-draft { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: start; }
.gs-draft em { margin-top: 2px; }
.gs-draft q { display: block; quotes: none; padding: 8px 10px; border-left: 3px solid var(--gold-dim); background: rgba(0, 0, 0, 0.28); font-size: 14px; color: #e9d6a8; }
.gs-draft ul { margin: 0; padding-left: 1.2em; }
.gs-draft small { grid-column: 2; font-size: 12px; color: var(--faint); }
.gs-fill { grid-column: 2; justify-self: start; min-height: 44px; padding: 0 16px; border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(201, 161, 74, 0.12); color: var(--gold-bright); font-size: 14px; }
.gs-alt .gs-swap { margin-left: 10px; min-height: 44px; padding: 0 12px; border: 1px solid rgba(201, 161, 74, 0.4); border-radius: 999px; background: transparent; color: var(--gold); font-size: 13px; }
.gs-acts { display: flex; gap: 8px; margin-top: 2px; }
.gs-acts .gbtn { flex: 1 1 0; min-height: 48px; }
.gs-acts .gs-go { flex-grow: 1.6; letter-spacing: 0.1em; }
.gs-seal { position: absolute; left: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px; display: grid; place-items: center; border: 2px solid #c0281e; border-radius: 4px; background: rgba(192, 40, 30, 0.3); color: #ff9c8a; font: 20px/1 var(--f-brush); pointer-events: none; z-index: 1; }
.gs-fold { margin-top: 8px; font-size: 13.5px; color: var(--dim); }
.gs-fold summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.gs-fold ul { margin: 0 0 6px; padding: 0 0 0 1.2em; }
.gs-fold li { line-height: 1.7; }
.gs-fold li small { display: block; font-size: 12px; color: var(--faint); }

/* 上月对账 / 这件事的来历：折叠 */
.gp-recon, .gp-origin { border-top: 1px solid var(--line); padding-top: 4px; }
.gp-recon summary, .gp-origin summary { min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; font: 400 16px/1.3 var(--f-brush); letter-spacing: 0.15em; color: var(--gold); }
.gp-recon summary small { font: 12.5px var(--f-serif); letter-spacing: 0; color: var(--dim); }
.gp-recon[open] summary, .gp-origin[open] summary { margin-bottom: 6px; }
.gp-origin .gp-sec + .gp-sec { margin-top: 12px; }

/* 对账（面板里的折叠和章节卡上的一块共用） */
.rc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.rc-stat { flex: 1 1 96px; min-width: 96px; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid rgba(201, 161, 74, 0.3); border-radius: 4px; background: rgba(239, 228, 204, 0.04); }
.rc-stat b { font: 400 26px/1.15 var(--f-brush); color: var(--gold-bright); }
.rc-stat b i { font: 15px var(--f-serif); font-style: normal; color: var(--dim); }
.rc-stat.over b { color: #e08a7e; }
.rc-stat span { font-size: 12px; line-height: 1.5; color: var(--dim); }
.rc-stat u { text-decoration: underline dotted; text-underline-offset: 3px; }
.rc-seal { display: inline-block; align-self: flex-start; padding: 0 8px; border: 2px solid; border-radius: 4px; font: 400 21px/1.4 var(--f-brush); transform: rotate(-6deg); }
.rc-seal.met { color: #e2584c; border-color: #c0281e; background: rgba(192, 40, 30, 0.12); }
.rc-seal.no { color: #b8aea4; border-color: #6b6560; }
.rc-seal.wait { color: #cbb994; border-color: rgba(201, 161, 74, 0.5); font-size: 16px; }
.rc-seal.pre { opacity: 0; }
.rc-ms { margin: 0 0 8px; font-size: 14.5px; line-height: 1.8; }
.rc-ms em { margin-right: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 12px; color: var(--faint); }
.rc-ms small { display: block; font-size: 13px; color: var(--dim); }
.rc-bonus { margin: 0 0 8px; padding: 6px 10px; border: 1px solid rgba(242, 207, 122, 0.55); border-radius: 4px; background: rgba(242, 207, 122, 0.12); color: var(--gold-bright); font-size: 14.5px; }
.rc-sec { margin-top: 8px; }
.rc-sec h5 { margin: 0 0 2px; font: 400 14px/1.5 var(--f-brush); letter-spacing: 0.1em; color: var(--gold); }
.rc-list { margin: 0; padding: 0 0 0 1.2em; font-size: 14px; line-height: 1.75; }
.rc-list small { display: block; font-size: 12.5px; color: var(--dim); }
.rc-list em { margin-left: 8px; padding: 0 6px; border: 1px solid currentColor; border-radius: 2px; font-style: normal; font-size: 12px; color: var(--gold); }

/* ——案上的奏本：任务单点名的那一条批法亮一亮—— */
.paper[data-goal-pick="依票拟"] :is(.do-piaoni, .pn-seal), .paper[data-goal-pick="朱批"] .do-zhupi, .paper[data-goal-pick="留中"] .do-liuzhong {
  outline: 2px solid var(--gold-bright); outline-offset: 3px; box-shadow: 0 0 18px rgba(242, 207, 122, 0.55); animation: gpPick 1.6s ease-in-out 3; }
@keyframes gpPick { 50% { outline-offset: 6px; box-shadow: 0 0 28px rgba(242, 207, 122, 0.85); } }
/* 批法条上头那句小字前面，说一句任务单排的是哪一种 */
.paper[data-goal-pick] .pw-cap::before { color: var(--gold-bright); }
.paper[data-goal-pick="依票拟"] .pw-cap::before { content: "任务单排的是「依议」· "; }
.paper[data-goal-pick="朱批"] .pw-cap::before { content: "任务单排的是「朱批」· "; }
.paper[data-goal-pick="留中"] .pw-cap::before { content: "任务单排的是「留中」· "; }
.paper[data-goal-draft] .pw-cap::after { content: " · 草稿已填，可改"; color: var(--gold); }

/* ——本月单子（案上那张小笺，浅色纸）—— */
.agenda .gb-seal.mini { display: inline-grid; width: 18px; height: 22px; margin-right: 6px; vertical-align: -5px; border-radius: 2px; font-size: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--edge-hi) 60%, transparent); }
.ag-meta { display: block; font-size: 12px; line-height: 1.5; color: #8a7458; }
.agenda li.wait .ag-t { opacity: 0.6; }
.ao-q.task { border-color: var(--gold-bright); background: rgba(242, 207, 122, 0.12); }

@media (max-width: 560px) {
  .gn-t b { font-size: 14px; }
  .gs-draft { grid-template-columns: 1fr; }
  .gs-draft small, .gs-fill { grid-column: 1; }
  .rc-stat { flex-basis: 100%; }
}
@media (min-width: 1100px) and (min-height: 600px) {
  .goal-panel .pg-title { font-size: 18px; }
}

/* =====================================================================
   第 3 期：规划与计费——价钱写在按钮上；候旨时盖一层等待；本月还没排的样子
   ===================================================================== */

/* 按钮 + 价码旁的小"？" */
.gc-buy, .gw-buy, .gp-buy { display: flex; align-items: center; gap: 4px; min-width: 0; }
.gc-buy .gc-take, .gw-buy .gw-go, .gp-buy .gbtn { flex: 1 1 auto; }
.gc-buy .price-q, .gw-buy .price-q, .gp-buy .price-q { margin-left: 2px; }
.gp-foot .gp-buy { flex: 1 1 auto; }
.gp-foot .gp-buy .gbtn { min-width: 0; }
.gw-hint { line-height: 1.6; }

/* 候旨：整屏盖住，漏壶停（clock.js 的 HOLDS 认它）。比抽屉、面板（16）高。候旨时顶栏的漏壶被盖在底下，点不到，所以不会在这当口垂帘 */
.goal-wait { position: fixed; inset: 0; z-index: 18; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 4, 3, 0.88); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: waitIn 0.3s ease-out; }
.goal-wait .dw-card { gap: 16px; }
.goal-wait .dw-seal { background: rgba(122, 23, 18, 0.45); box-shadow: 0 0 0 0 rgba(242, 207, 122, 0.35); animation-name: gwPulse; }
@keyframes gwPulse { to { box-shadow: 0 0 0 26px rgba(242, 207, 122, 0); } }
.goal-wait .dw-line { min-height: 1.8em; }
.gwait-sub { font-size: 13px; line-height: 1.7; color: var(--dim); letter-spacing: 0.04em; }

/* 本月还没排：目标栏角上一点金；面板里醒目的大按钮；下一步条指向它；本月小笺里淡一点 */
.gb-chip.noplan::after { content: ""; position: absolute; right: 6px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #f2cf7a; box-shadow: 0 0 6px rgba(242, 207, 122, 0.9); }
.gp-empty { display: flex; flex-direction: column; gap: 6px; }
.gp-empty .gp-none { margin: 0; font: 400 20px/1.4 var(--f-brush); letter-spacing: 0.12em; color: var(--gold-bright); }
.gp-empty .gp-dim { margin: 0; }
.gp-empty .gp-buy { margin-top: 8px; }
.gp-empty .gp-replan { min-height: 52px; letter-spacing: 0.04em; box-shadow: 0 0 18px rgba(200, 53, 42, 0.35); }
.gn-row.plan .gn-t b { color: var(--gold-bright); }
.agenda li.noplan .ag-t { opacity: 0.8; }
