:root {
  --ink: #14201c;
  --muted: #5c6a65;
  --surface: #ffffff;
  --page: #edf3f1;
  --line: #cad7d3;
  --green: #087f55;
  --green-dark: #07563e;
  --cyan: #1684bd;
  --red: #c62e43;
  --gold: #bd8b15;
  --focus: #0a6faa;
  --shadow: 0 12px 30px rgba(16, 32, 25, .10);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--page); font-size: 14px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(10,111,170,.24); outline-offset: 2px; }
a { color: var(--focus); }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.honeypot { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.section-code { color: var(--green); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 5px; font-weight: 850; text-decoration: none; cursor: pointer; }
.button.primary { color: #fff; background: var(--green); }
.button.secondary { color: var(--green-dark); border-color: var(--line); background: #fff; }
.button.light { color: var(--ink); background: #fff; }
.button.ghost-light { color: #fff; border-color: rgba(255,255,255,.66); background: rgba(12,28,22,.35); }
.button:disabled { cursor: wait; opacity: .62; }
.text-button { border: 0; color: var(--focus); background: transparent; font-weight: 850; cursor: pointer; }
.full { grid-column: 1 / -1; width: 100%; }

.app-topbar { position: sticky; top: 0; z-index: 50; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.brand-button { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.brand-button img { width: 42px; height: 42px; object-fit: contain; }
.brand-button span { display: grid; }
.brand-button strong { font-size: 19px; }
.brand-button small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.app-top-actions { display: flex; align-items: center; gap: 10px; }
.connection-state { color: var(--green); font-size: 11px; font-weight: 850; }
.connection-state.offline { color: var(--red); }
.language-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.language-control button { width: 41px; height: 38px; border: 0; color: var(--muted); background: #fff; font-weight: 900; cursor: pointer; }
.language-control button.active { color: #fff; background: var(--green-dark); }

.app-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); align-items: start; }
.app-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; padding: 18px 14px; color: #fff; background: #102019; }
.identity-block { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.identity-mark { display: grid; width: 44px; height: 44px; place-items: center; color: var(--green-dark); background: #fff; font-size: 18px; font-weight: 950; }
.identity-block div { display: grid; min-width: 0; }
.identity-block strong, .identity-block small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity-block small { color: rgba(255,255,255,.68); font-size: 11px; }
.app-nav { display: grid; gap: 4px; padding: 18px 0; }
.app-nav button { display: grid; min-height: 48px; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-left: 3px solid transparent; color: rgba(255,255,255,.72); background: transparent; text-align: left; cursor: pointer; }
.app-nav button.active { border-left-color: #38cf89; color: #fff; background: rgba(255,255,255,.08); }
.app-nav button span { font-size: 10px; font-weight: 900; }
.app-nav button b { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.app-nav button em { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 50%; color: var(--ink); background: #fff; font-size: 11px; font-style: normal; font-weight: 900; }
.app-nav .session-entry { margin-top: 4px; border-left-color: #38cf89; color: #fff; }
.emergency-block { display: grid; gap: 5px; padding: 13px; border-left: 4px solid #f04658; background: rgba(255,255,255,.08); }
.emergency-block strong { font-size: 19px; }
.emergency-block span { color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.45; }
.sidebar-links { display: grid; gap: 9px; margin-top: 18px; }
.sidebar-links a { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 750; }

.app-workspace { min-width: 0; padding: 20px; }
.app-view { width: min(1380px,100%); margin: 0 auto; }
.app-message { position: sticky; top: 84px; z-index: 45; width: min(1380px,100%); margin: 0 auto 12px; padding: 12px 14px; border-left: 4px solid var(--cyan); background: #eaf6fb; box-shadow: var(--shadow); }
.app-message.error { border-color: var(--red); color: #8b1b2d; background: #fff0f2; }
.app-message.success { border-color: var(--green); color: var(--green-dark); background: #eaf8f1; }

.intro-stage { position: relative; display: grid; min-height: 520px; height: min(66vh,650px); align-items: end; overflow: hidden; color: #fff; background: #263d34 url("10asec-capture-report-v27.webp") center / cover no-repeat; }
.intro-stage::before { position: absolute; inset: 0; background: rgba(8,20,16,.43); content: ""; }
.intro-overlay { position: relative; z-index: 2; width: min(760px,100%); align-self: center; padding: 38px 42px 105px; }
.intro-overlay .section-code { color: #8be0b7; }
.intro-overlay h1 { margin: 8px 0; font-family: Georgia, "Times New Roman", serif; font-size: 70px; line-height: .95; }
.intro-overlay p { max-width: 660px; min-height: 58px; margin: 18px 0; font-size: 21px; font-weight: 650; line-height: 1.4; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.intro-progress { display: flex; width: 190px; gap: 5px; margin: 8px 0 20px; }
.intro-progress span { height: 4px; flex: 1; background: rgba(255,255,255,.32); }
.intro-progress span.active { background: #fff; }
.intro-safety { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; padding: 15px 24px; color: #fff; background: #b82439; }
.intro-safety span { font-size: 12px; line-height: 1.45; }
.home-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #fff; }
.home-strip article { display: grid; gap: 4px; min-height: 105px; align-content: center; padding: 20px 24px; border-right: 1px solid var(--line); }
.home-strip article:last-child { border-right: 0; }
.home-strip strong { font-size: 24px; }
.home-strip article:nth-child(2) strong { color: var(--cyan); }
.home-strip article:nth-child(3) strong { color: var(--green); }
.home-strip span { color: var(--muted); }
.feed-band, .emergency-directory { padding: 36px 0; }
.feed-band > header, .emergency-directory > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 11px; border-bottom: 2px solid var(--ink); }
.feed-band h2, .emergency-directory h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.emergency-directory > header p { max-width: 720px; margin: 7px 0 0; color: var(--muted); line-height: 1.45; }

.feed-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.feed-grid.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.feed-card { display: grid; min-height: 330px; grid-template-rows: 190px 1fr auto; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: #fff; }
.feed-card .media-frame { position: relative; display: grid; min-height: 190px; place-items: center; overflow: hidden; color: #fff; background: #24352f; }
.feed-card .media-frame img, .feed-card .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.feed-card .media-frame span { padding: 18px; text-align: center; }
.feed-card .feed-body { padding: 15px; }
.feed-card h3 { margin: 5px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.15; }
.feed-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.feed-card footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 15px; border-top: 1px solid var(--line); font-size: 11px; }
.empty-feed { grid-column: 1 / -1; min-height: 180px; display: grid; place-items: center; padding: 30px; border-top: 3px solid var(--gold); color: var(--muted); background: #fff; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.contact-grid article { display: grid; min-width: 0; grid-template-rows: 1fr auto; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.contact-grid .call-link { display: grid; min-height: 116px; align-content: center; gap: 5px; padding: 15px; color: var(--ink); text-decoration: none; }
.contact-grid .call-link:hover { background: #fff7f8; }
.contact-grid strong { color: var(--red); font-size: 25px; }
.contact-grid span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.contact-grid .call-link b { width: max-content; margin-top: 4px; padding: 4px 7px; color: #fff; background: var(--red); font-size: 10px; }
.contact-grid .source-link { padding: 9px 15px; border-top: 1px solid var(--line); color: var(--focus); font-size: 10px; font-weight: 800; }
.support-directory { margin-top: 24px; }
.support-directory h3 { margin: 0 0 10px; font-size: 17px; }
.compact-contacts { grid-template-columns: repeat(2,minmax(0,1fr)); }

.view-header { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 18px 20px; border-bottom: 2px solid var(--ink); background: #fff; }
.view-header h1 { margin: 5px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 36px; }
.view-header p { max-width: 720px; margin: 6px 0 0; color: var(--muted); }
.profile-snapshot { display: grid; min-width: 110px; padding-left: 18px; border-left: 3px solid var(--gold); text-align: right; }
.profile-snapshot strong { font-size: 22px; }
.profile-snapshot span { color: var(--muted); font-size: 10px; }

.auth-gate { width: min(920px,100%); margin: 3vh auto; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.auth-heading { padding: 28px; border-bottom: 1px solid var(--line); }
.auth-heading h1 { margin: 7px 0 10px; font-size: 31px; line-height: 1.12; }
.auth-heading p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.55; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-switch button { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: #f5f8f7; font-weight: 850; cursor: pointer; }
.auth-switch button.active { border-color: var(--green); color: var(--green-dark); background: #fff; }
.auth-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 24px 28px 28px; }
label { display: grid; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
.form-field { display: grid; min-width: 0; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #b9c9c4; border-radius: 4px; color: var(--ink); background: #fff; }
textarea { min-height: 85px; resize: vertical; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.phone-field { position: relative; }
.phone-entry { position: relative; display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); }
.phone-entry > input[data-phone-local] { min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.country-trigger { display: grid; min-width: 112px; min-height: 43px; grid-template-columns: 24px 1fr 14px; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #b9c9c4; border-right: 0; border-radius: 4px 0 0 4px; color: var(--ink); background: #f5f8f7; cursor: pointer; }
.country-trigger [data-phone-flag] { font-size: 19px; line-height: 1; }
.country-trigger [data-phone-code] { text-align: left; }
.country-chevron { color: var(--muted); font-size: 15px; }
.phone-country-hint { color: var(--muted); font-size: 10px; font-weight: 650; }
.country-popover { position: absolute; top: calc(100% + 7px); left: 0; z-index: 75; width: min(430px,calc(100vw - 38px)); border: 1px solid #9eb4ac; border-radius: 5px; background: #fff; box-shadow: 0 18px 42px rgba(16,32,25,.20); }
.country-search { padding: 10px; border-bottom: 1px solid var(--line); }
.country-search input { min-height: 40px; padding-left: 12px; }
.country-options { max-height: 290px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; }
.country-option { display: grid; width: 100%; min-height: 45px; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; padding: 7px 9px; border: 0; border-bottom: 1px solid #e5ece9; color: var(--ink); background: #fff; text-align: left; cursor: pointer; }
.country-option:hover, .country-option:focus-visible, .country-option[aria-selected="true"] { background: #edf8f2; }
.country-option-flag { font-size: 19px; }
.country-option-name { display: flex; min-width: 0; align-items: baseline; gap: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-option-name small { color: var(--muted); font-size: 9px; }
.country-option > strong { color: var(--green-dark); font-size: 12px; }
.password-control { position: relative; display: block; }
.password-control input { padding-right: 48px; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 36px; height: 35px; border: 0; border-radius: 4px; background: #edf3f1; cursor: pointer; }
.password-toggle::before { display: block; width: 16px; height: 10px; margin: auto; border: 2px solid #52655e; border-radius: 50%; content: ""; }
.password-toggle::after { position: absolute; top: 15px; left: 16px; width: 4px; height: 4px; border-radius: 50%; background: #52655e; content: ""; }
.consent-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check-row { display: flex; min-width: 0; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 650; line-height: 1.45; }
.check-row input { width: 19px; min-width: 19px; height: 19px; min-height: 19px; margin-top: 1px; accent-color: var(--green); }
.policy-link { flex: 0 0 auto; padding: 6px 0; border: 0; color: var(--focus); background: transparent; font-size: 11px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.google-auth { padding: 0 28px 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.google-button { display: flex; justify-content: center; }
.google-auth small { display: block; max-width: 600px; margin: 10px auto 0; color: var(--muted); text-align: center; }

#capture-form { display: grid; gap: 12px; }
.capture-gate { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; margin-bottom: 12px; padding: 16px; border-left: 4px solid var(--gold); background: #fff7df; }
.capture-gate span { color: var(--muted); }
.capture-readiness { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; margin-bottom: 12px; padding: 12px 16px; border: 1px solid var(--line); border-left: 5px solid var(--green); background: #fff; }
.capture-readiness > strong { font-size: 12px; }
.capture-readiness > div { display: flex; min-width: 0; flex-wrap: wrap; gap: 8px 18px; }
.capture-readiness span { position: relative; padding-left: 14px; color: var(--muted); font-size: 11px; font-weight: 800; }
.capture-readiness span::before { position: absolute; top: .42em; left: 0; width: 7px; height: 7px; border: 2px solid #8da09a; border-radius: 50%; content: ""; }
.capture-readiness span.ready { color: var(--green-dark); }
.capture-readiness span.ready::before { border-color: var(--green); background: var(--green); }
.capture-readiness span.attention { color: #9f3144; }
.capture-readiness span.attention::before { border-color: var(--red); background: var(--red); }
.capture-step { border: 1px solid var(--line); background: #fff; }
.capture-step > header { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.capture-step > header > span { color: var(--green); font-size: 12px; font-weight: 950; }
.capture-step h2 { margin: 0; font-size: 19px; }
.capture-step header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.segmented { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 16px 18px; }
.segmented label, .segmented button { min-height: 48px; place-items: center; padding: 10px; border: 1px solid var(--line); border-right-width: 0; color: var(--muted); background: #f6f9f8; font-weight: 850; text-align: center; cursor: pointer; }
.segmented > :last-child { border-right-width: 1px; }
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segmented label:has(input:checked), .segmented button.active { color: #fff; border-color: var(--green-dark); background: var(--green-dark); }
.purpose-selector { grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 18px; }
.wide { grid-column: 1 / -1; }
.media-inputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 18px; }
.media-inputs label { position: relative; min-height: 125px; align-content: center; padding: 14px; border: 1px dashed #9eb4ac; background: #f5f9f7; cursor: pointer; overflow: hidden; }
.media-inputs strong, .media-inputs span { display: block; }
.media-inputs span { color: var(--muted); font-size: 11px; }
.media-inputs .media-pick { width: max-content; margin-top: 10px; padding: 7px 9px; color: #fff; border-radius: 4px; background: var(--green); font-weight: 850; }
.media-inputs input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.media-first > small { display: block; padding: 0 18px 16px; color: var(--muted); }
.media-studio { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0 18px 18px; }
.media-item { display: grid; grid-template-columns: 150px minmax(0,1fr); min-height: 150px; border: 1px solid var(--line); overflow: hidden; }
.media-item .media-player { display: grid; min-height: 150px; place-items: center; overflow: hidden; background: #182821; }
.media-item img, .media-item video { width: 100%; height: 150px; object-fit: cover; }
.media-item audio { width: calc(100% - 16px); }
.media-item .media-controls { position: relative; display: grid; align-content: start; gap: 7px; padding: 12px 48px 12px 12px; }
.media-item h3 { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.media-item small { color: var(--muted); }
.media-remove { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: #8f2437; background: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.media-remove:hover, .media-remove:focus-visible { color: #fff; border-color: var(--red); background: var(--red); }
.trim-control { display: grid; grid-template-columns: 1fr 72px; align-items: center; gap: 7px; }
.trim-control input[type=range] { min-height: 30px; padding: 0; border: 0; accent-color: var(--cyan); }
.trim-control input[type=number] { min-height: 34px; padding: 5px; }
.location-action { display: flex; align-items: center; gap: 10px; }
.location-action span { color: var(--muted); font-size: 11px; }
.privacy-flags { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0 18px 18px; }
.privacy-flags > span { width: 100%; font-weight: 850; }
.privacy-flags label { display: flex; align-items: center; gap: 7px; }
.privacy-flags input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--red); }
.emergency-check { border-left: 5px solid var(--red); background: #fff0f2; }
.emergency-check label { display: flex; gap: 11px; padding: 15px 18px; }
.emergency-check input { width: 19px; height: 19px; min-height: 19px; accent-color: var(--red); }
.emergency-check span { display: grid; gap: 4px; }
.emergency-check small { color: #7d2734; }
.consent-section { padding-bottom: 10px; }
.consent-section > .check-row { margin: 12px 18px; }
.submit-bar { position: static; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-left: 5px solid var(--green); background: #fff; box-shadow: var(--shadow); }
.submit-bar div { display: grid; }
.submit-bar span { color: var(--muted); font-size: 11px; }
.submit-bar .submit-copy { min-width: 0; flex: 1; gap: 3px; }
.upload-progress { width: min(560px,100%); gap: 6px; margin-top: 9px; }
.upload-progress progress { width: 100%; height: 9px; border: 0; accent-color: var(--green); }
.upload-progress progress::-webkit-progress-bar { background: #dfe8e5; }
.upload-progress progress::-webkit-progress-value { background: var(--green); }
.upload-progress progress::-moz-progress-bar { background: var(--green); }

.queue-layout { display: grid; grid-template-columns: minmax(300px,1fr) minmax(360px,1.1fr); gap: 12px; align-items: start; }
.queue-list { display: grid; gap: 8px; }
.queue-item { display: grid; gap: 6px; width: 100%; min-height: 94px; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--cyan); background: #fff; text-align: left; cursor: pointer; }
.queue-item strong { font-size: 16px; }
.queue-item small { color: var(--muted); }
.queue-item .queue-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; }
.queue-timeline { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.queue-timeline span { padding-top: 6px; border-top: 3px solid #d2ddda; color: var(--muted); font-size: 10px; font-weight: 800; }
.queue-timeline span.done { border-top-color: var(--green); color: var(--green-dark); }
.thread-panel { position: sticky; top: 92px; border: 1px solid var(--line); background: #fff; }
.thread-panel > header, .account-band > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.thread-panel h2, .account-band h2 { margin: 4px 0 0; font-size: 20px; }
.icon-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
.message-thread { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 16px; }
.chat-message { display: grid; gap: 4px; max-width: 88%; padding: 10px 12px; border-left: 3px solid var(--cyan); background: #eef7fb; }
.chat-message.contributor { justify-self: end; border-color: var(--green); background: #edf8f2; }
.chat-message.quarantined { border-color: var(--red); background: #fff0f2; }
.chat-message small { color: var(--muted); }
#message-form { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }

.account-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.account-summary div { display: grid; gap: 7px; min-height: 100px; align-content: center; padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.account-summary span { color: var(--muted); font-size: 11px; }
.account-summary strong { font-size: 22px; }
.account-role-summary { grid-template-columns: minmax(0,360px); }
.wallet-band { margin-bottom: 12px; border: 1px solid var(--line); border-top: 4px solid var(--green); background: #fff; }
.wallet-band > header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.wallet-band h2 { margin: 4px 0 0; font-size: 24px; }
.wallet-visibility { position: relative; display: grid; width: 42px; min-width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--green-dark); background: #f2f7f5; cursor: pointer; }
.wallet-visibility:hover, .wallet-visibility:focus-visible { border-color: var(--green); background: #e8f5ee; }
.wallet-eye { position: relative; display: block; width: 22px; height: 14px; }
.wallet-eye::before { position: absolute; inset: 0; border: 2px solid currentColor; border-radius: 50%; content: ""; }
.wallet-eye::after { position: absolute; top: 5px; left: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.wallet-concealed .wallet-eye::after { top: 6px; left: -2px; width: 26px; height: 2px; border-radius: 0; transform: rotate(-38deg); }
.wallet-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.wallet-values article { display: grid; min-height: 112px; align-content: center; gap: 8px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wallet-values article:last-child { border-right: 0; }
.wallet-values span { color: var(--muted); font-size: 11px; font-weight: 800; }
.wallet-values strong { min-height: 33px; font-size: 27px; font-variant-numeric: tabular-nums; user-select: none; }
.wallet-concealed .wallet-values strong { color: #65756f; font-size: 23px; }
.wallet-policy { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 15px 18px; background: #f5f8f7; }
.wallet-policy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.wallet-policy a { color: var(--focus); font-size: 11px; font-weight: 900; }
.wallet-print-notice { display: none; }
.account-band, .reward-table { margin-bottom: 12px; border: 1px solid var(--line); background: #fff; }
.account-band > .field-grid, .account-band > .section-code, .account-band > h2, .account-band > p, .account-band > .tag-list, .account-band > #moderation-actions { margin-left: 18px; margin-right: 18px; }
.account-band > .field-grid { padding-left: 0; padding-right: 0; }
.profile-save { display: flex; align-items: center; gap: 10px; }
.status-chip { padding: 6px 9px; border: 1px solid var(--line); color: var(--muted); background: #f5f8f7; font-size: 11px; font-weight: 850; }
.phone-verification { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; }
.phone-verification form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.phone-verification small { width: 100%; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag-list span { padding: 7px 9px; border-left: 3px solid var(--green); background: #edf8f2; font-size: 11px; font-weight: 800; }
.moderation-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.moderation-row form { grid-column: 1 / -1; display: grid; gap: 8px; }
.reward-table { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.reward-table h2, .reward-table small { grid-column: 1 / -1; padding: 15px 18px; margin: 0; }
.reward-table div { display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 75px; padding: 12px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); }
.reward-table div span { color: var(--gold); font-size: 22px; font-weight: 900; }
.reward-table div b { font-size: 12px; }
.reward-table small { color: var(--muted); border-top: 1px solid var(--line); }

.policy-modal-open { overflow: hidden; }
.policy-modal-open::before { position: fixed; inset: 0; z-index: 100; background: rgba(8,20,16,.70); content: ""; }
.policy-dialog { position: fixed; top: 50%; left: 50%; z-index: 101; width: min(680px,calc(100% - 28px)); max-height: min(760px,calc(100vh - 28px)); overflow-y: auto; padding: 22px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transform: translate(-50%,-50%); }
.policy-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.policy-dialog h2 { margin: 5px 0 14px; }
.policy-dialog li { margin: 9px 0; line-height: 1.5; }
.dialog-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 20px; cursor: pointer; }
.mobile-nav { display: none; }

.app-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.app-brand img { width: 42px; height: 42px; object-fit: contain; }
.app-brand span { display: grid; }
.app-brand strong { font-size: 19px; }
.app-brand small { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.public-page { background: #f4f7f6; }
.public-shell { width: min(1120px,calc(100% - 32px)); margin: 0 auto; }
.public-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 24px; padding: 52px 0 30px; border-bottom: 3px solid var(--ink); }
.public-hero h1 { max-width: 820px; margin: 7px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: 1.06; }
.public-hero p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.public-hero-aside { display: grid; min-width: 210px; gap: 8px; padding-left: 18px; border-left: 4px solid var(--green); }
.public-hero-aside strong { font-size: 17px; }
.public-hero-aside span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.public-callout { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 22px 0; padding: 17px 20px; color: #fff; background: #b82439; }
.public-callout strong { font-size: 25px; }
.public-callout span { line-height: 1.45; }
.public-callout a { color: #fff; font-weight: 900; }
.public-toc { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.public-toc a { padding: 7px 9px; border-left: 3px solid var(--cyan); color: var(--ink); background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.public-content { padding-bottom: 42px; }
.public-section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.public-section h2 { margin: 6px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.public-section h3 { margin: 20px 0 7px; font-size: 17px; }
.public-section p, .public-section li { color: #3f514b; line-height: 1.65; }
.public-section ul { padding-left: 20px; }
.public-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.public-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.public-card { min-height: 150px; padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: 5px; background: #fff; }
.public-card:nth-child(3n+2) { border-top-color: var(--cyan); }
.public-card:nth-child(3n+3) { border-top-color: var(--gold); }
.public-card h3 { margin: 0 0 8px; font-size: 17px; }
.public-card p { margin: 0; font-size: 13px; }
.role-table { width: 100%; margin-top: 16px; border-collapse: collapse; background: #fff; }
.role-table th, .role-table td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.role-table th { background: #e8f0ed; font-size: 11px; text-transform: uppercase; }
.role-table td { color: #3f514b; line-height: 1.5; }
.faq-list { display: grid; gap: 8px; margin-top: 16px; }
.faq-list details { border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.faq-list summary { padding: 15px 17px; font-weight: 850; cursor: pointer; }
.faq-list details div { padding: 0 17px 16px; color: #3f514b; line-height: 1.6; }
.department-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.department-list article { display: grid; gap: 5px; padding: 16px; border-left: 4px solid var(--green); background: #fff; }
.department-list small { color: var(--muted); }
.department-code { color: var(--green); font-size: 11px; }
.department-list .button { width: max-content; min-height: 36px; margin-top: 7px; padding: 7px 10px; font-size: 11px; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 0 40px; }
.public-footer nav { display: flex; flex-wrap: wrap; gap: 12px; }
.public-footer a { font-weight: 750; }
.info-language-control { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.info-language-control button { width: 42px; height: 38px; border: 0; color: var(--muted); background: #fff; font-weight: 900; cursor: pointer; }
.info-language-control button.active { color: #fff; background: var(--green-dark); }
.cookie-consent-panel { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; width: min(620px,calc(100% - 36px)); grid-template-columns: minmax(0,1fr) auto; gap: 18px; padding: 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; color: #fff; background: #102019; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.cookie-consent-panel strong { display: block; margin-bottom: 5px; }
.cookie-consent-panel p { margin: 0; color: rgba(255,255,255,.76); font-size: 12px; line-height: 1.45; }
.cookie-toggle { display: flex; align-items: center; gap: 8px; margin-top: 9px; color: #fff; }
.cookie-toggle input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; padding: 0; accent-color: #38cf89; }
.cookie-actions { display: flex; flex-wrap: wrap; align-content: center; gap: 8px; }
.cookie-actions button { min-height: 38px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; color: #fff; background: transparent; font-weight: 800; cursor: pointer; }
.cookie-actions button[data-cookie-save] { color: var(--ink); border-color: #fff; background: #fff; }

@media (max-width: 1120px) {
  .app-layout { grid-template-columns: 220px minmax(0,1fr); }
  .feed-grid, .feed-grid.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .media-studio { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .app-topbar { min-height: 62px; padding: 7px 11px; }
  .brand-button img { width: 36px; height: 36px; }
  .brand-button strong { font-size: 17px; }
  .connection-state { display: none; }
  .app-layout { display: block; }
  .app-sidebar { display: none; }
  .app-workspace { padding: 0; }
  .app-message { top: 70px; margin: 8px; width: calc(100% - 16px); }
  .intro-stage { min-height: 510px; height: min(68svh,620px); }
  .intro-overlay { padding: 28px 20px 126px; }
  .intro-overlay h1 { font-size: 52px; }
  .intro-overlay p { min-height: 70px; font-size: 18px; }
  .intro-safety { grid-template-columns: 1fr; gap: 4px; padding: 13px 16px; }
  .home-strip { grid-template-columns: 1fr; }
  .home-strip article { min-height: 82px; border-right: 0; border-bottom: 1px solid var(--line); }
  .feed-band, .emergency-directory { padding: 28px 14px; }
  .feed-grid, .feed-grid.compact { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .view-header { min-height: 84px; margin: 0 0 10px; padding: 14px; }
  .view-header h1 { font-size: 27px; }
  .view-header p { font-size: 11px; }
  .auth-gate { margin: 0; border-right: 0; border-left: 0; }
  .auth-heading, .auth-form { padding: 18px; }
  .auth-form { grid-template-columns: 1fr; }
  .auth-form > * { grid-column: 1; }
  .country-popover { width: 100%; }
  .google-auth { padding: 0 18px 20px; }
  .capture-gate { grid-template-columns: 1fr; margin: 10px; }
  .capture-readiness { grid-template-columns: 1fr; margin: 0 10px 10px; }
  #capture-form { padding: 0 10px 10px; }
  .segmented, .field-grid, .media-inputs { grid-template-columns: 1fr; }
  .segmented label, .segmented button { border-right-width: 1px; border-bottom-width: 0; }
  .segmented > :last-child { border-bottom-width: 1px; }
  .wide { grid-column: 1; }
  .media-item { grid-template-columns: 1fr; }
  .media-item .media-player, .media-item img, .media-item video { min-height: 190px; height: 190px; }
  .submit-bar span { display: none; }
  .submit-bar .upload-progress span { display: block; }
  .queue-layout { grid-template-columns: 1fr; padding: 0 10px 10px; }
  .thread-panel { position: fixed; inset: 62px 0 calc(62px + env(safe-area-inset-bottom)); z-index: 35; overflow-y: auto; }
  .account-summary { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 10px 10px; }
  .account-band, .reward-table, .wallet-band { margin: 0 10px 10px; }
  .wallet-policy { grid-template-columns: 1fr; }
  .reward-table { grid-template-columns: 1fr; }
  .reward-table div { border-right: 0; }
  .mobile-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; min-height: calc(62px + env(safe-area-inset-bottom)); grid-template-columns: repeat(3,1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; }
  body.session-authenticated .mobile-nav { grid-template-columns: repeat(4,1fr); }
  .mobile-nav button { min-width: 0; border: 0; border-top: 3px solid transparent; color: var(--muted); background: #fff; font-size: 10px; font-weight: 900; overflow-wrap: anywhere; }
  .mobile-nav button.active { border-top-color: var(--green); color: var(--green-dark); }
  .public-shell { width: min(100% - 24px,1120px); }
  .public-hero { grid-template-columns: 1fr; padding-top: 32px; }
  .public-hero h1 { font-size: 34px; }
  .public-hero-aside { min-width: 0; }
  .public-callout { grid-template-columns: 1fr; gap: 7px; }
  .public-grid, .public-grid.two, .department-list { grid-template-columns: 1fr; }
  .role-table { display: block; overflow-x: auto; }
  .public-footer { align-items: flex-start; flex-direction: column; }
  .cookie-consent-panel { right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); width: calc(100% - 20px); grid-template-columns: 1fr; }
  .cookie-actions button { flex: 1; }
}
@media (max-width: 430px) {
  .app-top-actions { gap: 6px; }
  .language-control button { width: 35px; }
  #install-app { max-width: 84px; padding: 7px; font-size: 11px; }
  .intro-actions .button { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .consent-row { align-items: flex-start; }
  .profile-snapshot { min-width: 78px; }
  .account-summary { grid-template-columns: 1fr; }
  .wallet-values { grid-template-columns: 1fr; }
  .wallet-values article { min-height: 86px; border-right: 0; }
}

@media print {
  .wallet-values, .wallet-visibility, .profile-snapshot { display: none !important; }
  .wallet-print-notice { display: block; margin: 0; padding: 16px 18px; border-top: 1px solid var(--line); font-weight: 800; }
}
