:root {
  color-scheme: light;
  --ink: #102b2b;
  --muted: #5d7471;
  --green: #087f6b;
  --green-dark: #056052;
  --mint: #dff8ee;
  --mint-soft: #f0fbf7;
  --cream: #fff8e9;
  --orange: #ec6a3f;
  --yellow: #f1b84b;
  --red: #b8322b;
  --line: #cfe1dc;
  --surface: #ffffff;
  --canvas: #f3f8f6;
  --shadow: 0 16px 45px rgba(15, 57, 50, .09);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15.5px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--green-dark); text-underline-offset: 3px; }
img { max-width: 100%; object-fit: contain; }
.mascot { display: block; height: auto; }
.mascot.position-left { margin-left: 0; margin-right: auto; }
.mascot.position-right { margin-left: auto; margin-right: 0; }
code { overflow-wrap: anywhere; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; line-height: 1.08; }
h2 { margin-bottom: 12px; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.03em; line-height: 1.15; }
h3 { margin-bottom: 8px; }
small { color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
address { font-style: normal; white-space: normal; }
fieldset { min-width: 0; }

.shell { display: grid; grid-template-columns: 274px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 22px 18px; background: #0b2f2d; color: white; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand img { width: 58px; height: 58px; padding: 3px; border-radius: 18px; background: var(--cream); }
.brand span, .sidebar-user span { display: grid; min-width: 0; }
.brand strong { font-size: 19px; letter-spacing: -.03em; }
.brand small, .sidebar-user small { color: #b7d7cf; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: grid; gap: 5px; }
.main-nav a, .admin-nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 13px; color: #d8ece7; text-decoration: none; font-weight: 700; }
.main-nav a span { display: grid; place-items: center; width: 25px; height: 25px; font-size: 18px; }
.main-nav a:hover, .main-nav a.active, .admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.11); }
.admin-nav { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; }
.admin-nav summary { cursor: pointer; font-weight: 900; padding: 8px 12px; }
.admin-nav a { min-height: 34px; padding-left: 22px; font-size: 13px; }
.sidebar-user { margin-top: auto; display: grid; grid-template-columns: 38px minmax(0, 1fr) 36px; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; }
.sidebar-copyright { display: block; margin-top: -14px; color: #9fc7be; font-size: 10px; text-align: center; }
.avatar { display: grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: white; font-weight: 900; }
.sidebar .icon-button { color: white; border-color: rgba(255,255,255,.2); }
.content { min-width: 0; padding: 32px clamp(18px, 4vw, 54px) 60px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.locale-switch { display: flex; align-items: center; gap: 7px; }
.locale-switch select { width: auto; min-width: 142px; padding: 8px 34px 8px 11px; }
.eyebrow { margin-bottom: 5px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.card { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card, .card + .two-col, .two-col + .card, .stat-grid + .card, .quick-grid + .card { margin-top: 22px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.section-head h2, .section-head p { margin-bottom: 0; }
.hero-card { min-height: 305px; display: flex; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; padding: clamp(26px, 5vw, 50px); border-radius: 28px; background: linear-gradient(135deg, #087f6b, #0b5c51); color: white; box-shadow: 0 22px 65px rgba(8,127,107,.24); }
.hero-card > div { max-width: 620px; }
.hero-card h2 { font-size: clamp(31px, 5vw, 52px); }
.hero-card p { color: #ddf5ef; font-size: 18px; }
.hero-card .eyebrow { color: #bdeee2; }
.hero-card .mascot { flex: 0 1 auto; align-self: flex-end; max-width: min(45%, 600px); height: auto; margin: -90px -18px -175px 0; filter: drop-shadow(0 20px 22px rgba(0,0,0,.18)); }
.hero-card .mascot.position-left { order: -1; margin-left: -18px; margin-right: 0; }
.hero-card .mascot.position-right { order: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button.hero-secondary { border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.08); color: white; }
.button.hero-secondary:hover { background: rgba(255,255,255,.17); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; cursor: pointer; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.primary { background: var(--green); color: white; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: var(--mint); border-color: #9bd7c8; color: var(--green-dark); }
.button.ghost { border-color: var(--line); background: white; color: var(--ink); }
.button.light { background: white; color: var(--green-dark); }
.button.danger { background: #fff0ee; border-color: #f1bbb6; color: var(--red); }
.button.compact { min-height: 36px; padding: 7px 13px; font-size: 13px; }
.button.wide { width: 100%; margin-top: 12px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: transparent; text-decoration: none; cursor: pointer; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.stat { display: grid; gap: 5px; min-height: 145px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 19px; }
.stat span { color: var(--muted); font-weight: 700; }
.stat strong { font-size: 38px; letter-spacing: -.04em; }
.quick-grid, .admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.quick-card { display: grid; gap: 4px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--ink); text-decoration: none; }
.quick-card > span { color: var(--orange); font-size: 30px; }
.quick-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.admin-module { position: relative; color: var(--ink); text-decoration: none; }
.admin-module > span { position: absolute; right: 24px; top: 22px; color: var(--green); font-size: 25px; }
.admin-module p { margin: 0; color: var(--muted); }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role-card { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--mint-soft); }
.permission-list, .rules-list { display: grid; gap: 9px; }
.permission-list .check { padding: 9px; border-radius: 10px; background: white; }
.permission-list strong, .permission-list small { display: block; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr); align-items: center; gap: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.rule-row span { display: grid; }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.two-col.align-start { align-items: start; }
.two-col.admin-wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); }
.stack { display: grid; gap: 14px; }
.stack > p { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .wide { grid-column: 1 / -1; }
.field-stack { display: grid; align-content: start; gap: 7px; }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; align-content: start; gap: 6px; font-weight: 750; color: #203e3c; }
label small { font-weight: 500; }
input, select, textarea { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #9ebdb6; border-radius: 12px; background: white; color: var(--ink); outline: none; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,127,107,.13); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--green); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.filterbar, .natural-entry { display: flex; align-items: end; gap: 11px; margin-bottom: 20px; }
.grow { flex: 1; }
.step { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 8px !important; border-radius: 50%; background: var(--mint); color: var(--green-dark); font-weight: 900; }
.package-wizard { display: grid; gap: 22px; }
.package-wizard .card + .card { margin-top: 0; }
.item-list { display: grid; gap: 14px; margin: 18px 0; }
.item-row { position: relative; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--mint-soft); }
.item-row legend { padding: 0 8px; color: var(--green-dark); font-weight: 900; }
.remove-item { position: absolute; right: 12px; top: -18px; background: white; color: var(--red); }
.parser-review { display: grid; gap: 10px; margin: 14px 0 18px; }
.parser-question { display: grid; gap: 10px; padding: 14px; border: 1px solid #e4bd64; border-radius: 14px; background: #fff8e7; }
.parser-question p { margin: 0; font-weight: 800; color: #604d25; }
.parser-question.resolved { border-color: #80bdaf; background: var(--mint-soft); }
.parser-options { display: flex; flex-wrap: wrap; gap: 8px; }
.truth-box, .privacy-note { padding: 15px; border-radius: 14px; background: var(--cream); color: #604d25; }
.privacy-note { font-size: 14px; }
.sticky-action { position: sticky; bottom: 18px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border: 1px solid #78b8aa; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 12px 35px rgba(15,57,50,.2); backdrop-filter: blur(12px); }
.package-wizard > .sticky-action { position: static; bottom: auto; margin-top: 18px; box-shadow: 0 8px 24px rgba(15,57,50,.12); backdrop-filter: none; }
.hs-results { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.hs-results button { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.hs-results button:hover { background: var(--mint); }

.table-wrap { overflow-x: auto; }
.package-bulk-delete, .recipient-bulk-delete { margin-top: 18px; }
.recipient-delete-panel { margin-top: 18px; }
.recipient-delete-note { margin: 12px 0; }
.recipient-row-delete { margin: 0; }
.bulk-delete-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mint-soft);
}
.bulk-delete-actions strong { margin-right: auto; white-space: nowrap; }
.bulk-delete-actions label { margin: 0; }
.bulk-delete-actions select { min-width: 210px; }
.selection-cell { width: 48px; text-align: center; }
.compact-check { display: inline-flex; margin: 0; padding: 4px; }
.compact-check input { margin: 0; }
@media (max-width: 720px) {
  .bulk-delete-actions { align-items: stretch; flex-direction: column; }
  .bulk-delete-actions strong { margin-right: 0; }
  .bulk-delete-actions select,
  .bulk-delete-actions .button { width: 100%; }
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
td small, td strong { display: block; }
.badge { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 9px; border-radius: 999px; background: #edf2f0; color: #3a5551; font-size: 12px; font-weight: 850; white-space: nowrap; }
.status-label_created, .status-ready { background: #fff2ce; color: #79560c; }
.status-dropped_off, .status-in_transit { background: #e5efff; color: #1d5494; }
.status-delivered { background: var(--mint); color: var(--green-dark); }
.status-exception, .status-cancelled, .badge.warning { background: #ffebe8; color: var(--red); }
.empty { padding: 38px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 20px; }
.detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.address-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.address-grid address { display: grid; gap: 7px; padding: 16px; border-radius: 14px; background: var(--mint-soft); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 2px 0 0; font-weight: 850; }
.timeline { display: grid; gap: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; min-height: 54px; }
.timeline li > span { position: relative; width: 10px; height: 10px; margin-top: 6px; border: 3px solid white; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline li > span::after { content: ""; position: absolute; top: 10px; left: 1px; width: 2px; height: 42px; background: var(--line); }
.timeline li:last-child > span::after { display: none; }
.timeline small { display: block; }
.live-tracking { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin: 16px 0; padding: 16px; border: 1px solid #9bd8c9; border-radius: 15px; background: var(--mint-soft); }
.live-tracking strong, .live-tracking small { display: block; }
.live-tracking .inline-message { grid-column: 1 / -1; margin: 0; }
.receipt-list, .sender-list, .device-list, .log-list { display: grid; gap: 9px; margin-top: 18px; }
.receipt-list article, .sender-list article, .device-list article, .log-list article { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.is-muted { opacity: .66; background: var(--surface-soft); }
.receipt-list small, .device-list small, .log-list small { display: block; }
.non-delivery-choice { display: grid; gap: 10px; }
.non-delivery-choice .check { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.receipt-viewer { min-height: 70vh; }
.receipt-viewer-head { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 18px; }
.receipt-viewer-head h2 { margin-bottom: 0; overflow-wrap: anywhere; }
.receipt-media { display: grid; place-items: center; min-height: 50vh; padding: 12px; border-radius: 16px; background: #18201f; }
.receipt-media img { display: block; max-width: 100%; max-height: 78vh; border-radius: 8px; }
.receipt-pdf { display: block; width: 100%; min-height: 72vh; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.receipt-viewer-mobile-back { display: none; }

.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); align-items: start; gap: 22px; }
.assistant-intro { display: flex; align-items: center; gap: 12px; }
.assistant-intro img { width: 96px; height: 96px; border-radius: 25px; background: var(--cream); }
.chat { max-width: 86%; margin: 12px 0; padding: 14px 16px; border-radius: 17px; }
.chat.user { margin-left: auto; background: var(--green); color: white; }
.chat.assistant { background: var(--mint); }
.shipment-assistant { border-color: #8bcfc0; background: linear-gradient(145deg, #ffffff, #edf9f5); }
.draft-status { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border: 1px solid #9bcac0; border-radius: 14px; background: #eef9f6; color: var(--green-dark); font-weight: 750; }
.draft-status .button { flex: 0 0 auto; }
.assistant-command-head { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; }
.assistant-command-head .mascot { justify-self: center; max-width: 96px; max-height: 128px; filter: drop-shadow(0 10px 15px rgba(15,57,50,.16)); }
.assistant-command-head p:last-child { margin-bottom: 0; color: var(--muted); }
.assistant-command-label textarea { min-height: 112px; border-width: 2px; border-color: #75bcae; font-size: 17px; line-height: 1.5; }
.assistant-command-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.assistant-command-actions .speech-reply { margin-left: auto; }
.voice-button { background: var(--green); color: white; }
.voice-button.listening { background: var(--red); box-shadow: 0 0 0 7px rgba(184,50,43,.13); animation: listening-pulse 1.35s ease-in-out infinite; }
.live-conversation-button { background: #173f74; color: white; }
.live-conversation-button.listening { background: var(--red); box-shadow: 0 0 0 7px rgba(184,50,43,.13); animation: listening-pulse 1.35s ease-in-out infinite; }
.live-turn-submit { background: #f2b84b; border-color: #f2b84b; color: #18332f; font-weight: 800; }
.live-turn-submit:not(:disabled) { box-shadow: 0 0 0 5px rgba(242,184,75,.18); }
.assistant-conversation { display: flex; flex-direction: column; gap: 10px; max-height: 360px; margin: 0 0 18px; padding: 14px; overflow-y: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); }
.assistant-bubble { width: fit-content; max-width: min(82%, 760px); padding: 11px 14px; border-radius: 16px; }
.assistant-bubble strong { display: block; margin-bottom: 3px; color: var(--green-dark); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.assistant-bubble p { margin: 0; line-height: 1.45; }
.assistant-bubble-remy { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--mint-soft); }
.assistant-bubble-user { align-self: flex-end; border-bottom-right-radius: 5px; background: #173f74; color: white; }
.assistant-bubble-user strong { color: #d8efff; }
.assistant-mode-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.assistant-mode-notes p { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.72); color: var(--muted); font-size: 13px; }
.assistant-mode-notes .privacy-note { grid-column: 1 / -1; }
@keyframes listening-pulse { 50% { box-shadow: 0 0 0 13px rgba(184,50,43,.04); } }
.speech-privacy { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.assistant-status { margin-top: 14px; }
.assistant-review { margin-top: 20px; padding: 20px; border: 1px solid #78b8aa; border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(15,57,50,.08); }
.assistant-review-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 14px; }
.assistant-review-head h3 { margin-bottom: 0; font-size: 23px; }
.assistant-review-grid { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr); gap: 14px; }
.assistant-review-grid > article { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--mint-soft); }
.assistant-review-grid h4 { margin: 0 0 10px; color: var(--green-dark); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.assistant-review-grid p { margin: 7px 0; }
.assistant-candidates, .assistant-item-list { display: grid; gap: 9px; }
.assistant-address-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.assistant-address-editor label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.assistant-address-editor label:nth-child(2) { grid-column: 1 / -1; }
.assistant-address-editor input { min-width: 0; background: #fff; }
.assistant-save-recipient { margin: 10px 0 12px; padding: 11px 12px; border: 1px solid #9bcac0; border-radius: 11px; background: #fff; }
.assistant-address-suggestion { margin-top: 12px; padding: 12px; border: 1px solid #9bcac0; border-radius: 12px; background: #f7fffc; }
.assistant-address-suggestion p { white-space: pre-line; }
.assistant-address-suggestion .button { margin: 8px 8px 0 0; }
.address-validation-card { display: grid; gap: 9px; margin-top: 4px; padding: 15px; border: 1px solid #9bcac0; border-radius: 14px; background: #f7fffc; }
.address-validation-card[hidden] { display: none; }
.address-validation-card[data-state="checking"] { opacity: .8; }
.address-validation-card[data-state="changed"] { border-color: #e8bc63; background: #fff9e9; }
.address-validation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.address-validation-card p, .address-validation-card ul { margin: 0; }
.address-validation-card ul { padding-left: 20px; color: #70540d; }
.address-validation-suggestion { padding: 11px 12px; border-radius: 11px; background: white; }
.address-validation-suggestion p { margin-top: 5px; white-space: pre-line; }
[data-assistant-recipient] .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.assistant-candidate { display: grid; gap: 2px; width: 100%; padding: 11px 12px; border: 1px solid #9bcac0; border-radius: 11px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.assistant-candidate:hover, .assistant-candidate:focus-visible { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,127,107,.12); }
.assistant-item-list article { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.assistant-item-list article:first-child { padding-top: 0; }
.assistant-item-list article:last-child { padding-bottom: 0; border-bottom: 0; }
.assistant-item-question { color: #70540d; font-weight: 800; }
.assistant-value-entry { display: grid; gap: 7px; margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff5d7; color: #70540d; font-size: 13px; font-weight: 800; }
.assistant-value-entry input { max-width: 190px; background: #fff; }
.assistant-questions { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: #fff5d7; color: #70540d; }
.assistant-questions ul { margin: 0; padding-left: 20px; }
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.codes, .secret { display: block; margin: 10px 0; padding: 14px; border-radius: 11px; background: #112f2d; color: white; letter-spacing: .08em; }
.wrap { display: block; white-space: normal; overflow-wrap: anywhere; }
.totp-setup { display: grid; grid-template-columns: minmax(190px, 240px) minmax(0, 1fr); align-items: center; gap: 22px; margin: 20px 0; }
.totp-qr-card { padding: 14px; border: 1px solid #9ed8c9; border-radius: 22px; background: linear-gradient(145deg, #effbf7, #dff8ee); text-align: center; box-shadow: 0 14px 34px rgba(8,127,107,.12); }
.totp-qr { display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 8px solid white; border-radius: 16px; background: white; }
.totp-qr svg { display: block; width: 100%; height: 100%; shape-rendering: crispEdges; }
.totp-qr.error { padding: 16px; color: var(--red); font-size: 13px; }
.totp-qr-card small { display: block; margin-top: 10px; line-height: 1.35; }
.totp-manual { min-width: 0; }
.totp-manual .secret { font-size: 14px; overflow-wrap: anywhere; }
.field-caption { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.totp-confirm { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.consent-list { display: grid; gap: 12px; margin-top: 18px; }
.consent { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.consent span { display: grid; }
.consent input { width: 24px; height: 24px; }
.privacy-boundary { background: #0b2f2d; color: white; }
.privacy-boundary p { color: #cae2dc; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.privacy-grid span { padding: 12px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; }
.danger-zone { margin-top: 20px; padding: 14px; border: 1px solid #edb6b0; border-radius: 13px; }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 900; }
.danger-zone[open] summary { margin-bottom: 16px; }
.import-preview .sticky-action { margin-top: 18px; }
.import-cancel { margin-top: 12px; }
.manual-hero { display: flex; align-items: center; justify-content: space-between; background: var(--green); color: white; overflow: hidden; }
.manual-hero > div { flex: 1; }
.manual-hero .eyebrow { color: #c3eee4; }
.manual-hero img { margin-bottom: -35px; }
.manual-hero .mascot.position-left { order: -1; }
.manual-hero .mascot.position-right { order: 2; }
.manual-search { display: flex; gap: 10px; }
.manual-search input { max-width: 600px; }
.manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.manual-grid .card { margin-top: 0; }
.prose { margin: 18px 0; }
.inline-form { display: flex; align-items: center; gap: 6px; }
.inline-form select { min-width: 100px; }
.health-list { display: grid; }
.health-list div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ok { color: var(--green); }
.bad { color: var(--red); }
.code-input { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.appearance-editor-layout { display: grid; grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); align-items: start; gap: 22px; margin-top: 22px; }
.appearance-form fieldset { display: grid; gap: 13px; margin: 6px 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--mint-soft); }
.appearance-form legend { padding: 0 8px; color: var(--green-dark); font-size: 16px; font-weight: 900; }
.appearance-form input[type="color"] { min-height: 48px; padding: 4px; cursor: pointer; }
.appearance-form input[type="range"] { padding-inline: 0; accent-color: var(--green); }
.appearance-preview-card { position: sticky; top: 20px; overflow: hidden; }
.login-editor-preview { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(190px, .88fr); min-height: 640px; overflow: hidden; border: 1px solid #8bb9af; border-radius: 22px; background: #082f2d; box-shadow: 0 18px 50px rgba(8,47,45,.18); }
.login-preview-visual { position: relative; display: flex; align-items: flex-end; min-width: 0; min-height: 640px; padding: 34px; overflow: hidden; color: white; background: radial-gradient(circle at 50% 25%, var(--preview-bg-start, #159d85), var(--preview-bg-end, #082f2d) 72%); }
.mascot-drag-handle { position: absolute; z-index: 1; left: var(--preview-mascot-x, 68%); top: var(--preview-mascot-y, 22%); display: grid; place-items: center; width: var(--preview-mascot-width, 143px); padding: 0; border: 1px dashed transparent; background: transparent; transform: translate(-50%, -50%); cursor: grab; touch-action: none; }
.mascot-drag-handle:active { cursor: grabbing; }
.mascot-drag-handle:hover, .mascot-drag-handle:focus-visible { border-color: rgba(255,255,255,.72); border-radius: 16px; outline: none; }
.mascot-drag-handle img { display: block; width: 100%; height: auto; max-height: 430px; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.mascot-drag-handle span { position: absolute; top: calc(100% + 5px); padding: 4px 8px; border-radius: 99px; background: rgba(5,48,44,.84); color: white; font-size: 10px; font-weight: 850; opacity: 0; pointer-events: none; }
.mascot-drag-handle:hover span, .mascot-drag-handle:focus-visible span { opacity: 1; }
.login-preview-copy { position: relative; z-index: 2; max-width: 92%; text-shadow: 0 2px 14px rgba(5,35,32,.45); pointer-events: none; }
.login-preview-copy .eyebrow { color: #d5f4ed; }
.login-preview-copy h3 { margin-bottom: 8px; color: white; font-size: clamp(28px, 4vw, 46px); line-height: 1; letter-spacing: -.05em; }
.login-preview-copy p, .login-preview-copy li { color: #e2f4f0; font-size: 13px; }
.login-preview-copy ul { margin-bottom: 0; padding-left: 20px; }
.login-preview-card { display: grid; align-self: center; gap: 17px; margin: 22px; padding: 27px 22px; border-radius: 22px; background: white; box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.login-preview-card > strong { color: var(--green-dark); font-size: 18px; }
.login-preview-card h3 { margin: 8px 0; font-size: 28px; }
.login-preview-button { padding: 10px; border-radius: 999px; background: var(--green); color: white; font-size: 11px; font-weight: 850; text-align: center; }
.login-preview-line { height: 1px; background: var(--line); }
.login-preview-input { height: 43px; border: 1px solid #8bb9af; border-radius: 11px; }
.login-preview-card > small { margin-top: 8px; text-align: center; }
.error-log-list { display: grid; gap: 12px; margin-top: 20px; }
.error-log-list article { padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 14px; background: var(--surface); }
.error-log-list article p { margin: 12px 0 7px; overflow-wrap: anywhere; }
.error-log-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.error-log-head > div { display: grid; gap: 3px; }
.error-log-head time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.error-log-list details { margin-top: 12px; }
.trace-list { margin-bottom: 0; padding-left: 22px; }
.trace-list li { margin: 5px 0; overflow-wrap: anywhere; }

.flash { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #a5d8cc; border-radius: 14px; background: var(--mint); color: var(--green-dark); }
.flash.warning { border-color: #efd48c; background: #fff5d7; color: #70540d; }
.flash.info { background: #eaf4ff; border-color: #bad8f3; color: #245786; }
.flash.error { background: #ffebe8; border-color: #ecb8b2; color: var(--red); }
.inline-message { margin: 10px 0; padding: 11px 13px; border-radius: 11px; background: var(--mint); }
.inline-message.error { background: #ffebe8; color: var(--red); }
.error-card { text-align: center; padding: 70px 30px; }
.error-card > span { font-size: 70px; font-weight: 950; color: var(--orange); }
.site-footer { padding: 36px 4px 0; color: var(--muted); font-size: 13px; text-align: center; }
.site-footer strong { color: var(--green-dark); }
.mobile-nav, .mobile-more-toggle, .mobile-collapse-toggle { display: none; }
.mobile-more-dialog { position: fixed; inset: auto 0 0; width: min(620px, calc(100% - 24px)); max-height: min(82vh, 720px); margin: 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 25px 25px 0 0; color: var(--ink); background: white; box-shadow: 0 -18px 70px rgba(5,40,37,.3); }
.mobile-more-dialog::backdrop { background: rgba(6,37,35,.62); backdrop-filter: blur(4px); }
.mobile-more-sheet { max-height: min(82vh, 720px); padding: 24px; padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom))); overflow-y: auto; }
.mobile-more-sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.mobile-more-sheet header h2 { margin-bottom: 5px; }
.mobile-more-sheet header p:last-child { margin-bottom: 0; color: var(--muted); }
.mobile-more-group-title { margin: 22px 0 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mobile-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mobile-more-grid a { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 52px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.mobile-more-grid a span { display: grid; flex: 0 0 27px; place-items: center; color: var(--green); font-size: 19px; }
.mobile-more-grid a strong { min-width: 0; overflow-wrap: anywhere; }
.mobile-more-grid a.active { border-color: #86c8b8; background: var(--mint); color: var(--green-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.pwa-dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; color: var(--ink); box-shadow: 0 28px 90px rgba(5,40,37,.34); }
.pwa-dialog::backdrop { background: rgba(6,37,35,.68); backdrop-filter: blur(5px); }
.pwa-dialog form { padding: 26px; }
.pwa-dialog-head { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.pwa-dialog-head img { border-radius: 18px; }
.pwa-dialog-head h2 { margin-bottom: 0; }
.pwa-dialog li { margin: 9px 0; }

.auth-body { min-height: 100vh; background: #082f2d; }
.auth-shell { display: grid; grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr); min-height: 100vh; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(35px, 7vw, 90px); overflow: hidden; color: white; background: radial-gradient(circle at 50% 25%, var(--auth-bg-start, #159d85), var(--auth-bg-end, #082f2d) 70%); }
.auth-visual .mascot { position: absolute; z-index: 1; left: var(--auth-mascot-x, 68%); top: var(--auth-mascot-y, 22%); width: auto; max-width: min(82%, 920px); height: auto; max-height: 78vh; margin: 0; transform: translate(-50%, -50%); filter: drop-shadow(0 22px 30px rgba(0,0,0,.22)); }
.auth-visual-copy { position: relative; z-index: 2; max-width: 720px; text-shadow: 0 2px 18px rgba(3,35,32,.42); }
.auth-visual-copy h1 { font-size: clamp(42px, 6vw, 70px); max-width: 680px; }
.auth-visual-copy p, .auth-visual-copy li { color: #d6eee8; }
.auth-visual-copy .eyebrow { color: #d5f4ed; }
.auth-card { align-self: center; width: min(520px, calc(100% - 42px)); margin: 40px auto; padding: clamp(28px, 5vw, 54px); border-radius: 28px; background: white; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.auth-card h2 { margin: 30px 0 22px; font-size: 33px; }
.auth-brand { color: var(--green-dark); font-size: 25px; font-weight: 950; text-decoration: none; }
.auth-brand small { font-size: 12px; }
.auth-language-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.auth-language-switch a { display: grid; place-items: center; min-width: 42px; min-height: 36px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 900; text-decoration: none; }
.auth-language-switch a.active { border-color: var(--green); background: var(--mint); color: var(--green-dark); }
.split-links { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 13px; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.auth-copyright { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--green-dark); font-size: 12px; font-weight: 800; text-align: center; }
.guest-login-option > small { display: block; margin-top: 10px; color: var(--muted); line-height: 1.45; text-align: center; }
.guest-body { min-height: 100vh; padding: 0; background: linear-gradient(180deg, #e8f7f3 0, #f6faf9 430px); }
.guest-topbar { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; padding: 15px clamp(16px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.guest-topbar .auth-language-switch { justify-content: center; margin: 0; }
.guest-topbar .button-row { justify-content: flex-end; margin: 0; }
.guest-content { width: min(1180px, calc(100% - 32px)); margin: 34px auto 0; }
.guest-label-wizard { display: grid; gap: 22px; }
.guest-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: center; gap: 34px; color: white; background: linear-gradient(135deg, #087f6b, #063d38); }
.guest-hero h1 { color: white; font-size: clamp(34px, 5vw, 58px); }
.guest-hero p { color: #d7f3ed; }
.guest-steps { display: grid; gap: 12px; padding: 0; list-style: none; }
.guest-steps li { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; background: rgba(255,255,255,.1); }
.guest-steps strong { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: white; color: var(--green-dark); }
.guest-assistant .section-head .mascot { width: auto; max-width: 84px; max-height: 110px; }
.guest-recognition-review { margin-top: 18px; padding: 18px; border: 1px solid #9cd9ca; border-radius: 18px; background: var(--mint); }
.guest-recognition-review article { padding: 12px; border-radius: 12px; background: white; }
.guest-address-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guest-address-columns fieldset { display: grid; align-content: start; gap: 14px; }
.guest-final .flash { margin-top: 20px; }

.batch-intro-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-color: #8fcfc0; background: linear-gradient(135deg, #f3fffb, #e6f7f2); }
.batch-intro-card p { max-width: 760px; margin-bottom: 0; }
.batch-recipient-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.batch-recipient-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 520px; padding: 4px; overflow: auto; }
.batch-recipient { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.batch-recipient:hover { border-color: #8fcfc0; background: var(--mint); }
.batch-recipient:has(input:checked) { border-color: var(--green); background: #e2f7f1; box-shadow: inset 0 0 0 1px var(--green); }
.batch-recipient.has-problem { border-color: #efd48c; background: #fff9e9; cursor: not-allowed; }
.batch-recipient > input { margin-top: 3px; }
.batch-recipient > span { display: grid; gap: 3px; min-width: 0; }
.batch-recipient small { overflow-wrap: anywhere; }
.batch-recipient .field-error { color: #8a5e00; font-weight: 750; }
.batch-stat-grid { margin-top: 0; }
.batch-stat-grid .stat { min-height: 120px; }
.batch-final-action { display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.batch-final-action .button.primary { min-width: min(100%, 340px); }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col.admin-wide-left { grid-template-columns: 1fr; }
  .appearance-editor-layout { grid-template-columns: 1fr; }
  .appearance-preview-card { position: static; }
}

@media (max-width: 860px) {
  html, body { overflow-x: clip; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .shell { display: block; }
  .sidebar { display: none; }
  .content { padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
  .topbar { align-items: center; }
  .topbar > div:first-child { min-width: 0; }
  .topbar h1 { overflow-wrap: anywhere; }
  .topbar .button { display: none; }
  .topbar-actions { min-width: 0; }
  .locale-switch select { min-width: 118px; max-width: 42vw; }
  .mobile-nav { position: fixed; z-index: 30; left: max(9px, env(safe-area-inset-left)); right: max(9px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 65px; padding: 6px; border: 1px solid #bcd5cf; border-radius: 19px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px rgba(5,50,45,.24); backdrop-filter: blur(14px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
  .mobile-nav a, .mobile-more-toggle { display: grid; min-width: 0; min-height: 52px; place-items: center; align-content: center; padding: 3px 2px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); text-decoration: none; cursor: pointer; }
  .mobile-nav a span, .mobile-more-toggle span { font-size: 20px; line-height: 1; }
  .mobile-nav small { display: block; width: 100%; overflow: hidden; font-size: 10.5px; font-weight: 750; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav a.active, .mobile-more-toggle.active { background: var(--mint-soft); color: var(--green); }
  .mobile-nav a.active small, .mobile-more-toggle.active small { color: inherit; }
  .two-col, .assistant-layout { grid-template-columns: 1fr; }
  .assistant-review-grid { grid-template-columns: 1fr; }
  .sticky-action { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .package-wizard > .sticky-action { bottom: auto; }
  body.mobile-input-active { padding-bottom: 0; }
  body.mobile-input-active .mobile-nav,
  body.mobile-input-active .package-wizard > .sticky-action {
    visibility: hidden;
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }
  .role-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 280px; }
  .hero-card .mascot { max-width: 240px; margin-right: -25px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: 400px; }
  .auth-visual .mascot { max-width: 55%; max-height: 340px; }
  .auth-shell { padding-right: env(safe-area-inset-right); padding-left: env(safe-area-inset-left); }
  .guest-topbar { grid-template-columns: 1fr auto; padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .guest-content { width: auto; margin-right: max(16px, env(safe-area-inset-right)); margin-left: max(16px, env(safe-area-inset-left)); }
  .guest-topbar .auth-language-switch { grid-column: 1 / -1; grid-row: 2; }
  .guest-topbar .button-row .primary { display: none; }
  .guest-hero, .guest-address-columns { grid-template-columns: 1fr; }
  .batch-recipient-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .card { border-radius: 18px; }
  .button.compact { min-height: 44px; }
  .icon-button { width: 44px; height: 44px; }
  summary { min-height: 44px; align-content: center; }
  .hero-card { align-items: flex-start; min-height: 340px; }
  .hero-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #087f6b 0%, #087f6b 55%, rgba(8,127,107,.72) 64%, transparent 76%); pointer-events: none; }
  .hero-card .mascot { position: absolute; z-index: 0; right: -18px; bottom: -105px; max-width: 205px; height: auto; margin: 0; opacity: .92; }
  .hero-card .mascot.position-left { left: -18px; right: auto; }
  .hero-card { position: relative; }
  .hero-card > div { position: relative; z-index: 2; max-width: 78%; }
  .hero-card h2 { font-size: 32px; }
  .hero-card p:not(.eyebrow) { max-width: 70%; }
  .stat-grid, .quick-grid, .admin-grid, .manual-grid, .privacy-grid, .form-grid, .address-grid { grid-template-columns: 1fr; }
  .rule-row { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .stat { min-height: 120px; }
  .detail-hero, .section-head, .sticky-action { align-items: stretch; flex-direction: column; }
  .button-row { justify-content: stretch; }
  .button-row .button { flex: 1 1 100%; }
  .live-tracking { grid-template-columns: 1fr; }
  .live-tracking .button { width: 100%; }
  .filterbar, .natural-entry, .manual-search { align-items: stretch; flex-direction: column; }
  input, select, textarea { font-size: 16px; }
  .hero-actions, .assistant-command-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .assistant-command-actions .button { width: 100%; }
  .assistant-command-actions .speech-reply { margin-left: 0; padding: 8px 2px; }
  .assistant-command-head { grid-template-columns: 70px minmax(0, 1fr); gap: 11px; }
  .assistant-command-head .mascot { max-width: 68px; max-height: 95px; }
  .assistant-command-head h2 { font-size: 24px; }
  .assistant-command-head p:last-child { grid-column: 1 / -1; }
  .assistant-mode-notes { grid-template-columns: 1fr; }
  .assistant-mode-notes .privacy-note { grid-column: auto; }
  .assistant-bubble { max-width: 94%; }
  .draft-status { align-items: stretch; flex-direction: column; }
  .draft-status .button { width: 100%; }
  .assistant-conversation { max-height: 300px; padding: 10px; }
  .assistant-review { padding: 14px; }
  .assistant-review-head { align-items: stretch; flex-direction: column; }
  .assistant-address-editor { grid-template-columns: 1fr; }
  .assistant-address-editor label:nth-child(2) { grid-column: auto; }
  .assistant-value-entry input { max-width: none; }
  .item-row { padding: 17px 13px; }
  .pwa-dialog form { padding: 20px; }
  .pwa-dialog-head { align-items: flex-start; }
  .inline-fields { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; min-width: 0; }
  .table-wrap .inline-form { flex-wrap: nowrap; min-width: 520px; }
  .sender-list article, .device-list article { align-items: stretch; flex-direction: column; min-width: 0; }
  .sender-list article > *, .device-list article > * { min-width: 0; max-width: 100%; }
  .sender-list article code, .sender-list article span, .device-list article code, .device-list article span { overflow-wrap: anywhere; }
  .sender-list article > .button-row, .device-list article > .button-row, .sender-list article > form, .device-list article > form { width: 100%; }
  .sender-list .inline-form > label, .device-list .inline-form > label { flex: 1 1 190px; }
  .sender-list .inline-form > .button, .device-list .inline-form > .button { flex: 1 1 140px; }
  .mobile-collapse-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: calc(100% + 40px); min-height: 58px; margin: -20px -20px 18px; padding: 13px 20px; border: 0; border-bottom: 1px solid var(--line); border-radius: 18px 18px 0 0; background: var(--mint-soft); color: var(--green-dark); font-weight: 900; text-align: left; cursor: pointer; }
  .mobile-collapse-toggle span { min-width: 0; overflow-wrap: anywhere; }
  .mobile-collapse-toggle strong { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: white; color: var(--green); font-size: 22px; }
  [data-mobile-collapsible].mobile-collapsed > :not(.mobile-collapse-toggle) { display: none !important; }
  [data-mobile-collapsible].mobile-collapsed > .mobile-collapse-toggle { margin-bottom: -20px; border-bottom: 0; border-radius: 18px; }
  .security-mobile-panel > .eyebrow, .security-mobile-panel > h2,
  .manual-mobile-panel > .eyebrow, .manual-mobile-panel > h2 { display: none; }
  .package-mobile-panel:not(.shipment-assistant) > .section-head > div:first-child { display: none; }
  .package-mobile-panel:not(.shipment-assistant) > .section-head { margin-bottom: 12px; }
  .package-mobile-panel > .mobile-heading-only { display: none; }
  .facts { grid-template-columns: 1fr; }
  .sticky-action span { display: none; }
  .sticky-action .button { width: 100%; }
  .manual-hero img { max-width: 105px; }
  .error-log-head { align-items: stretch; flex-direction: column; }
  .error-log-head time { white-space: normal; }
  .totp-setup { grid-template-columns: 1fr; }
  .totp-qr-card { width: min(100%, 280px); margin-inline: auto; }
  .receipt-list article { align-items: stretch; flex-direction: column; }
  .receipt-viewer { padding: 14px; }
  .receipt-viewer-head { align-items: stretch; flex-direction: column; }
  .receipt-viewer-head .button-row .button { width: 100%; }
  .receipt-media { min-height: 45vh; padding: 7px; }
  .receipt-pdf { min-height: 62vh; }
  .receipt-viewer-mobile-back { position: sticky; z-index: 4; bottom: calc(82px + env(safe-area-inset-bottom)); display: block; margin-top: 14px; }
  .receipt-viewer-mobile-back .button { width: 100%; box-shadow: 0 10px 28px rgba(5,50,45,.25); }
  .login-editor-preview { grid-template-columns: 1fr; }
  .login-preview-visual { min-height: 480px; padding: 24px; }
  .login-preview-card { margin: 16px; }
  .auth-visual { display: flex; min-height: 285px; padding: 22px; }
  .auth-visual .mascot { left: var(--auth-mascot-x, 68%); top: var(--auth-mascot-y, 38%); max-width: 54%; max-height: 205px; }
  .auth-visual-copy { max-width: 72%; }
  .auth-visual-copy h1 { font-size: 30px; }
  .auth-visual-copy > p:not(.eyebrow), .auth-visual-copy ul { display: none; }
  .auth-card { width: min(100% - 24px, 520px); margin: 12px auto; border-radius: 22px; }
  .split-links { flex-direction: column; }
  .guest-content { width: min(100% - 20px, 1180px); margin-top: 14px; }
  .guest-topbar { gap: 9px; padding: 10px 12px; }
  .guest-topbar .auth-brand { font-size: 20px; }
  .guest-topbar .button { padding: 9px 12px; }
  .guest-hero { padding: 25px 20px; }
  .guest-hero h1 { font-size: 34px; }
  .guest-steps { gap: 8px; }
  .batch-intro-card, .batch-recipient-toolbar, .batch-final-action { align-items: stretch; flex-direction: column; }
  .batch-intro-card .button-row, .batch-final-action .button { width: 100%; }
  .batch-recipient-list { max-height: 60vh; }
  .mobile-more-sheet { padding: 20px; padding-bottom: max(20px, calc(12px + env(safe-area-inset-bottom))); }
  .mobile-more-grid { grid-template-columns: 1fr; }
  .topbar { gap: 8px; }
  .topbar-actions { max-width: 52%; }
  .locale-switch { gap: 4px; }
  .locale-switch select { min-width: 112px; max-width: 100%; }
}

@media (max-width: 360px) {
  .content { padding-right: max(11px, env(safe-area-inset-right)); padding-left: max(11px, env(safe-area-inset-left)); }
  .topbar-actions { max-width: 48%; }
  .locale-switch select { min-width: 102px; padding-right: 26px; font-size: 13px; }
  .locale-switch .button { padding-inline: 10px; }
  .mobile-nav small { font-size: 9.5px; }
}

@media print {
  .sidebar, .mobile-nav, .topbar .button, .site-footer { display: none !important; }
  .shell { display: block; }
  .content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}
