:root {
  --bg: #0d0d10;
  --panel: #15151a;
  --panel-2: #1b1b22;
  --text: #f7f5fa;
  --muted: #b9b5c2;
  --purple: #8d5cff;
  --purple-2: #b89aff;
  --line: #30303a;
  --danger: #ff8e9a;
  --success: #a8efc2;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(13, 13, 16, .9);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; letter-spacing: .07em; font-size: .88rem; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--purple); border-radius: 50%; color: var(--purple-2); }
.trademark { margin-left: .15em; color: var(--purple-2); font-size: .52em; line-height: 0; vertical-align: super; letter-spacing: 0; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; }
nav a:hover { color: var(--text); }
.nav-cta { color: var(--text); }
.hero,
.content-section,
.form-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 112px 0 96px; max-width: 940px; margin-left: max(20px, calc((100vw - var(--max)) / 2)); }
.eyebrow { color: var(--purple-2); font-size: .78rem; font-weight: 900; letter-spacing: .16em; margin-bottom: 20px; }
h1 { font-size: clamp(3.5rem, 9vw, 7.8rem); line-height: .9; letter-spacing: -.065em; margin: 0; max-width: 980px; }
h1 span { color: var(--purple-2); }
.hero-copy { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 740px; margin: 32px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 8px; text-decoration: none; font-weight: 900; border: 1px solid var(--line); cursor: pointer; font: inherit; }
.button.primary { background: var(--purple); color: white; border-color: var(--purple); }
.button.primary:hover { filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--text); }
.button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.small-note { margin-top: 18px; color: #8f8a99; font-size: .9rem; }
.content-section { padding: 92px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: 1; margin: 0; }
.prose { color: var(--muted); font-size: 1.08rem; }
.prose p:first-child { margin-top: 0; }
.privacy-strip { width: min(1280px, calc(100% - 40px)); margin: 0 auto 96px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: repeat(3,1fr); background: var(--panel); }
.privacy-strip div { padding: 28px; min-height: 150px; }
.privacy-strip div + div { border-left: 1px solid var(--line); }
.privacy-strip strong { display: block; color: var(--purple-2); letter-spacing: .12em; font-size: .76rem; margin-bottom: 10px; }
.privacy-strip span { color: var(--muted); }
.form-section { padding: 24px 0 110px; max-width: 900px; }
.form-intro { margin-bottom: 40px; }
.form-intro p { color: var(--muted); font-size: 1.05rem; max-width: 680px; }
.story-form { display: grid; gap: 24px; background: var(--panel); padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label > span { display: block; font-weight: 800; margin-bottom: 8px; }
label em { font-style: normal; color: #8d8994; font-weight: 600; font-size: .82rem; margin-left: 4px; }
label b { color: var(--purple-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin-left: 4px; }
input, textarea, select { width: 100%; border: 1px solid #3b3b46; background: #101014; color: var(--text); border-radius: 8px; padding: 14px 15px; font: inherit; }
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--purple); outline-offset: 1px; border-color: transparent; }
::placeholder { color: #6e6975; }
.contact-panel { min-width: 0; margin: 0; padding: 22px; border: 1px solid #4c3b6d; border-radius: 12px; background: #17141d; }
.contact-panel legend { padding: 0 8px; font-weight: 900; }
.contact-panel legend b { color: var(--purple-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; margin-left: 4px; }
.field-help { margin: 0 0 18px; color: var(--muted); font-size: .92rem; }
.contact-options { display: grid; gap: 10px; }
.contact-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #101014; cursor: pointer; }
.contact-option:hover { border-color: #5f4a87; }
.contact-option input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--purple); }
.contact-option > span, .contact-option strong, .contact-option small { display: block; margin: 0; }
.contact-option strong { color: var(--text); }
.contact-option small { margin-top: 3px; color: var(--muted); font-size: .88rem; }
.or { display: flex; align-items: center; gap: 12px; color: #77727e; font-weight: 900; font-size: .75rem; letter-spacing: .14em; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.upload-box { display: block; border: 1px dashed #514c5b; background: var(--panel-2); padding: 24px; border-radius: 10px; }
.upload-box input { margin-top: 10px; background: transparent; padding: 10px 0; border: 0; }
.upload-box small { display: block; color: var(--muted); }
.important-note { border-left: 3px solid var(--purple); background: #19161f; padding: 18px 20px; }
.important-note strong { display: block; margin-bottom: 4px; }
.important-note p { margin: 0; color: var(--muted); }
.consents { display: grid; gap: 13px; }
.check { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--purple); }
.check span { font-weight: 500; margin: 0; }
.submit { width: 100%; border: 0; }
.form-foot { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.form-foot a { color: var(--purple-2); }
.notice { display: grid; gap: 4px; padding: 18px 20px; border-radius: 10px; margin-bottom: 22px; border: 1px solid var(--line); }
.notice.success { background: rgba(74,190,112,.1); color: var(--success); }
.notice.error { background: rgba(255,80,100,.08); color: var(--danger); }
.notice span { color: var(--text); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.connect-section { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 92px 0 100px; border-top: 1px solid var(--line); }
.connect-intro { max-width: 760px; margin-bottom: 36px; }
.connect-intro h2 { max-width: 720px; }
.connect-intro p { max-width: 660px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }
.connect-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.connect-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; min-height: 112px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.connect-links a:hover { border-color: var(--purple); background: var(--panel-2); transform: translateY(-2px); }
.connect-links a:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.connect-links span, .connect-links strong, .connect-links small { display: block; min-width: 0; }
.connect-links strong { margin-bottom: 4px; }
.connect-links small { overflow-wrap: anywhere; color: var(--muted); font-size: .87rem; }
.connect-links b { flex: 0 0 auto; color: var(--purple-2); font-size: 1.2rem; }
.external-note { max-width: 760px; margin: 20px 0 0; color: #8f8a99; font-size: .86rem; }
footer { border-top: 1px solid var(--line); padding: 40px max(20px, calc((100vw - var(--max)) / 2)); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; color: var(--muted); }
footer strong { color: var(--text); }
footer a { margin-left: auto; color: var(--purple-2); }
.site-footer { align-items: flex-start; justify-content: space-between; gap: 28px; }
.site-footer a { margin-left: 0; }
.footer-brand { display: grid; gap: 6px; max-width: 720px; }
.footer-brand strong { letter-spacing: .025em; }
.footer-brand span { display: block; }
.copyright { color: #817c88; font-size: .84rem; }
.footer-links { display: grid; justify-items: end; gap: 8px; text-align: right; }
.form-intro a, .legal-page a, .admin-shell a { color: var(--purple-2); }
.notice.warning { background: rgba(255, 193, 77, .09); color: #ffd48a; }
.notice.warning span { color: var(--text); }

.legal-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 110px; }
.legal-page > h1 { font-size: clamp(3rem, 8vw, 6rem); }
.legal-updated { color: var(--muted); margin: 22px 0 55px; }
.legal-summary { max-width: 760px; margin: -28px 0 55px; color: var(--muted); font-size: 1.08rem; }
.rights-summary { margin: 30px 0 55px; }
.legal-page section { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-page section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 16px; }
.legal-page section p { color: var(--muted); font-size: 1.04rem; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.confirmation-page { width: min(820px, calc(100% - 40px)); min-height: calc(100vh - 190px); margin: 0 auto; padding: 72px 0 100px; display: grid; align-items: center; }
.confirmation-card { background: var(--panel); border: 1px solid #4c3b6d; border-radius: 20px; padding: clamp(26px, 6vw, 58px); box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.confirmation-check { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 28px; border-radius: 50%; background: rgba(74,190,112,.13); border: 1px solid rgba(168,239,194,.45); color: var(--success); font-size: 2rem; font-weight: 900; }
.confirmation-card h1 { font-size: clamp(3rem, 9vw, 6rem); margin-bottom: 24px; }
.confirmation-lead { color: var(--muted); font-size: clamp(1.08rem, 2.5vw, 1.35rem); margin: 0 0 34px; }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.confirmation-details div { background: var(--panel-2); padding: 22px; }
.confirmation-details strong, .confirmation-details span { display: block; }
.confirmation-details strong { margin-bottom: 6px; }
.confirmation-details span { color: var(--muted); font-size: .95rem; }
.private-code-card { margin: 0 0 28px; padding: 22px; border: 1px solid #5f4a87; border-radius: 12px; background: #18141f; }
.private-code-card strong, .private-code-card span { display: block; }
.private-code-card span { margin-top: 7px; color: var(--muted); }
.private-code { margin: 14px 0; padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 8px; background: #0d0d10; color: var(--purple-2); font: 800 clamp(.8rem, 3vw, 1rem) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

.admin-body { min-height: 100vh; background: #0b0b0e; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(20px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: #111116; }
.admin-header nav { display: flex; gap: 18px; align-items: center; }
.admin-header nav a, .link-button { color: var(--muted); font-size: .9rem; font-weight: 800; text-decoration: none; }
.admin-header nav a:hover, .link-button:hover { color: var(--text); }
.inline-form { display: inline; margin: 0; }
.link-button { appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.admin-shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.admin-shell.narrow, .login-shell { max-width: 760px; }
.admin-shell h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); margin-bottom: 22px; }
.admin-shell h2 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.025em; line-height: 1.1; }
.admin-lead { color: var(--muted); font-size: 1.08rem; max-width: 720px; margin: 0 0 36px; }
.admin-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 32px); margin: 22px 0; }
.admin-card > h2:first-child { margin-top: 0; }
.admin-card p { color: var(--muted); }
.admin-form { display: grid; gap: 22px; }
.admin-form small { display: block; color: var(--muted); margin-top: 7px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; color: var(--muted); }
.check-list li > span { font-size: .7rem; letter-spacing: .1em; font-weight: 900; }
.check-list .pass > span { color: var(--success); }
.check-list .fail > span { color: var(--danger); }
.admin-footer { border-top: 1px solid var(--line); padding: 28px max(20px, calc((100vw - var(--max)) / 2)); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.admin-footer a { color: var(--purple-2); }
.dashboard-heading, .submission-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.dashboard-heading h1, .submission-heading h1 { margin-bottom: 8px; }
.dashboard-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.submission-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel); }
.submission-row { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 22px 24px; color: var(--text) !important; text-decoration: none; border-bottom: 1px solid var(--line); }
.submission-row:last-child { border-bottom: 0; }
a.submission-row:hover { background: var(--panel-2); }
.submission-row strong, .submission-row span { display: block; }
.submission-row strong { margin-bottom: 4px; }
.submission-row span, .submission-row time { color: var(--muted); font-size: .9rem; }
.row-story { min-width: 0; }
.row-review-summary { max-width: 720px; margin-top: 10px; color: #d7d1df !important; line-height: 1.5; }
.row-flag-list { display: flex !important; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.row-flag-list b { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--purple-2); font-size: .7rem; font-weight: 800; }
.row-meta { text-align: right; flex: 0 0 auto; }
.row-meta .status-badge { margin: 0 0 7px auto; }
.row-meta .triage-badge { margin: 0 0 7px auto; }
.suggestion-label { margin: -2px 0 8px; color: #8f8a99 !important; font-size: .72rem !important; text-transform: uppercase; letter-spacing: .08em; }
.corrupt-row { color: var(--danger); }
.empty-state { margin: 0; border: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; color: var(--muted); }
.pagination .button { min-height: 44px; }
.back-link { display: inline-block; margin-bottom: 28px; text-decoration: none; font-weight: 800; }
.id-chip { display: inline-block; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font: 700 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.metadata-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.metadata-grid div { min-width: 0; }
.metadata-grid strong, .metadata-grid span, .metadata-grid a { display: block; overflow-wrap: anywhere; }
.metadata-grid strong { color: var(--purple-2); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.metadata-grid span, .metadata-grid a { color: var(--muted); }
.story-card h2, .private-note-card h2, .attachment-card h2, .consent-card h2 { margin: 0 0 18px; }
.story-text { white-space: normal; overflow-wrap: anywhere; color: #e9e6ed; line-height: 1.7; }
.private-note-card { border-color: #66508f; background: #18141f; }
.attachment-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.attachment-card h2 { margin-bottom: 7px; }
.attachment-card p { margin: 0; }
.consent-card ul { color: var(--muted); padding-left: 20px; }
.consent-card li { margin: 6px 0; }
.fingerprint code { overflow-wrap: anywhere; color: var(--purple-2); }
.recorded-terms { margin-top: 22px; color: var(--muted); }
.recorded-terms summary { cursor: pointer; color: var(--purple-2); font-weight: 800; }
.recorded-terms pre { max-height: 520px; margin-top: 14px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #0d0d10; color: var(--muted); font: .82rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.request-card { border-color: #5f4a87; }
.request-card > h2 { margin-top: 0; }
.request-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.request-form h3 { margin: 0; font-size: 1.25rem; }
.danger-card { padding: 24px; border: 1px solid #7f3f49; border-radius: 12px; background: rgba(255,80,100,.045); }
.danger-button { background: #9d3545; color: #fff; border-color: #c75a6a; }
.danger-button:hover { filter: brightness(1.1); }
.mfa-card { border-color: #4c3b6d; }
.mfa-secret { margin: 20px 0; padding: 16px; overflow-wrap: anywhere; border: 1px solid #5f4a87; border-radius: 9px; background: #0d0d10; color: var(--purple-2); font: 800 clamp(.9rem, 3vw, 1.1rem) ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.recovery-code-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recovery-code-list code { padding: 12px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 7px; background: #0d0d10; color: var(--purple-2); text-align: center; font-weight: 800; }
.workflow-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 24px; }
.workflow-filters a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 14px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); }
.workflow-filters a:hover { border-color: #5f4a87; }
.workflow-filters a.active { border-color: var(--purple); background: rgba(141,92,255,.13); color: var(--text); }
.workflow-filters span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-filters strong { color: var(--text); font-size: 1.05rem; }
.status-badge { display: inline-flex !important; align-items: center; width: fit-content; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem !important; font-weight: 900; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.status-new { color: #fff0a3 !important; border-color: #756629; background: rgba(255,226,91,.08); }
.status-viewed { color: #bdb7c7 !important; }
.status-in_review { color: #bbd8ff !important; border-color: #385b82; background: rgba(80,146,220,.09); }
.status-selected { color: var(--success) !important; border-color: #397151; background: rgba(74,190,112,.09); }
.status-legal_review { color: #e4c7ff !important; border-color: #6d4a89; background: rgba(171,104,225,.09); }
.status-published { color: #aee8ff !important; border-color: #39738a; background: rgba(78,182,225,.09); }
.status-withdrawn { color: var(--danger) !important; border-color: #7f3f49; background: rgba(255,80,100,.08); }
.status-archived { color: #948e9e !important; background: #111116; }
.status-unknown { color: var(--danger) !important; }
.workflow-card { border-color: #4c3b6d; }
.workflow-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); align-items: center; gap: 34px; }
.workflow-summary p { margin: 12px 0 0; font-size: .92rem; }
.workflow-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: end; gap: 10px; }
.workflow-form label > span { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.workflow-form .button { min-height: 50px; }
.triage-card { border-color: #66508f; }
.triage-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.triage-heading h2, .triage-heading h3 { margin: 0 0 7px; }
.triage-heading p { margin: 0; }
.triage-badge { display: inline-flex !important; align-items: center; width: fit-content; flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem !important; font-weight: 900; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.triage-unreviewed { color: #bdb7c7 !important; }
.triage-read_first { color: #fff0a3 !important; border-color: #756629; background: rgba(255,226,91,.08); }
.triage-maybe { color: #bbd8ff !important; border-color: #385b82; background: rgba(80,146,220,.09); }
.triage-pass_for_now { color: #948e9e !important; background: #111116; }
.triage-spam_irrelevant { color: var(--danger) !important; border-color: #7f3f49; background: rgba(255,80,100,.08); }
.triage-form { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.triage-flags-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.triage-flags-fieldset legend { margin-bottom: 12px; font-weight: 800; }
.triage-flags-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.assistant-result { margin-top: 30px; padding: 24px; border: 1px solid #4c3b6d; border-radius: 12px; background: #111116; }
.assistant-result .eyebrow { margin-bottom: 8px; }
.assistant-result h3 { font-size: 1.35rem; }
.assistant-summary { color: var(--text) !important; font-size: 1.05rem; line-height: 1.65; }
.assistant-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.assistant-result-grid div { min-width: 0; }
.assistant-result-grid strong, .assistant-result-grid span { display: block; overflow-wrap: anywhere; }
.assistant-result-grid strong { color: var(--purple-2); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.assistant-result-grid span { color: var(--muted); }
.assistant-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 14px 0; }
.assistant-tags > strong { margin-right: 4px; font-size: .8rem; }
.assistant-tags > span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }
.assistant-action-area { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.assistant-action-area > p { margin: 0; }
.permission-record { margin-top: 18px; }
.permission-record summary { cursor: pointer; color: var(--purple-2); font-weight: 800; }
.permission-record form { margin-top: 20px; }
.permission-record.recorded p { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #101014; overflow-wrap: anywhere; }
.assistant-boundary-card { border-color: #397151; }
.assistant-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; padding: 0; overflow: hidden; background: var(--line); }
.assistant-stats div { padding: 22px 16px; background: var(--panel); text-align: center; }
.assistant-stats strong, .assistant-stats span { display: block; }
.assistant-stats strong { color: var(--purple-2); font-size: 1.65rem; }
.assistant-stats span { color: var(--muted); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; }
.assistant-batch-card { border-color: #66508f; }
.triage-toolbar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) auto; align-items: end; gap: 12px; margin: 0 0 20px; padding: 18px; }
.triage-toolbar label > span { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.triage-toolbar .button { min-height: 50px; }
.mail-overview { border-color: #4c3b6d; }
.mail-overview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.mail-overview-heading h2 { margin-bottom: 7px; }
.mail-overview-heading p { margin: 0; }
.mail-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.mail-status-grid div { min-width: 0; display: grid; gap: 4px; }
.mail-status-grid strong, .mail-status-grid span { display: block; overflow-wrap: anywhere; }
.mail-status-grid strong { color: var(--purple-2); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }
.mail-status-grid span { color: var(--muted); }
.mail-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.mail-counts div { display: grid; gap: 5px; padding: 16px; text-align: center; background: var(--panel-2); }
.mail-counts strong { font-size: 1.35rem; }
.mail-counts span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 760px) {
  .site-header { padding: 14px 18px; }
  .brand span:last-child { display: none; }
  nav a:first-child { display: none; }
  .site-header .nav-legal-extra { display: none; }
  .hero { padding: 80px 0 72px; }
  .split, .grid.two, .privacy-strip, .confirmation-details { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .privacy-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .privacy-strip div { min-height: 0; }
  footer { display: grid; }
  footer a { margin-left: 0; }
  .connect-links { grid-template-columns: 1fr; }
  .connect-links a { min-height: 94px; }
  .footer-links { justify-items: start; text-align: left; }
  .admin-header { align-items: flex-start; }
  .admin-header .brand span:last-child { display: none; }
  .admin-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 14px; }
  .dashboard-heading, .submission-heading, .attachment-card { align-items: stretch; flex-direction: column; }
  .metadata-grid { grid-template-columns: 1fr; }
  .submission-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .row-meta { text-align: left; }
  .row-meta .status-badge { margin-left: 0; }
  .row-meta .triage-badge { margin-left: 0; }
  .workflow-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-summary, .workflow-form { grid-template-columns: 1fr; }
  .dashboard-actions, .triage-heading { align-items: stretch; flex-direction: column; }
  .dashboard-actions .button { width: 100%; }
  .triage-flags-grid, .assistant-result-grid, .assistant-stats, .triage-toolbar { grid-template-columns: 1fr; }
  .mail-overview-heading { display: grid; }
  .mail-status-grid { grid-template-columns: 1fr; }
  .recovery-code-list { grid-template-columns: 1fr; }
  .admin-footer { flex-direction: column; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .connect-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
