* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { color-scheme: light; }
html.dark { color-scheme: dark; }
body { font-feature-settings: "cv11", "ss01", "ss03"; }
body, body * { transition-property: background-color, border-color, color, fill, stroke, opacity; transition-duration: 250ms; transition-timing-function: cubic-bezier(.4,0,.2,1); }

/* Central landlord and merchant panel shell */
body.central-panel-body {
  min-height: 100vh;
  margin: 0;
  background: #f4f7fb;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.central-panel-body *, .central-panel-body *::before, .central-panel-body *::after { box-sizing: border-box; }
.central-panel-body a { color: inherit; text-decoration: none; }
.central-panel-body button, .central-panel-body input, .central-panel-body select, .central-panel-body textarea { font: inherit; }
.central-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.central-shell > .sidebar {
  position: sticky; top: 0; z-index: 20; align-self: start; width: 100%; height: 100vh; overflow-y: auto;
  padding: 24px 18px 32px; border-right: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 12% 0%, rgba(16,185,129,.2), transparent 30%), linear-gradient(180deg, #111827 0%, #0b1220 100%);
  color: #d8e0ee; box-shadow: 12px 0 34px rgba(15,23,42,.08);
}
.central-shell .brand {
  display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0 8px 26px;
  color: #fff; font-size: 15px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em;
}
.central-shell .brand-mark {
  width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px;
  background: linear-gradient(135deg, #34d399, #0d9488);
  box-shadow: 0 10px 25px rgba(16,185,129,.25), inset 0 1px rgba(255,255,255,.34);
}
.central-shell .brand .muted { color: #8fa0ba; font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.central-shell .nav-label { margin: 22px 12px 8px; color: #71809a; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.central-shell .nav { display: grid; gap: 4px; }
.central-shell .nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 11px; color: #aebbd0; font-size: 13px; font-weight: 600;
}
.central-shell .nav a > span:last-child { color: #60708a; font-size: 12px; transform: translateX(-2px); }
.central-shell .nav a:hover { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.055); color: #fff; }
.central-shell .nav a.active {
  border-color: rgba(52,211,153,.2); background: linear-gradient(135deg, rgba(16,185,129,.19), rgba(20,184,166,.09));
  color: #ecfdf5; box-shadow: inset 3px 0 #34d399;
}
.central-shell .nav a.active > span:last-child { color: #34d399; }
.central-shell > .main {
  min-width: 0; padding: 0 clamp(22px, 3.2vw, 48px) 48px;
  background: radial-gradient(circle at 82% 0%, rgba(14,165,233,.065), transparent 26%), #f4f7fb;
}
.central-shell .topbar {
  position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; margin: 0 calc(clamp(22px, 3.2vw, 48px) * -1) 30px; padding: 0 clamp(22px, 3.2vw, 48px);
  border-bottom: 1px solid rgba(15,23,42,.07); background: rgba(244,247,251,.88);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.central-shell .crumb { color: #718096; font-size: 12px; font-weight: 650; letter-spacing: .025em; }
.central-shell .userbox { display: flex; align-items: center; gap: 10px; color: #273449; font-size: 13px; font-weight: 650; }
.central-shell .avatar {
  display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(15,23,42,.09); border-radius: 11px;
  background: #fff; color: #047857; box-shadow: 0 6px 18px rgba(15,23,42,.08); font-weight: 800;
}
.central-shell .userbox form { margin: 0; }
.central-shell .logout {
  min-height: 34px; padding: 7px 11px; border: 1px solid rgba(15,23,42,.1); border-radius: 9px;
  background: rgba(255,255,255,.76); color: #475569; cursor: pointer; font-size: 12px; font-weight: 700;
}
.central-shell .logout:hover { border-color: rgba(220,38,38,.22); background: rgba(254,242,242,.9); color: #b91c1c; }
.central-shell h1 { color: #101828; }
.central-shell .card { border-color: rgba(15,23,42,.075); box-shadow: 0 12px 32px rgba(15,23,42,.055); }
.central-shell .stat { min-height: 124px; }
.central-shell .stat > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.central-shell .stat > strong { display: block; margin-top: 14px; color: #101828; font-size: clamp(25px, 3vw, 34px); font-weight: 750; letter-spacing: -.045em; }
.central-shell > .main > .card[role="status"], .central-shell > .main > .card[role="alert"] { margin-bottom: 18px; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.2); }
.dark ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }
.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.18); }

.glass-light { background: rgba(245,245,247,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.glass-dark { background: rgba(10,10,11,.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }

@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawPath { from { stroke-dashoffset: 2500; } to { stroke-dashoffset: 0; } }
@keyframes pulseRing { 0% { transform: scale(.95); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-slide-up { animation: slideUp .7s cubic-bezier(.16,1,.3,1) both; }
.animate-fade-in { animation: fadeIn .8s ease-out both; }
.chart-line-anim { stroke-dasharray: 2500; animation: drawPath 2.2s cubic-bezier(.65,0,.35,1) forwards; }
.pulse-ring { animation: pulseRing 2s ease-out infinite; }
.lift { transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .25s ease; }
.lift:hover { transform: translateY(-2px); }

.nav-active { background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(20,184,166,.06)); color: rgb(5,150,105); }
.dark .nav-active { background: linear-gradient(135deg, rgba(52,211,153,.15), rgba(20,184,166,.08)); color: rgb(52,211,153); }
.nav-active .nav-icon { color: inherit; }
.tab-active { background: white; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04); color: #1d1d1f; }
.dark .tab-active { background: rgba(255,255,255,.08); color: #f5f5f7; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.chart-tooltip { pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .15s ease; transform: translate(-50%, -110%); }
.chart-tooltip.visible { opacity: 1; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid rgb(16,185,129); outline-offset: 2px; border-radius: 8px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.gradient-text { background: linear-gradient(135deg, #059669, #14b8a6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grid-bg { background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 0); background-size: 24px 24px; }
.dark .grid-bg { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.04) 1px, transparent 0); }

.avatar-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar-2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.avatar-3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.avatar-4 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.avatar-5 { background: linear-gradient(135deg, #6366f1, #a855f7); }

.status-delivered { background: rgba(16,185,129,.1); color: rgb(5,150,105); }
.dark .status-delivered { background: rgba(52,211,153,.12); color: rgb(52,211,153); }
.status-processing { background: rgba(59,130,246,.1); color: rgb(37,99,235); }
.dark .status-processing { background: rgba(96,165,250,.12); color: rgb(96,165,250); }
.status-shipped { background: rgba(168,85,247,.1); color: rgb(126,34,206); }
.dark .status-shipped { background: rgba(192,132,252,.12); color: rgb(192,132,252); }
.status-pending { background: rgba(245,158,11,.1); color: rgb(180,83,9); }
.dark .status-pending { background: rgba(251,191,36,.12); color: rgb(251,191,36); }
.status-cancelled { background: rgba(239,68,68,.1); color: rgb(185,28,28); }
.dark .status-cancelled { background: rgba(248,113,113,.12); color: rgb(248,113,113); }

.img-loading { background: linear-gradient(90deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.05) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.dark .img-loading { background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; }

.field-input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background-color: #f8fafc !important;
  border: 1px solid rgba(17,24,39,0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 1px rgba(17,24,39,0.04), 0 2px 5px rgba(17,24,39,0.06) !important;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field-input::placeholder { color: rgba(0,0,0,0.42); }
.field-input:hover {
  background-color: #fff !important;
  border-color: rgba(17,24,39,0.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 1px rgba(17,24,39,0.07), 0 3px 8px rgba(17,24,39,0.08) !important;
}
.field-input:focus {
  background-color: #fff !important;
  border-color: rgba(16, 185, 129, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 0 0 3px rgba(16, 185, 129, 0.18), 0 4px 12px rgba(16, 185, 129, 0.08) !important;
}
.dark .field-input {
  background-color: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.04), 0 2px 8px rgba(0,0,0,0.3) !important;
  color: #f5f5f7;
}
.dark .field-input::placeholder { color: rgba(255,255,255,0.42); }
.dark .field-input:hover {
  background-color: rgba(255,255,255,0.11) !important;
  border-color: rgba(255,255,255,0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(255,255,255,0.06), 0 3px 10px rgba(0,0,0,0.34) !important;
}
.dark .field-input:focus {
  background-color: rgba(255,255,255,0.12) !important;
  border-color: rgba(52, 211, 153, 0.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 3px rgba(52, 211, 153, 0.2), 0 4px 14px rgba(0,0,0,0.32) !important;
}
textarea.field-input {
  height: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.5;
}
select.field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field-input.error { border-color: rgba(239,68,68,.6); box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
.dropzone { border: 2px dashed rgba(0,0,0,.12); border-radius: 14px; background: rgba(0,0,0,.015); transition: border-color .2s, background .2s; cursor: pointer; }
.dark .dropzone { border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.015); }
.dropzone:hover, .dropzone.drag-active { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.04); }
.dark .dropzone:hover, .dark .dropzone.drag-active { border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.06); }
.tag-pop { animation: tagPop .3s cubic-bezier(.16,1,.3,1) both; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 7px; background: rgba(16,185,129,.1); color: #059669; font-size: 12px; font-weight: 500; }
.dark .tag-chip { background: rgba(52,211,153,.12); color: #34d399; }
.tag-chip button { display: grid; place-items: center; width: 14px; height: 14px; border: 0; border-radius: 4px; background: transparent; color: inherit; opacity: .6; transition: opacity .15s; }
.tag-chip button:hover { opacity: 1; }
.option-add-row { display: grid; grid-template-columns: minmax(0,1fr) 38px; gap: 8px; }
.option-add-button { display: grid; place-items: center; width: 38px; height: 36px; border: 0; border-radius: 9px; background: linear-gradient(135deg,#10b981,#0d9488); color: #fff; cursor: pointer; font-size: 13px; box-shadow: 0 8px 18px rgba(16,185,129,.2); transition: opacity .2s, transform .2s, box-shadow .2s; }
.option-add-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16,185,129,.26); }
.option-add-button:disabled { cursor: default; opacity: .35; transform: none; box-shadow: none; }
.variant-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.68); transition: border-color .2s, background .2s, box-shadow .2s; }
.variant-row.new-option-row { grid-template-columns: minmax(0,1fr) auto 28px; }
.dark .variant-row { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.variant-row:hover { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.025); }
.variant-row:has(.variant-checkbox:focus-visible), .cat-card:has(.cat-checkbox:focus-visible) { outline: 0; box-shadow: 0 0 0 3px rgba(16,185,129,.14); border-color: rgba(16,185,129,.5); }
.variant-row:has(.variant-checkbox:checked), .variant-row.is-selected { border-color: #10b981; background: rgba(16,185,129,.06); }
.dark .variant-row:has(.variant-checkbox:checked), .dark .variant-row.is-selected { border-color: #34d399; background: rgba(52,211,153,.08); }
.variant-choice { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: pointer; }
.new-option-row .variant-choice { cursor: default; }
.new-option-row .variant-checkbox { pointer-events: none; }
.variant-checkbox, .cat-checkbox { width: 16px; height: 16px; flex: 0 0 auto; cursor: pointer; accent-color: #10b981; }
.variant-name { min-width: 0; flex: 1; color: #1d1d1f; font-size: 12.5px; font-weight: 600; }
.dark .variant-name { color: #f5f5f7; }
.variant-stock-wrap { display: flex; align-items: center; gap: 6px; color: #8a8a8d; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.variant-stock { width: 76px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #1d1d1f; padding: 0 10px; font-size: 12.5px; font-weight: 600; text-align: right; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.dark .variant-stock { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #f5f5f7; }
.variant-stock:hover { border-color: rgba(16,185,129,.35); }
.variant-stock:focus { border-color: rgba(16,185,129,.65); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.option-remove-button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #9ca3af; cursor: pointer; transition: background .2s, color .2s; }
.option-remove-button:hover { background: rgba(239,68,68,.08); color: #ef4444; }
.toggle { position: relative; width: 36px; height: 20px; background: rgba(0,0,0,.12); border-radius: 999px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.dark .toggle { background: rgba(255,255,255,.12); }
.toggle.active { background: #10b981; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .25s cubic-bezier(.16,1,.3,1); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle.active::after { transform: translateX(16px); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cat-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,.08); cursor: pointer; transition: all .2s; }
.dark .cat-card { border-color: rgba(255,255,255,.08); }
.cat-card:hover { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.02); }
.dark .cat-card:hover { background: rgba(52,211,153,.04); }
.cat-card:has(.cat-checkbox:checked) { border-color: #10b981; background: rgba(16,185,129,.05); }
.dark .cat-card:has(.cat-checkbox:checked) { border-color: #34d399; background: rgba(52,211,153,.08); }
.cat-card.selected { border-color: #10b981; background: rgba(16,185,129,.05); }
.dark .cat-card.selected { border-color: #34d399; background: rgba(52,211,153,.08); }
.cat-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid rgba(0,0,0,.2); display: grid; place-items: center; transition: all .2s; flex-shrink: 0; }
.dark .cat-check { border-color: rgba(255,255,255,.2); }
.cat-card.selected .cat-check { background: #10b981; border-color: #10b981; }
.cat-check i { color: #fff; font-size: 9px; opacity: 0; transition: opacity .15s; }
.cat-card.selected .cat-check i { opacity: 1; }
.product-form .field.wide { display: block; margin: 0; }
.product-form .field.wide > label { display: block; margin-bottom: 6px; color: rgb(55,65,81); font-size: 12.5px; font-weight: 500; }
.dark .product-form .field.wide > label { color: rgb(209,213,219); }
.product-form .rt-editor { border: 1px solid rgba(0,0,0,.08); border-radius: 12px; background: rgba(0,0,0,.02); overflow: hidden; }
.dark .product-form .rt-editor { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.product-form .rt-editor:focus-within { border-color: rgba(16,185,129,.5); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.product-form .rt-toolbar { gap: 2px; padding: 8px; border-bottom: 1px solid rgba(0,0,0,.06); background: rgba(0,0,0,.015); }
.dark .product-form .rt-toolbar { border-bottom-color: rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.product-form .rt-toolbar button { width: 32px; height: 32px; border-radius: 8px; color: #1d1d1f; }
.dark .product-form .rt-toolbar button { color: #f5f5f7; }
.product-form .rt-toolbar button:hover { background: rgba(0,0,0,.06); }
.dark .product-form .rt-toolbar button:hover { background: rgba(255,255,255,.06); }
.product-form .rt-toolbar button.is-active { background: #10b981; color: #fff; }
.product-form .rt-toolbar svg { width: 16px; height: 16px; stroke-width: 2.2; }
.product-form .rt-surface { min-height: 200px; padding: 16px; background: transparent; color: #1d1d1f; font-size: 14px; line-height: 1.7; }
.dark .product-form .rt-surface { color: #f5f5f7; }
.product-form .rt-surface .tiptap, .product-form .rt-surface .ProseMirror { min-height: 168px; }

@keyframes tagPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* Compatibility layer for existing tenant admin subpages */
:root {
    --line: rgba(0,0,0,.06);
    --muted: #6b7280;
    --text: #1d1d1f;
    --surface: #fff;
    --surface-soft: rgba(0,0,0,.03);
    --input: rgba(0,0,0,.045);
    --brand: #10b981;
    --brand-2: #14b8a6;
    --shadow: none;
}
.dark {
    --line: rgba(255,255,255,.06);
    --muted: #8b8b93;
    --text: #f5f5f7;
    --surface: #141416;
    --surface-soft: rgba(255,255,255,.04);
    --input: rgba(255,255,255,.05);
}
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin-bottom: 6px; color: #059669; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.dark .eyebrow { color: #34d399; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.05; letter-spacing: -.04em; font-weight: 650; }
.lead { margin: 8px 0 0; max-width: 720px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.grid { display: grid; gap: 16px; }
.content-gap { margin-top: 16px; }
.section-gap { margin-top: 18px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.tenant-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 8px; }
.storage-stat small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.storage-note { margin: 0 0 18px; }
.health-panel { margin-bottom: 18px; padding: 0; overflow: hidden; }
.health-head { align-items: flex-start; margin: 0; padding: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(16,185,129,.055), transparent 52%); }
.health-head h2 { font-size: 20px; }
.health-copy { max-width: 700px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.health-overall { display: grid; justify-items: end; gap: 7px; }
.health-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.health-summary-item { display: grid; align-content: start; justify-items: start; gap: 7px; min-height: 118px; padding: 18px 20px; border-right: 1px solid var(--line); }
.health-summary-item:last-child { border-right: 0; }
.health-summary-item > span:first-child, .health-summary-item small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.health-summary-item > span:first-child { font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.health-summary-item strong { font-size: 21px; letter-spacing: -.035em; }
.health-table-wrap { padding: 4px 20px 0; }
.health-table { min-width: 790px; }
.health-category { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.health-footnote { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.two { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card h2, .card h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13px; }
th { padding: 10px 14px; border-block: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover { background: var(--surface-soft); }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 600; color: #2563eb; background: rgba(59,130,246,.1); white-space: nowrap; }
.pill.good { color: #059669; background: rgba(16,185,129,.1); }
.pill.warn { color: #b45309; background: rgba(245,158,11,.1); }
.pill.bad { color: #b91c1c; background: rgba(239,68,68,.1); }
.dark .pill.good { color: #34d399; background: rgba(52,211,153,.12); }
.dark .pill.warn { color: #fbbf24; background: rgba(251,191,36,.12); }
.dark .pill.bad { color: #f87171; background: rgba(248,113,113,.12); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--surface-soft); }
.btn.primary { border-color: transparent; background: #1d1d1f; color: #fff; }
.dark .btn.primary { background: #fff; color: #111827; }
.btn.danger { color: #dc2626; background: rgba(239,68,68,.08); }
.btn.good { color: #059669; background: rgba(16,185,129,.08); }
.list { display: grid; gap: 10px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 12px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kv div { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); padding: 12px; }
.kv span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 28px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; color: var(--muted); flex-wrap: wrap; }
.pagination-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span.page { border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, select { width: 100%; border: 1px solid rgba(15,23,42,.34); border-radius: 10px; background: #eef2f7; color: var(--text); padding: 12px 13px; outline: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(15,23,42,.07), 0 2px 6px rgba(15,23,42,.08); transition: border-color .2s, background .2s, box-shadow .2s; }
.field input:hover, .field select:hover, .field textarea:hover, select:hover { border-color: rgba(15,23,42,.46); background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(15,23,42,.1), 0 3px 9px rgba(15,23,42,.1); }
.field input:focus, .field select:focus, .field textarea:focus, select:focus { border-color: rgba(16,185,129,.82); background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 3px rgba(16,185,129,.2), 0 4px 12px rgba(16,185,129,.1); }
.dark .field input, .dark .field select, .dark .field textarea, .dark select { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.11); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(255,255,255,.07), 0 2px 8px rgba(0,0,0,.34); }
.dark .field input:hover, .dark .field select:hover, .dark .field textarea:hover, .dark select:hover { border-color: rgba(255,255,255,.44); background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(255,255,255,.08), 0 3px 10px rgba(0,0,0,.36); }
.dark .field input:focus, .dark .field select:focus, .dark .field textarea:focus, .dark select:focus { border-color: rgba(52,211,153,.82); background: rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 3px rgba(52,211,153,.22), 0 4px 14px rgba(0,0,0,.34); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input[type="checkbox"] { width: auto; accent-color: var(--brand); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.hint { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.section-heading h2 { margin: 3px 0 0; }
.section-divider { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.owner-mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.choice-card { display: flex; align-items: flex-start; gap: 12px; min-height: 92px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice-card:hover { border-color: rgba(16,185,129,.5); }
.choice-card.selected { border-color: rgba(16,185,129,.82); background: rgba(16,185,129,.08); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.choice-card.disabled { cursor: not-allowed; opacity: .55; }
.choice-card input { width: 18px; height: 18px; margin-top: 2px; accent-color: rgb(16,185,129); }
.choice-card span { display: grid; gap: 6px; }
.choice-card small { color: var(--muted); line-height: 1.45; }
.availability-status { min-height: 20px; margin: 0; font-size: 12px; font-weight: 600; }
.availability-status.checking { color: #b45309; }
.availability-status.available { color: #047857; }
.availability-status.unavailable { color: #b91c1c; }
.compact-value { overflow-wrap: anywhere; font-size: 16px !important; }
[hidden] { display: none !important; }
.error { color: #b91c1c; }
.dark .error { color: #fecaca; }
.account-auth-body { min-height: 100vh; margin: 0; display: grid; place-items: center; background: radial-gradient(circle at 20% 0%, rgba(16,185,129,.12), transparent 35%), #f5f7fa; padding: 24px; color: var(--text); font-family: Inter, sans-serif; }
.account-auth-shell { width: min(100%, 520px); }
.account-auth-brand { display: flex; width: max-content; margin: 0 auto 20px; color: var(--text); }
.account-auth-card { padding: 30px; box-shadow: 0 22px 60px rgba(15,23,42,.1); }
.account-auth-card h1 { margin-top: 5px; }
.account-auth-submit { width: 100%; margin: 4px 0 14px; }
.muted-link { display: inline-block; color: var(--muted); font-size: 13px; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.security-message { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.good-message { color: #047857; background: rgba(16,185,129,.08); }
.bad-message { color: #b91c1c; background: rgba(239,68,68,.08); }
.security-grid { align-items: start; }
.secret-value { overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.5; }
.recovery-card { border-color: rgba(245,158,11,.3); }
.recovery-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.recovery-codes code { border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); padding: 10px; text-align: center; }

@media (max-width: 980px) {
    .central-shell { display: block; }
    .central-shell > .sidebar { position: relative; height: auto; padding: 18px; box-shadow: 0 12px 30px rgba(15,23,42,.12); }
    .central-shell .brand { margin-bottom: 16px; }
    .central-shell .nav-label { margin-top: 16px; }
    .central-shell .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .central-shell > .main { padding: 0 20px 36px; }
    .central-shell .topbar { position: relative; margin: 0 -20px 24px; padding: 0 20px; }
    .hero { align-items: stretch; flex-direction: column; gap: 14px; }
    .hero .btn, .hero .actions, .hero form { width: 100%; }
    .hero .actions .btn, .hero .actions form, .hero .actions form .btn, .hero .actions select { width: 100%; }
    .stats, .two, .three, .form-grid, .kv { grid-template-columns: 1fr; }
    .form-grid .wide { grid-column: auto; }
    .card-head, .list-row { align-items: flex-start; flex-direction: column; }
    .owner-mode-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .health-head, .health-footnote { align-items: flex-start; flex-direction: column; }
    .health-overall { justify-items: start; }
    .health-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .health-summary-item:nth-child(2) { border-right: 0; }
    .health-summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    table { min-width: 660px; }
}

@media (max-width: 580px) {
    .central-shell .nav { grid-template-columns: 1fr; }
    .central-shell .topbar { align-items: flex-start; flex-direction: column; padding-block: 14px; }
    .central-shell .userbox { width: 100%; flex-wrap: wrap; }
    .central-shell .userbox form { margin-left: auto; }
    .health-summary-grid { grid-template-columns: 1fr; }
    .health-summary-item, .health-summary-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
    .health-summary-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
