:root {
  font: 15px/1.5 system-ui, sans-serif;
  color: #18252b;
  background: #f3f5f4;
  --edge: #d9e2df;
  --muted: #526460;
  --accent: #09694e;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #102821; color: #fff; }
.shell { width: min(1152px, calc(100% - 36px)); margin: auto; }
.brand, .section-head, .form-line { display: flex; align-items: center; gap: 12px; }
.brand { min-height: 62px; }
.brand #change-password { margin-left: auto; }
.mark { color: #6ae2b1; font-size: 30px; line-height: 1; }
main { padding: 32px 0 52px; }
.intro { margin-bottom: 22px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 5vw, 40px); }
h2 { font-size: 21px; margin: 0 0 12px; }
h3 { font-size: 18px; }
p, label { color: var(--muted); }
section + section, #workspace > section { margin-top: 25px; }
.panel, dialog { background: #fff; border: 1px solid var(--edge); border-radius: 12px; }
.form-line { padding: 15px; align-items: end; max-width: 660px; }
.form-line label { flex: 1; }
label { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
input, select, button { border: 1px solid var(--edge); border-radius: 7px; font: inherit; color: inherit; }
input, select { background: #f9fbfa; padding: 8px; width: 100%; }
input:focus, select:focus, button:focus-visible { outline: 2px solid #148664; outline-offset: 1px; }
button { background: #fff; color: #18252b; padding: 7px 12px; cursor: pointer; }
button:hover { background: #eef5f1; }
button:disabled { opacity: .6; cursor: wait; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #07573f; }
.notice { padding: 8px 12px; border-radius: 7px; border: 1px solid var(--edge); margin-bottom: 14px; }
.notice[data-error="true"] { color: #982b25; background: #fff3f2; }
#channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.channel { display: grid; gap: 10px; padding: 14px; }
.channel button { justify-self: start; }
.section-head { justify-content: space-between; }
.section-head h2 { margin: 0; }
section > .section-head { margin-bottom: 12px; }
.generation-settings { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.settings { display: grid; gap: 7px; grid-template-columns: minmax(0, 1.2fr) 1fr 1fr; }
.mode-badge { font-size: 12px; background: #fef0e8; color: #914323; border-radius: 6px; padding: 3px 8px; }
.mode-badge[data-mode="normal"] { background: #e3f5eb; color: var(--accent); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: 13px; }
th, td { padding: 9px 11px; border-bottom: 1px solid var(--edge); }
th { background: #f8faf9; font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
dialog { width: min(780px, calc(100% - 24px)); padding: 18px; }
dialog::backdrop { background: #1028219c; }
dialog h3 { margin: 12px 0 4px; }
pre { padding: 10px; background: #f3f5f4; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 7px; margin: 0; max-height: 33vh; overflow: auto; }
.channel-model { margin-bottom: 12px; }
#password-dialog { width: min(420px, calc(100% - 24px)); }
#password-form { display: grid; gap: 12px; }
#password-form h2 { margin: 0; }
#password-hint, #password-error { font-size: 13px; }
#password-error { color: #982b25; }
