:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #182a28;
  background: #f4f7f6;
  --muted: #516763;
  --line: #dce6e2;
  --accent: #14604d;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #21886b;
  outline-offset: 3px;
}
.shell { max-width: 1056px; margin: 0 auto; padding-inline: 28px; }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.bar-content { display: flex; align-items: center; justify-content: space-between; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-size: 18px; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #185747; color: white; }
.catalog-link, .back { font-size: 14px; font-weight: 650; }
main { padding-bottom: 44px; }
.intro { margin: 54px 0 28px; }
.intro h1 { margin: 8px 0; font-size: clamp(32px, 6vw, 48px); letter-spacing: -.045em; line-height: 1.1; }
.intro p { margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.intro .eyebrow, .output .eyebrow { color: var(--accent); text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: .13em; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 17px; }
.badge, .format { display: inline-block; border-radius: 6px; background: #e7f0ec; color: #245747; font-size: 11px; font-weight: 750; padding: 4px 7px; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead { background: #f6f9f8; color: var(--muted); }
th, td { padding: 15px 22px; text-align: left; vertical-align: top; line-height: 1.45; }
thead th { font-size: 12px; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody th { width: 25%; }
tbody td { color: var(--muted); }
.tool-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
form, .output { padding: 22px; }
label { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
input, textarea { display: block; width: 100%; margin-bottom: 18px; padding: 10px 12px; color: inherit; border: 1px solid #aabeb6; border-radius: 7px; background: #fbfdfc; font: inherit; }
input[type="number"] { max-width: 144px; }
textarea { resize: vertical; margin-bottom: 5px; }
.optional { color: var(--muted); font-weight: 500; font-size: 12px; }
.hint, .note { font-size: 13px; color: var(--muted); }
.hint { margin: 0 0 18px; }
button { background: #185747; color: white; border: 0; border-radius: 7px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
button:hover { background: #0d4235; }
button:disabled { cursor: wait; opacity: .6; }
#split-status { margin: 12px 0 6px; }
.output p { line-height: 1.5; color: var(--muted); }
.output .eyebrow { margin-top: 0; }
.output .note { margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.tool-help { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.tool-help p { font-size: 14px; }
.tool-help pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f7f6; padding: 10px; border-radius: 7px; }
.markers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.copy-button { background: #e7f0ec; color: var(--accent); padding: 6px 8px; font-size: 13px; }
.copy-button:hover { background: #d4e8df; }
.copy-status:empty { display: none; }
.copy-status { margin: 8px 0 0; }
.error { margin: 0 0 18px; padding: 10px; border-radius: 7px; background: #fbece9; color: #8d271c; }

@media (max-width: 620px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .intro { margin-top: 36px; }
  .tool-layout { grid-template-columns: 1fr; }
  th, td { padding: 12px 8px; font-size: 13px; }
  .panel-heading { padding: 16px; }
  tbody th { width: auto; }
}
