:root {
  --navy-950: #071522;
  --navy-900: #10233d;
  --navy-800: #173350;
  --navy-700: #234866;
  --slate-900: #18232f;
  --slate-700: #445466;
  --slate-600: #607083;
  --slate-500: #7e8b99;
  --slate-300: #c9d2dc;
  --slate-200: #dfe5eb;
  --slate-100: #edf1f5;
  --slate-50: #f7f9fb;
  --white: #ffffff;
  --teal-700: #086b65;
  --teal-600: #0d8178;
  --teal-500: #10a096;
  --teal-100: #d9f3f0;
  --blue-600: #2876d0;
  --blue-100: #e2efff;
  --amber-700: #aa650c;
  --amber-500: #e7a32d;
  --amber-100: #fff1d1;
  --red-700: #a83333;
  --red-600: #c64242;
  --red-100: #fde5e5;
  --green-700: #257048;
  --green-100: #dff4e8;
  --shadow-xs: 0 1px 2px rgba(7, 21, 34, .06);
  --shadow-sm: 0 5px 18px rgba(7, 21, 34, .09);
  --shadow-md: 0 16px 38px rgba(7, 21, 34, .15);
  --shadow-lg: 0 28px 70px rgba(7, 21, 34, .24);
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --topbar-height: 72px;
  --bottom-nav-height: 74px;
  --content-max: 1080px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-900);
  background: var(--slate-50);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--slate-50); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100%; background: var(--slate-50); color: var(--slate-900); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
svg { display: block; }
::selection { background: var(--teal-100); }

.skip-link {
  position: fixed; z-index: 9999; left: 12px; top: 12px; transform: translateY(-150%);
  padding: 10px 16px; border-radius: var(--radius-sm); background: var(--navy-900); color: white;
}
.skip-link:focus { transform: translateY(0); }

.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.eyebrow { margin: 0 0 5px; font-size: 11px; line-height: 1.35; letter-spacing: .115em; font-weight: 800; color: var(--teal-700); }

.brand-mark {
  position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
  overflow: hidden; border-radius: 13px 13px 18px 13px; background: linear-gradient(145deg, var(--teal-500), var(--teal-700));
  color: white; box-shadow: 0 8px 20px rgba(13, 129, 120, .24);
}
.brand-mark::after { content: ''; position: absolute; width: 20px; height: 20px; right: -7px; bottom: -7px; border: 5px solid rgba(255,255,255,.25); border-radius: 50%; }
.brand-mark span { position: relative; z-index: 1; font: 900 23px/1 Georgia, serif; transform: translateY(-1px); }
.brand-mark-large { width: 74px; height: 74px; border-radius: 22px 22px 30px 22px; }
.brand-mark-large span { font-size: 42px; }

.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 750; font-size: 14px;
  cursor: pointer; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:focus-visible, .icon-button:focus-visible, .nav-item:focus-visible, .assignment-card-main:focus-visible, .map-marker:focus-visible { outline: 3px solid rgba(40, 118, 208, .32); outline-offset: 2px; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-primary { background: var(--teal-600); color: white; box-shadow: 0 8px 18px rgba(13, 129, 120, .18); }
.button-primary:hover:not(:disabled) { background: var(--teal-700); box-shadow: 0 10px 22px rgba(13, 129, 120, .24); }
.button-secondary { background: white; color: var(--navy-900); border-color: var(--slate-200); box-shadow: var(--shadow-xs); }
.button-secondary:hover:not(:disabled) { border-color: var(--slate-300); background: var(--slate-50); }
.button-ghost { background: transparent; color: var(--slate-700); }
.button-ghost:hover:not(:disabled) { background: var(--slate-100); }
.button-danger { background: var(--red-600); color: white; }
.button-danger:hover:not(:disabled) { background: var(--red-700); }
.button-inverse { background: white; color: var(--navy-900); }
.button-block { width: 100%; }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.icon-button {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--slate-600); cursor: pointer; transition: background .16s ease, color .16s ease;
}
.icon-button:hover { background: var(--slate-100); color: var(--navy-900); }
.button-spinner, .spinner { width: 19px; height: 19px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; color: var(--slate-700); font-size: 13px; font-weight: 700; }
.field > span { display: flex; align-items: baseline; gap: 5px; }
.field span small { color: var(--slate-500); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--slate-300); border-radius: 11px; padding: 11px 13px;
  background: white; color: var(--slate-900); outline: none; box-shadow: inset 0 1px 1px rgba(7,21,34,.02);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 86px; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(40,118,208,.13); }
