/* Queueless Vendor — Material Dashboard layout on the Queueless palette. */

:root {
  --deep-navy: #0a0f1a;
  --navy-soft: #2a3346;
  --lime-flow: #a6e600;
  --lime-deep: #7eb000;
  --lime-ink: #4f6f00;
  --emerald: #00c48c;
  --emerald-ink: #007a57;
  --ocean-teal: #00d1c1;
  --teal-ink: #00756c;
  --slate: #667085;
  --bg: #f3f5f7;
  --panel: #ffffff;
  --surface: #f8fafb;
  --line: #e8ebf0;
  --input-line: #cfd4dc;
  --text: #0a0f1a;
  --text-dim: #667085;
  --danger: #d92d20;
  --warning: #b54708;

  --grad-primary: linear-gradient(195deg, #bff53a, var(--lime-deep));
  --grad-dark: linear-gradient(195deg, var(--navy-soft), var(--deep-navy));
  --grad-success: linear-gradient(195deg, #00b07e, var(--emerald-ink));
  --grad-info: linear-gradient(195deg, #3ee6d8, #00a89b);
  --grad-danger: linear-gradient(195deg, #ef5a4f, var(--danger));
  --grad-warning: linear-gradient(195deg, #e8790a, var(--warning));
  --grad-secondary: linear-gradient(195deg, #7d8798, #4d5668);
  --grad-light: linear-gradient(195deg, #f1f3f6, #dfe3e9);
  --divider: linear-gradient(to right, rgba(10, 15, 26, 0), rgba(10, 15, 26, 0.18), rgba(10, 15, 26, 0));
  --divider-on-dark: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));

  --shadow-card: 0 4px 6px -1px rgba(10, 15, 26, 0.1), 0 2px 4px -1px rgba(10, 15, 26, 0.06);
  --shadow-xl: 0 20px 27px 0 rgba(10, 15, 26, 0.05);
  --shadow-menu: 0 8px 26px -4px rgba(10, 15, 26, 0.15), 0 8px 9px -5px rgba(10, 15, 26, 0.06);
  --shadow-dialog: 0 23px 45px -11px rgba(10, 15, 26, 0.25);
  --shadow-primary: 0 4px 20px 0 rgba(10, 15, 26, 0.14), 0 7px 10px -5px rgba(126, 176, 0, 0.45);
  --shadow-dark: 0 4px 20px 0 rgba(10, 15, 26, 0.14), 0 7px 10px -5px rgba(10, 15, 26, 0.4);
  --shadow-info: 0 4px 20px 0 rgba(10, 15, 26, 0.14), 0 7px 10px -5px rgba(0, 209, 193, 0.4);
  --btn-shadow-primary: 0 3px 3px 0 rgba(126, 176, 0, 0.15), 0 3px 1px -2px rgba(126, 176, 0, 0.2),
    0 1px 5px 0 rgba(126, 176, 0, 0.15);
  --btn-shadow-primary-hover: 0 14px 26px -12px rgba(126, 176, 0, 0.4), 0 4px 23px 0 rgba(10, 15, 26, 0.15),
    0 8px 10px -5px rgba(126, 176, 0, 0.2);
  --btn-shadow-dark: 0 3px 3px 0 rgba(10, 15, 26, 0.15), 0 3px 1px -2px rgba(10, 15, 26, 0.2),
    0 1px 5px 0 rgba(10, 15, 26, 0.15);
  --btn-shadow-dark-hover: 0 14px 26px -12px rgba(10, 15, 26, 0.4), 0 4px 23px 0 rgba(10, 15, 26, 0.15),
    0 8px 10px -5px rgba(10, 15, 26, 0.2);

  --font: "Roboto", "Helvetica", "Arial", sans-serif;
  --font-size: 0.875rem;
  --font-size-sm: 0.75rem;
  --control-h: 2.75rem;
  --btn-h: 2.5rem;
  --btn-h-sm: 2rem;
  --radius-xl: 0.75rem;
  --radius-lg: 0.5rem;
  --radius-md: 0.375rem;
  --sidebar-w: 15.625rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.00938em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

/* Form controls default to a ~20-character intrinsic width that grid and
   flex tracks will not shrink below; on narrow phones or with large system
   text that pushes the whole page sideways. Let them shrink to their track. */
input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.0075em;
}

#app {
  min-height: 100dvh;
}

:focus-visible {
  outline: 2px solid var(--lime-ink);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  color: var(--deep-navy);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.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;
}

.hidden {
  display: none !important;
}

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

/* ------------------------------------------------------------- brand */

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.brand span {
  color: var(--lime-deep);
}

.app-version {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  letter-spacing: 0.03em;
  text-align: center;
}

.app-version-on-dark {
  color: rgba(255, 255, 255, 0.6);
}

/* ------------------------------------------------------------- sign in */

.login-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 3.5rem 1.15rem 2rem;
  background:
    radial-gradient(circle at 85% 10%, rgba(166, 230, 0, 0.22), transparent 38%),
    radial-gradient(circle at 10% 90%, rgba(0, 209, 193, 0.16), transparent 40%),
    linear-gradient(195deg, #1c2434, var(--deep-navy));
}

.login-stack {
  display: grid;
  gap: 1.25rem;
  width: min(100%, 24rem);
}

.login-stack > .app-version {
  color: rgba(255, 255, 255, 0.6);
}

.login-card {
  width: 100%;
  padding: 0 1.5rem 1.5rem;
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card), var(--shadow-xl);
}

.auth-header {
  margin: -1.75rem -0.5rem 1.5rem;
  padding: 1.5rem 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
  color: var(--deep-navy);
  text-align: center;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.auth-header .brand,
.auth-header .brand span {
  color: var(--deep-navy);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-md);
  background: var(--deep-navy);
  color: var(--lime-flow);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--deep-navy);
}

.auth-lead {
  margin-top: 0.35rem;
  font-size: var(--font-size);
  line-height: 1.5;
  color: rgba(10, 15, 26, 0.78);
}

.auth-lead strong {
  color: var(--deep-navy);
}

.auth-note {
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
  line-height: 1.6;
}

.auth-header + .field {
  margin-top: 0;
}

.auth-submit {
  margin-top: 1.75rem;
}

.btn-link {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.btn-link:hover {
  color: var(--lime-ink);
}

.auth-legal {
  margin-top: 1.25rem;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  text-align: center;
}

.auth-legal a {
  color: var(--lime-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pin-input-wrap {
  position: relative;
  display: block;
}

.field .pin-input-wrap input {
  padding-right: 3rem;
}

.pin-toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transform: translateY(-50%);
}

.pin-toggle:hover {
  background: rgba(10, 15, 26, 0.06);
  color: var(--text);
}

/* ------------------------------------------------------------- app shell */

.shell {
  display: grid;
  grid-template-columns: calc(var(--sidebar-w) + 1rem) minmax(0, 1fr);
  min-height: 100dvh;
}

.sidebar {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  height: calc(100dvh - 2rem);
  margin: 1rem 0 1rem 1rem;
  padding: 0 0 1rem;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: var(--grad-dark);
  box-shadow: var(--shadow-xl), 0 10px 30px -10px rgba(10, 15, 26, 0.45);
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 2rem 0.25rem;
}

.brand-mark {
  width: 1.75rem;
  height: auto;
  flex-shrink: 0;
}

.sidebar .brand {
  color: #fff;
  font-size: 0.875rem;
}

.sidebar .brand span {
  color: var(--lime-flow);
}

.brand-tag {
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.sidebar-divider {
  height: 1px;
  margin: 1rem 0;
  border: none;
  background: var(--divider-on-dark);
  opacity: 0.6;
}

.nav-section {
  margin: 0 2rem 0.5rem;
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.nav {
  display: grid;
  gap: 0.125rem;
  padding: 0 1rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  text-align: left;
  font-size: var(--font-size);
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-item:focus-visible {
  outline: 2px solid var(--lime-flow);
  outline-offset: 1px;
}

.nav-item.active {
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
  color: var(--deep-navy);
  font-weight: 500;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.nav-icon .material-symbols-rounded {
  font-size: 1.35rem;
}

.sidebar-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
  padding: 1.5rem 1rem 0;
}

.sidebar-backdrop {
  display: none;
}

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
  padding: 1rem 1.5rem 0;
}

.navbar {
  position: sticky;
  top: 1rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(200%) blur(30px);
  backdrop-filter: saturate(200%) blur(30px);
  box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.9), var(--shadow-xl);
}

.navbar-heading {
  flex: 1;
  min-width: 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  font-size: var(--font-size);
  color: var(--text-dim);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  padding: 0 0.5rem;
  opacity: 0.6;
}

.breadcrumbs button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  opacity: 0.75;
}

.breadcrumbs button:hover {
  color: var(--text);
  opacity: 1;
}

.breadcrumbs button .material-symbols-rounded {
  font-size: 1.1rem;
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
}

.navbar-title {
  margin-top: 0.1rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.navbar-icon-btn:hover {
  background: rgba(10, 15, 26, 0.06);
  color: var(--text);
}

.navbar .back-btn {
  background: var(--grad-dark);
  box-shadow: var(--btn-shadow-dark);
  color: #fff;
}

.navbar .back-btn:hover {
  background: var(--grad-dark);
  box-shadow: var(--btn-shadow-dark-hover);
  color: #fff;
}

.navbar-menu {
  display: none;
}

.page-sub {
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
  line-height: 1.6;
}

.page-lead {
  max-width: 44rem;
  margin-top: 1.5rem;
}

.workspace #main-content {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 1.75rem 0 1rem;
}

.workspace .page-lead + #main-content {
  padding-top: 1.25rem;
}

#main-content:focus {
  outline: none;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0.25rem 1.5rem;
  font-size: var(--font-size);
  font-weight: 300;
  color: var(--text-dim);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: var(--btn-h);
  min-height: var(--btn-h);
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--grad-dark);
  box-shadow: var(--btn-shadow-dark);
  color: #fff;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02857em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  transition: box-shadow 0.25s ease, opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover:not(:disabled) {
  box-shadow: var(--btn-shadow-dark-hover);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn .material-symbols-rounded {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--grad-primary);
  box-shadow: var(--btn-shadow-primary);
  color: var(--deep-navy);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--btn-shadow-primary-hover);
}

