/* ==========================================================================
   Cleargo — staff dashboard design system
   Operational software: dense, legible, calm. No decoration for its own sake.
   ========================================================================== */

:root {
  --bg:            #f6f7f9;
  --surface:       #ffffff;
  --surface-alt:   #fafbfc;
  --border:        #e3e6ea;
  --border-strong: #cfd4da;

  --text:          #16191d;
  --text-muted:    #5f6772;
  --text-faint:    #8b939e;

  --brand:         #0b5d3b;
  --brand-strong:  #084730;
  --brand-tint:    #e8f3ee;

  --accent:        #b45309;
  --accent-tint:   #fdf3e7;

  --danger:        #b42318;
  --danger-tint:   #fdeceb;
  --info:          #175cd3;
  --info-tint:     #eaf1fd;

  --radius:   8px;
  --radius-lg: 12px;
  --shadow:   0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-lg:0 4px 12px rgba(16, 24, 40, .08);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- layout -------------------------------------------------------------- */

.topbar {
  background: var(--brand);
  color: #fff;
  border-bottom: 1px solid var(--brand-strong);
}
.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #fff;
}
.topbar__brand:hover { text-decoration: none; }
.topbar__brand-mark { width: 28px; height: 28px; border-radius: 6px; display: block; }
.topbar__nav { display: flex; gap: 4px; margin-left: 8px; align-items: center; }
.topbar__link {
  color: rgba(255,255,255,.85);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-weight: 500;
}
.topbar__link:hover { background: rgba(255,255,255,.12); text-decoration: none; color: #fff; }
.topbar__link--active { background: rgba(255,255,255,.18); color: #fff; }
.topbar__user { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 13px; color: rgba(255,255,255,.85); }

/* --- section shell: slim topbar + per-section left sidebar ---------------- */

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: block;
}
.shell--with-sidebar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.shell--with-sidebar .page { padding-left: 0; padding-right: 0; margin: 0; max-width: none; }

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 24px 0;
  position: sticky;
  top: 12px;
}
.sidebar__heading {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sidebar__item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 13px;
}
.sidebar__item:hover { background: var(--surface-alt); text-decoration: none; }
.sidebar__item--active { background: var(--brand-tint); color: var(--brand-strong); }

@media (max-width: 900px) {
  .shell--with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; padding: 12px 0; }
}

.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; }
.page--narrow { max-width: 760px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.page-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.page-head p { margin: 0; color: var(--text-muted); font-size: 13px; }

.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }

/* --- detail-page sub-tabs (package / customer / shipment) ---------------- */

.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.detail-tabs__link {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.detail-tabs__link:hover { color: var(--text); text-decoration: none; }
.detail-tabs__link--active { color: var(--brand-strong); border-bottom-color: var(--brand); }

/* --- cards --------------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.card-grid .card { margin-top: 0; }
a.card { display: block; padding: 16px 20px; color: var(--text); }
a.card:hover { border-color: var(--border-strong); text-decoration: none; box-shadow: 0 2px 10px rgba(16,20,26,.08); }
a.card h2, .card--disabled h2 { margin: 0 0 6px; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
a.card p, .card--disabled p { margin: 0; font-size: 13px; color: var(--text-muted); }
.card--disabled { padding: 16px 20px; color: var(--text-faint); }

/* Home dashboard: one number per tile, the number first. */
.stat-tile__value {
  display: block;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 4px;
}
.card__head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card__head h2 { margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.card__body { padding: 20px; }
.card__body--tight { padding: 0; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 550;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--surface-alt); text-decoration: none; border-color: var(--text-faint); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn--ghost { border-color: transparent; background: transparent; color: var(--text-muted); }
.btn--ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn--sm { padding: 5px 11px; font-size: 12.5px; }
.btn--block { width: 100%; }

/* --- forms --------------------------------------------------------------- */

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
/* display:grid above outranks the UA's [hidden] rule, so a hidden group
   would still render -- same guard as .identity-panel[hidden] below. */
.form-grid[hidden] { display: none; }
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field__label { font-size: 12.5px; font-weight: 600; color: var(--text); }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__optional { font-weight: 400; color: var(--text-faint); margin-left: 4px; }
.field__input, .field__select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
}
.field__input:focus, .field__select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.field__help { font-size: 12px; color: var(--text-muted); }
.field__error { font-size: 12px; color: var(--danger); font-weight: 500; }
.field--invalid .field__input, .field--invalid .field__select { border-color: var(--danger); }

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.form-actions .spacer { flex: 1; }

/* --- filter bar ---------------------------------------------------------- */

.filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.filters .field { flex: 0 0 190px; }
.filters .field--grow { flex: 1 1 300px; }

/* --- table --------------------------------------------------------------- */

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 16px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-alt); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
/* CJK translations of short labels (enum display values, statuses) have no
   spaces to wrap at, so a narrow column collapses them to one character per
   line instead of the two or three word-wrapped lines English gets. Force
   these cells to a single line -- .table-wrap already scrolls horizontally
   if the table doesn't fit, so nothing is lost. */
