:root{color-scheme:dark;--shade:.12;--panel:.52;--surface:.34;--text:#f1f2eb;--muted:#c0c9c1;--line:#e2e8d82e;--accent:#d8e5cc;--font:system-ui,"PingFang SC","Microsoft YaHei",sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:88px}body{margin:0;min-height:100vh;color:var(--text);font:14px/1.5 var(--font);background:#132322}button,input,select{font:inherit;color:inherit}button,a,input,select{outline-offset:3px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.43}button,input,select{border:1px solid var(--line);background:rgba(8,19,18,var(--surface));border-radius:5px}button{padding:7px 13px;transition:background .18s,border .18s}button:hover:not(:disabled),a:hover{border-color:#d7e4d0aa;color:#fff}button:hover:not(:disabled){background:#b7cbb32c}button.primary{background:#d4e5cc;color:#14251c;border-color:#d4e5cc;font-weight:650}button.primary:hover{background:#e6f1df;color:#14251c}a{color:inherit;text-decoration:none}input,select{min-width:0;padding:7px 9px;width:100%}input::placeholder{color:#d4dcd099}select option,select optgroup{background:#192a27;color:#f1f2eb}input:focus,select:focus{border-color:#dce9d3;outline:1px solid #dce9d355}h1,h2,h3,p{margin:0}h2{font-size:19px;font-weight:650;letter-spacing:.04em}small,.muted{color:var(--muted);font-size:12px}[hidden]{display:none!important}.page-background{position:fixed;inset:0;z-index:-2;background:#203733 url('/static/mountains.svg') center/cover no-repeat;pointer-events:none}.page-background video{width:100%;height:100%;object-fit:cover;display:block}.background-shade{position:absolute;inset:0;background:rgba(5,13,15,var(--shade))}.masthead{position:sticky;top:0;z-index:5;min-height:58px;padding:0 clamp(14px,3vw,48px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;background:#101d1b99;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.brand{display:inline-flex;align-items:center;gap:9px;justify-self:start;font-size:22px;font-weight:750;letter-spacing:.09em;white-space:nowrap}.seal{display:grid;place-items:center;width:31px;height:31px;border:1px solid #d7e5d1aa;border-radius:9px 3px 9px 3px;font-family:serif;font-size:22px;color:#dfebd5;background:#bcd0a626}.masthead nav{display:flex;gap:20px;align-items:center;white-space:nowrap}.masthead nav a,.masthead nav button{padding:18px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#e4e8de}.masthead nav a:hover,.masthead nav button:hover,.masthead nav .active{border-bottom-color:#d7e5cf;color:#fff;background:none}#connection{justify-self:end;font-size:12px;color:#d0e4c9;white-space:nowrap}#connection::before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;background:#93d8a5;border-radius:50%}#connection.offline{color:#ffc1a6}#connection.offline::before{background:#eea487}.team-switch{margin:0 auto;max-width:1920px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px clamp(12px,3vw,48px)}.team-tabs{display:flex;gap:7px;flex:1;min-width:0;overflow:auto}.team-tab{min-width:104px;max-width:220px;flex:1;border:1px solid var(--line);background:#1729265e;border-radius:5px;padding:7px 10px;display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden}.team-tab b{font-size:13px;font-weight:650}.team-tab small{overflow:hidden;text-overflow:ellipsis}.team-tab.selected{border-color:#e0ead8b0;background:#dce9d42b}.team-tab .dot{width:6px;height:6px;border-radius:50%;background:#87948a;flex:none}.team-tab.occupied .dot{background:#a2ddb0}.team-tab .team-detail{overflow:hidden;text-overflow:ellipsis;font-size:12px}.team-switch>button{white-space:nowrap}main{max-width:1920px;margin:0 auto;padding:0 clamp(12px,3vw,48px) 36px;display:grid;gap:16px}.panel{background:rgba(12,25,24,var(--panel));border:1px solid var(--line);border-radius:10px;padding:clamp(12px,1.4vw,22px);box-shadow:0 5px 24px #0002;backdrop-filter:blur(4px)}.roundbar,.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.roundbar{padding-bottom:10px;border-bottom:1px solid var(--line)}.round-select,.round-actions{display:flex;align-items:center;gap:10px}.round-select label{font-size:18px;font-weight:650;white-space:nowrap}.round-select select{max-width:340px}.round-actions{flex-wrap:wrap;justify-content:flex-end}.round-actions span{font-size:12px;color:var(--muted)}#finishBtn{border-color:#e9c39a80;color:#f7ddbc;background:#63492d35}.title-line{margin:12px 0 8px;position:relative}.title-line input{width:100%;font-size:clamp(20px,2vw,31px);font-weight:700;letter-spacing:.02em;border-color:transparent;background:#0002;padding:9px 12px}.title-line input:focus{border-color:#d7e5cf88}.field-state{font-size:11px;color:#ffd2a5;min-height:0}.field-state:empty{display:none}.roster-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 14px;flex-wrap:wrap}.clock{display:flex;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums;white-space:nowrap}.clock strong{font-size:21px;font-weight:550;letter-spacing:.04em}.clock small{font-size:10px}.stats{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.total b{font-size:23px;font-weight:650;color:#ecf4e4}.total span{color:#bcc9be;font-size:13px}.stats #roles{font-size:12px;color:#e0e7dc}.progress{display:flex;gap:2px;width:110px;flex-wrap:nowrap}.progress i{height:4px;flex:1;background:#d1e1ce30;border-radius:1px}.progress i.filled{background:#b2d7a6}#search{width:min(260px,100%)}.tablewrap{overflow-x:auto}.roster-grid{display:grid;grid-template-columns:repeat(var(--cols,5),minmax(0,1fr));gap:8px;min-width:calc(var(--cols,5) * 225px)}.team-column{display:flex;flex-direction:column;gap:7px;min-width:0}.party-head{display:flex;justify-content:space-between;align-items:center;padding:6px 9px;border-bottom:1px solid #d7e5d050;font-size:13px;color:#e3e9df}.party-head b{font-weight:650}.party-head small{font-variant-numeric:tabular-nums}.slot{--school:#b4c6bb;min-width:0;border:1px solid color-mix(in srgb,var(--school) 44%,transparent);background:linear-gradient(115deg,color-mix(in srgb,var(--school) 15%,transparent),#09151230);border-radius:6px;padding:7px;min-height:68px;transition:opacity .15s}.slot.filled{border-color:color-mix(in srgb,var(--school) 74%,transparent)}.slot.dim{opacity:.22}.slot-line{display:grid;grid-template-columns:22px minmax(0,1fr) minmax(0,.85fr);gap:5px;align-items:center}.slot-icon{width:22px;height:22px;display:grid;place-items:center;color:#d5e0d1;font-size:10px}.slot-icon img{width:100%;height:100%;border-radius:3px}.slot input,.slot select{padding:5px 6px;font-size:13px;height:31px;background:color-mix(in srgb,var(--school) 11%,#0b17176b);border-color:color-mix(in srgb,var(--school) 36%,transparent);color:color-mix(in srgb,var(--school) 42%,#fff)}.slot select{padding-right:2px}.slot-meta{display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin-top:6px;min-height:19px}.mark{font-size:11px;line-height:1.2;padding:3px 5px;border-radius:3px;color:#d6ded1a0;background:transparent;border:1px solid #dce4d12b}.mark[aria-pressed=true]{color:#171f1c;background:#dce7d3;border-color:#dce7d3;font-weight:750}.mark[data-bit="1"][aria-pressed=true]{background:#c9b6e4;border-color:#c9b6e4}.mark[data-bit="2"][aria-pressed=true]{background:#eed59d;border-color:#eed59d}.mark[data-bit="4"][aria-pressed=true]{background:#e8b3a5;border-color:#e8b3a5}.slot .field-state{margin-left:auto}.footnote{font-size:11px;color:#d1d9cc;margin-top:12px}.sectionhead{margin-bottom:12px}.guide-content{min-height:100px;border-radius:6px;overflow:hidden;background:#08161355}.guide-content iframe{display:block;border:0;width:100%;height:clamp(620px,80vh,1300px);background:#fff}.guide-content:fullscreen{background:#13211e}.guide-content:fullscreen iframe{height:100vh}.guide-placeholder{padding:22px;color:#e1e7da;font-size:13px}.guide-tabs{display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap}.guide-tabs button[aria-selected=true]{background:#d7e5cf;color:#15251c}.credit{color:#c0cabc;font-size:12px;margin:10px 0 0}.credit a{border-bottom:1px dotted #d5dfcb}.bossgrid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.drop-card{border:1px solid var(--line);border-radius:6px;padding:10px;background:rgba(7,18,17,var(--surface));min-width:0}.drop-card h3{font-size:15px;font-weight:650;margin-bottom:8px}.drop-upload{width:100%;min-height:68px;border:1px dashed #dce8cf66;background:#b7cbb30d;color:#e5ecde;display:grid;place-items:center;cursor:pointer;border-radius:5px;font-size:13px}.drop-upload:hover{background:#b7cbb31e}.drop-upload input{position:absolute;width:1px;height:1px;opacity:0}.drop-upload:focus-within{outline:2px solid #dbe9d4}.image-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:6px}.image-item{position:relative;min-width:0}.image-item img{display:block;width:100%;height:76px;object-fit:contain;background:#0005;border-radius:3px;cursor:zoom-in}.image-item button{position:absolute;right:2px;top:2px;padding:0 5px;background:#101b1bd9;font-size:12px}.wage-row{margin-top:10px}.wage-row .drop-card{display:grid;grid-template-columns:minmax(105px,170px) minmax(0,1fr);align-items:center;gap:10px}.wage-row h3{margin:0}.wage-row .image-list{grid-template-columns:minmax(0,230px);margin:0}.wage-row .drop-upload{min-height:48px}.notes-section{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}.notes-section .sectionhead{margin-bottom:8px}.notes-section h2{font-size:17px}.note-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;margin:5px 0;align-items:center}.note-row input{height:31px;padding:4px 9px}.note-row button{padding:3px 9px}.note-row .field-state{max-width:180px}.error{color:#ffb7a1;font-size:13px}dialog{width:min(540px,94vw);max-height:85vh;padding:20px;background:#1a2c28f5;color:var(--text);border:1px solid #d4e3cb65;border-radius:10px;box-shadow:0 10px 60px #0007}dialog::backdrop{background:#09141288;backdrop-filter:blur(4px)}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}dialog label{display:block;margin:12px 0;color:#d6e1d1}dialog label input,dialog label select{margin-top:4px}dialog form>button{width:100%;margin:8px 0}#historyList{display:grid;gap:7px;margin-top:12px}.history-item{display:flex;flex-direction:column;border:1px solid var(--line);padding:10px;border-radius:5px}.history-item:hover{background:#dce9d41a}.image-dialog{width:min(1200px,96vw)}.image-dialog img{display:block;max-width:100%;max-height:70vh;margin:auto;object-fit:contain}#toast{position:fixed;right:16px;bottom:16px;z-index:20;max-width:90vw;padding:11px 16px;background:#182e28f5;border:1px solid #dce9d470;border-radius:6px;color:#f5f0df;box-shadow:0 4px 24px #0007}body.archived .mark:disabled[aria-pressed=true]{opacity:1}body.archived .mark:disabled[aria-pressed=false]{display:none}body.archived input:disabled,body.archived select:disabled{opacity:1}body.archived .footnote{display:none}@media(min-width:1500px){.slot input,.slot select{font-size:14px}.roster-grid{gap:10px}.slot{padding:9px}}@media(max-width:820px){.masthead{grid-template-columns:1fr auto;padding:8px 12px;gap:3px}.brand{font-size:19px}.masthead nav{grid-row:2;grid-column:1/3;justify-content:space-between;gap:8px}.masthead nav a,.masthead nav button{padding:9px 2px}.team-switch{padding:8px 12px}.team-tab{min-width:100px}.team-switch>button{padding:7px 9px;font-size:12px}.round-select select{max-width:190px}.round-actions{justify-content:flex-start}.roster-tools{gap:7px}.clock{gap:6px}.bossgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-content iframe{height:78vh;min-height:480px}.panel{backdrop-filter:none}.note-row .field-state{max-width:95px}.round-select label{font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.masthead nav a[aria-disabled=true]{opacity:.5;cursor:default}.masthead nav a[aria-disabled=true]:hover{border-bottom-color:transparent;color:#e4e8de}

body{isolation:isolate}

/* V2.2 — retain the original green/ink glass theme; compact, game-like roster. */
:root{--shade:.09;--panel:.48;--surface:.29;--line:#dce8d438;--accent:#d6e5c9;--text:#f4f5ef;--muted:#c4d2c6}
.masthead{min-height:56px;background:linear-gradient(90deg,#10201dcc,#172d2699);border-bottom:1px solid #c6dcc04a;box-shadow:0 3px 18px #0002}
.brand{font-size:21px;letter-spacing:.04em;text-shadow:0 2px 8px #0008}.seal{border-radius:7px;color:#eef1db;background:#b4ceaa20;box-shadow:inset 0 0 0 2px #0c201d55}
.masthead nav{gap:26px}.masthead nav a,.masthead nav button{font-weight:500;letter-spacing:.035em}
.team-switch{padding-top:11px;padding-bottom:11px}.team-tab{border-radius:7px;min-height:40px;background:#14262266;transition:background .18s,border-color .18s}.team-tab.selected{background:linear-gradient(100deg,#a5c4a43b,#52746535);border-color:#d8e8cba8;box-shadow:inset 0 -2px #c9dec9}.team-tab.occupied .dot{box-shadow:0 0 8px #b5e4a8a0}
button.primary{border-radius:6px;background:linear-gradient(110deg,#e0ecd6,#b6cfae);box-shadow:0 2px 7px #0003}
main{gap:13px}.panel{border-radius:9px;background:linear-gradient(150deg,rgba(14,29,25,var(--panel)),rgba(8,21,20,calc(var(--panel) + .05)));box-shadow:0 7px 26px #0003,inset 0 1px #f4fff014;backdrop-filter:blur(3px)}
.roundbar{padding-bottom:9px}.round-select label{font-size:17px}.round-select select{background:#11231d65;border-color:#c6d9bc45}.title-line{margin:10px 0 8px}.title-line input{border:1px solid #d4e5cc27;border-left:3px solid #c5dbba9c;background:linear-gradient(90deg,#101f1bb0,#10221c24);border-radius:4px;font-size:clamp(20px,2vw,29px);padding:8px 12px;text-shadow:0 2px 5px #0006}
.roster-tools{margin:8px 0 12px}.clock strong{color:#f6f7ee;font-size:22px}.clock span{font-size:12px;color:#d3e0d1}.stats{gap:10px}.stats #roles{padding:4px 9px;border:1px solid #d0e2c72e;border-radius:4px;background:#11262038}.progress{width:100px}.progress i{height:5px}.progress i.filled{background:#c0dcb1}
#search{background:#10251f70}.roster-grid{gap:9px;min-width:calc(var(--cols,5) * 234px)}.team-column{gap:6px}.party-head{background:linear-gradient(90deg,#adc6a326,#adc6a308);border:1px solid #d4e4ca35;border-left:2px solid #c6ddb5a8;border-radius:4px;padding:7px 9px;color:#edf2e6}.party-head small{color:#d1dfcb}
.slot{padding:7px 8px 6px;min-height:91px;border-radius:6px;background:linear-gradient(110deg,color-mix(in srgb,var(--school) 13%,transparent),#0a1a1760);border-color:color-mix(in srgb,var(--school) 35%,transparent);box-shadow:inset 2px 0 color-mix(in srgb,var(--school) 33%,transparent)}
.slot.filled{border-color:color-mix(in srgb,var(--school) 66%,transparent);box-shadow:inset 2px 0 var(--school)}.slot:focus-within{border-color:var(--school);box-shadow:inset 2px 0 var(--school),0 0 0 1px color-mix(in srgb,var(--school) 30%,transparent)}
.slot-line{grid-template-columns:23px minmax(0,1fr) minmax(0,.93fr);gap:5px}.slot-icon{width:23px;height:23px}.slot input,.slot select{height:29px;padding:4px 6px;background:color-mix(in srgb,var(--school) 9%,#0817138a);font-size:12px;border-color:color-mix(in srgb,var(--school) 35%,transparent)}.slot input::placeholder{color:#c6d2c4a6}.slot-meta{margin-top:5px;gap:5px;min-height:17px;flex-wrap:nowrap}.mark{font-size:10px;padding:2px 6px;border-radius:3px;background:#0b1e173b;color:#d2dfd0b5}.slot .field-state{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot input.slot-note{display:block;margin-top:5px;height:23px;line-height:19px;font-size:11px;padding:1px 7px;border:1px solid color-mix(in srgb,var(--school) 24%,transparent);color:color-mix(in srgb,var(--school) 38%,#f1f5ed);background:color-mix(in srgb,var(--school) 7%,#08171352)}.slot input.slot-note::placeholder{color:#c2cec1a3}.slot input.slot-note:focus{border-color:var(--school)}
.sectionhead h2{font-size:18px;letter-spacing:.025em}.sectionhead h2::before{content:'';display:inline-block;width:3px;height:15px;background:#c2dab3;margin-right:8px;border-radius:1px;vertical-align:-1px}.drop-card{border-color:#d7e5cd38;background:#0a211d45;padding:11px}.drop-upload{background:#b7cbb30a;border-color:#d8e6d057}.wage-row .drop-card{border-left:3px solid #d5cb9a99}.notes-section{padding-top:12px;margin-top:14px}.note-row input{background:#10251c59}.credit{font-size:11px}.history-item{background:#10251e66}.history-item:hover{border-color:#d5e8c9aa}#backToTeam{border-color:#d8e7cd70;color:#e1edda}
body.archived .slot input.slot-note:placeholder-shown{display:none}body.archived .slot{min-height:91px}
@media(min-width:1500px){.slot input,.slot select{font-size:13px}.slot input.slot-note{font-size:11px}.slot{padding:8px 9px}}
@media(max-width:820px){.masthead{min-height:0;gap:3px}.masthead nav{gap:8px}.team-switch{padding:8px 12px}.panel{backdrop-filter:none}.roster-grid{gap:7px;min-width:calc(var(--cols,5) * 234px)}.clock strong{font-size:20px}.stats #roles{font-size:11px}.roster-tools{gap:8px}.team-tab{min-height:35px}.round-actions{gap:5px}}

/* V2.4 墨茶 · 沉稳古风；动态底图、低饱和暖金和墨绿 */
:root{--shade:.15;--panel:.55;--surface:.34;--line:#c5b08b3d;--accent:#d2bc92;--text:#f0ebdd;--muted:#c9c5b6;--heading:"Noto Serif SC","Songti SC","STSong","SimSun",serif}
body{background:#19231e;font:14px/1.55 var(--font)}
.masthead{background:linear-gradient(90deg,#17231fe8,#26312bc9);border-bottom:1px solid #b9a07975;min-height:62px;box-shadow:0 3px 18px #0003;backdrop-filter:blur(9px)}
.brand{font-family:var(--heading);font-size:26px;letter-spacing:.12em;font-weight:700;color:#f0e6d0}.seal{font-family:var(--heading);width:34px;height:34px;border-radius:3px;background:#763f35;color:#f3e5cc;border-color:#bd9274;box-shadow:inset 0 0 0 2px #d8b8992b;text-shadow:none}.masthead nav a,.masthead nav button{color:#e5dfd0;letter-spacing:.08em}.masthead nav a:hover,.masthead nav button:hover{color:#ead3aa;border-color:#cbb28b}.future{justify-self:end;color:#c0b6a2;font-size:12px;letter-spacing:.05em;white-space:nowrap}
.team-switch{gap:12px;align-items:center;padding-top:15px;padding-bottom:15px}.round-select{flex:1;min-width:0}.round-select label{font-family:var(--heading);font-size:19px;color:#e8dcc4}.round-select select{max-width:440px;background:#202a23bf;border-color:#baa27a66;min-height:36px}.team-actions{display:flex;gap:8px;flex:none}.team-actions button{white-space:nowrap}button.primary{background:#d4c19b;color:#272820;border:1px solid #ddcda9;border-radius:4px;box-shadow:none}button.primary:hover{background:#e2d1ae;color:#272820}button.danger{color:#e5bcac;border-color:#c28c7f77;background:#633b3044}button.danger:hover:not(:disabled){background:#75453888;border-color:#d9a090}
.panel{background:linear-gradient(145deg,rgba(27,37,31,var(--panel)),rgba(17,27,23,calc(var(--panel) + .06)));border:1px solid #c3ad8155;border-radius:5px;box-shadow:0 4px 24px #0003,inset 0 1px #f6edcf0c;backdrop-filter:blur(2px)}.roundbar{border-color:#c4ae8138}.roundbar h2,.sectionhead h2{font-family:var(--heading);font-size:22px;font-weight:600;color:#eee4ce;letter-spacing:.07em}.sectionhead h2::before{background:#cbb28b;width:3px;height:18px;margin-right:10px}.title-line input{font-family:var(--heading);font-size:clamp(23px,2vw,32px);color:#f2e7d2;border-color:#c6ad8138;border-left:3px solid #bda47a;background:linear-gradient(90deg,#1a2720a8,#1a272023);letter-spacing:.04em}.clock strong{font-family:Georgia,"Microsoft YaHei",serif;color:#f2e7d2;font-size:25px}.clock span{color:#d7cdb8}.total b{font-family:Georgia,serif;color:#f2dfb6;font-size:31px;line-height:1}.total span{font-size:17px;color:#d5c8ab}.stats #roles{border-color:#bfa88038;background:#1c29214d;color:#e4dcc8}.progress{display:grid;grid-template-columns:repeat(13,10px);width:auto;gap:4px}.progress i{height:10px;width:10px;border-radius:50%;background:#b8aa8c35;box-shadow:inset 0 0 0 1px #c0ac8133}.progress i.filled{background:#d4bf8f;box-shadow:0 0 5px #cbb18a44}.roster-tools{gap:12px}
#search{background:#1c2820a0;border-color:#bca47b45}.roster-grid{gap:10px;min-width:calc(var(--cols,5) * 250px);grid-template-columns:repeat(var(--cols,5),minmax(0,1fr))}.team-column{gap:8px}.party-head{background:linear-gradient(90deg,#b6a17a27,#a7916d0c);border:1px solid #c2aa8055;border-left:2px solid #c5af86;border-radius:3px;padding:9px 10px;color:#f0e4cb}.party-head b{font-family:var(--heading);font-size:16px;letter-spacing:.05em}.party-head small{color:#d1c4aa}.slot{min-height:100px;padding:8px 9px;border-radius:4px;background:linear-gradient(115deg,color-mix(in srgb,var(--school) 10%,transparent),#15221b66);border-color:color-mix(in srgb,var(--school) 36%,#91836924)}.slot-line{grid-template-columns:23px minmax(0,1fr) minmax(0,1fr)}.slot input,.slot select{background:color-mix(in srgb,var(--school) 10%,#132018a0);font-size:12px;height:31px;border-radius:3px}.slot input::placeholder,.slot-note::placeholder{color:#d1cdbb9c}.slot-meta{flex-wrap:wrap;gap:4px;min-height:22px}.mark{padding:3px 6px;font-size:11px;background:#1b251e55;border-color:#b5a58a33;color:#d4cbb8;white-space:nowrap}.mark[data-bit="8"][aria-pressed=true]{background:#a04e45;border-color:#db9d87;color:#fff2e6}.mark[data-bit="8"]:not([aria-pressed=true]){color:#d3a89a}.slot .field-state{flex:1;min-width:0}
.note-wrap{position:relative;width:100%;margin-top:6px;min-width:130px}.slot textarea.slot-note{display:block;width:100%;height:32px;min-height:32px;resize:none;padding:5px 29px 5px 7px;font:11px/20px var(--font);color:color-mix(in srgb,var(--school) 32%,#eee8d8);border:1px solid color-mix(in srgb,var(--school) 27%,transparent);border-radius:3px;background:color-mix(in srgb,var(--school) 7%,#12201873);outline-offset:2px}.slot textarea.slot-note:focus{border-color:var(--school);outline:1px solid color-mix(in srgb,var(--school) 40%,transparent)}.note-grip{position:absolute;right:1px;bottom:1px;width:26px;height:26px;padding:0;display:grid;place-items:center;color:#d3c4a7;background:#342f267d;border:1px solid #bca47b44;border-radius:3px;cursor:nwse-resize;touch-action:none;font-size:19px;line-height:1;user-select:none}.note-grip:hover{background:#b49b6855}.archived .slot textarea.slot-note{resize:vertical;opacity:1;padding-right:7px;min-height:32px;field-sizing:content;white-space:pre-wrap}.archived .note-wrap:has(textarea:placeholder-shown){display:none}
.bossgrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.drop-card{border:1px solid #c0aa8055;background:#1c2a215c;border-radius:4px;padding:10px;min-width:0}.drop-card h3{font-family:var(--heading);font-size:16px;color:#e5d8be}.drop-card.wage-card{border-color:#cbb18499;background:#4d42272e}.drop-upload{border-color:#bea98266;background:#bca4760c;color:#e1d6bd;min-height:76px;border-radius:3px;padding:7px;text-align:center}.image-list{grid-template-columns:repeat(2,minmax(0,1fr))}.wage-card .image-list{grid-template-columns:1fr}.guide-content{border:1px solid #bba78038;background:#1a261f55;border-radius:4px}.guide-content iframe{background:transparent;height:clamp(680px,86vh,1400px)}.credit{color:#c9beaa}.credit a{color:#dfccaa;text-decoration:underline;text-underline-offset:3px}dialog{background:#26312a;border-color:#b9a17c88;color:#eee5d3;border-radius:6px}.modalhead h2{font-family:var(--heading)}.history-item{background:#313c31;border-color:#b6a17a33}.history-item:hover{border-color:#cbb38c}.history-item strong{color:#efe2c5}#toast{background:#2a3329;border-color:#bfa57e88}select option,select optgroup{background:#273229;color:#eee6d6}
@media(max-width:1100px){.bossgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:820px){.brand{font-size:22px}.future{font-size:10px}.team-switch{padding:10px 12px;flex-wrap:wrap}.round-select{flex-basis:100%}.round-select select{max-width:none}.team-actions{margin-left:auto}.masthead nav{gap:6px}.panel{backdrop-filter:none}.bossgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-content iframe{height:82vh;min-height:480px}.roster-grid{min-width:calc(var(--cols,5) * 250px)}}

/* V2.5 · 首页史记与居中团队操作 */
.brand-logo{display:block;flex:none;width:44px;height:44px;object-fit:cover;border-radius:50%;border:1px solid #d3bf978c;box-shadow:0 0 0 2px #131f1990;}
.team-switch{justify-content:center;gap:14px;flex-wrap:wrap;padding-block:18px;}
.team-switch .round-select{flex:0 1 auto;min-width:0;gap:12px;justify-content:center;}
.team-switch .round-select select{width:clamp(180px,27vw,420px);max-width:100%;}
.team-switch .team-actions{margin:0;justify-content:center;}
#homeContent{width:100%;max-width:1080px;padding:0 22px 60px;margin:clamp(24px,8vh,110px) auto 0;}
.chronicle{width:min(780px,100%);margin:0 auto;padding:clamp(18px,3vw,38px);border:1px solid #b5a17b80;background:linear-gradient(135deg,rgba(29,40,31,.67),rgba(20,29,23,.56));border-radius:5px;box-shadow:0 18px 58px #0003;}
.chronicle-head{position:relative;text-align:center;padding:5px 0 18px;border-bottom:1px solid #b5a17b55;margin-bottom:18px;}
.chronicle-head h1{font:600 clamp(27px,3vw,37px)/1.3 var(--heading);letter-spacing:.28em;text-indent:.28em;color:#eee1c5;}
.chronicle-add{position:absolute;right:0;top:9px;color:#e9d6b3;border-color:#bca68080;background:#bca68013;}
#chronicleList{display:grid;gap:12px;}
.chronicle-row{padding:10px 12px 12px;border-left:2px solid #b9a67d90;border-bottom:1px solid #b9a67d28;background:#131e1752;min-width:0;}
.chronicle-row-head{display:flex;align-items:center;gap:12px;margin-bottom:6px;color:#c8bda5;font-size:12px;}
.chronicle-row-head time{font-variant-numeric:tabular-nums;}
.chronicle-delete{margin-left:auto;padding:2px 8px;font-size:12px;color:#d4a79a;border-color:transparent;background:transparent;}
.chronicle-text{display:block;width:100%;min-height:62px;resize:vertical;padding:9px 11px;background:#101b1552;border:1px solid #bca68035;border-radius:3px;color:#f0eadb;font:14px/1.7 var(--font);}
.chronicle-text::placeholder{color:#c9c1b08c;}.chronicle-text:focus{border-color:#cbb58c;outline:1px solid #cbb58c44;outline-offset:1px;}
.chronicle-empty{padding:28px 0;text-align:center;color:#d1c3a6;font-family:var(--heading);letter-spacing:.08em;}
@media(max-width:820px){.brand-logo{width:35px;height:35px}.team-switch .round-select{flex-basis:auto}.team-switch .round-select select{width:min(55vw,300px)}#homeContent{margin-top:24px;padding-inline:14px}.chronicle-head{display:flex;align-items:center;justify-content:center;gap:16px}.chronicle-add{position:static;font-size:12px}.chronicle-head h1{font-size:26px;}}

/* V2.6 · 持续播放的古风音乐控件 */
.bgm-player{justify-self:end;display:flex;align-items:center;gap:10px;min-width:0;padding:5px 9px 5px 5px;border:1px solid #bda78055;border-radius:5px;background:#17231c75;color:#eadcc1;white-space:nowrap;}
.bgm-toggle{width:34px;height:34px;border:1px solid #cbb58c88;border-radius:50%;padding:7px;display:grid;place-items:center;flex:none;background:#b59e7020;color:#f1dfbd;}
.bgm-toggle svg{width:19px;height:19px;display:block;}.bgm-toggle.playing{border-color:#d8be8a;background:#b59e7038;box-shadow:0 0 10px #cbb58c22;}
.bgm-info{display:grid;gap:1px;line-height:1.15;}.bgm-title{font-family:var(--heading);font-weight:600;font-size:14px;letter-spacing:.06em;}.bgm-title small{font-family:var(--font);font-weight:400;font-size:10px;color:#c9bda5;}.bgm-status{font-size:10px;color:#c8b99f;}
#bgmVolume{width:56px;height:20px;margin:0;padding:0;border:0;background:none;accent-color:#d3ba8b;cursor:pointer;}
@media(max-width:1080px){.masthead{gap:8px;padding-inline:16px;}.masthead nav{gap:10px}.bgm-player{gap:6px}.bgm-title small{display:none}#bgmVolume{width:42px}}
@media(max-width:820px){.bgm-player{grid-row:1;grid-column:2;gap:6px;padding:3px 6px 3px 3px}.bgm-toggle{width:30px;height:30px;padding:5px}.bgm-title{font-size:13px}.bgm-status{font-size:9px}#bgmVolume{width:36px}.masthead nav{grid-column:1/3}}

/* V2.7 · 单行报名进度与双曲循环 */
.stats .total{white-space:nowrap;flex:none}
.stats .progress{display:flex;flex-wrap:nowrap;align-items:center;grid-template-columns:none;width:max-content;max-width:100%;gap:4px;flex:none;overflow-x:auto}
.stats .progress i{flex:0 0 10px;width:10px;height:10px;border-radius:50%}
.bgm-info{min-width:0;max-width:190px}
.bgm-title{display:flex;align-items:baseline;gap:5px;letter-spacing:0}
#bgmTitle{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bgm-title small{flex:none;display:inline}
.bgm-next{width:24px;height:28px;padding:3px;flex:none;display:grid;place-items:center;border:0;background:transparent;color:#d6c09a}
.bgm-next svg{width:16px;height:16px}
@media(max-width:1080px){.bgm-info{max-width:145px}.stats .progress{gap:3px}.stats .progress i{flex-basis:8px;width:8px;height:8px}}
@media(max-width:820px){.bgm-info{max-width:130px}.bgm-next{width:20px}.stats .progress{gap:3px}.stats .progress i{flex-basis:7px;width:7px;height:7px}}
@media(max-width:420px){.bgm-info{max-width:100px}#bgmVolume{width:26px}.stats .progress{gap:2px}.stats .progress i{flex-basis:6px;width:6px;height:6px}}

/* V2.8 · 宋体、墨绿暖金、同级三栏输入、人物传记 */
:root{
 --font:"SimSun","宋体","Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC","AR PL SungtiL GB",serif;
 --heading:var(--font);--text:#f1e8d5;--muted:#cbbfa6;--line:#bfa77c55;
}
body{font:17px/1.65 var(--font);color:var(--text)}
button,input,select,textarea{font-family:var(--font)}
button,input,select{font-size:17px;line-height:1.35}
button{padding:8px 14px}
.masthead{min-height:76px;background:#17251fed;border-bottom:1px solid #c9b18299;gap:18px}
.brand{font-size:32px;font-weight:700;letter-spacing:.12em}
.brand-logo{width:48px;height:48px}
.masthead nav{gap:24px}
.masthead nav a,.masthead nav button{font-size:18px;padding:23px 3px 19px;letter-spacing:.07em}
.bgm-title{font-size:16px}.bgm-status,.bgm-title small{font-size:12px}
.team-switch{padding-block:24px;gap:16px}
.round-select label{font-size:21px}.team-switch select{height:44px;font-size:18px}
.team-actions button{min-height:44px;font-size:17px}
#content{max-width:2100px;padding-inline:clamp(12px,2vw,36px);gap:22px}
.panel{border-radius:3px;border-color:#bfa77c80;background:linear-gradient(145deg,#233229e8,#17231de0);box-shadow:0 12px 36px #0004,inset 0 1px #e4d4ab19}
.roundbar,.sectionhead{padding-bottom:13px;border-bottom:1px solid #bfa77c55}
.roundbar h2,.sectionhead h2{font-size:28px;letter-spacing:.12em;font-weight:700}
#roundTitle{font-family:var(--font);font-size:25px;line-height:1.4;min-height:47px;letter-spacing:.025em}
.title-line{margin:15px 0 12px}
.roster-tools{gap:16px;padding:12px 0 14px;border-bottom:1px solid #bfa77c33;margin-bottom:18px}
.clock strong{font-size:27px}.clock span,.clock small{font-size:15px}
.stats{gap:10px}.stats .total b{font-size:32px}.stats .total{font-size:22px}
.stats #roles{font-size:16px;padding:6px 11px}
#search{font-size:17px;min-height:40px}
.tablewrap{overflow-x:auto;padding-bottom:12px;scrollbar-color:#9d8963 #15241d;scrollbar-width:thin}
.roster-grid{--cols:5;gap:10px;min-width:calc(var(--cols,5)*370px + (var(--cols,5) - 1)*10px);grid-template-columns:repeat(var(--cols,5),minmax(370px,1fr))}
.team-column{gap:10px}
.party-head{background:#b8a17b1f;border:1px solid #c5af7b72;border-top:2px solid #c8b181;padding:10px 13px;min-height:47px;border-radius:2px}
.party-head b{font-size:20px;letter-spacing:.1em}.party-head small{font-size:16px}
.slot{padding:9px 10px 10px;min-height:124px;border-radius:2px;border-color:#b8a17a45;background:#15251de0;box-shadow:inset 3px 0 var(--school)}
.slot.filled{background:linear-gradient(105deg,color-mix(in srgb,var(--school) 12%,#17251d),#17251d)}
.slot-meta{margin:0 0 7px;min-height:24px;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:5px}
.slot-identity{display:flex;align-items:center;gap:7px;min-width:0}
.slot-icon{width:24px;height:24px;flex:none;font-size:13px}
.slot .field-state{font-size:13px;text-align:right;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* ID and heart method share the row in 2:1 proportions, excluding gaps. */
.slot-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:4px;align-items:center}
.slot-line>input,.slot-line>select{width:100%;min-width:0;height:40px;padding:6px 3px;border-radius:2px;font:16px/1.3 var(--font);background:#101e18df;border:1px solid color-mix(in srgb,var(--school) 44%,#695d45);color:#f1ead9}
.slot-line>input{padding-inline:7px}.slot-line>select{padding-left:3px;padding-right:0}
.slot-line>select:disabled,.slot-line>input:disabled{opacity:1;color:#e9dfc8}
.note-wrap{margin-top:7px}.slot textarea.slot-note{min-height:38px;height:38px;font:15px/24px var(--font);padding:6px 30px 6px 8px;background:#1320199e;color:#ded6c4}
.note-grip{font-size:20px}.archived .slot textarea.slot-note{min-height:38px}
.drop-card h3{font-size:20px}.drop-upload{font-size:17px}.credit{font-size:14px}
/* Retain the original centered chronicle structure, then append biographies. */
#homeContent{gap:24px;margin-top:clamp(24px,6vh,76px);max-width:1080px}
.chronicle{background:linear-gradient(135deg,#26362be8,#19251de0);border:1px solid #c6ae8180}
.chronicle-head h1{font:700 clamp(32px,4vw,42px)/1.3 var(--heading)}
.chronicle-add{font-size:16px}.chronicle-row-head{font-size:15px}.chronicle-delete{font-size:15px}
.chronicle-text{font:18px/1.8 var(--font);min-height:76px}.chronicle-empty{font-size:18px}
.biographies{margin-top:0}.biographies .chronicle-head h2{font:700 clamp(26px,3vw,34px)/1.3 var(--heading);letter-spacing:.15em;color:#eee1c5}
.bio-intro{text-align:center;color:#c9bda5;font-size:16px;margin:0 0 17px}
.biography-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.biography-row{min-width:0;border:1px solid #bca6804d;border-top:2px solid #baa47c99;padding:12px;background:#121e17a0;border-radius:2px}
.biography-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.biography-name{font:700 21px/1.4 var(--heading);color:#eddcbb;overflow-wrap:anywhere}
.biography-row .field-state{font-size:12px;flex:none}
.biography-text{width:100%;min-height:116px;resize:vertical;display:block;border:1px solid #bca68047;border-radius:2px;background:#101b1552;color:#f1e8d5;font:17px/1.75 var(--font);padding:9px;outline-offset:2px}
.biography-text::placeholder{color:#c9c1b087}.biography-text:focus{border-color:#d1b789;outline:1px solid #cbb58c44}
@media(max-width:1200px){.masthead{gap:8px}.masthead nav{gap:12px}.masthead nav a,.masthead nav button{font-size:17px}.brand{font-size:28px}}
@media(max-width:820px){.masthead{grid-template-columns:minmax(0,1fr) auto;padding:8px 12px;gap:4px;min-height:0}.brand{font-size:24px;letter-spacing:.03em}.brand-logo{width:34px;height:34px}.masthead nav{grid-column:1/3;justify-content:center;gap:clamp(8px,3vw,20px);flex-wrap:wrap}.masthead nav a,.masthead nav button{font-size:16px;padding:8px 1px}.bgm-title{font-size:13px}.bgm-status{font-size:10px}.bgm-player{grid-column:2;grid-row:1;max-width:100%}.team-switch{padding:13px 10px;gap:9px}.round-select label{font-size:18px}.team-switch select{font-size:16px;max-width:55vw;height:42px}.team-actions button{font-size:16px;min-height:40px}#homeContent{margin-top:24px;padding-inline:12px;gap:16px}.chronicle{padding:18px 13px}.chronicle-add{font-size:15px}.chronicle-head h1{font-size:32px}.chronicle-text{font-size:17px}.roundbar h2,.sectionhead h2{font-size:25px}.stats #roles{font-size:14px}.stats .total b{font-size:27px}.roster-tools{gap:12px}.roster-grid{min-width:calc(var(--cols,5)*370px + (var(--cols,5) - 1)*10px)}.panel{backdrop-filter:none}.slot-line>input,.slot-line>select{font-size:16px}.biography-grid{grid-template-columns:1fr}.biography-text{font-size:17px}}
@media(max-width:420px){.brand{font-size:21px}.bgm-info{max-width:76px}.bgm-player{gap:3px}.bgm-toggle{width:26px;height:26px}#bgmVolume{width:22px}.stats .progress{gap:2px}.stats .progress i{width:6px;height:6px;flex-basis:6px}}

/* V2.9: two parallel home columns; relationship network with click-to-edit biographies. */
#homeContent:not([hidden]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1760px;align-items:start;gap:24px;padding-inline:clamp(14px,2vw,32px)}
#homeContent>.chronicle{width:100%;min-width:0;margin:0;padding:clamp(16px,2vw,28px)}
#homeContent .chronicle-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left}
#homeContent .chronicle-head h1,#homeContent .chronicle-head h2{font:700 clamp(28px,2.5vw,36px)/1.3 var(--heading);letter-spacing:.12em;text-indent:0}
#homeContent .chronicle-add{position:static;white-space:nowrap;justify-self:end}
.network-scroll{width:100%;overflow-x:auto;border:1px solid #bfa77c40;background:radial-gradient(ellipse at center,#28392bc0,#111e18b0);border-radius:3px;scrollbar-width:thin;scrollbar-color:#a18c66 #17251d}
#biographyNetwork{display:block;width:100%;min-width:640px;height:auto;overflow:visible;user-select:none}
.network-edge{stroke:#cbb58c;stroke-width:1.45;stroke-opacity:.38;transition:stroke-opacity .15s}
.network-edge.edge-active{stroke:#ead3a1;stroke-width:2.7;stroke-opacity:.95}.network-edge.edge-muted{stroke-opacity:.07}
.network-node{cursor:pointer;outline:none;transition:opacity .15s}.network-node rect{fill:#22382a;stroke:#cbb58c;stroke-width:1.2}.network-node text{fill:#f4e7ce;font:700 20px var(--font);pointer-events:none}.network-node.isolated rect{fill:#263129;stroke:#a69a80;stroke-dasharray:4 3}.network-node.node-active rect,.network-node:focus rect{fill:#4b4931;stroke:#f2d5a1;stroke-width:2.5}.network-node.node-muted{opacity:.28}
.network-count{text-align:center;font-size:15px;color:#c8b89a;margin:8px 0 18px}
.relation-form{border-top:1px solid #bfa77c55;padding-top:15px;margin-top:10px;display:grid;gap:8px}.relation-form h3{font-size:19px;color:#e8d5ae;margin:0}.relation-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:center;gap:7px}.relation-inputs input{width:100%;min-width:0;font-size:16px;padding:8px}.relation-inputs button{white-space:nowrap;font-size:16px}.relation-message{min-height:1.5em;margin:0;color:#dfcba7;font-size:15px}
.biography-read-dialog{width:min(700px,calc(100% - 24px));max-height:90vh;overflow-y:auto}.biography-read-dialog .biography-text{min-height:240px;line-height:1.8;font-size:18px}.biography-read-dialog .biography-row[hidden]{display:none}.biography-read-dialog .bio-intro{margin:12px 0 0}
@media(max-width:1150px){#homeContent:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.relation-inputs{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.relation-inputs button{grid-column:1/-1}}
@media(max-width:820px){#homeContent:not([hidden]){grid-template-columns:minmax(0,1fr);gap:16px}.network-scroll{max-width:100%}.relation-inputs button{grid-column:1/-1}.biography-read-dialog .biography-text{font-size:17px}}

/* V2.10: marker toggles replace seat labels; IDs are bold only when nonempty. */
.slot-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:4px;min-height:28px;margin-bottom:7px}
.slot-identity{flex:1 1 100%;display:flex;align-items:center;gap:6px;min-width:0}
.slot-marks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:1;min-width:0}
.slot-marks .mark{font:400 15px/1.2 var(--font);min-height:28px;min-width:0;padding:4px 2px;border-radius:3px;white-space:nowrap;text-align:center}
.slot-marks .mark[aria-pressed=true]{font-weight:700}
.slot-meta .field-state:not(:empty){flex:1 1 100%;text-align:right;min-height:16px}
.slot-line{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.slot-line>.slot-player{font-weight:400}
.slot-line>.slot-player.has-id{font-weight:700}
.slot-line>.slot-player::placeholder{font-weight:400}
body.archived .slot-marks{display:flex;gap:5px;flex-wrap:wrap}
body.archived .slot-marks .mark{padding-inline:8px}

/* V2.11 · 阳光浅色主题：奶油白、珊瑚粉、薄荷绿、晴空蓝 */
:root{color-scheme:light;--font:"Microsoft YaHei","微软雅黑","PingFang SC","Noto Sans CJK SC","Source Han Sans SC",sans-serif;--heading:var(--font);--text:#34465a;--muted:#657787;--line:#dbe7e5;--accent:#528c85;--shade:0;--panel:1;--surface:1}
*{font-family:var(--font)!important}body{background:#fff8ec;color:var(--text);font-size:16px;line-height:1.6}body .page-background{background:linear-gradient(135deg,#fff3de,#fef0f4 42%,#eaf8f5 75%,#e8f4ff)}.page-background video{opacity:.22;filter:brightness(1.25) saturate(.8)}.background-shade{background:linear-gradient(120deg,#fff9ebba,#fff3f5bb 45%,#edfaffbc)!important;opacity:1!important}
a{color:#387b83}button,input,select,textarea{background:#fff;color:var(--text);border:1px solid #cddfdf;border-radius:10px;box-shadow:none}button{font-weight:600;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#e9f6f4;color:#2b6968;border-color:#91c9bd}button:disabled{opacity:.45}input::placeholder,textarea::placeholder{color:#81909a}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid #8cc9bc;outline-offset:2px;border-color:#6ca99d}select option,select optgroup{background:#fff;color:#34465a}button.primary{background:#c8eddf;border-color:#9cd6c3;color:#265f50;border-radius:11px}button.primary:hover{background:#ace2cd;color:#265f50}button.danger,#finishBtn{background:#ffebe9;color:#a34e58;border-color:#f1c6c6;border-radius:11px}button.danger:hover:not(:disabled),#finishBtn:hover:not(:disabled){background:#ffdadc;color:#923c4a;border-color:#edb2b7}
.masthead{background:#fffdf8f5;border-bottom:1px solid #f1e0d8;box-shadow:0 4px 20px #b89d8420;backdrop-filter:blur(10px);min-height:74px}.brand{color:#d37688;letter-spacing:.035em;font-weight:800;font-size:30px}.brand-logo{border:2px solid #f2c0c9;box-shadow:0 0 0 4px #fff0f1}.masthead nav a,.masthead nav button{color:#536d79;letter-spacing:0;font-size:17px;font-weight:600}.masthead nav a:hover,.masthead nav button:hover,.masthead nav .active{color:#be6076;border-bottom-color:#e6a3b0;background:transparent}.round-select label{color:#536d79}.round-select select{background:#fffdf9;border-color:#e0d7cd}.team-switch{padding-block:20px}.bgm-player{background:#fff1f3;border-color:#f2cbd2;color:#884e66;border-radius:24px;padding:5px 10px;gap:7px}.bgm-toggle,.bgm-next{border-radius:50%;background:#fff9fa;border-color:#e9b8c4;color:#b9627e;box-shadow:none}.bgm-toggle.playing{background:#f6c8d4;border-color:#e3a8b9;box-shadow:none}.bgm-title{color:#94475e;font-size:15px}.bgm-status{color:#805b6c;font-size:11px}#bgmVolume{accent-color:#c97e99}.bgm-next:hover,.bgm-toggle:hover{color:#a44c6b;background:#fbe0e7}
.panel,.chronicle{background:#fffefaee;border:1px solid #e6e8e3;border-radius:20px;box-shadow:0 8px 26px #8e9a9a18;backdrop-filter:blur(5px)}.roundbar,.sectionhead,.roster-tools{border-color:#e4eeeb}.roundbar h2,.sectionhead h2{color:#375b70;font-size:26px;letter-spacing:0;font-weight:750}.sectionhead h2::before{background:#91cdbb;border-radius:4px}.title-line input,#roundTitle{background:#f4f9fc;color:#375b70;border:1px solid #dbe9f1;border-left:4px solid #9ac7e1;border-radius:12px;font-weight:700}.clock strong,.clock span,.clock small,.total b,.total span{color:#506c83}.stats #roles{background:#edf8f1;color:#427c64;border:1px solid #d3eadc;border-radius:12px}.stats .progress,.progress{display:flex;flex-wrap:nowrap;align-items:center;gap:4px;width:max-content}.progress i,.stats .progress i{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#e2e8ec;box-shadow:none}.progress i.filled,.stats .progress i.filled{background:#79c5a4;box-shadow:none}#search{background:#fff;border-color:#d4e4e8}.tablewrap{scrollbar-color:#aacbc5 #f3f9f6}.roster-grid{grid-template-columns:repeat(var(--cols,5),minmax(340px,1fr));min-width:calc(var(--cols,5)*340px + (var(--cols,5) - 1)*10px)}.party-head{background:#eaf5fa;border:1px solid #d3e7f1;border-top:3px solid #a5cee3;border-radius:12px;color:#3b6b86;padding:8px 12px;min-height:42px}.team-column:nth-child(2n) .party-head{background:#f0f8ec;border-color:#d8e9d4;border-top-color:#afd4a6;color:#527b58}.team-column:nth-child(3n) .party-head{background:#fff1ea;border-color:#f6ded2;border-top-color:#efbca3;color:#9b6855}.party-head b{font-size:18px;letter-spacing:0}.party-head small{color:inherit;font-size:14px}
.slot,body.archived .slot{position:relative;padding:7px 9px 8px;min-height:78px;background:#fff;border:1px solid #dce6e6;border-radius:12px;box-shadow:inset 3px 0 color-mix(in srgb,var(--school) 70%,#b8d6cb)}.slot.filled{background:linear-gradient(105deg,color-mix(in srgb,var(--school) 9%,#fff),#fff);border-color:color-mix(in srgb,var(--school) 38%,#e1e8e5)}.slot-meta{display:flex;min-height:22px;align-items:center;gap:3px;margin:0 0 4px;padding-right:24px}.slot-identity{flex:1 1 auto;min-width:0;gap:4px;justify-content:space-between}.slot-icon{width:20px;height:20px;flex:none;color:#597a8c}.slot-icon[hidden]{display:none!important}.slot-marks,body.archived .slot-marks{margin-left:auto;display:flex;flex:0 0 auto;gap:3px;align-items:center;justify-content:flex-end}.slot-marks .mark,body.archived .slot-marks .mark{width:21px;min-width:21px;min-height:21px;height:21px;display:grid;place-items:center;padding:0;border-radius:6px;font-size:12px;line-height:1;color:#748392;background:#f7fafb;border:1px solid #dae5e8;box-shadow:none}.slot-marks .mark[data-bit="8"]:not([aria-pressed=true]){color:#a96970}.slot-marks .mark[data-bit="2"][aria-pressed=true]{background:#ffe6aa;border-color:#edc769;color:#916824}.slot-marks .mark[data-bit="4"][aria-pressed=true]{background:#ffd5e0;border-color:#edb0c0;color:#a74867}.slot-marks .mark[data-bit="1"][aria-pressed=true]{background:#e4d9f6;border-color:#c6b3e6;color:#6d5198}.slot-marks .mark[data-bit="8"][aria-pressed=true]{background:#fbd0d3;border-color:#e9a1a8;color:#a63c4b}.slot-meta .field-state:not(:empty){flex:0 1 auto;font-size:11px;white-space:nowrap;color:#b55858;min-height:0}.slot-line{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:5px}.slot-line>input,.slot-line>select{height:35px;background:#fff;color:#34465a;border:1px solid #d3e2e4;border-radius:7px;font-size:15px;padding:5px 6px}.slot-line>select{padding-inline:3px;font-size:14px}.slot-line>input:disabled,.slot-line>select:disabled{color:#34465a}.slot-line>.slot-player::placeholder{color:#81909a}.slot-line>.slot-player.has-id{font-weight:700}.slot-note::placeholder{color:transparent}.note-toggle{position:absolute;right:9px;top:7px;width:21px;height:21px;display:grid;place-items:center;padding:0;border:1px solid #d5e4e4;border-radius:6px;font-size:15px;line-height:1;background:#f7fbfa;color:#718b92}.note-toggle.has-note{color:#a14d75;background:#fce7ee;border-color:#eebdce}.note-wrap{display:none;width:100%;min-width:0;margin-top:6px}.slot.note-open .note-wrap,.note-zone:focus-within .note-wrap{display:block}.slot textarea.slot-note,body.archived .slot textarea.slot-note{font-size:14px;line-height:1.5;min-height:60px;height:60px;padding:7px 9px;resize:vertical;background:#fffdf7;color:#4d5965;border:1px solid #eadfcc;border-radius:9px}.archived .note-wrap:has(textarea:placeholder-shown){display:none}.archived .note-zone[hidden]{display:none!important}@media(hover:hover){.slot:hover .note-wrap{display:block}.slot:hover .note-toggle{border-color:#b9d7cf}}
#homeContent:not([hidden]){align-items:stretch;margin-top:clamp(12px,3vh,36px);gap:20px}#homeContent>.chronicle{display:flex;flex-direction:column;min-height:680px;height:auto;padding:clamp(16px,2vw,27px);border-radius:20px}#homeContent .chronicle-head{border-color:#e7eeeb;margin-bottom:12px;padding-bottom:14px}#homeContent .chronicle-head h1,#homeContent .chronicle-head h2{color:#4b6e83;font-size:29px;font-weight:750;letter-spacing:0}.chronicle-add{background:#fce7ed;color:#a75572;border:1px solid #efc6d3;border-radius:10px}.chronicle-row{background:#f9fbfe;border:1px solid #e0eaf2;border-left:3px solid #b7d7eb;border-radius:12px;padding:9px 12px}.chronicle-row-head{color:#708696;font-size:13px;margin-bottom:5px}.chronicle-delete{color:#ad6576;background:transparent;border-color:transparent;font-size:13px}.chronicle-text{min-height:62px;background:#fff;color:#394e61;border:1px solid #dfeaf0;border-radius:8px;font-size:16px;line-height:1.6}.chronicle-text::placeholder{color:#98a7b0}.chronicle-text:focus{border-color:#91c9bd;outline:2px solid #d2eae4}.chronicle-empty,.bio-intro{color:#718594;letter-spacing:0}.chronicle-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:auto;padding-top:20px;color:#607988;font-size:14px}.chronicle-pager button{font-size:14px;border-radius:10px}.network-scroll{background:radial-gradient(ellipse at 50% 25%,#fff8e8,#f6fbff 65%,#edf8f5);border:1px solid #dce9e6;border-radius:16px;scrollbar-color:#b4d8d0 #f5faf8}.network-edge{stroke:#88b5b6;stroke-width:1.6;stroke-opacity:.55}.network-edge.shield-edge{stroke:#cba0c7;stroke-opacity:.24;stroke-dasharray:4 3}.network-edge.edge-active{stroke:#cd7295;stroke-width:3;stroke-opacity:1}.network-edge.edge-muted{stroke-opacity:.055}.network-node rect{fill:#e7f4fc;stroke:#8fc0dd;stroke-width:1.5}.network-node:nth-child(3n) rect{fill:#e6f6ea;stroke:#a7d3b3}.network-node:nth-child(3n+1) rect{fill:#fce8ee;stroke:#dfa9bd}.network-node.shield-node rect{fill:#f6e3fb;stroke:#bd88cd;stroke-width:2}.network-node text{fill:#3c5c71;font-weight:700;font-size:20px}.network-node.node-active rect,.network-node:focus rect{fill:#ffe3c0;stroke:#d89a64;stroke-width:2.7}.network-count,.relation-message{color:#68868c}.relation-form{border-color:#dfebe7;margin-top:auto;padding-top:15px}.relation-form h3,.biography-name{color:#50798a}.biography-row{background:#f4f9fc;border-color:#d9e8ee;border-radius:12px}.biography-text{background:#fff;color:#394e61;border-color:#d8e6eb;border-radius:9px}.biography-text::placeholder{color:#879da6}
.guide-content,.guide-content:fullscreen{background:#f8fcff;border-color:#e1edf2;border-radius:14px}.guide-placeholder,.credit,.credit a{color:#617c8d}.guide-tabs button[aria-selected=true]{background:#d9eef8;color:#386a84;border-color:#a9cfdf}.drop-card,.drop-card.wage-card{background:#f7fbff;border-color:#dce9f1;border-radius:13px}.drop-card.wage-card{background:#fff7ed;border-color:#f2dfc5}.drop-card h3{color:#4b6e83;font-size:17px}.drop-upload{color:#637f8c;border-color:#b5d7db;background:#eff8f8;border-radius:9px}.drop-upload:hover{background:#e0f2ed}.image-item img{background:#edf2f6}.image-item button{background:#fff9f9;color:#ab5b70;border-color:#edcbd4}.error,.field-state{color:#b35861}.muted,.round-actions span{color:#718594}dialog{background:#fffefa;color:#34465a;border:1px solid #e5e6e3;border-radius:20px;box-shadow:0 15px 65px #57717e30}dialog::backdrop{background:#6c899455}dialog label{color:#567383}.modalhead h2{color:#456c81}.history-item{background:#f4f9fc;border-color:#deebf2;border-radius:10px}.history-item strong{color:#456c81}.history-item:hover{background:#e9f6f4;border-color:#b1d8cc}#toast{background:#fffdf6;border:1px solid #eddcc1;color:#725a50;border-radius:12px;box-shadow:0 5px 25px #7b8c8c25}
@media(max-width:820px){.masthead{min-height:0}.brand{font-size:23px}.masthead nav a,.masthead nav button{font-size:15px}.bgm-title{font-size:13px}.bgm-player{gap:3px;padding:4px 6px}.bgm-status{font-size:10px}.team-switch{padding:12px 10px}.round-select label{font-size:17px}#homeContent>.chronicle{min-height:0}.chronicle-pager{margin-top:12px}.relation-form{margin-top:10px}.roundbar h2,.sectionhead h2{font-size:23px}#homeContent .chronicle-head h1,#homeContent .chronicle-head h2{font-size:25px}.roster-grid{min-width:calc(var(--cols,5)*340px + (var(--cols,5) - 1)*10px)}.stats .progress i{flex-basis:6px;width:6px;height:6px}.stats .progress{gap:3px}}

.brand{text-shadow:none}.masthead nav a[aria-disabled=true]:hover{color:#536d79}.note-wrap[hidden],.chronicle-row[hidden]{display:none!important}.bgm-info{min-width:0}.network-node.shield-node.node-active rect,.network-node.shield-node:focus rect{fill:#ffe3c0;stroke:#d89a64}

.slot-marks .mark svg{width:14px;height:14px;display:block;pointer-events:none}.slot-marks .mark:disabled[aria-pressed=false]{display:none} .note-toggle{touch-action:manipulation}

/* V2.14: keep both names and both relation actions on one row at every width. */
.relation-form{min-width:0}
.relation-inputs{grid-template-columns:minmax(76px,1fr) auto minmax(76px,1fr) max-content;gap:6px;align-items:center;overflow-x:auto;padding:3px 2px 5px;min-width:0}
.relation-inputs input{height:36px;min-width:0;font-size:14px;padding:5px 6px}
.relation-actions{grid-column:auto;display:flex;flex-wrap:nowrap;align-items:center;gap:5px}
.relation-inputs .relation-actions button{grid-column:auto;flex:none;min-width:0;min-height:36px;height:36px;padding:5px 8px;font-size:13px;line-height:1.3;white-space:nowrap}
@media(max-width:1150px){.relation-inputs{gap:4px}.relation-actions{gap:4px}.relation-inputs .relation-actions button{padding-inline:6px}}
.relation-remove{background:#fff0f3;color:#a34e68;border:1px solid #e8b9c6;border-radius:10px}
.relation-remove:hover:not(:disabled){background:#f9dce5;border-color:#d99aad}

/* V2.15: 1:2 home columns, shared content and control-row baselines. */
#homeContent .chronicle-body{min-width:0;display:flex;flex-direction:column}
#homeContent .network-body{display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0}
#homeContent .network-meta{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px}
#homeContent .network-meta .bio-intro,#homeContent .network-meta .network-count{margin:0;font-size:14px}
#homeContent .network-scroll{position:relative;min-height:340px;flex:1 1 auto;overflow:auto}
#homeContent #biographyNetwork{position:absolute;top:0;left:0;width:100%;height:auto;min-height:100%;display:block}
#homeContent .relation-form{margin:0;padding:0;border-top:0;gap:8px}
#homeContent .relation-message{min-height:1.5em;overflow-wrap:anywhere;font-size:13px}
#homeContent .chronicle-pager{padding:0;gap:8px;min-width:0}
#homeContent .chronicle-pager button{height:36px;white-space:nowrap;padding:5px 8px;line-height:1.3}
#homeContent .relation-inputs{padding:0;min-height:36px}
@media(min-width:821px){
 #homeContent:not([hidden]){grid-template-columns:minmax(0,1fr) minmax(0,2fr);max-width:1920px;column-gap:clamp(12px,1.4vw,24px);align-items:stretch}
 #homeContent>.chronicle{min-height:0;padding:clamp(12px,1.4vw,25px)}
 #homeContent .chronicle-head{margin:0;min-height:58px}
 #homeContent .chronicle-head h1,#homeContent .chronicle-head h2{font-size:clamp(22px,2vw,29px)}
 #homeContent .chronicle-add{font-size:clamp(12px,1.1vw,16px);padding-inline:8px}
 #homeContent #chronicleList{flex:1;grid-auto-rows:auto;align-content:stretch}
 #homeContent .chronicle-row{display:flex;flex-direction:column}
 #homeContent .chronicle-text{flex:1 1 auto}
 #homeContent .network-body{flex:1 1 auto}
 #homeContent .chronicle-body{flex:1 1 auto}
 #homeContent .chronicle-pager{margin-top:auto}
 /* Shared grid rows make both bottom edges and button centers exact, even after pagination or resizing a note. */
 @supports(grid-template-rows:subgrid){
  #homeContent:not([hidden]){grid-template-rows:auto minmax(0,auto) auto auto auto;row-gap:10px}
  #homeContent>.chronicle{display:grid;grid-row:1/6;grid-template-rows:subgrid;row-gap:10px;align-content:stretch}
  #homeContent>.chronicle:not(.biographies){grid-column:1}
  #homeContent>.biographies{grid-column:2}
  #homeContent .chronicle-head{grid-row:1}
  #homeContent .chronicle-body,#homeContent .network-body{grid-row:2;min-height:0}
  #homeContent .chronicle-pager{grid-row:4;align-self:center;margin:0}
  #homeContent .relation-form{display:grid;grid-row:3/6;grid-template-rows:subgrid;row-gap:10px}
  #homeContent .relation-form h3{grid-row:1}
  #homeContent .relation-inputs{grid-row:2;align-self:center}
  #homeContent .relation-message{grid-row:3}
 }
}
@media(max-width:820px){
 #homeContent:not([hidden]){grid-template-columns:minmax(0,1fr)}
 #homeContent .network-scroll{min-height:clamp(360px,75vw,600px)}
 #homeContent .chronicle-pager{margin-top:12px}
 #homeContent .relation-form{margin-top:12px}
}

/* V2.16: delete person, full-area network, smaller labels, no relation heading. */
#homeContent .biography-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}
#homeContent .biography-head-actions button{white-space:nowrap;font-size:clamp(12px,1.1vw,16px);padding:6px 8px}
#homeContent #biographyNetwork{width:100%;height:100%;min-height:0;display:block}
.network-node text{font-size:18px}
#biographyDeleteDialog select{width:100%;min-height:40px}
@media(min-width:821px){@supports(grid-template-rows:subgrid){
 #homeContent:not([hidden]){grid-template-rows:auto minmax(0,auto) auto auto}
 #homeContent>.chronicle{grid-row:1/5}
 #homeContent .chronicle-pager{grid-row:3}
 #homeContent .relation-form{grid-row:3/5}
 #homeContent .relation-inputs{grid-row:1}
 #homeContent .relation-message{grid-row:2}
}}
