@font-face {
  font-family: 围坐宋体;
  src: url('/generated/weizuo-serif-bold.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #2d2921;
  --muted: #6c5d47;
  --paper: #efe6d4;
  --card: #fbf5e8;
  --sub: #f4ead6;
  --edge: #d9c39e;
  --green: #0f4c42;
  --red: #b23426;
  --gold: #ffd17a;
  --serif: 围坐宋体, 'Source Han Serif SC', 'Noto Serif SC', 'Songti SC', SimSun, serif;
  --sans: 'Microsoft YaHei UI', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  --paper-grain: repeating-linear-gradient(19deg, #52370a05 0 1px, transparent 1px 5px), repeating-linear-gradient(111deg, #ffffff38 0 1px, transparent 1px 6px);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at 55% 0%, #fff8e568, transparent 60%), var(--paper-grain), var(--paper); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button {
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: linear-gradient(#fff9ec, #f1e2c7);
  color: var(--ink);
  box-shadow: 0 1px 1px #59391312, inset 0 1px #fffa;
  font-weight: 650;
  transition: background .14s, filter .14s, transform .14s;
}
button:hover:not(:disabled) { filter: brightness(.96); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .53; cursor: default; }
button.primary, button.red-button { background: linear-gradient(#176052, var(--green)); border-color: #0c3f35; color: #fff6e4; box-shadow: inset 0 1px #fff2, 0 2px 2px #2836242d; }
button.red-button { background: linear-gradient(#c84d39, var(--red)); border-color: #8f291e; }
button.quiet { border-color: transparent; background: transparent; box-shadow: none; }
button.danger-plain { color: #8b281d; }
button.chosen { color: #123e34; border-color: #91a58d; background: #e1ebd8; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid #97701a;
  outline-offset: 2px;
}
input:not([type=checkbox]), select, textarea {
  min-width: 0;
  min-height: 37px;
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 7px 10px;
  background: #fffaf0;
}
input[type=checkbox] { accent-color: var(--green); margin: 0; width: 17px; height: 17px; }
textarea { width: 100%; resize: vertical; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: #786b55; }
a { color: var(--green); }
.muted, time, .cell-sub { color: var(--muted); }
.break, .ticket-body { overflow-wrap: anywhere; }
.row, .tools, .filters, .check, .form-actions { display: flex; align-items: center; gap: 8px; }
.row.spread { justify-content: space-between; }
.tools, .filters, .form-actions { flex-wrap: wrap; }
.no-wrap { flex-wrap: nowrap; white-space: nowrap; }
.check { white-space: nowrap; cursor: pointer; }
.switch input {
  appearance: none;
  width: 34px;
  height: 19px;
  margin: 0;
  border-radius: 20px;
  background: #ae9c80;
  position: relative;
  cursor: pointer;
}
.switch input::before { content: ''; position: absolute; width: 13px; height: 13px; left: 3px; top: 3px; border-radius: 50%; background: #fffaf0; transition: transform .16s; }
.switch input:checked { background: var(--green); }
.switch input:checked::before { transform: translateX(15px); }
.pill { display: inline-block; border: 1px solid #ddc9a6; background: #f2e6ce; color: #614e33; border-radius: 20px; padding: 3px 9px; font-size: 12px; white-space: nowrap; font-weight: 700; line-height: 1.4; }
.pill.gold { background: #f7e5b9; border-color: #ddbc7c; color: #694c18; }
.pill.green { background: #e8eedc; border-color: #b7c6a5; color: #2b543f; }
.pill.red { background: #f7e3db; border-color: #e1b2a3; color: #873326; }
.empty { padding: 23px 12px; text-align: center; color: var(--muted); }
.field { display: grid; gap: 6px; margin: 0 0 13px; font-size: 13px; font-weight: 700; }
.field :is(input, textarea, select) { font-weight: 400; width: 100%; }
.form-actions { justify-content: flex-end; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
.seal { background: #b23426; color: #fff2d0; font-family: var(--serif); font-weight: 900; text-align: center; }
.brand-seal {
  display: grid; place-content: center; width: 43px; height: 48px; border: 1px solid #d27751; font-size: 16px; line-height: 1.12;
  border-radius: 8px 5px 7px 5px; box-shadow: inset 0 0 0 2px #b23426, inset 0 0 0 3px #fad3a399, 0 2px 6px #150b0b55;
  transform: rotate(-4deg);
}
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at center, #fcf4e2 0, transparent 65%); }
.login-card { width: min(100%, 405px); padding: 36px 36px 32px; background: var(--paper-grain), var(--card); border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 18px 54px #50390c20, inset 0 0 0 5px #f0e6d5; }
.login-card .brand-seal { margin: 0 auto; width: 55px; height: 60px; font-size: 21px; }
.login-card h1 { text-align: center; font-size: 28px; margin: 14px 0 26px; }
.login-card .check { margin: 17px 0; }
.login-card .primary { width: 100%; min-height: 44px; }
.login-error { color: #8b281d; margin-top: 12px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 213px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 7% 4%, #39614c65, transparent 60%), repeating-linear-gradient(135deg, #ffffff08 0 1px, transparent 1px 6px), linear-gradient(156deg, #0d322c, #071e1b 80%); color: #f3e9d6; border-right: 1px solid #395047; padding: 27px 16px 18px; }
.brand { display: flex; align-items: center; gap: 13px; font: 800 21px var(--serif); padding: 3px 8px 23px; border-bottom: 1px solid #b0b68549; white-space: nowrap; }
.sidebar nav { display: grid; gap: 8px; margin-top: 22px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; min-height: 43px; color: #f1e9d6; border: 1px solid transparent; border-radius: 6px; text-decoration: none; font-weight: 700; }
.sidebar nav a i { font-style: normal; width: 19px; text-align: center; color: #cfbb93; font-size: 18px; line-height: 1; }
.sidebar nav a:hover { background: #ffffff12; }
.sidebar nav a[aria-current=page] { color: var(--gold); background: #d6ab5f19; border-color: #ffd17a60; box-shadow: inset 3px 0 #ffd17a; }
.sidebar nav a[aria-current=page] i { color: var(--gold); }
.sidebar-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid #b0b68549; }
.sidebar-foot time { color: #c9c1a7; font-size: 11px; white-space: nowrap; }
.sidebar-foot button { text-align: left; padding: 4px 0; min-height: 30px; background: transparent; border: 0; box-shadow: none; color: #e3d8bd; }
.main { min-width: 0; padding: 28px clamp(18px, 3vw, 44px) 40px; width: 100%; max-width: 1660px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 23px; padding: 0 0 16px; border-bottom: 1px solid var(--edge); }
.topbar h1 { font-size: clamp(25px, 3.3vw, 37px); line-height: 1.2; font-weight: 900; letter-spacing: .018em; }
.topbar .tools { gap: 14px; }
.topbar #refresh span { font-size: 17px; line-height: 0; }
#page > * + * { margin-top: 17px; }
.panel, .kpi {
  min-width: 0; border: 1px solid var(--edge); border-radius: 10px;
  background: linear-gradient(130deg, #fff9edb0, transparent 75%), var(--paper-grain), var(--card);
  box-shadow: 0 2px 0 #9d753b13, 0 5px 17px #5c3a0d0a;
}
.panel { padding: 17px 19px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 9px 18px; flex-wrap: wrap; margin-bottom: 15px; }
.panel-head h2 { font-size: 20px; }
.panel-head .key { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; padding: 16px 13px; }
.kpi h2 { font: 700 12px var(--sans); color: var(--muted); padding-right: 25px; }
.kpi strong { display: block; margin-top: 12px; font: 800 clamp(24px, 3vw, 37px)/1 Georgia, serif; font-variant-numeric: tabular-nums; color: #164238; }
.metric-icon { position: absolute; right: 10px; top: 11px; width: 26px; height: 26px; display: grid; place-items: center; font: 700 15px Georgia, serif; border-radius: 50%; border: 1px solid #ded0ad; background: #f4ead2; color: #5b4b2f; }
.kpi:nth-child(5) strong, .kpi:nth-child(6) strong { color: #9a392e; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.chart { display: grid; grid-template-columns: 33px minmax(0, 1fr); gap: 8px; height: 175px; }
.chart-axis { height: calc(100% - 20px); display: flex; flex-direction: column; justify-content: space-between; text-align: right; color: var(--muted); font: 11px var(--sans); }
.chart-area { min-width: 0; }
.bars { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); height: 100%; gap: 4px; position: relative; }
.bars::before { content: ''; position: absolute; inset: 5px 0 25px; background: repeating-linear-gradient(to bottom, #c7ad7eb0 0 1px, transparent 1px 25%); pointer-events: none; border-bottom: 1px solid #c7ad7eb0; }
.chart-col { display: grid; grid-template-rows: minmax(0,1fr) 20px; align-items: end; position: relative; min-width: 0; }
.chart-col > span { text-align: center; font-size: 10px; color: var(--muted); }
.bar-track { position: relative; height: calc(100% - 10px); align-self: center; }
.bar { position: absolute; bottom: 0; left: 50%; width: 56%; max-width: 45px; height: var(--amount); transform: translateX(-50%); border-radius: 3px 3px 0 0; background: linear-gradient(to top, #247062 var(--completed), #c28d4d var(--completed)); }
.hourly .bar { width: 76%; }
.hourly .chart-col > span { justify-self: start; }
.chart-col:hover::after, .chart-col:focus-visible::after { content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: #123d33; color: #fff6e4; padding: 5px 8px; border-radius: 4px; white-space: nowrap; z-index: 2; font-size: 11px; pointer-events: none; }
.chart-col:first-child::after { left: 0; transform: none; }
.chart-col:last-child::after { left: auto; right: 0; transform: none; }
.key { color: var(--muted); font-size: 11px; white-space: nowrap; }
.key i { display: inline-block; height: 8px; width: 8px; background: #247062; border-radius: 2px; margin-left: 5px; margin-right: 3px; }
.key i:nth-child(2) { background: #c28d4d; }
.ranking { margin: 0; padding: 0; list-style: none; }
.ranking li { display: grid; grid-template-columns: 44px minmax(0, 1fr) 72px 74px; align-items: center; gap: 9px; min-height: 43px; border-bottom: 1px solid #e7d8be; }
.ranking li:last-child { border-bottom: 0; }
.ranking li :nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.ranking .rank-head { min-height: 31px; color: var(--muted); font-size: 12px; }
.rank-no { font: 700 16px Georgia, serif; color: #74502b; padding-left: 5px; }
.rank-name { display: grid; align-items: center; grid-template-columns: minmax(60px, 135px) minmax(10px, 1fr); gap: 10px; }
.rank-track { height: 5px; border-radius: 8px; background: #ebdfc8; }
.rank-track i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg,#235748,#79937a); }
.ranking li:nth-child(2) .rank-track i { background: linear-gradient(90deg,#986729,#cfaa62); }
.periods button, .periods select { min-height: 32px; padding: 5px 9px; }
.filters { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 9px 9px; border-bottom: 1px solid #e8d8ba; }
th { background: #f3e9d4; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
td { font-size: 13px; }
td:not(:first-child) { font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
td button, td input { min-height: 32px !important; padding: 4px 8px; white-space: nowrap; }
td input[type=date] { width: 128px; }
.cell-sub { display: block; margin-top: 2px; }
.count-legend { font-size: 12px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.room-column { background: #f4ead6a8; border: 1px solid #dfcba9; padding: 11px; border-radius: 8px; }
.room-column h3 { font-size: 14px; }
.room-card, .ticket, .question { margin-top: 9px; border: 1px solid #dfcaab; padding: 11px; border-radius: 7px; background: #fff8ea; }
.room-card p { margin: 8px 0; color: var(--muted); overflow-wrap: anywhere; }
.room-card button { min-height: 30px; padding: 4px 7px; }
.code { font: 700 17px Georgia, serif; color: #76532e; letter-spacing: .035em; }
.section-toolbar { display: flex; justify-content: end; align-items: center; gap: 9px; }
.feedback-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.ticket-body { margin: 10px 0 13px; white-space: pre-wrap; line-height: 1.65; }
.ticket time { font-size: 12px; }
.error-group { border: 1px solid #dfcaab; border-radius: 7px; margin-top: 8px; padding: 9px 10px; background: #fff8ea; }
.error-group summary { display: flex; align-items: start; justify-content: space-between; gap: 6px; cursor: pointer; }
.error-group summary b::before { content: '›'; display: inline-block; margin-right: 5px; }
.error-group[open] summary b::before { transform: rotate(90deg); }
.error-group summary small { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.error-row { border-top: 1px solid #e3d2b6; margin-top: 8px; padding-top: 8px; }
.error-row pre { margin-bottom: 0; }
.players-grid { display: grid; grid-template-columns: minmax(240px, .77fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.player-filters { display: grid; grid-template-columns: minmax(90px, 1fr) auto; gap: 7px; margin-bottom: 8px; }
.player-list { max-height: 64vh; overflow: auto; }
.player-row { display: flex; width: 100%; align-items: center; text-align: left; gap: 9px; border: 1px solid transparent; background: transparent; box-shadow: none; border-radius: 5px; }
.player-row.selected, .lex-tab.selected { background: #e7edda; border-color: #94a891; }
.player-label { min-width: 0; flex: 1; }
.player-label small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.player-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.avatar { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 50%; background: #e8dbc1; color: var(--green); font: 800 15px var(--serif); object-fit: cover; }
.profile-hero { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.profile-hero .avatar { width: 57px; height: 57px; font-size: 25px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-stats section { border-radius: 6px; padding: 9px; background: var(--sub); color: var(--muted); font-size: 12px; }
.profile-stats strong { display: block; font: 800 24px Georgia, serif; color: var(--green); margin-top: 4px; }
.profile-panels { display: grid; gap: 13px; }
.partners { display: grid; gap: 7px; }
.partners .row > .muted { margin-left: auto; }
[data-player-meta] > .tools { margin-bottom: 10px; }
.lex-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.lex-tab { display: grid; justify-items: start; min-width: 0; text-align: left; gap: 4px; padding: 12px; }
.lex-tab strong { font: 800 17px var(--serif); }
.lex-tab span { color: var(--muted); font-size: 12px; }
.batch { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 10px; border-radius: 7px; background: var(--sub); margin-bottom: 14px; }
.batch .field { margin: 0; }
.word-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.word-grid > div { background: #f7edd9; border: 1px solid #e2ceb0; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 3px 4px 3px 8px; }
.word-grid > div span { overflow-wrap: anywhere; }
.word-grid button { min-height: 31px; padding: 4px 6px; flex-shrink: 0; font-size: 12px; color: #843a2a; }
.question-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.question { margin: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.question h3 { font-size: 15px; }
.scales, .axis-form, .decoy-form { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 8px; }
.scales span { background: var(--sub); text-align: center; padding: 4px 5px; border-radius: 5px; }
.decoy-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.blocked { margin-top: 15px; color: var(--muted); }
.blocked .word-grid { margin-top: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 13px; }
dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 30px); padding: 19px; border: 1px solid var(--edge); border-radius: 11px; color: var(--ink); background: var(--paper-grain), var(--card); box-shadow: 0 20px 62px #251a0faa; overflow: auto; }
dialog::backdrop { background: #14251fc0; }
dialog.wide { width: min(820px, calc(100% - 24px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--edge); margin-bottom: 13px; padding-bottom: 8px; }
.modal-head h2 { font-size: 21px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
pre { max-width: 100%; overflow: auto; margin: 8px 0 13px; padding: 10px; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--sub); font: 12px/1.55 Consolas, monospace; }
details summary { cursor: pointer; }
[data-ticket-form] { margin-top: 14px; }
.image-modal { width: min(840px, calc(100% - 24px)); }
.lightbox { display: grid; justify-items: center; gap: 7px; }
.lightbox img { max-width: 100%; max-height: 75vh; object-fit: contain; }
.announcement-modal { width: min(972px, calc(100% - 24px)); }
.announcement-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,408px); gap: 18px; align-items: start; }
.announcement-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.announcement-id { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; margin-bottom: 13px; }
.announcement-id .field { margin: 0; }
.preview-well { min-width: 0; overflow: hidden; border-radius: 9px; background: #e7d9bc; box-shadow: inset 0 1px 3px #60411b2b; padding: 9px; }
.phone-preview { width: 390px; margin: auto; padding: 0 18px 16px; min-height: 135px; }
.preview-label { display: block; text-align: center; font-size: 11px; color: #635039; padding-bottom: 9px; }
.notice-banner { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 13px; height: 38px; border-radius: 9px; border: 1px solid #c19a60; box-shadow: 0 3px #261b22, inset 0 0 0 2px #795735; background: linear-gradient(180deg, #755339, #51382c 43%, #2c2029); color: #ffe7bb; font: 700 14px var(--serif); text-align: left; }
.notice-banner span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-banner i { display: block; flex: 0 0 21px; height: 16px; background: #f3cd86; clip-path: polygon(0 32%,27% 32%,62% 3%,62% 91%,31% 66%,38% 98%,28% 98%,17% 65%,0 65%,0 33%,74% 31%,91% 10%,97% 20%,78% 40%,74% 31%,83% 48%,100% 48%,100% 58%,83% 58%,83% 48%,75% 70%,97% 86%,90% 95%,72% 80%,75% 70%); }
.notice-paper { margin: 14px auto 0; border: 1px solid #c9ad87; border-radius: 16px; padding: 0 21px; background: linear-gradient(#f9eed9, #f5e6cb 57%, #ecd9b7); box-shadow: 0 5px 8px #4e2f2550, inset 0 0 0 4px #f6e8cd, inset 0 0 0 5px #e0c49d; }
.notice-paper header { height: 115px; text-align: center; position: relative; padding-top: 15px; }
.notice-paper header::after { content: ''; display: block; height: 1px; background: #c7a372; position: absolute; top: 100px; left: 0; right: 0; }
.notice-seal { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 22px; padding: 2px 10px; border-radius: 4px; border: 1px solid #78382b; background: #a23d35; font: 800 12px/17px var(--serif); color: #fff1d3; }
.notice-paper h3 { font: 800 25px/1.12 var(--serif); color: #3d2520; margin: 7px 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.notice-paper time { color: #785731; font-size: 12px; font-weight: 600; }
.notice-body { height: 69px; max-height: 575px; overflow: auto; scrollbar-width: thin; scrollbar-color: #b59164 transparent; }
.notice-line { height: 23px; line-height: 23px; white-space: pre; font-size: 14px; font-weight: 600; }
.notice-line.heading { font: 800 17px/23px var(--serif); color: #7b342a; }
.notice-paper footer { height: 66px; padding-top: 9px; }
.notice-paper footer button { width: 100%; min-height: 44px; font-family: var(--serif); font-size: 17px; }
.toast { position: fixed; z-index: 6; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: calc(100% - 25px); border-radius: 7px; padding: 10px 14px; background: #0d3e34; color: #fff5de; box-shadow: 0 4px 14px #20190937; }
.toast.is-error { background: #8b281d; }
dialog .dialog-status:not(:empty) { margin-top: 9px; color: var(--green); }
dialog .dialog-status.is-error { color: #8b281d; }
@media (max-width: 1080px) {
  .shell { grid-template-columns: 175px minmax(0, 1fr); }
  .brand { font-size: 18px; }
  .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .word-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 11px 13px 0; border: 0; }
  .brand { padding: 0 0 9px; }
  .brand .brand-seal { width: 31px; height: 33px; font-size: 12px; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 7px 0 8px; }
  .sidebar nav a { white-space: nowrap; gap: 4px; font-size: 12px; padding: 7px 7px; min-height: 37px; }
  .sidebar nav a i { width: 13px; font-size: 13px; }
  .sidebar-foot { position: absolute; right: 13px; top: 9px; padding: 0; border: 0; gap: 0; justify-items: end; }
  .sidebar-foot button { min-height: 24px; padding: 2px; font-size: 12px; }
  .sidebar-foot time { font-size: 10px; }
  .main { padding: 15px 12px 30px; }
  .topbar { margin-bottom: 12px; padding-bottom: 10px; }
  .topbar .tools { gap: 7px; font-size: 12px; }
  .topbar h1 { font-size: 24px; }
  .panel { padding: 11px; }
  .panel-head h2 { font-size: 18px; }
  .kpis { gap: 7px; }
  .kpi { padding: 10px 8px; }
  .kpi h2 { padding-right: 0; }
  .metric-icon { display: none; }
  .chart-grid, .room-grid, .players-grid, .feedback-grid { grid-template-columns: 1fr; gap: 9px; }
  .player-list { max-height: 37vh; }
  .rank-name { grid-template-columns: minmax(72px, 107px) minmax(8px,1fr); gap: 4px; }
  .ranking li { grid-template-columns: 30px minmax(0, 1fr) 47px 53px; gap: 5px; min-height: 37px; }
  .lex-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; }
  .lex-tab { padding: 8px; }
  .lex-tab strong { font-size: 14px; }
  .word-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .announcement-layout, .question-grid { grid-template-columns: minmax(0, 1fr); }
  .announcement-layout { gap: 12px; }
  .preview-well { padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
