/* Application Golden Creme Theme — ART Admin */
:root {
  --color-canvas: #fbf8f2;
  --bg-gradient: radial-gradient(circle at 85% 15%, #fde792 0%, #fff3d1 35%, #fbf8f2 70%);
  --color-surface: #ffffff;
  --color-surface-secondary: #f5efe6;
  --color-surface-secondary-border: #eae2d5;
  --color-action-gold: #8a7016;
  --gold-border: #dfb758;
  --gold-hover: #c99a2c;
  --gold-shell: #e8c77a;
  --color-accent-marigold: #fdc841;
  --color-danger: #d94f4f;
  --color-warning: #c98a1c;
  --color-success-bg: #e8f8ea;
  --color-success-text: #15803d;
  --color-success-dot: #22c55e;
  --radius-card: 32px;
  --radius-row: 20px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --shadow-card: 0 20px 45px -12px rgba(185, 160, 120, 0.16), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-card-tight: 0 10px 30px -8px rgba(185, 160, 120, 0.12);
  --shadow-tactile: 0 1px 1px rgba(255, 255, 255, 0.95) inset, 0 -6px 11px rgba(193, 168, 118, 0.15) inset,
    0 1px 3px rgba(120, 100, 60, 0.08), 0 8px 16px rgba(150, 125, 75, 0.2), 0 18px 30px rgba(150, 125, 75, 0.1);
  --bar-gradient: linear-gradient(90deg, #cfc9c2 0%, #ded9d1 16%, #e9e5de 28%, #faecd0 38%, #fddf7a 72%, #fde792 100%);
  --text: #1c1917;

  --ui-k: 1;
  --u: calc(1px * var(--ui-k));
  --font-sans: var(--font-jakarta), system-ui, sans-serif;
  --font-display: var(--font-outfit), system-ui, sans-serif;
  --font-inter: var(--font-inter-face), system-ui, sans-serif;
  --font-fraunces: var(--font-fraunces-face), Georgia, serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: light !important;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: calc(12 * var(--u));
  background: var(--bg-gradient) fixed, var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }

/* 80% density: drawn at 80% on screens >= 900px, still filling the window */
.density-root { width: 100vw; height: 100dvh; }
@media (min-width: 900px) {
  .density-root {
    zoom: 0.8;
    --ui-k: 1.25;
    width: calc(100vw / 0.8);
    height: calc(100dvh / 0.8);
  }
}

/* ---------- Buttons ---------- */
.btn-pill, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(6 * var(--u));
  width: auto !important;
  width: fit-content !important;
  max-width: max-content;
  min-height: calc(34 * var(--u));
  padding: calc(7 * var(--u)) calc(18 * var(--u));
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold-border);
  font: 700 calc(12 * var(--u)) / 1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.btn-secondary, .btn-pill {
  background: linear-gradient(176deg, #ffffff 0%, #fdfaf3 55%, #f6f0e3 100%);
  color: var(--color-action-gold);
  box-shadow: var(--shadow-tactile);
}
.btn-secondary:hover, .btn-pill:hover { border-color: var(--gold-hover); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #edd07e 0%, #dfb758 45%, #c99a2c 100%);
  border-color: #b8861e;
  color: #261b05;
  font-weight: 800;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.75) inset, 0 -2px 4px rgba(138, 112, 22, 0.3) inset,
    0 1px 3px rgba(120, 100, 60, 0.15), 0 6px 14px rgba(201, 154, 44, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); }
button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-row { display: flex; align-items: center; gap: calc(8 * var(--u)); }

/* ---------- Cards ---------- */
.card-shell {
  background: var(--color-surface);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: calc(24 * var(--u));
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: calc(16 * var(--u));
}
/* List/form pages: the card is as wide as its content, never wider than the screen */
.scroll-region > .card-shell { width: fit-content; min-width: min(100%, calc(560 * var(--u))); max-width: 100%; }

/* StatCard — RULES 6.6 */
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-row);
  box-shadow: 0 4px 14px rgba(138, 112, 22, 0.08);
  border: 1.5px solid var(--gold-border);
  padding: calc(18 * var(--u)) calc(20 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--u));
}
.stat-card.attention { border: 2px solid var(--color-accent-marigold); }
.stat-label {
  font-size: calc(11.5 * var(--u));
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-action-gold);
}
.stat-value {
  font-size: calc(26 * var(--u));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0f172a;
}
/* Bounded card tracks: a lone card keeps its width instead of spanning the row */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(220 * var(--u)), calc(260 * var(--u))));
  justify-content: start;
  gap: calc(16 * var(--u));
}

