/* Qerron brand — tokens from /workspace/vault/brand/DESIGN_BRIEF.md §10 (brand/qerron-tokens.css) */
:root {
  --void: #050507; --graphite: #0E1016; --gunmetal: #16181F; --elevated: #1C1F28; --line: #2A2E38;
  --steel-mid: #777880; --steel-muted: #8A8B93; --steel: #C4C5CB; --steel-light: #E8EAF0;
  --ion: #3D8EFF; --ion-bright: #5DBCF9; --ion-deep: #275CCE; --ion-dim: rgba(61,142,255,0.18);
  --ion-glow: 0 0 28px rgba(61,142,255,0.4);
  --danger: #FF5C5C; --ok: #3DDC97;
  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--void); color: var(--steel); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--steel-light); margin: 0 0 .4em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; margin-top: 1.4em; } h3 { font-size: 1.05rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; word-break: break-all; color: var(--steel-light); }
a { color: var(--ion-bright); }
::-moz-selection { background: var(--ion-dim); }
::selection { background: var(--ion-dim); }
input, select, textarea { font: inherit; padding: .55em .7em; border: 1px solid var(--line); border-radius: 8px; background: var(--elevated); color: var(--steel-light); width: 100%; }
input::-moz-placeholder, textarea::-moz-placeholder { color: var(--steel-mid); }
input::placeholder, textarea::placeholder { color: var(--steel-mid); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ion); outline-offset: 0; border-color: transparent; }
.btn { font-family: var(--sans); font-size: inherit; font-weight: 600; padding: .55em 1em; border-radius: 8px; border: 1px solid var(--line); background: var(--elevated); color: var(--steel-light); cursor: pointer; white-space: nowrap; transition: box-shadow .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--steel-mid); }
.btn.primary { background: var(--ion); color: var(--void); border-color: var(--ion); }
.btn.primary:hover { background: var(--ion-bright); border-color: var(--ion-bright); box-shadow: var(--ion-glow); }
.btn.danger { color: var(--danger); } .btn.danger:hover { border-color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { border-color: var(--line); }
.btn.small { padding: .3em .65em; font-size: .85rem; }
.btn.lg { padding: .85em 1.5em; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.linkbtn { white-space: nowrap; background: none; border: none; color: var(--steel); font: inherit; cursor: pointer; padding: 0; }
.linkbtn:hover { color: var(--steel-light); }
.row { display: flex; gap: .5rem; align-items: center; }
.muted { color: var(--steel-muted); } .fine { font-size: .82rem; color: var(--steel-muted); }
.pill { font-size: .75rem; padding: .15em .6em; border-radius: 99px; background: var(--elevated); color: var(--steel); font-weight: 600; border: 1px solid var(--line); }
.pill.ok { background: rgba(61,220,151,.12); color: var(--ok); border-color: rgba(61,220,151,.3); }
.pill.ion { background: var(--ion-dim); color: var(--ion-bright); border-color: rgba(61,142,255,.35); }
.disclaimer { font-size: .8rem; color: var(--steel-mid); margin-top: 2rem; }
.eyebrow { color: var(--ion-bright); font-weight: 600; letter-spacing: .06em; font-size: .8rem; margin: 0 0 .8rem; font-family: var(--sans); }
.lede { font-size: 1.08rem; color: var(--steel); max-width: 60ch; }
.err { color: var(--danger); }
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo svg { flex: none; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--steel); letter-spacing: -0.01em; }

/* Landing (brief §8) */
.lp { background: var(--void); min-height: 100%; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.lp-narrow { max-width: 820px; }
.lp-nav { position: sticky; top: 0; z-index: 30; background: rgba(5,5,7,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.lp-nav-in { display: flex; align-items: center; gap: 2rem; height: 64px; }
.lp-links { display: flex; gap: 1.6rem; } .lp-links a { color: var(--steel-muted); text-decoration: none; font-size: .92rem; } .lp-links a:hover { color: var(--steel-light); }
.lp-nav-right { margin-left: auto; display: flex; gap: 1.2rem; align-items: center; }
.lp-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 3rem; }
.lp-hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.lp-sub { font-size: 1.08rem; color: var(--steel); max-width: 58ch; margin: 1rem 0 1.6rem; }
.lp-ctas { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.lp-secondary { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line); } .lp-secondary:hover { color: var(--steel-light); border-color: var(--ion); }
.lp-micro { font-size: .85rem; color: var(--steel-muted); margin-top: 1rem; }
.lp-hero-art { position: relative; }
.lp-hero-art img { width: 100%; height: auto; display: block; border-radius: 18px; -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); }
.lp-chips { display: flex; flex-wrap: wrap; gap: .7rem; padding-bottom: 3rem; }
.lp-chips span { border: 1px solid var(--line); background: var(--graphite); color: var(--steel); padding: .45em .95em; border-radius: 99px; font-size: .85rem; }
.lp-chips span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ion); margin-right: .55em; vertical-align: middle; box-shadow: 0 0 8px var(--ion); }
.lp-sec { padding-top: 4.5rem; padding-bottom: 1rem; }
.lp-sec h2, .lp-band h2, .lp-close h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; margin-top: 0; max-width: 28ch; }
.lp-body { color: var(--steel); font-size: 1.04rem; max-width: 66ch; }
.lp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.lp-steps li, .lp-tile, .lp-price { background: var(--gunmetal); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.lp-steps p, .lp-tile p, .lp-price p { color: var(--steel-muted); margin: 0; }
.lp-steps .n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ion-dim); color: var(--ion-bright); font-family: var(--display); font-weight: 600; margin-bottom: 1rem; }
.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2rem; }
.lp-grid.three { grid-template-columns: repeat(3, 1fr); }
.lp-tile { border-top: 2px solid var(--ion-deep); }
.lp-band { margin-top: 4.5rem; background: var(--graphite); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4.5rem 0; }
.lp-band-in { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center; }
.lp-timeline-art { background: var(--gunmetal); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.6rem 1.6rem 1.9rem; position: relative; }
.lp-timeline-art::before { content: ""; position: absolute; left: 2.15rem; top: 2rem; bottom: 2rem; width: 2px; background: linear-gradient(var(--line), var(--ion)); }
.tl-row { position: relative; display: flex; align-items: center; gap: 1rem; padding: .7rem 0; color: var(--steel); font-size: .95rem; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--steel-mid); border: 2px solid var(--gunmetal); z-index: 1; flex: none; }
.tl-row.dim { color: var(--steel-mid); } .tl-row.dim .tl-dot { background: var(--line); }
.tl-row.ion { color: var(--ion-bright); font-weight: 600; } .tl-row.ion .tl-dot { background: var(--ion); box-shadow: var(--ion-glow); }
.lp-tl { color: var(--steel); padding-left: 1.2rem; } .lp-tl li { margin: .35rem 0; }
.lp-shot { display: block; width: 100%; height: auto; margin-top: 2rem; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(61,142,255,.08); }
.lp-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 1.2rem; margin-top: 2rem; }
.lp-price { display: flex; flex-direction: column; gap: .8rem; }
.lp-price h3 { margin: 0; } .lp-price .row { justify-content: space-between; }
.lp-price.featured { border-color: rgba(61,142,255,.5); box-shadow: 0 0 0 1px rgba(61,142,255,.15), 0 0 40px rgba(61,142,255,.08); }
.amt { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--steel-light); } .amt span { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--steel-muted); }
.lp-price .btn { margin-top: auto; align-self: flex-start; }
.lp-faq { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.lp-faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--steel-light); font-size: 1.05rem; }
.lp-faq p { color: var(--steel-muted); margin: .6rem 0 0; }
.lp-close { margin-top: 5rem; padding: 5rem 0; text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(61,142,255,.12), transparent), var(--graphite); border-top: 1px solid var(--line); }
.lp-close-in { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; } .lp-close h2 { max-width: 30ch; }
.lp-foot { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.lp-foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.lp-foot-in > div { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.lp-foot-in b { color: var(--steel-light); font-weight: 600; } .lp-foot-in a, .lp-foot-in span, .lp-foot-in .linkbtn { color: var(--steel-muted); text-decoration: none; text-align: left; font-size: .9rem; }
.lp-foot .disclaimer { margin-top: 2.5rem; }
@media (max-width: 900px) {
  .lp-hero, .lp-band-in { grid-template-columns: 1fr; } .lp-steps, .lp-grid, .lp-grid.three, .lp-prices { grid-template-columns: 1fr; }
  .lp-links { display: none; } .lp-foot-in { grid-template-columns: 1fr 1fr; }
  .lp-nav-right .linkbtn { display: none; } .lp-nav-in { gap: 1rem; }
}

/* App shell (LastPass-style: top search bar, left nav, item grid, right detail panel) */
.app { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 60px 1fr; height: 100vh; background: var(--void); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.5rem; padding: 0 1.2rem; background: var(--graphite); border-bottom: 1px solid var(--line); }
.search { max-width: 520px; background: var(--elevated); }
.acct { margin-left: auto; position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--elevated); color: var(--steel-light); font-weight: 700; cursor: pointer; font-family: var(--display); }
.avatar:hover { border-color: var(--ion); }
.menu { position: absolute; top: 110%; right: 0; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5); min-width: 200px; z-index: 20; padding: .35rem; }
.menu button { display: block; width: 100%; text-align: left; padding: .55em .8em; background: none; border: none; font: inherit; color: var(--steel-light); cursor: pointer; border-radius: 6px; }
.menu button:hover { background: var(--gunmetal); }
.menu-id { padding: .5em .8em; font-size: .8rem; color: var(--steel-muted); border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.menu.right { right: 0; }
.sidebar { background: var(--gunmetal); color: var(--steel); padding: 1rem .7rem; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid var(--line); }
.sidebar nav button { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; padding: .6em .8em; background: none; border: none; color: var(--steel-muted); font: inherit; border-radius: 8px; cursor: pointer; position: relative; }
.sidebar nav button:hover { background: var(--elevated); color: var(--steel-light); }
.sidebar nav button.active { background: var(--elevated); color: var(--steel-light); font-weight: 600; box-shadow: inset 3px 0 0 var(--ion); }
.sidebar hr { border: none; border-top: 1px solid var(--line); margin: .7rem 0; }
.ic { width: 1.3em; text-align: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: auto; }
.dot.warn { background: var(--ion-bright); box-shadow: 0 0 8px var(--ion); }
.checkin-mini { margin-top: auto; background: var(--elevated); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; font-size: .85rem; color: var(--steel-muted); }
.checkin-mini b { display: block; font-size: 1rem; margin-bottom: .5rem; color: var(--steel-light); font-family: var(--display); }
.checkin-mini.due { border-color: rgba(61,142,255,.5); box-shadow: 0 0 20px rgba(61,142,255,.12); }
.content { overflow: hidden; display: flex; background: var(--void); }
.loading { margin: auto; color: var(--steel-muted); }
.list-wrap { display: grid; grid-template-columns: 1fr; width: 100%; height: 100%; }
.list-wrap.with-panel { grid-template-columns: 1fr 380px; }
.list, .page { overflow-y: auto; padding: 1.5rem 2rem 3rem; }
.page { max-width: 820px; width: 100%; }
.list-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.list-head h1 { margin: 0; }
.list-head select { width: auto; margin-left: auto; }
.add-wrap { position: relative; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.tile { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; -moz-column-gap: .7rem; column-gap: .7rem; text-align: left; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gunmetal); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--steel-mid); }
.tile.sel { border-color: var(--ion); box-shadow: 0 0 0 1px var(--ion) inset, 0 0 24px rgba(61,142,255,.15); }
.badge { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--steel-light); font-weight: 600; font-size: 1.15rem; font-family: var(--display); background: var(--elevated); border: 1px solid rgba(255,255,255,.06); }
.t-main { font-weight: 600; color: var(--steel-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-sub { color: var(--steel-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-vault { color: var(--ion-bright); font-size: .75rem; font-weight: 600; }
.empty { text-align: center; padding: 4rem 1rem; color: var(--steel-muted); }
.panel { background: var(--graphite); border-left: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; min-height: 0; }
.panel-head { display: flex; align-items: center; gap: .5rem; padding: 1.2rem 1.2rem .6rem; }
.panel-head h2 { margin: 0; flex: 1; }
.title-input { font-family: var(--display); font-size: 1.2rem; }
.x { background: none; border: none; font-size: 1.6rem; color: var(--steel-muted); cursor: pointer; } .x:hover { color: var(--steel-light); }
.panel-body { padding: 0 1.2rem; overflow-y: auto; flex: 1; }
.panel-foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); display: flex; gap: .5rem; }
.field { display: block; margin: .9rem 0; }
.field > span { display: block; font-size: .74rem; font-weight: 600; color: var(--steel-mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.value { justify-content: space-between; background: var(--elevated); border: 1px solid var(--line); color: var(--steel-light); padding: .45rem .6rem; border-radius: 8px; }
.value pre { margin: 0; white-space: pre-wrap; font: inherit; }
.check { display: flex; gap: .5rem; align-items: center; margin: .4rem 0; } .check input { width: auto; accent-color: var(--ion); }
.meta { font-size: .82rem; color: var(--steel-mid); margin-top: 1.5rem; }
.card { background: var(--gunmetal); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: .8rem 0; }
.card-head { display: flex; align-items: baseline; gap: .8rem; justify-content: space-between; }
.members { list-style: none; padding: 0; } .members li { display: flex; gap: .7rem; align-items: center; padding: .3rem 0; }
.invite { border-top: 1px dashed var(--line); margin-top: .8rem; padding-top: .8rem; display: grid; gap: .7rem; }
.invite label { display: flex; gap: .6rem; align-items: center; } .invite select { width: auto; }
.linkbox { display: flex; gap: .5rem; align-items: center; background: var(--ion-dim); border: 1px solid rgba(61,142,255,.35); padding: .6rem .8rem; border-radius: 8px; margin-top: .6rem; }
.linkbox code { flex: 1; }
.status { border-left: 4px solid var(--ok); }
.status.grace, .status.releasing { border-left-color: var(--ion); box-shadow: 0 0 30px rgba(61,142,255,.1); }
.status.released { border-left-color: var(--danger); }
.status-main { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.status-label { font-family: var(--display); font-size: 1.25rem; color: var(--steel-light); font-weight: 600; }
.modal-bg { position: fixed; inset: 0; background: rgba(5,5,7,.72); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; }
.modal { background: var(--gunmetal); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; max-width: 440px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.toasts { position: fixed; bottom: 1rem; right: 1rem; display: grid; gap: .5rem; z-index: 60; }
.toast { padding: .7rem 1rem; border-radius: 10px; color: var(--steel-light); background: var(--elevated); border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(0,0,0,.5); max-width: 340px; }
.toast.error { border-color: var(--danger); color: #FFD6D6; } .toast.success { border-color: rgba(61,220,151,.5); }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 56px auto 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; padding: .4rem; } .sidebar nav { display: flex; } .sidebar hr, .checkin-mini { display: none; }
  .sidebar nav button { white-space: nowrap; }
  .list-wrap.with-panel { grid-template-columns: 1fr; } .list-wrap.with-panel .list { display: none; }
}
.ic { display: inline-grid; place-items: center; color: var(--steel-mid); }
.sidebar nav button:hover .ic { color: var(--steel); }
.sidebar nav button.active .ic { color: var(--ion); }

