:root {
  --bg: #0b1020;
  --bg-elev: #11182b;
  --bg-elev-2: #182235;
  --line: #23304a;
  --line-soft: #1a2438;
  --text: #eef3ff;
  --muted: #9eb0d1;
  --primary: #4f7cff;
  --primary-2: #6d93ff;
  --success: #1f9d6a;
  --danger: #d94a5c;
  --warning: #d2a53b;
  --sidebar-w: 248px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(44, 196, 255, 0.09), transparent 24%),
    linear-gradient(180deg, #050810 0%, #0a1020 45%, #0d1426 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  appearance: none;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  transition: grid-template-columns 180ms ease;
  background:
    radial-gradient(circle at top right, rgba(54, 179, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #060a12 0%, #0c1322 100%);
}

.sidebar {
  border-right: 1px solid var(--line-soft);
  padding: 24px 18px;
  background: rgba(3, 8, 20, 0.92);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 25;
}

.app-shell.nav-closed {
  grid-template-columns: 0 1fr;
}

.app-shell.nav-closed .sidebar {
  transform: translateX(-110%);
  pointer-events: none;
  opacity: 0;
}

.app-shell.nav-open .sidebar {
  transform: translateX(0);
  opacity: 1;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(3, 8, 20, 0.48);
  z-index: 24;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.sidebar-logo-mark,
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow);
}

.brand-mark.lg {
  width: 56px;
  height: 56px;
  font-size: 20px;
  border-radius: 18px;
}

.sidebar-logo-title,
.brand-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.sidebar-logo-subtitle,
.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  padding: 11px 13px;
  border-radius: 12px;
  color: var(--muted);
  transition: 160ms ease;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-link.active {
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.2), rgba(79, 124, 255, 0.12));
  border: 1px solid rgba(79, 124, 255, 0.28);
  color: white;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 82px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px;
  background: rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.viewer-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.viewer-name {
  font-weight: 600;
}

.viewer-role {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-wrap {
  padding: 28px;
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 34px;
  line-height: 1.05;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.stats-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card,
.panel,
.table-card,
.pricing-card,
.flow-step-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 34, 53, 0.9), rgba(15, 23, 38, 0.9));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
}

.panel,
.table-card,
.pricing-card {
  padding: 18px;
}

.panel-lg {
  min-width: 0;
}

.panel-title,
.subheading {
  font-weight: 700;
  margin-bottom: 14px;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
}

.list-stack,
.template-stack,
.flow-step-stack,
.detail-stack,
.usage-stack,
.status-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-card {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
}

.list-card.active,
.list-card:hover {
  border-color: rgba(79, 124, 255, 0.45);
  background: rgba(79, 124, 255, 0.08);
}

.list-card-title {
  font-weight: 600;
}