.btn-secondary {
  background: transparent;
  border-color: var(--deep-navy);
  box-shadow: none;
  color: var(--deep-navy);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(10, 15, 26, 0.05);
  box-shadow: none;
}

.btn-danger {
  background: transparent;
  border-color: var(--danger);
  box-shadow: none;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--grad-danger);
  box-shadow: 0 14px 26px -12px rgba(217, 45, 32, 0.4), 0 8px 10px -5px rgba(217, 45, 32, 0.2);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  height: var(--btn-h-sm);
  min-height: var(--btn-h-sm);
  padding: 0 1rem;
  font-size: 0.6875rem;
}

.btn-lg {
  height: 3.25rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  font-size: var(--font-size);
}

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

.field {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.field label {
  font-size: var(--font-size);
  color: var(--text-dim);
}

.field > label:has(+ .page-sub) {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.field input:not([type="checkbox"], [type="radio"]),
.field select,
.field textarea,
.branch-switcher-control select {
  width: 100%;
  min-height: var(--control-h);
  height: var(--control-h);
  padding: 0 0.75rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text);
  font-size: var(--font-size);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  height: auto;
  min-height: 5.5rem;
  padding: 0.75rem;
  resize: vertical;
}

.field select,
.branch-switcher-control select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23667085' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.35rem;
  cursor: pointer;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a2b3;
  font-weight: 300;
}

