/* Guia Antigolpe · sistema visual 2.0 */
:root {
  color-scheme: light;
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-synthesis: none;
  color: #11213c;
  background: #f2f6ff;
  --blue: #155eef;
  --dark: #11213c;
  --muted: #526581;
  --border: #dce5f0;
  --surface: #ffffff;
  --brand-dark: #102a56;
  --radius: 20px;
  --accent: #155eef;
  --accent-ink: #154ab6;
  --tint: #e0eaff;
  --ring: #155eef;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
img { max-width: 100%; }
svg { width: 24px; height: 24px; flex: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 2.15rem; line-height: 1.18; letter-spacing: -.8px; font-weight: 750; text-wrap: balance; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.35px; font-weight: 750; }
h3 { font-size: 1.06rem; line-height: 1.4; }
p { color: var(--muted); }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--ring); }
button, .button, .category-card, .tutorial-item, .wizard-option, .nav-item { transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
button:active:not(:disabled), .category-card:active, .tutorial-item:active, .button:active, .wizard-option:active { transform: scale(.985); }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 14px 22px; background: white; color: #102a56; border: 2px solid #155eef; border-radius: 10px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
/* Accent is for icons and identity; accent-ink provides readable colored text. */
.theme-first { --accent:#155eef; --accent-ink:#154ab6; --tint:#e0eaff; }
.theme-whatsapp { --accent:#079669; --accent-ink:#066746; --tint:#e6f7ee; }
.theme-pix { --accent:#0891b2; --accent-ink:#086479; --tint:#e2f6fb; }
.theme-bank { --accent:#7c3aed; --accent-ink:#6225be; --tint:#f0e8ff; }
.theme-card { --accent:#e58a0a; --accent-ink:#805008; --tint:#fff1d7; }
.theme-shopping { --accent:#db2777; --accent-ink:#a91b5b; --tint:#fce7f3; }
.theme-market { --accent:#4f65d9; --accent-ink:#354bb6; --tint:#e8ecff; }
.theme-links { --accent:#ea580c; --accent-ink:#9e380b; --tint:#fff0e5; }
.theme-identity { --accent:#6366f1; --accent-ink:#4742b8; --tint:#edebff; }
.theme-offers { --accent:#0f766e; --accent-ink:#0c605a; --tint:#dff7f2; }
.theme-combined { --accent:#c24168; --accent-ink:#9e2d4d; --tint:#fce8ee; }
.theme-sos { --accent:#dc2626; --accent-ink:#b51d1d; --tint:#fff0ef; }
.theme-quick { --accent:#15803d; --accent-ink:#126331; --tint:#e7f7e9; }
.theme-more { --accent:#155eef; --accent-ink:#154ab6; --tint:#e5edff; }
/* Shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: white; border-right: 1px solid var(--border); z-index: 30; padding: 29px 16px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; gap: 10px; align-items: center; flex-shrink: 0; color: var(--brand-dark); }
.sidebar .brand { padding: 0 7px; }
.menu-dismiss { display:none; }
body.menu-open { overflow:hidden; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 50px; color: white; background: var(--blue); border-radius: 15px 15px 20px 20px; flex: none; }
.brand-mark svg { width: 31px; height: 31px; stroke-width: 1.8; }
.brand-copy { font-size: 1.04rem; line-height: 1.2; font-weight: 450; letter-spacing: -.4px; }
.brand-copy strong { display: block; font-weight: 800; }
.brand-copy small { display: block; font-size: .66rem; margin-top: 6px; color: var(--muted); letter-spacing: 0; line-height: 1.3; white-space: nowrap; }
.nav-label { font-size: .65rem; letter-spacing: 1.25px; font-weight: 750; margin: 38px 13px 14px; color: var(--muted); }
.sidebar nav { display: grid; gap: 8px; flex-shrink: 0; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 51px; padding: 12px 15px; border-radius: 12px; color: #445b79; font-size: .86rem; font-weight: 650; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item:hover { background: #f2f6ff; }
.nav-item.active { background: #e6eeff; color: #1552ca; }
.nav-current { margin-left: auto; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; flex: none; }
.nav-item.sos { color: #b51d1d; background: #fff4f2; margin: 3px 0; }
.nav-item.sos.active { background: #ffe1dc; }
.sidebar-assistant { margin: 25px 6px; padding: 17px 15px; border: 1px solid #dce6fc; border-radius: 16px; background: #f7f9ff; display: grid; gap: 8px; }
.sidebar-assistant>span:first-child { color: #155eef; }
.sidebar-assistant strong { font-size: .84rem; line-height: 1.4; }
.sidebar-assistant .small { font-size: .75rem; color: #315aa1; display: flex; align-items: center; gap: 5px; }
.sidebar-assistant .small svg { width: 16px; height: 16px; }
.sidebar-bottom { margin-top: auto; flex-shrink: 0; }
.sidebar-bottom .nav-item { font-size: .78rem; padding: 12px; }
.sidebar-signature { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .66rem; margin: 26px 12px 0; }
.sidebar-signature svg { width: 15px; height: 15px; }
.topbar { margin-left: 232px; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px; border-bottom: 1px solid var(--border); background: white; }
.header-brand, .mobile-menu { display: none; }
.topbar-context { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: #3c5577; font-weight: 600; }
.context-mark { height: 6px; width: 6px; border-radius: 50%; background: #155eef; }
.actions { display: flex; align-items: center; gap: 12px; }
.reading-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--border); border-radius: 12px; font-size: .82rem; font-weight: 650; }
.reading-button>span:first-child { font-size: 1rem; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; background: #e7efff; color: #154ab6; border: 1px solid #dae5fc; border-radius: 50%; font-weight: 750; }
.avatar svg { width: 24px; height: 24px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: white; align-items: center; justify-content: center; }
.main { margin-left: 232px; padding: 30px 36px 24px; min-height: calc(100vh - 74px); }
.container { max-width: 1160px; margin: auto; }
.mobile-overlay, .bottom-nav { display: none; }
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--border); margin-top: 32px; padding: 21px 0 4px; font-size: .76rem; color: #526581; }
.footer>span { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #3c567b; }
.footer svg { width: 17px; height: 17px; }
.footer>a { display: flex; align-items: center; min-height: 44px; gap: 7px; font-weight: 600; }
.footer p { flex-basis: 100%; font-size: .74rem; }
/* Reusable actions and headings */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; max-width: 100%; border: 1px solid #c8d6e8; border-radius: 12px; padding: 12px 18px; background: white; color: #173258; font-weight: 700; font-size: .86rem; line-height: 1.35; text-align: center; overflow-wrap: break-word; }
.button>span { min-width: 0; }
.button svg { width: 20px; height: 20px; }
.button.primary { color: white; background: #155eef; border-color: #155eef; box-shadow: 0 3px 8px #155eef15; }
.button.danger { color: white; background: #dc2626; border-color: #dc2626; }
.button.quiet { border-color: transparent; background: transparent; color: #154ab6; box-shadow: none; }
.button:hover:not(:disabled) { background: #edf3ff; border-color: #a6bbe0; }
.button.primary:hover:not(:disabled) { background: #104fd0; border-color: #104fd0; }
.button.danger:hover:not(:disabled) { background: #bb1f1f; border-color: #bb1f1f; }
.button[aria-pressed="true"] { background: #e0eaff; border-color: #155eef; color: #154ab6; }
.button[aria-busy="true"]:after { content: ''; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 15px; color: #415b7e; font-size: .86rem; font-weight: 650; }
.back svg { width: 20px; height: 20px; }
.eyebrow { font-size: .71rem; line-height: 1.4; font-weight: 750; letter-spacing: 1.2px; color: #315b9c; display: flex; align-items: center; gap: 8px; }
.eyebrow svg { width: 18px; height: 18px; }
.page-head { margin: 5px 0 28px; }
.page-head h1 { margin: 12px 0 10px; }
.page-head p { max-width: 750px; font-size: .95rem; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0 15px; }
.section-heading h2 { font-size: 1.23rem; }
.section-heading p { font-size: .88rem; margin-top: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #154ab6; font-size: .85rem; font-weight: 700; }
.text-link svg { width: 18px; height: 18px; }
.panel { border: 1px solid var(--border); background: white; border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.panel h2 { margin-bottom: 18px; }
.panel>p+p { margin-top: 14px; }
.panel-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.panel-heading h2 { margin: 0; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.section-symbol { height: 46px; width: 46px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; color: var(--accent-ink); background: var(--tint); }
.section-symbol.warning { background: #fff1d7; color: #805008; }
/* The main task: search, subjects, SOS */
.home-hero { position: relative; padding: 27px 30px 26px; border-radius: 24px; background: #155eef; color: white; overflow: hidden; display: grid; grid-template-columns: 1fr 110px; gap: 23px 20px; }
.home-hero:after { content: ''; width: 270px; height: 270px; border-radius: 50%; border: 1px solid #ffffff1c; position: absolute; right: -84px; top: -150px; pointer-events: none; }
.home-hero h1 { font-size: 2.05rem; color: white; margin: 7px 0 8px; letter-spacing: -.7px; }
.home-hero p { color: #fff; font-size: .98rem; }
.home-hero .eyebrow { color: #e0eaff; font-size: .66rem; }
.hero-emblem { position: relative; display: grid; place-items: center; align-self: center; width: 90px; height: 90px; border-radius: 26px; background: #ffffff13; border: 1px solid #ffffff33; justify-self: end; transform: rotate(6deg); }
.hero-emblem>svg { width: 61px; height: 61px; stroke-width: 1.25; transform: rotate(-6deg); }
.hero-emblem>span { display: grid; place-items: center; width: 29px; height: 29px; background: white; color: #155eef; border: 3px solid #155eef; border-radius: 10px; position: absolute; bottom: -6px; right: -6px; }
.hero-emblem>span svg { width: 17px; height: 17px; }
.search-box { display: flex; align-items: center; gap: 13px; background: white; padding: 7px 8px 7px 19px; border: 1px solid #b9cce8; border-radius: 14px; min-height: 66px; }
.search-box:focus-within { outline: 3px solid #749cf5; outline-offset: 3px; }
.search-icon { display: grid; place-items: center; color: #526581; }
.search-icon svg { width: 26px; height: 26px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 0; color: #11213c; background: transparent; font-size: 1rem; flex: 1; }
.search-box input::placeholder { color: #526581; opacity: 1; }
.search-box .button { min-height: 48px; padding-inline: 21px; }
.hero-search { grid-column: 1/-1; border-color: white; box-shadow: 0 5px 14px #08235818; z-index: 1; }
.hero-search .button { background: #e0eaff; border-color: #e0eaff; color: #154ab6; }
.hero-search .button:hover { color: white; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.category-card { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) 26px; align-items: center; gap: 15px; padding: 23px 20px; border: 1px solid color-mix(in srgb,var(--accent) 15%,white); border-radius: 19px; color: #11213c; background: var(--tint); min-height: 145px; }
.category-card:hover { border-color: var(--accent); box-shadow: 0 5px 15px #102a5609; transform: translateY(-2px); }
.tile-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: color-mix(in srgb,var(--accent) 12%,white); color: var(--accent-ink); border: 1px solid color-mix(in srgb,var(--accent) 12%,white); }
.tile-icon svg { width: 34px; height: 34px; stroke-width: 1.7; }
.tile-copy { display: grid; gap: 5px; }
.tile-copy strong { font-size: 1.06rem; font-weight: 750; line-height: 1.3; }
.tile-copy>span { color: #405773; font-size: .84rem; line-height: 1.4; }
.category-arrow { display: grid; place-items: center; width: 26px; height: 26px; color: var(--accent-ink); align-self: center; }
.category-arrow svg { width: 20px; height: 20px; }
.category-count { grid-column: 2/-1; margin-top: -6px; color: var(--accent-ink); font-size: .8rem; font-weight: 600; }
.featured { min-height: 140px; grid-template-columns: 60px minmax(0,1fr) 20px; padding: 22px 20px; }
.featured .tile-icon { height: 60px; width: 60px; }
.featured .tile-copy strong { font-size: 1.08rem; }
.home-sos { display: flex; align-items: center; gap: 20px; padding: 23px 25px; margin-top: 25px; background: #fff0ef; border: 1px solid #f3cac6; border-radius: 20px; }
.home-sos h2 { color: #8f1c1c; font-size: 1.23rem; }
.home-sos p { color: #654a52; font-size: .93rem; margin-top: 4px; }
.home-sos .button { margin-left: auto; flex: none; }
.sos-symbol { width: 59px; height: 59px; display: grid; place-items: center; flex: none; border-radius: 18px; color: #dc2626; background: #ffded9; }
.sos-symbol svg { width: 34px; height: 34px; stroke-width: 1.9; }
.quick-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.quick-actions>a { display: flex; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 15px; padding: 19px; background: white; min-height: 96px; }
.quick-actions>a:hover { border-color: #93afe2; }
.quick-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #1552ca; background: #e9efff; border-radius: 13px; flex: none; }
.quick-actions a>span:nth-child(2) { display: grid; gap: 4px; }
.quick-actions strong { font-size: .92rem; line-height: 1.4; }
.quick-actions a>span:nth-child(2)>span { font-size: .8rem; color: var(--muted); }
.quick-actions a>svg { width: 18px; height: 18px; color: #6b7d96; margin-left: auto; }
/* Category screens and visual tutorial cards */
.category-header { display: flex; align-items: center; gap: 25px; padding: 29px 32px; border: 1px solid color-mix(in srgb,var(--accent) 20%,white); border-radius: 23px; background: var(--tint); }
.category-emblem { width: 85px; height: 85px; display: grid; place-items: center; background: color-mix(in srgb,var(--accent) 13%,white); border-radius: 25px; color: var(--accent-ink); flex: none; }
.category-emblem svg { width: 50px; height: 50px; stroke-width: 1.6; }
.category-header h1 { margin: 6px 0 6px; }
.category-header p { color: #405773; font-size: 1rem; }
.category-header .eyebrow { color: var(--accent-ink); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter-tabs a { display: inline-flex; align-items: center; gap: 8px; background: white; color: #405773; border: 1px solid #c9d6e8; border-radius: 11px; padding: 10px 14px; min-height: 46px; font-size: .84rem; font-weight: 600; }
.filter-tabs a.selected { color: #154ab6; background: #e0eaff; border-color: #155eef; }
.filter-tabs a span { font-size: .75rem; border-radius: 6px; padding: 1px 6px; background: #ffffffa6; }
.tutorial-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.tutorial-item { display: flex; align-items: flex-start; gap: 17px; padding: 23px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 17px; background: white; min-height: 168px; }
.tutorial-item:hover { border-color: var(--accent); background: color-mix(in srgb,var(--tint) 30%,white); box-shadow: 0 5px 15px #102a5608; transform: translateY(-2px); }
.problem-icon { width: 53px; height: 53px; background: var(--tint); color: var(--accent-ink); border-radius: 16px; display: grid; place-items: center; flex: none; }
.problem-icon svg { width: 30px; height: 30px; stroke-width: 1.8; }
.tutorial-card-copy { display: grid; gap: 7px; flex: 1; min-width: 0; }
.card-kicker { font-size: .72rem; font-weight: 700; color: var(--accent-ink); line-height: 1.4; }
.tutorial-card-copy strong { font-size: 1.04rem; line-height: 1.35; font-weight: 750; }
.tutorial-hint { font-size: .85rem; color: #526581; line-height: 1.5; }
.item-arrow { color: var(--accent-ink); margin-top: 10px; flex: none; }
.item-arrow svg { width: 18px; height: 18px; }
.compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.compact .tutorial-item { flex-wrap: wrap; min-height: 180px; padding: 20px; gap: 12px; }
.compact .tutorial-card-copy { order: 2; flex-basis: 100%; }
.compact .tutorial-hint { display: none; }
.compact .item-arrow { margin-left: auto; }
.search-surface { padding: 22px; background: #e0eaff; border-radius: 20px; border: 1px solid #cbdaf7; margin-bottom: 26px; }
/* Tutorials: complete guidance, clear individual steps, a large real example. */
.guide-header { display: flex; align-items: flex-start; gap: 22px; padding: 27px 29px; border-radius: 22px; border: 1px solid color-mix(in srgb,var(--accent) 17%,white); background: var(--tint); }
.guide-emblem { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; color: var(--accent-ink); background: color-mix(in srgb,var(--accent) 11%,white); flex: none; }
.guide-emblem svg { width: 41px; height: 41px; }
.guide-header h1 { font-size: 1.95rem; line-height: 1.2; margin: 9px 0 10px; }
.guide-header p { font-size: .96rem; color: #405773; max-width: 860px; }
.category-label { display: inline-flex; min-height: 26px; color: var(--accent-ink); font-size: .79rem; font-weight: 750; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 21px 0; }
.guide-tools { padding: 0 2px; margin: 20px 0 24px; }
.tool-menu { position: relative; border: 0; margin: 0; border-radius: 12px; background: transparent; }
.tool-menu summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 16px; color: #173258; font-size: .85rem; font-weight: 650; background: white; border: 1px solid #c8d6e8; border-radius: 12px; list-style: none; }
.tool-menu summary::-webkit-details-marker { display: none; }
.tool-menu>div { position: absolute; z-index: 5; background: white; border: 1px solid #c8d6e8; border-radius: 13px; padding: 8px; top: 57px; right: 0; min-width: 225px; box-shadow: 0 8px 22px #102a5614; display: grid; gap: 5px; }
.tool-menu .button { border-color: transparent; justify-content: start; }
.guide-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,37%); gap: 24px; align-items: start; }
.guide-main { min-width: 0; }
.guide-aside { min-width: 0; display: grid; gap: 20px; }
.guide .panel { padding: 24px; border-radius: 18px; }
.alerts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.alert-small { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #eadbbd; background: #fff7e8; padding: 14px; border-radius: 12px; color: #694a12; font-size: .89rem; font-weight: 600; }
.alert-small svg { width: 19px; height: 19px; margin-top: 2px; }
.safety-caption { font-size: .8rem; color: #526581; margin-top: 14px; line-height: 1.55; }
.progress-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; color: #526581; margin: 0 0 9px; }
.progress-row span:first-child { color: #315b9c; font-weight: 700; }
.progress-track { height: 8px; border-radius: 10px; overflow: hidden; background: #e5edfa; margin: 0 0 22px; }
progress { display: block; width: 100%; height: 100%; border: 0; accent-color: var(--accent); }
progress::-webkit-progress-bar { background: #e5edfa; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 10px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.step { display: flex; align-items: flex-start; gap: 13px; border: 1px solid #d4dfed; background: #fbfcff; border-radius: 14px; padding: 18px 15px; }
.step-number { display: grid; place-items: center; width: 33px; height: 33px; background: var(--tint); color: var(--accent-ink); border-radius: 10px; font-size: .95rem; font-weight: 800; flex: none; }
.step label { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex: 1; cursor: pointer; padding: 2px 0; }
.step-text { font-size: 1rem; color: #11213c; line-height: 1.5; }
.step input { height: 25px; width: 25px; flex: none; accent-color: #155eef; margin: 3px 0; cursor: pointer; }
.step.checked { background: #edf9f1; border-color: #8fc8a3; }
.step.checked .step-number { color: white; background: #15803d; }
.checklist-foot { margin-top: 20px; display: grid; justify-items: start; gap: 7px; }
.checklist-foot p { font-size: .8rem; color: #526581; }
.checklist-foot .button { padding-left: 0; min-height: 44px; }
.step-divider { display: flex; align-items: center; gap: 13px; margin: 28px 0 16px; font-size: .73rem; letter-spacing: 1px; color: #9c2424; font-weight: 750; }
.step-divider:after { content: ''; height: 1px; background: #edd6d4; flex: 1; }
.avoid-panel { display: flex; align-items: flex-start; gap: 15px; background: #fff0ef; border: 1px solid #f1cdc8; border-radius: 17px; padding: 23px; margin-bottom: 22px; }
.avoid-panel>.section-symbol { background: #ffddd8; color: #b51d1d; }
.avoid-panel h2 { font-size: 1.16rem; color: #941d1d; margin-bottom: 13px; }
.avoid-panel li { font-size: .94rem; color: #613e43; }
.plain-list { padding-left: 20px; margin: 0; }
.plain-list li+li { margin-top: 11px; }
.example-panel { background: white; border: 1px solid #cfdceb; border-radius: 19px; padding: 16px; overflow: hidden; }
.example-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 3px 1px 14px; color: #526581; font-size: .69rem; font-weight: 700; }
.example-heading>span:first-child { display: flex; align-items: center; gap: 7px; }
.example-heading svg { width: 17px; height: 17px; }
.example-zoom { width: 100%; padding: 0; border: 0; border-radius: 10px; background: #edf2fa; display: block; position: relative; cursor: zoom-in; }
.example-zoom img { width: 100%; height: auto; max-height: 640px; object-fit: contain; display: block; border-radius: 10px; }
.expand-label { display: flex; justify-content: center; gap: 7px; align-items: center; min-height: 44px; color: #173258; background: #e7effb; border-radius: 0 0 10px 10px; font-weight: 700; font-size: .83rem; padding: 9px; }
.expand-label svg { width: 18px; height: 18px; }
.example-panel>p { font-size: .76rem; padding-top: 11px; }
.related-sos { background: #fff0ef; border: 1px solid #f1cdc8; border-radius: 18px; padding: 23px; }
.related-sos .sos-symbol { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 16px; }
.related-sos .sos-symbol svg { width: 28px; height: 28px; }
.related-sos h2 { font-size: 1.2rem; color: #941d1d; margin-bottom: 9px; }
.related-sos>p { color: #67484c; font-size: .9rem; margin-bottom: 18px; }
.related-sos .button { width: 100%; }
.related-sos .safety-caption { margin-bottom: 0; font-size: .8rem; }
.guide-details, details { border: 1px solid var(--border); border-radius: 15px; background: white; margin-bottom: 17px; }
summary { padding: 19px 21px; font-weight: 700; min-height: 52px; color: #173258; font-size: .9rem; }
.guide-details summary { display: flex; align-items: center; gap: 10px; list-style: none; }
.guide-details summary::-webkit-details-marker { display: none; }
.guide-details summary>svg:first-child { color: var(--accent-ink); width: 21px; height: 21px; }
.guide-details summary>svg:last-child { width: 18px; height: 18px; margin-left: auto; }
.guide-details[open] summary>svg:last-child { transform: rotate(90deg); }
details>div { padding: 0 21px 22px; }
.guide-details>div>p+p { margin-top: 14px; }
.source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.source-image { background: #f2f6ff; border: 1px solid #d2dfef; border-radius: 12px; padding: 8px; text-align: left; width: 100%; cursor: zoom-in; }
.source-image img { width: 100%; height: auto; display: block; object-fit: contain; border-radius: 7px; }
.source-image>span { display: flex; align-items: center; justify-content: space-between; font-size: .79rem; font-weight: 600; padding: 9px 2px 2px; color: #315b9c; }
.source-image>span svg { width: 17px; height: 17px; }
.source-reference { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 12px; }
.source-reference p { font-size: .84rem; }
.related-section { margin-top: 10px; }
/* SOS */
.sos-header { display: flex; align-items: center; gap: 23px; padding: 26px 29px; background: #fff0ef; border: 1px solid #f3cac6; border-radius: 22px; }
.sos-header .eyebrow { color: #a32020; }
.sos-header h1 { margin: 8px 0 8px; color: #8f1c1c; }
.sos-header p { color: #67484c; }
.sos-header .sos-symbol { width: 77px; height: 77px; border-radius: 23px; }
.sos-header .sos-symbol svg { height: 44px; width: 44px; }
.sos-priority { margin: 20px 0; display: flex; gap: 11px; align-items: flex-start; padding: 15px 18px; background: white; border-left: 4px solid #dc2626; border-radius: 8px; }
.sos-priority svg { width: 23px; height: 23px; color: #b51d1d; margin-top: 2px; }
.sos-priority p { color: #613e43; font-size: .94rem; font-weight: 650; }
.sos-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.sos-option { display: flex; align-items: center; gap: 14px; padding: 23px 20px; border: 1px solid #edcfcb; background: white; border-radius: 17px; min-height: 117px; }
.sos-option:hover { background: #fff0ef; border-color: #d76b60; }
.sos-option-icon { width: 48px; height: 48px; background: #fff0ef; color: #bc2323; display: grid; place-items: center; border-radius: 14px; flex: none; }
.sos-option-icon svg { height: 29px; width: 29px; }
.sos-option strong, .sos-more summary strong { font-size: .97rem; font-weight: 700; flex: 1; }
.sos-option>svg { width: 17px; height: 17px; color: #ae3e3e; margin-left: auto; }
.sos-more { padding: 0; border: 1px solid #edcfcb; border-radius: 17px; margin: 0; }
.sos-more summary { display: flex; align-items: center; gap: 14px; min-height: 117px; padding: 23px 20px; list-style: none; }
.sos-more summary::-webkit-details-marker { display: none; }
.sos-more summary>svg { width: 17px; height: 17px; color: #ae3e3e; }
.sos-more[open] { grid-column: 1/-1; }
.sos-more[open] summary { min-height: 90px; }
.sos-more[open] summary>svg { transform: rotate(90deg); }
.sos-other-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; padding: 0 20px 20px; }
.sos-other-grid .sos-option { background: #fff7f6; min-height: 95px; }
.sos-sequence { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 0; }
.sos-sequence li { display: flex; align-items: flex-start; gap: 14px; padding: 21px; background: white; border: 1px solid var(--border); border-radius: 16px; }
.sequence-number { width: 34px; height: 34px; background: #ffe3df; color: #b51d1d; border-radius: 10px; display: grid; place-items: center; font-weight: 800; flex: none; }
.sos-sequence h3 { font-size: .94rem; margin: 3px 0 7px; }
.sos-sequence p { font-size: .87rem; }
.source-caption { font-size: .78rem; color: #526581; margin-top: 15px; }
/* Guided questions */
.wizard { max-width: 800px; margin: 0 auto; }
.wizard-intro { display: flex; align-items: center; gap: 13px; margin: 2px 0 22px; }
.wizard-intro p { font-size: .92rem; margin-top: 5px; }
.wizard-panel { padding: 32px; background: white; border: 1px solid #d4e0f2; border-radius: 23px; }
.wizard-panel h1 { font-size: 1.8rem; margin: 24px 0; }
.wizard-options { display: grid; gap: 12px; }
.wizard-option { display: flex; align-items: center; gap: 15px; text-align: left; background: #f7faff; border: 1px solid #ccdbee; border-radius: 14px; padding: 15px 19px; min-height: 76px; font-size: .97rem; font-weight: 650; }
.wizard-option:hover { background: #e7efff; border-color: #155eef; }
.option-symbol { width: 44px; height: 44px; border-radius: 12px; background: #e0eaff; color: #154ab6; display: grid; place-items: center; flex: none; }
.wizard-option>svg { width: 18px; height: 18px; margin-left: auto; color: #46658f; }
.wizard-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 25px; }
.privacy-caption { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .8rem; margin: 20px 10px; }
.privacy-caption svg { width: 17px; height: 17px; }
.wizard-result { padding: 38px; background: var(--tint); border: 1px solid color-mix(in srgb,var(--accent) 25%,white); border-radius: 23px; text-align: center; display: grid; justify-items: center; gap: 20px; }
.result-symbol { width: 87px; height: 87px; border-radius: 25px; color: var(--accent-ink); background: #ffffffa6; display: grid; place-items: center; }
.result-symbol svg { width: 46px; height: 46px; }
.wizard-result h1 { font-size: 1.9rem; }
.wizard-result>.eyebrow { color: var(--accent-ink); }
.wizard-result>.toolbar { margin: 0; justify-content: center; }
.wizard-result p { max-width: 600px; color: #405773; }
/* Account, materials and consistent secondary screens */
.notice { display: flex; align-items: flex-start; gap: 12px; border: 1px solid #cbdcf8; background: #eaf1ff; border-radius: 13px; padding: 18px 20px; margin: 18px 0; color: #274d83; font-size: .9rem; }
.notice p { color: inherit; }
.notice svg { width: 22px; height: 22px; margin-top: 2px; }
.notice.urgent { border-color: #f1c7c2; background: #fff0ef; color: #962121; }
.notice.success { border-color: #a3d4b4; background: #e7f7e9; color: #126331; }
.empty { display: grid; justify-items: center; gap: 19px; padding: 46px 25px; background: white; border: 1px solid #d4dfed; border-radius: 22px; text-align: center; }
.empty h2 { font-size: 1.45rem; }
.empty p { max-width: 530px; font-size: .95rem; }
.empty-symbol { width: 80px; height: 80px; display: grid; place-items: center; color: #155eef; background: #e0eaff; border-radius: 24px; }
.empty-symbol svg { height: 43px; width: 43px; }
.access-gate { max-width: 650px; margin: 30px auto; text-align: center; }
.access-gate>.text-link { margin-top: 18px; }
.login-wrap { max-width: 515px; margin: 10px auto 30px; }
.login-wrap .panel { padding: 32px; border-top: 5px solid #155eef; }
.login-wrap h1 { font-size: 1.85rem; margin: 14px 0 10px; }
.login-wrap .panel>p { margin: 10px 0 25px; }
.login-wrap form>.button { width: 100%; }
.login-wrap>p { font-size: .86rem; }
.form { display: grid; gap: 19px; }
.form label { display: grid; gap: 8px; color: #173258; font-size: .9rem; font-weight: 650; }
.form input, .form textarea, .form select { width: 100%; min-height: 49px; border: 1px solid #b5c7df; background: white; color: #11213c; border-radius: 11px; padding: 12px 13px; }
.form input[type="checkbox"] { width: 25px; min-height: 25px; height: 25px; accent-color: #155eef; flex: none; }
.form .inline-label { display: flex; align-items: center; gap: 10px; }
.form textarea { min-height: 120px; line-height: 1.6; resize: vertical; font-size: .9rem; }
.form .help { color: #526581; font-weight: 400; font-size: .8rem; }
.form-error { padding: 14px 16px; background: #fff0ef; border-left: 4px solid #dc2626; border-radius: 9px; color: #941d1d; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form select { min-height: 46px; border: 1px solid #bdcce0; border-radius: 9px; background: white; padding: 8px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding: 23px 0; border-bottom: 1px solid #dce5f0; }
.settings-row:first-child { padding-top: 2px; }
.settings-row:last-child { border: 0; }
.settings-row h3 { font-size: 1.05rem; }
.settings-row p { max-width: 610px; margin-top: 7px; font-size: .88rem; }
.settings-row>.button { flex: none; }
.file-line { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding: 28px; }
.file-line>svg { width: 65px; height: 65px; padding: 14px; color: #155eef; background: #e0eaff; border-radius: 18px; }
.file-info { flex: 1; min-width: 180px; }
.file-info h2 { font-size: 1.3rem; margin-bottom: 9px; }
.file-info p { font-size: .9rem; }
.file-info p+p { margin-top: 7px; }
/* Administration keeps every existing form and behavior. */
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat { padding: 23px; background: white; border: 1px solid #d4dfed; border-radius: 17px; }
.stat strong { display: block; color: #155eef; font-size: 2rem; }
.stat span { font-size: .85rem; color: #526581; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; }
.admin-tabs a { padding: 11px 15px; background: white; border: 1px solid #cbd8ea; border-radius: 11px; min-height: 46px; font-size: .83rem; font-weight: 600; }
.admin-tabs a.active { background: #155eef; border-color: #155eef; color: white; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; text-align: left; }
th { background: #eaf1ff; color: #315177; font-size: .77rem; font-weight: 750; }
td, th { padding: 15px 13px; border-bottom: 1px solid #dce5f0; vertical-align: top; }
td .button { font-size: .8rem; padding: 10px 13px; min-height: 45px; }
code { font-family: Consolas, monospace; font-size: .85em; padding: 3px 6px; border-radius: 5px; background: #e9effa; overflow-wrap: anywhere; }
.code-area { min-height: 450px !important; font-family: Consolas, monospace !important; font-size: .84rem !important; }
.admin-page-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.review-preview { max-height: 850px; object-fit: contain; }
.recovery-code { font-family: Consolas, monospace; overflow-wrap: anywhere; padding: 17px; background: white; border: 1px solid #b9cee9; border-radius: 10px; margin-top: 15px; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; color: #154ab6; background: #e0eaff; border-radius: 8px; font-size: .77rem; font-weight: 700; }
.tag.red { color: #b51d1d; background: #fff0ef; }
/* Feedback, zoom and reading preferences */
.loading { margin: 15vh 20px; text-align: center; }
.loading-view { padding: 65px 20px; text-align: center; }
.spinner { display: block; width: 28px; height: 28px; border: 3px solid #dce5f0; border-top-color: #155eef; border-radius: 50%; margin: 0 auto 19px; animation: spin .8s linear infinite; }
#toast { display: none; position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 100; background: #102a56; color: white; padding: 15px 22px; border-radius: 13px; max-width: min(90vw,650px); box-shadow: 0 7px 25px #102a5622; font-size: .9rem; }
#toast.visible { display: block; }
dialog { border: 0; background: white; color: #11213c; padding: 18px; border-radius: 19px; max-width: 96vw; max-height: 96vh; }
dialog::backdrop { background: #081c39cc; }
dialog>button { display: flex; margin: 0 0 14px auto; }
dialog img { display: block; max-width: 88vw; max-height: 78vh; object-fit: contain; }
.large-text { font-size: 20px; }
.largest-text { font-size: 23px; }
.contrast { --dark:#07152c; --muted:#263c5c; --border:#768aa6; --ring:#102a56; color:#07152c; background:#fff; }
.contrast .main, .contrast .topbar, .contrast .sidebar { background:#fff; }
.contrast :is(.panel,.tutorial-item,.category-card,.step,.sos-option,.example-panel,.wizard-option,.wizard-panel,.guide-header,.category-header) { border-color:#768aa6; }
.contrast :is(p,.tutorial-hint,.tile-copy>span,.safety-caption,.source-caption,.privacy-caption) { color:#263c5c; }
.contrast .home-hero p, .contrast .home-hero .eyebrow { color:white; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Wide desktop */
@media(min-width:1550px) {
  .main { padding-top:36px; }
  .home-hero { padding:30px 34px; }
  .home-hero h1 { font-size:2.3rem; }
  .featured-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .featured { min-height:147px; }
}
@media(max-width:1250px) {
  .sidebar { width:212px; padding-inline:12px; }
  .main, .topbar { margin-left:212px; padding-inline:27px; }
  .brand-copy { font-size:.96rem; }
  .brand-copy small { font-size:.61rem; }
  .featured { grid-template-columns:52px minmax(0,1fr); gap:12px; padding:20px 17px; }
  .featured .tile-icon { width:52px; height:52px; border-radius:15px; }
  .featured .tile-copy strong { font-size:1rem; }
  .featured .category-arrow { position:absolute; top:14px; right:13px; width:20px; height:20px; }
  .featured .category-arrow svg { width:17px; height:17px; }
  .featured .tile-copy { grid-column:1/-1; }
  .featured { min-height:167px; }
  .all-subjects { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .guide-layout { grid-template-columns:minmax(0,1fr) minmax(270px,35%); gap:18px; }
  .guide .panel { padding:21px; }
  .alerts { grid-template-columns:1fr; }
  .tutorial-item { padding:20px; gap:12px; }
  .tutorial-list.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sos-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1020px) {
  .sidebar { width:196px; }
  .main, .topbar { margin-left:196px; padding-inline:22px; }
  .sidebar .brand { gap:8px; padding:0 2px; }
  .brand-mark { width:39px; height:44px; border-radius:13px 13px 17px 17px; }
  .brand-mark svg { width:28px; height:28px; }
  .brand-copy { font-size:.9rem; }
  .brand-copy small { white-space:normal; font-size:.62rem; max-width:123px; }
  .nav-item { font-size:.82rem; padding:12px 10px; gap:10px; }
  .sidebar-assistant { margin-inline:2px; padding:16px 11px; }
  .sidebar-bottom .nav-item { font-size:.74rem; gap:9px; padding:11px 9px; }
  .sidebar-signature { font-size:.62rem; margin-inline:4px; }
  .nav-label { font-size:.61rem; letter-spacing:.7px; margin-inline:9px; }
  .home-hero { padding:26px; grid-template-columns:1fr 75px; }
  .home-hero h1 { font-size:1.9rem; }
  .hero-emblem { width:70px; height:70px; border-radius:21px; }
  .hero-emblem>svg { width:48px; height:48px; }
  .home-sos { gap:14px; padding:21px; flex-wrap:wrap; }
  .home-sos>.button { margin-left:73px; }
  .quick-actions { grid-template-columns:1fr; }
  .tutorial-list { grid-template-columns:1fr; }
  .guide-layout { grid-template-columns:1fr; }
  .guide-aside { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
  .guide:not(.emergency-guide) .guide-aside { grid-row:1; }
  .example-zoom img { max-height:500px; }
  .guide-aside .related-sos { margin:0; }
  .guide-header h1 { font-size:1.8rem; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sos-sequence { grid-template-columns:1fr; }
}
/* Mobile: 4 destinations, large controls and two-column subjects. */
@media(max-width:760px) {
  :root { font-size:17px; }
  :root.large-text { font-size:20px; }
  :root.largest-text { font-size:23px; }
  .sidebar { width:280px; padding:25px 17px; transform:translateX(-105%); transition:transform .18s ease; box-shadow:10px 0 30px #102a561c; }
  .sidebar.open { transform:translateX(0); }
  .menu-dismiss { display:inline-flex; align-self:flex-end; margin:-10px -2px 10px 0; }
  .sidebar .brand-copy { font-size:1rem; }
  .sidebar .brand-copy small { font-size:.69rem; max-width:none; }
  .sidebar .brand-mark { width:44px; height:48px; }
  .sidebar .nav-item { min-height:51px; padding:13px 15px; font-size:.88rem; }
  .sidebar .nav-label { font-size:.67rem; margin-top:31px; }
  .sidebar-bottom .nav-item { font-size:.82rem; }
  .sidebar-assistant { padding:19px; margin:25px 0; }
  .mobile-overlay.open { display:block; position:fixed; inset:0; background:#07152c66; z-index:29; }
  .main, .topbar { margin-left:0; }
  .topbar { height:70px; padding:0 18px; gap:12px; }
  .mobile-menu { display:inline-flex; flex:none; }
  .header-brand { display:flex; gap:8px; flex:1; min-width:0; }
  .header-brand .brand-mark { width:31px; height:35px; border-radius:9px 9px 13px 13px; }
  .header-brand .brand-mark svg { width:23px; height:23px; }
  .header-brand .brand-copy { font-size:.83rem; white-space:nowrap; font-weight:650; }
  .header-brand .brand-copy strong { display:inline; font-weight:800; }
  .header-brand .brand-copy small { font-size:.57rem; white-space:nowrap; margin-top:4px; max-width:none; }
  .topbar-context, .reading-label { display:none; }
  .actions { gap:9px; flex:none; }
  .reading-button { width:44px; height:44px; padding:0; justify-content:center; border-radius:11px; }
  .reading-button>span:first-child { font-size:.94rem; }
  .avatar { width:44px; height:44px; }
  .avatar svg { width:22px; height:22px; }
  .main { padding:23px 20px 105px; min-height:calc(100vh - 70px); }
  .bottom-nav { position:fixed; inset:auto 0 0; display:grid; grid-template-columns:repeat(4,1fr); align-items:end; background:#fff; border-top:1px solid #d5e0f2; padding:8px 10px max(8px,env(safe-area-inset-bottom)); z-index:25; box-shadow:0 -4px 15px #102a5605; }
  .bottom-nav a { display:grid; justify-items:center; gap:2px; font-size:.74rem; min-height:53px; color:#526581; font-weight:600; }
  .bottom-icon { width:40px; height:31px; display:grid; place-items:center; border-radius:10px; }
  .bottom-icon svg { width:24px; height:24px; }
  .bottom-nav a.active { color:#154ab6; font-weight:750; }
  .bottom-nav a.active .bottom-icon { background:#e0eaff; }
  .bottom-nav a.sos { color:#b51d1d; }
  .bottom-nav a.sos .bottom-icon { background:#dc2626; color:#fff; width:43px; height:36px; border-radius:12px; margin-top:-5px; }
  .home-hero { border-radius:21px; padding:23px; grid-template-columns:1fr 68px; gap:21px 10px; }
  .home-hero h1 { font-size:1.85rem; max-width:480px; margin-top:7px; }
  .home-hero p { font-size:.94rem; }
  .home-hero .eyebrow { font-size:.62rem; letter-spacing:.9px; }
  .hero-emblem { width:66px; height:70px; }
  .hero-emblem>svg { width:44px; height:44px; }
  .hero-emblem>span { width:25px; height:25px; border-radius:9px; }
  .search-box { gap:11px; min-height:63px; padding:6px 6px 6px 15px; border-radius:12px; }
  .search-icon svg { height:24px; width:24px; }
  .search-box input { font-size:.94rem; }
  .search-box .button { min-height:48px; padding:11px 16px; font-size:.85rem; }
  .search-box .button svg { width:18px; height:18px; }
  .section-heading { margin:24px 0 15px; gap:12px; }
  .section-heading h2 { font-size:1.2rem; }
  .text-link { font-size:.85rem; }
  .category-grid, .all-subjects { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
  .category-card, .featured { display:grid; grid-template-columns:1fr 24px; gap:13px 6px; min-height:163px; padding:19px; border-radius:17px; }
  .category-card .tile-icon, .featured .tile-icon { height:52px; width:52px; border-radius:15px; }
  .tile-icon svg { width:31px; height:31px; }
  .tile-copy, .featured .tile-copy { grid-column:1/-1; }
  .tile-copy strong, .featured .tile-copy strong { font-size:1.03rem; line-height:1.28; }
  .tile-copy>span { font-size:.84rem; }
  .category-card .category-arrow, .featured .category-arrow { position:static; align-self:start; margin-top:7px; width:24px; height:24px; grid-column:2; grid-row:1; }
  .category-count { grid-column:1/-1; margin-top:0; font-size:.8rem; }
  .featured-grid .category-card { min-height:158px; }
  .home-sos { padding:22px; gap:14px; border-radius:19px; margin-top:22px; }
  .home-sos .sos-symbol { width:51px; height:51px; border-radius:15px; }
  .home-sos .sos-symbol svg { width:30px; height:30px; }
  .home-sos h2 { font-size:1.16rem; }
  .home-sos p { font-size:.9rem; }
  .home-sos .button { margin:6px 0 0; flex-basis:100%; }
  .quick-actions { gap:12px; margin-top:17px; }
  .quick-actions>a { min-height:88px; padding:17px; border-radius:14px; }
  .quick-actions strong { font-size:.91rem; }
  .quick-actions a>span:nth-child(2)>span { font-size:.82rem; }
  .footer { margin-top:26px; font-size:.77rem; }
  .footer p { font-size:.76rem; }
  .page-head { margin:2px 0 24px; }
  h1, .page-head h1 { font-size:1.9rem; letter-spacing:-.55px; }
  .page-head p { font-size:.94rem; }
  .eyebrow { font-size:.69rem; }
  .back { font-size:.86rem; margin-bottom:12px; }
  .category-header { gap:18px; padding:25px; border-radius:20px; }
  .category-emblem { width:68px; height:68px; border-radius:20px; }
  .category-emblem svg { height:40px; width:40px; }
  .category-header h1 { font-size:1.85rem; }
  .category-header .eyebrow { font-size:.64rem; }
  .category-header p { font-size:.94rem; }
  .tutorial-list, .tutorial-list.compact { grid-template-columns:1fr; gap:13px; }
  .tutorial-item, .compact .tutorial-item { min-height:133px; padding:20px 17px; gap:13px; flex-wrap:nowrap; border-radius:15px; }
  .tutorial-card-copy, .compact .tutorial-card-copy { order:initial; flex-basis:auto; }
  .problem-icon { width:48px; height:48px; border-radius:14px; }
  .problem-icon svg { width:28px; height:28px; }
  .tutorial-card-copy strong { font-size:1.04rem; }
  .tutorial-hint { font-size:.87rem; }
  .card-kicker { font-size:.73rem; }
  .compact .item-arrow { margin-left:0; }
  .filter-tabs { gap:8px; }
  .filter-tabs a { padding:10px 12px; font-size:.8rem; }
  .search-surface { padding:15px; border-radius:16px; }
  .guide-header { padding:23px 20px; gap:16px; flex-wrap:wrap; }
  .guide-emblem { height:60px; width:60px; border-radius:18px; }
  .guide-emblem svg { width:35px; height:35px; }
  .guide-header>div { flex:1; min-width:190px; }
  .guide-header h1 { font-size:1.75rem; }
  .guide-header p { font-size:.94rem; }
  .guide-tools { gap:9px; margin:17px 0 21px; }
  .guide-tools>.button { flex:1; padding:12px 13px; font-size:.84rem; }
  .tool-menu { margin-left:auto; }
  .tool-menu summary { min-height:46px; padding:10px 13px; font-size:.82rem; }
  .guide-layout { gap:18px; }
  .guide-aside { grid-template-columns:1fr; }
  .guide:not(.emergency-guide) .guide-aside { grid-row:auto; }
  .guide:not(.emergency-guide) .guide-main { display:contents; }
  .guide:not(.emergency-guide) .signs-panel { order:1; }
  .guide:not(.emergency-guide) .procedure-panel { order:2; }
  .guide:not(.emergency-guide) .avoid-panel { order:3; }
  .guide:not(.emergency-guide) .guide-aside { order:0; }
  .guide:not(.emergency-guide) .guide-details { order:4; }
  .guide-aside .related-sos { display:none; }
  .guide .panel { padding:22px 18px; margin-bottom:0; }
  .guide .panel-heading { gap:12px; margin-bottom:19px; }
  .guide .panel-heading h2 { font-size:1.2rem; }
  .guide-main { display:grid; gap:18px; }
  .guide-main>.avoid-panel, .guide-main>.guide-details { margin-bottom:0; }
  .section-symbol { height:42px; width:42px; border-radius:12px; }
  .alerts { gap:10px; }
  .alert-small { padding:14px; font-size:.92rem; }
  .step { padding:17px 13px; gap:11px; }
  .step-number { width:32px; height:32px; border-radius:10px; font-size:.92rem; }
  .step-text { font-size:1rem; }
  .step label { gap:10px; }
  .step input { width:25px; height:25px; }
  .progress-row { font-size:.8rem; }
  .progress-row>span:last-child { display:none; }
  .avoid-panel { padding:22px 18px; gap:12px; }
  .avoid-panel .section-symbol { width:38px; height:38px; }
  .avoid-panel li { font-size:.95rem; }
  .example-panel { padding:13px; border-radius:17px; }
  .example-zoom img { max-height:540px; }
  .example-heading { font-size:.68rem; }
  .example-panel>p { font-size:.78rem; }
  .expand-label { font-size:.85rem; }
  .source-grid { gap:12px; }
  .guide-details summary { padding:19px 17px; font-size:.88rem; }
  .guide-details>div { padding-inline:17px; }
  .related-section { margin-top:24px; }
  .sos-header { gap:17px; padding:24px 20px; flex-wrap:wrap; }
  .sos-header>.sos-symbol { width:61px; height:61px; border-radius:18px; }
  .sos-header>.sos-symbol svg { height:36px; width:36px; }
  .sos-header>div { min-width:190px; flex:1; }
  .sos-header h1 { font-size:1.8rem; }
  .sos-header .eyebrow { font-size:.65rem; }
  .sos-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
  .sos-option, .sos-more summary { display:grid; grid-template-columns:1fr 18px; min-height:154px; padding:18px; gap:13px 6px; align-content:start; }
  .sos-option-icon { width:47px; height:47px; border-radius:14px; }
  .sos-option strong, .sos-more summary strong { grid-row:2; grid-column:1/-1; font-size:1rem; line-height:1.35; }
  .sos-option>svg, .sos-more summary>svg { grid-row:1; grid-column:2; margin-top:13px; }
  .sos-more[open] summary { display:flex; min-height:86px; }
  .sos-other-grid { grid-template-columns:1fr; padding:0 13px 13px; }
  .sos-other-grid .sos-option { display:flex; min-height:92px; align-items:center; }
  .sos-other-grid .sos-option>svg { margin:0; }
  .sos-sequence li { padding:20px 18px; }
  .sos-sequence h3 { font-size:1rem; }
  .sos-sequence p { font-size:.94rem; }
  .source-caption { font-size:.8rem; }
  .sos-priority { font-size:.95rem; margin:18px 0; padding:15px; }
  .wizard-panel { padding:25px 20px; border-radius:20px; }
  .wizard-panel h1 { font-size:1.7rem; }
  .wizard-option { min-height:76px; padding:15px; gap:12px; font-size:.97rem; }
  .option-symbol { width:42px; height:42px; border-radius:12px; }
  .wizard-result { padding:29px 22px; }
  .wizard-result h1 { font-size:1.8rem; }
  .wizard-result>.button { width:100%; }
  .wizard-result .toolbar { gap:5px; }
  .wizard-result .toolbar .button { padding-inline:10px; }
  .privacy-caption { align-items:flex-start; justify-content:flex-start; font-size:.83rem; }
  .privacy-caption svg { margin-top:3px; }
  .panel { padding:23px 20px; }
  .form-grid, .admin-page-grid { grid-template-columns:1fr; }
  .login-wrap .panel { padding:27px 22px; }
  .login-wrap h1 { font-size:1.75rem; }
  .settings-row { flex-wrap:wrap; gap:16px; padding-block:22px; }
  .settings-row p { font-size:.92rem; }
  .settings-row>.inline-form { gap:9px; }
  .settings-row .button { font-size:.85rem; }
  .file-line { padding:24px 20px; gap:17px; }
  .file-info h2 { font-size:1.2rem; }
  .file-line>.button { flex-basis:100%; }
  .empty { padding:34px 21px; }
  .empty h2 { font-size:1.35rem; }
  .empty p { font-size:.94rem; }
  .notice { padding:17px; font-size:.91rem; }
  .admin-tabs { gap:8px; }
  .admin-tabs a { font-size:.8rem; padding:10px 12px; }
  .stat { padding:17px; }
  .stat span { font-size:.82rem; }
  #toast { bottom:89px; width:max-content; max-width:calc(100vw - 32px); font-size:.87rem; }
  dialog { padding:13px; }
}
@media(max-width:480px) {
  .main { padding-inline:17px; }
  .topbar { gap:9px; padding-inline:14px; }
  .home-hero { grid-template-columns:1fr; padding:24px 21px 21px; gap:20px; }
  .hero-emblem { display:none; }
  .home-hero h1 { font-size:1.85rem; max-width:310px; }
  .home-hero .eyebrow { font-size:.61rem; }
  .search-box { min-height:61px; padding-left:12px; gap:8px; }
  .search-box input { font-size:.94rem; }
  .search-box .button { padding-inline:13px; }
  .search-box .button svg { display:none; }
  .category-card, .featured { padding:17px 15px; min-height:157px; }
  .featured-grid .category-card { min-height:153px; }
  .category-card .tile-icon, .featured .tile-icon { height:49px; width:49px; }
  .tile-copy strong, .featured .tile-copy strong { font-size:1rem; }
  .tile-copy>span { font-size:.85rem; }
  .featured-grid { gap:12px; }
  .home-sos { padding:21px 18px; gap:12px; }
  .home-sos h2 { font-size:1.1rem; }
  .home-sos .sos-symbol { width:46px; height:46px; }
  .home-sos .button { margin-top:4px; }
  .category-header { padding:23px 19px; gap:15px; }
  .category-emblem { width:59px; height:59px; border-radius:18px; }
  .category-emblem svg { width:35px; height:35px; }
  .category-header h1 { font-size:1.7rem; }
  .category-header p { font-size:.9rem; }
  .tutorial-item { gap:11px; padding:19px 15px; }
  .problem-icon { height:43px; width:43px; border-radius:13px; }
  .problem-icon svg { height:26px; width:26px; }
  .item-arrow svg { height:16px; width:16px; }
  .tutorial-hint { font-size:.88rem; }
  .tutorial-card-copy strong { font-size:1rem; }
  .guide-header>div { min-width:170px; }
  .guide-emblem { width:52px; height:52px; border-radius:16px; }
  .guide-header h1 { font-size:1.7rem; }
  .guide-tools>.button { font-size:.82rem; padding:12px 10px; }
  .guide-tools>.button svg { width:19px; height:19px; }
  .guide-tools .tool-menu { flex-basis:100%; margin:0; }
  .guide-tools .tool-menu summary { width:max-content; margin-left:auto; }
  .sos-header>div { min-width:166px; }
  .sos-header>.sos-symbol { width:54px; height:54px; }
  .sos-header h1 { font-size:1.7rem; }
  .sos-option, .sos-more summary { padding:17px 15px; min-height:150px; }
  .sos-option strong, .sos-more summary strong { font-size:.97rem; }
  .header-brand .brand-copy { font-size:.76rem; }
  .header-brand .brand-copy small { font-size:.51rem; }
}
@media(max-width:365px) {
  .all-subjects { grid-template-columns:1fr; }
  .all-subjects .category-card { grid-template-columns:49px minmax(0,1fr) 20px; min-height:112px; align-items:center; }
  .all-subjects .category-card .tile-copy { grid-column:2; grid-row:1; }
  .all-subjects .category-card .category-arrow { grid-column:3; grid-row:1; }
  .all-subjects .category-count { grid-column:2/-1; }
  .search-box { display:grid; grid-template-columns:24px minmax(0,1fr); padding:9px; }
  .search-box .button { grid-column:1/-1; width:100%; }
  .largest-text .search-icon { display:none; }
  .largest-text .search-box input { grid-column:1/-1; }
  .actions .avatar { display:none; }
  .topbar { gap:10px; }
  .header-brand .brand-copy { font-size:.8rem; }
  .header-brand .brand-copy small { font-size:.53rem; }
  .category-card, .featured { padding:17px 13px; }
  .tile-copy>span { font-size:.82rem; }
  .sos-option strong, .sos-more summary strong { font-size:.94rem; }
  .step { gap:9px; padding-inline:11px; }
  .step-number { height:29px; width:29px; }
  .step label { gap:8px; }
}
@media(max-width:480px) {
  .large-text .header-brand .brand-copy, .largest-text .header-brand .brand-copy { font-size:.67rem; }
  .large-text .header-brand small, .largest-text .header-brand small { display:none; }
  .largest-text .search-box { display:grid; grid-template-columns:24px minmax(0,1fr); padding:9px; }
  .largest-text .search-box .button { grid-column:1/-1; width:100%; }
}
@media(max-width:300px) {
  .category-grid, .all-subjects, .sos-grid { grid-template-columns:1fr; }
  .home-sos>div { flex-basis:100%; }
  .hero-search .button { padding-inline:10px; }
  .search-icon { display:none; }
  .stats { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .footer, .toolbar, .guide-aside, .skip, .back, #toast, .tool-menu, .button, .source-image { display:none !important; }
  body, :root { background:white; color:black; font-size:12pt; }
  .main { margin:0; padding:0; }
  .guide-layout, .guide-main { display:block; }
  h1, .guide-header h1 { font-size:22pt; }
  .panel, .step, .avoid-panel, .guide-header, .guide-details { border:1px solid #888; box-shadow:none; background:white; break-inside:avoid; }
  .step input { appearance:none; width:17px; height:17px; border:1px solid black; }
  .step.checked input:after { content:'✓'; color:black; }
  details>div { display:block; }
  summary { list-style:none; }
}
.hero-search .button{background:#155eef;border-color:#155eef;color:#fff}.tile-icon{background:#ffffffb8;border-color:color-mix(in srgb,var(--accent) 18%,white)}@media(max-width:760px){.guide:not(.emergency-guide) .guide-aside{display:contents}.guide:not(.emergency-guide) .example-panel{order:0}.guide:not(.emergency-guide) .related-sos{display:block;order:4}.guide:not(.emergency-guide) .guide-details{order:5}}
.example-zoom img{aspect-ratio:auto 950/1342}.tutorial-item{min-height:152px}@media(max-width:760px){.tutorial-item{min-height:133px}}
.step label,.step-text{min-width:0}.step-text{overflow-wrap:break-word}@media(max-width:400px){.largest-text .category-grid{grid-template-columns:1fr}.largest-text .category-card{grid-template-columns:55px minmax(0,1fr) 24px;min-height:110px;align-items:center}.largest-text .category-card .tile-copy{grid-column:2;grid-row:1}.largest-text .category-card .category-arrow{grid-column:3;grid-row:1}.largest-text .category-count{grid-column:2/-1}}
@media(max-width:365px){.largest-text .all-subjects .category-card .tile-copy{grid-column:1/-1;grid-row:2}.largest-text .all-subjects .category-count{grid-column:1/-1}}