.list-card-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea,
.table-search {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e1526;
  color: white;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.table-search:focus {
  border-color: rgba(79, 124, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.15);
}

.field-full {
  grid-column: 1 / -1;
}

.meta-bar,
.action-row,
.pricing-top,
.usage-row,
.flow-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.action-row {
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: 160ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-secondary {
  background: #111827;
  color: white;
  border-color: var(--line);
}

.btn-secondary:hover:not(:disabled) {
  background: #162033;
}

.btn-danger {
  background: rgba(217, 74, 92, 0.13);
  color: #ff9baa;
  border-color: rgba(217, 74, 92, 0.22);
}

.btn-block {
  width: 100%;
}

.btn-xs {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.pill {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}

.pill-basic {
  background: rgba(210, 165, 59, 0.14);
  color: #f3c96a;
}

.pill-pro {
  background: rgba(79, 124, 255, 0.16);
  color: #9ab4ff;
}

.pill-enterprise {
  background: rgba(31, 157, 106, 0.14);
  color: #7fe1b2;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
}

.pricing-plan {
  color: var(--muted);
  font-size: 13px;
  text-transform: capitalize;
}

.pricing-card-active {
  border: 1px solid rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.table-card {
  overflow: hidden;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}

.detail-item {
  font-size: 14px;
  color: #dce6ff;
}

.empty-box,
.error-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.error-box {
  border-style: solid;
  border-color: rgba(217, 74, 92, 0.24);
  color: #ffafbb;
  background: rgba(217, 74, 92, 0.08);
}

.flow-step-index {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.18), transparent 30%),
    linear-gradient(180deg, #09101f 0%, #0c1324 100%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(12, 18, 30, 0.96));
  box-shadow: var(--shadow);
}

.login-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 24px;
}

.login-header h1,
.login-header p {
  margin: 0;
}

.login-header p {
  color: var(--muted);
}

.login-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.toggle-btn {
  border: 1px solid var(--line);
  background: #111827;
  color: var(--muted);
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
}

.toggle-btn.active {
  color: white;
  border-color: rgba(79, 124, 255, 0.45);
  background: rgba(79, 124, 255, 0.1);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-center {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: white;
}

.onboarding-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #0a1020 0%, #0d1426 100%);
}

.onboarding-card {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.96), rgba(12, 18, 30, 0.96));
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.onboarding-header {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 10px;
}

.onboarding-header h1 {
  margin: 0;
  font-size: 26px;
}

.onboarding-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.onboarding-bullets {
  display: grid;
  gap: 10px;
  margin: 10px 0 14px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.95;
}

.onboarding-bullets div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.billing-banner {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-usage {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}

.upgrade-banner {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 165, 0, 0.15);
  border-radius: 8px;
}

.plan-warning {
  color: orange;
  font-size: 14px;
}

.plan-highlight {
  color: #6366f1;
  font-weight: bold;
}

@media (max-width: 980px) {
  .app-shell,
  .app-shell.nav-closed,
  .app-shell.nav-open {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .page-wrap {
    padding: 18px;
  }

  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    min-height: auto;
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .topbar-right {
    justify-content: flex-end;
  }

  .onboarding-card {
    max-width: 460px;
    width: 100%;
  }
}


.menu-btn {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.check-row input {
  width: auto;
}

.success-box {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 157, 106, 0.26);
  color: #baf1d8;
  background: rgba(31, 157, 106, 0.12);
}

.rule-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 14px;
}

@media (max-width: 980px) {
  .sidebar {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    width: 290px;
    min-height: 100vh;
    z-index: 30;
  }

  .sidebar.mobile-open {
    display: block;
  }

  .topbar-right {
    margin-left: auto;
  }

  .brand-logo-img-topbar {
    width: 52px;
    height: 52px;
  }
}


.topbar-left {
  display: flex;
  align-items: center;
  min-width: 52px;
}

.topbar-right-fixed {
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.brand-logo-img {
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(48, 187, 255, 0.12));
}

.brand-logo-img-sm {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.brand-logo-img-lg {
  width: 144px;
  height: 144px;
  border-radius: 32px;
}

.logo-float {
  animation: logoFloat 5.5s ease-in-out infinite;
}

.fade-in {
  animation: fadeInUp 420ms ease;
}

.viewer-chip-animated {
  box-shadow: 0 0 0 1px rgba(58, 176, 255, 0.08), 0 10px 25px rgba(0, 0, 0, 0.22);
}

.mode-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mode-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  color: var(--text);
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mode-card:hover {
  transform: translateY(-1px);
  border-color: rgba(80, 186, 255, 0.4);
}

.mode-card.active {
  border-color: rgba(80, 186, 255, 0.55);
  background: linear-gradient(180deg, rgba(25, 113, 230, 0.2), rgba(38, 181, 255, 0.08));
}

.screening-toggle {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
}

.screening-toggle.active {
  border-color: rgba(80, 186, 255, 0.55);
  background: linear-gradient(180deg, rgba(25, 113, 230, 0.2), rgba(38, 181, 255, 0.08));
}

.screening-toggle-track {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #182235;
  border: 1px solid var(--line);
  position: relative;
  flex: 0 0 auto;
}

.screening-toggle.active .screening-toggle-track {
  background: linear-gradient(135deg, #1c74f0, #3bc7ff);
}

.screening-toggle-knob {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: white;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 160ms ease;
}

.screening-toggle.active .screening-toggle-knob {
  transform: translateX(23px);
}

.enterprise-form .action-row-end,
.action-row-end {
  justify-content: flex-end;
}

.btn-lg {
  padding: 13px 20px;
  border-radius: 14px;
}

.inset-panel {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.05);
}

.inline-plan-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.plan-chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  text-transform: capitalize;
}

.plan-chip.active {
  border-color: rgba(80, 186, 255, 0.55);
  background: linear-gradient(135deg, rgba(25, 113, 230, 0.28), rgba(38, 181, 255, 0.12));
}

.plan-chip.confirm {
  border-color: rgba(210, 165, 59, 0.5);
  background: rgba(210, 165, 59, 0.12);
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--line-soft);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(255,255,255,0.04);
  padding: 4px 8px;
  border-radius: 8px;
  color: #c7f3ff;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .mode-card-row {
    grid-template-columns: 1fr;
  }

  .topbar-right-fixed {
    gap: 8px;
  }

  .viewer-chip {
    max-width: 52vw;
    overflow: hidden;
  }

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


.topbar-brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topbar-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sidebar-logo-large {
  position: relative;
  padding-right: 40px;
}

.sidebar-close-btn {
  position: absolute;
  top: 4px;
  right: 0;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-radius: 10px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.brand-logo-img-sidebar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.brand-logo-img-topbar {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}


.login-card {
  max-width: 500px;
}

.login-header {
  gap: 14px;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 34px;
}

.login-header p {
  font-size: 15px;
}


.flow-builder-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.flow-builder-sidebar {
  position: sticky;
  top: 96px;
}

.language-toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.flow-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.flow-step-card.active {
  border-color: rgba(80, 186, 255, 0.4);
}

.flow-step-form-grid {
  margin-top: 14px;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.hours-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}

.hours-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.hours-row input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0e1526;
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
}

.helper-inline {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}


@media (max-width: 960px) {
  .flow-builder-layout {
    grid-template-columns: 1fr;
  }

  .flow-builder-sidebar {
    position: static;
  }

  .sidebar-overlay {
    display: block;
  }

  .topbar-brand-logo-wrap .brand-subtitle {
    display: none;
  }

  .brand-logo-img-lg {
    width: 120px;
    height: 120px;
  }
}