.field input:not([type="checkbox"], [type="radio"]):hover,
.field select:hover,
.field textarea:hover,
.branch-switcher-control select:hover:not(:disabled) {
  border-color: #98a2b3;
}

.field input:not([type="checkbox"], [type="radio"]):focus,
.field select:focus,
.field textarea:focus,
.branch-switcher-control select:focus {
  border-color: var(--lime-ink);
  box-shadow: inset 0 0 0 1px var(--lime-ink);
}

.field input:not([type="checkbox"], [type="radio"]):disabled,
.branch-switcher-control select:disabled {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line);
  cursor: not-allowed;
}

/* Material outlined field: the label sits in a notch on the top border. */
.field:has(> label + :is(input, select, textarea, .place-input-wrap, .pin-input-wrap)),
.branch-switcher-control {
  position: relative;
  display: block;
  padding-top: 0.5rem;
}

.field:has(> label + :is(input, select, textarea, .place-input-wrap, .pin-input-wrap)) > label,
.branch-switcher-control-label {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  z-index: 2;
  max-width: calc(100% - 1.5rem);
  padding: 0 0.3rem;
  transform: translateY(-50%);
  background: var(--panel);
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition: color 0.15s ease;
}

.field:has(> label + :is(input, select, textarea, .place-input-wrap, .pin-input-wrap)):focus-within > label,
.branch-switcher-control:focus-within .branch-switcher-control-label {
  color: var(--lime-ink);
}

.optional-label {
  font-weight: 300;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.field-inline {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

input[type="checkbox"]:not(.switch input) {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin: 0;
  border: 1px solid #b9c0cb;
  border-radius: 0.3rem;
  background: var(--panel);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

input[type="checkbox"]:not(.switch input):checked {
  border-color: transparent;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 0.8rem no-repeat,
    var(--grad-dark);
}

/* Alerts: status lines become Material gradient alerts once they hold text. */
.message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--grad-danger);
  color: #fff;
  font-size: var(--font-size);
  line-height: 1.5;
}

.message:empty {
  display: none;
}

.message.success {
  background: var(--grad-success);
}

.message.pending {
  background: var(--grad-warning);
}

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

.panel-form,
.biz-card,
.branch-card,
.empty-state,
.branch-switcher,
.queue-pause-card,
.queue-card {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.panel-form {
  width: 100%;
  padding: 1.25rem 1.5rem 1.5rem;
}

.panel-form + .panel-form,
.branch-list + .panel-form,
.empty-state + .panel-form {
  margin-top: 1.5rem;
}

.panel-form-title {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.625;
}

.panel-form-context {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
  line-height: 1.5;
}

.empty {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  color: var(--text-dim);
  font-weight: 300;
  text-align: center;
}

.empty-state {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1.5rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
}

.empty-state p {
  max-width: 28rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
}

.empty-state .btn {
  margin-top: 0.5rem;
}

/* Badges */
.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-md);
  background: var(--grad-secondary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-active {
  background: var(--grad-success);
}

.pill-inactive {
  background: var(--grad-secondary);
}

/* Business list */
.biz-list {
  display: grid;
  gap: 1rem;
}

.biz-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

button.biz-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), var(--shadow-xl), 0 12px 24px -12px rgba(10, 15, 26, 0.25);
}

