/* Beacon Türkiye, visual system extracted from refs/ref-02-app-design.png
   Navy #0B2A50 · Turkish red #C6202E · Pale blue #DCE7F2 · Warm white #FAF8F3
   Wordmark: Montserrat SemiBold, wide tracking. Interface: Inter. */

:root {
  --navy: #0B2A50;
  --navy-deep: #081E3A;
  --red: #C6202E;
  --red-deep: #A81824;
  --pale: #DCE7F2;
  --pale-sea: #C3D3E4;
  --cream: #FAF8F3;
  --white: #FFFFFF;
  --slate: #5F7185;
  --line: #E4E0D7;
  --ok: #1E7D4F;
  --warn: #B96A00;
  --shadow: 0 10px 30px rgba(11, 42, 80, 0.10);
  --shadow-soft: 0 4px 14px rgba(11, 42, 80, 0.08);
  --radius: 18px;
  --font-ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Montserrat', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
}
img, svg { max-width: 100%; display: block; }
.ic svg { width: 22px; height: 22px; flex: 0 0 auto; } /* fallback for any icon container */
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.sr-only {
  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;
}
.skip-link {
  position: fixed; top: .7rem; left: .7rem; z-index: 300; padding: .7rem 1rem;
  border-radius: 10px; background: var(--navy); color: var(--white); font-weight: 700;
  transform: translateY(-180%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
input, select, textarea {
  font-family: inherit; font-size: 1rem; color: var(--navy);
  width: 100%; padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--pale-sea); border-radius: 12px;
  background: var(--white);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(11, 42, 80, 0.45); outline-offset: 2px;
}
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--slate); margin: 0.9rem 0 0.3rem; }

/* ---------- shell ---------- */
.shell { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); position: relative; }
.shell.wide { max-width: 780px; }
@media (min-width: 900px) {
  body { background: #F1EDE4; }
  .shell { box-shadow: var(--shadow); }
}

/* ---------- header ---------- */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.1rem 0.7rem; background: var(--cream);
  position: sticky; top: 0; z-index: 40;
}
.wordmark {
  font-family: var(--font-brand); font-weight: 600; color: var(--navy);
  letter-spacing: 0.32em; font-size: 1.06rem; text-decoration: none; text-indent: 0.32em;
}
.hdr .side { display: flex; gap: 0.45rem; align-items: center; }
.langsw { display: flex; border: 1.5px solid var(--pale-sea); border-radius: 100px; overflow: hidden; background: var(--white); }
.langsw button {
  border: 0; background: transparent; padding: 0.32rem 0.7rem;
  font-size: 0.78rem; font-weight: 700; color: var(--slate);
}
.langsw button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.banner {
  background: var(--pale); color: var(--navy);
  font-size: 0.72rem; text-align: center; padding: 0.45rem 1rem; line-height: 1.4;
}

/* ---------- main / view ---------- */
main { flex: 1; display: flex; flex-direction: column; padding-bottom: 96px; }
.view { padding: 1.1rem 1.15rem 1.6rem; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

h1.page { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; }
p.sub { color: var(--slate); font-size: 0.94rem; margin-top: 0.35rem; }
.section-h { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); margin: 1.5rem 0 0.7rem; }

/* ---------- hero (landing) ---------- */
.hero { position: relative; overflow: hidden; border-radius: 0 0 0 0; background: linear-gradient(180deg, var(--pale) 0%, var(--pale-sea) 100%); }
.hero .mapfield { padding: 1.6rem 1.4rem 0; text-align: center; }
.hero .wordmark-hero {
  font-family: var(--font-brand); font-weight: 600; font-size: 1.7rem;
  letter-spacing: 0.34em; text-indent: 0.34em; color: var(--navy);
}
.hero .kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); margin-top: 0.5rem; }
.hero svg.trmap { width: 100%; height: auto; margin: 0.6rem auto 0; }
.wavepanel { position: relative; margin-top: -2.2rem; }
.wavepanel svg.wave-top { display: block; width: 100%; height: 46px; }
.wavepanel .panel-body { background: var(--white); padding: 0 1.3rem 1.4rem; text-align: center; }
.actionrow { display: flex; justify-content: center; gap: 1rem; margin-top: -0.4rem; }
.abtn {
  width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease;
}
.abtn:hover { transform: translateY(-2px); }
.abtn.red { background: var(--red); }
.abtn svg { width: 26px; height: 26px; }
.abtn-label { font-size: 0.68rem; font-weight: 600; color: var(--slate); margin-top: 0.4rem; }
.actioncol { display: flex; flex-direction: column; align-items: center; width: 74px; }
.waves-bottom { display: block; width: 100%; height: 74px; background: var(--white); }

