:root { color-scheme: light; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: #f4f7f3; color: #182820; --dark: #182820; --muted: #4a6153; --line: #dbe4db; --primary: #255b43; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--primary); }
h1, h2, h3, p, ol, ul { margin: 0; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid #3c8060; outline-offset: 3px; }
.wrap { max-width: 1200px; margin: auto; padding: 0 clamp(16px, 4vw, 52px); }
.masthead { border-bottom: 1px solid var(--line); background: #fcfdfb; }
.top { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--dark); text-decoration: none; font-weight: 860; font-size: 1.25rem; letter-spacing: -.05em; }
.mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 9px; background: #233f2d; }
.mark i { height: 15px; border-radius: 3px; width: 4px; background: #f1bd72; }
.mark i:nth-child(2) { height: 21px; }
.page-intro { margin: 32px 0 24px; }
h1 { font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.06; letter-spacing: -.06em; }
.page-intro p, .section-head p { color: var(--muted); margin-top: 6px; line-height: 1.45; }
.status-panel { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 14px 28px; border: 1px solid #d0e0d2; border-radius: 12px; background: #e8f2e9; padding: 17px 19px; margin-bottom: 19px; }
.status-label { display: block; font-size: .78rem; font-weight: 720; color: var(--muted); text-transform: uppercase; letter-spacing: .055em; margin-bottom: 4px; }
.status-panel strong { display: block; font-size: 1.03rem; }
.status-panel p { margin-top: 3px; font-size: .84rem; color: var(--muted); }
.columns { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.left-column { display: grid; gap: 16px; }
.panel { padding: clamp(14px, 2vw, 21px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 6px #133c1d09; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.section-head h2, footer h2 { font-size: 1.25rem; letter-spacing: -.035em; }
.section-head p { font-size: .88rem; }
.button, button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 40px; padding: 7px 12px; font-size: .84rem; text-decoration: none; font-weight: 750; border: 1px solid transparent; border-radius: 7px; }
.primary { color: white; background: var(--primary); }
.primary:hover { background: #1a4834; }
.quiet { color: #285940; background: #f5f8f3; border-color: #ccdbce; }
.quiet:hover { background: #eaf2e8; }
.danger { color: #9c3023; background: #fff; border-color: #ead6cf; }
.danger:hover { background: #fff5f0; }
.pairing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(95px, 126px); align-items: center; gap: 10px; padding: 12px; background: #eff6ee; border: 1px solid #cfdfd0; border-radius: 9px; margin: 15px 0; }
.pairing h3, fieldset legend { font-size: .91rem; font-weight: 810; }
.pairing p, .hint { color: var(--muted); font-size: .82rem; margin-top: 5px; line-height: 1.45; }
.pairing a { font-weight: 750; }
.pairing output { display: block; font-size: 1.5rem; letter-spacing: .19em; font-weight: 880; margin: 5px 0; font-variant-numeric: tabular-nums; }
.pairing canvas { width: 100%; height: auto; image-rendering: pixelated; border-radius: 4px; }
.pairing #pair-link { display: inline-block; font-size: .81rem; padding-top: 6px; }
.empty { margin: 15px 0 0; padding: 14px 10px; border: 1px dashed #cad8cc; border-radius: 8px; color: var(--muted); font-size: .87rem; }
.callout { border-left: 3px solid #548363; padding: 6px 9px; margin-top: 10px; background: #eff7ef; color: #265544; font-size: .85rem; overflow-wrap: anywhere; }
.callout.error { border-color: #b85436; color: #853523; background: #fff3ef; }
.screen-list { list-style: none; padding: 0; }
.screen-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.screen-list li:last-child { border: 0; padding-bottom: 0; }
.screen-title { flex: 1; min-width: 120px; overflow-wrap: anywhere; }
.screen-title strong, .screen-title small { display: block; }
.screen-title small { margin-top: 2px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.row-actions button { min-height: 33px; }
.screen-list form { display: flex; flex-wrap: wrap; width: 100%; gap: 5px; }
.screen-list form input { flex: 1; min-width: 95px; }
.settings fieldset { padding: 10px 0 12px; margin: 10px 0 0; border: 0; border-bottom: 1px solid var(--line); }
.settings fieldset legend { padding: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.fields.order-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings label { display: grid; gap: 4px; font-size: .82rem; font-weight: 650; }
.settings .check { display: flex; align-items: center; min-height: 35px; gap: 5px; line-height: 1.3; }
.settings input[type="checkbox"] { accent-color: var(--primary); width: 17px; height: 17px; flex: none; margin: 0; }
.settings input[type="number"], .settings select, .screen-list input[type="text"] { min-height: 38px; border: 1px solid #cddacc; border-radius: 6px; background: #fcfdfb; padding: 5px 8px; font-size: .88rem; }
.input-unit { display: flex; align-items: center; gap: 4px; }
.input-unit input { width: min(75%, 71px); }
.input-unit > span { color: var(--muted); }
.form-end { padding-top: 12px; }
footer { margin: 21px 0; padding: 15px 0; color: var(--muted); font-size: .84rem; }
footer h2 { color: var(--dark); margin-bottom: 5px; }
footer ol { padding-left: 21px; margin-bottom: 9px; }
footer li { margin-bottom: 3px; }
.privacy { max-width: 790px; margin-bottom: 28px; }
.privacy h2 { font-size: 1.15rem; margin-top: 17px; }
.privacy h2:first-child { margin-top: 0; }
.privacy p { margin-top: 5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 785px) { .columns { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
  .page-intro { margin-top: 21px; }
  .section-head { flex-wrap: wrap; }
  .status-panel { grid-template-columns: 1fr; gap: 9px; }
  .status-panel a { justify-self: start; }
  .top a.button { font-size: .73rem; padding: 5px 7px; }
}