.page-title {
  margin: 0 0 calc(16 * var(--u));
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
}

/* ---------- App shell ---------- */
.app-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  overflow: hidden;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bar-gradient);
  padding: calc(8 * var(--u)) calc(20 * var(--u));
}
.app-header { border-bottom: 1.5px solid var(--gold-border); box-shadow: 0 2px 10px rgba(223, 183, 88, 0.3); }
.app-footer {
  border-top: 1.5px solid var(--gold-border);
  font-size: calc(12 * var(--u));
  color: var(--color-action-gold);
}
.brand { display: flex; align-items: center; gap: calc(10 * var(--u)); font-weight: 700; color: #765f12; font-size: calc(15 * var(--u)); }
.logo-badge {
  width: calc(38 * var(--u));
  height: calc(38 * var(--u));
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid var(--gold-border);
  border-radius: calc(10 * var(--u));
  font-family: var(--font-display);
  font-weight: 800;
  color: #765f12;
  font-size: calc(13 * var(--u));
}

.app-body { display: flex; min-height: 0; }
.nav-rail {
  width: clamp(calc(220 * var(--u)), 18vw, calc(270 * var(--u)));
  flex-shrink: 0;
  background: linear-gradient(180deg, #cfc9c2, #dbd6ce, #e8e4dc);
  border-right: 1.5px solid var(--gold-border);
  padding: calc(12 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  overflow-y: auto;
}
.nav-rail.collapsed { width: calc(66 * var(--u)); align-items: center; }
.nav-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: calc(4 * var(--u)); }
.nav-label { font-size: calc(11 * var(--u)); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-action-gold); font-weight: 700; }
.nav-collapse {
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  border-radius: 50%;
  border: 1.5px solid var(--gold-border);
  background: #fff;
  color: #765f12;
  cursor: pointer;
  font-weight: 700;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(9 * var(--u)) calc(14 * var(--u));
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-size: calc(0.88 * 16 * var(--u));
  font-weight: 600;
  color: #765f12;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.75); border-color: var(--gold-border); }
.nav-link.active {
  background: linear-gradient(176deg, #fffdf6, #f8eed4);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-tactile);
}
.nav-icon { width: calc(20 * var(--u)); text-align: center; flex-shrink: 0; }
.nav-rail.collapsed .nav-link {
  width: calc(44 * var(--u));
  height: calc(44 * var(--u));
  padding: 0;
  justify-content: center;
  border-radius: 50%;
}
.nav-rail.collapsed .nav-text, .nav-rail.collapsed .nav-label { display: none; }
.nav-rail.collapsed .nav-top { justify-content: center; }

.scroll-region { flex: 1; min-height: 0; overflow-y: auto; padding: calc(12 * var(--u)); }

/* ---------- Sign-in ---------- */
.signin {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  background: #fbf7ef;
  font-family: var(--font-inter);
}
.signin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u));
  background: #f3ecdd;
  padding: calc(8 * var(--u)) calc(32 * var(--u));
}
.signin-bar.top { border-bottom: 1px solid #e4dcc9; }
.signin-bar.foot { border-top: 1px solid #e4dcc9; padding: calc(12 * var(--u)) calc(32 * var(--u)); font-size: calc(12 * var(--u)); color: #6b5d3f; }
.signin-brand { font-family: var(--font-fraunces); font-size: calc(18 * var(--u)); font-weight: 700; display: flex; align-items: center; gap: calc(10 * var(--u)); }
.signin-tagline { font-size: calc(13 * var(--u)); color: #6b5d3f; }
.signin-links { display: flex; gap: calc(20 * var(--u)); font-size: calc(13 * var(--u)); font-weight: 600; color: #765f12; }
.signin-main { display: grid; grid-template-columns: 58fr 42fr; min-height: 0; }
.showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(20 * var(--u));
  background-image: radial-gradient(rgba(138, 112, 22, 0.12) 1px, transparent 1px);
  background-size: calc(22 * var(--u)) calc(22 * var(--u));
  overflow: hidden;
  padding: calc(24 * var(--u));
  text-align: center;
}
.scene { position: relative; width: calc(220 * var(--u)); height: calc(220 * var(--u)); display: grid; place-items: center; }
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #e3a542;
  opacity: 0;
  animation: pulse 3s ease-out infinite;
}
.ring:nth-child(2) { animation-delay: 1s; }
.ring:nth-child(3) { animation-delay: 2s; }
.core {
  width: calc(90 * var(--u));
  height: calc(90 * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fde792, #e3a542 70%, #c4832a);
  box-shadow: 0 10px 24px rgba(196, 131, 42, 0.4);
}
@keyframes pulse {
  0% { transform: scale(0.45); opacity: 0.7; }
  100% { transform: scale(1); opacity: 0; }
}
.caption h2 { font-family: var(--font-fraunces); font-size: calc(26 * var(--u)); margin: 0 0 calc(8 * var(--u)); }
.caption p { margin: 0; font-size: calc(15 * var(--u)); color: #6b5d3f; }
.dashes { display: flex; gap: calc(6 * var(--u)); }
.dashes span { width: calc(22 * var(--u)); height: calc(3 * var(--u)); border-radius: 2px; background: #e4dcc9; }
.dashes span.on { background: #e3a542; }
.signin-panel { display: grid; place-items: center; padding: calc(24 * var(--u)); }
.signin-card {
  width: 100%;
  max-width: calc(400 * var(--u));
  background: #fff;
  border-radius: calc(20 * var(--u));
  padding: calc(32 * var(--u));
  box-shadow: 0 2px 4px rgba(60, 40, 10, 0.05), 0 10px 20px rgba(60, 40, 10, 0.06), 0 30px 60px rgba(60, 40, 10, 0.08);
}
.signin-card h1 { font-family: var(--font-fraunces); font-size: calc(26 * var(--u)); margin: 0 0 calc(6 * var(--u)); }
.signin-card p { margin: 0 0 calc(22 * var(--u)); font-size: calc(14 * var(--u)); color: #6b5d3f; }
.btn-signin {
  display: block;
  width: 100%;
  padding: calc(12 * var(--u));
  border: 0;
  border-radius: calc(9 * var(--u));
  background: linear-gradient(180deg, #eab055, #c4832a);
  color: #231a0c;
  font: 600 calc(14 * var(--u)) var(--font-inter);
  box-shadow: 0 10px 22px rgba(196, 131, 42, 0.35);
  cursor: pointer;
}
.signin-or { display: flex; align-items: center; gap: calc(12 * var(--u)); margin: calc(16 * var(--u)) 0; font-size: calc(12 * var(--u)); color: #6b5d3f; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: #e4dcc9; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(10 * var(--u));
  width: 100%;
  padding: calc(11 * var(--u));
  border: 1.5px solid var(--gold-border);
  border-radius: calc(9 * var(--u));
  background: #fffdf8;
  color: #231a0c;
  font: 600 calc(14 * var(--u)) var(--font-inter);
  text-decoration: none;
  cursor: pointer;
}
.btn-google:hover { border-color: var(--gold-hover); }
.signin-alt { margin-top: calc(16 * var(--u)); text-align: center; font-size: calc(13 * var(--u)); color: #6b5d3f; }
.signin-alt a { color: #c4832a; font-weight: 700; }

/* ---------- Form controls ---------- */
.form-label { display: block; margin: calc(12 * var(--u)) 0 calc(4 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; }
.form-input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: calc(0.45 * 16 * var(--u)) calc(16 * var(--u));
  font: 400 calc(12 * var(--u)) / 1.4 var(--font-sans);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-row);
  background: #fffdf8;
  box-shadow: inset 0 2px 4px rgba(138, 112, 22, 0.08);
  margin-bottom: calc(4 * var(--u));
}
.form-input:focus { outline: none; border-color: var(--gold-border); box-shadow: 0 0 0 3px rgba(223, 183, 88, 0.25); }
.form-error { color: var(--color-danger); font-size: calc(12 * var(--u)); font-weight: 600; margin: calc(6 * var(--u)) 0; }
.signin-card .btn-signin { margin-top: calc(16 * var(--u)); }
.btn-signin:disabled { opacity: 0.6; cursor: not-allowed; }

.form-select {
  display: block;
  width: 100%;
  max-width: 100%;
  appearance: none;
  padding: calc(0.45 * 16 * var(--u)) calc(36 * var(--u)) calc(0.45 * 16 * var(--u)) calc(16 * var(--u));
  font: 400 calc(12 * var(--u)) / 1.4 var(--font-sans);
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-row);
  background: #fffdf8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a7016' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right calc(14 * var(--u)) center;
  box-shadow: inset 0 2px 4px rgba(138, 112, 22, 0.08);
  margin-bottom: calc(4 * var(--u));
}
.form-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(223, 183, 88, 0.25); }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }

.toggle-switch {
  position: relative;
  width: calc(56 * var(--u));
  height: calc(26 * var(--u));
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold-border);
  background: var(--color-surface-secondary);
  cursor: pointer;
  transition: background 0.15s ease;
}
.toggle-switch[aria-checked="true"] { background: linear-gradient(180deg, #edd07e 0%, #dfb758 100%); border-color: #b8861e; }
.toggle-knob {
  position: absolute;
  top: calc(2 * var(--u));
  left: calc(2 * var(--u));
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(120, 100, 60, 0.35);
  transition: transform 0.15s ease;
}
.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(calc(30 * var(--u))); }

/* ---------- List search box above a DataTable ---------- */
.data-table .filter-row th { padding: calc(6 * var(--u)) calc(8 * var(--u)); background: var(--color-surface-secondary); text-transform: none; letter-spacing: normal; }
.col-filter {
  width: 100%;
  min-width: calc(84 * var(--u));
  padding: calc(6 * var(--u)) calc(10 * var(--u));
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-row);
  background: #fffdf8;
  font: 500 calc(12 * var(--u)) / 1.3 var(--font-sans);
  color: var(--color-text-primary);
  outline: none;
}
.col-filter:hover { background: #fff9e9; border-color: #c99a2c; }
.col-filter:focus { border-color: #c99a2c; box-shadow: 0 0 0 3px rgba(223, 183, 88, 0.25); }
.data-table tbody tr[hidden] { display: none; }
.data-table.static tbody tr { cursor: default; }
.data-table.static tbody tr:hover { background: transparent; }
.data-table tbody tr[data-no-match] { cursor: default; }
.data-table tbody tr[data-no-match]:hover { background: transparent; }

/* ---------- DataTable ---------- */
.data-table-wrap { margin-top: calc(16 * var(--u)); overflow-x: auto; border: 1.5px solid var(--gold-border); border-radius: var(--radius-row); width: fit-content; max-width: 100%; }
.data-table { width: auto; border-collapse: collapse; font-size: calc(12 * var(--u)); }
.data-table th, .data-table td { white-space: nowrap; }
.data-table th {
  text-align: left;
  padding: calc(10 * var(--u)) calc(14 * var(--u));
  background: var(--color-surface-secondary);
  color: var(--color-action-gold);
  font-size: calc(11 * var(--u));
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--gold-border);
}
.data-table td { padding: calc(10 * var(--u)) calc(14 * var(--u)); border-bottom: 1px solid var(--color-surface-secondary-border); }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: #fffaf0; }
.data-table tbody tr.selected { background: #fdf0c8; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.save-feedback { font-size: calc(12 * var(--u)); font-weight: 600; min-height: calc(16 * var(--u)); }
.save-feedback.saving { color: var(--color-action-gold); }
.save-feedback.saved { color: var(--color-success-text); }
.action-bar-group { display: inline-flex; flex-direction: column; align-items: flex-end; gap: calc(4 * var(--u)); }
.form-panel { margin-top: calc(16 * var(--u)); max-width: calc(420 * var(--u)); }

/* Small helper text under a form field */
.form-note { margin: calc(2 * var(--u)) 0 0; font-size: calc(11 * var(--u)); color: #6b5d3f; }

/* Segmented tabs (theme: multi-section forms) and two-column form grid */
.form-panel.wide { max-width: calc(760 * var(--u)); }

/* Forms: title on the left, Save/Cancel pinned to the right end of the card; fields keep their own width */
.form-panel.rl-form { max-width: none; --field-max: calc(420 * var(--u)); }
.form-panel.rl-form.wide { --field-max: calc(760 * var(--u)); }
.rl-form > h2 { float: left; }
.rl-form > .btn-row { float: right; margin: 0 0 calc(8 * var(--u)) !important; }
.rl-form > :not(h2):not(.btn-row) { clear: both; max-width: var(--field-max); }
@media (max-width: 639px) {
  .rl-form > h2, .rl-form > .btn-row { float: none; }
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(20 * var(--u)); }
.seg-track {
  display: inline-flex;
  gap: calc(4 * var(--u));
  padding: calc(4 * var(--u));
  margin: calc(8 * var(--u)) 0 calc(12 * var(--u));
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-secondary);
  flex-wrap: wrap;
}
.seg-tab {
  padding: calc(6 * var(--u)) calc(16 * var(--u));
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-action-gold);
  font: 700 calc(12 * var(--u)) / 1 var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}
.seg-tab.active { background: linear-gradient(176deg, #ffffff 0%, #fdfaf3 55%, #f6f0e3 100%); box-shadow: var(--shadow-tactile); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Error messages: always in the footer bar, red, one fixed spot (theme rule 10.7) */
.footer-error { color: var(--color-danger) !important; font-weight: 700; font-size: calc(12 * var(--u)); }

/* ---------- Breakpoints ---------- */
@media (max-width: 899px) {
  .signin-main { grid-template-columns: 1fr; }
  .showcase { display: none; }
  .nav-rail { width: calc(66 * var(--u)); align-items: center; }
  .nav-rail .nav-text, .nav-rail .nav-label { display: none; }
  .nav-rail .nav-link { width: calc(44 * var(--u)); height: calc(44 * var(--u)); padding: 0; justify-content: center; border-radius: 50%; }
  .nav-collapse { display: none; }
}
@media (max-width: 639px) {
  .form-grid { grid-template-columns: 1fr; }
  .signin-bar, .app-bar { padding-left: 14px; padding-right: 14px; }
  .signin-tagline, .footer-tagline { display: none; }
  .footer-tagline.footer-error { display: inline; }
}

/* ==========================================================================
   Restaurant Profile edit form — copied from the ARMenu Restaurant Profile page
   (ARMenu frontend/app/globals-app.css). Every rule is scoped to .armenu-profile
   so no other page (Dashboard, Restaurant Login, Pricing model) is affected.
   ========================================================================== */

/* When the profile form is open, the list card steps aside and only the form shows. */
.scroll-region:has(#form-area .rp-form) > #rp-list { display: none; }

.armenu-profile {
  --color-text-primary: #1c1917;
  --color-text-secondary: #78716c;
  font-family: var(--font-sans);
  color: var(--color-text-primary);
}
.armenu-profile :is(button, input, select, textarea) { font-family: inherit; }
.armenu-profile :is(h2, p) { margin: 0; }

.armenu-profile .section-heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}
.armenu-profile .detail-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-secondary);
}
.armenu-profile .page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
}

/* Centered, floating "3D" card */
.armenu-profile .editor-card {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow:
    0 2px 4px rgba(33, 28, 23, 0.04),
    0 10px 20px rgba(33, 28, 23, 0.06),
    0 30px 60px rgba(33, 28, 23, 0.12),
    0 0 0 1px rgba(33, 28, 23, 0.04);
}
.armenu-profile .profile-section {
  width: 50%;
  max-width: none;
  margin-block-start: 1.5rem;
  border: 1.5px solid #e8c77a;
}
@media (max-width: 900px) {
  .armenu-profile .profile-section { width: 100%; margin-block-start: 1rem; }
}
@media (max-width: 640px) {
  .armenu-profile .editor-card { padding: 18px 16px; }
}

/* Layout helpers (the Tailwind utilities the ARMenu page uses) */
.armenu-profile .rp-stack-5 { display: flex; flex-direction: column; gap: 1.25rem; }
.armenu-profile .rp-stack-3 { display: flex; flex-direction: column; gap: 0.75rem; }
.armenu-profile .rp-stack-1 { display: flex; flex-direction: column; gap: 0.375rem; width: 100%; }
.armenu-profile .rp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.armenu-profile .rp-actions { display: flex; align-items: center; gap: 0.5rem; }
.armenu-profile .action-bar-group { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.armenu-profile .rp-row {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: stretch;
}
.armenu-profile .rp-wrap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
/* Manager email box: same 20rem width as before; its error floats under it so the row never shifts */
.armenu-profile .rp-mgr-email { position: relative; flex: 0 1 20rem; min-width: 12rem; }
.armenu-profile .rp-mgr-email .field-error { position: absolute; left: 0; top: 100%; width: max-content; max-width: 32rem; }
.armenu-profile .rp-mgr-actions { flex: 0 0 100%; }
.armenu-profile .rp-grow { flex: 1 1 0; min-width: 12rem; }
.armenu-profile .rp-grow-wide { flex: 1 1 0; min-width: 16rem; }
@media (min-width: 640px) {
  .armenu-profile .rp-row { grid-template-columns: 150px minmax(0, 1fr); align-items: center; }
  .armenu-profile .rp-row.rp-start { align-items: start; }
  .armenu-profile .rp-max-12 { max-width: 12rem; }
  .armenu-profile .rp-max-14 { max-width: 14rem; }
  .armenu-profile .rp-max-16 { max-width: 16rem; }
  .armenu-profile .rp-max-20 { max-width: 20rem; }
  .armenu-profile .dish-form-label { padding-top: 0.5rem; }
}
.armenu-profile .dish-form-label {
  align-self: start;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-primary);
}
.armenu-profile .rp-panel[hidden] { display: none; }
.armenu-profile .rp-pos-fields[hidden] { display: none; }
.armenu-profile .save-feedback {
  min-height: 0;
  text-align: right;
  color: var(--color-success-text);
  font-size: 11.5px;
  font-weight: 700;
}
.armenu-profile .save-feedback.saving { color: var(--color-action-gold); }
.armenu-profile .save-feedback:empty { display: none; }

/* Buttons: ARMenu clay pills */
.armenu-profile .btn-pill,
.armenu-profile .btn-secondary,
.armenu-profile .btn-primary {
  gap: 0.45rem;
  min-height: 0;
  padding: 0.5rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: normal;
  letter-spacing: -0.01em;
  background: linear-gradient(176deg, #ffffff 0%, #fdfaf3 55%, #f6f0e3 100%);
  color: #8a7016;
  border-color: #dfb758;
}
.armenu-profile .btn-pill:not(:disabled):hover,
.armenu-profile .btn-secondary:not(:disabled):hover,
.armenu-profile .btn-primary:not(:disabled):hover { filter: brightness(1.02); border-color: #c99a2c; transform: none; }
.armenu-profile .btn-pill:not(:disabled):active,
.armenu-profile .btn-secondary:not(:disabled):active,
.armenu-profile .btn-primary:not(:disabled):active { transform: translateY(1px); }
.armenu-profile .btn-pill:focus-visible,
.armenu-profile .btn-secondary:focus-visible,
.armenu-profile .btn-primary:focus-visible { outline: 2px solid #b99a3e; outline-offset: 3px; }
.armenu-profile .btn-pill:disabled,
.armenu-profile .btn-secondary:disabled,
.armenu-profile .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; color: var(--color-text-secondary); }

/* Text fields, dropdowns and textareas: flat cream surface, slim golden boundary */
.armenu-profile .input-clay,
.armenu-profile .textarea-clay {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dfb758;
  border-radius: var(--radius-row);
  background-color: #fffdf8;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--color-text-primary);
  outline: none;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.armenu-profile .textarea-clay { resize: none; overflow: hidden; }
.armenu-profile .input-clay:hover:not(:disabled),
.armenu-profile .textarea-clay:hover:not(:disabled) { background-color: #fff9e9; border-color: #c99a2c; }
.armenu-profile .input-clay:focus,
.armenu-profile .textarea-clay:focus { border-color: #c99a2c; }
.armenu-profile .input-clay:focus-visible,
.armenu-profile .textarea-clay:focus-visible { outline: 2px solid #b99a3e; outline-offset: 3px; }
.armenu-profile .input-clay:disabled,
.armenu-profile .textarea-clay:disabled { opacity: 0.55; cursor: not-allowed; color: var(--color-text-secondary); }

/* Required-field error: directly under the field, red border on the field */
.armenu-profile .field-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #dc2626;
}
.armenu-profile .input-clay.input-error,
.armenu-profile .input-clay.input-error:hover:not(:disabled),
.armenu-profile .input-clay.input-error:focus,
.armenu-profile .textarea-clay.input-error,
.armenu-profile .textarea-clay.input-error:hover:not(:disabled),
.armenu-profile .textarea-clay.input-error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

.armenu-profile .select-clay {
  appearance: none;
  width: auto;
  min-width: fit-content;
  min-height: 30px;
  padding: 0.38rem 2.5rem 0.38rem 0.9rem;
  border: 1.5px solid #dfb758;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  background-color: #fffdf8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a7016' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 14px 14px;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}
.armenu-profile .select-clay:hover:not(:disabled) { background-color: #fff9e9; border-color: #c99a2c; }
.armenu-profile .select-clay:focus-visible { outline: 2px solid #b99a3e; outline-offset: 3px; border-color: #c99a2c; }
.armenu-profile .select-clay:disabled { opacity: 0.55; cursor: not-allowed; color: var(--color-text-secondary); }

/* Searchable dropdown (Country, Currency, State) */
.armenu-profile .ss { position: relative; }
.armenu-profile .ss-input {
  width: 100%;
  border: 1.5px solid #dfb758;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--color-text-primary);
  background: #fff;
  outline: none;
}
.armenu-profile .ss-input:disabled { opacity: 0.55; cursor: not-allowed; }
.armenu-profile .ss-list {
  position: absolute;
  z-index: 10;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 14rem;
  width: 100%;
  overflow-y: auto;
  border: 1.5px solid #dfb758;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: 0.875rem;
  line-height: 1.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.armenu-profile .ss-list[hidden] { display: none; }
.armenu-profile .ss-list li { padding: 0.5rem 0.75rem; cursor: pointer; }
.armenu-profile .ss-list li.ss-active { background: var(--color-surface-secondary); }
.armenu-profile .ss-list li.ss-none { cursor: default; font-size: 0.78rem; font-weight: 500; color: var(--color-text-secondary); }

/* Gold-boundary content card (Subscription) */
.armenu-profile .theme-card {
  border: 1.5px solid #e8c77a;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(150, 125, 75, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.armenu-profile .theme-card:hover {
  border-color: #c99a2c;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(150, 125, 75, 0.1), 0 14px 28px rgba(150, 125, 75, 0.14);
}
@media (prefers-reduced-motion: reduce) {
  .armenu-profile .theme-card { transition: border-color 180ms ease, background-color 180ms ease; }
  .armenu-profile .theme-card:hover { transform: none; }
}
.armenu-profile .rp-plan-name { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.armenu-profile .rp-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }

/* Segmented tabs */
.armenu-profile .seg-track {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  padding: 6px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: var(--color-surface-secondary);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  min-width: 0;
}
.armenu-profile .seg-track::-webkit-scrollbar { display: none; }
.armenu-profile .seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: none;
  border-radius: 12px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  color: var(--color-text-secondary);
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.armenu-profile .seg-tab:hover { background: rgba(255, 255, 255, 0.55); }
.armenu-profile .seg-tab[data-active="true"] {
  background: #fff;
  color: var(--color-text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(28, 25, 23, 0.1), 0 4px 12px rgba(28, 25, 23, 0.06);
}

/* Toggle: overhanging knob, embossed ON/OFF label */
.armenu-profile .rp-toggle { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; user-select: none; width: fit-content; }
.armenu-profile .rp-toggle-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 10; }
.armenu-profile .toggle-track {
  --toggle-w: 52px;
  --toggle-h: 26px;
  --knob-size: 32px;
  position: relative;
  display: inline-block;
  width: var(--toggle-w);
  height: var(--toggle-h);
  border: 1.5px solid #dfb758;
  border-radius: var(--radius-pill);
  background: var(--color-surface-secondary);
  box-shadow: inset 0 2px 4px rgba(120, 100, 60, 0.14);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}
.armenu-profile .toggle-track:hover { border-color: #c99a2c; }
.armenu-profile .rp-toggle-input:focus-visible + .toggle-track { outline: 2px solid #fdc841; outline-offset: 2px; }
.armenu-profile .toggle-track .toggle-knob {
  position: absolute;
  top: 50%;
  left: 2px;
  width: var(--knob-size);
  height: var(--knob-size);
  border: 1.5px solid #dfb758;
  border-radius: 999px;
  transform: translate(0, -50%);
  background: linear-gradient(180deg, #ffffff 0%, #e2dccf 70%, #cfc7b4 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-card-tight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  color: #8a7016;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.armenu-profile .toggle-track:hover .toggle-knob { border-color: #c99a2c; }
.armenu-profile .toggle-track[data-checked="true"] .toggle-knob {
  transform: translate(calc(var(--toggle-w) - var(--knob-size) - 2px), -50%);
  background: linear-gradient(180deg, #7ed88a 0%, var(--color-success-dot) 70%, #189a45 100%);
  border-color: #dfb758;
  color: #e6fbe9;
}
@media (prefers-reduced-motion: reduce) {
  .armenu-profile .toggle-track .toggle-knob { transition: none; }
}

/* Manager Access card */
.armenu-profile .msg.ok { margin: 0; font-size: 0.78rem; font-weight: 600; color: var(--color-success-text); }
.armenu-profile .rp-link-danger {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--color-danger);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.armenu-profile .rp-link-danger:disabled { opacity: 0.55; }

/* ==========================================================================
   Application Config screen. Reuses the .armenu-profile field, tab and button
   styles above (the wrapper carries both classes); everything below is new and
   scoped to .app-config.
   ========================================================================== */
.main-container-error { width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; margin-bottom: 16px; }
.main-container-error[hidden] { display: none; }
.error-span { display: inline-block; color: #d94f4f; font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: center; }

.app-config .card-shell { max-width: calc(980 * var(--u)); margin: 0 auto; }
.app-config .page-sub { margin: calc(4 * var(--u)) 0 0; max-width: calc(560 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 500; line-height: 1.5; color: var(--color-text-secondary); }
.app-config .btn-primary {
  background: linear-gradient(180deg, #edd07e 0%, #dfb758 45%, #c99a2c 100%);
  border-color: #b8861e;
  color: #261b05;
  font-weight: 800;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.75) inset, 0 -2px 4px rgba(138, 112, 22, 0.3) inset,
    0 1px 3px rgba(120, 100, 60, 0.15), 0 6px 14px rgba(201, 154, 44, 0.32);
}
.app-config .seg-track { margin: calc(16 * var(--u)) 0 calc(14 * var(--u)); }
.app-config .tab-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-marigold); }
.app-config .seg-tab.has-changes .tab-dot { display: inline-block; }
.app-config .ac-panel[hidden] { display: none; }
.app-config .intro { margin: 0 0 12px; max-width: 720px; font-size: 0.78rem; font-weight: 500; line-height: 1.5; color: var(--color-text-secondary); }

.app-config .set-row {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--color-surface-secondary-border);
}
.app-config .set-label { display: block; padding-top: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--color-text-primary); }
.app-config .set-key { display: block; margin-top: 2px; font: 500 0.68rem/1.3 ui-monospace, Consolas, monospace; color: var(--color-text-secondary); }
.app-config .set-help { display: block; margin-top: 4px; font-size: 0.74rem; font-weight: 500; line-height: 1.4; color: var(--color-text-secondary); }
.app-config .ac-w-sm { max-width: 12rem; }
.app-config .ac-w-md { max-width: 22rem; }
.app-config .input-with-unit { display: flex; align-items: center; gap: 8px; }
.app-config .unit { font-size: 0.78rem; font-weight: 600; color: var(--color-text-secondary); white-space: nowrap; }
.app-config .set-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 150px; padding-top: 0.4rem; }
.app-config .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 9999px; font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.app-config .chip.default, .app-config .chip.notset { background: var(--color-surface-secondary); color: var(--color-text-secondary); }
.app-config .chip.custom, .app-config .chip.replace { background: #fdf0c8; color: #765f12; border: 1px solid #e8c77a; }
.app-config .chip.live, .app-config .chip.saved { background: var(--color-success-bg); color: var(--color-success-text); }
.app-config .chip.restart { background: #fff3d6; color: #8a5a00; }
.app-config .link-btn { padding: 0; border: 0; background: none; box-shadow: none; font: 600 0.72rem var(--font-sans); color: var(--color-action-gold); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.app-config .link-btn.danger { color: var(--color-danger); }
.app-config .link-btn[hidden] { display: none; }
.app-config .notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; padding: 12px 14px; border: 1.5px solid #e8c77a; border-radius: 12px; background: #fffaf0; font-size: 0.78rem; font-weight: 500; line-height: 1.5; color: #5d4a10; }
@media (max-width: 760px) {
  .app-config .set-row { grid-template-columns: 1fr; row-gap: 8px; }
  .app-config .set-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