/* ---------- cards, tiles ---------- */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.05rem 1.1rem; box-shadow: var(--shadow-soft);
  border: 1px solid rgba(11, 42, 80, 0.05);
}
.card + .card { margin-top: 0.8rem; }
.card h3 { font-size: 1rem; font-weight: 700; }
.card p { font-size: 0.88rem; color: var(--slate); margin-top: 0.25rem; }

.tilegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.8rem; }
.tile {
  background: var(--white); border-radius: var(--radius); border: 1px solid rgba(11,42,80,.05);
  padding: 1rem 0.95rem; text-decoration: none; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 0.55rem; min-height: 106px;
  transition: transform .15s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile .ic {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.tile .ic svg { width: 20px; height: 20px; }
.tile .ic.red { background: var(--red); }
.tile .ic.pale { background: var(--pale); color: var(--navy); }
.tile b { font-size: 0.9rem; font-weight: 700; line-height: 1.3; }

/* SOS banner card */
.soscard {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  color: var(--white); border-radius: var(--radius); padding: 1.05rem 1.15rem;
  text-decoration: none; box-shadow: var(--shadow); margin-top: 1rem;
}
.soscard b { font-size: 1.05rem; font-weight: 800; }
.soscard span { font-size: 0.8rem; opacity: 0.92; display: block; }
.soscard .ring {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.7); background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 100px; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; text-decoration: none;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow-soft);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.red { background: var(--red); }
.btn.ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--pale-sea); box-shadow: none; }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 0.55rem 1.1rem; font-size: 0.83rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- bottom nav ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 50;
  background: var(--white); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 0.35rem 0.2rem calc(0.35rem + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--slate); font-size: 0.62rem; font-weight: 600;
  padding: 0.3rem 0; border-radius: 10px;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--navy); }
.tabbar a[aria-current="page"] .tabdot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); }
.tabdot { width: 4px; height: 4px; border-radius: 50%; background: transparent; }

.sosfab {
  position: fixed; right: max(calc(50% - 226px), 14px); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--red); color: var(--white); font-weight: 800; font-size: 0.8rem;
  box-shadow: 0 8px 24px rgba(198, 32, 46, 0.45);
  letter-spacing: 0.04em;
}

/* ---------- map ---------- */
.mapframe {
  background: linear-gradient(180deg, var(--pale) 0%, var(--pale-sea) 100%);
  border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.mapframe svg.trmap { width: 100%; height: auto; }
.tr-land { fill: var(--white); stroke: rgba(11,42,80,0.12); stroke-width: 1; filter: drop-shadow(0 6px 10px rgba(11,42,80,0.12)); }
.citydot { fill: var(--pale-sea); stroke: var(--navy); stroke-width: 1.4; }
.citylbl { font-size: 24px; fill: var(--slate); font-family: var(--font-ui); font-weight: 600; }
.userpin-ring { fill: none; stroke: var(--navy); opacity: .35; }
.chiprow { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.9rem 0 0.3rem; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid var(--pale-sea); background: var(--white); color: var(--navy);
  border-radius: 100px; padding: 0.45rem 0.9rem; font-size: 0.8rem; font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip svg { width: 14px; height: 14px; }

.svcrow {
  display: flex; gap: 0.9rem; align-items: flex-start; text-decoration: none;
  background: var(--white); border-radius: var(--radius); border: 1px solid rgba(11,42,80,.05);
  padding: 0.95rem 1rem; box-shadow: var(--shadow-soft); margin-top: 0.7rem;
}
.svcrow .ic {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.svcrow .ic.red { background: var(--red); }
.svcrow .ic svg { width: 20px; height: 20px; }
.svcrow b { font-size: 0.93rem; font-weight: 700; display: block; }
.svcrow p { font-size: 0.8rem; color: var(--slate); margin-top: 0.15rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ok); background: rgba(30,125,79,0.1); border-radius: 100px; padding: 0.18rem 0.55rem; margin-top: 0.4rem;
}
.badge svg { width: 11px; height: 11px; flex: 0 0 auto; }

/* ---------- emergency ---------- */
.em-shell { background: var(--red); min-height: 100vh; min-height: 100dvh; color: var(--white); }
.em-view { padding: 1.2rem 1.15rem 7rem; }
.embtn {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  background: var(--white); color: var(--navy); border: 0; border-radius: var(--radius);
  padding: 1.15rem 1.2rem; margin-top: 0.85rem; text-align: left; text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18); font-size: 1rem;
}
.embtn b { font-size: 1.02rem; font-weight: 800; display: block; }
.embtn span { font-size: 0.8rem; color: var(--slate); }
.embtn .ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: var(--white); display: flex; align-items: center; justify-content: center;
}
.embtn .ic.navy { background: var(--navy); }
.embtn .ic svg { width: 22px; height: 22px; }
.em-note { font-size: 0.78rem; opacity: 0.9; margin-top: 1rem; line-height: 1.5; }
.phrase {
  background: rgba(255,255,255,0.12); border-radius: 12px; padding: 0.75rem 0.95rem; margin-top: 0.55rem;
}
.phrase b { font-size: 1.02rem; display: block; }
.phrase span { font-size: 0.8rem; opacity: 0.85; }