.biz-card h2,
.biz-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

.biz-card .meta {
  margin-top: 0.15rem;
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
}

.biz-card .meta strong {
  color: var(--text);
  font-weight: 600;
}

.biz-waiting {
  display: grid;
  place-items: center;
  min-width: 4.5rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-xl);
  background: var(--grad-dark);
  box-shadow: var(--shadow-dark);
  color: #fff;
  text-align: center;
}

.biz-waiting strong {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.biz-waiting span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- queue desk */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.metric-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 1rem 1rem;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-top: -1.5rem;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  background: var(--grad-dark);
  box-shadow: var(--shadow-dark);
  color: #fff;
}

.metric-icon .material-symbols-rounded {
  font-size: 1.5rem;
}

.metric-tone-primary .metric-icon {
  background: var(--grad-primary);
  box-shadow: var(--shadow-primary);
  color: var(--deep-navy);
}

.metric-tone-info .metric-icon {
  background: var(--grad-info);
  box-shadow: var(--shadow-info);
  color: var(--deep-navy);
}

.metric-copy {
  display: grid;
  min-width: 0;
  padding-top: 0.25rem;
  text-align: right;
}

.metric-label {
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
}

.metric-value {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.375;
}

.metric-foot {
  position: relative;
  margin-top: auto;
  padding: 0.85rem 1rem 1rem;
}

.metric-foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--divider);
  opacity: 0.6;
}

.metric-sub {
  color: var(--text-dim);
  font-size: var(--font-size);
  font-weight: 300;
}

.queue-pause-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.queue-pause-card {
  position: relative;
  overflow: hidden;
}

.queue-pause-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--grad-success);
}

.queue-pause-card.is-paused::before {
  background: var(--grad-danger);
}

.queue-pause-copy strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.queue-pause-copy span {
  display: block;
  margin-top: 0.15rem;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.5;
}

.queue-pause-card.is-paused .queue-pause-copy strong {
  color: var(--danger);
}

.queue-pause-card .btn {
  flex-shrink: 0;
}

.queue-list {
  display: grid;
  gap: 1rem;
}

.queue-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
}

.queue-card.now {
  background-image: linear-gradient(135deg, rgba(166, 230, 0, 0.12), rgba(166, 230, 0, 0) 45%);
  box-shadow: var(--shadow-card), 0 0 0 2px rgba(126, 176, 0, 0.55);
}

.queue-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.queue-pos {
  display: inline-flex;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-md);
  background: var(--grad-light);
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.queue-card.now .queue-pos {
  background: var(--grad-primary);
  color: var(--deep-navy);
}

.queue-card h2,
.queue-card h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.party-badge {
  display: inline-flex;
  margin-left: 0.35rem;
  padding: 0.25em 0.6em;
  border-radius: var(--radius-md);
  background: var(--grad-dark);
  color: var(--lime-flow);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}

