/* v1.9.3：下级卡（.gov19 内）、一生档案、收藏与提前归档弹层。沿用 prototypes/v193-high.html 的「案牍」纸色。 */
:root{--v3-sheet:#fbf8f1;--v3-sheet2:#f7f3ea;--v3-desk:#e9e1d0;--v3-ink:#1f1c18;--v3-muted:#5e574c;--v3-faint:#8a8173;--v3-line:#d8cfbe;--v3-line2:#e8e1d3;--v3-red:#a8322a;--v3-red-dark:#7e231d;--v3-red-tint:#f3e3df;--v3-good:#3f6a45;--v3-good-tint:#e3eae2;--v3-gold:#8a6a2e;--v3-serif:"Songti SC","STSong","SimSun","Noto Serif CJK SC","Source Han Serif SC","Noto Serif SC",serif}

/* ---------- 下级卡 ---------- */
.gov19 .h-layout{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;background:var(--g-red-tint);border:1px solid #e2c2bb;border-radius:4px;padding:8px 12px;font-size:13px}
.gov19 .h-layout button{padding:2px 8px;font-size:12px}
.gov19 .h-layout small{color:var(--g-muted)}
.gov19 .h-energy{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap;margin-bottom:8px}
.gov19 .h-pips{display:inline-flex;gap:4px}
.gov19 .h-pips i{width:12px;height:12px;border-radius:50%;border:1px solid var(--g-red);display:inline-block}
.gov19 .h-pips i.on{background:var(--g-red)}
.gov19 .h-subs{display:grid;gap:8px}
@container (min-width:560px){.gov19 .h-subs{grid-template-columns:1fr 1fr}.gov19 .h-acts{grid-template-columns:repeat(4,minmax(0,1fr))}}
.gov19 .h-sub{border:1px solid var(--g-line);border-radius:4px;background:#fffdf8;padding:10px;display:grid;gap:4px;text-align:left;position:relative;width:100%}
.gov19 .h-sub[aria-pressed="true"]{border-color:var(--g-ink);box-shadow:inset 0 0 0 1px var(--g-ink)}
.gov19 .h-sub .top{display:flex;justify-content:space-between;align-items:baseline;gap:6px}
.gov19 .h-sub b{font-family:var(--g-serif);font-size:16px}
.gov19 .h-sub .rank{font-family:var(--g-serif);color:var(--g-muted);font-size:12px}
.gov19 .h-sub .score{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--g-muted)}
.gov19 .h-sub .bar{flex:1;height:6px;background:var(--g-line2);border-radius:3px;overflow:hidden}
.gov19 .h-sub .bar i{display:block;height:100%;background:var(--g-gold)}
.gov19 .h-sub .who{font-size:12px;color:var(--g-muted)}
.gov19 .h-sub .star{color:var(--g-gold);letter-spacing:1px}
.gov19 .h-sub .tag{font-size:11px;padding:1px 7px;border-radius:9px;white-space:nowrap}
.gov19 .h-sub .tag.ok{background:var(--g-line2);color:var(--g-muted)}
.gov19 .h-sub .tag.hot{background:var(--g-good-tint);color:var(--g-good)}
.gov19 .h-sub .tag.bad{background:var(--g-red-tint);color:var(--g-red)}
.gov19 .h-disc{position:absolute;top:-7px;right:-5px;background:var(--g-gold);color:#fff;font-family:var(--g-serif);font-size:10px;padding:1px 5px;border-radius:2px;transform:rotate(5deg)}
.gov19 .h-picked{font-size:13px;margin:10px 0 0}
.gov19 .h-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.gov19 .h-act{display:grid;gap:2px;text-align:left;padding:8px 10px;background:#fffdf8;width:100%}
.gov19 .h-act b{font-weight:600}
.gov19 .h-act span{font-size:12px;color:var(--g-muted)}
.gov19 .h-act:disabled{opacity:.45;cursor:not-allowed}
.gov19 .h-why{font-size:13px;border-left:3px solid var(--g-good);background:var(--g-good-tint);padding:6px 10px;border-radius:0 4px 4px 0;margin-top:8px}
.gov19 .h-people{font-size:13px;display:grid;gap:4px}

/* ---------- 一生档案 ---------- */
.v193{color:var(--v3-ink);font-size:14px;line-height:1.55;text-align:left}
.v193 *{box-sizing:border-box}
.v193 h1,.v193 h2,.v193 h3{font-family:var(--v3-serif);margin:0;letter-spacing:.03em}
.v193 button{font:inherit;color:var(--v3-ink);background:var(--v3-sheet);border:1px solid var(--v3-line);border-radius:4px;padding:6px 10px;cursor:pointer;width:auto;min-height:0;box-shadow:none}
.v193 button.primary{background:var(--v3-red);border-color:var(--v3-red);color:#fbf1e6}
.v193 .num{font-variant-numeric:tabular-nums}
.v193-muted{font-size:12px;color:var(--v3-muted);margin:6px 0 0}
.v193-dossier{background:var(--v3-sheet);border:1px solid var(--v3-line);border-radius:4px;overflow:hidden}
.v193-cover{padding:22px 18px 16px;text-align:center;border-bottom:3px double var(--v3-red);background:linear-gradient(var(--v3-sheet),var(--v3-sheet2))}
.v193-kick{font-size:12px;color:var(--v3-red);letter-spacing:.4em}
.v193-cover h1{font-size:28px;margin:6px 0 2px}
.v193-cover .years{color:var(--v3-muted);font-size:13px}
.v193-title{display:inline-block;margin-top:12px;font-family:var(--v3-serif);font-size:22px;color:var(--v3-red);border:2px solid var(--v3-red);padding:4px 16px;letter-spacing:.2em;transform:rotate(-2deg)}
.v193-cover .tags{margin-top:10px;font-size:12px;color:var(--v3-muted)}
.v193-sec{padding:14px 18px;border-bottom:1px solid var(--v3-line2)}
.v193-sec h2{font-size:15px;margin-bottom:8px;color:var(--v3-red)}
.v193-fresh{background:var(--v3-good-tint);font-size:13px}
.v193-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
@media (min-width:600px){.v193-scores{grid-template-columns:repeat(6,minmax(0,1fr))}}
.v193-scores div{border:1px solid var(--v3-line2);border-radius:4px;padding:6px 8px;background:#fffdf8;min-width:0}
.v193-scores span{display:block;font-size:11px;color:var(--v3-muted)}
.v193-scores b{font-family:var(--v3-serif);font-size:18px}
.v193-scores b.small{font-size:14px}
.v193-scores .total{background:var(--v3-red-tint);border-color:#e2c2bb}
.v193-bio{font-family:var(--v3-serif);font-size:15px;line-height:1.9;text-indent:2em;margin:0}
.v193-timeline{list-style:none;margin:0;padding:0 0 0 14px;border-left:2px solid var(--v3-line);display:grid;gap:8px;font-size:13px}
.v193-timeline li{position:relative}
.v193-timeline li:before{content:"";position:absolute;left:-20px;top:6px;width:9px;height:9px;border-radius:50%;background:var(--v3-sheet);border:2px solid var(--v3-red)}
.v193-timeline time,.v193-feed time{color:var(--v3-muted);font-size:12px;margin-right:8px;white-space:nowrap}
.v193-thumb{display:inline-flex!important;align-items:center;gap:8px;padding:3px!important;vertical-align:middle}
.v193-thumb img{width:72px;height:44px;object-fit:cover;border-radius:3px;background:linear-gradient(135deg,#c9b99a,#8a6a2e)}
.v193-thumb span{font-size:12px;color:var(--v3-muted);padding-right:6px}
.v193-rows{display:grid;gap:6px;font-size:13px}
.v193-rows div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px dashed var(--v3-line2);padding-bottom:4px;flex-wrap:wrap}
.v193-rows span:last-child{color:var(--v3-muted);text-align:right}
.v193-end{display:flex;gap:8px;flex-wrap:wrap;border:0}
.v193-feed{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px}
.v193-feed li{display:grid;grid-template-columns:auto 1fr;gap:8px}

/* ---------- 弹层：收藏、提前归档、CG 大图 ---------- */
.v193-layer{position:fixed;inset:0;background:rgba(31,28,24,.42);z-index:60;display:flex;align-items:center;justify-content:center;padding:16px}
.v193-dialog{background:var(--v3-sheet);width:min(460px,100%);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--v3-line);border-top:3px double var(--v3-red);border-radius:6px;padding:18px;color:var(--v3-ink);text-align:left}
.v193-dialog.wide{width:min(980px,100%)}
.v193-dialog h3{font-family:var(--v3-serif);font-size:18px;margin:4px 0 8px}
.v193-dialog p{margin:6px 0}
.v193-dialog button{font:inherit;color:var(--v3-ink);background:var(--v3-sheet);border:1px solid var(--v3-line);border-radius:4px;padding:6px 12px;cursor:pointer;width:auto;min-height:0}
.v193-dialog button.primary{background:var(--v3-red);border-color:var(--v3-red);color:#fbf1e6}
.v193-dialog button:focus-visible{outline:2px solid var(--v3-red);outline-offset:2px}
.v193-row{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.v193-big{display:block;width:100%;border-radius:4px;margin-top:6px;background:var(--v3-desk)}
.v193-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;border-bottom:3px double var(--v3-red);padding-bottom:8px;margin-bottom:10px}
.v193-head h2{font-size:20px}
.v193-head .v193-x{margin-left:auto;font-size:18px;line-height:1;padding:2px 10px}
.v193-tabs{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:10px}
.v193-tabs button[aria-pressed="true"]{background:var(--v3-ink);color:var(--v3-sheet);border-color:var(--v3-ink)}
.v193-progress{font-size:12px;color:var(--v3-muted);margin-bottom:8px}
.v193-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.v193-cell{border:1px solid var(--v3-line);border-radius:4px;padding:10px;background:#fffdf8;display:grid;gap:3px;min-height:86px;text-align:left;align-content:start}
.v193-cell b{font-family:var(--v3-serif);font-size:15px}
.v193-cell span{font-size:12px;color:var(--v3-muted)}
.v193-cell.locked{background:var(--v3-sheet2);border-style:dashed;color:var(--v3-faint)}
.v193-cell.locked b{color:var(--v3-faint)}
.v193-cg{aspect-ratio:16/9;min-height:0;place-items:end start;align-content:end;padding:6px;background:linear-gradient(135deg,#b9a685,#6e5426) center/cover no-repeat}
.v193-cg span{color:#fff;font-size:11px;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.v193-cg.locked{background:var(--v3-desk);place-items:center;align-content:center}
.v193-cg.locked span{color:var(--v3-faint);text-shadow:none}
button.v193-cg{cursor:pointer;width:100%}

/* 更多菜单里的提前归档 */
.v193-archive-btn{display:grid;gap:2px;text-align:left}
.v193-archive-btn small{font-size:12px;color:var(--v3-muted);font-weight:400}
