/* Loqui by Mind Your Business. Official MYB purple, navy and Gilroy.
   Status colours keep their separate call-control meanings. */
@font-face { font-family: 'Gilroy'; src: url('/fonts/gilroy-medium.woff2') format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('/fonts/gilroy-bold.woff2') format('woff2'); font-weight: 600 900; font-style: normal; font-display: swap; }

:root {
  /* Surfaces */
  --bg-body:          #111a39;
  --bg-card:          #1b2544;
  --bg-card-solid:    #1b2544;
  --bg-input:         #141e3c;
  --bg-nav:           rgba(17, 26, 57, 0.96);
  --bg-hover-subtle:  rgba(255, 255, 255, 0.04);
  --bg-hover-accent:  rgba(113, 51, 219, 0.08);
  /* Borders */
  --border-subtle:    rgba(255, 255, 255, 0.06);
  --border-default:   rgba(255, 255, 255, 0.10);
  --border-input:     rgba(205, 195, 227, 0.30);
  --border-hover:     rgba(113, 51, 219, 0.30);
  /* Text */
  --text-primary:     #f8f6ff;
  --text-secondary:   #e0dced;
  --text-tertiary:    #beb9d0;
  --text-faint:       #a29db7;
  --text-on-accent:   #ffffff;
  /* MYB brand accent */
  --text-accent:      #cdaaff;
  /* Accent text (light + pale tints — read against dark surfaces) */
  --text-blue:    #93c5fd;
  --text-purple:  #e9d5ff;
  --text-indigo:  #c7d2fe;
  --text-teal:    #99f6e4;
  --text-amber:   #fde68a;
  --text-orange:  #fed7aa;
  --text-pink:    #fbcfe8;
  --text-emerald: #6ee7b7;
  --text-rose:    #fda4af;
  --text-violet:  #c4b5fd;
  --text-red:     #fca5a5;
  --text-yellow:  #fcd34d;
  /* Shadows + effects */
  --shadow-card:           0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --shadow-card-hover:     0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-toast:          0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --blur-card:             blur(14px);
  --blur-nav:              blur(18px);
  /* iOS picker/keyboard fix — keep this, don't flip to dark */
  color-scheme: light;
}

