.inline-form { display: inline-flex; margin: 0; }
.inline-form button { font-family: inherit; cursor: pointer; }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--soft); padding: 5px; border-radius: 13px; margin: 8px 0 22px; }
.mode-tabs a { text-align: center; padding: 9px; border-radius: 9px; color: var(--muted); font-weight: 800; font-size: 13px; }
.mode-tabs a.active { background: #fff; color: var(--navy); box-shadow: 0 3px 12px rgba(5,49,100,.1); }
.auth-intro { color: var(--muted); font-size: 14px; margin-top: -4px; }
.auth-field { margin-top: 13px; }
.system-alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0 18px; font-size: 13px; font-weight: 700; }
.system-alert.success { color: #087b4b; background: #e8f8f0; border: 1px solid #c5efda; }
.system-alert.error { color: #a93222; background: #fff0ed; border: 1px solid #ffd0c8; }
.account-shell .sidebar form { margin-top: auto; }
.account-shell .side-bottom { margin-top: 0; }
.account-metrics { grid-template-columns: repeat(3, 1fr); }
.portal-top small, .user-chip small { color: var(--muted); display: block; }
.empty-cell { text-align: center; color: var(--muted); padding: 35px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-actions form { display: inline-flex; gap: 6px; align-items: center; }
.admin-actions select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; }
.btn-small { min-height: 34px; padding: 0 12px; font-size: 11px; border-radius: 9px; cursor: pointer; font-family: inherit; }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tabs a { background: #fff; border: 1px solid var(--line); padding: 8px 13px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.admin-tabs a.active { background: var(--navy); color: #fff; }
.admin-login-note { margin-top: 15px; color: var(--muted); font-size: 12px; text-align: center; }
.menu-create-form { margin-bottom: 24px; }
.menu-table { margin-top: 22px; }
.restaurant-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.restaurant-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.restaurant-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.restaurant-card h3 { margin: 0 0 4px; color: var(--navy); }
.restaurant-card p { margin: 0; color: var(--muted); font-size: 12px; }
.menu-products { display: grid; gap: 8px; margin-bottom: 16px; }
.menu-product { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.menu-product span,.menu-product small { display: block; }
.menu-product small { color: var(--muted); margin-top: 3px; }
.menu-product input { width: 72px; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; text-align: center; }

@media (max-width: 980px) {
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .restaurant-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .account-metrics { grid-template-columns: 1fr; }
  .portal-top { align-items: flex-start; gap: 14px; }
  .portal-top .user-chip { display: none; }
}

.order-route { display: grid; gap: 6px; min-width: 220px; }
.map-link { display: block; width: max-content; color: var(--blue); font-size: 11px; font-weight: 900; text-decoration: underline; }
