@font-face{font-family:'Google Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/google-sans-500-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Google Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/google-sans-500-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Google Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/google-sans-600-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Google Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/google-sans-600-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/google-sans-text-400-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/google-sans-text-400-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/google-sans-text-500-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/google-sans-text-500-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/google-sans-text-700-1.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Google Sans Text';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/google-sans-text-700-2.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{
  color-scheme:dark;
  --bg:#000; --s1:#0A090C; --s2:#111015; --s3:#18161D;
  --line:#16141A; --edge:#232027; --edge-2:#302C36; --edge-3:#48424F;
  --t1:#EFE9F4; --t2:#A9A2B1; --t3:#6E6877;
  --pri:#BB86FC; --on-pri:#431A6B; --card:#0B0A0E; --row-hover:#0F0E12; --row-on:#131217; --fill:#19181D; --fill-hi:#222127; --tonal:#2A2830;
  --inv:#E9E0EA; --on-inv:#332F37; --inv-pri:#6E43A8;
  --err:#FFB4AB; --ok:#9BE3B5;
  --dots:radial-gradient(circle,rgba(255,255,255,.075) 1px,transparent 1.2px) 0 0/22px 22px;
  --disp:'Google Sans','Google Sans Text',Roboto,system-ui,sans-serif;
  --body:'Google Sans Text',Roboto,system-ui,sans-serif;
  --ease:cubic-bezier(.2,0,0,1);
  --row:36px; --ws:48%; --lobby:50%;
}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html,body{height:100%}
body{background:var(--bg);color:var(--t1);font:14px/1.45 var(--body);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input{font:inherit;color:inherit}
svg.i{width:18px;height:18px;fill:currentColor;flex:none}
kbd{font:500 12px/1 var(--body);color:var(--t2);white-space:nowrap}

.app{position:relative;z-index:1;height:100dvh;display:grid;grid-template-rows:56px minmax(0,1fr) 32px}
/* dots only in the empty margins; header, cards and hint bar stay solid */
.backdrop{position:fixed;inset:56px 0 32px;z-index:0;pointer-events:none;background:var(--dots)}

/* scrollbars */
.scroll::-webkit-scrollbar,.pp-list::-webkit-scrollbar,.dd::-webkit-scrollbar{width:10px;height:10px}
.scroll::-webkit-scrollbar-track,.pp-list::-webkit-scrollbar-track,.dd::-webkit-scrollbar-track{background:transparent}
.scroll::-webkit-scrollbar-track{margin:36px 0 6px}
.scroll::-webkit-scrollbar-thumb,.pp-list::-webkit-scrollbar-thumb,.dd::-webkit-scrollbar-thumb{background-color:transparent;border:3px solid transparent;
  border-radius:5px;background-clip:padding-box}
.scroll:hover::-webkit-scrollbar-thumb,.pp-list:hover::-webkit-scrollbar-thumb,.dd:hover::-webkit-scrollbar-thumb{background-color:#34323B}
.scroll::-webkit-scrollbar-thumb:hover,.pp-list::-webkit-scrollbar-thumb:hover,.dd::-webkit-scrollbar-thumb:hover{background-color:#4A4752}
::-webkit-scrollbar-button,::-webkit-scrollbar-corner{display:none;background:transparent}
@supports not selector(::-webkit-scrollbar){.scroll,.pp-list,.dd{scrollbar-width:thin;scrollbar-color:#34323B transparent}}

/* header */
.top{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,480px) minmax(0,1fr);align-items:center;gap:20px;padding:0 20px;
  border-bottom:1px solid var(--edge);background:var(--bg)}
.who{display:flex;align-items:center;gap:12px;min-width:0}
.who>div{min-width:0}
.logo{width:26px;height:26px;flex:none}
.t1{font:600 15px/1.25 var(--disp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.t2{display:inline-flex;align-items:center;gap:4px;font:500 12.5px/1.3 var(--disp);color:var(--t3);margin:1px 0 0 -6px;padding:1px 6px;border-radius:6px}
.t2:not(:disabled):hover,.t2.on{background:var(--s2);color:var(--t2)}
.t2:disabled{cursor:default}
.t2 svg{width:14px;height:14px;fill:currentColor}
.t2 .x{color:var(--t2)}
.mpop{position:fixed;z-index:45;width:260px;background:var(--s1);border:1px solid var(--edge-2);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.55);padding:16px}
.mpop label{display:block;font:500 12px var(--disp);color:var(--t3);margin-bottom:6px}
.seg{display:flex;border:1px solid var(--edge-2);border-radius:16px;overflow:hidden}
.seg button{flex:1;height:30px;font:500 13px var(--body);color:var(--t2);border-left:1px solid var(--edge-2)}
.seg button:first-child{border-left:0}
.seg button:hover{background:var(--s2)}
.seg button.on{background:var(--tonal);color:var(--t1)}
.seg button:focus-visible{outline:0;box-shadow:inset 0 0 0 2px var(--pri)}
.mpop .row{display:flex;justify-content:flex-end;gap:2px;margin-top:12px}
.acts{display:flex;justify-content:flex-end;align-items:center;gap:10px}

.finder-wrap{position:relative}
.finder{display:flex;align-items:center;gap:10px;height:38px;padding:0 14px;border-radius:19px;background:var(--fill);
  border:1px solid transparent;transition:border-color .15s,background .15s}
.finder:hover{background:var(--fill-hi)}
.finder:focus-within{background:var(--fill-hi);border-color:#57515F}
.finder .i{color:var(--t3)}
.finder input{flex:1;min-width:0;height:100%;background:none;border:0;outline:0}
.finder input::placeholder{color:var(--t3)}

.dd{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;background:var(--s2);border:1px solid var(--edge);border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.55);padding:6px;max-height:min(60vh,360px);overflow:auto}
.opt{display:flex;align-items:center;gap:12px;height:38px;padding:0 10px;border-radius:6px;cursor:pointer}
.opt .nm{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.opt .tg{color:var(--t3);font-size:12.5px}
.opt .why{margin-left:auto;color:var(--t3);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46%}
.opt .why b{color:var(--t2);font-weight:500}
.opt.hi{background:var(--fill-hi)}
.opt.done .nm{color:var(--t2)}
.dd-empty{padding:10px 12px;color:var(--t2);line-height:1.5}
.dd-empty small{display:block;color:var(--t3);margin-top:2px}

.btn-ghost{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:18px;border:1px solid var(--edge-2);
  color:var(--t2);font:500 13.5px var(--disp);transition:background .15s,border-color .15s,color .15s}
.btn-ghost:hover{border-color:var(--edge-3);color:var(--t1)}
.btn-ghost.on{background:var(--tonal);color:var(--t1);border-color:transparent}
.btn-ghost.icon{width:36px;padding:0;justify-content:center}
.btn-ghost:disabled{opacity:.38;cursor:default}
.btn-ghost:disabled:hover{border-color:var(--edge-2);color:var(--t2)}
.pub{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;height:36px;padding:0 18px;border-radius:18px;background:var(--pri);color:var(--on-pri);
  font:600 14px var(--disp);transition:opacity .15s,transform .12s var(--ease),filter .15s}
.pub:not(:disabled):hover{filter:brightness(1.06)}
.pub:disabled{background:var(--s3);color:var(--t3);cursor:default}
.pub.done,.pub.done:disabled{background:transparent;border-color:var(--edge-2);color:var(--t2)}
.pub.done svg{width:16px;height:16px;fill:var(--ok)}
.pub:not(:disabled):active{transform:scale(.97)}
.pub-label{display:inline-flex;align-items:center;gap:6px}
.pub .spin{width:16px;height:16px;border-radius:50%;border:2px solid rgba(67,26,107,.3);border-top-color:var(--on-pri);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* main */
.main{min-height:0;display:flex}
.center{flex:1;min-width:0;min-height:0;display:flex;justify-content:center;gap:20px;padding:20px 20px 0}
.sheet{flex:0 1 640px;min-width:0;min-height:0;display:flex;flex-direction:column;container-type:inline-size}
/* a tight table keeps the total and drops the place/kill split */
@container (max-width:600px){.c-pts .pl,.c-pts .kl{display:none!important}.c-pts{width:60px}}
.scroll{min-height:0;overflow:auto;background:var(--card);border-radius:12px;margin-bottom:16px}
table{width:100%;border-collapse:separate;border-spacing:0}
thead th{position:sticky;top:0;z-index:2;background:var(--card);height:34px;padding:0 12px;text-align:left;
  font:500 12px var(--disp);color:var(--t3);border-bottom:1px solid var(--edge)}
thead th.n{text-align:center}
.sort{display:inline-flex;align-items:center;gap:4px;height:26px;padding:0 8px;border-radius:6px;color:var(--t3);font:500 12px var(--disp)}
.sort:hover{background:var(--s2);color:var(--t2)}
.sort.on{color:var(--t1)}
.sort svg{width:14px;height:14px;fill:currentColor}
tbody td{height:var(--row);padding:0 12px;border-bottom:1px solid var(--line);background:transparent;transition:background .15s}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:var(--row-hover)}
.c-slot{width:52px;text-align:right;padding-right:14px!important}
.c-num{width:80px;text-align:center}
.c-pts{width:120px;text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums;padding:0 6px!important}
td.c-pts{background:rgba(255,255,255,.022)!important;cursor:default}
thead th.c-pts{background:#101014}
.c-pts .pl,.c-pts .kl,.c-pts .tot{display:inline-block;width:34px;text-align:center}
.c-pts .pl,.c-pts .kl{color:var(--t2);font:400 13px var(--body)}
.c-pts .tot{width:40px;font:600 14px var(--body);color:var(--t1)}
thead .c-pts .pl,thead .c-pts .kl{font:500 11.5px var(--disp);color:var(--t3)}
thead .c-pts .tot{font:inherit}
thead .c-pts .sort{padding:0;gap:2px}
tr.split td{box-shadow:inset 0 1px 0 var(--edge-3)}
.scroll.scrolled thead th{box-shadow:0 1px 0 var(--edge),0 8px 12px -10px rgba(0,0,0,.9)}
.c-team{cursor:pointer;max-width:0}
.c-team div{display:flex;align-items:baseline;min-width:0}
.c-team .nm{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.c-team .tg{color:var(--t3);font-size:12.5px;margin-left:8px;white-space:nowrap}
tr.on td,tr.on:hover td{background:var(--row-on)}
tr.flash td{animation:flash .7s var(--ease)}
@keyframes flash{from{background:#1A181E}}
.slot{font:500 13px/1 var(--body);font-variant-numeric:tabular-nums;color:var(--t3)}
tr.on .slot{color:var(--t1)}
.opt .slot{display:inline-block;min-width:22px;text-align:right}

/* excel boxes */
.cell{width:56px;height:28px;border:0;border-radius:8px;background:var(--fill);outline:0;text-align:center;
  font:500 14px var(--body);font-variant-numeric:tabular-nums;caret-color:var(--pri);transition:background .12s,box-shadow .12s}
.cell::placeholder{color:var(--t3)}
tbody tr:hover .cell,.pp-list li:hover .cell,.chip:hover .cell{background:var(--fill-hi)}
.cell:focus{background:var(--fill-hi)!important;box-shadow:inset 0 0 0 2px var(--pri)!important}
.cell[data-tentative]{color:var(--t2)}
.cell.err{background:rgba(255,180,171,.12)!important;box-shadow:inset 0 0 0 1px rgba(255,180,171,.55);color:var(--err)}
.cell.err:focus{box-shadow:inset 0 0 0 2px var(--err)!important}
.sent .scroll,.sent .pp,.sent tr.pp-row{opacity:.45;pointer-events:none}

.tip{position:fixed;z-index:30;padding:4px 8px;border-radius:4px;font-size:12px;line-height:16px;max-width:300px;pointer-events:none;
  background:#3A1512;color:#FFDAD6;box-shadow:0 4px 12px rgba(0,0,0,.5)}

/* players */
.pp{flex:0 0 272px;min-height:0;display:flex;flex-direction:column}
.pp-card{background:var(--card);border-radius:12px;padding:16px 12px 14px;display:flex;flex-direction:column}
.pp-head{display:flex;align-items:center;gap:12px;min-width:0;padding:0 8px}
.pp-head>div{min-width:0}
.pp-head .nm{font:600 15px/1.3 var(--disp);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-head .meta{color:var(--t3);font-size:12.5px;margin-top:2px}
/* M3 Expressive "sunny" shape with the team's initial */
.av{position:relative;width:40px;height:40px;flex:none;display:grid;place-items:center}
.av svg{position:absolute;inset:0;width:40px;height:40px;fill:#3A2A52}
.av b{position:relative;font:600 17px/1 var(--disp);color:#EADDFF}
.pp-cols{display:flex;justify-content:space-between;align-items:center;margin:18px 0 4px;padding:0 8px 8px;border-bottom:1px solid var(--edge);
  font:500 12px var(--disp);color:var(--t3)}
.pp-cols span:last-child{min-width:56px;text-align:center}
.pp-total{display:flex;justify-content:space-between;align-items:center;margin-top:8px;padding:12px 8px 0;border-top:1px solid var(--edge);
  font:500 12.5px var(--disp);color:var(--t2)}
.pp-total .pp-sum{min-width:56px;text-align:center;font:600 14px var(--body);font-variant-numeric:tabular-nums;color:var(--t1)}
.pp-sum.over,.chip-sum.over{color:var(--err)!important}
.pp-addrow{position:relative}
.pp-addrow svg{position:absolute;left:8px;top:50%;width:16px;height:16px;margin-top:-8px;fill:var(--t3);pointer-events:none}
.pp-list{list-style:none}
.pp-head+.pp-list{margin-top:14px}
.pp-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;height:36px;padding:0 8px;border-radius:8px}
.pp-list li.pp-addrow{padding:0;margin-top:2px}
.pp-list li:hover{background:var(--row-hover)}
.pp-list li:focus-within{background:var(--row-on)}
.pp-list li.pp-addrow:hover,.pp-list li.pp-addrow:focus-within{background:none}
.pp-list .pn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--t2)}
.pp-list li:focus-within .pn{color:var(--t1)}
.pp-list li.new .pn::after{content:'new';margin-left:8px;font:500 11px var(--disp);color:var(--t3)}
.rm{width:24px;height:24px;flex:none;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;color:var(--t3);visibility:hidden}
.rm svg{width:16px;height:16px;fill:currentColor}
.rm:hover{background:var(--fill-hi);color:var(--t1)}
.pp-list li:hover .rm,.pp-list li:focus-within .rm,.chip:hover .rm,.chip:focus-within .rm{visibility:visible}
.add{height:28px;border:0;outline:0;border-radius:8px;background:transparent;padding:0 10px;color:var(--t1);width:100%;
  transition:border-color .12s,background .12s,box-shadow .12s}
.add::placeholder{color:var(--t3)}
.add:hover{background:var(--row-hover)}
.add:focus{background:var(--fill-hi);box-shadow:inset 0 0 0 2px var(--pri)}
.pp-addrow .add{height:32px;padding-left:30px}
.pp-addrow .add::placeholder{color:var(--t2)}
.add.err{box-shadow:inset 0 0 0 1px var(--err)}

/* players inline under the row */
tr.pp-row td{height:auto;padding:6px 12px 12px 74px;background:var(--row-on);border-bottom:1px solid var(--line)}
tr.pp-row:hover td{background:var(--row-on)}
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chip{display:flex;align-items:center;gap:6px;height:32px;margin-right:10px}
.chip .pn{font-size:13px;color:var(--t2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:130px}
.chip .cell{width:40px;height:28px}
.chip:focus-within .pn{color:var(--t1)}
.chip .add{width:136px;padding-left:28px}
.add-chip{position:relative}
.add-chip svg{position:absolute;left:8px;top:50%;width:16px;height:16px;margin-top:-8px;fill:var(--t3);pointer-events:none}
.chip-sum{margin-left:auto;font-size:12.5px;color:var(--t3);font-variant-numeric:tabular-nums}

/* screenshot workspace */
.ws{flex:0 0 var(--ws);min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--bg);padding:12px 0 12px 12px}
.vsplit{flex:0 0 12px;cursor:col-resize;position:relative}
.vsplit::after{content:'';position:absolute;left:5px;top:12px;bottom:12px;width:2px;border-radius:1px;background:var(--edge);transition:background .15s}
.vsplit:hover::after,.vsplit.drag::after{background:var(--edge-3)}
.pane{min-height:0;display:flex;flex-direction:column;container-type:inline-size;background:var(--card);border:1px solid transparent;border-radius:12px;overflow:hidden;transition:border-color .15s}
.pane.target{border-color:#77707F}
#pane-lobby{flex:0 0 var(--lobby)}
#pane-results{flex:1 1 0}
.pane.shut{flex:0 0 auto!important}
.pane.shut .viewer{display:none}
.ws:has(#pane-results.shut) #pane-lobby{flex:1 1 0}
.ws:has(.pane.shut) .hsplit{pointer-events:none}
.hsplit{flex:0 0 10px;cursor:row-resize;position:relative}
.hsplit::after{content:'';position:absolute;top:4px;left:24px;right:24px;height:2px;border-radius:1px;background:transparent;transition:background .15s}
.hsplit:hover::after,.hsplit.drag::after{background:var(--edge-3)}
.pane-bar{display:flex;align-items:center;gap:4px;height:38px;padding:0 6px 0 12px;border-bottom:1px solid var(--edge);flex:none}
.pane.shut .pane-bar{border-bottom:0}
.pane-title{display:flex;align-items:center;gap:8px;font:600 13px var(--disp);color:var(--t1);height:30px;padding:0 6px;margin-left:-6px;border-radius:6px;white-space:nowrap}
.pane-title:hover{background:var(--s2)}
.pane-title svg{width:16px;height:16px;fill:var(--t3);transition:transform .15s}
.pane.shut .pane-title svg{transform:rotate(-90deg)}
.pane-count{color:var(--t3);font-size:12.5px;font-variant-numeric:tabular-nums;margin:0 2px 0 4px;white-space:nowrap}
/* a narrow pane keeps paging and fit; zoom stays on the wheel */
@container (max-width:400px){.pane-bar .zoom,.pane-bar [data-act=in],.pane-bar [data-act=out]{display:none}}
@container (max-width:280px){.pane-bar [data-act=del]{display:none}}
.pane-bar .sp{flex:1}
.zoom{min-width:44px;text-align:center;color:var(--t3);font-size:12px;font-variant-numeric:tabular-nums}
.ib{width:30px;height:30px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;color:var(--t2)}
.ib:hover{background:var(--s2);color:var(--t1)}
.ib:disabled{opacity:.3;pointer-events:none}
.ib svg{width:18px;height:18px;fill:currentColor}
.viewer{flex:1;min-height:0;position:relative;overflow:hidden;background:#050407;cursor:grab;touch-action:none}
.viewer.pan{cursor:grabbing}
.viewer img{position:absolute;left:0;top:0;transform-origin:0 0;user-select:none;-webkit-user-drag:none;will-change:transform}
.viewer img.ease{transition:transform .12s var(--ease)}
.empty-drop{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:6px;text-align:center;color:var(--t3);font-size:13px;cursor:default;padding:12px}
.pane:not(.has-img) .ib,.pane:not(.has-img) .zoom{display:none}
.drop{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.72)}
.drop div{position:absolute;background:rgba(10,9,12,.92);border:1px solid var(--edge-3);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  color:var(--t2);font:500 16px var(--disp);transition:border-color .12s,background .12s}
.drop div.over{border-color:#8A8393;background:rgba(20,19,23,.96);color:var(--t1)}
.chooser{position:fixed;left:50%;top:84px;transform:translateX(-50%);z-index:55;display:flex;align-items:center;gap:8px;padding:8px 8px 8px 16px;
  background:var(--s1);border:1px solid var(--edge-2);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.55);animation:drop .18s var(--ease)}
@keyframes drop{from{opacity:0;transform:translate(-50%,-6px)}}
.chooser span{color:var(--t2);font-size:13.5px;margin-right:6px}
.chooser button{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:6px;border:1px solid var(--edge-2);font:500 13.5px var(--disp)}
.chooser button:hover{border-color:var(--edge-3);background:var(--s2)}

/* hints */
.hints{display:flex;align-items:center;gap:18px;padding:0 20px;border-top:1px solid var(--edge);color:var(--t3);font-size:12px;white-space:nowrap;overflow:hidden}
.hints span{display:inline-flex;align-items:center;gap:6px}
.hints .sp{flex:1}
.hints .say{color:var(--err)}

/* popover + toast */
.pop{position:fixed;z-index:40;width:360px;background:var(--s1);border:1px solid var(--edge-2);border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.55);padding:16px}
.pop h3{font:600 14px var(--disp);margin-bottom:10px}
.pop ul{list-style:none;margin-bottom:12px}
.pop li{padding:8px 0;border-top:1px solid var(--line);font-size:13px;color:var(--t1);line-height:1.4}
.pop .row{display:flex;justify-content:flex-end;gap:2px}
.btn{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 16px;border-radius:16px;font:500 13.5px var(--disp)}
.btn.fill{background:var(--tonal);color:var(--t1)}
.btn.fill:hover{background:#34323B}
.btn.text{color:var(--t2);padding:0 12px}
.btn.text:hover{background:var(--s2);color:var(--t1)}
.toast{position:fixed;left:50%;bottom:44px;z-index:50;transform:translateX(-50%);display:flex;align-items:center;min-height:44px;padding:0 16px;
  border-radius:4px;background:var(--inv);color:var(--on-inv);font:400 14px/20px var(--body);box-shadow:0 3px 10px rgba(0,0,0,.45);
  animation:snack .25s cubic-bezier(.05,.7,.1,1)}
@keyframes snack{from{opacity:0;transform:translate(-50%,8px)}}
.toast .t-undo{height:36px;margin:0 -8px 0 16px;padding:0 12px;border-radius:18px;color:var(--inv-pri);font:500 14px var(--disp)}
.toast .t-undo:hover{background:rgba(110,67,168,.08)}

/* states */
.state{position:fixed;inset:0;z-index:70;display:flex;align-items:center;justify-content:center;padding:24px;
  background:var(--bg) var(--dots)}
.state .brand{position:absolute;top:16px;left:20px;display:flex;align-items:center;gap:10px;font:600 14px var(--disp);color:var(--t2)}
.state .brand img{width:24px;height:24px}
.state .card{width:min(400px,100%);background:var(--card);border-radius:16px;padding:28px 24px 24px;text-align:center}
.state .badge{position:relative;width:64px;height:64px;margin:0 auto 16px;display:grid;place-items:center}
.state .badge>svg:first-child{position:absolute;inset:0;width:64px;height:64px;fill:#3A2A52}
.state .badge>svg:last-child{position:relative;width:28px;height:28px;fill:#EADDFF}
.state h1{font:600 20px/1.3 var(--disp)}
.state .sub{color:var(--t3);font-size:13px;margin-top:4px}
.state .how{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:18px 0 20px;color:var(--t2);font-size:13px}
.state .how b{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:13px;background:var(--fill);color:var(--t1);font:500 12.5px var(--disp)}
.state .how svg{width:14px;height:14px;fill:var(--t3)}
.state .how .path{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.state form{display:flex;gap:8px}
.state input{flex:1;min-width:0;height:40px;border:0;outline:0;border-radius:20px;background:var(--fill);padding:0 16px;color:var(--t1);font:14px var(--body)}
.state input::placeholder{color:var(--t3)}
.state input:focus{background:var(--fill-hi);box-shadow:inset 0 0 0 2px var(--pri)}
.state input.err{box-shadow:inset 0 0 0 2px var(--err)}
.state form .pub{height:40px;border-radius:20px}
.state .msg{margin-top:8px;color:var(--err);font-size:12.5px}
.state .msg:empty{display:none}
.skel{position:fixed;inset:0;z-index:70;background:var(--bg)}
.sk{display:block;border-radius:6px;background:linear-gradient(90deg,var(--s1) 0%,var(--s2) 50%,var(--s1) 100%);background-size:200% 100%;animation:sh 1.2s linear infinite}
@keyframes sh{to{background-position:-200% 0}}
.sk-top{height:56px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,480px) minmax(0,1fr);gap:20px;align-items:center;padding:0 20px;border-bottom:1px solid var(--edge)}
.sk-who{display:flex;align-items:center;gap:12px}
.sk-logo{width:26px;height:26px}
.sk-l1{width:180px;height:14px}
.sk-l2{width:70px;height:10px;margin-top:6px}
.sk-find{height:38px;border-radius:19px}
.sk-body{max-width:960px;margin:20px auto;padding:0 20px;display:flex;gap:20px}
.sk-rows{flex:1;display:flex;flex-direction:column;gap:14px}
.sk-rows .sk{height:24px}
.sk-panel{width:272px;height:220px;border-radius:12px}

/* screenshots need room beside the table; below that there's no way in */
@media (max-width:1139px){#ws-btn .lbl{display:none}}
@media (max-width:899px){#ws-btn{display:none}}
@media (max-width:720px){
  .top{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:52px 50px;height:auto;padding:0 12px}
  .app{grid-template-rows:auto minmax(0,1fr) 32px}
  .finder-wrap{grid-column:1/-1;grid-row:2;align-self:start}
  .center{padding:12px 12px 0}
  .hints{padding:0 12px;gap:14px}
  .hints .opt-hint,.btn-ghost .lbl{display:none}
  tr.pp-row td{padding-left:12px}
  .c-slot{width:54px}
  .c-num{width:72px}
  .c-pts{width:56px}
  .c-pts .pl,.c-pts .kl{display:none!important}
  .cell{width:50px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
