/* Screen treatment inspired by the reference's floating charcoal controls.
   Loaded only for screens: printed signs keep their clean white layout. */
body {
  --ink: #242424;
  --muted: #606060;
  --line: #c7c7c7;
  --paper: #eeeeec;
  --wash: #dededd;
  --accent: #252525;
  --soft: #e4e8e1;
  color: var(--ink);
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 24%, #fafaf8 0%, #e4e4e2 48%, #cacac8 100%);
  background-attachment: fixed;
}
.site-head { max-width: 1180px; padding-top: 32px; padding-bottom: 24px; }
.brand-mark { border-radius: 2px; width: 34px; height: 34px; border-width: 7px; }
.brand-mark:after { width: 9px; height: 9px; bottom: -7px; right: -7px; }
.brand strong { font-size: 1.5rem; letter-spacing: -.06em; }
.brand small { color: #626262; }
nav { gap: 18px; }
nav a { padding: 8px 0; border-radius: 0; border-bottom: 1px solid transparent; color: #565656; }
nav a[aria-current] { background: transparent; border-color: #292929; color: #222; }
nav a:hover { color: #111; border-color: #929292; }
.hero { text-align: center; margin: 42px auto 32px; }
.hero h1, body[data-mode="simple"] .hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
  letter-spacing: -.065em;
  font-weight: 650;
  max-width: none;
}
.hero > p:last-child { max-width: 560px; margin-inline: auto; font-size: 1rem; color: #5b5b5b; }
.eyebrow { color: #626262; font-size: .7rem; letter-spacing: .18em; font-weight: 600; }
body[data-mode="simple"] .builder { max-width: 1080px; gap: 36px; padding-bottom: 64px; }
.privacy-note {
  background: transparent; border: 0; padding: 0; text-align: center;
  color: #616161; font-size: .875rem; margin-bottom: 2px;
}
.panel {
  border: 1px solid #ffffff85; border-radius: 4px; background: #eeeeec;
  box-shadow: 12px 20px 32px #00000016, -8px -8px 24px #ffffff80;
}
.panel h2 { font-size: 1.05rem; font-weight: 550; letter-spacing: -.025em; }
#network-panel, #style-panel, .sign-controls {
  --ink: #f1f1f1;
  --muted: #b3b3b3;
  --line: #515151;
  --accent: #eeeeee;
  background: linear-gradient(140deg, #303030, #242424 75%);
  color: #eeeeee; padding: 30px;
  border: 1px solid #4d4d4d; border-top-color: #686868;
  box-shadow: 12px 22px 28px #00000026, 3px 6px 8px #00000020, inset 0 1px 0 #ffffff0b;
}
#network-panel label, #style-panel label, .sign-controls label { font-size: .875rem; font-weight: 500; color: #e7e7e7; }
#network-panel .hint, #style-panel .hint, .sign-controls .hint { font-size: .875rem; color: #b8b8b8; }
:is(#network-panel, #style-panel, .sign-controls) input:not([type=checkbox]):not([type=range]):not([type=color]),
:is(#network-panel, #style-panel, .sign-controls) select,
:is(#network-panel, #style-panel, .sign-controls) textarea {
  background-color: #202020; border: 1px solid #525252; border-radius: 2px;
  color: #fafafa; padding: 12px 14px; min-height: 48px;
  box-shadow: inset 2px 3px 5px #00000035, 0 1px 0 #ffffff08;
}
:is(#network-panel, #style-panel, .sign-controls) input::placeholder,
:is(#network-panel, #style-panel, .sign-controls) textarea::placeholder { color: #a3a3a3; }
:is(#network-panel, #style-panel, .sign-controls) select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23dedede' stroke-width='1.5'/%3E%3C/svg%3E");
}
:is(#network-panel, #style-panel, .sign-controls) option { background: #242424; color: white; }
button, .button { border-radius: 3px; font-weight: 500; transition: transform .16s ease, box-shadow .16s ease; }
button:not(:disabled):hover, .button:hover { filter: none; transform: translateY(-1px); }
button:not(:disabled):active { transform: translateY(1px); }
:is(#network-panel, #style-panel, .sign-controls) button {
  background: #353535; border-color: #626262; color: #f5f5f5;
  box-shadow: 2px 3px 6px #00000030, inset 0 1px 0 #ffffff08;
}
#toggle-password { min-width: 65px; min-height: 48px; font-size: .875rem; }
:is(#network-panel, #style-panel, .sign-controls) button:hover { background: #414141; }
body[data-mode="simple"] #image-options { border-top-color: #525252; margin-top: 24px; padding-top: 22px; }
body[data-mode="simple"] #image-heading { font-size: .88rem; font-weight: 500; }
body[data-mode="simple"] .dropzone, .dropzone {
  background: #242424; border: 1px dashed #727272; border-radius: 2px;
  color: #d5d5d5; box-shadow: inset 2px 3px 6px #00000020; font-size: .875rem;
  padding: 22px 18px; margin-bottom: 12px; overflow-wrap: anywhere;
}
.dropzone::before {
  content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='%23dddddd' stroke-width='1.4'%3E%3Cpath d='M13 17V4m-5 5 5-5 5 5M5 16v6h16v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dropzone:hover, .dropzone.over { background: #333; border-color: #d0d0d0; }
body[data-mode="simple"] .size-labels { color: #b8b8b8; font-size: .75rem; }
input[type=range] { accent-color: #ededed; cursor: pointer; min-height: 28px; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: #666; border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; margin-top: -7px; height: 18px; width: 18px; border: 1px solid #eee; border-radius: 50%; background: #f5f5f5; box-shadow: 1px 3px 5px #0008; }
input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type=range]::-moz-range-track { height: 4px; background: #666; }
input[type=range]::-moz-range-thumb { height: 18px; width: 18px; border: 1px solid #eee; border-radius: 50%; background: #f5f5f5; box-shadow: 1px 3px 5px #0008; }
body[data-mode="simple"] .output { padding: 30px; top: 26px; }
.output .preview { border: 0; border-radius: 2px; box-shadow: 0 0 0 1px #00000006, 0 8px 16px #00000007; }
.preview-empty { color: #707070; font-size: .95rem; max-width: 250px; }
body[data-mode="simple"] .exports .row { margin-top: 12px; }
body[data-mode="simple"] #download-png {
  min-height: 50px; background: #292929; border-color: #414141; color: #fff;
  box-shadow: 4px 7px 12px #00000024, inset 0 1px 0 #ffffff16;
}
body[data-mode="simple"] #download-png:not(:disabled):hover { background: #383838; box-shadow: 4px 9px 15px #0000002c; }
body[data-mode="simple"] #make-sign { min-height: 48px; background: #f2f2f0; border-color: #b8b8b8; color: #333; box-shadow: 2px 3px 5px #00000009; }
body[data-mode="simple"] .meter { font-size: .875rem; border-radius: 2px; line-height: 1.5; }
body[data-mode="simple"] .meter.good { color: #3e4e3a; background: #e0e5dc; }
body[data-mode="simple"] .meter.marginal { color: #5b5347; background: #e8e4dc; }
body[data-mode="simple"] .output > .hint { font-size: .875rem; color: #626262; margin-top: 18px; }
.notice, .warning { border-radius: 2px; }
:is(#network-panel, #style-panel, .sign-controls) a { color: #e1e1e1; }
:is(#network-panel, #style-panel, .sign-controls) input:focus-visible,
:is(#network-panel, #style-panel, .sign-controls) select:focus-visible,
:is(#network-panel, #style-panel, .sign-controls) textarea:focus-visible,
:is(#network-panel, #style-panel, .sign-controls) button:focus-visible,
:is(#network-panel, #style-panel, .sign-controls) .dropzone:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid #444; outline-offset: 4px; }
.site-foot { max-width: 1000px; padding: 26px 0 34px; border-color: #bcbcbc; font-size: .75rem; }
.site-foot .simple-only { text-align: center; }
.sign-sheet { border-radius: 2px; border-color: #e4e4e4; box-shadow: 10px 18px 30px #00000015; }
.sign-sheet .eyebrow { color: #444; }
.help .panel { background: #f4f4f2; }
@media(max-width:740px) {
  .site-head { padding: 24px 22px 12px; flex-direction: row; align-items: center; flex-wrap: wrap; }
  nav { width: auto; gap: 16px; }
  nav a { font-size: .875rem; padding: 8px 0; }
  .hero { margin-top: 26px; padding: 0 24px; }
  .hero > p:last-child { font-size: .94rem; }
  .hero .eyebrow { font-size: .62rem; letter-spacing: .12em; }
  body[data-mode="simple"] .builder { padding: 0 20px 36px; gap: 24px; }
  #network-panel, #style-panel, .sign-controls, body[data-mode="simple"] .output { padding: 24px; }
  .site-foot { margin: 0 24px; }
  .privacy-note { font-size: .74rem; }
}
@media(prefers-reduced-motion:reduce) {
  button, .button { transition: none; }
  button:not(:disabled):hover, .button:hover { transform: none; }
}

:is(#network-panel, #style-panel, .sign-controls) .hint.warning { color: #704b14; }
:is(#network-panel, #style-panel, .sign-controls) .notice.info { background: #393939; color: #dddddd; }