/* ---------- steps / checklist ---------- */
.step { display: flex; gap: 0.9rem; margin-top: 1rem; }
.step .n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 0.97rem; font-weight: 700; }
.step p { font-size: 0.86rem; color: var(--slate); margin-top: 0.2rem; }

.checkitem {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: var(--white); border-radius: 14px; border: 1px solid rgba(11,42,80,.05);
  padding: 0.8rem 0.9rem; margin-top: 0.55rem; cursor: pointer;
}
.checkitem input { width: auto; margin-top: 0.2rem; accent-color: var(--red); transform: scale(1.25); }
.checkitem span { font-size: 0.9rem; }
.checkitem.done span { color: var(--slate); text-decoration: line-through; }

/* ---------- traveller home journey board ---------- */
.home-board {
  position: relative; overflow: hidden; margin: -.15rem -.1rem 0; padding: 1.2rem 1.05rem 1.05rem;
  border-radius: 22px; background: linear-gradient(145deg, var(--navy), var(--navy-deep)); color: var(--white);
  box-shadow: var(--shadow);
}
.home-boardtop { display: flex; justify-content: space-between; gap: .8rem; color: rgba(255,255,255,.68); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-local { letter-spacing: 0; text-transform: none; font-weight: 600; }
.home-board h1 { margin-top: .75rem; font-size: 1.65rem; line-height: 1.1; }
.home-board > p { margin-top: .25rem; color: rgba(255,255,255,.75); font-size: .86rem; }
.home-redline { height: 1px; margin: 1rem 0 .85rem; background: repeating-linear-gradient(90deg, var(--red) 0 18px, transparent 18px 27px); }
.home-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.home-phase { min-width: 0; color: rgba(255,255,255,.55); text-align: center; text-decoration: none; }
.home-phase span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: 0 auto .35rem; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.home-phase span svg { width: 13px; height: 13px; }
.home-phase b { display: block; overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.home-phase.done, .home-phase.active { color: var(--white); }
.home-phase.done span { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.14); }
.home-phase.active span { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 4px rgba(198,32,46,.2); }
.home-next { display: grid; grid-template-columns: 48px 1fr; gap: .9rem; margin-top: .9rem; padding: 1.05rem; border: 1px solid var(--line); border-radius: 19px; background: var(--white); box-shadow: var(--shadow-soft); }
.home-nextnum { color: var(--pale-sea); font: 800 2rem/1 var(--font-brand); letter-spacing: -.06em; }
.home-next span { color: var(--red); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-next h2 { margin-top: .15rem; font-size: 1.05rem; }
.home-next p { margin: .35rem 0 .75rem; color: var(--slate); font-size: .82rem; }
.home-next .btn { padding: .65rem 1rem; font-size: .82rem; }
.home-quick { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow-soft); }
.home-quick a { display: grid; grid-template-columns: 38px 1fr 18px; align-items: center; gap: .75rem; min-height: 67px; padding: .72rem .85rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.home-quick a:last-child { border-bottom: 0; }
.home-quick .ic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pale); color: var(--navy); }
.home-quick .ic svg { width: 19px; height: 19px; }
.home-quick b, .home-quick small { display: block; }
.home-quick b { font-size: .88rem; }
.home-quick small { margin-top: .1rem; color: var(--slate); font-size: .72rem; }
.home-quick i { color: var(--slate); }
.home-quick i svg { width: 17px; height: 17px; }
.home-help { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .8rem; }
.home-help a { display: flex; align-items: flex-start; gap: .55rem; padding: .8rem; border: 1px solid rgba(198,32,46,.16); border-radius: 15px; background: rgba(198,32,46,.045); text-decoration: none; }
.home-help > a > svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--red); }
.home-help b, .home-help small { display: block; }
.home-help b { font-size: .78rem; }
.home-help small { margin-top: .15rem; color: var(--slate); font-size: .66rem; line-height: 1.35; }
.home-fold { margin-top: .85rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.home-fold summary { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 54px; padding: .8rem .9rem; cursor: pointer; font-size: .82rem; font-weight: 800; }
.home-fold summary span { color: var(--slate); font-size: .68rem; font-weight: 600; }
.home-fold summary:focus-visible { outline: 3px solid rgba(11,42,80,.35); outline-offset: 2px; }
.home-foldbody { padding: 0 .85rem .9rem; border-top: 1px solid var(--line); }
.home-fold.pilot { border-left: 4px solid var(--navy); }
.tilegrid.compact .tile { min-height: 92px; padding: .8rem; }
.tilegrid.compact .tile .ic { width: 36px; height: 36px; }
@media (max-width: 370px) {
  .home-boardtop { flex-direction: column; gap: .2rem; }
  .home-help { grid-template-columns: 1fr; }
  .home-next { grid-template-columns: 40px 1fr; }
}

/* ---------- forms/steps progress ---------- */
.obdots { display: flex; gap: 0.4rem; margin: 0.9rem 0 0.4rem; }
.obdots i { width: 26px; height: 4px; border-radius: 4px; background: var(--pale-sea); }
.obdots i.on { background: var(--red); }

.field-err { color: var(--red); font-size: 0.8rem; margin-top: 0.5rem; font-weight: 600; }
.notice {
  background: var(--pale); border-radius: 12px; padding: 0.75rem 0.95rem;
  font-size: 0.8rem; color: var(--navy); margin-top: 0.9rem; line-height: 1.5;
}
.notice.warn { background: #F7E9D8; color: #7A4A08; }

/* toggles */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.toggle span { font-size: 0.9rem; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 100px; background: var(--pale-sea); transition: background .15s; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .15s; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track + .thumb { left: 23px; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(8, 30, 58, 0.55); z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--white); border-radius: 22px 22px 0 0; width: 100%; max-width: 480px;
  padding: 1.4rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom));
}
.modal h3 { font-size: 1.1rem; font-weight: 800; }
.modal p { color: var(--slate); font-size: 0.9rem; margin-top: 0.4rem; }
.modal .row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.modal .row .btn { flex: 1; }

