:root {
  color-scheme: dark;
  --green: #23fe81;
  --green-soft: #92f8bd;
  --mint: #e2f4e9;
  --ink: #111412;
  --ink-2: #1d211f;
  --panel: #171b19;
  --line: rgba(255,255,255,.1);
  --muted: #8e9993;
  --white: #f7fbf9;
  --warning: #ffd36a;
  --danger: #ff716b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-height: 100vh; background: #f2f7f4; color: #152019; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; padding: 26px 18px; color: var(--white); background: var(--ink); display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin: 0 10px 36px; }
.brand-mark { width: 52px; height: 42px; display: grid; place-items: center; background: var(--green); clip-path: polygon(0 0,100% 0,100% 72%,78% 100%,0 100%); overflow: hidden; }
.brand-mark img { width: 64px; height: 64px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 22px; letter-spacing: -.04em; }
.brand small { color: #87918c; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
nav { display: grid; gap: 6px; }
.nav-item { border: 0; border-radius: 9px; padding: 14px; display: flex; align-items: center; gap: 14px; color: #9da7a2; background: transparent; cursor: pointer; text-align: left; font-size: 15px; font-weight: 650; }
.nav-item span { color: #526059; font: 700 10px/1 monospace; }
.nav-item:hover { color: var(--white); background: rgba(255,255,255,.04); }
.nav-item.active { color: #07130c; background: var(--green); }
.nav-item.active span { color: #1b6038; }
.sidebar-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: #8e9993; font-size: 11px; }
.signal { color: var(--green-soft); font-weight: 700; }
.signal i, #sync-pill i, .green-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(35,254,129,.1); }
.workspace { margin-left: 248px; min-height: 100vh; padding: 32px 38px 70px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.kicker { margin: 0 0 7px; color: #49705a; font: 800 10px/1 "Arial Narrow", sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.kicker.warning { color: #986900; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; line-height: .98; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.top-actions, .inline-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill, .safe-chip, .rank-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid #cad5cf; border-radius: 999px; color: #536159; background: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.pill.demo { border-color: #a4d8b8; color: #176238; background: #e2f7ea; }
.pill.warning { border-color: #f0ca75; color: #7c5700; background: #fff5d9; }
.safe-chip { color: #0d6836; border-color: #96d9ad; background: #e9f9ef; }
.rank-chip { color: #07130c; border: 0; background: var(--green); font-size: 16px; }
.button { min-height: 42px; border: 1px solid #cad4ce; border-radius: 8px; padding: 0 16px; background: white; color: #18221c; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.button:hover { border-color: #62756a; }
.button.primary { border-color: var(--green); background: var(--green); color: #07130c; }
.button.secondary { background: #fff; }
.button.danger-outline { border-color: #e2a4a1; color: #9d2420; background: #fff; }
.button.wide { width: 100%; margin-top: 16px; }
.tab { display: none; }
.tab.active { display: block; animation: tab-in .22s ease both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.quick-start { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 0; overflow: hidden; }
.quick-start div { min-height: 82px; padding: 16px; display: flex; align-items: center; gap: 12px; border-right: 1px solid #e1e9e4; }
.quick-start div:last-child { border: 0; }
.quick-start span { flex: 0 0 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #082215; background: var(--green); font-weight: 900; }
.quick-start p { margin: 0; color: #68766e; font-size: 13px; line-height: 1.35; }
.quick-start b { display: block; color: #172019; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.metric { min-height: 126px; padding: 18px 19px; border: 1px solid #dce5e0; background: white; display: grid; align-content: space-between; box-shadow: 0 8px 28px rgba(17,20,18,.04); clip-path: polygon(0 0,100% 0,100% calc(100% - 15px),calc(100% - 15px) 100%,0 100%); }
.metric span, .metric small { color: #718078; font-size: 11px; }
.metric strong { font: 800 32px/1 "Arial Narrow", "Segoe UI", sans-serif; letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric.accent { color: var(--green); background: var(--ink-2); border-color: var(--ink-2); }
.metric.accent span, .metric.accent small { color: #9fa9a4; }
.surface { padding: 20px; margin-bottom: 16px; border: 1px solid #dce5e0; border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 12px 36px rgba(17,20,18,.045); }
.surface-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.live-surface { padding: 0; overflow: hidden; }
.live-surface .surface-head { padding: 20px 20px 0; }
.view-switch { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid #dbe4df; border-radius: 9px; background: #f3f7f5; }
.view-switch button { border: 0; border-radius: 6px; padding: 8px 10px; background: transparent; color: #68776f; font-size: 10px; font-weight: 800; cursor: pointer; }
.view-switch button.active { color: #07130c; background: var(--green); }
.preview-frame { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(45deg,#19201c 25%,#151a17 25%,#151a17 50%,#19201c 50%,#19201c 75%,#151a17 75%); background-size: 22px 22px; border-block: 1px solid #dce5e0; }
.preview-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview-foot { padding: 13px 20px; display: flex; justify-content: space-between; gap: 15px; color: #6b7871; font-size: 11px; }
.preview-foot b { color: #263129; }
.text-button { padding: 0; border: 0; color: #157447; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-ranking { display: grid; gap: 7px; }
.mini-row { display: grid; grid-template-columns: 34px 34px 30px 1fr 70px; gap: 9px; align-items: center; min-height: 39px; border-bottom: 1px solid #ebf0ed; font-size: 12px; }
.mini-rank { font: 800 16px/1 "Arial Narrow", sans-serif; }
.mini-logo, .team-logo-small { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; background: #ecf4ef; overflow: hidden; font-size: 9px; font-weight: 900; }
.mini-logo img, .team-logo-small img { width: 100%; height: 100%; object-fit: contain; }
.mini-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.featured-card { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: center; min-height: 205px; }
.featured-photo { height: 190px; overflow: hidden; border-radius: 8px; }
.featured-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.featured-card strong, .featured-card span { display: block; }
.featured-card strong { font-size: 22px; margin-bottom: 7px; }
.featured-card span { color: #65736b; margin-bottom: 18px; font-size: 12px; }
.subtle, .helper, .section-note { color: #748178; font-size: 13px; line-height: 1.55; }
.import-layout { align-items: stretch; }
.dropzone { min-height: 238px; margin: 0 0 18px; border: 1px dashed #aebeb5; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #f7faf8; cursor: pointer; text-align: center; }
.dropzone:hover { border-color: #27b865; background: #f0faf4; }
.dropzone input, .asset-picker input { display: none; }
.dropzone small { color: #758279; }
.drop-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #083d22; background: var(--green); font-size: 23px; }
.form-grid { display: grid; gap: 12px; }
.form-grid.three { grid-template-columns: 1fr .7fr 1.4fr; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-stack { display: grid; gap: 13px; }
.matchstats-box { margin-top: 18px; padding: 16px; border: 1px solid #bfe4ce; border-radius: 9px; background: #f1fbf5; }
.matchstats-box > div { margin-bottom: 13px; }
.matchstats-box h3 { margin: 3px 0 5px; font-size: 17px; }
.matchstats-box > div > span { color: #607268; font-size: 11px; line-height: 1.5; }
.matchstats-box .button { margin-top: 11px; }
.matchstats-box button:disabled { cursor: wait; opacity: .62; }
label { color: #607067; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
input, select, textarea { width: 100%; min-height: 41px; margin-top: 6px; padding: 0 11px; border: 1px solid #cfdad4; border-radius: 7px; color: #172019; background: #fff; outline: 0; }
input:focus, select:focus, textarea:focus { border-color: #24ad62; box-shadow: 0 0 0 3px rgba(35,254,129,.15); }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; }
.check-list i { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #0a6b36; background: #e7f8ed; font-style: normal; font-weight: 900; }
.check-list strong, .check-list span { display: block; }
.check-list strong { margin-bottom: 3px; font-size: 12px; }
.check-list span { color: #718078; font-size: 11px; }
.pending-list { display: grid; gap: 10px; }
.pending-item { padding: 12px; border: 1px solid #ead59d; border-radius: 9px; background: #fffaf0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pending-item strong, .pending-item small { display: block; }
.pending-item small { color: #83765a; margin-top: 4px; }
.pending-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pending-actions button { border: 1px solid #d1c49c; border-radius: 6px; padding: 7px 9px; background: white; cursor: pointer; font-size: 10px; font-weight: 800; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { padding: 9px 11px; color: #738178; text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
td { padding: 11px; border-top: 1px solid #e7ede9; }
td.numeric, th.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.search { min-width: 220px; position: relative; }
.search span { position: absolute; left: 11px; top: 14px; font-size: 17px; }
.search input { margin: 0; padding-left: 34px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 10px; }
.team-card { min-height: 92px; padding: 12px; border: 1px solid #dfe7e2; border-radius: 9px; background: #fbfdfc; display: grid; grid-template-columns: 52px 48px 1fr auto; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.team-card:hover { border-color: #63c98e; transform: translateY(-1px); }
.team-card > span { min-width: 0; }
.team-logo { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 7px; background: #e8f3ec; color: #1f5134; font: 900 12px/1 "Arial Narrow", sans-serif; overflow: hidden; }
.team-logo img { width: 100%; height: 100%; object-fit: contain; }
.team-card strong, .team-card small { display: block; }
.team-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.team-card small { margin-top: 5px; color: #7c8982; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.team-card em { color: #167446; font-style: normal; font-size: 12px; font-weight: 800; }
.team-flag, .mini-flag { display: grid; place-items: center; overflow: hidden; }
.team-flag { width: 48px; height: 50px; }
.team-flag img { width: 44px; height: 30px; object-fit: contain; }
.mini-flag { width: 30px; height: 30px; }
.mini-flag img { width: 28px; height: 19px; object-fit: contain; }
.team-flag.empty, .mini-flag.empty { opacity: .18; border: 1px dashed #91a097; border-radius: 5px; }
.asset-guide { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.asset-guide div { padding: 13px; border: 1px solid #dce6e0; border-radius: 8px; background: #f7faf8; }
.asset-guide b, .asset-guide strong, .asset-guide span { display: block; }
.asset-guide b { color: #748078; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.asset-guide strong { margin: 5px 0 3px; font-size: 13px; }
.asset-guide span { color: #718078; font-size: 10px; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 10px; }
.player-card { position: relative; min-height: 126px; padding: 12px; border: 1px solid #dfe7e2; border-radius: 9px; background: #fbfdfc; display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 13px; cursor: pointer; text-align: left; overflow: hidden; }
.player-card:hover { border-color: #5fcb8b; }
.player-photo { height: 102px; border-radius: 6px; overflow: hidden; }
.player-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.player-card strong, .player-card span, .player-card small { display: block; }
.player-card strong { font-size: 14px; }
.player-card span { margin: 4px 0 12px; color: #607168; font-size: 10px; }
.player-card small { color: #1d7548; font-weight: 800; font-size: 9px; }
.player-card > em { position: absolute; right: 12px; top: 12px; color: #167446; font-style: normal; font-size: 11px; font-weight: 800; }
.data-badge { display: inline-flex; margin-left: 4px; padding: 2px 5px; border-radius: 999px; color: #69766f; background: #e8eeea; font-style: normal; font-size: 8px; }
.data-badge.manual { color: #17653a; background: #dff7e8; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(270px,1fr)); gap: 10px; }
.link-card { padding: 16px; border: 1px solid #dce5e0; border-radius: 9px; background: #f8fbf9; }
.link-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-card strong { font-size: 12px; }
.link-card code { display: block; margin: 12px 0; padding: 10px; border-radius: 6px; color: #9bfbc0; background: #17201b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.link-actions { display: flex; gap: 8px; }
.link-actions .button { flex: 1; min-height: 34px; font-size: 10px; }
.settings-layout { align-items: start; }
.format-example { margin-bottom: 14px; padding: 16px; border-radius: 9px; color: #dff8e8; background: #17211c; }
.format-example b, .format-example span, .format-example small { display: block; }
.format-example b { color: var(--green); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.format-example span { margin: 6px 0 4px; font-size: 19px; font-weight: 900; }
.format-example small { color: #a5b3ab; font-size: 12px; }
.group-capacity { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.group-capacity span { min-width: 118px; padding: 9px 11px; border: 1px solid #cfe0d6; border-radius: 7px; background: #f2faf5; }
.group-capacity b, .group-capacity small { display: block; }
.group-capacity b { font-size: 12px; }
.group-capacity small { margin-top: 3px; color: #6e7c74; font-size: 10px; }
.group-capacity .over { border-color: #e9a9a4; background: #fff0ef; }
.save-floating { min-width: 240px; margin: 0 0 16px auto; }
.advanced-panel { padding: 0; overflow: hidden; }
.advanced-panel > summary { padding: 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; }
.advanced-panel > summary::-webkit-details-marker { display: none; }
.advanced-panel > summary strong { font-size: 18px; }
.advanced-panel > summary em { color: #157447; font-size: 13px; font-style: normal; font-weight: 800; }
.advanced-panel[open] { padding: 0 20px 20px; }
.advanced-panel[open] > summary { margin: 0 -20px 16px; border-bottom: 1px solid #e0e8e3; }
.layout-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.layout-controls label { padding: 12px; border: 1px solid #dce6e0; border-radius: 8px; background: #f8fbf9; }
.layout-controls output { float: right; color: #177447; font-weight: 900; }
.layout-controls input[type="range"] { padding: 0; accent-color: var(--green); border: 0; box-shadow: none; background: transparent; }
.notice-card { margin-bottom: 16px; padding: 15px 17px; border-left: 4px solid var(--green); border-radius: 8px; background: #eefaf2; }
.notice-card b { font-size: 14px; }
.notice-card p { margin: 5px 0 0; color: #5f7167; font-size: 13px; line-height: 1.5; }
.manual-stats { margin-top: 16px; padding: 14px; border: 1px solid #dce6e0; border-radius: 8px; background: #f7faf8; }
.manual-stats p { margin: 0 0 12px; }
.manual-stats p b, .manual-stats p span { display: block; }
.manual-stats p b { font-size: 13px; }
.manual-stats p span { margin-top: 3px; color: #718078; font-size: 11px; }
.empty-state { grid-column: 1/-1; padding: 34px; border: 1px dashed #bdcac2; border-radius: 10px; display: grid; gap: 5px; text-align: center; }
.logo-showcase { height: 280px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; }
.logo-showcase img { width: 72%; height: 72%; object-fit: contain; }
.checker { background-color: #eef2ef; background-image: linear-gradient(45deg,#dfe5e1 25%,transparent 25%),linear-gradient(-45deg,#dfe5e1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dfe5e1 75%),linear-gradient(-45deg,transparent 75%,#dfe5e1 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
dialog { width: min(820px,calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 13px; color: #172019; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.34); overflow: auto; }
dialog::backdrop { background: rgba(9,14,11,.72); backdrop-filter: blur(3px); }
.dialog-shell { padding: 22px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.icon-button { width: 34px; height: 34px; border: 1px solid #d6dfda; border-radius: 50%; background: white; cursor: pointer; font-size: 20px; }
.edit-asset-row { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 17px; margin-bottom: 18px; }
.edit-asset-row b { font-size: 13px; }
.edit-asset-row p { margin: 7px 0 0; color: #758279; font-size: 11px; line-height: 1.55; }
.asset-picker { position: relative; width: 120px; height: 120px; border: 1px solid #cfdad4; border-radius: 9px; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.asset-picker.player { height: 150px; }
.asset-picker img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.asset-picker span { position: absolute; inset: auto 7px 7px; padding: 6px; border-radius: 5px; color: white; background: rgba(12,18,14,.8); text-align: center; font-size: 9px; }
.roster-editor-head { margin-top: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.roster-editor-head h3 { margin: 2px 0 0; font-size: 20px; }
.roster-editor { margin-top: 12px; display: grid; gap: 9px; }
.roster-row { position: relative; display: grid; grid-template-columns: 76px minmax(150px,1fr) minmax(180px,1.25fr) 38px; align-items: end; gap: 10px; padding: 10px; border: 1px solid #dbe5df; border-radius: 10px; background: #f8fbf9; }
.roster-row label { min-width: 0; }
.roster-row input { margin-top: 6px; }
.roster-photo { position: relative; width: 64px; height: 76px; border: 1px solid #cfdad4; border-radius: 7px; display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.roster-photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.roster-photo span { position: absolute; inset: auto 4px 4px; padding: 4px; border-radius: 4px; color: white; background: rgba(12,18,14,.82); text-align: center; font-size: 8px; font-weight: 900; }
.roster-photo input { display: none; }
.roster-remove { margin-bottom: 4px; border-color: #e4c4c1; color: #a5352e; }
.roster-number { position: absolute; top: 5px; right: 8px; color: #8b9991; font-size: 9px; font-weight: 900; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 380px; padding: 12px 15px; border-radius: 8px; color: #e7fff0; background: #10291b; box-shadow: 0 12px 40px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s; font-size: 11px; font-weight: 700; }
.toast.show { opacity: 1; transform: none; }
.toast.error { color: #ffe9e8; background: #4a1715; }
.visual-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 16px; align-items: start; }
.visual-preview-surface { padding: 0; overflow: hidden; }
.visual-preview-surface .surface-head { padding: 20px 20px 0; }
.visual-preview { border-bottom: 1px solid #dce5e0; }
.visual-tip { margin: 0; padding: 13px 20px; color: #66756d; font-size: 11px; }
.visual-status { padding: 7px 10px; border: 1px solid #cbd7d0; border-radius: 999px; color: #617068; background: #f6f9f7; font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.visual-status.dirty { border-color: #e1ba57; color: #775400; background: #fff6d9; }
.visual-toolbox { position: sticky; top: 18px; }
.visual-selection-box { margin-top: 12px; padding: 11px; border: 1px solid #d8e4dd; border-radius: 10px; background: #f7faf8; }
.visual-selection-box > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; }
.visual-selection-chips { display: flex; flex-wrap: wrap; gap: 5px; max-height: 82px; overflow: auto; margin: 9px 0 5px; }
.visual-selection-chips span { padding: 5px 7px; border-radius: 999px; color: #06331b; background: #dff8e9; font-size: 9px; font-weight: 800; }
.visual-selection-box .helper { margin: 7px 0 0; }
.visual-global-font { margin: 15px 0; padding: 13px; border: 1px solid #bcd8c8; border-radius: 10px; background: #effaf4; }
.visual-global-font > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #17301f; font-size: 11px; }
.visual-global-font output { color: #08783d; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }
.visual-global-font input[type="range"] { width: 100%; accent-color: var(--green-dark); }
.visual-global-font-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 8px; }
.visual-global-font-actions .button { min-height: 32px; padding: 7px; }
.visual-global-font .helper { margin: 9px 0 0; }
.visual-readout { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 15px 0; }
.visual-readout span { padding: 10px; border: 1px solid #d9e4de; border-radius: 8px; background: #f6faf7; text-align: center; }
.visual-readout small, .visual-readout b { display: block; }
.visual-readout small { margin-bottom: 4px; color: #77857d; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.visual-readout b { font-size: 13px; font-variant-numeric: tabular-nums; }
.visual-style-controls { display: grid; grid-template-columns: minmax(0,1fr) 92px; gap: 9px; margin-bottom: 8px; }
.visual-style-controls input[type="color"] { padding: 4px; cursor: pointer; }
.visual-original-color { margin: 0 0 15px auto; display: block; font-weight: 800; }
.visual-font-import { margin: 0 0 10px; }
.visual-font-import label { display: grid; place-items: center; cursor: pointer; }
.visual-font-import input { display: none; }
.visual-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: #617068; font-size: 11px; font-weight: 750; }
.visual-step > div { display: flex; padding: 3px; border: 1px solid #d6e0da; border-radius: 8px; background: #f3f7f5; }
.visual-step button { min-width: 46px; padding: 7px; border: 0; border-radius: 5px; color: #68766e; background: transparent; cursor: pointer; font-size: 10px; font-weight: 850; }
.visual-step button.active { color: #07130c; background: var(--green); }
.visual-pad { width: 190px; margin: 0 auto 14px; display: grid; grid-template-columns: repeat(3,56px); grid-template-rows: repeat(3,48px); gap: 6px; justify-content: center; }
.visual-pad button { border: 1px solid #cbd7d0; border-radius: 9px; color: #17301f; background: white; cursor: pointer; font-size: 23px; font-weight: 900; box-shadow: 0 3px 0 #d8e1dc; }
.visual-pad button:hover { border-color: #23b561; background: #ecfbf2; }
.visual-pad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #d8e1dc; }
.visual-pad .pad-center { color: #728078; background: #eef3f0; cursor: default; font-size: 10px; box-shadow: none; }
.visual-scale-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.visual-reset-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.visual-reset-actions .text-button { font-weight: 800; }
.auth-barrier { position: fixed; inset: 0; z-index: 50; background: #111412; display: grid; place-items: center; }
.auth-card { width: min(430px,calc(100% - 30px)); padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: white; background: #1b201d; text-align: center; }
.auth-card img { width: 130px; height: 100px; object-fit: contain; }
.auth-card p { color: #95a29b; font-size: 11px; line-height: 1.5; }
.auth-card form { display: flex; gap: 8px; }
.auth-card input { margin: 0; }
@media (max-width: 1080px) {
  .sidebar { width: 204px; }
  .workspace { margin-left: 204px; padding-inline: 24px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .two-column { grid-template-columns: 1fr; }
  .asset-guide { grid-template-columns: 1fr; }
  .layout-controls { grid-template-columns: 1fr 1fr; }
  .quick-start { grid-template-columns: 1fr 1fr; }
  .visual-editor-grid { grid-template-columns: 1fr; }
  .visual-toolbox { position: static; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 14px; flex-direction: row; overflow-x: auto; align-items: center; }
  .brand { margin: 0 12px 0 0; }
  .brand-mark { width: 42px; }
  .brand small, .sidebar-foot, .nav-item span { display: none; }
  nav { display: flex; }
  .nav-item { white-space: nowrap; padding: 11px; }
  .workspace { margin: 0; padding: 20px 14px 50px; }
  .topbar, .surface-head, .preview-foot { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .view-switch { width: 100%; overflow-x: auto; }
  .form-grid.three, .form-grid.two { grid-template-columns: 1fr; }
  .layout-controls { grid-template-columns: 1fr; }
  .quick-start { grid-template-columns: 1fr; }
  .roster-editor-head { align-items: stretch; flex-direction: column; }
  .roster-row { grid-template-columns: 68px 1fr 38px; }
  .roster-row label:nth-of-type(3) { grid-column: 2 / 3; }
  .roster-remove { grid-column: 3; grid-row: 1; align-self: center; }
}
