/* ===== GC Tax AI 决赛评审 · EY 暗色主题（深底浅字 + 标志黄） ===== */
:root{
  --bg:#141414;--card:#1f1f1f;--card2:#262626;--ink:#f2f2f0;--muted:#9a9a9a;--line:#333;--line2:#3d3d3d;
  --yellow:#FFE600;--yellow-d:#e6cf00;--yellow-soft:#2a2a1e;
  --char:#1a1a1a;--char2:#2e2e2e;
  --brand:#FFE600;--brand-ink:#141414;--brand2:#FFE600;
  --ok:#c9c9c6;--warn:#e0a000;--bad:#ff6b6b;--pill:#2a2a2a;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.5}
.wrap{max-width:640px;margin:0 auto;padding:16px}
.wrap.wide{max-width:1120px}
h1{font-size:21px;font-weight:800;letter-spacing:.2px;margin:6px 0 2px}
h2{font-size:16px;font-weight:800;margin:18px 0 8px}
h2::before{content:"";display:inline-block;width:14px;height:14px;background:var(--yellow);margin-right:8px;vertical-align:-1px}
.sub{color:var(--muted);font-size:13px;margin:2px 0 10px}
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px;margin:12px 0}
.btn{display:inline-block;border:1px solid var(--yellow-d);background:var(--yellow);color:var(--brand-ink);border-radius:6px;padding:12px 16px;font-size:16px;font-weight:700;cursor:pointer;text-decoration:none;text-align:center;letter-spacing:.2px}
.btn:hover{background:var(--yellow-d)}
.btn.sec{background:transparent;color:var(--ink);border:1px solid var(--line2)}
.btn.sec:hover{background:var(--card2);border-color:var(--yellow);color:var(--yellow)}
.btn.danger{background:transparent;color:var(--bad);border-color:var(--bad)}
.btn.danger:hover{background:var(--bad);color:#141414}
.btn.gray{background:var(--card2);color:var(--muted);border-color:var(--line2)}
.btn.block{display:block;width:100%}
.btn.big{padding:16px;font-size:18px}
.btn[disabled]{opacity:.4;cursor:not-allowed}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.spread{justify-content:space-between}
.grow{flex:1}
.pill{display:inline-block;background:var(--pill);color:var(--muted);border-radius:4px;padding:2px 9px;font-size:12px;font-weight:700;border:1px solid var(--line2)}
.pill.ok{background:var(--card2);color:var(--ink);border-color:var(--line2)}
.pill.open{background:var(--yellow);color:var(--char);border-color:var(--yellow-d)}
.pill.lock{background:transparent;color:var(--muted);border-color:var(--line2)}
.pill.done{background:var(--char);color:var(--yellow);border-color:#4a4a2a}
.pill.invalid{background:#3a1e1e;color:var(--bad);border-color:#5a2a2a}
.topbar{position:sticky;top:0;z-index:20;background:#000;color:#fff;border-bottom:3px solid var(--yellow);padding:12px 16px;display:flex;align-items:center;gap:10px}
.topbar .who{font-weight:800;color:#fff}
.topbar .btn.gray{background:transparent;color:#fff;border-color:#555}
.topbar a.btn.gray{color:#fff}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.entry-note{border:1px solid #514b1c;border-left:4px solid var(--yellow);background:#211f15;border-radius:8px;padding:12px 14px;margin:12px 0}
.entry-note-title{font-weight:800;color:var(--yellow);margin-bottom:8px}
.entry-note-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.entry-note-grid div{display:flex;flex-direction:column}
.entry-note-grid b{font-size:14px}.entry-note-grid span{font-size:12px;color:var(--muted)}
.identity-mask{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:20px}
.identity-mask[hidden]{display:none}
.identity-dialog{width:min(440px,100%);background:var(--card);border:1px solid #555;border-top:6px solid var(--yellow);border-radius:10px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.5)}
.identity-dialog h2::before{display:none}.identity-dialog h2{font-size:17px;margin:5px 0 16px;color:var(--muted);font-weight:600}
.identity-mark{font-size:12px;color:var(--yellow);font-weight:800;letter-spacing:.14em}
.identity-name{font-size:32px;font-weight:850;line-height:1.1}
.identity-warning{margin-top:14px;padding:12px;background:#2a2618;border:1px solid #514b1c;border-radius:6px;font-size:13px;color:#ddd}
.session-note{display:flex;justify-content:space-between;gap:12px;align-items:center;background:#181818;border:1px solid var(--line);border-left:4px solid var(--yellow);padding:10px 12px;margin:0 0 12px;border-radius:6px}
.session-note b{white-space:nowrap}.session-note span{font-size:12px;color:var(--muted);text-align:right}
.project-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:18px 0 8px}
.project-toolbar .sub{margin-bottom:0}
.view-toggle{display:flex;border:1px solid var(--line2);border-radius:6px;overflow:hidden;flex:none}
.view-toggle button{border:0;border-right:1px solid var(--line2);background:var(--card2);color:var(--muted);padding:7px 12px;font:700 13px inherit;cursor:pointer}
.view-toggle button:last-child{border-right:0}.view-toggle button.on{background:var(--yellow);color:var(--char)}
.project-card{margin:0;cursor:pointer}.project-card:focus-visible,.project-row:focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.project-card-title{font-weight:650;margin-top:8px;font-size:14px;line-height:1.4}
.card-scoreline{font:700 11px ui-monospace,Menlo,Consolas,monospace;color:var(--yellow);margin-top:10px;padding-top:8px;border-top:1px solid var(--line)}
.project-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:8px;max-height:58vh;background:var(--card)}
.project-table{font-size:13px;min-width:760px}.project-table.public{min-width:650px}
.project-table th{text-align:center;top:0;z-index:3;padding:8px 7px}.project-table th small{font-size:10px;color:#d6c400}
.project-table td{text-align:center;padding:10px 7px;background:var(--card)}
.project-table th:first-child,.project-table td:first-child{width:48px;min-width:48px;max-width:48px;padding-left:4px;padding-right:4px}
.project-table th:nth-child(2),.project-table td:nth-child(2){width:168px;min-width:168px;max-width:168px}
.project-table td:nth-child(2){text-align:left;white-space:nowrap;line-height:1.35;overflow:hidden}
.title-marquee{width:100%;overflow:hidden;white-space:nowrap}
.marquee-track{display:flex;width:max-content;align-items:center;font-weight:700}
.marquee-copy{display:none;margin-left:40px}
.title-marquee.is-overflowing .marquee-copy{display:inline}
.title-marquee.is-overflowing .marquee-track{animation:title-marquee 10s linear infinite}
.title-marquee.is-overflowing:hover .marquee-track{animation-play-state:paused}
@keyframes title-marquee{from{transform:translateX(0)}to{transform:translateX(calc(-50% - 20px))}}
.project-table th:first-child,.project-table td:first-child{position:sticky;left:0;z-index:4;background:var(--card)}
.project-table th:nth-child(2),.project-table td:nth-child(2){position:sticky;left:48px;z-index:3;background:var(--card);box-shadow:7px 0 10px -10px #000}
.project-table th:first-child,.project-table th:nth-child(2){z-index:6;background:var(--yellow-soft)}
.project-table tbody tr{cursor:pointer}.project-table tbody tr:hover td{background:var(--card2)}
.project-table tbody tr:hover td:first-child,.project-table tbody tr:hover td:nth-child(2){background:var(--card2)}
.score-chip{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;border-radius:4px;font-weight:800}
.score-chip.scored,.score-chip.yes{background:var(--yellow);color:var(--char)}
.score-chip.no{background:#303030;color:#bbb;border:1px solid #444}.score-chip.empty{color:#666}
.score-btns{display:flex;gap:8px;margin:8px 0}
.score-btns button{flex:1;border:1.5px solid var(--line2);background:var(--card2);border-radius:6px;padding:14px 0;font-size:18px;font-weight:800;cursor:pointer;color:var(--ink)}
.score-btns button.on{background:var(--yellow);border-color:var(--yellow);color:var(--char)}
.anchors{font-size:11px;color:var(--muted);text-align:center}
.field{margin:16px 0;padding-bottom:6px;border-bottom:1px dashed var(--line)}
.field:last-child{border-bottom:none}
.field label{display:block;font-weight:800;margin-bottom:4px}
.field .q{font-size:14px;color:var(--ink);margin:2px 0 10px;line-height:1.55}
.field .hint{font-size:12px;color:var(--muted)}
textarea,select,input[type=text],input[type=password],input[type=number]{width:100%;border:1px solid var(--line2);border-radius:6px;padding:12px;font-size:16px;font-family:inherit;background:var(--card2);color:var(--ink)}
textarea::placeholder,input::placeholder{color:#7a7a7a}
textarea:focus,input:focus,select:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,230,0,.25)}
.qno{display:inline-block;background:var(--yellow);color:var(--char);border-radius:4px;font-size:12px;padding:2px 8px;margin-right:6px;font-weight:800}
.bottom-bar{position:sticky;bottom:0;background:linear-gradient(0deg,var(--bg) 65%,transparent);padding:12px 0 20px;margin-top:8px}
.bar{height:10px;background:var(--card2);border-radius:2px;overflow:hidden;border:1px solid var(--line)}
.bar>i{display:block;height:100%;background:var(--yellow)}
.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,Menlo,Consolas,monospace}
table{width:100%;border-collapse:collapse;font-size:13px}
th,td{border-bottom:1px solid var(--line);padding:9px 6px;text-align:left;white-space:nowrap}
th{color:var(--yellow);font-weight:800;background:var(--yellow-soft);position:sticky;top:0;border-bottom:2px solid var(--yellow)}
td.num{text-align:right}
.scroll-x{overflow-x:auto}
.admin-stats-wrap{width:100%;overflow:hidden;border:1px solid var(--line);border-radius:6px}
.admin-stats-table{width:100%;table-layout:fixed;font-size:11px}
.admin-stats-table th,.admin-stats-table td{padding:8px 4px;overflow:hidden}
.admin-stats-table th{white-space:normal;line-height:1.2;text-align:center;vertical-align:bottom}
.admin-stats-table td{white-space:nowrap;text-overflow:ellipsis}
.admin-stats-table th:first-child,.admin-stats-table td:first-child{width:38px;text-align:center}
.admin-stats-table th:nth-child(2),.admin-stats-table td:nth-child(2){width:138px;text-align:left}
.admin-stats-table td.stats-title{font-weight:650}
.tabs{display:flex;gap:8px;margin:10px 0}
.tabs button{flex:1;border:1px solid var(--line2);background:var(--card2);border-radius:6px;padding:12px;cursor:pointer;font-size:15px;font-weight:700;color:var(--ink)}
.tabs button.on{background:var(--yellow);border-color:var(--yellow);color:var(--char)}
.picked{padding:9px 0;border-bottom:1px solid var(--line)}
.picked input{margin-right:8px}
#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#000;color:var(--yellow);padding:12px 18px;border-radius:6px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.25s;z-index:100;max-width:90%;border:1px solid var(--yellow)}
#toast.show{opacity:1}
.muted{color:var(--muted)}
.center{text-align:center}
.ey-tag{display:inline-flex;align-items:center;gap:6px;font-weight:800;letter-spacing:1px}
.ey-tag::before{content:"EY";background:var(--yellow);color:var(--char);padding:1px 6px;border-radius:3px;font-size:12px}
.clickable{cursor:pointer}
.clickable:hover{background:var(--card2)}
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:50;display:flex;align-items:flex-start;justify-content:center;padding:24px;overflow:auto}
.modal{background:var(--card);border:1px solid var(--line2);border-top:4px solid var(--yellow);border-radius:10px;max-width:880px;width:100%;padding:0 18px 18px;max-height:calc(100vh - 48px);overflow:auto;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.modal h3{margin:2px 0 0;font-size:18px;line-height:1.35;white-space:normal}
.modal .m-head{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin:0 -18px 12px;padding:14px 18px;background:rgba(31,31,31,.98);border-bottom:1px solid var(--line)}
.modal-title{min-width:0}.modal-title>span{display:block;color:var(--yellow);font-size:10px;font-weight:800;letter-spacing:.16em}
.modal-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.modal-action{min-height:36px;padding:7px 12px;font-size:13px;line-height:20px;margin:0}
.modal .close{min-width:64px}
.yes{color:var(--yellow);font-weight:700}
.no{color:var(--muted)}
.rank{font-weight:800;color:var(--yellow)}
@media(max-width:720px){.admin-stats-table{font-size:9px}.admin-stats-table th,.admin-stats-table td{padding:7px 2px}.admin-stats-table th:nth-child(2),.admin-stats-table td:nth-child(2){width:100px}}
@media(max-width:620px){.modal-mask{padding:10px}.modal{max-height:calc(100vh - 20px);padding:0 12px 14px}.modal .m-head{grid-template-columns:1fr;gap:10px;margin:0 -12px 12px;padding:12px}.modal-actions{width:100%}.modal-actions .btn:first-child{flex:1}.modal-action{padding:8px 10px}.modal .close{min-width:72px}}
@media(max-width:520px){.entry-note-grid{grid-template-columns:1fr}.session-note{align-items:flex-start;flex-direction:column}.session-note span{text-align:left}.project-toolbar{align-items:flex-start}.project-toolbar .sub{max-width:210px}.identity-dialog{padding:20px}.project-table th:nth-child(2),.project-table td:nth-child(2){width:145px;min-width:145px;max-width:145px}}
@media(prefers-reduced-motion:reduce){.title-marquee.is-overflowing .marquee-track{animation:none}.title-marquee.is-overflowing .marquee-copy{display:none}.title-marquee{ text-overflow:ellipsis}}
