:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: #231e17;
  background: #f6f3ed;
  --line: #e2d9cb;
  --paper: #fffefa;
  --ink: #272019;
  --muted: #655b4d;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px max(20px, calc((100vw - 1260px) / 2));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 800; }
.brand-mark { background: var(--ink); color: #ffcf70; border-radius: 10px; padding: 10px; font-weight: 900; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 650; }
main { max-width: 1260px; margin: auto; padding: 24px 20px 48px; }
.status:empty { display: none; }
.status { padding: 13px 15px; background: #efe5d2; border-radius: 9px; }
.status[data-error='true'] { color: #781d13; background: #fcece5; }
.login { max-width: 480px; margin: clamp(18px, 9vh, 90px) auto; }
.workspace { display: grid; grid-template-columns: 238px minmax(0, 1fr); gap: 24px; }
aside { position: sticky; top: 16px; align-self: start; }
nav { background: var(--paper); padding: 8px; border: 1px solid var(--line); border-radius: 14px; }
nav button { width: 100%; text-align: left; border: 0; background: transparent; }
nav button[aria-current='page'] { background: #f4e5c8; color: #432d0d; font-weight: 750; }
.quiet { margin-top: 10px; background: transparent; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.heading span, p, .metrics span { color: var(--muted); }
h1, h2, h3, h4 { margin: 0 0 12px; }
h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; }
h2 { font-size: 20px; }
h3 { margin-top: 24px; font-size: 16px; }
p { line-height: 1.55; }
.heading h1 { margin: 0; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: clamp(17px, 3vw, 26px); }
.metrics, .columns { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics div { background: #f8f3e9; padding: 13px; border-radius: 10px; }
.metrics strong, .metrics span { display: block; overflow-wrap: anywhere; }
.metrics span { font-size: 13px; margin-bottom: 4px; }
label { display: grid; gap: 7px; margin: 0 0 15px; font-weight: 650; }
input, textarea, select, button, .button { font: inherit; }
input:not([type='checkbox']), textarea, select { border: 1px solid #cfc5b7; border-radius: 8px; padding: 9px 10px; background: #fff; color: #201b14; width: 100%; }
input[type='color'] { padding: 3px 5px; min-height: 42px; }
textarea { resize: vertical; }
button, .button { display: inline-block; border: 1px solid #cfc5b7; border-radius: 8px; padding: 9px 13px; background: #fffefa; color: #231e17; cursor: pointer; text-decoration: none; }
button:hover:not(:disabled), .button:hover { background: #f6ead2; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: #282017; color: #fff; border-color: #282017; font-weight: 750; }
.primary:hover:not(:disabled) { background: #4b3a25; }
:focus-visible { outline: 3px solid #98691e; outline-offset: 3px; }
.narrow { max-width: 245px; }
.savebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.service { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service label { display: flex; align-items: center; gap: 8px; margin: 0; }
.service small { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.preview { background: #e4dccd; border-radius: 12px; min-height: 244px; display: grid; place-items: center; padding: 13px; }
.preview[data-position='bottom'] { align-items: end; }
.sample { width: min(510px, 100%); padding: 14px; background: #fffdf7; border-radius: 11px; border-top: 4px solid var(--swatch, #b77908); }
.sample p { overflow-wrap: anywhere; }
.sample .columns span { background: #25201a; text-align: center; padding: 8px; color: #fff; border-radius: 7px; overflow-wrap: anywhere; }
.sample #sample-accept { box-shadow: inset 0 -3px 0 var(--swatch, #b77908); }
.sample small { display: block; margin-top: 11px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; }
#audit { padding-left: 22px; }
#audit li { padding-block: 5px; }
.scan-results { display: grid; gap: 10px; }
.scan-result { border-top: 1px solid var(--line); padding: 12px 0 0; }
.scan-result h3 { margin-top: 0; }
.scan-result p { margin: 6px 0; overflow-wrap: anywhere; }
@media (max-width: 710px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  aside { position: static; }
  nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics, .section > .columns { grid-template-columns: minmax(0, 1fr); }
}