.field small { color: var(--slate-500); font-weight: 500; line-height: 1.45; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.password-wrap .icon-button { position: absolute; right: 2px; top: 2px; }
.form-error, .close-form-error { min-height: 20px; margin: 0; color: var(--red-700); font-size: 13px; line-height: 1.45; font-weight: 650; }
.helper-text { margin: 0; color: var(--slate-600); font-size: 13px; line-height: 1.55; }
.is-hidden { display: none !important; }

/* Login */
.login-page { min-height: 100svh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); background: white; }
.login-brand-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(48px, 7vw, 110px);
  color: white; background:
    radial-gradient(circle at 20% 8%, rgba(16,160,150,.34), transparent 31%),
    radial-gradient(circle at 90% 85%, rgba(40,118,208,.18), transparent 29%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 55%, #123b4c);
}
.login-brand-panel::after { content: ''; position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000); pointer-events: none; }
.login-brand-panel > * { position: relative; z-index: 1; }
.login-brand-panel .eyebrow { color: #6ed7d0; }
.login-brand-panel h1 { margin: 0; max-width: 660px; font-size: clamp(42px, 5vw, 72px); line-height: .96; letter-spacing: -.05em; }
.login-brand-panel > div > p:last-child { max-width: 600px; margin: 20px 0 0; color: #cbd7e4; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.55; }
.login-feature-grid { display: grid; gap: 12px; max-width: 630px; }
.login-feature-grid article { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.055); backdrop-filter: blur(8px); }
.login-feature-grid article > .icon { color: #67d4cc; width: 24px; height: 24px; }
.login-feature-grid article div { display: grid; gap: 2px; }
.login-feature-grid strong { font-size: 14px; }
.login-feature-grid span { color: #aebdcb; font-size: 13px; }
.login-form-panel { display: grid; place-items: center; padding: 32px; background: linear-gradient(180deg, #fff, var(--slate-50)); }
.login-card { width: min(100%, 430px); padding: 34px; border: 1px solid var(--slate-200); border-radius: 24px; background: white; box-shadow: var(--shadow-md); }
.mobile-login-logo { display: none; align-items: center; gap: 12px; margin-bottom: 30px; }
.mobile-login-logo > div:last-child { display: grid; }
.mobile-login-logo small { color: var(--slate-500); }
.login-heading { margin-bottom: 24px; }
.login-heading h2 { margin: 0 0 8px; font-size: 29px; letter-spacing: -.03em; }
.login-heading > p:last-child { margin: 0; color: var(--slate-600); line-height: 1.55; }
.demo-credentials { display: grid; gap: 6px; margin-top: 22px; padding: 13px 14px; border-radius: 11px; background: var(--slate-50); color: var(--slate-600); font-size: 12px; }
.demo-credentials code { color: var(--navy-900); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; word-break: break-all; }
.connection-pill { display: inline-flex; align-items: center; gap: 7px; margin-top: 20px; padding: 7px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.connection-pill.is-online { color: var(--green-700); background: var(--green-100); }
.connection-pill.is-offline { color: var(--amber-700); background: var(--amber-100); }
.connection-pill .icon { width: 16px; height: 16px; }

.full-loader, .empty-state-page { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 17px; padding: 30px; text-align: center; }
.full-loader p, .empty-state-page p { margin: 0; color: var(--slate-600); }
.empty-state-page h1 { margin: 8px 0 0; font-size: 26px; }

/* App shell */
.app-shell { min-height: 100svh; }
.topbar {
  position: fixed; z-index: 50; inset: 0 0 auto; height: calc(var(--topbar-height) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(20px, calc((100vw - var(--content-max)) / 2)) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(201,210,220,.8); background: rgba(255,255,255,.93); backdrop-filter: blur(18px); box-shadow: var(--shadow-xs);
}
.topbar-brand { display: flex; align-items: center; gap: 11px; justify-self: start; }
.topbar-brand-text { display: grid; gap: 1px; }
.topbar-brand-text b { color: var(--navy-900); font-size: 14px; letter-spacing: -.01em; }
.topbar-brand-text small { color: var(--slate-500); font-size: 11px; }
.topbar-context { min-width: 210px; text-align: center; }
.topbar-context .eyebrow { margin: 0; font-size: 9px; }
.topbar-context strong { font-size: 15px; color: var(--navy-900); }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.connection-button { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 0; border-radius: 99px; cursor: pointer; font-weight: 750; font-size: 11px; }
.connection-button .icon { width: 16px; height: 16px; }
.connection-button.is-online { background: var(--green-100); color: var(--green-700); }
.connection-button.is-offline { background: var(--amber-100); color: var(--amber-700); }
.refresh-button.is-spinning .icon { animation: spin .8s linear infinite; }
.app-main { width: min(100%, var(--content-max)); min-height: 100svh; margin: 0 auto; padding: calc(var(--topbar-height) + env(safe-area-inset-top) + 26px) 20px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 38px); }
.bottom-nav {
  position: fixed; z-index: 45; inset: auto 0 0; height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom)); padding: 5px max(16px, calc((100vw - 660px) / 2)) env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--slate-200); background: rgba(255,255,255,.96); backdrop-filter: blur(18px); box-shadow: 0 -8px 25px rgba(7,21,34,.06);
}
.nav-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; color: var(--slate-500); text-decoration: none; font-size: 10px; font-weight: 750; transition: color .15s ease, background .15s ease; }
.nav-icon { position: relative; display: grid; place-items: center; width: 36px; height: 28px; border-radius: 12px; }
.nav-icon .icon { width: 22px; height: 22px; }
.nav-item.is-active { color: var(--teal-700); }
.nav-item.is-active .nav-icon { background: var(--teal-100); }
.nav-badge { position: absolute; right: calc(50% - 25px); top: 8px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 99px; background: var(--red-600); color: white; font-size: 9px; box-shadow: 0 0 0 2px white; }
.page-section { margin-bottom: 25px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading-row h2, .page-intro h1 { margin: 0; color: var(--navy-900); font-size: 25px; letter-spacing: -.035em; }
.section-count { min-width: 34px; height: 28px; display: grid; place-items: center; padding: 0 10px; border-radius: 99px; background: var(--slate-100); color: var(--slate-700); font-size: 12px; font-weight: 800; }

/* Today */
.today-hero { min-height: 176px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 30px; border-radius: var(--radius-xl); color: white; background: linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, #14475a); box-shadow: var(--shadow-sm); overflow: hidden; position: relative; }
.today-hero::before { content: ''; position: absolute; inset: -80px -30px auto auto; width: 240px; height: 240px; border: 42px solid rgba(16,160,150,.09); border-radius: 50%; }
.today-copy { position: relative; z-index: 1; max-width: 620px; }
.today-copy .eyebrow { color: #70dbd3; }
.today-copy h1 { margin: 0 0 8px; font-size: clamp(33px, 5vw, 50px); letter-spacing: -.055em; }
.today-copy > p:last-child { margin: 0; max-width: 560px; color: #c4d1de; line-height: 1.5; }
.day-progress-card { position: relative; z-index: 1; min-width: 244px; display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 17px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.day-progress-card > div:last-child { display: grid; gap: 3px; }
.day-progress-card strong { font-size: 18px; }
.day-progress-card span { color: #b7c5d3; font-size: 12px; line-height: 1.35; }
.progress-ring { position: relative; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(#5dd8d0 var(--progress), rgba(255,255,255,.12) 0); }
.progress-ring::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--navy-900); }
.progress-ring span { position: relative; z-index: 1; color: white; font-size: 14px; font-weight: 800; }
.sync-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 14px 16px; border-radius: 14px; background: var(--navy-800); color: white; box-shadow: var(--shadow-sm); }
.sync-banner.is-offline { background: #77500e; }
.sync-banner > div { display: flex; align-items: center; gap: 13px; }
.sync-banner > div > .icon { width: 25px; height: 25px; color: #6ee0d7; }
.sync-banner.is-offline > div > .icon { color: #ffd67f; }
.sync-banner > div > div { display: grid; gap: 2px; }
.sync-banner strong { font-size: 13px; }
.sync-banner span { color: #c7d4df; font-size: 11px; }
.range-tabs { width: fit-content; display: flex; gap: 4px; margin: 0 0 16px; padding: 4px; border: 1px solid var(--slate-200); border-radius: 12px; background: white; }
.range-tab { min-height: 36px; padding: 7px 15px; border: 0; border-radius: 9px; background: transparent; color: var(--slate-600); font-size: 12px; font-weight: 750; cursor: pointer; }
.range-tab.is-active { background: var(--navy-900); color: white; box-shadow: var(--shadow-xs); }
.assignment-list { display: grid; gap: 13px; }
.assignment-card { border: 1px solid var(--slate-200); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.assignment-card:hover { border-color: var(--slate-300); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.assignment-card.status-in_progress { border-color: rgba(231,163,45,.55); box-shadow: 0 5px 18px rgba(231,163,45,.1); }
.assignment-card.status-completed { opacity: .78; }
.assignment-card-main { width: 100%; display: grid; grid-template-columns: 66px minmax(0,1fr) 28px; align-items: center; gap: 16px; padding: 18px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.assignment-time { height: 58px; display: grid; place-content: center; text-align: center; border-right: 1px solid var(--slate-200); }
.assignment-time span { color: var(--navy-900); font-size: 18px; font-weight: 850; }
.assignment-time small { color: var(--slate-500); font-size: 10px; font-weight: 700; text-transform: capitalize; }
.assignment-content { min-width: 0; }
.assignment-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 5px; }
.assignment-content h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.assignment-content > p { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--slate-600); font-size: 12px; line-height: 1.45; }
.assignment-content > p .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--teal-700); }
.assignment-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 9px; color: var(--slate-500); font-size: 11px; font-weight: 650; }
.assignment-meta span { display: flex; align-items: center; gap: 4px; }
.assignment-meta .icon { width: 13px; height: 13px; color: var(--amber-500); }
.assignment-chevron { color: var(--slate-300); }
.assignment-card-actions { display: flex; align-items: center; justify-content: flex-end; border-top: 1px solid var(--slate-100); padding: 8px 12px; background: var(--slate-50); }
.quick-action { min-height: 35px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 0; border-radius: 9px; background: transparent; color: var(--slate-600); font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.quick-action:hover { background: white; color: var(--navy-900); }
.quick-action .icon { width: 15px; height: 15px; }
.quick-action-primary { margin-left: auto; color: var(--teal-700); }
.tier-badge { min-width: 24px; height: 22px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 7px; font-size: 10px; font-weight: 900; }
.tier-a { background: var(--teal-100); color: var(--teal-700); }
.tier-b { background: var(--blue-100); color: #245f9d; }
.tier-c { background: var(--slate-100); color: var(--slate-600); }
.segment-label { display: inline-flex; align-items: center; color: var(--slate-600); font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.status-label { display: inline-flex; align-items: center; min-height: 21px; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 850; }
.status-released { color: #245f9d; background: var(--blue-100); }
.status-in_progress { color: var(--amber-700); background: var(--amber-100); }
.status-completed { color: var(--green-700); background: var(--green-100); }

/* Map */
.route-map .app-main, .app-main.route-map { width: 100%; max-width: none; padding-left: max(16px, calc((100vw - 1280px)/2)); padding-right: max(16px, calc((100vw - 1280px)/2)); }
.map-page { display: grid; grid-template-columns: 1fr; }
.map-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 13px; }
.map-toolbar h1 { margin: 0; color: var(--navy-900); font-size: 25px; letter-spacing: -.035em; }
.work-map { height: min(62svh, 650px); min-height: 430px; border: 1px solid var(--slate-200); border-radius: 20px; overflow: hidden; background: #e6ebef; box-shadow: var(--shadow-sm); }
.atlas-map, .map-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; }
.map-viewport { outline: none; cursor: grab; touch-action: none; user-select: none; background: #dfe7eb; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-tiles, .map-markers { position: absolute; inset: 0; overflow: hidden; }
.map-tile { position: absolute; width: 256px; height: 256px; left: 0; top: 0; user-select: none; pointer-events: none; }
.map-markers { pointer-events: none; }
.map-marker { position: absolute; left: 0; top: 0; width: 34px; height: 42px; margin: -42px 0 0 -17px; display: grid; place-items: center; border: 3px solid white; border-radius: 18px 18px 18px 3px; background: var(--teal-600); color: white; box-shadow: 0 5px 13px rgba(7,21,34,.25); cursor: pointer; pointer-events: auto; transform-origin: bottom center; rotate: -45deg; }
.map-marker span { font-size: 11px; font-weight: 900; rotate: 45deg; }
.map-marker.status-in_progress { background: var(--amber-500); }
.map-marker.status-released { background: var(--blue-600); }
.map-marker:hover { z-index: 5; scale: 1.08; }
.map-user-marker { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 4px solid white; border-radius: 50%; background: var(--blue-600); box-shadow: 0 2px 8px rgba(7,21,34,.3); pointer-events: none; }
.map-user-accuracy { position: absolute; left: 0; top: 0; border: 1px solid rgba(40,118,208,.4); border-radius: 50%; background: rgba(40,118,208,.12); pointer-events: none; }
.map-controls { position: absolute; z-index: 8; top: 14px; right: 14px; display: grid; gap: 7px; }
.map-control { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 11px; background: rgba(255,255,255,.94); color: var(--navy-900); box-shadow: var(--shadow-sm); cursor: pointer; }
.map-control:hover { background: white; }
.map-attribution { position: absolute; z-index: 7; right: 7px; bottom: 6px; padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.82); font-size: 9px; }
.map-attribution a { color: var(--slate-600); text-decoration: none; }
.map-list-strip { display: flex; gap: 9px; overflow-x: auto; padding: 12px 2px 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.map-strip-card { min-width: min(330px, 82vw); display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 13px; background: white; text-align: left; box-shadow: var(--shadow-xs); cursor: pointer; scroll-snap-align: start; }
.map-strip-card > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.map-strip-card strong, .map-strip-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-strip-card strong { color: var(--navy-900); font-size: 13px; }
.map-strip-card small { color: var(--slate-500); font-size: 11px; }
.map-strip-card > .icon { width: 16px; color: var(--slate-300); }
.empty-strip { padding: 18px; color: var(--slate-500); font-size: 13px; }

/* Followups + history */
.page-intro { display: flex; flex-direction: column; gap: 3px; }
.page-intro > p:last-child { margin: 3px 0 0; color: var(--slate-600); }
.compact-intro { display: flex; flex-direction: row; align-items: end; justify-content: space-between; gap: 18px; }
.followup-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.summary-stat { display: flex; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--slate-200); border-radius: 16px; background: white; box-shadow: var(--shadow-xs); }
.summary-stat > span { min-width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--teal-100); color: var(--teal-700); font-size: 22px; font-weight: 900; }
.summary-stat.is-alert > span { background: var(--red-100); color: var(--red-700); }
.summary-stat > div { display: grid; gap: 2px; }
.summary-stat small { color: var(--slate-500); }
.list-section-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; }
.list-section-title h2 { margin: 0; color: var(--navy-900); font-size: 16px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-danger { background: var(--red-600); }
.status-teal { background: var(--teal-600); }
.followup-card { position: relative; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; margin-bottom: 10px; padding: 16px; border: 1px solid var(--slate-200); border-radius: 16px; background: white; box-shadow: var(--shadow-xs); }
.followup-card.is-overdue { border-left: 4px solid var(--red-600); }
.followup-date { display: grid; place-content: center; text-align: center; border-right: 1px solid var(--slate-200); }
.followup-date strong { color: var(--navy-900); font-size: 23px; line-height: 1; }
.followup-date span { color: var(--slate-600); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.followup-date small { margin-top: 5px; color: var(--teal-700); font-size: 10px; font-weight: 800; }
.followup-content { min-width: 0; }
.followup-content > div:first-child { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.followup-action { color: var(--teal-700); font-size: 10px; font-weight: 850; }
.followup-content h3 { margin: 0 0 5px; color: var(--navy-900); font-size: 16px; }
.followup-content > p { margin: 0; color: var(--slate-600); font-size: 12px; line-height: 1.45; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 5px 13px; margin-top: 10px; }
.text-action { display: inline-flex; align-items: center; gap: 5px; color: var(--teal-700); font-size: 11px; font-weight: 800; text-decoration: none; }
.text-action .icon { width: 14px; height: 14px; }
.overdue-pill { position: absolute; top: 12px; right: 12px; padding: 4px 7px; border-radius: 99px; background: var(--red-100); color: var(--red-700); font-size: 9px; font-weight: 850; }
.search-field { min-width: min(360px, 45vw); display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--slate-200); border-radius: 11px; background: white; }
.search-field .icon { width: 17px; color: var(--slate-500); }
.search-field input { width: 100%; height: 43px; border: 0; outline: none; background: transparent; color: var(--slate-900); font-size: 13px; }
.history-list { display: grid; gap: 9px; }
.history-card { width: 100%; display: grid; grid-template-columns: 44px minmax(0,1fr) auto 20px; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--slate-200); border-radius: 15px; background: white; text-align: left; box-shadow: var(--shadow-xs); cursor: pointer; transition: border .15s ease, transform .15s ease; }
.history-card:hover { border-color: var(--slate-300); transform: translateY(-1px); }
.history-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--slate-100); color: var(--slate-600); }
.history-icon.status-interested, .history-icon.status-partner { background: var(--green-100); color: var(--green-700); }
.history-icon.status-follow_up { background: var(--amber-100); color: var(--amber-700); }
.history-content { min-width: 0; }
.history-content > div { display: flex; gap: 10px; justify-content: space-between; margin-bottom: 4px; }
.history-content time { color: var(--slate-500); font-size: 10px; }
.history-content h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-content p { margin: 0; color: var(--slate-600); font-size: 11px; }
.verification-badge { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; }
.verification-badge .icon { width: 15px; height: 15px; }
.verification-badge.is-verified { background: var(--green-100); color: var(--green-700); }
.verification-badge.is-unverified { background: var(--amber-100); color: var(--amber-700); }
.history-card > .icon { width: 16px; color: var(--slate-300); }

/* Account */
.account-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 23px; padding: 24px; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: white; box-shadow: var(--shadow-sm); }
.profile-avatar { width: 66px; height: 66px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.1); font-size: 22px; font-weight: 850; }
.account-hero .eyebrow { color: #6fd8d0; }
.account-hero h1 { margin: 0 0 4px; font-size: 25px; letter-spacing: -.035em; }
.account-hero p:last-child { margin: 0; color: #b8c7d5; font-size: 13px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-card { display: flex; flex-direction: column; gap: 14px; padding: 19px; border: 1px solid var(--slate-200); border-radius: 17px; background: white; box-shadow: var(--shadow-xs); }
.account-card-heading { display: flex; align-items: center; gap: 11px; }
.account-card-heading > .icon { width: 22px; height: 22px; color: var(--teal-700); }
.account-card-heading > div { display: grid; gap: 2px; }
.account-card-heading strong { font-size: 14px; color: var(--navy-900); }
.account-card-heading span { color: var(--slate-500); font-size: 11px; }
.details-list { display: grid; gap: 0; margin: 0; }
.details-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 9px 0; border-bottom: 1px solid var(--slate-100); }
.details-list > div:last-child { border: 0; }
.details-list dt { color: var(--slate-500); font-size: 11px; }
.details-list dd { margin: 0; color: var(--slate-900); font-size: 11px; font-weight: 750; text-align: right; }
.account-card-copy { margin: 0; color: var(--slate-600); font-size: 12px; line-height: 1.55; }
.account-card-demo { border-style: dashed; }
.account-card-danger .account-card-heading > .icon { color: var(--red-700); }
.text-success { color: var(--green-700) !important; }
.text-warning { color: var(--amber-700) !important; }

/* Empty states */
.empty-state { min-height: 210px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 30px; border: 1px dashed var(--slate-300); border-radius: 18px; background: rgba(255,255,255,.5); text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--slate-100); color: var(--slate-600); }
.empty-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { margin: 5px 0 0; color: var(--navy-900); font-size: 16px; }
.empty-state p { max-width: 390px; margin: 0; color: var(--slate-500); font-size: 12px; line-height: 1.5; }

/* Modal */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: end center; padding: 22px; background: rgba(7,21,34,.58); backdrop-filter: blur(5px); animation: fadeIn .18s ease; }
.modal-sheet { width: min(100%, 660px); max-height: min(88svh, 880px); display: flex; flex-direction: column; border-radius: 22px; background: white; box-shadow: var(--shadow-lg); overflow: hidden; animation: slideUp .25s cubic-bezier(.22,.8,.32,1); }
.modal-sheet-tall { width: min(100%, 760px); max-height: 94svh; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--slate-200); background: white; }
.modal-header > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.modal-header > div:first-child:has(h2) { display: block; }
.modal-header h2 { margin: 0; color: var(--navy-900); font-size: 20px; letter-spacing: -.025em; }
.modal-header .eyebrow { margin: 0 0 2px; }
.modal-body { overflow-y: auto; padding: 21px; overscroll-behavior: contain; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--slate-200); background: white; }
.stacked-footer { display: grid; grid-template-columns: 1fr 1fr; }
.prospect-heading h2 { margin: 0 0 8px; color: var(--navy-900); font-size: 28px; line-height: 1.15; letter-spacing: -.04em; }
.prospect-heading > p:last-child { display: flex; gap: 7px; align-items: flex-start; margin: 0; color: var(--slate-600); line-height: 1.5; }
.prospect-heading > p:last-child .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--teal-700); }
.score-panel { display: grid; grid-template-columns: 68px 1fr; align-items: center; gap: 14px; margin: 19px 0; padding: 14px; border: 1px solid #cae7e4; border-radius: 14px; background: #f1fbfa; }
.score-number { width: 58px; height: 58px; display: grid; place-content: center; text-align: center; border-radius: 14px; background: var(--teal-600); color: white; }
.score-number span { font-size: 22px; line-height: 1; font-weight: 900; }
.score-number small { margin-top: 2px; font-size: 9px; text-transform: uppercase; }
.score-panel > div:last-child { display: grid; gap: 3px; }
.score-panel strong { font-size: 12px; }
.score-panel p { margin: 0; color: var(--slate-600); font-size: 11px; line-height: 1.45; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.contact-action { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 12px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.contact-action:hover { background: var(--slate-50); border-color: var(--slate-300); }
.contact-action > .icon { color: var(--teal-700); }
.contact-action > span { min-width: 0; display: grid; gap: 2px; }
.contact-action strong { font-size: 12px; }
.contact-action small { color: var(--slate-500); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prospect-facts { display: grid; margin: 18px 0 0; border-top: 1px solid var(--slate-200); }
.prospect-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 2px; border-bottom: 1px solid var(--slate-100); }
.prospect-facts dt { color: var(--slate-500); font-size: 11px; }
.prospect-facts dd { margin: 0; color: var(--slate-900); font-size: 12px; font-weight: 700; text-align: right; }
.completed-callout { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-weight: 750; }

/* Close form */
.close-modal-header { min-height: 75px; }
.close-form { padding: 0 22px; }
.form-section { padding: 21px 0; border-bottom: 1px solid var(--slate-200); }
.form-section:last-child { border: 0; }
.form-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.form-section-heading > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--navy-900); color: white; font-size: 12px; font-weight: 850; }
.form-section-heading > div { display: grid; gap: 2px; }
.form-section-heading strong { color: var(--navy-900); font-size: 14px; }
.form-section-heading small { color: var(--slate-500); font-size: 11px; }
.toggle-row { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 14px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-control { position: relative; width: 43px; height: 25px; flex: 0 0 auto; border-radius: 99px; background: var(--slate-300); transition: background .16s ease; }
.toggle-control::after { content: ''; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: white; box-shadow: var(--shadow-xs); transition: transform .16s ease; }
.toggle-row input:checked + .toggle-control { background: var(--teal-600); }
.toggle-row input:checked + .toggle-control::after { transform: translateX(18px); }
.toggle-row > span:last-child { display: grid; gap: 2px; }
.toggle-row strong { font-size: 13px; }
.toggle-row small { color: var(--slate-500); font-size: 10px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.choice-group { margin: 16px 0 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 9px; color: var(--slate-700); font-size: 12px; font-weight: 750; }
.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.choice-grid.four-cols { grid-template-columns: repeat(4, minmax(0,1fr)); }
.choice-card { min-width: 0; cursor: pointer; }
.choice-card input, .chip-choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { min-height: 42px; display: grid; place-items: center; padding: 7px 8px; border: 1px solid var(--slate-200); border-radius: 10px; color: var(--slate-600); background: white; text-align: center; font-size: 10px; font-weight: 750; line-height: 1.25; transition: border .15s ease, background .15s ease, color .15s ease; }
.choice-card input:checked + span { border-color: var(--teal-600); background: var(--teal-100); color: var(--teal-700); box-shadow: 0 0 0 1px var(--teal-600); }
.choice-card input:focus-visible + span, .chip-choice input:focus-visible + span { outline: 3px solid rgba(40,118,208,.25); outline-offset: 2px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-choice { cursor: pointer; }
.chip-choice span { display: inline-flex; min-height: 35px; align-items: center; padding: 7px 11px; border: 1px solid var(--slate-200); border-radius: 99px; color: var(--slate-600); background: white; font-size: 10px; font-weight: 750; }
.chip-choice input:checked + span { border-color: var(--teal-600); background: var(--teal-100); color: var(--teal-700); }
.next-action-date { margin-top: 10px; }
.photo-field { display: block; margin-top: 13px; cursor: pointer; }
.photo-field input { position: absolute; opacity: 0; pointer-events: none; }
.photo-button { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 12px; border: 1px dashed var(--slate-300); border-radius: 12px; background: var(--slate-50); }
.photo-button > .icon { color: var(--teal-700); }
.photo-button > span { display: grid; gap: 2px; }
.photo-button strong { font-size: 12px; }
.photo-button small { color: var(--slate-500); font-size: 10px; }
.photo-preview { position: relative; margin-top: 10px; border-radius: 13px; overflow: hidden; background: var(--slate-100); }
.photo-preview img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.photo-preview .icon-button { position: absolute; right: 8px; top: 8px; background: rgba(7,21,34,.72); color: white; }
.privacy-callout { display: flex; gap: 11px; padding: 13px; border: 1px solid #cfe3f6; border-radius: 12px; background: #f1f7fd; color: #245f9d; }
.privacy-callout > .icon { margin-top: 1px; }
.privacy-callout p { margin: 0; font-size: 11px; line-height: 1.5; }
.unverified-field { margin-top: 13px; }
.close-form-error { padding: 0 0 14px; }
.close-footer { display: grid; grid-template-columns: 1fr 1fr; }

.entity-mini-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 10px; align-items: center; padding: 13px; border-radius: 12px; background: var(--slate-50); }
.entity-mini-card > div { display: grid; gap: 3px; }
.entity-mini-card strong { font-size: 13px; color: var(--navy-900); }
.entity-mini-card small { color: var(--slate-500); font-size: 10px; line-height: 1.35; }
.history-result-hero { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--slate-50); }
.history-result-hero > div:last-child { display: grid; gap: 3px; }
.history-result-hero strong { color: var(--navy-900); }
.history-result-hero span { color: var(--slate-500); font-size: 11px; }
.notes-block { margin-top: 15px; padding: 14px; border-radius: 12px; background: var(--slate-50); }
.notes-block strong { font-size: 12px; }
.notes-block p { margin: 6px 0 0; color: var(--slate-600); font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.history-photo { width: 100%; max-height: 400px; margin-top: 14px; object-fit: cover; border-radius: 13px; }
.confirm-body { display: grid; justify-items: center; gap: 15px; text-align: center; }
.confirm-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--amber-100); color: var(--amber-700); }
.confirm-icon .icon { width: 28px; height: 28px; }
.confirm-body p { max-width: 460px; margin: 0; color: var(--slate-600); line-height: 1.55; }

/* Toast */
.toast-region { position: fixed; z-index: 200; top: calc(16px + env(safe-area-inset-top)); right: 16px; display: grid; gap: 9px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { transform: translateY(-12px); opacity: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--slate-200); border-radius: 13px; background: white; color: var(--slate-700); box-shadow: var(--shadow-md); pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast > .icon { color: var(--blue-600); }
.toast span { font-size: 12px; line-height: 1.45; font-weight: 650; }
.toast-success > .icon { color: var(--green-700); }
.toast-warning > .icon { color: var(--amber-700); }
.toast-error > .icon { color: var(--red-700); }
.toast .icon-button { width: 30px; height: 30px; }
.toast .icon-button .icon { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .bottom-nav { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: min(650px, calc(100vw - 32px)); height: 66px; padding: 5px 12px; border: 1px solid var(--slate-200); border-radius: 20px; box-shadow: var(--shadow-md); }
  .app-main { padding-bottom: 116px; }
  .nav-item { font-size: 11px; }
  .nav-item.is-active { background: var(--slate-50); }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { min-height: 100svh; padding: 20px; }
  .mobile-login-logo { display: flex; }
  .login-card { padding: 28px; }
  .topbar { grid-template-columns: 1fr auto; padding-inline: 16px; }
  .topbar-context { display: none; }
  .today-hero { padding: 24px; }
  .day-progress-card { min-width: 210px; }
}

@media (max-width: 680px) {
  :root { --topbar-height: 62px; --bottom-nav-height: 68px; }
  .topbar-brand-text { display: none; }
  .topbar .brand-mark { width: 37px; height: 37px; border-radius: 11px 11px 15px 11px; }
  .topbar .brand-mark span { font-size: 21px; }
  .connection-button { min-height: 34px; padding: 6px 9px; }
  .refresh-button { width: 36px; height: 36px; }
  .app-main { padding-left: 13px; padding-right: 13px; padding-top: calc(var(--topbar-height) + env(safe-area-inset-top) + 16px); }
  .today-hero { min-height: 0; display: grid; gap: 20px; border-radius: 21px; padding: 22px; }
  .today-copy h1 { font-size: 35px; }
  .today-copy > p:last-child { font-size: 13px; }
  .day-progress-card { width: 100%; min-width: 0; }
  .sync-banner { align-items: flex-start; padding: 13px; }
  .sync-banner .button { display: none; }
  .section-heading-row h2, .page-intro h1, .map-toolbar h1 { font-size: 22px; }
  .range-tabs { width: 100%; }
  .range-tab { flex: 1; }
  .assignment-card-main { grid-template-columns: 53px minmax(0,1fr) 20px; gap: 11px; padding: 14px 12px; }
  .assignment-time { height: 50px; }
  .assignment-time span { font-size: 16px; }
  .assignment-content h3 { font-size: 15px; }
  .assignment-meta { display: none; }
  .assignment-card-actions { overflow-x: auto; justify-content: flex-start; }
  .quick-action-primary { margin-left: auto; white-space: nowrap; }
  .map-toolbar { align-items: center; }
  .map-toolbar .button span { display: none; }
  .work-map { min-height: 430px; height: calc(100svh - 255px); border-radius: 16px; }
  .followup-summary { gap: 8px; }
  .summary-stat { padding: 13px; }
  .summary-stat > span { min-width: 40px; height: 40px; font-size: 18px; }
  .summary-stat small { display: none; }
  .followup-card { grid-template-columns: 53px minmax(0,1fr); padding: 13px; }
  .overdue-pill { display: none; }
  .compact-intro { display: grid; align-items: stretch; }
  .search-field { min-width: 0; }
  .history-card { grid-template-columns: 40px minmax(0,1fr) auto; gap: 10px; padding: 12px; }
  .history-card > .icon { display: none; }
  .history-content time { display: none; }
  .account-hero { padding: 19px; border-radius: 21px; }
  .profile-avatar { width: 55px; height: 55px; border-radius: 17px; }
  .account-grid { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal-sheet { max-height: 94svh; border-radius: 22px 22px 0 0; }
  .modal-sheet-tall { max-height: 98svh; }
  .modal-header { padding: 13px 16px; }
  .modal-body { padding: 18px 16px; }
  .modal-footer { padding: 12px 13px calc(12px + env(safe-area-inset-bottom)); }
  .prospect-heading h2 { font-size: 23px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .stacked-footer, .close-footer { grid-template-columns: 1fr; }
  .stacked-footer .button-primary, .close-footer .button-primary { order: -1; }
  .close-form { padding: 0 16px; }
  .contact-fields { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .choice-grid.four-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .toast-region { top: calc(10px + env(safe-area-inset-top)); right: 10px; width: calc(100vw - 20px); }
}

@media (max-width: 410px) {
  .login-form-panel { padding: 12px; }
  .login-card { padding: 23px 19px; border-radius: 20px; }
  .login-heading h2 { font-size: 25px; }
  .connection-button span { display: none; }
  .connection-button { width: 36px; justify-content: center; padding: 0; }
  .assignment-card-main { grid-template-columns: 48px minmax(0,1fr) 16px; }
  .assignment-title-row .status-label { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-item { font-size: 9px; }
  .nav-icon .icon { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .topbar, .bottom-nav, .modal-backdrop, .toast-region { display: none !important; }
  .app-main { padding: 0; }
}
