/* Base styles. The customer app and backoffice load the FlexWin theme after this file. */
:root {
  color-scheme:dark;
  --bg:#15131b;
  --panel:#231f2c;
  --panel-raised:#2b2637;
  --border:#423b4f;
  --text:#f7f3ef;
  --muted:#bdb4c8;
  --accent:#ffbc85;
  --accent-dark:#3b2b22;
  --accent-ink:#301c10;
  --accent-border:#704a31;
  --secondary:#b9a7ff;
  --secondary-surface:#302a3e;
  --secondary-border:#655675;
  --input:#17141e;
  --input-border:#70677e;
  --placeholder:#a69caf;
  --warning:#e5c679;
  --warning-bg:#332d20;
  --warning-border:#65543a;
  --warning-text:#efd4a1;
  --success-bg:#1d3027;
  --success-border:#3e654e;
  --success-text:#b6e7c7;
  --danger:#ffc0cf;
  --danger-bg:#34212b;
  --danger-border:#7b465b;
  --radius:20px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.6;
}
a {
  color:var(--accent);
  text-decoration:none;
}
a:hover {
  text-decoration:underline;
}
button,input {
  font:inherit;
}
button,a,input {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
}
a:focus-visible,button:focus-visible,input:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
h1,h2,h3,p {
  margin-top:0;
}
h1 {
  font-size:clamp(28px,3.4vw,38px);
  letter-spacing:-.045em;
  line-height:1.15;
  margin-bottom:12px;
}
h2 {
  font-size:22px;
  letter-spacing:-.025em;
  line-height:1.3;
  margin-bottom:12px;
}
h3 {
  font-size:20px;
  line-height:1.3;
  margin-bottom:5px;
}
p {
  color:var(--muted);
}
.app-header {
  height:88px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 40px;
  gap:16px;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  font-size:19px;
  font-weight:750;
  letter-spacing:-.035em;
}
.brand:hover {
  text-decoration:none;
}
.brand-mark {
  background:var(--accent);
  color:var(--accent-ink);
  width:39px;
  height:39px;
  border-radius:13px;
  text-align:center;
  font-size:31px;
  font-weight:800;
  line-height:36px;
}
.brand-tag {
  margin-left:4px;
  color:var(--accent);
  font-size:10px;
  letter-spacing:.12em;
  border:1px solid var(--accent-border);
  border-radius:5px;
  padding:1px 6px;
  line-height:20px;
}
.sign-out {
  margin:0;
}
.sign-out button {
  background:transparent;
  border:0;
  color:var(--muted);
  padding:10px 0 10px 15px;
  font-size:13px;
  min-height:44px;
}
.sign-out button span {
  margin-left:12px;
}
.skip-link {
  position:absolute;
  left:16px;
  top:-100px;
  z-index:10;
  padding:10px 16px;
  background:var(--accent);
  color:var(--accent-ink);
  border-radius:8px;
}
.skip-link:focus {
  top:16px;
}
.app-layout {
  display:grid;
  grid-template-columns:208px minmax(0,1fr);
  max-width:1440px;
  margin:auto;
  min-height:calc(100vh - 88px);
}
.app-navigation {
  padding:38px 16px;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.app-navigation a {
  display:flex;
  align-items:center;
  gap:13px;
  padding:13px 17px;
  border-radius:12px;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}
.app-navigation a:hover {
  background:var(--panel);
  text-decoration:none;
  color:var(--text);
}
.app-navigation a.active {
  color:var(--accent);
  background:var(--accent-dark);
}
.nav-icon {
  font-size:23px;
  line-height:1;
  width:24px;
  text-align:center;
}
.app-main {
  padding:44px 48px 24px;
  min-width:0;
}
.page-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:34px;
}
.page-heading h1 {
  margin-bottom:10px;
}
.page-heading .status {
  margin-top:27px;
}
.eyebrow {
  color:var(--accent);
  font-size:10px;
  font-weight:750;
  letter-spacing:.16em;
  margin-bottom:13px;
}
.intro {
  font-size:15px;
  margin:0;
}
.status {
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 11px;
  border-radius:7px;
  font-size:11px;
  font-weight:650;
  white-space:nowrap;
}
.status-neutral {
  color:var(--warning);
  background:var(--warning-bg);
  border:1px solid var(--warning-border);
}
.status-neutral:before {
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
}
.panel {
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:26px;
}
/* Panels and notices stacked in the page column keep apart, on both sites. Only the column's own children: panels side by
   side in a grid (the backoffice's .workspace-grid, the customer's Messages) have the grid's gap and take no second one. */