html.light {
  --bg-body:          #f8f7fb;
  --bg-card:          #ffffff;
  --bg-card-solid:    #ffffff;
  --bg-input:         #ffffff;
  --bg-nav:           #ffffff;
  --bg-hover-subtle:  rgba(17, 26, 57, 0.05);
  --bg-hover-accent:  rgba(113, 51, 219, 0.10);
  --border-subtle:    rgba(17, 26, 57, 0.14);
  --border-default:   rgba(17, 26, 57, 0.22);
  --border-input:     rgba(17, 26, 57, 0.22);
  --border-hover:     rgba(113, 51, 219, 0.55);
  --text-primary:     #111a39;
  --text-secondary:   #303954;
  --text-tertiary:    #535c72;
  --text-faint:       #687086;
  --text-accent:      #7133db;
  --text-blue:    #1d4ed8;
  --text-purple:  #7e22ce;
  --text-indigo:  #4338ca;
  --text-teal:    #0f766e;
  --text-amber:   #b45309;
  --text-orange:  #c2410c;
  --text-pink:    #be185d;
  --text-emerald: #047857;
  --text-rose:    #be123c;
  --text-violet:  #6d28d9;
  --text-red:     #b91c1c;
  --text-yellow:  #b45309;
  --shadow-card:           0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-card-hover:     0 4px 8px rgba(15, 23, 42, 0.08), 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-toast:          0 12px 32px rgba(15, 23, 42, 0.14);
  --blur-card: blur(0px);
  --blur-nav:  blur(10px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Gilroy', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
}

.bg { position: fixed; inset: 0; z-index: -2; background: var(--bg-body); }

/* ---- Typography ---- */
h1, h2, h3, .brand-font {
  font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.06;
  margin: 0;
  color: var(--text-primary);
}
.h1-accent {
  background: linear-gradient(135deg, #a779ee 0%, #7133db 55%, #7133db 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2, .h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
.title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.hero-sub { color: var(--text-tertiary); font-size: 15px; margin: 12px 0 0; max-width: 640px; }

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  background: var(--bg-hover-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--text-secondary);
}
pre {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.85em;
}
html.light pre { background: #f1f5f9; }

.muted { color: var(--text-tertiary); }
.small { font-size: 0.85em; }
.mono { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; }

/* ---- Eyebrow chip (handoff §4a) ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(113, 51, 219, 0.08);
  border: 1px solid rgba(113, 51, 219, 0.18);
  color: var(--text-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
html.light .eyebrow { color: #7133db; }
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7133db;
  box-shadow: 0 0 10px rgba(113, 51, 219, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ---- Section eyebrow (handoff §4d) ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 48px 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: 'Gilroy', sans-serif;
}
.section-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7133db, #7133db);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.65);
}

/* ---- Entrance animation (handoff §4c) ---- */
@keyframes blockIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.block { animation: blockIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.10s; }
.d3 { animation-delay: 0.15s; }
.d4 { animation-delay: 0.20s; }

/* ---- Top navigation ---- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 92px;
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  padding-right: 28px;
  background: var(--bg-nav);
  backdrop-filter: var(--blur-nav);
  -webkit-backdrop-filter: var(--blur-nav);
  border-bottom: 1px solid var(--border-subtle);
}
.topnav .brand { display: flex; align-items: center; }
.topnav .brand img { height: 30px; }
/* Theme-dependent logo swap. Keep these selectors stronger than any
   layout rule that sets display on imgs. */
html:not(.light) img.logo-on-light { display: none; }
html.light img.logo-on-dark { display: none; }

.topnav .links { display: flex; gap: 6px; flex: 1; justify-content: center; }
.topnav .links a {
  color: var(--text-tertiary);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.topnav .links a:hover { color: var(--text-primary); background: var(--bg-hover-subtle); text-decoration: none; }
.topnav .links a.on {
  color: var(--text-accent);
  background: rgba(113, 51, 219, 0.10);
  border-color: rgba(113, 51, 219, 0.22);
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .nav-right button {
  background: var(--bg-hover-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  min-height: 38px;
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-toggle:hover, .nav-right button:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 28px 80px;
  padding-top: calc(92px + 56px);
}

.hero { margin-bottom: 48px; }
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.page-head .hero { margin-bottom: 0; }
.page-head + * { margin-top: 28px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #7133db, #7133db);
  color: var(--text-on-accent);
  box-shadow: 0 8px 24px rgba(113, 51, 219, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(113, 51, 219, 0.30); }
.btn-secondary {
  background: var(--bg-hover-subtle);
  color: var(--text-secondary);
  border-color: var(--border-default);
}
.btn-secondary:hover { border-color: var(--border-hover); color: var(--text-primary); }
.btn-block { width: 100%; }

/* ---- Tables ---- */
.table-card { padding: 0; overflow: hidden; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-secondary);
}
td a { color: var(--text-accent); }
th {
  background: var(--bg-hover-subtle);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
tbody tr:hover { background: var(--bg-hover-accent); }
.detail-cell { max-width: 420px; }
.detail-cell summary { cursor: pointer; color: var(--text-accent); }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-type   { background: rgba(113, 51, 219, 0.12); border: 1px solid rgba(113, 51, 219, 0.25); color: var(--text-accent); }
.badge-ok     { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); color: var(--text-emerald); }
.badge-failed { background: rgba(244, 63, 94, 0.12);  border: 1px solid rgba(244, 63, 94, 0.25);  color: var(--text-rose); }
.badge-draft  { background: var(--bg-hover-subtle);   border: 1px solid var(--border-subtle);     color: var(--text-tertiary); }

/* ---- Glass card (handoff §4b) ---- */
.card {
  position: relative;
  padding: 26px;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-card-hover);
}
.card-static:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--border-subtle); }

/* ---- Stat tiles (dashboard) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-grid.headlines { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .stat-grid, .stat-grid.headlines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .stat-grid, .stat-grid.headlines { grid-template-columns: 1fr; }
}

.stat-sub { display: block; margin-top: 6px; font-size: 12px; color: var(--text-tertiary); }
form.stat-card { margin: 0; }
.range-inputs { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.range-inputs input[type='date'],
.range-inputs .dp-input {
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 14px;
  min-height: 38px;
}
.range-inputs input[type='date']:focus,
.range-inputs .dp-input:focus { outline: none; border-color: var(--border-hover); }
.btn-small { min-height: 38px; padding: 7px 16px; font-size: 12.5px; }

.stat-card {
  display: block;
  color: var(--text-primary);
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  border-color: rgba(113, 51, 219, 0.30);
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(113, 51, 219, 0.22);
}
.icon-pad {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, rgba(113, 51, 219, 0.30), rgba(113, 51, 219, 0.12));
  border: 1px solid rgba(113, 51, 219, 0.22);
  margin-bottom: 16px;
}
.stat-number {
  display: block;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 2.1em;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}
.stat-label {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- Forms ---- */
.form { max-width: 640px; }
.form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 18px 0 8px;
}
.form > label:first-child, .form > div:first-child label { margin-top: 0; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  font: inherit;
  font-size: 16px; /* sub-16px inputs trigger iOS focus-zoom */
  background: var(--bg-input);
  color: var(--text-primary);
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(113, 51, 219, 0.15);
}
.form button { margin-top: 24px; }
.form input:disabled { background: var(--bg-hover-subtle); color: var(--text-faint); }

.form-error {
  background: rgba(244, 63, 94, 0.10);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--text-rose);
  padding: 11px 16px;
  border-radius: 12px;
}
.form-success {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-emerald);
  padding: 11px 16px;
  border-radius: 12px;
}

