:root {
  color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.6;
  --background:#f3f6f8; --surface:#fff; --text:#203245; --muted:#4c6270; --header:#122b3c;
  --header-text:#fff; --primary:#146a5d; --primary-text:#fff; --accent:#2fc3a5; --link:#075e91; --border:#d1dce2;
  color: var(--text); background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: var(--header); color: var(--header-text); border-bottom: 5px solid var(--accent); }
header > div, main { max-width: 1100px; margin: auto; padding: 2.5rem 1.5rem; }
h1 { font-size: clamp(2rem,5vw,3.2rem); line-height: 1.15; letter-spacing: -.035em; max-width: 850px; }
h2, h3 { line-height: 1.3; }
p { overflow-wrap: anywhere; }
.eyebrow { text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.notice, .document, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin: 0 0 1rem; overflow-wrap: anywhere; }
.notice { border-left: 5px solid var(--primary); }
.document h3 { margin-top: .3rem; }
.tags, .hint { color: var(--muted); font-size: .9rem; }
form { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; }
label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; gap: .3rem; min-width: 0; }
.query { flex: 1; min-width: 220px; }
input, select, button, textarea { font: inherit; border: 1px solid var(--border); border-radius: 6px; padding: .7rem; margin-top: .2rem; max-width: 100%; }
input, select, textarea { color: var(--text); background: var(--surface); }
textarea { resize: vertical; }
button, .preview-button { background: var(--primary); color: var(--primary-text); border-color: var(--primary); font-weight: 600; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
a { color: var(--link); text-underline-offset: .2em; }
.header-link { color: var(--header-text); }
input:focus-visible, select:focus-visible, button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.pagination { margin: 1rem 0; }
footer { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1rem; font-size: .85rem; }
time { font-variant-numeric: tabular-nums; }
.brand-logo { display: block; object-fit: contain; object-position: left; max-width: 220px; max-height: 85px; margin: 0 0 1.25rem; }
.editor-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.editor-header > div { flex: 1 1 100%; }
.editor-header h1 { margin: .4rem 0; }
.editor-form { display: block; }
.editor-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.editor-tabs button { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.editor-tabs .active { background: var(--primary); color: var(--primary-text); }
.editor-toolbar, .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; align-items: start; }
.field-grid label, .field-grid input, .field-grid textarea { width: 100%; }
.color-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: 1rem; }
input[type=color] { height: 48px; min-width: 85px; padding: .2rem; cursor: pointer; }
.brand-preview { padding: 1.5rem; border-left: 5px solid; border-radius: 8px; margin-top: 2rem; }
.preview-button { display: inline-block; padding: .5rem 1rem; border-radius: 6px; }
.save-bar { display: flex; gap: 1rem; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--background); padding: 1rem 0; border-top: 1px solid var(--border); }
.login { align-items: end; }
.login label { flex: 1; }
.obligation, .update-row { padding: 1rem 0; border-top: 1px solid var(--border); }
.error { color: #a21919; font-weight: 600; }
@media (max-width: 600px) {
  header > div, main { padding: 1.5rem 1rem; }
  form, label { width: 100%; }
  .query { min-width: 0; }
  .field-grid { grid-template-columns: minmax(0,1fr); }
  .editor-toolbar, .row { flex-wrap: wrap; }
  .editor-tabs button { flex: 1 1 40%; }
}
:root{--accent:#2fc3a5;--background:#f3f6f8;--border:#d1dce2;--header:#122b3c;--header-text:#ffffff;--link:#075e91;--muted:#4c6270;--primary:#146a5d;--primary-text:#ffffff;--surface:#ffffff;--text:#203245;}