.app-main > :is(.panel, .notice) + :is(.panel, .notice, .installation-list) {
  margin-top:16px;
}
.welcome-panel {
  padding:36px;
  background:linear-gradient(150deg,#332a32 0%,var(--panel) 68%);
}
.welcome-panel h2 {
  font-size:28px;
  max-width:330px;
  letter-spacing:-.04em;
}
.welcome-panel>p:not(.eyebrow) {
  max-width:410px;
}
.empty-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  height:56px;
  width:56px;
  background:var(--accent-dark);
  border:1px solid var(--accent-border);
  color:var(--accent);
  border-radius:18px;
  font-size:31px;
  line-height:1;
  margin-bottom:26px;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  min-height:48px;
  padding:12px 20px;
  border-radius:10px;
  border:1px solid transparent;
  font-weight:700;
  font-size:14px;
  line-height:1.4;
}
.button:hover {
  text-decoration:none;
  filter:brightness(1.08);
}
.button-primary {
  background:var(--accent);
  color:var(--accent-ink);
}
.button-secondary {
  border-color:var(--secondary-border);
  background:var(--secondary-surface);
  color:var(--text);
}
.full-width {
  width:100%;
  justify-content:space-between;
}
.supporting-note {
  font-size:12px;
  margin-top:16px;
  margin-bottom:0;
  color:var(--muted);
}
.getting-started h2 {
  max-width:235px;
  font-size:20px;
}
.setup-steps {
  padding:8px 0 0;
  list-style:none;
  margin:0;
  display:grid;
  gap:22px;
}
.setup-steps li {
  display:flex;
  gap:14px;
}
.step-number {
  flex:0 0 30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--accent-border);
  border-radius:50%;
  color:var(--accent);
  font-size:12px;
  margin-top:2px;
}
.setup-steps strong {
  font-size:13px;
  font-weight:650;
}
.setup-steps p {
  font-size:12px;
  line-height:1.6;
  margin:5px 0 0;
}
.account-overview {
  margin-top:36px;
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:17px;
}
.section-heading h2 {
  font-size:19px;
  margin:0;
}
.section-heading a {
  font-size:12px;
}
.account-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(225px,1fr));
  gap:16px;
}
.account-card h2 {
  font-size:20px;
  margin:0 0 6px;
}
.account-card h2,.account-card h3 {
  overflow-wrap:anywhere;
}
.account-card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:23px;
}
.account-symbol {
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent);
  background:var(--accent-dark);
  width:35px;
  height:35px;
  border-radius:11px;
  font-size:18px;
  font-weight:750;
}
.account-email {
  font-size:13px;
  overflow-wrap:anywhere;
  margin-bottom:20px;
}
.account-status-description {
  font-size:12px;
  padding-top:16px;
  margin:16px 0 0;
  border-top:1px solid var(--border);
}
.account-count {
  font-size:12px;
  color:var(--muted);
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:8px;
  margin-top:28px;
  white-space:nowrap;
}
.account-count strong {
  color:var(--text);
}
.accounts-layout {
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.account-list {
  display:grid;
  gap:16px;
}
.account-detail {
  display:flex;
  justify-content:space-between;
  gap:15px;
  font-size:12px;
  padding:7px 0;
}
.account-detail>span {
  color:var(--muted);
}
.account-detail strong {
  font-weight:550;
  text-align:right;
}
.add-account-panel>p:not(.eyebrow) {
  font-size:13px;
}
.field {
  margin:22px 0;
}
.field label {
  display:block;
  color:var(--text);
  font-size:12px;
  font-weight:600;
  margin-bottom:8px;
}
.field input {
  background:var(--input);
  border:1px solid var(--input-border);
  border-radius:9px;
  color:var(--text);
  width:100%;
  min-width:0;
  padding:12px 14px;
  min-height:46px;
  font-size:14px;
}
.field input::placeholder {
  color:var(--placeholder);
}
.field-hint {
  font-size:11px;
  line-height:1.6;
  margin:8px 0 0;
}
/* A hint and the control under it keep apart. */
.field-hint + :is(.button, button, input, select, textarea, .offer-facts) {
  margin-top:12px;
}
.form-footnote {
  border-top:1px solid var(--border);
  margin-top:24px;
  padding-top:18px;
  font-size:12px;
  color:var(--muted);
}
.notice {
  border:1px solid var(--warning-border);
  background:var(--warning-bg);
  border-radius:12px;
  color:var(--warning-text);
  padding:14px 17px;
  font-size:13px;
  margin-bottom:22px;
  overflow-wrap:anywhere;
}
.notice p {
  color:inherit;
  margin:6px 0 0;
}
.notice-success {
  background:var(--success-bg);
  border-color:var(--success-border);
  color:var(--success-text);
}
.notice-error {
  background:var(--danger-bg);
  border-color:var(--danger-border);
  color:var(--danger);
}
.empty-state {
  text-align:center;
  padding:58px 28px;
}
.empty-state .empty-icon {
  margin:0 auto 24px;
}
.empty-state h2 {
  font-size:24px;
}
.empty-state p {
  font-size:14px;
  max-width:420px;
  margin:0 auto 24px;
}
.empty-state.compact {
  padding:54px 25px;
}
.empty-state.compact p {
  margin-bottom:0;
}
.history-empty {
  max-width:760px;
  margin:0 auto;
  min-height:350px;
}
.app-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
  font-size:10px;
  margin-top:48px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
@media(min-width:1400px) {
  .app-layout {
    border-right:1px solid var(--border);
    border-left:1px solid var(--border);
  }
}
@media(max-width:1100px) {
  .app-layout {
    grid-template-columns:180px minmax(0,1fr);
  }
  .app-main {
    padding:36px 28px 24px;
  }
  .getting-started h2 {
    max-width:none;
  }
  .setup-steps {
    grid-template-columns:repeat(3,1fr);
    gap:15px;
  }
  .setup-steps li {
    display:block;
  }
  .step-number {
    width:30px;
    margin:0 0 12px;
  }
  .accounts-layout {
    grid-template-columns:1fr;
  }
  .add-account-panel {
    max-width:none;
  }
}
@media(max-width:680px) {
  html {
    scroll-padding-bottom:100px;
  }
  .field input {
    font-size:16px;
  }
  .app-header {
    height:72px;
    padding:0 20px;
  }
  .brand {
    font-size:17px;
    gap:9px;
  }
  .brand-mark {
    height:32px;
    width:32px;
    border-radius:10px;
    line-height:30px;
    font-size:26px;
  }
  .brand-tag {
    font-size:8px;
    line-height:16px;
    margin-left:0;
    padding:1px 4px;
  }
  .sign-out button {
    font-size:11px;
  }
  .sign-out button span {
    display:none;
  }
  .app-layout {
    display:block;
    min-height:calc(100vh - 72px);
  }
  .app-main {
    padding:30px 20px 120px;
  }
  .app-navigation {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:5;
    display:flex;
    flex-direction:row;
    justify-content:space-around;
    gap:0;
    padding:8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top:1px solid var(--border);
    border-right:0;
    background:var(--bg);
  }
  .app-navigation a {
    flex-direction:column;
    gap:5px;
    padding:7px 18px;
    font-size:10px;
    min-width:0;
    flex:1;
  }
  .app-navigation a.active {
    background:transparent;
  }
  .nav-icon {
    font-size:24px;
  }
  .page-heading {
    margin-bottom:27px;
  }
  .page-heading h1 {
    font-size:29px;
  }
  .intro {
    font-size:13px;
  }
  .eyebrow {
    font-size:9px;
  }
  .panel {
    padding:22px;
    border-radius:17px;
  }
  .welcome-panel {
    padding:28px 23px;
  }
  .welcome-panel h2 {
    font-size:26px;
  }
  .welcome-panel>p:not(.eyebrow) {
    font-size:13px;
  }
  .setup-steps {
    grid-template-columns:1fr;
    gap:22px;
    padding-top:12px;
  }
  .setup-steps li {
    display:flex;
  }
  .step-number {
    margin-top:1px;
    margin-bottom:0;
  }
  .getting-started h2 {
    font-size:20px;
    max-width:230px;
  }
  .account-count {
    margin-top:24px;
    padding:7px 9px;
    font-size:10px;
  }
  .account-grid {
    grid-template-columns:1fr;
  }
  .section-heading h2 {
    font-size:17px;
  }
  .section-heading a {
    font-size:11px;
  }
  .account-overview {
    margin-top:30px;
  }
  .account-card-heading {
    margin-bottom:18px;
  }
  .account-detail {
    font-size:11px;
  }
  .empty-state {
    padding:42px 22px;
  }
  .empty-state h2 {
    font-size:23px;
  }
  .app-footer {
    font-size:9px;
    margin-top:32px;
    gap:12px;
  }
  .page-heading>.status {
    font-size:10px;
    padding:5px 8px;
  }
  .account-status-description {
    font-size:12px;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .button,.app-navigation a {
    transition:background-color .15s,filter .15s;
  }
}

/* Shared access pages use the same form controls as the app. */
.access-main { max-width: 36rem; margin: 2rem auto; padding: 1.25rem; }
.access-panel { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.access-panel h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: .5rem 0 1rem; }
.access-panel form { margin-top: 1.5rem; }
/* Links in the text, not link buttons, which keep their own colours. */
.access-panel a:not(.button) { color: var(--accent, #ffbc85); }

/* Saved history: the primary facts stay readable without expanding technical evidence. */
.history-accounts { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:25px; }
.history-accounts a { color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:9px 16px; overflow-wrap:anywhere; }
.history-accounts a.selected { color:var(--accent); border-color:var(--accent); background:var(--accent-dark); }
.history-summary { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.history-summary>div { border:1px solid var(--border); border-radius:14px; padding:15px; }
.history-summary strong { display:block; font-size:26px; color:var(--text); }
.history-summary span,.history-caption,.history-received { font-size:12px; color:var(--muted); }
.history-caption { margin:12px 0 20px; }
.history-items { display:grid; gap:20px; margin-top:27px; }
.history-item-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; }
.history-item-heading h2 { overflow-wrap:anywhere; }
.history-item-heading .status { max-width:230px; white-space:normal; text-align:center; }
.history-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; padding:20px 0; margin:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.history-metrics dt { color:var(--muted); font-size:12px; }
.history-metrics dd { margin:5px 0 0; font-size:20px; color:var(--text); overflow-wrap:anywhere; }
.history-metrics>div:first-child dd { color:var(--accent); }
.history-validity { font-size:12px; margin-top:15px; }
.history-fields summary { cursor:pointer; color:var(--accent); padding:10px 0; }
.history-fields dl { display:grid; gap:10px; margin:15px 0; }
.history-fields dl>div { display:grid; grid-template-columns:minmax(150px,1fr) 2fr; gap:16px; font-size:12px; }
.history-fields dt { color:var(--muted); }
.history-fields dd { margin:0; overflow-wrap:anywhere; }
.history-fields p,.history-diagnostics { font-size:12px; }
.history-diagnostics ul { margin:0 0 15px; padding-left:20px; color:var(--muted); }
.history-diagnostic { border-left:3px solid var(--border); }
.history-pagination { display:flex; justify-content:flex-end; margin-top:24px; }
@media(max-width:900px) { .history-summary { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:680px) {
  .history-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .history-summary>div { padding:12px; }
  .history-summary strong { font-size:22px; }
  .history-summary span { font-size:11px; }
  .history-item-heading { display:block; }
  .history-item-heading .status { display:inline-block; margin:0 0 18px; text-align:left; }
  .history-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .history-metrics dd { font-size:18px; }
  .history-fields dl>div { grid-template-columns:1fr; gap:2px; }
  .history-accounts a { font-size:12px; }
}

/* Pairing is a setup status, separate from Amazon account connectivity. */
.status-ready { color:var(--success-text); background:var(--success-bg); border:1px solid var(--success-border); }
.account-card-heading .status { white-space:normal; text-align:right; max-width:230px; }
.account-detail strong { overflow-wrap:anywhere; }
.installation-main { max-width:1100px; margin:auto; }
.installation-guide { margin-bottom:24px; }
.installation-guide h2 { font-size:20px; }
.installation-guide ol { color:var(--muted); padding-left:22px; }
.installation-guide li { padding-left:5px; margin-bottom:9px; }
.installation-guide p { font-size:12px; margin-bottom:0; }
.installation-list { display:grid; gap:22px; }
.installation-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.installation-heading h2,.installation-heading .eyebrow { overflow-wrap:anywhere; }
.installation-heading .status { white-space:normal; text-align:right; }
.installation-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:20px 0; }
.installation-facts dt { color:var(--muted); font-size:12px; }
.installation-facts dd { margin:4px 0 0; font-size:13px; overflow-wrap:anywhere; }
.installation-actions { display:flex; flex-wrap:wrap; gap:12px; }
.installation-assignment { border-top:1px solid var(--border); margin-top:20px; padding-top:1px; padding-bottom:20px; }
.field select { font:inherit; background:var(--input); border:1px solid var(--input-border); border-radius:9px; color:var(--text); width:100%; min-width:0; padding:12px 14px; min-height:46px; }
.field select:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
@media(max-width:680px) {
  .installation-heading { display:block; }
  .installation-heading .status { margin-bottom:18px; text-align:left; }
  .installation-main .page-heading { display:block; }
  .installation-main .page-heading>a { display:inline-block; margin-top:14px; font-size:13px; }
  .installation-facts { grid-template-columns:1fr; }
  .installation-actions,.installation-actions form,.installation-actions .button { width:100%; }
  .field select { font-size:16px; }
}

/* The decision card's parts keep apart: the countdown beside its heading, never under Hold to accept, and Hold's hint clear
   of Decline. */
.offer-decision { margin-top: 20px; display: grid; gap: 12px; }
.offer-decision > * { margin-top: 0; margin-bottom: 0; }
.offer-decision-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.offer-decision-heading h2 { margin: 0; }
.offer-action-forms { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 12px; }
.offer-action-forms form { margin: 0; }
@media(max-width:680px) { .offer-action-forms { grid-template-columns: minmax(0, 1fr); } }
.decision-confirm { display: flex; align-items: start; gap: 10px; margin-bottom: 16px; max-width: 560px; line-height: 1.5; }
.decision-confirm input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.button-danger { border-color: var(--danger-border); color: var(--danger); background: var(--danger-bg); }
#recent-offers { margin-top: 24px; }

/* A hold is 1.2 s under a finger: a browser free to pan from the button takes a slight drift for a scroll and cancels the
   pointer, and with it the accept. Letting go, sliding off or losing focus still ends the hold: offer.js releases the
   finger's implicit capture, so sliding off sends pointerleave. */
[data-hold-accept] { user-select: none; -webkit-user-select: none; touch-action: none; }

/* Password with a show/hide button (FRD FR-06). */
.password-field { display: flex; gap: 8px; align-items: stretch; }
.password-field input { flex: 1; min-width: 0; }
.password-toggle { flex: none; min-width: 64px; }

/* Driver search page: a plain status with a coloured dot, quick durations, and offer cards built for a quick decision. */
.back-link { display:inline-block; margin-bottom:6px; color:var(--muted); font-size:14px; text-decoration:none; }
.search-status h2 { margin:0; font-size:22px; }
.status-line { display:flex; align-items:center; gap:10px; margin:4px 0 8px; }
.status-dot { width:12px; height:12px; border-radius:50%; flex:none; background:var(--muted); }
.status-dot.tone-active { background:var(--success-text); box-shadow:0 0 0 4px var(--success-bg); }
.status-dot.tone-busy { background:var(--warning); box-shadow:0 0 0 4px var(--warning-bg); }
.status-dot.tone-attention { background:var(--danger); box-shadow:0 0 0 4px var(--danger-bg); }
.status-station { margin:0 0 4px; font-size:16px; }
.status-detail { margin:0 0 12px; color:var(--muted); font-size:15px; }
.stop-form, .quiet-form { margin-top:12px; }
.field-zone { color:var(--muted); font-weight:400; }
.duration-presets { display:flex; gap:8px; margin:6px 0 8px; flex-wrap:wrap; }
.chip { min-height:40px; padding:8px 16px; border-radius:999px; border:1px solid var(--secondary-border); background:var(--secondary-surface);
  color:var(--text); font-weight:700; font-size:14px; cursor:pointer; }
.chip:hover, .chip:focus-visible { border-color:var(--secondary); }
.button-quiet { background:transparent; border-color:var(--border); color:var(--muted); }
.offer-list { display:grid; gap:12px; }
.offer-card { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:16px 18px; }
.offer-card-top { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.offer-pay { font-size:30px; font-weight:800; color:var(--accent); letter-spacing:-0.01em; }
.offer-countdown { font-size:16px; font-weight:700; color:var(--warning-text); background:var(--warning-bg); border:1px solid var(--warning-border);
  border-radius:999px; padding:4px 12px; white-space:nowrap; }
.offer-total { margin:2px 0 10px; font-size:16px; color:var(--text); }
.offer-facts { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; margin:0 0 10px; }
.offer-facts div { background:var(--panel-raised); border-radius:12px; padding:8px 10px; }
.offer-facts dt { color:var(--muted); font-size:13px; }
.offer-facts dd { margin:2px 0 0; font-size:16px; font-weight:700; }
@media(max-width:680px) {
  .offer-facts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .offer-pay { font-size:28px; }
}


/* Driver home and accounts: one card per account with a coloured status, its newest offer and its next step. */
.home-accounts { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:16px; margin-bottom:20px; }
.home-account h2 { font-size:20px; margin:0 0 4px; overflow-wrap:anywhere; }
.home-account .account-email { margin-bottom:14px; }
.home-account h3 { margin:0; font-size:18px; }
.home-offer { background:var(--panel-raised); margin:12px 0 0; }
.home-offer .offer-pay { font-size:26px; }
.home-offer .field-hint { margin:2px 0; }
.home-offer .button { margin-top:10px; }
.home-actions, .account-actions { display:grid; gap:10px; margin-top:14px; }
.home-actions:empty, .account-actions:empty { display:none; }
.status-chip { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; font-size:13px; font-weight:700;
  border:1px solid var(--border); color:var(--muted); background:var(--panel-raised); text-align:left; }
.status-chip.tone-active { color:var(--success-text); background:var(--success-bg); border-color:var(--success-border); }
.status-chip.tone-busy { color:var(--warning-text); background:var(--warning-bg); border-color:var(--warning-border); }
.status-chip.tone-attention { color:var(--danger); background:var(--danger-bg); border-color:var(--danger-border); }
.status-chip > .status-dot { width:8px; height:8px; box-shadow:none; background:currentColor; }
.state-change { margin-top:14px; }
.state-change summary { cursor:pointer; color:var(--muted); font-size:14px; }
.state-change[open] summary { margin-bottom:10px; }
.setup-steps li.done .step-number { background:var(--success-bg); border-color:var(--success-border); color:var(--success-text); }
.setup-steps li.done strong { color:var(--muted); }

/* Deciding on the card itself, and a card whose time is up folding away. */
.offer-card-actions { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 1fr); gap:8px; margin-top:12px; align-items:start; }
.offer-card-actions form { margin:0; }
.offer-card-actions .field-hint:empty { display:none; }
.offer-card-link { display:inline-block; margin-top:10px; color:var(--muted); font-size:14px; }
.offer-card.offer-expired { opacity:.7; }
.offer-card.offer-expired .offer-facts, .offer-card.offer-expired .offer-card-actions, .offer-card.offer-expired .offer-countdown,
.offer-card.offer-expired .button { display:none; }
@media(max-width:680px) { .offer-card-actions { grid-template-columns:minmax(0, 1fr); } }