table.data td.nowrap { white-space: nowrap; }

.code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand-strong);
  background: var(--brand-tint);
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.phone { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.dash { color: var(--text-faint); }

/* --- badges -------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active    { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--inactive  { background: #f1f3f5;            color: var(--text-muted); }
.badge--suspended { background: var(--danger-tint); color: var(--danger); }
.badge--plain     { background: var(--surface-alt); color: var(--text-muted); border-color: var(--border); }
.badge--plain::before { display: none; }

/* --- billing / TIN status badges ------------------------------------- */
.badge--draft            { background: var(--surface-alt);  color: var(--text-muted); }
.badge--issued           { background: var(--info-tint);    color: #12419c; }
.badge--partially_paid   { background: var(--accent-tint);  color: #8a3f07; }
.badge--paid             { background: var(--brand-tint);   color: var(--brand-strong); }
.badge--overdue          { background: var(--danger-tint);  color: var(--danger); }
.badge--not_provided     { background: #f1f3f5;             color: var(--text-muted); }
.badge--not_requested    { background: #f1f3f5;             color: var(--text-muted); }
.badge--pending_review   { background: var(--accent-tint);  color: #8a3f07; }
.badge--verified_manually{ background: var(--brand-tint);   color: var(--brand-strong); }
.badge--invalid_format   { background: var(--danger-tint);  color: var(--danger); }

/* --- alerts -------------------------------------------------------------- */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 18px;
  font-size: 13px;
}
.alert--info    { background: var(--info-tint);   border-color: #b9d0f7; color: #12419c; }
.alert--success { background: var(--brand-tint);  border-color: #b3ddca; color: var(--brand-strong); }
.alert--warning { background: var(--accent-tint); border-color: #f0cfa0; color: #8a3f07; }
.alert--error   { background: var(--danger-tint); border-color: #f2b8b4; color: var(--danger); }

/* --- duplicate-identity panel ------------------------------------------- */

.identity-panel {
  border: 1px solid var(--accent);
  background: var(--accent-tint);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.identity-panel__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a3f07;
  margin-bottom: 10px;
}
.identity-panel__name { font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.identity-panel__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.identity-panel__actions { display: flex; gap: 10px; }
.identity-panel[hidden] { display: none; }

.phone-status { font-size: 12px; min-height: 16px; margin-top: 2px; }
.phone-status--new     { color: var(--brand); font-weight: 550; }
.phone-status--exists  { color: var(--accent); font-weight: 550; }
.phone-status--pending { color: var(--text-faint); }

/* --- success screen ------------------------------------------------------ */

.success-hero {
  text-align: center;
  padding: 40px 24px 34px;
  border-bottom: 1px solid var(--border);
}
.success-hero__check {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.success-hero__title { margin: 0 0 6px; font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.success-hero__name  { margin: 0; font-size: 15px; color: var(--text-muted); }

.code-display {
  margin: 26px auto 0;
  max-width: 420px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
  padding: 18px 20px;
}
.code-display__label {
  font-size: 11px; font-weight: 650; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px;
}
.code-display__value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brand-strong);
  word-break: break-all;
  margin-bottom: 14px;
}

.copy-btn.is-copied { background: var(--brand); border-color: var(--brand); color: #fff; }

/* --- definition lists ---------------------------------------------------- */

.dl { display: grid; grid-template-columns: 176px 1fr; gap: 0; }
.dl > dt {
  padding: 9px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.dl > dd {
  padding: 9px 0;
  margin: 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.dl > dt:last-of-type, .dl > dd:last-of-type { border-bottom: none; }

/* --- future-module placeholders ------------------------------------------ */

.module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.module-stub {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface-alt);
}
.module-stub__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.module-stub__name { font-weight: 650; font-size: 13.5px; color: var(--text-muted); }
.module-stub__detail { font-size: 12px; color: var(--text-faint); line-height: 1.45; }

/* --- audit timeline ------------------------------------------------------ */

.events { list-style: none; margin: 0; padding: 0; }
.events li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: baseline;
}
.events li:last-child { border-bottom: none; }
.events__type {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.events__when { margin-left: auto; color: var(--text-faint); font-size: 12px; white-space: nowrap; }
.events__who { color: var(--text-muted); font-size: 12.5px; }

/* --- misc ---------------------------------------------------------------- */

.stat-row { display: flex; gap: 22px; font-size: 13px; color: var(--text-muted); }
.stat-row strong { color: var(--text); font-weight: 650; }

.empty {
  text-align: center;
  padding: 52px 24px;
  color: var(--text-muted);
}
.empty__title { font-weight: 650; color: var(--text); margin-bottom: 5px; font-size: 15px; }

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.pagination__links { display: flex; gap: 8px; }

.errorlist { list-style: none; margin: 0; padding: 0; }
.errorlist li { font-size: 12px; color: var(--danger); font-weight: 500; }

.hint-inline { font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; }
  .dl > dt { border-bottom: none; padding-bottom: 0; }
  .page-head { flex-direction: column; }
}

/* ==========================================================================
   Step 2 — packages, warehouse receiving, customer portal
   ========================================================================== */

/* --- package reference: visually distinct from the customer warehouse code,
       so the two can never be confused at a glance on the same row ---------- */
.code--pkg {
  color: #1e3a8a;
  background: #eaf1fd;
}

/* --- package status badges ------------------------------------------------ */
.badge--tracking_submitted { background: #eef2f6; color: #475467; }
.badge--in_transit_china   { background: var(--info-tint);   color: #12419c; }
.badge--received_china     { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--exception          { background: var(--danger-tint); color: var(--danger); }
.badge--cancelled          { background: #f1f3f5;            color: var(--text-faint); }

/* --- receipt condition badges --------------------------------------------- */
.badge--good     { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--damaged  { background: var(--danger-tint); color: var(--danger); }
.badge--opened   { background: var(--accent-tint); color: #8a3f07; }
.badge--unknown  { background: #f1f3f5;            color: var(--text-muted); }

/* --- receipt customer-confirmation badges ---------------------------------- */
.badge--pending   { background: var(--accent-tint); color: #8a3f07; }
.badge--confirmed { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--disputed  { background: var(--danger-tint); color: var(--danger); }

/* --- shipment authorization badges ----------------------------------------- */
.badge--approved { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--held     { background: var(--danger-tint); color: var(--danger); }

/* --- unmatched resolution badges ------------------------------------------ */
.badge--unresolved { background: var(--accent-tint); color: #8a3f07; }
.badge--resolved   { background: var(--brand-tint);  color: var(--brand-strong); }
.badge--returned   { background: var(--info-tint);   color: #12419c; }
.badge--discarded  { background: #f1f3f5;            color: var(--text-faint); }

/* --- container load planning ---------------------------------------------- */
.badge--overcapacity { background: var(--danger-tint); color: var(--danger); }

/* --- claim status badges --------------------------------------------------- */
.badge--open              { background: #eef2f6;            color: #475467; }
.badge--investigating     { background: var(--info-tint);   color: #12419c; }
.badge--awaiting_customer { background: var(--accent-tint); color: #8a3f07; }
.badge--denied            { background: var(--danger-tint); color: var(--danger); }
.badge--withdrawn         { background: #f1f3f5;            color: var(--text-faint); }

/* --- cycle count status badges --------------------------------------------- */
.badge--reconciled { background: var(--brand-tint); color: var(--brand-strong); }

/* --- customer portal ------------------------------------------------------ */
body.portal { background: var(--bg); }

body.portal .topbar__inner { justify-content: flex-start; }

.portal-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}

/* Scanner-friendly inputs: monospace so a transposed digit is easy to spot,
   and no transform that would fight a barcode reader typing at speed. */
input[autocapitalize="characters"] {
  font-family: var(--mono);
  letter-spacing: .02em;
}

/* ==========================================================================
   Milestone 4 — unified WhatsApp conversation inbox: three-pane layout
   ========================================================================== */

.page--wide { max-width: 1520px; }

/* conversation list | active thread + reply | customer/shipment context --
   all three panes visible at once on the conversation detail page, so
   staff never leave the thread to see who else needs a reply or what the
   customer's package status is (§17). Narrower panes at the edges, since
   the thread itself needs the most room to read comfortably. */
.inbox-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.inbox-sidebar { display: flex; flex-direction: column; gap: 12px; }
.inbox-sidebar__filters { display: flex; flex-direction: column; gap: 4px; }
.inbox-sidebar__list { display: flex; flex-direction: column; gap: 2px; max-height: 70vh; overflow-y: auto; }
.inbox-sidebar__item {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}
.inbox-sidebar__item:hover { background: var(--surface-alt); }
.inbox-sidebar__item--active { background: var(--brand-tint); color: var(--brand-strong); }
.inbox-sidebar__item-name { font-weight: 600; }
.inbox-sidebar__item-meta { display: block; color: var(--text-muted); font-size: 12px; }
.inbox-thread { min-width: 0; }
.inbox-context { min-width: 0; }

@media (max-width: 1180px) {
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-sidebar__list { max-height: 320px; }
}

/* --- Warehouse Mobile/PWA ---------------------------------------------- */
/* A second, parallel shell for the floor-worker flows only (receiving,
   custody scanning) -- never referenced by any desktop template, so it
   cannot regress one. No topbar section list, no sidebar: one back-to-home
   brand link and a sign-out button. */
.mobile-shell { background: var(--bg); min-height: 100vh; }
.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.mobile-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}
.mobile-header__brand:hover { text-decoration: none; }
.mobile-header__mark { height: 28px; width: 28px; }
.mobile-page { max-width: 480px; margin: 0 auto; padding: 16px; }

/* Large, one-handed tap targets for the mobile home screen's action tiles. */
.tile-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.tile {
  display: block;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}
.tile:hover { background: var(--surface-alt); text-decoration: none; border-color: var(--brand); }
.tile__hint { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; color: var(--text-muted); }