/* ---------- footer (public) ---------- */
.pubfooter { padding: 1.6rem 1.3rem 2.2rem; font-size: 0.72rem; color: var(--slate); text-align: center; line-height: 1.6; }
.pubfooter .links { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-bottom: 0.8rem; font-size: 0.78rem; font-weight: 600; }
.pubfooter a { color: var(--navy); text-decoration: none; }

/* faq */
details.faq { background: var(--white); border-radius: 14px; border: 1px solid rgba(11,42,80,.05); box-shadow: var(--shadow-soft); padding: 0.9rem 1rem; margin-top: 0.6rem; }
details.faq summary { font-weight: 700; font-size: 0.92rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.faq summary::after { content: "+"; font-size: 1.2rem; color: var(--red); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq p { font-size: 0.86rem; color: var(--slate); margin-top: 0.6rem; }

/* doc rows */
.docrow { display: flex; align-items: center; gap: 0.9rem; background: var(--white); border-radius: var(--radius); border: 1px solid rgba(11,42,80,.05); box-shadow: var(--shadow-soft); padding: 0.9rem 1rem; margin-top: 0.7rem; }
.docrow .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--pale); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.docrow .ic svg { width: 20px; height: 20px; }
.docrow b { display: block; font-size: 0.92rem; }
.docrow small { color: var(--slate); font-size: 0.78rem; }
.docrow .exp { margin-left: auto; font-size: 0.68rem; font-weight: 700; border-radius: 100px; padding: 0.2rem 0.6rem; }
.docrow .exp.ok { color: var(--ok); background: rgba(30,125,79,.1); }
.docrow .exp.warn { color: var(--warn); background: rgba(185,106,0,.1); }
.docrow .exp.bad { color: var(--red); background: rgba(198,32,46,.1); }
.docrow button.del { border: 0; background: transparent; color: var(--slate); padding: 0.4rem; }

.empty { text-align: center; color: var(--slate); font-size: 0.9rem; padding: 2.2rem 1rem; }
.empty svg { width: 44px; height: 44px; margin: 0 auto 0.8rem; opacity: 0.5; }

.skel { border-radius: 12px; background: linear-gradient(90deg, var(--pale) 25%, #EDF2F8 50%, var(--pale) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; height: 60px; margin-top: 0.7rem; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 370px) {
  .actionrow { gap: 0.55rem; }
  .abtn { width: 54px; height: 54px; }
  .tilegrid { grid-template-columns: 1fr; }
}
