/* Lumio app pages: sign in, account, Chat. Shares tokens with styles.css. */
[hidden] { display: none !important; }
body.app { min-height: 100svh; display: flex; flex-direction: column; }
.app-head {
  display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 var(--pad);
  border-bottom: 1px solid var(--line); background: #070708e6; backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.app-head .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.app-head .mark { color: var(--text); }
.app-head nav { display: flex; gap: 22px; margin-left: 18px; }
.app-head nav a { color: var(--dim); text-decoration: none; font-size: 14px; }
.app-head nav a:hover, .app-head nav a[aria-current="page"] { color: var(--text); }
.app-head .spacer { flex: 1; }
.app-head .btn { flex: none; }
.who { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; text-decoration: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--accent); color: #0b0b0c; font: 650 13px var(--sans); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: #ffffff08; color: var(--text); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.btn:hover { background: #ffffff12; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--text); color: #0b0b0c; border-color: transparent; font-weight: 600; }
.btn.primary:hover { background: #fff; }
.btn.accent { background: var(--accent); color: #0b0b0c; border-color: transparent; font-weight: 600; }
.btn.accent:hover { background: #a2c7ff; }
.btn.danger { color: var(--warn); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }

.notice { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line2); background: #ffffff08; font-size: 14px; color: var(--dim); }
.notice.ok { border-color: #7ee2a855; background: #7ee2a812; color: #bff1d3; }
.notice.err { border-color: #ff8a7a55; background: #ff8a7a12; color: var(--warn); }

/* ---------------------------------------------------------------- sign in */
.center { flex: 1; display: grid; place-items: center; padding: 48px var(--pad); }
.signin-card { width: min(420px, 100%); text-align: center; padding: 44px 36px 32px; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(420px 220px at 50% 0%, #86b7ff14, transparent 70%), var(--card); }
.signin-card .big-mark { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--text); }
.signin-card h1 { font: 400 40px/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 10px; }
.signin-card p { color: var(--dim); margin: 0 0 26px; font-size: 15px; }
.google-btn { width: 100%; height: 48px; font-size: 15px; }
.google-btn svg { flex: none; }
.fine { color: var(--label); font-size: 12.5px; margin-top: 22px; }
.fine a { color: var(--dim); }
.signin-card .notice { margin-bottom: 18px; text-align: left; }
.signin-card .or { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--label); font-size: 13px; }
.signin-card .or::before, .signin-card .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.signin-form { display: grid; gap: 16px; text-align: left; }
.signin-card .field { display: grid; gap: 6px; }
.signin-card .field label { color: var(--dim); font-size: 13px; }
.signin-card .field input { width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text); font: 400 16px var(--sans); outline: none; transition: box-shadow .15s; }
.signin-card .field input:focus { box-shadow: 0 0 0 3px #86b7ff55; }
.signin-card .field input::placeholder { color: var(--label); }
.signin-card .field input[autocomplete="one-time-code"] { font-family: var(--mono); letter-spacing: .2em; }
.signin-card .hint { margin: 0; color: var(--label); font-size: 12.5px; }
.signin-form .btn.accent { width: 100%; height: 48px; margin-top: 4px; font-size: 15px; }
.signin-card .alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin: 18px 0 0; font-size: 14px; }
.signin-card .alt + .alt { margin-top: 8px; }
.signin-card .fine { margin: 26px 0 0; }
.signin-card .link { padding: 0; border: 0; background: none; color: var(--dim); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.signin-card .link:hover { color: var(--text); }
.signin-card .link:disabled { opacity: .5; cursor: default; }
.signin-card .link b { color: var(--text); font-weight: 600; }
/* the reset step's username for password managers: there, but not seen */
.pm-user { position: absolute; width: 2px; height: 2px; opacity: 0; pointer-events: none; }
@media (max-width: 420px) { .signin-card { padding: 36px 22px 26px; } .signin-card h1 { font-size: 36px; } }

/* ---------------------------------------------------------------- account */
.page { width: min(980px, 100%); margin: 0 auto; padding: 44px var(--pad) 90px; display: grid; gap: 22px; }
.page h1 { font: 400 clamp(38px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.02em; }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 24px; }
.panel h2 { font: 600 17px var(--sans); letter-spacing: -.01em; margin-bottom: 14px; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile .avatar { width: 56px; height: 56px; font-size: 22px; }
.profile .name { font-weight: 600; font-size: 18px; }
.profile .email { color: var(--dim); font-size: 14px; }
.profile .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.plan-now { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-now .plan-name { font: 400 34px/1 var(--serif); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--sans); background: #86b7ff1f; color: var(--accent); }
.pill.warn { background: #ffb4a81f; color: var(--warn); }
.meters { display: grid; gap: 14px; margin-top: 18px; }
.meter .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--dim); margin-bottom: 6px; }
.meter .bar { height: 8px; border-radius: 999px; background: #ffffff10; overflow: hidden; }
.meter .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #c0d8ff); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #0e0e11; transition: border-color .2s; }
.plan.current { border-color: #86b7ff66; background: radial-gradient(260px 140px at 50% 0%, #86b7ff14, transparent 70%), #0e0e11; }
.plan.wanted { border-color: var(--accent); box-shadow: 0 0 0 3px #86b7ff33; }
.plan .p-name { font-weight: 600; }
.plan .p-price { font: 400 30px/1 var(--serif); }
.plan .p-price small { font: 400 13px var(--sans); color: var(--label); }
.plan .p-desc { color: var(--dim); font-size: 13.5px; flex: 1; }
.plan .btn { width: 100%; margin-top: 6px; }
/* Max's two sizes (account.js maxCard): each size's price, list and button, laid out as the card's own. */
.plan .p-size { display: contents; }
@media (max-width: 640px) { .app-head nav { display: none; } }
@media (max-width: 820px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile { flex-wrap: wrap; } .profile .actions { margin-left: 0; } }
@media (max-width: 460px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.code-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.code-form label { color: var(--dim); font-size: 14px; }
.code-form input, .code-make select, .code-make input { height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: #0d0d10; color: var(--text); font: 500 14px var(--mono, monospace); letter-spacing: .04em; }
.code-form input { flex: 1; min-width: 200px; max-width: 280px; text-transform: uppercase; }
.code-form input::placeholder { text-transform: none; color: var(--label); letter-spacing: .02em; }
.code-msg { min-height: 18px; margin: 8px 0 0; font-size: 13px; color: var(--dim); }
.code-msg.bad { color: var(--warn); }

/* plan codes (/admin) */
.code-make { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.code-make select { font-family: var(--sans); letter-spacing: 0; }
.code-make input { width: 70px; font-family: var(--sans); letter-spacing: 0; }
.code-new { display: grid; gap: 6px; margin-top: 14px; }
.code-new .code { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #86b7ff55; background: #86b7ff0d; }
.code-new .code b { flex: 1; font: 500 15px var(--mono, monospace); letter-spacing: .06em; user-select: all; }
.code-rows { display: grid; margin-top: 14px; }
.code-row { display: flex; gap: 10px; align-items: baseline; padding: 9px 2px; border-top: 1px solid var(--line); font-size: 13.5px; }
.code-row .hint { font-family: var(--mono, monospace); color: var(--dim); }
.code-row .grow { flex: 1; color: var(--dim); }
.code-row .used { color: var(--text); }

/* ---------------------------------------------------------------- account, 2026-10-20 look
   (the owner's "make this page look better"): wider, the profile and the plan side by side,
   the plans as even cards with short lists, then Sync and the danger zone. Scoped to .acct
   (the admin page shares .page and .panel). */
.acct { width: min(1120px, 100%); gap: 26px; position: relative; isolation: isolate; }
.acct::before {
  content: ''; position: absolute; inset: -80px 0 auto; height: 460px; z-index: -1; pointer-events: none;
  /* each light fades out well inside the box, so it never shows an edge */
  background: radial-gradient(300px 180px at 26% 44%, #86b7ff1c, transparent 70%), radial-gradient(280px 160px at 80% 34%, #b48cff12, transparent 70%);
}
.acct-hero { display: grid; gap: 8px; }
.acct-sub { margin: 0; color: var(--dim); font-size: 15px; }
.acct-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: stretch; }
.acct .panel { border-radius: 22px; padding: 24px; background: linear-gradient(180deg, #ffffff06, transparent 45%), var(--card); }
.acct .profile { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 20px; }
.profile-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-text { min-width: 0; }
.acct .profile .avatar { width: 60px; height: 60px; font-size: 24px; box-shadow: 0 0 0 4px #ffffff0a; }
.acct .profile .name { font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .profile .email { overflow-wrap: anywhere; }
.acct .profile-how { margin-top: 4px; color: var(--label); font-size: 12.5px; }
.acct .profile .actions { margin-left: 0; justify-content: flex-start; padding-top: 18px; border-top: 1px solid var(--line); }
.acct .eyebrow { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--label); margin-bottom: 12px; }
.acct .plan-now .plan-name { font-size: 42px; letter-spacing: -.02em; }
.acct .meters { margin-top: 20px; }
.acct .meter .bar { height: 10px; }
.acct .usage-note { margin: 14px 0 0; }

.acct-plans { display: grid; gap: 16px; scroll-margin-top: 80px; }
.acct-plans-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.acct-plans-head h2 { font: 400 34px/1.1 var(--serif); letter-spacing: -.01em; }
.acct-plans-head p { margin: 0; color: var(--dim); font-size: 14px; }
.acct .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.acct .plan { position: relative; padding: 20px 18px 18px; gap: 12px; border-radius: 20px; background: var(--card); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.acct .plan:hover { border-color: var(--line2); transform: translateY(-2px); }
.acct .plan.pop { border-color: #86b7ff40; }
.acct .plan.current { border-color: #86b7ff85; background: radial-gradient(260px 160px at 50% 0%, #86b7ff1e, transparent 70%), var(--card); }
.acct .plan.wanted { border-color: var(--accent); box-shadow: 0 0 0 3px #86b7ff33, 0 24px 60px -30px #86b7ff70; }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.acct .plan .p-name { font-size: 15px; }
.p-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 600 11px var(--sans); background: #ffffff10; color: var(--dim); white-space: nowrap; }
.p-tag.pop { background: #86b7ff24; color: var(--accent); }
.acct .plan.current .p-tag { background: var(--accent); color: #0b0b0c; }
.acct .plan .p-price { font-size: 40px; letter-spacing: -.02em; }
.p-feats { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; flex: 1; align-content: start; }
.p-feats li { position: relative; padding-left: 20px; color: var(--dim); font-size: 13.5px; line-height: 1.45; }
.p-feats li::before { content: ''; position: absolute; left: 1px; top: 6px; width: 9px; height: 5px; border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg); }
.acct .plan .p-scope { color: var(--label); font-size: 12.5px; }
.acct .plan .btn { margin-top: 2px; height: 38px; }
.acct .code-form { margin-top: 0; padding: 14px 16px; border: 1px dashed var(--line2); border-radius: 16px; }
.acct .code-msg:empty { display: none; }

.acct .acct-row { display: flex; align-items: center; gap: 14px; }
.acct-row-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffff0d; color: var(--dim); }
.acct-row-text { flex: 1; min-width: 0; }
.acct .acct-row-text h2 { margin-bottom: 2px; font-size: 15px; }
.acct .acct-row-text .email { margin: 0; }
.acct .delete-panel { border-color: #ff8a7a33; background: linear-gradient(180deg, #ff8a7a09, transparent 55%), var(--card); }
.acct .delete-panel h2 { color: var(--warn); }

@media (max-width: 1080px) { .acct .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .acct-top { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .acct .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .acct .plans { grid-template-columns: 1fr; }
  .acct .acct-row { flex-wrap: wrap; }
  .acct .plan-now .plan-name { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { .acct .plan, .acct .plan:hover { transition: none; transform: none; } }

/* ---------------------------------------------------------------- legal pages */
.doc { width: min(760px, 100%); margin: 0 auto; padding: 48px var(--pad) 90px; }
.doc h1 { font: 400 clamp(38px, 5vw, 52px)/1.05 var(--serif); margin-bottom: 8px; }
.doc .updated { color: var(--label); font-size: 13.5px; margin: 0 0 30px; }
.doc h2 { font: 600 18px var(--sans); margin: 30px 0 8px; }
.doc p, .doc li { color: var(--dim); line-height: 1.7; }
.doc a { color: var(--accent); }
.doc [id] { scroll-margin-top: 80px; } /* under the sticky header (/terms#create) */

/* Spend (owner only): OpenRouter charges next to what Lumio counted */
.spend .spend-top { display: grid; gap: 8px; }
.spend .sub { color: var(--dim); font-size: 15px; }
.spend .live { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 4px; border-radius: 50%; background: #7ee2a8; box-shadow: 0 0 0 0 #7ee2a866; animation: live 2s ease-out infinite; vertical-align: middle; }
@keyframes live { 70% { box-shadow: 0 0 0 7px #7ee2a800; } 100% { box-shadow: 0 0 0 0 #7ee2a800; } }
@media (prefers-reduced-motion: reduce) { .spend .live { animation: none; } }
.spend-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spend-card { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 22px; display: grid; gap: 4px; align-content: start; }
.spend-card .label { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 6px; }
.spend-card .big { font: 400 44px/1 var(--serif); letter-spacing: -.02em; }
.spend-card .dim { color: var(--dim); font-size: 13px; }
.spend-card .counted { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; display: grid; gap: 2px; }
.spend-card .counted span { color: var(--dim); font-size: 12.5px; }
.spend-card .match { justify-self: start; margin-top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; background: #ffffff0d; color: var(--dim); }
.spend-card .match.ok { background: #7ee2a81a; color: #9ff0c0; }
.spend-card .match.warn { background: #ffb86b1a; color: #ffcf99; cursor: help; }
.spend .split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spend .split div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #ffffff06; border: 1px solid var(--line); }
.spend .split span { color: var(--dim); font-size: 12.5px; }
.spend .split b { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
#money-split { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.spend .fine { color: var(--dim); font-size: 13px; margin-top: 12px; }
.spend #note { margin-top: 0; }
.spend .fine.first { margin-top: 0; margin-bottom: 10px; }
.spend .why-row { margin-bottom: 10px; }
.spend .why-quote { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: #ffffff06; border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.spend .why-quote span { display: block; margin-top: 6px; color: var(--dim); font-size: 12.5px; }
@media (max-width: 760px) { .spend-cards, .spend .split { grid-template-columns: 1fr 1fr; } .spend-cards .spend-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .spend-cards, .spend .split { grid-template-columns: 1fr; } }

/* Subscribe: Lumio's page around Stripe's payment form (/checkout) */
.pay { width: min(1040px, 100%); margin: 0 auto; padding: 44px var(--pad) 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: start; }
.pay-eyebrow { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.pay-summary h1 { font: 400 clamp(40px, 6vw, 60px)/1.02 var(--serif); letter-spacing: -.02em; }
.pay-summary h1 em { font-style: italic; background: linear-gradient(95deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .06em; }
.pay-price { margin-top: 12px; color: var(--dim); font-size: 15px; }
.pay-price b { color: var(--text); font: 400 34px var(--serif); margin-right: 4px; }
.pay-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.pay-perks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; line-height: 1.45; }
.pay-perks li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.pay-fine { margin-top: 22px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.pay-box { min-height: 420px; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 30px 80px -30px #000c, 0 0 0 1px var(--line); }
.pay-loading { display: flex; align-items: center; justify-content: center; gap: 10px; height: 420px; color: #555; font-size: 14px; }
.pay-loading .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #ddd; border-top-color: #666; animation: pay-spin .8s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; color: var(--dim); font-size: 12.5px; }
.pay-form .notice { margin-bottom: 14px; }
.pay-done { grid-column: 1 / -1; justify-self: center; text-align: center; max-width: 460px; padding: 60px 0; display: grid; justify-items: center; gap: 12px; }
.pay-done h1 { font: 400 clamp(34px, 5vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; }
.pay-done p { color: var(--dim); font-size: 15px; margin-bottom: 10px; }
.pay-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #0b0b0c; background: linear-gradient(135deg, #7ee2a8, #86b7ff); margin-bottom: 6px; }
.pay-page.in-app .app-head nav { display: none; }
.pay-page.in-app .pay { padding-top: 26px; }
@media (max-width: 820px) { .pay { grid-template-columns: 1fr; gap: 24px; } .pay-perks { margin-top: 16px; } }
@media (prefers-reduced-motion: reduce) { .pay-loading .spin { animation: none; } }

/* Cancel form (account page) */
.cancel-panel .reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cancel-panel .reason { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff05; cursor: pointer; font-size: 14px; }
.cancel-panel .reason:has(input:checked) { border-color: var(--accent); background: #86b7ff10; }
.cancel-panel .reason input { accent-color: var(--accent); }
.cancel-panel textarea { width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: #0d0d10; color: var(--text); font: 14px/1.5 var(--sans); resize: vertical; }
.cancel-panel .cancel-msg { min-height: 18px; margin-top: 8px; color: var(--warn); font-size: 13px; }
.cancel-panel .cancel-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 640px) { .cancel-panel .reasons { grid-template-columns: 1fr; } }
/* issue reports on /admin */
.report { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.report-top { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--dim); }
.report-top .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spend .report-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.spend .fine.report-meta { margin-top: 6px; overflow-wrap: anywhere; }

/* Crashes (/admin, owner only) */
.crash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.crash-table th { text-align: left; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: 0 10px 8px 0; }
.crash-table td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.crash-table td.n { font: 600 17px var(--sans); font-variant-numeric: tabular-nums; }
.crash-table td span { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.crash-table code, .crash-item code { font: 500 12.5px var(--mono, monospace); word-break: break-word; }
.crash-h { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin: 22px 0 6px; }
.crash-list { display: grid; }
.crash-item { border-top: 1px solid var(--line); padding: 9px 2px; font-size: 13.5px; }
.crash-item summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 4px 36px 4px 0; font-weight: 400; font-size: 13.5px; }
.crash-item summary::after { top: 0; font-size: 22px; }
.crash-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.crash-item .when { color: var(--dim); font-variant-numeric: tabular-nums; }
.crash-item .meta { color: var(--dim); font-size: 12.5px; flex-basis: 100%; }
.crash-item p { color: var(--dim); margin: 8px 0 0; }
.crash-item pre { margin: 8px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); overflow-x: auto; font: 12px/1.55 var(--mono, monospace); color: var(--text); }
.crash-item .btn { margin-top: 10px; }
@media (max-width: 640px) { .crash-table th:nth-child(4), .crash-table td:nth-child(4) { display: none; } }

/* Inspiration samples on /admin (docs/inspiration-contract.md §3.11) */
.insp .insp-line { margin-top: 0; }
.insp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.insp-run { margin-top: 14px; }
.insp-run .row span:last-child { font-variant-numeric: tabular-nums; }
.insp-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.insp-msg.bad { color: var(--warn); }
.insp-tiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.insp-tile { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 13.5px; }
.insp-thumb { flex: none; width: 48px; height: 64px; border-radius: 8px; overflow: hidden; background: #ffffff10; border: 1px solid var(--line); }
.insp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.insp-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.insp-main b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--dim); font-size: 12.5px; }
.insp-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #ffffff0d; color: var(--dim); font-size: 12px; white-space: nowrap; }
.insp-badge.insp-ok { background: #7ee2a81a; color: #9ff0c0; }
.insp-badge.insp-busy { background: #86b7ff1a; color: #b9d4ff; }
.insp-badge.insp-warn { background: #ffb86b1a; color: #ffcf99; }
.insp-badge.insp-bad { background: #ff8a7a1a; color: var(--warn); white-space: normal; }
.insp-note { color: var(--warn); font-size: 12.5px; }
.insp-acts { flex: none; display: flex; gap: 6px; }
.insp-acts .btn { padding: 0 11px; }
.insp-dialog { width: min(460px, calc(100vw - 32px)); padding: 22px; border-radius: 18px; border: 1px solid var(--line2); background: var(--card); color: var(--text); box-shadow: 0 30px 80px -30px #000c; }
.insp-dialog::backdrop { background: #000a; }
.insp-dialog h3 { font: 600 17px var(--sans); margin-bottom: 10px; }
.insp-dialog p { margin: 0; color: var(--dim); font-size: 14px; line-height: 1.55; }
.insp-dialog .fine { margin-top: 10px; font-size: 13px; }
.insp-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 640px) { .insp-tile { flex-wrap: wrap; } .insp-acts { width: 100%; padding-left: 60px; } }