.search-bar { display: flex; gap: 10px; margin-bottom: 20px; max-width: 480px; }
.search-bar input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border-input);
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  background: var(--bg-input);
  color: var(--text-primary);
}
.search-bar input:focus { outline: none; border-color: var(--border-hover); }

.filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-hover-subtle);
  color: var(--text-tertiary);
  font-size: 12.5px;
  font-weight: 600;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-tabs a:hover { text-decoration: none; color: var(--text-primary); border-color: var(--border-hover); }
.filter-tabs a.on {
  background: rgba(113, 51, 219, 0.12);
  border-color: rgba(113, 51, 219, 0.30);
  color: var(--text-accent);
}

/* ---- Custom dropdown (replaces native select popup) ---- */
.dd { position: relative; width: 100%; }
.dd-native { display: none; }
.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-input);
  border-radius: 12px;
  background: var(--bg-input);
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.dd-btn::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  transform: rotate(45deg) translateY(-2px);
  flex: none;
}
.dd-btn:hover, .dd-btn:focus { outline: none; border-color: var(--border-hover); }
.dd-btn[aria-expanded='true'] { border-color: var(--border-hover); box-shadow: 0 0 0 3px rgba(113, 51, 219, 0.15); }
.dd-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 60;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-toast);
  max-height: 280px;
  overflow-y: auto;
}
.dd-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.dd-opt:hover, .dd-opt.active { background: var(--bg-hover-accent); color: var(--text-primary); }
.dd-opt.selected { color: var(--text-accent); font-weight: 600; }
.dd-opt.selected::after { content: '✓'; }

/* ---- Custom date picker (replaces native calendar popup) ---- */
.dp-wrap { position: relative; display: inline-block; }
.dp-input { cursor: pointer; width: 132px; }
.dp-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: 284px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-toast);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-family: 'Gilroy', sans-serif; font-weight: 700; font-size: 14px; color: var(--text-primary); }
.dp-nav {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-hover-subtle);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.dp-nav:hover { border-color: var(--border-hover); color: var(--text-primary); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 0;
}
.dp-day {
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.dp-day:hover { background: var(--bg-hover-accent); color: var(--text-primary); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--border-hover); }
.dp-day.sel {
  background: linear-gradient(135deg, #7133db, #7133db);
  color: var(--text-on-accent);
  font-weight: 700;
}
@media (max-width: 640px) {
  .dp-day { height: 44px; }
  .dd-opt { min-height: 44px; }
}

/* ---- Customer detail ---- */
.customer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.meta-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ---- Footer ---- */
.site-footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--border-subtle);
}
.site-footer img { height: 20px; opacity: 0.85; }

