:root {
  color-scheme: dark;
  --page: #111c28;
  --panel: #182634;
  --field: #121f2b;
  --line: #344658;
  --ink: #f0f5f9;
  --muted: #b7c6d4;
  --mint: #a0efcc;
  --dark: #0c3024;
  --radius: 16px;
  font: 100%/1.55 system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(100% - 3rem, 73rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: .25rem; }
.wordmark { display: inline-flex; align-items: center; gap: .75rem; font-weight: 680; }
.mark { width: 1.9rem; height: 1.9rem; border-radius: .55rem; background: var(--mint); display: grid; place-items: center; }
.mark::after { content: ''; width: .8rem; height: .65rem; border-block: 2px solid var(--dark); background: linear-gradient(var(--dark), var(--dark)) left center / 65% 2px no-repeat; }
.nav > a:last-child { color: var(--muted); font-size: .9rem; }
.hero { padding: clamp(2.4rem, 6vw, 5rem) 0 2rem; }
.hero h1 { font-size: clamp(2.75rem, 7vw, 5.3rem); line-height: 1; letter-spacing: -.064em; font-weight: 730; }
.hero h1 em { color: var(--mint); font-style: normal; }
.hero > p:not(.privacy) { margin-top: 1.2rem; max-width: 44ch; color: var(--muted); font-size: 1.12rem; }
.privacy { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem; color: var(--mint); font-size: .875rem; }
.privacy span { width: .48rem; height: .48rem; background: currentColor; border-radius: 50%; }
.workspace { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: start; gap: 1.2rem; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(1rem, 3vw, 1.55rem); }
.panel-heading, .field-meta { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: wrap; }
h2 { font-size: 1.28rem; letter-spacing: -.025em; line-height: 1.3; }
h3 { font-size: 1rem; }
.link-button { padding: .35rem .15rem; background: transparent; border: 0; color: var(--mint); font-size: .9rem; }
.link-button:hover { text-decoration: underline; text-underline-offset: .22em; }
.field-help { color: var(--muted); margin: .5rem 0 .85rem; }
textarea { display: block; padding: 1rem; border-radius: 10px; border: 1px solid var(--line); width: 100%; min-height: 18rem; resize: vertical; background: var(--field); color: var(--ink); }
textarea::placeholder { color: var(--muted); }
.field-meta { margin: .45rem 0 .9rem; font-size: .875rem; color: var(--muted); }
.primary, .secondary { border-radius: 9px; font-size: .9rem; font-weight: 690; padding: .6rem .95rem; }
.primary { width: 100%; border: 1px solid var(--mint); background: var(--mint); color: var(--dark); }
.primary:hover { background: #c4f8e2; }
.secondary { border: 1px solid var(--line); background: var(--field); color: var(--ink); }
.secondary:hover:enabled { border-color: var(--mint); }
.status:not(:empty) { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.status.error { color: #ffc5bb; }
.empty-state { min-height: 19rem; display: grid; align-content: center; justify-items: center; margin-top: 1rem; padding: 1.5rem; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }
.empty-state p { color: var(--muted); max-width: 32ch; margin-top: .45rem; }
.summary { margin: 1rem 0 .5rem; padding: .85rem 1rem; background: #213c3d; border-radius: 10px; }
.summary h3 { color: var(--mint); }
.summary ul, .report-section ul { margin: .4rem 0 0; padding-left: 1.25rem; overflow-wrap: anywhere; }
.summary li + li, .report-section li + li { margin-top: .4rem; }
.report-section { padding: .8rem 0; }
.report-section + .report-section { border-top: 1px solid var(--line); }
.report-section:last-child { padding-bottom: 0; }
.report-section p, .item-meta { color: var(--muted); font-size: .875rem; }
.report-section p { margin-top: .35rem; }
.item-meta { display: block; }
.count { margin-left: .3rem; color: var(--mint); font-weight: 540; font-size: .875rem; }
.guide { margin-top: 2.75rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
.guide p { margin-top: .25rem; color: var(--muted); }
.footer { padding: 1rem 0 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 73rem); }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .guide-grid { grid-template-columns: 1fr; gap: 1rem; }
  textarea { min-height: 14rem; }
  .empty-state { min-height: 10rem; }
}

@media (max-width: 370px) {
  .nav { min-height: 3.8rem; }
  .wordmark { font-size: .9rem; gap: .4rem; }
  .hero-break { display: none; }
}