.queue-card .phone {
  margin-top: 0.1rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.party-meta {
  margin-top: 0.25rem;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.queue-wait {
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  text-align: right;
}

.queue-wait strong {
  display: block;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}

.queue-actions {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.queue-actions .btn {
  min-height: 3.25rem;
  font-size: 0.875rem;
}

.queue-actions.has-edit {
  grid-template-columns: 1.6fr 1fr 1fr;
}

.queue-actions .btn .material-symbols-rounded,
.queue-toolbar .btn .material-symbols-rounded {
  margin-right: 0.35rem;
  font-size: 1.15rem;
}

.queue-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.source-badge {
  display: inline-flex;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-md);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.source-badge.walk-in {
  background: rgba(0, 209, 193, 0.14);
  color: var(--teal-ink);
}

.source-badge.app {
  background: rgba(10, 15, 26, 0.06);
  color: var(--navy-soft);
}

.queue-service {
  margin-top: 0.25rem;
  color: var(--lime-ink);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.queue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.queue-filter {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-card);
}

.queue-filter-btn {
  min-height: 2.5rem;
  padding: 0 1rem;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.queue-filter-btn[aria-pressed="true"] {
  background: var(--grad-dark);
  color: #fff;
}

.queue-filter-count {
  margin-left: 0.25rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.walkin-dialog {
  width: min(28rem, calc(100vw - 2rem));
  padding: 1.5rem;
  border: none;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-dialog);
  color: var(--text);
}

.walkin-dialog::backdrop {
  background: rgba(10, 15, 26, 0.45);
}

.walkin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.walkin-dialog-head h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.walkin-dialog-close {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.walkin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7rem;
  gap: 0.75rem;
}

.walkin-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .queue-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .queue-filter {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .queue-actions.has-edit {
    grid-template-columns: 1fr 1fr;
  }

  .queue-actions.has-edit .serve-btn {
    grid-column: 1 / -1;
  }
}

.queue-a11y {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 209, 193, 0.1);
}

.queue-a11y-title {
  display: block;
  color: var(--teal-ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.queue-a11y-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.queue-a11y-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  color: var(--text);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.queue-a11y-chip .a11y-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0;
  color: var(--teal-ink);
}

.queue-a11y-note {
  margin-top: 0.4rem;
  color: var(--text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* ------------------------------------------------------------- settings */

.profile-shell {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.profile-form {
  margin-top: 0;
}

.branch-switcher {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  padding: 1.25rem 1.5rem;
}

.branch-switcher-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.branch-switcher-label {
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.branch-switcher-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.branch-switcher-meta {
  color: var(--text-dim);
  font-weight: 300;
}

.branch-switcher-control {
  min-width: min(100%, 16rem);
  flex: 0 1 18rem;
}

.branch-switcher-control.is-single {
  opacity: 0.72;
}

.active-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
}

.active-row strong {
  display: block;
  font-size: var(--font-size);
  font-weight: 600;
}

.active-row .page-sub {
  margin-top: 0.15rem !important;
}

/* Material tabs */
.settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0 0 1.5rem;
  padding: 0.25rem;
  border-radius: var(--radius-xl);
  background: #eef0f3;
}

.settings-tab {
  appearance: none;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: var(--font-size);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.settings-tab:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.55);
}

.settings-tab.is-active {
  background: var(--panel);
  box-shadow: 0 1px 5px 1px rgba(10, 15, 26, 0.12);
  font-weight: 500;
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

.settings-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.settings-footer::before,
.branch-actions::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--divider);
  opacity: 0.6;
}

.settings-footer .btn {
  min-width: 11rem;
}

.settings-footer .message {
  flex: 1;
  margin-top: 0;
}

/* Material switch */
.switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.switch-track {
  display: block;
  width: 2.5rem;
  height: 1.25rem;
  padding: 0.125rem;
  border: 1px solid #dfe3e9;
  border-radius: 1.25rem;
  background: #e9ecef;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.switch-thumb {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(10, 15, 26, 0.35);
  transition: transform 0.25s ease;
}

.switch input:checked + .switch-track {
  border-color: var(--deep-navy);
  background: var(--grad-dark);
}

.switch input:checked + .switch-track .switch-thumb {
  transform: translateX(1.25rem);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--lime-ink);
  outline-offset: 2px;
}

/* Hours and accessibility */
.hours-editor {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hours-day-row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7rem) minmax(5.5rem, 6.5rem) minmax(6.5rem, 1fr) auto minmax(6.5rem, 1fr);
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hours-day-row.is-closed {
  opacity: 0.7;
}

.hours-day-label {
  font-weight: 600;
}

.hours-day-toggle {
  min-height: 2rem;
  padding: 0 0.85rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hours-day-toggle.is-open {
  border-color: transparent;
  background: var(--grad-dark);
  box-shadow: var(--btn-shadow-dark);
  color: #fff;
}

.hours-day-row input[type="time"] {
  width: 100%;
  height: 2.35rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--text);
  outline: none;
}

.hours-day-row input[type="time"]:focus {
  border-color: var(--lime-ink);
  box-shadow: inset 0 0 0 1px var(--lime-ink);
}

.hours-day-row input[type="time"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hours-sep {
  color: var(--text-dim);
  font-size: var(--font-size-sm);
}

.a11y-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.a11y-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.a11y-option:has(input:checked) {
  border-color: var(--deep-navy);
  background: var(--panel);
}

.a11y-option input {
  margin-top: 0.1rem;
}

.a11y-icon {
  display: inline-flex;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
  color: var(--teal-ink);
}

.a11y-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.a11y-copy {
  display: grid;
  gap: 0.15rem;
}

.a11y-copy strong {
  font-size: var(--font-size);
  font-weight: 600;
}

.a11y-copy small {
  color: var(--text-dim);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

/* ------------------------------------------------------------- branches */

.page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-toolbar-copy {
  flex: 1;
  min-width: 0;
}

.branch-count {
  display: inline-flex;
  margin-top: 0.5rem;
  padding: 0.4em 0.8em;
  border-radius: var(--radius-md);
  background: var(--grad-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.branch-list {
  display: grid;
  gap: 1rem;
}

.branch-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.branch-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.branch-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.branch-card-title h3 {
  font-size: 1rem;
  font-weight: 600;
}

.branch-card-title .pill {
  margin-top: 0;
}

.branch-meta {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.branch-meta-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.branch-meta-label {
  padding-top: 0.15rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.branch-meta-value {
  line-height: 1.45;
  word-break: break-word;
}

.branch-meta-value.is-muted {
  color: var(--text-dim);
  font-weight: 300;
}

.branch-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
}

.branch-actions .btn {
  height: var(--btn-h-sm);
  min-height: var(--btn-h-sm);
  padding: 0 1rem;
  font-size: 0.6875rem;
}

.desk-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

/* Dialog */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: end center;
  background: rgba(10, 15, 26, 0.5);
  backdrop-filter: blur(3px);
}

.sheet-overlay.hidden {
  display: none;
}

.sheet {
  width: min(100%, 32rem);
  max-height: min(92dvh, 44rem);
  overflow: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--panel);
  box-shadow: var(--shadow-dialog);
  animation: sheet-up 0.18s ease-out;
}

@keyframes sheet-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sheet-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
}

.sheet-close {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.sheet-close:hover {
  background: rgba(10, 15, 26, 0.06);
  color: var(--text);
}

.place-field > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.75rem;
}

.place-field > .btn .material-symbols-rounded {
  font-size: 1.15rem;
}

/* Leaflet panes use z-index up to 1000; isolate them so menus and sheets stay on top. */
.map-picker {
  position: relative;
  z-index: 0;
  isolation: isolate;
  height: 15rem;
  margin-top: 0.75rem;
  border: 1px solid var(--input-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.map-picker[hidden] {
  display: none;
}

.map-pin {
  background: none;
  border: 0;
}

.field-hint {
  margin: 0.4rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.onboarding-stack {
  width: min(100%, 30rem);
}

.onboarding-section {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.onboarding-card #onboard-back {
  margin-top: 0.75rem;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sheet-actions .btn {
  flex: 1 1 8rem;
}

/* Place autocomplete */
.place-field {
  position: relative;
}

.place-input-wrap {
  position: relative;
  display: block;
}

.place-input-wrap input {
  width: 100%;
  padding-right: 2.6rem;
}

.place-clear {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transform: translateY(-50%);
}

.place-clear:hover {
  background: rgba(10, 15, 26, 0.06);
  color: var(--text);
}

.place-clear.hidden {
  display: none;
}

.place-suggestions {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
}

.place-suggestions.hidden {
  display: none;
}

.place-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-size: var(--font-size);
  line-height: 1.4;
}

.place-option:hover,
.place-option:focus {
  background: #eef0f3;
  outline: none;
}

.place-option svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--text-dim);
}

.place-empty {
  padding: 0.75rem;
  color: var(--text-dim);
}

/* ------------------------------------------------------------- toasts */

.push-toast-root {
  position: fixed;
  z-index: 140;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.75rem;
  width: min(100% - 2rem, 24rem);
  pointer-events: none;
}

.push-toast {
  display: grid;
  grid-template-columns: 0.3rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0.85rem 1rem 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow-dialog);
  color: var(--text);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(0.6rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.push-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.push-toast.is-leaving {
  opacity: 0;
  transform: translateY(0.4rem);
}

.push-toast-accent {
  align-self: stretch;
  background: var(--grad-primary);
}

.push-toast-copy {
  min-width: 0;
}

.push-toast-title {
  display: block;
  font-size: var(--font-size);
  font-weight: 700;
}

.push-toast-body {
  margin-top: 0.2rem;
  color: var(--text-dim);
  font-size: var(--font-size);
  line-height: 1.45;
  white-space: pre-wrap;
}

.push-toast-close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.push-toast-close:hover {
  background: rgba(10, 15, 26, 0.06);
  color: var(--text);
}

.push-toast-queue_join .push-toast-accent,
.push-toast-vendor_activated .push-toast-accent,
.push-toast-vendor_push_ready .push-toast-accent {
  background: var(--grad-primary);
}

.push-toast-queue_leave .push-toast-accent,
.push-toast-vendor_trial .push-toast-accent {
  background: var(--grad-info);
}

/* ------------------------------------------------------------- responsive */

@media (min-width: 720px) {
  .sheet-overlay {
    place-items: center;
    padding: 1.5rem;
  }

  .sheet {
    border-radius: var(--radius-xl);
    max-height: min(88dvh, 42rem);
    animation-name: sheet-in;
  }

  @keyframes sheet-in {
    from {
      opacity: 0;
      transform: translateY(0.6rem) scale(0.98);
    }
  }

  .branch-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 960px) {
  .desk-split {
    grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.9fr);
  }

  .desk-split .panel-form {
    position: sticky;
    top: 7rem;
  }
}

@media (max-width: 1199px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    transform: translateX(calc(-100% - 2rem));
    transition: transform 0.25s ease;
  }

  .shell.sidebar-open .sidebar {
    transform: none;
  }

  .sidebar-close {
    display: inline-grid;
  }

  .sidebar-brand {
    gap: 0.45rem;
    padding: 1.5rem 2.5rem 0.25rem 1rem;
  }

  .sidebar-close {
    top: 0.5rem;
    right: 0.5rem;
  }

  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(10, 15, 26, 0.45);
  }

  .navbar-menu {
    display: inline-grid;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 0.75rem 0.75rem 0;
  }

  .navbar {
    top: 0.75rem;
    min-height: 4rem;
    padding: 0.5rem;
  }

  .navbar-heading {
    padding-left: 0.25rem;
  }

  .stats {
    gap: 0.6rem;
    padding-top: 0;
  }

  .stats .metric-card-top {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 0.4rem 0.75rem;
  }

  .stats .metric-icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-top: 0;
    border-radius: var(--radius-lg);
  }

  .stats .metric-icon .material-symbols-rounded {
    font-size: 1.15rem;
  }

  .stats .metric-copy {
    padding-top: 0;
    text-align: center;
  }

  .stats .metric-label {
    font-size: 0.75rem;
  }

  .stats .metric-foot {
    display: none;
  }

  .queue-pause-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .queue-pause-card .btn {
    width: 100%;
  }

  .queue-card,
  .biz-card,
  .branch-card,
  .panel-form,
  .branch-switcher {
    padding: 1.25rem;
  }

  .queue-actions {
    grid-template-columns: 1fr;
  }

  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .page-toolbar .btn {
    width: 100%;
  }

  .branch-meta-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .branch-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .branch-switcher {
    align-items: stretch;
  }

  .branch-switcher-control {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hours-day-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "label label toggle"
      "start sep end";
  }

  .hours-day-label { grid-area: label; }
  .hours-day-toggle { grid-area: toggle; justify-self: end; }
  .hours-start { grid-area: start; }
  .hours-sep { grid-area: sep; justify-self: center; }
  .hours-end { grid-area: end; }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .push-toast-root {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}

@media (max-width: 420px) {
  .settings-tabs {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------- sign in: split layout */
/* Brand panel on the left (a header band on phones), calm form on the right.
   Shared by the admin and vendor apps; keep the two copies in sync. */

.login-shell {
  display: block;
  place-items: initial;
  padding: 0;
  background: var(--bg);
}

.auth-aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.6rem 1.5rem 4.75rem;
  background:
    radial-gradient(circle at 80% 0%, rgba(166, 230, 0, 0.16), transparent 45%),
    linear-gradient(195deg, #1c2434, var(--deep-navy));
  color: #fff;
}

/* Same corner circles as the landing page and the Android apps. */
.auth-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  animation: auth-float 9s ease-in-out infinite;
}

.auth-orb-lime {
  top: -3.5rem;
  right: -2.75rem;
  width: 9.5rem;
  height: 9.5rem;
  background: var(--lime-flow);
}

.auth-orb-teal {
  bottom: 3.85rem;
  right: 1.75rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--ocean-teal);
  animation-delay: -3s;
}

.auth-orb-navy {
  bottom: -4rem;
  left: -3rem;
  width: 10rem;
  height: 10rem;
  background: var(--navy-soft);
  animation-delay: -6s;
}

.auth-logo {
  display: block;
  width: 12.5rem;
  max-width: 70%;
  height: auto;
}

.auth-pitch {
  max-width: 26rem;
  margin-top: 1.6rem;
}

.auth-kicker {
  color: var(--lime-flow);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-headline {
  margin-top: 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-sub {
  display: none;
  margin-top: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.6;
}

.queue-demo {
  display: none;
}

/* The form floats up over the bottom of the brand band on phones. */
.login-shell > :not(.auth-aside) {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 26rem);
  margin: -3.25rem auto 2rem;
}

.login-shell .login-stack {
  gap: 1rem;
}

.login-shell .onboarding-stack {
  width: min(calc(100% - 2rem), 32rem);
}

.login-shell .login-stack > .login-card {
  width: 100%;
}

.login-shell .login-stack > .login-card,
.login-shell > .login-card {
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid rgba(10, 15, 26, 0.04);
  border-radius: 1.25rem;
  background: var(--panel);
  box-shadow: 0 24px 48px -24px rgba(10, 15, 26, 0.28), 0 2px 6px rgba(10, 15, 26, 0.04);
  animation: auth-rise 0.55s ease both;
}

.login-shell .login-stack > .app-version {
  color: var(--text-dim);
}

.login-shell .auth-header {
  margin: 0 0 1.5rem;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  text-align: left;
}

.login-shell .auth-brand {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

/* The wordmark lives in the brand panel, so the card keeps only the role chip. */
.login-shell .auth-brand .brand {
  display: none;
}

.login-shell .auth-badge {
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(166, 230, 0, 0.16);
  color: var(--lime-ink);
  letter-spacing: 0.1em;
}

.login-shell .auth-badge::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lime-deep);
}

.login-shell .auth-title {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.login-shell .auth-lead {
  margin-top: 0.45rem;
  color: var(--text-dim);
}

.login-shell .auth-lead strong {
  color: var(--text);
  font-weight: 600;
}

.login-shell .auth-body {
  padding: 0;
}

.login-shell .auth-submit {
  height: 3rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.login-shell .login-card .app-version {
  margin-top: 1.5rem;
}

@media (min-width: 960px) {
  .login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100dvh;
  }

  .auth-aside {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding: 2.75rem clamp(2.5rem, 5vw, 4.5rem);
  }

  .auth-orb-lime {
    top: -5.5rem;
    right: -4.5rem;
    width: 15rem;
    height: 15rem;
  }

  .auth-orb-teal {
    top: 13.5rem;
    bottom: auto;
    right: 2.25rem;
    width: 3.6rem;
    height: 3.6rem;
  }

  .auth-orb-navy {
    bottom: -7rem;
    left: -6rem;
    width: 18rem;
    height: 18rem;
  }

  .auth-pitch {
    margin-top: auto;
  }

  .auth-headline {
    font-size: clamp(2.1rem, 3vw, 2.75rem);
    line-height: 1.12;
  }

  .auth-sub {
    display: block;
  }

  .queue-demo {
    display: block;
    width: min(100%, 23rem);
    margin: 2.25rem 0 auto;
    padding: 1rem 1rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
  }

  .auth-logo {
    width: 16rem;
  }

  .login-shell > :not(.auth-aside) {
    align-self: center;
    margin: 0 auto;
    padding: 3rem 0;
  }

  .login-shell .login-stack > .login-card,
  .login-shell > .login-card {
    padding: 2.5rem 2.25rem 2rem;
  }

  .login-shell > .login-card {
    padding-top: 2.5rem;
    margin: 3rem auto;
  }

  .login-shell .auth-title {
    font-size: 2rem;
  }
}

/* Live queue vignette in the brand panel. */
.queue-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 500;
}

.queue-demo-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.queue-demo-live::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--lime-flow);
  box-shadow: 0 0 0 0 rgba(166, 230, 0, 0.6);
  animation: auth-pulse 2s ease-out infinite;
}

.queue-demo-count strong {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.queue-demo-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
  overflow: hidden;
}

.queue-demo-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.queue-demo-list li.is-now {
  background: var(--lime-flow);
  color: var(--deep-navy);
}

.queue-demo-ticket {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.queue-demo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-demo-state {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.queue-demo-list li.is-now .queue-demo-state {
  color: var(--deep-navy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.queue-demo-list.is-advancing li {
  animation: queue-advance 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.queue-demo-list.is-feeding li {
  animation: queue-feed 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.queue-demo-list.is-advancing li.is-now,
.queue-demo-list.is-feeding li.is-now {
  animation-name: queue-advance, queue-glow;
  animation-duration: 0.6s, 1.2s;
}

.queue-demo-list.is-feeding li.is-now {
  animation-name: queue-feed, queue-glow;
}

@keyframes auth-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes auth-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(0, -10px);
  }
}

@keyframes auth-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 230, 0, 0.55);
  }
  100% {
    box-shadow: 0 0 0 0.55rem rgba(166, 230, 0, 0);
  }
}

@keyframes queue-advance {
  from {
    transform: translateY(3.15rem);
  }
  to {
    transform: none;
  }
}

@keyframes queue-feed {
  from {
    transform: translateY(-3.15rem);
    opacity: 0.4;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes queue-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(166, 230, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 0 0.6rem rgba(166, 230, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-orb,
  .queue-demo-live::before,
  .queue-demo-list li,
  .login-shell .login-stack > .login-card,
  .login-shell > .login-card {
    animation: none !important;
  }
}