/* ---- Mobile ---- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topnav { height: 68px; gap: 12px; padding-left: 16px; padding-right: 16px; overflow-x: auto; }
  .topnav .brand img { height: 24px; }
  .topnav .links { justify-content: flex-start; }
  .container { padding: 32px 18px 56px; padding-top: calc(68px + 32px); }
  .hero { margin-bottom: 32px; }
  .site-footer { display: none; }
}

/* ---- MYB identity and sign-in ---- */
:root { --brand-purple: #7133db; --brand-hover: #5c22bd; --brand-lavender: #f7f2ff; }
button, input, select, textarea { font-family: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--text-accent); outline-offset: 4px; }
.btn-primary, .wrap-save { background: var(--brand-purple); box-shadow: none; }
.btn-primary:hover, .wrap-save:hover { background: var(--brand-hover); box-shadow: 0 6px 18px rgba(113,51,219,.16); }
.brand-loqui { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.brand-loqui:hover { text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; gap: 5px; }
.brand-byline { color: var(--text-tertiary); font-size: 10px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.myb-owner { display: block; width: 190px; }
.myb-owner-logo { display: block; width: 100%; height: auto; }
.signin-page { min-height: 100svh; display: flex; flex-direction: column; background: var(--bg-nav); }
.signin-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 35px clamp(24px,6vw,88px); }
.signin-header-note { color: var(--text-tertiary); font-size: 13px; }
.signin-layout { width: 100%; max-width: 1260px; padding: 60px 48px 80px; margin: auto; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(48px,8vw,112px); align-items: center; }
.signin-intro .loqui-mark { width: 44px; height: 44px; }
.signin-intro .loqui-word { font-size: 32px; }
.signin-intro .brand-byline { font-size: 12px; }
.signin-intro h1 { font-size: clamp(35px,3.8vw,51px); line-height: 1.11; letter-spacing: -1.8px; margin: 38px 0 22px; }
.signin-intro h1 span { color: var(--text-accent); }
.signin-intro > p { font-size: 17px; color: var(--text-tertiary); line-height: 1.6; margin: 0; }
.voice-line { display: flex; align-items: center; gap: 8px; height: 76px; margin: 35px 0 10px; }
.voice-line i { display: block; width: 6px; height: 14px; border-radius: 8px; background: #7133db; opacity: .22; }
.voice-line i:nth-child(3n) { height: 32px; opacity: .35; }
.voice-line i:nth-child(4n) { height: 48px; opacity: .55; }
.voice-line i:nth-child(7), .voice-line i:nth-child(11) { height: 57px; opacity: .75; }
.voice-line i:nth-child(9) { height: 72px; opacity: 1; }
.signin-caption { color: var(--text-tertiary); font-size: 12px; }
.signin-card { padding: 42px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 22px; box-shadow: var(--shadow-card); }
html.light .signin-card { background: #f7f2ff; border-color: #ece1fc; box-shadow: none; }
.signin-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.7px; color: var(--text-accent); }
.signin-card h2 { margin: 14px 0 11px; font-size: 29px; letter-spacing: -.7px; line-height: 1.16; }
.signin-card > p { color: var(--text-tertiary); font-size: 14px; margin: 0; }
.signin-card form { margin-top: 28px; }
.signin-card .microsoft-signin { margin-top: 28px; justify-content: center; }
.microsoft-signin:disabled { opacity: .65; cursor: wait; }
.signin-card label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.signin-card input { display: block; width: 100%; background: var(--bg-input); border: 1px solid var(--border-input); border-radius: 10px; padding: 13px 14px; font-size: 16px; color: var(--text-primary); margin-bottom: 18px; }
.signin-card input:focus { outline: 3px solid rgba(113,51,219,.14); border-color: #7133db; }
.signin-card .btn { min-height: 49px; justify-content: space-between; padding-inline: 18px; font-size: 15px; }
.signin-card .btn span { font: 25px/1 Arial,sans-serif; }
.signin-card .signin-help { font-size: 12px; line-height: 1.5; margin-top: 19px; }
.signin-card .form-error { margin-top: 16px; }
.signin-footer { display: flex; justify-content: space-between; gap: 16px; margin: 0 clamp(24px,6vw,88px); padding: 23px 0; border-top: 1px solid var(--border-subtle); font-size: 11px; color: var(--text-tertiary); }
.signin-footer-brand { display: inline-flex; align-items: center; gap: 6px; }
@media(max-width:800px) { .signin-layout { grid-template-columns: 1fr; max-width: 580px; gap: 35px; padding: 30px 24px 45px; } .signin-header { padding: 26px 24px; } .signin-header-note { display: none; } .signin-intro h1 { margin-top: 26px; font-size: 38px; } .voice-line, .signin-caption { display: none; } .signin-card { padding: 30px; } .signin-footer > span:last-child { display: none; } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
