@font-face { font-family:"SSCP Roboto"; src:url("fonts/Roboto-Variable.ttf") format("truetype"); font-weight:400 700; font-style:normal; font-display:swap; }
/* SSCP Black Iron - compact base/theme layer. Component/layout rules live in app.css. */
:root {
  --radius-sm: 3px;
  --font-mono: "SSCP Roboto", sans-serif;
  --font-sans: "SSCP Roboto", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.016) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(315deg, rgba(255,255,255,.012) 25%, transparent 25%) 0 0 / 14px 14px,
    var(--panel-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden, [hidden] { display: none !important; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-dim); font-size: 13px; }
a { color: var(--brass); text-decoration: none; }
canvas { max-width: 100%; }

main#view { max-width: 620px; margin: 0 auto; padding: 22px 18px 104px; min-height: 60vh; }
h1 { margin: 2px 0 4px; font-size: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; }
h2 { margin: 0 0 14px; font-size: 20px; font-weight: 500; letter-spacing: .01em; }
h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: .01em; }
p { margin: 0 0 8px; }

input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  margin: 6px 0;
  font-size: 16px;
  font-family: inherit;
  background: var(--panel-bg);
  color: var(--ink);
  border: 1px solid var(--field-line, var(--line));
  border-radius: 4px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brass); box-shadow: inset 3px 0 0 rgba(var(--accent-rgb),.8); }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input[readonly] { color: var(--ink-dim); }
textarea { min-height: 48px; resize: vertical; }

button {
  width: 100%;
  padding: 12px 18px;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
button:hover { background: var(--surface); border-color: var(--line); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; }
.icon-btn { width: 36px; height: 36px; padding: 6px; background: none; color: var(--text-secondary); border: none; border-radius: 3px; cursor: pointer; }
.icon-btn:hover, .icon-btn:active { color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 100%; height: 100%; }
.cta {
  padding: 16px;
  background: var(--brass);
  color: var(--brass-ink);
  border: 1px solid var(--line-active);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}

.cta:hover, .cta:active { background: var(--cta-hover); color: var(--brass-ink); border-color: var(--brass); }

.modal-overlay { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; z-index: 200; background: rgba(0,0,0,.68); }
.modal { width: 100%; max-width: 480px; max-height: 85vh; padding: 22px 20px 20px; overflow-y: auto; background: var(--panel-bg); border: 1px solid var(--line); border-radius: 6px 6px 0 0; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.modal-buttons { display: flex; gap: 10px; margin-top: 12px; }
.modal-buttons button { margin: 0; }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; gap: 8px; align-items: center; max-width: 90vw; padding: 12px 18px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; opacity: 0; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; }

  .modal-overlay { align-items: center; }
  .modal { border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

::selection { background: var(--brass); color: var(--brass-ink); }
input, textarea { caret-color: var(--brass); }
button, input, select, textarea { scroll-margin-block: 24px; }
canvas:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (forced-colors: active) { button[aria-pressed="true"] { border: 2px solid Highlight !important; } }

body { font-weight:400; font-synthesis:none; }
