:root {
  --black: #141414;
  --ink: #171714;
  --muted: #535049;
  --paper: #f8f6ef;
  --white: #fff;
  --line: #dfdbce;
  --accent: #705600;
  --yellow: #ffd432;
  --heading: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #ad7e00; outline-offset: 4px; }
.wrap { width: min(100% - 64px, 1200px); margin-inline: auto; }
header { background: var(--black); color: var(--white); border-bottom: 1px solid #ffffff25; }
.bar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 23px var(--heading); letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand i { display: grid; grid-template-columns: repeat(2, 6px); gap: 3px; color: var(--yellow); }
.brand i b { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 1px; }
.brand i b:last-child { background: currentColor; }
nav, .header-actions { display: flex; align-items: center; gap: 28px; }
nav a, .navend { font-size: 14px; font-weight: 600; text-decoration: none; }
nav a { color: #e1ded4; }
.header-actions .navend:last-child { border: 1px solid #ffffff55; border-radius: 7px; padding: 8px 14px; }
h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.06; margin: 0 0 15px; letter-spacing: -.045em; overflow-wrap: anywhere; }
h1 { font-size: clamp(43px, 6vw, 82px); }
h2 { font-size: clamp(29px, 3.5vw, 48px); }
h3 { font-size: 25px; }
p { margin: 0 0 15px; }
.kicker { font: 12px/1.5 var(--mono); letter-spacing: .10em; color: var(--accent); margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 19px; max-width: 500px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; align-items: center; }
.btn, button { display: inline-block; background: var(--yellow); color: var(--black); border: 1px solid #c8a11b; border-radius: 7px; padding: 11px 16px; font: 700 15px/1.4 var(--body); text-decoration: none; cursor: pointer; }
.btn.alt, button.alt { background: transparent; color: var(--ink); border-color: #a39a83; }
.btn:hover, button:hover { filter: brightness(1.14); }
.hero { background: var(--black); color: var(--white); }
.hero-layout { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 48px; min-height: 540px; padding-block: 60px; }
.hero h1 { font-size: clamp(60px, 8.3vw, 114px); letter-spacing: -.075em; line-height: .93; margin: 20px 0 25px; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero .lead { color: #e1ded4; }
.hero .kicker { color: var(--yellow); }
.signal { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--yellow); border-radius: 50%; }
.hero .btn { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.hero .btn.alt { background: transparent; border-color: #ffffff55; color: white; }
.gear-scene { min-width: 0; min-height: 440px; position: relative; overflow: hidden; margin: 0; background: #252016; border: 1px solid #ffffff35; border-radius: 14px; }
.gear-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.demo-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 8px 13px 8px 8px; background: var(--yellow); color: var(--black); border-radius: 9px; box-shadow: 0 5px 18px #0006; text-decoration: none; }
.demo-tag img { display: block; width: 85px; height: 85px; border-radius: 3px; background: white; }
.demo-tag strong, .demo-tag small { display: block; }
.demo-tag strong { font: 800 17px var(--heading); }
.demo-tag small { font-size: 13px; font-weight: 700; }
.demo-tag:hover small { text-decoration: underline; }
.quick-facts { background: var(--yellow); }
.facts { display: grid; grid-template-columns: repeat(3,1fr); text-align: center; font-weight: 700; padding-block: 14px; }
.facts span + span { border-left: 1px solid #17171438; }
.band { padding-block: 68px; border-bottom: 1px solid var(--line); }
.workflow, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.steps, .rows { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.steps li > span { font: 13px var(--mono); color: var(--accent); margin-top: 5px; }
.steps h3, .steps p { margin-bottom: 5px; }
.steps p, .feature p:last-child { color: var(--muted); }
.features { background: #f0ead7; }
.features .split { gap: 16px; }
.feature { height: 100%; }
.feature h2 { font-size: clamp(26px, 3vw, 36px); }
.grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 25px; }
.card, .panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 23px; min-width: 0; }
.use-grid .card { border-top: 4px solid var(--accent); }
.card p:last-child, .panel p:last-child { margin-bottom: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.pill, .count { display: inline-block; background: #fff0a6; color: #513d00; border-radius: 5px; padding: 4px 8px; font: 600 11px/1.4 var(--mono); white-space: nowrap; letter-spacing: 0; vertical-align: middle; }
.pill.lost, .notice { background: #ffe5c7; color: #663811; }
.muted { color: var(--muted); }
details { border-top: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }
footer { background: var(--black); color: var(--white); }
footer .bar { min-height: 86px; }
.narrow { width: min(100% - 40px, 610px); margin: 48px auto 65px; }
.narrow h1, .dash h1 { font-size: clamp(37px, 5vw, 63px); }
.finder-intro { padding: 28px 29px 22px; background: var(--black); color: var(--white); border-radius: 13px 13px 0 0; }
.finder-intro .lead { color: #e1ded4; }
.finder-intro .kicker { color: var(--yellow); }
.finder-intro p:last-child { margin-bottom: 0; }
.finder-panel { border-radius: 0 0 13px 13px; }
.dash { padding-block: 45px 65px; }
.dash-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.dash-top p:last-child { margin-bottom: 0; overflow-wrap: anywhere; }
.dash-layout { display: grid; grid-template-columns: minmax(275px, 335px) minmax(0,1fr); gap: 25px; align-items: start; }
.dash-library { display: grid; gap: 25px; }
.dash-library h2, .admin-tags h2 { font-size: 32px; }
.dash-tools { display: grid; gap: 14px; }
.stack { display: grid; gap: 14px; }
.stack form, form.stack { margin: 0; }
label { display: grid; gap: 5px; font-weight: 700; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid #aba38e; border-radius: 7px; background: white; font: inherit; color: inherit; }
textarea { min-height: 98px; resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.notice { padding: 11px 14px; border-radius: 7px; }
.qr { display: block; width: min(165px,100%); height: auto; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 12px; }
.taggrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%, 230px),1fr)); gap: 13px; }
.message { white-space: pre-wrap; overflow-wrap: anywhere; }
.trap { position: absolute; left: -10000px; }
.empty { border: 1px dashed #aba38e; border-radius: 10px; padding: 18px; color: var(--muted); }
.batch { margin-bottom: 24px; }
.report { padding-top: 14px; border-top: 1px solid var(--line); }
time { font-size: 12px; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 0 0 20px; }
.admin-stats dt { font-size: 14px; color: var(--muted); }
.admin-stats dd { margin: 0; font: 800 36px var(--heading); }
.admin-search { display: flex; align-items: end; gap: 10px; margin-bottom: 14px; }
.admin-search label { flex: 1; }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .bar { gap: 12px; }
  nav { display: none; }
  .header-actions { gap: 12px; }
  .hero-layout, .workflow, .split, .dash-layout { grid-template-columns: 1fr; gap: 22px; }
  .hero-layout { min-height: auto; padding-block: 44px; }
  .hero h1 { font-size: clamp(48px, 11.5vw, 90px); }
  .gear-scene { min-height: clamp(340px, 65vw, 420px); }
  .band { padding-block: 42px; }
  .grid { grid-template-columns: 1fr; }
  .facts { font-size: 13px; }
  .facts span { padding-inline: 4px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  header, footer, .no-print, .batch, .buttons { display: none !important; }
  body { background: white; }
  .dash { padding: 0; }
  .dash-layout { display: block; }
  .card { break-inside: avoid; }
  .taggrid { grid-template-columns: repeat(3,1fr); }
}

.footer-links, .dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-intro { margin-bottom: 25px; }
.app-intro img { display: block; border-radius: 16px; margin-bottom: 20px; }
@media (display-mode: standalone) {
  .install-link { display: none; }
}
