:root {
  --navy: #17113f;
  --navy-2: #261b68;
  --purple: #6757d8;
  --red: #c20d2f;
  --ink: #16132d;
  --muted: #777286;
  --line: #e4e1ea;
  --surface: #ffffff;
  --canvas: #f7f6fa;
  --green: #19745c;
  --green-bg: #eaf8f2;
  --amber: #946200;
  --amber-bg: #fff7da;
  --danger: #ad2940;
  --danger-bg: #fff0f2;
  --shadow: 0 12px 35px rgba(23, 17, 63, .08);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--canvas); }
body { min-width: 320px; font-size: 16px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin-bottom: 5px; font-size: 20px; }
p { color: var(--muted); line-height: 1.5; }
.hidden { display: none !important; }
.mobile-only { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.eyebrow { display: block; margin-bottom: 6px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }

.primary, .secondary, .danger, .ghost-light, .text-button, .icon-button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 750;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.primary { color: #fff; background: var(--navy); box-shadow: 0 8px 18px rgba(23, 17, 63, .15); }
.primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.secondary { color: var(--navy); background: #fff; border: 1px solid var(--line); }
.secondary:hover { background: #f5f3fb; }
.danger { color: var(--danger); background: var(--danger-bg); border: 1px solid #f4c7cf; }
.ghost-light { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); }
.text-button { padding: 6px 0; color: var(--purple); background: transparent; }
.icon-button { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: 21px; }
.large { width: 100%; min-height: 48px; }

label { display: grid; gap: 7px; color: #625d70; font-weight: 700; }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #9d92e9; box-shadow: 0 0 0 3px rgba(103,87,216,.12); }
.search { max-width: 360px; }
.form-error { min-height: 20px; margin: 0; color: var(--danger); font-size: 13px; }

.center-screen { min-height: 100dvh; display: grid; place-items: center; }
.loader { width: 42px; height: 42px; border: 4px solid #ded9f6; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.access-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 85% 10%, #3b2d89 0, transparent 28%), var(--navy); }
.access-card { width: min(960px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 28px; background: #fff; box-shadow: 0 34px 90px rgba(0,0,0,.26); }
.access-hero { position: relative; padding: 65px 55px; color: #fff; background: linear-gradient(145deg, #211653, var(--navy)); }
.access-logo { width: 310px; margin: 65px 0 52px; padding: 14px 18px; border-radius: 16px; background: #fff; }
.access-hero h1 { font-size: clamp(38px, 4vw, 58px); }
.access-hero p { max-width: 470px; color: rgba(255,255,255,.74); font-size: 18px; }
.admin-access { position: absolute; top: 28px; right: 28px; }
.access-form { align-content: center; display: grid; gap: 20px; padding: 55px; }
.access-form h2 { font-size: 28px; }

.admin-shell { min-height: 100dvh; }
.admin-header { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 4vw; background: #fff; border-bottom: 1px solid var(--line); }
.brand-inline { display: flex; align-items: center; gap: 16px; }
.brand-inline img { width: 170px; }
.brand-inline div { display: grid; }
.brand-inline small { color: var(--muted); }
.admin-main { width: min(1260px, 92vw); margin: 0 auto; padding: 46px 0; }
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.restaurant-card { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.restaurant-card header { display: flex; justify-content: space-between; gap: 12px; }
.restaurant-card h3 { margin: 0 0 4px; font-size: 19px; }
.restaurant-card p { margin: 0; font-size: 13px; }
.restaurant-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.restaurant-meta div { padding: 11px; border-radius: 10px; background: #f7f6fa; }
.restaurant-meta span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; }
.status-pill { height: max-content; display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 9px; color: var(--green); background: var(--green-bg); font-size: 12px; font-weight: 800; }
.status-pill.suspended, .status-pill.expired { color: var(--danger); background: var(--danger-bg); }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 28px 18px 20px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-logo { width: 188px; margin: 0 auto 36px; }
.side-nav { display: grid; gap: 7px; }
.side-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 15px; color: #625d70; background: transparent; border: 0; border-radius: 12px; text-align: left; font-weight: 700; }
.side-nav button span { width: 22px; font-size: 20px; text-align: center; }
.side-nav button:hover, .side-nav button.active { color: var(--navy); background: #efedff; }
.side-nav button[data-disabled="true"] { display: none; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-user > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); background: #edeaff; border-radius: 50%; font-weight: 850; }
.sidebar-user div { display: grid; }
.sidebar-user small { color: var(--muted); }

.app-main { min-width: 0; }
.topbar { height: 74px; display: flex; align-items: center; gap: 18px; padding: 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-logo { display: none; }
.restaurant-title { display: grid; }
.restaurant-title .eyebrow { margin: 0; font-size: 9px; }
.restaurant-title strong { font-size: 18px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync-status { color: var(--green); font-size: 12px; font-weight: 750; }
.sync-status.saving { color: var(--amber); }
.sync-status.error { color: var(--danger); }
.subscription-badge { padding: 8px 11px; border-radius: 999px; color: var(--amber); background: var(--amber-bg); font-size: 12px; font-weight: 800; }
.global-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 18px 34px; background: #fff; border-bottom: 1px solid var(--line); }
.date-control { width: min(260px, 46%); gap: 4px; }
.date-control span { font-size: 10px; text-transform: uppercase; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: #f6f4fa; }
.segmented button { min-width: 116px; padding: 10px 16px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 750; }
.segmented button.active { color: #fff; background: var(--navy); box-shadow: 0 5px 12px rgba(23,17,63,.2); }
.views { padding: 32px 34px 110px; }
.view { display: none; }
.view.active { display: block; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.page-heading p { margin-bottom: 0; }
.panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 19px 21px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head p { margin: 0; }
.panel-head p { margin-top: 3px; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.metric-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-card strong { display: block; margin: 9px 0 3px; font-size: 30px; }
.metric-card small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.filter-row { display: flex; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.filter-row select { max-width: 230px; }

.booking-list { display: grid; }
.booking-row { display: grid; grid-template-columns: 80px minmax(150px, 1.3fr) minmax(130px, 1fr) 110px 110px auto; align-items: center; gap: 14px; min-height: 76px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.booking-row { width: 100%; color: inherit; background: transparent; border-top: 0; border-right: 0; border-left: 0; text-align: left; cursor: pointer; }
.booking-row:last-child { border-bottom: 0; }
.booking-row:hover { background: #fbfaff; }
.booking-time { font-size: 19px; font-weight: 850; }
.booking-person { min-width: 0; }
.booking-person strong, .booking-person span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-person span, .booking-detail { color: var(--muted); font-size: 12px; }
.table-badge { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: var(--navy); background: #efedff; font-size: 12px; font-weight: 800; }
.state-badge { display: inline-flex; width: max-content; padding: 6px 9px; border-radius: 999px; color: var(--green); background: var(--green-bg); font-size: 11px; font-weight: 800; }
.state-badge.waiting { color: var(--amber); background: var(--amber-bg); }
.state-badge.cancelled { color: var(--danger); background: var(--danger-bg); }
.compact-list .booking-row { grid-template-columns: 66px 1fr 90px auto; min-height: 68px; }
.compact-list .booking-row > :nth-child(3) { display: none; }
.empty-state { padding: 55px 20px; color: var(--muted); text-align: center; }
.empty-state.small { padding: 35px 5px; }

.room-tabs { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: thin; }
.room-tabs button { flex: 0 0 auto; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; color: #696475; background: #fff; font-weight: 800; }
.room-tabs button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.room-tabs button span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; margin-left: 6px; border-radius: 999px; background: #efedff; color: var(--purple); font-size: 11px; }
.room-tabs button.active span { background: rgba(255,255,255,.18); color: #fff; }
.room-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 11px; padding: 18px; }
#roomSummaries { margin: 0 0 18px; padding: 0; }
.room-summary { display: grid; gap: 5px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.room-summary.active { border-color: #a69ceb; box-shadow: 0 0 0 3px rgba(103,87,216,.08); }
.room-summary.blocked { border-color: #efc2ca; background: var(--danger-bg); }
.room-summary span { color: var(--muted); font-size: 12px; }
.desktop-room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.floor { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; margin: 18px; }
.floor-room { position: relative; height: min(48vh, 460px); min-height: 350px; overflow: hidden; border: 1px solid #dcd8e6; border-radius: 16px; background-color: #fcfbfe; background-image: linear-gradient(rgba(23,18,63,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(23,18,63,.04) 1px, transparent 1px); background-size: 30px 30px; }
.floor-room.active { border-color: #9c91ea; box-shadow: 0 0 0 3px rgba(103,87,216,.08); }
.floor-room > header { position: absolute; z-index: 3; top: 11px; right: 13px; left: 13px; display: flex; justify-content: space-between; color: #7d7789; pointer-events: none; }
.floor-room > header strong { color: var(--navy); }
.floor-room > header span { font-size: 12px; }
.floor-category-empty { grid-column: 1 / -1; }
.floor-room-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); pointer-events: none; }
.floor-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.floor-links line { stroke: #aaa4bd; stroke-width: 1.5; stroke-dasharray: 5 5; }
.floor-blocked { position: absolute; z-index: 4; inset: 0; display: grid; place-content: center; gap: 5px; color: var(--danger); background: rgba(255,240,242,.88); text-align: center; pointer-events: none; }
.floor-blocked strong { font-size: 24px; }
.floor-blocked span { font-weight: 700; }
.floor-empty { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.table-node { position: absolute; z-index: 2; display: grid; place-items: center; transform: translate(-50%, -50%); border: 2px solid #a6dac9; color: var(--green); background: #edf9f4; box-shadow: 0 6px 13px rgba(23,17,63,.07); user-select: none; touch-action: none; }
.table-node.rect { width: 90px; height: 58px; border-radius: 13px; }
.table-node.square { width: 65px; height: 65px; border-radius: 13px; }
.table-node.round { width: 68px; height: 68px; border-radius: 50%; }
.table-node.busy { color: var(--danger); background: var(--danger-bg); border-color: #edaab6; }
.table-node.selected { outline: 4px solid rgba(103,87,216,.2); }
.table-node strong { font-size: 14px; }
.table-node small { font-size: 10px; }
.selected-table-panel { padding: 20px; }
.selected-table-panel h2 { margin-bottom: 14px; }
.room-block-panel { margin-top: 18px; }
.table-detail { display: grid; gap: 11px; }
.table-detail-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.table-detail-row span { color: var(--muted); }
.block-list { display: grid; gap: 9px; padding: 18px; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.block-row span { display: block; color: var(--muted); font-size: 12px; }

.customer-list { display: grid; }
.customer-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 1fr) minmax(160px, 1fr) 90px 110px; align-items: center; gap: 14px; min-height: 72px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.customer-row:last-child { border-bottom: 0; }
.customer-row strong, .customer-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-row span { color: var(--muted); }
.settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 850px; padding: 25px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.mobile-account-links { margin-top: 14px; }
.mobile-account-links button { width: 100%; }
.subscription-card { max-width: 760px; padding: 28px; }
.subscription-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.subscription-grid div { padding: 16px; border-radius: 13px; background: #f7f6fa; }
.subscription-grid span { display: block; color: var(--muted); font-size: 12px; }
.subscription-grid strong { display: block; margin-top: 7px; font-size: 18px; }

.mobile-nav { display: none; }

dialog { color: var(--ink); }
.modal { width: min(760px, calc(100vw - 28px)); max-height: min(88dvh, 860px); padding: 0; overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(23,17,63,.25); }
.modal::backdrop { background: rgba(23,17,63,.48); backdrop-filter: blur(2px); }
.modal form { max-height: inherit; display: flex; flex-direction: column; }
.modal header, .modal footer { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: #fff; }
.modal header { justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal header h2, .modal header .eyebrow { margin: 0; }
.modal footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.modal-body { display: grid; gap: 18px; padding: 22px; overflow-y: auto; }
.small-modal { width: min(590px, calc(100vw - 28px)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.assignment-preview { min-height: 48px; padding: 12px 14px; border-radius: 11px; color: var(--green); background: var(--green-bg); line-height: 1.4; }
.assignment-preview.error { color: var(--danger); background: var(--danger-bg); }
.manager-list { display: grid; gap: 9px; }
.backup-list { display: grid; gap: 10px; }
.backup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.backup-row strong, .backup-row span { display: block; }
.backup-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.manager-row { display: grid; grid-template-columns: minmax(150px, 1fr) 115px auto auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.manager-row span { color: var(--muted); font-size: 12px; }
.inline-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 15px; }
.room-add { grid-template-columns: minmax(150px, 1fr) 145px auto; }
fieldset { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
legend { padding: 0 7px; font-weight: 800; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-grid label { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 10px; border-radius: 10px; background: #f7f6fa; }
.check-grid input { width: 19px; min-height: 19px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: min(520px, calc(100vw - 28px)); transform: translate(-50%, 20px); padding: 12px 17px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: 0 12px 28px rgba(23,17,63,.25); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.error { background: var(--danger); }

@media (max-width: 1020px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar-logo { width: 165px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .booking-row { grid-template-columns: 70px minmax(130px, 1fr) 100px 90px auto; }
  .booking-row .booking-detail.room-detail { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  input, select, textarea { min-height: 48px; font-size: 16px; }
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .app-shell { display: block; min-height: 100dvh; }
  .sidebar { display: none; }
  .app-main { min-height: 100dvh; }
  .topbar { position: sticky; z-index: 20; top: 0; height: 67px; gap: 10px; padding: 8px 14px; }
  .mobile-logo { display: block; width: 124px; }
  .restaurant-title { display: none; }
  .top-actions { gap: 7px; }
  .sync-status { display: none; }
  .subscription-badge { max-width: 126px; padding: 7px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .global-toolbar { position: sticky; z-index: 19; top: 67px; align-items: center; gap: 10px; padding: 11px 14px; }
  .date-control { width: 52%; }
  .date-control span { display: none; }
  .segmented { width: 48%; }
  .segmented button { min-width: 0; padding: 11px 7px; font-size: 13px; }
  .views { padding: 21px 14px 104px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 13px; }
  .page-heading > .primary { position: fixed; z-index: 18; right: 17px; bottom: 87px; width: 60px; height: 60px; overflow: hidden; padding: 0; border-radius: 19px; color: transparent; font-size: 0; }
  .page-heading > .primary::after { content: "+"; color: #fff; font-size: 34px; font-weight: 400; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 26px; }
  .panel { border-radius: 16px; }
  .panel-head { padding: 16px; }
  .filter-row { display: grid; grid-template-columns: 1fr; padding: 13px; }
  .filter-row .search, .filter-row select { max-width: none; }
  .booking-row, .compact-list .booking-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; min-height: 76px; padding: 12px 13px; }
  .booking-row > .booking-detail, .booking-row > .table-badge { display: none; }
  .booking-time { font-size: 17px; }
  .booking-person span { margin-top: 3px; }
  .room-tabs { padding-bottom: 10px; }
  #roomSummaries { display: grid; grid-template-columns: 1fr; }
  .room-summary-grid { grid-template-columns: 1fr; padding: 14px; }
  .room-summary { min-height: 72px; }
  .block-list { padding: 14px; }
  .customer-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 13px; }
  .customer-row > :nth-child(2), .customer-row > :nth-child(3) { grid-column: 1; }
  .customer-row > :nth-child(4) { grid-column: 2; grid-row: 1 / span 2; }
  .customer-row > :nth-child(5) { display: none; }
  .settings-form { grid-template-columns: 1fr; gap: 15px; padding: 18px; }
  .form-actions { grid-column: auto; }
  .form-actions .primary { width: 100%; }
  .subscription-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 21; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px max(7px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -9px 24px rgba(23,17,63,.08); }
  .mobile-nav button { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 7px 2px; border: 0; border-radius: 11px; color: #817c8d; background: transparent; font-size: 10px; font-weight: 750; }
  .mobile-nav button span { font-size: 20px; }
  .mobile-nav button.active { color: var(--purple); background: #efedff; }
  .mobile-nav button[data-disabled="true"] { display: none; }
  .access-screen { padding: 0; background: #fff; }
  .access-card { min-height: 100dvh; grid-template-columns: 1fr; border-radius: 0; box-shadow: none; }
  .access-hero { min-height: 46dvh; padding: 29px 25px 36px; }
  .access-logo { width: 230px; margin: 70px 0 30px; }
  .access-hero h1 { font-size: 38px; }
  .access-hero p { font-size: 15px; }
  .admin-access { top: 20px; right: 20px; padding: 9px 11px; font-size: 12px; }
  .access-form { align-content: start; gap: 15px; padding: 27px 24px 38px; }
  .access-form h2 { font-size: 24px; }
  .admin-header { height: auto; align-items: flex-start; padding: 14px; }
  .brand-inline img { width: 130px; }
  .brand-inline div { display: none; }
  .admin-header .row { justify-content: flex-end; }
  .admin-main { width: auto; padding: 25px 14px; }
  .admin-main .page-heading { display: grid; }
  .restaurant-grid { grid-template-columns: 1fr; }
  .modal { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .modal header, .modal footer { padding: 15px; }
  .modal-body { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .form-grid .full { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .manager-row { grid-template-columns: 1fr auto; }
  .manager-row span { grid-column: 1; }
  .toast { bottom: 92px; }
}

@media (max-width: 390px) {
  .mobile-logo { width: 108px; }
  .subscription-badge { max-width: 105px; }
  .global-toolbar { gap: 7px; }
  .segmented button { padding-inline: 4px; font-size: 12px; }
  .views { padding-inline: 11px; }
}
