.st-app, .st-dialog {
  --st-panel: #191b1f;
  --st-soft: #202329;
  --st-ink: #f2f1eb;
  --st-mute: #b1b2b7;
  --st-line: #383b40;
  --st-accent: #ff7667;
  --st-lime: #bbe980;
  color: var(--st-ink);
  font-size: 1rem;
  line-height: 1.45;
  color-scheme: dark;
}
.st-app { width: min(100%, 920px); margin-inline: auto; }
.st-app *, .st-dialog * { box-sizing: border-box }
.st-app h2, .st-app h3, .st-dialog h2, .st-app p, .st-dialog p { margin: 0; }
.st-app h2, .st-dialog h2 { color: var(--st-ink); font-family: inherit; font-weight: 750; font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.15; letter-spacing: -.035em; text-transform: none; }
.st-app h3 { line-height: 1.3; font-size: .82rem; font-weight: 700; color: var(--st-mute); letter-spacing: .09em; text-transform: uppercase; }
.st-app button, .st-dialog button, .st-app input, .st-dialog input, .st-app select { font: inherit; }
.st-app button, .st-dialog button, .st-app summary, .st-app select { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-app :focus-visible, .st-dialog :focus-visible { outline: 2px solid var(--st-accent); outline-offset: 3px; }
.st-app button, .st-dialog button { margin: 0; text-align: inherit; }
.st-panel, .st-dialog { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 16px; }
.st-panel { padding: clamp(18px, 3vw, 30px); }
.st-setup { max-width: 44rem; margin: 0 auto 0 0; }
.st-panel-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.st-panel-head p, .st-app .st-helper, .st-dialog .st-helper, .st-finished p { color: var(--st-mute); line-height: 1.55; }
.st-panel-head p { margin-top: 7px; max-width: 44ch; }
.st-emblem { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: #342422; border: 1px solid #56332e; border-radius: 12px; color: var(--st-accent); }
.st-emblem svg { width: 24px; height: 24px; }
.st-names { display: grid; gap: 8px; margin-bottom: 12px; }
.st-name-row { display: flex; align-items: center; position: relative; flex: 1; min-width: 0; }
.st-avatar, .st-standing-num { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.st-avatar { color: var(--st-mute); font-size: .75rem; position: absolute; left: 14px; pointer-events: none; }
.st-name-row input, .st-value, .st-number, .st-select {
  background: #121417; border: 1px solid var(--st-line); border-radius: 8px; color: var(--st-ink); min-width: 0; min-height: 46px; padding: 9px 12px; letter-spacing: 0; text-transform: none;
}
.st-name-row input { width: 100%; padding-left: 45px; }
.st-app input::placeholder, .st-dialog input::placeholder { color: #a4a5ab; opacity: 1; }
.st-name-row input:focus, .st-value:focus, .st-number:focus { border-color: var(--st-accent); }
.st-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.st-button, .st-icon, .st-choice { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: .9375rem; line-height: 1.2; font-weight: 650; background: transparent; border: 1px solid var(--st-line); color: var(--st-ink); border-radius: 8px; padding: 10px 15px; box-shadow: none; text-decoration: none; }
.st-button svg, .st-icon svg, .st-storage-wrap svg { flex-shrink: 0; }
.st-button:hover, .st-choice:hover, .st-icon:hover { background: var(--st-soft); border-color: #5a5c62; }
.st-app .st-primary, .st-dialog .st-primary { background: var(--st-accent); border-color: var(--st-accent); color: #201714; font-weight: 750; }
.st-app .st-primary:hover, .st-dialog .st-primary:hover { background: #ff8c7f; }
.st-subtle { border-style: dashed; width: 100%; color: #dededb; }
.st-tools { font-size: .875rem; min-height: 42px; }
.st-icon { width: 42px; min-width: 42px; height: 42px; min-height: 42px; padding: 0; }
.st-setup-foot, .st-toolbar, .st-modal-foot, .st-field-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-setup-foot { justify-content: space-between; margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--st-line); }
.st-storage-wrap { display: inline-flex; gap: 7px; align-items: center; color: var(--st-mute); font-size: .8125rem; }
.st-storage-wrap svg { width: 15px; height: 15px; }
.st-toolbar { margin-bottom: 16px; justify-content: space-between; }
.st-tool-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.st-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(225px, 1fr); align-items: start; gap: 16px; }
.st-main { display: grid; gap: 16px; min-width: 0; }
.st-section-head { display: flex; gap: 8px 16px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.st-section-head > span, .st-history-count { color: var(--st-mute); font-size: .8125rem; }
.st-app .st-helper { margin-top: 8px; }
.st-round-inputs { margin: 20px 0; border-top: 1px solid var(--st-line); }
.st-round-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--st-line); padding: 9px 0; font-weight: 650; }
.st-round-row > span, .st-standing-name, .st-history-item p, .st-finished h2, .st-field-owner { overflow-wrap: anywhere; }
.st-value { flex: 0 0 85px; width: 85px; text-align: center; font-variant-numeric: tabular-nums; }
.st-standing { min-width: 0; }
.st-standing ol { list-style: none; margin: 15px 0 0; padding: 0; }
.st-standing li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--st-line); }
.st-standing li:last-child { padding-bottom: 0; }
.st-standing-num { color: var(--st-mute); font-size: .75rem; }
.st-standing-name { flex: 1; font-weight: 650; }
.st-standing-name small { display: block; color: var(--st-accent); font-size: .75rem; }
.st-standing strong { color: var(--st-lime); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-standing strong small { color: var(--st-mute); font-size: .75rem; font-weight: 500; }
.st-out strong { color: var(--st-mute); }
.st-history { padding-top: 0; padding-bottom: 0; }
.st-history summary { display: flex; align-items: center; gap: 12px; min-height: 56px; list-style: none; }
.st-history summary::-webkit-details-marker { display: none; }
.st-history summary > span:first-child { flex: 1; font-weight: 650; }
.st-history summary > svg { width: 16px; color: var(--st-mute); transition: transform .15s; }
.st-history[open] summary > svg { transform: rotate(90deg); }
.st-history-items { padding-bottom: 18px; }
.st-history-item { display: flex; justify-content: space-between; gap: 8px; align-items: center; border-top: 1px solid var(--st-line); padding: 10px 0; }
.st-history-item p { color: var(--st-mute); font-size: .875rem; margin-top: 3px; }
.st-history-item b { color: var(--st-ink); }
.st-finished { border-color: #536043; margin-bottom: 16px; }
.st-main .st-finished { margin-bottom: 0; }
.st-kicker { color: var(--st-lime); font-weight: 650; font-size: .8125rem; letter-spacing: .05em; }
.st-finished h2 { margin-top: 8px; }
.st-finished p { margin: 8px 0 18px; }
.st-select-wrap { position: relative; display: block; margin-top: 18px; }
.st-select { width: 100%; padding-right: 44px; appearance: none; font-weight: 650; }
.st-select-wrap svg { position: absolute; top: 50%; right: 15px; transform: translateY(-50%) rotate(90deg); width: 16px; pointer-events: none; }
.st-sheet { scroll-margin-top: 16px; }
.st-sheet-part { margin-top: 24px; border-top: 1px solid var(--st-line); padding-top: 15px; }
.st-sheet h3 { margin: 0 0 5px; }
.st-field { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; background: none; border: 0; border-bottom: 1px solid var(--st-line); border-radius: 0; min-height: 47px; padding: 8px 2px; color: var(--st-ink); }
.st-field:hover { background: var(--st-soft); }
.st-field-value { display: inline-flex; align-items: center; gap: 10px; color: var(--st-lime); font-variant-numeric: tabular-nums; font-weight: 700; }
.st-field-value small { font-weight: 500; color: var(--st-mute); font-size: .75rem; }
.st-field-value svg { width: 15px; color: var(--st-mute); }
.st-subtotal, .st-sheet-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.st-subtotal { margin-top: 9px; color: var(--st-mute); font-size: .875rem; }
.st-subtotal small { margin-left: 5px; color: var(--st-mute); font-size: .75rem; }
.st-block-total { color: var(--st-ink); font-weight: 600; }
.st-sheet-total { margin-top: 22px; background: #272e23; color: var(--st-lime); border-radius: 9px; padding: 11px 14px; font-weight: 650; }
.st-sheet-total strong { font-size: 1.3rem; }
.st-sheet-total small { font-weight: 500; font-size: .8125rem; }
.st-dialog { width: min(28rem, calc(100% - 28px)); max-width: none; max-height: min(90dvh, 48rem); margin: auto; padding: clamp(18px, 4vw, 28px); box-shadow: 0 14px 80px #0007; overflow-y: auto; overscroll-behavior: contain; }
.st-dialog::backdrop { background: #06080bbf; }
.st-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.st-modal-head .st-icon { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
.st-modal-foot { justify-content: flex-end; margin-top: 20px; }
.st-dialog .st-round-inputs { margin: 14px 0; }
.st-field-owner { font-weight: 700; margin-bottom: 3px; color: var(--st-lime); }
.st-choices { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; }
.st-choice { font-weight: 700; padding: 12px 14px; gap: 4px; }
.st-choice small { font-weight: 500; color: var(--st-mute); font-size: .75rem; }
.st-selected { border-color: var(--st-lime); color: var(--st-lime); }
.st-field-actions { border-top: 1px solid var(--st-line); padding-top: 14px; margin-top: 18px; }
.st-number-label { display: block; margin: 16px 0 10px; color: var(--st-mute); font-size: .875rem; }
.st-number { display: block; width: 100%; margin: 5px 0 0; }
.st-notice { color: var(--st-mute); min-height: 1.5rem; margin-top: 10px; font-size: .875rem; }
.st-error { color: #ffaca2; font-size: .9rem; }
.st-name-control { display: flex; align-items: center; gap: 7px; }
@media (max-width: 670px) {
  .st-layout { grid-template-columns: 1fr; }
  .st-toolbar { align-items: flex-start; }
  .st-toolbar > .st-storage-wrap { width: 100%; }
  .st-panel { border-radius: 12px; }
  .st-setup-foot .st-primary { width: 100%; }
  .st-setup-foot { gap: 13px; }
  .st-emblem { width: 36px; height: 36px; }
  .st-panel-head { gap: 10px; }
  .st-dialog .st-modal-foot > .st-primary { flex-grow: 1; }
}