.table-actions { text-align: right; white-space: nowrap; }
.brand-logo-img-login { width: 188px; height: 188px; }
.brand-logo-img-topbar { width: 84px; height: 84px; border-radius: 18px; }
.brand-logo-img-sidebar { width: 84px; height: 84px; border-radius: 18px; }
.topbar-brand-logo-wrap { gap: 10px; }
.topbar-brand-logo-wrap .brand-title, .sidebar-logo-large .brand-title { font-size: 1.5rem; }
.login-card { max-width: 520px; }
.login-header { gap: 8px; margin-bottom: 32px; }
.topbar { padding: 10px 24px; }
.template-folder-toggle { width: 100%; margin-top: 16px; padding: 0; }
.flow-step-header, .meta-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
@media (max-width: 960px) { .brand-logo-img-login { width: 164px; height: 164px; } .brand-logo-img-topbar { width: 68px; height: 68px; } .brand-logo-img-sidebar { width: 68px; height: 68px; } }

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.viewer-chip {
  min-height: 48px;
}

.viewer-chip-content {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.viewer-name,
.viewer-role {
  display: flex;
  align-items: center;
  min-height: 20px;
}

.brand-logo-img-login {
  width: 236px;
  height: 236px;
}

.brand-logo-img-topbar {
  width: 104px;
  height: 104px;
  border-radius: 22px;
}

.brand-logo-img-sidebar {
  width: 108px;
  height: 108px;
  border-radius: 24px;
}

.topbar-brand-logo-wrap {
  gap: 8px;
}

.topbar-brand-logo-wrap .brand-title,
.sidebar-logo-large .brand-title {
  font-size: 1.65rem;
}

.sidebar-logo-large {
  gap: 10px;
}

.login-header {
  gap: 4px;
}

.login-header p {
  max-width: 280px;
}

.hours-grid-fixed {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compact-hours-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.compact-hours-row input {
  min-width: 0;
}

.day-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.day-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.day-pill.active {
  color: white;
  border-color: rgba(80, 186, 255, 0.55);
  background: linear-gradient(135deg, rgba(25, 113, 230, 0.28), rgba(38, 181, 255, 0.12));
}

@media (max-width: 960px) {
  .brand-logo-img-login {
    width: 188px;
    height: 188px;
  }

  .brand-logo-img-topbar {
    width: 80px;
    height: 80px;
  }

  .brand-logo-img-sidebar {
    width: 80px;
    height: 80px;
  }

  .viewer-chip-content {
    gap: 8px;
  }
}

/* v12 polish overrides */
.sidebar-logo-compact {
  justify-content: center;
  margin-bottom: 18px;
}

.sidebar-logo-compact .brand-logo-img-sidebar {
  width: 92px;
  height: 92px;
  border-radius: 20px;
}

.topbar {
  padding: 10px 20px;
}

.topbar-brand-lockup {
  gap: 12px;
}

.topbar-brand-logo-wrap {
  gap: 6px;
}

.brand-title-wrap {
  gap: 0;
}

.brand-logo-img-login,
.brand-logo-img-topbar,
.brand-logo-img-sidebar {
  object-fit: cover;
  object-position: center;
}

.brand-logo-img-login {
  width: 228px !important;
  height: 228px !important;
  border-radius: 28px;
}

.brand-logo-img-topbar {
  width: 92px !important;
  height: 92px !important;
  border-radius: 20px;
}

.brand-logo-img-sidebar {
  width: 92px !important;
  height: 92px !important;
  border-radius: 20px;
}

.login-card {
  max-width: 540px;
}

.login-header {
  gap: 6px;
  margin-bottom: 24px;
}

.viewer-chip {
  padding: 10px 16px;
  min-height: 48px;
}

.viewer-chip-content {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 10px;
}

.viewer-name,
.viewer-role {
  min-height: 18px;
  line-height: 1;
  align-self: center;
}

.hours-grid-polished {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.hours-grid-polished .hours-card {
  min-width: 0;
}

.hours-grid-polished .hours-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.hours-grid-polished input[type="time"] {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1180px) {
  .hours-grid-polished {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .hours-grid-polished {
    grid-template-columns: 1fr;
  }

  .brand-logo-img-login {
    width: 196px !important;
    height: 196px !important;
  }

  .brand-logo-img-topbar,
  .brand-logo-img-sidebar {
    width: 72px !important;
    height: 72px !important;
  }
}


/* v13 fixes */
.menu-btn-persistent {
  position: relative;
  z-index: 8;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  line-height: 1;
}

.topbar-left,
.topbar-brand-lockup {
  min-width: 0;
}

.hours-grid-balanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hours-grid-balanced .hours-card {
  min-width: 0;
  padding: 16px;
}

.hours-grid-balanced .hours-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
}

.hours-grid-balanced input[type="time"] {
  width: 100%;
  min-width: 0;
}

@media (min-width: 1320px) {
  .hours-grid-balanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hours-grid-balanced {
    grid-template-columns: 1fr;
  }
}
