:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-50: #ecfdf5;
  --amber-600: #d97706;
  --amber-50: #fffbeb;
  --red-600: #dc2626;
  --red-50: #fef2f2;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--slate-50); color: var(--slate-900); font-weight: 400; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; opacity: .62; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: var(--radius-xl);
  padding: .75rem 1rem;
  font-weight: 600;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  user-select: none;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue-600); color: white; box-shadow: 0 12px 24px rgba(37,99,235,.18); }
.button-primary:hover { background: var(--blue-500); }
.button-secondary { background: white; color: var(--slate-800); border: 1px solid var(--slate-200); box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.button-secondary:hover { color: var(--blue-700); border-color: var(--blue-100); }
.button-danger { background: var(--red-50); color: var(--red-600); }
.button-success { background: var(--emerald-500); color: white; }
.button-ghost { background: var(--slate-100); color: var(--slate-700); }
.button-lg { min-height: 3rem; border-radius: var(--radius-2xl); padding: .9rem 1.4rem; font-size: 1rem; }
.button-sm { min-height: 2.25rem; border-radius: .8rem; padding: .45rem .75rem; font-size: .8rem; }

.input, .select, .textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  color: var(--slate-800);
  padding: .7rem .9rem;
  font-weight: 500;
  outline: none;
}
.textarea { min-height: 6rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.17); background: white; }
.label { display: grid; gap: .4rem; color: var(--slate-600); font-size: .8rem; font-weight: 600; }
.form-grid { display: grid; gap: .8rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .full-row { grid-column: 1 / -1; }

.landing-body { background: white; overflow-x: hidden; }
.landing-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem max(1rem, env(safe-area-inset-left)) .75rem max(1rem, env(safe-area-inset-right));
  border-bottom: 1px solid rgba(226,232,240,.88);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 10px rgba(15,23,42,.05);
}
.brand-link { display: flex; align-items: center; gap: .7rem; color: var(--slate-950); font-size: 1.25rem; font-weight: 700; }
.brand-icon { width: 2.75rem; height: 2.75rem; border-radius: 1rem; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.landing-actions { display: flex; align-items: center; gap: .5rem; }
.pill-link { border-radius: 999px; padding: .65rem .9rem; color: var(--slate-600); font-size: .9rem; font-weight: 600; }
.pill-link:hover { color: var(--blue-700); background: var(--blue-50); }
.hero-section { position: relative; isolation: isolate; overflow: hidden; padding: 7rem 1rem 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 18% 10%, rgba(37,99,235,.13), transparent 30%), linear-gradient(180deg,#fff 0%,#f8fbff 58%,#eef6ff 100%); }
.hero-grid { width: min(100%, 80rem); margin: auto; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: .93fr 1.07fr; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--blue-100); background: rgba(255,255,255,.92); color: var(--blue-700); border-radius: 999px; padding: .55rem .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow span { width: .5rem; height: .5rem; background: var(--blue-600); border-radius: 999px; }
.hero-section h1 { max-width: 46rem; margin: 1rem 0 0; color: var(--slate-950); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 700; }
.hero-copy { max-width: 42rem; margin: 1.25rem 0 0; color: var(--slate-600); font-size: 1.08rem; line-height: 1.75; font-weight: 400; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.75rem; }
.proof-note { max-width: 42rem; margin: 1.1rem 0 0; color: var(--slate-500); font-size: .92rem; line-height: 1.6; font-weight: 500; }
.mockup-card { border: 1px solid var(--slate-200); border-radius: 2rem; background: white; padding: .75rem; box-shadow: 0 26px 70px rgba(15,23,42,.12); }
.mockup-chrome { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--slate-200); border-bottom: 0; border-radius: 1.5rem 1.5rem 0 0; background: white; padding: .85rem 1rem; }
.mockup-title { display: flex; align-items: center; gap: .6rem; }
.mockup-title img { width: 2.25rem; height: 2.25rem; border-radius: .8rem; }
.mockup-title strong { display: block; color: var(--slate-950); }
.mockup-title small { color: var(--slate-400); font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
.dots { display: flex; gap: .35rem; }
.dots span { width: .65rem; height: .65rem; border-radius: 999px; background: var(--slate-200); }
.dots span:last-child { background: var(--blue-500); }
.mockup-content { border: 1px solid var(--slate-200); border-radius: 0 0 1.5rem 1.5rem; background: var(--slate-50); padding: 1rem; display: grid; gap: .8rem; }
.mockup-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mockup-head small { display: block; color: var(--blue-700); font-size: .7rem; font-weight: 700; letter-spacing: .15em; }
.mockup-head strong { display: block; margin-top: .25rem; font-size: 1.45rem; color: var(--slate-950); }
.mockup-head button { border-radius: 1rem; background: var(--blue-600); color: white; padding: .75rem 1rem; font-weight: 700; box-shadow: 0 10px 20px rgba(37,99,235,.18); }
.mockup-row { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; border: 1px solid var(--slate-200); background: white; padding: 1rem; border-radius: 1rem; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.mockup-row strong { display: block; color: var(--slate-950); }
.mockup-row small { display: block; margin-top: .25rem; color: var(--slate-500); font-weight: 500; }
.qty { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--slate-200); background: var(--slate-50); color: var(--slate-700); border-radius: 1rem; padding: .5rem .7rem; font-weight: 700; }
.landing-section { padding: 4rem 1rem; background: white; }
.landing-section.tinted { background: linear-gradient(180deg,#fff 0%, #eff6ff 100%); }
.landing-section > * { width: min(100%, 80rem); margin-left: auto; margin-right: auto; }
.section-copy { margin-bottom: 2rem; max-width: 48rem; }
.section-eyebrow { margin: 0; color: var(--blue-700); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.section-copy h2 { margin: .75rem 0 0; color: var(--slate-950); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; }
.section-copy p:last-child { color: var(--slate-600); font-size: 1rem; line-height: 1.7; font-weight: 400; }
.card-grid { display: grid; gap: 1rem; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.landing-card { border: 1px solid var(--slate-200); background: white; border-radius: 1.75rem; padding: 1.5rem; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.landing-card h3 { margin: .5rem 0 0; color: var(--slate-950); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; }
.landing-card p { margin: .75rem 0 0; color: var(--slate-600); font-size: .95rem; line-height: 1.7; font-weight: 400; }
.step { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 1rem; background: var(--blue-600); color: white; font-weight: 700; box-shadow: 0 12px 24px rgba(37,99,235,.18); }
.blue-bar { display: block; width: 3rem; height: .5rem; border-radius: 999px; background: var(--blue-600); }

.app-body { height: 100dvh; min-height: 100dvh; background: var(--slate-900); overflow: hidden; }
.app-root { height: 100dvh; min-height: 100dvh; }
.auth-screen { min-height: 100dvh; overflow-y: auto; display: grid; place-items: center; padding: calc(1rem + env(safe-area-inset-top,0px)) 1rem calc(1rem + env(safe-area-inset-bottom,0px)); background: radial-gradient(circle at 20% 0%, rgba(37,99,235,.22), transparent 34%), var(--slate-900); }
.auth-card { width: min(100%, 30rem); border: 1px solid rgba(255,255,255,.1); background: white; border-radius: 2rem; padding: 1.25rem; box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.auth-logo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.5rem; }
.auth-logo img { width: 3.2rem; height: 3.2rem; border-radius: 1.15rem; }
.auth-logo h1 { margin: 0; color: var(--slate-950); font-size: 1.65rem; font-weight: 700; letter-spacing: -.035em; }
.auth-logo p { margin: .1rem 0 0; color: var(--slate-500); font-weight: 500; }
.auth-card h2 { margin: 0; color: var(--slate-900); font-size: 1.35rem; font-weight: 700; }
.auth-card .muted { margin: .5rem 0 1rem; color: var(--slate-500); line-height: 1.6; font-weight: 400; }

.shell { height: 100dvh; min-height: 100dvh; display: flex; background: var(--slate-50); overflow: hidden; }
.sidebar { width: 17rem; flex: 0 0 auto; display: flex; flex-direction: column; gap: .75rem; border-right: 1px solid var(--slate-200); background: white; padding: 1rem; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.sidebar-brand img { width: 2.75rem; height: 2.75rem; border-radius: 1rem; }
.sidebar-brand strong { display: block; color: var(--slate-950); font-size: 1.25rem; font-weight: 700; }
.sidebar-brand small { display: block; color: var(--slate-400); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-button { min-height: 2.9rem; display: flex; align-items: center; gap: .75rem; width: 100%; border-radius: 1rem; padding: .75rem .9rem; background: transparent; color: var(--slate-600); font-weight: 700; text-align: left; }
.nav-button:hover { background: var(--slate-50); }
.nav-button.active { background: var(--blue-50); color: var(--blue-700); }
.nav-icon { width: 1.5rem; height: 1.5rem; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 1.5rem; }
.nav-icon .inline-svg { width: 1.25rem; height: 1.25rem; stroke-width: 2; }
.sidebar-footer { margin-top: auto; display: grid; gap: .6rem; padding-top: .75rem; border-top: 1px solid var(--slate-100); }
.status-pill { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); padding: .45rem .65rem; font-size: .75rem; font-weight: 700; }
.status-pill.ok { background: var(--emerald-50); color: var(--emerald-600); }
.status-dot { width: .5rem; height: .5rem; border-radius: 999px; background: currentColor; }
.content { flex: 1; min-width: 0; overflow: auto; padding: 1.5rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; color: var(--slate-950); font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.page-head p { margin: .45rem 0 0; color: var(--slate-500); font-weight: 500; line-height: 1.5; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stock-stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-card, .panel, .item-card, .empty-card { border: 1px solid var(--slate-200); background: white; border-radius: var(--radius-3xl); box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.stat-card { position: relative; min-height: 7.4rem; overflow: hidden; padding: 1rem; }
.stat-card-icon { width: 2.35rem; height: 2.35rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 1rem; margin-bottom: .85rem; background: rgba(255,255,255,.7); color: currentColor; box-shadow: inset 0 0 0 1px rgba(255,255,255,.56); }
.stat-card-icon .inline-svg { width: 1.25rem; height: 1.25rem; }
.stat-card small { display: block; color: var(--slate-500); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: .35rem; color: var(--slate-950); font-size: 1.8rem; font-weight: 700; letter-spacing: -.04em; }
.stat-card-items { background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%); border-color: #bfdbfe; color: #2563eb; }
.stat-card-total { background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); border-color: #cbd5e1; color: #475569; }
.stat-card-low { background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%); border-color: #fde68a; color: #d97706; }
.stat-card-empty { background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%); border-color: #fecaca; color: #dc2626; }
.stat-card-restock { background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%); border-color: #a7f3d0; color: #059669; }
.stat-card-expiry { background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%); border-color: #e9d5ff; color: #7e22ce; }
.panel { padding: 1rem; margin-bottom: 1rem; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel-title h2 { margin: 0; color: var(--slate-900); font-size: 1.2rem; font-weight: 700; }
.panel-title p { margin: .25rem 0 0; color: var(--slate-500); font-size: .9rem; font-weight: 400; }
.panel-title > .page-icon-action {
  flex: 0 0 auto;
  margin-left: auto;
}
.filter-bar { display: flex; align-items: center; gap: .55rem; overflow-x: auto; padding: .25rem .05rem .75rem; }
.category-pill { min-height: 2.6rem; display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; border: 1px solid var(--slate-200); background: white; color: var(--slate-600); border-radius: .9rem; padding: .55rem .9rem; font-weight: 700; }
.category-pill.active { border-color: var(--blue-600); background: var(--blue-600); color: white; box-shadow: 0 10px 18px rgba(37,99,235,.16); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .9rem; }
.item-card { position: relative; min-height: 11rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; padding: 2.75rem 1rem 1rem; overflow: hidden; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.item-card:hover { transform: translateY(-1px); border-color: var(--blue-100); box-shadow: 0 10px 24px rgba(15,23,42,.08); }
.item-card.selected { border: 2px solid var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 10px 24px rgba(15,23,42,.08); }
.item-card.archived { opacity: .55; filter: grayscale(.8); }
.item-stock-badge { position: absolute; top: .75rem; right: .75rem; border: 1px solid var(--slate-200); border-radius: 999px; background: white; color: var(--slate-500); padding: .3rem .55rem; font-size: .75rem; font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.item-stock-badge.low { color: var(--amber-600); border-color: #fde68a; }
.item-stock-badge.empty { color: var(--red-600); border-color: #fecaca; }
.item-icon { font-size: 3rem; line-height: 1; }
.item-name { color: var(--slate-800); text-align: center; font-weight: 700; line-height: 1.2; word-break: break-word; }
.qty-control { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--slate-200); background: rgba(255,255,255,.92); border-radius: 999px; padding: .35rem; box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.qty-button { width: 2.55rem; height: 2.55rem; border-radius: 999px; background: white; color: var(--slate-700); border: 1px solid var(--slate-200); font-weight: 700; box-shadow: 0 1px 2px rgba(15,23,42,.05); }
.qty-number { min-width: 1.8rem; text-align: center; color: var(--blue-700); font-size: 1.15rem; font-weight: 700; }
.table-wrap { overflow-x: auto; border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); }
table { width: 100%; border-collapse: collapse; background: white; }
th { background: var(--slate-100); color: var(--slate-500); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; }
th, td { padding: .75rem; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
td { color: var(--slate-700); font-size: .92rem; font-weight: 400; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .35rem .55rem; background: var(--slate-100); color: var(--slate-600); font-size: .75rem; font-weight: 700; }
.badge.blue { background: var(--blue-50); color: var(--blue-700); }
.badge.green { background: var(--emerald-50); color: var(--emerald-600); }
.badge.amber { background: var(--amber-50); color: var(--amber-600); }
.badge.red { background: var(--red-50); color: var(--red-600); }
.cart-bar { position: fixed; left: 50%; bottom: calc(.9rem + env(safe-area-inset-bottom,0px)); z-index: 30; transform: translateX(-50%); width: min(calc(100% - 1.5rem), 34rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: var(--radius-2xl); background: var(--slate-800); color: white; padding: .85rem; box-shadow: 0 20px 55px rgba(15,23,42,.32); }
.cart-count { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; background: var(--blue-500); font-size: 1.2rem; font-weight: 700; }
.cart-bar strong { display: block; }
.cart-bar small { display: block; margin-top: .15rem; color: var(--slate-300); font-weight: 400; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,23,42,.62); backdrop-filter: blur(10px); }
.modal { width: min(100%, 34rem); max-height: calc(100dvh - 2rem); overflow-y: auto; background: white; border-radius: var(--radius-3xl); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
.modal-head { padding: 1.25rem 1.25rem .9rem; border-bottom: 1px solid var(--slate-100); }
.modal-head h2 { margin: 0; color: var(--slate-900); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.modal-head p { margin: .35rem 0 0; color: var(--slate-500); font-weight: 400; line-height: 1.55; }
.modal-body { padding: 1rem 1.25rem; }
.modal-actions { display: flex; flex-direction: row-reverse; gap: .7rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--slate-100); }
.toast-stack { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom,0px)); z-index: 70; display: grid; gap: .6rem; width: min(100% - 2rem, 28rem); }
.toast { border: 1px solid var(--slate-200); background: white; color: var(--slate-700); border-radius: var(--radius-xl); padding: .85rem 1rem; box-shadow: 0 12px 30px rgba(15,23,42,.14); font-weight: 500; }
.toast.success { border-color: #bbf7d0; background: var(--emerald-50); color: var(--emerald-600); }
.toast.error { border-color: #fecaca; background: var(--red-50); color: var(--red-600); }
.toast.warning { border-color: #fde68a; background: var(--amber-50); color: var(--amber-600); }
.empty-card { min-height: 12rem; display: grid; place-items: center; padding: 2rem; color: var(--slate-500); text-align: center; font-weight: 500; }

.guided-empty-state {
  min-height: 13.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: 2.1rem 1.25rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-2xl);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  text-align: center;
  color: var(--slate-600);
}
.guided-empty-icon {
  width: 4.7rem;
  height: 4.7rem;
  display: grid;
  place-items: center;
  border-radius: 1.65rem;
  background: var(--blue-50);
  color: var(--blue-600);
}
.guided-empty-icon .inline-svg {
  width: 2.35rem;
  height: 2.35rem;
  opacity: .6;
}
.guided-empty-state h3 {
  margin: .35rem 0 0;
  color: var(--slate-950);
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.guided-empty-state p {
  max-width: 34rem;
  margin: 0;
  color: var(--slate-500);
  font-size: .98rem;
  line-height: 1.55;
  font-weight: 400;
}
.guided-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  margin-top: .35rem;
}
.employee-start-card {
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
}
.employee-start-card h2 {
  margin: 0;
  color: var(--slate-950);
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.03em;
}
.employee-start-card p {
  margin: .45rem 0 0;
  color: var(--slate-600);
  font-weight: 500;
  line-height: 1.45;
}
.danger-zone { border-color: #fecaca; background: linear-gradient(180deg, #fff, #fff7f7); }
.test-page { min-height: 100dvh; padding: 2rem; background: var(--slate-50); }
.test-page h1 { margin: 0 0 1rem; }
.test-page pre { border: 1px solid var(--slate-200); background: white; border-radius: var(--radius-xl); padding: 1rem; white-space: pre-wrap; }

@media (max-width: 900px) {
  .hero-grid, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
  .landing-actions .pill-link { display: none; }
  .shell { flex-direction: column; }
  .sidebar { width: 100%; max-height: none; flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--slate-200); padding: .65rem; }
  .sidebar-brand { margin: 0 .4rem 0 0; flex: 0 0 auto; }
  .sidebar-brand small { display: none; }
  .nav-button { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .sidebar-footer { display: none; }
  .content { padding: 1rem; padding-bottom: 5.25rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .page-head { flex-direction: column; }
  .page-head .action-row { width: 100%; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand-link span { display: none; }
  .hero-section { padding-top: 6rem; }
  .mockup-head { align-items: flex-start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .item-card { min-height: 10.5rem; padding: 2.55rem .75rem .8rem; }
  .item-icon { font-size: 2.5rem; }
  .cart-bar { flex-direction: column; align-items: stretch; }
  .cart-bar > div:first-child { display: flex; align-items: center; gap: .75rem; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-radius: 1.5rem 1.5rem 0 0; max-height: calc(100dvh - .75rem); }
  .modal-actions { flex-direction: column; }
}

/* Fullscreen checkout + manager-only shell */
.checkout-shell {
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 0%, rgba(37,99,235,.12), transparent 32%),
    var(--slate-50);
}
.checkout-topbar {
  flex: 0 0 auto;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(.85rem + env(safe-area-inset-top,0px)) 1rem .85rem;
  border-bottom: 1px solid var(--slate-200);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.checkout-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.checkout-brand img {
  width: 2.9rem;
  height: 2.9rem;
  flex: 0 0 auto;
  border-radius: 1rem;
}
.checkout-flow-brand {
  gap: .8rem;
}
.topbar-back-button {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: white;
  color: var(--slate-800);
  box-shadow: 0 1px 4px rgba(15,23,42,.08);
}
.topbar-back-button:hover {
  border-color: var(--blue-100);
  color: var(--blue-700);
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
}
.topbar-back-button .inline-svg {
  width: 1.5rem;
  height: 1.5rem;
}
.checkout-flow-brand strong {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}
.checkout-brand strong {
  display: block;
  color: var(--slate-950);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.checkout-brand small {
  display: block;
  max-width: min(58vw, 32rem);
  overflow: hidden;
  color: var(--slate-500);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-icon-action {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate-700);
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}
.manager-icon-action:hover {
  background: var(--slate-100);
  color: var(--blue-700);
  transform: translateY(-1px);
}
.manager-icon-action:focus-visible {
  outline: 3px solid var(--blue-100);
  outline-offset: 2px;
}
.manager-icon-action .inline-svg {
  width: 1.7rem;
  height: 1.7rem;
}
.checkout-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}
.checkout-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem 1.25rem 6.5rem;
}
.checkout-content .page-head {
  max-width: 84rem;
  margin: 0 auto 1rem;
}
.checkout-content .filter-bar,
.checkout-content .checkout-only-note,
.checkout-content .employee-grid,
.checkout-content .item-grid,
.checkout-content .empty-card {
  max-width: 84rem;
  margin-left: auto;
  margin-right: auto;
}
.checkout-only-note {
  margin-bottom: .75rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-2xl);
  background: white;
  color: var(--slate-600);
  padding: .85rem 1rem;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
.manager-shell .content {
  background: var(--slate-50);
}
.manager-shell .sidebar-footer .button {
  width: 100%;
  justify-content: center;
}

@media (min-width: 960px) {
  .checkout-content .item-grid {
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  }
  .checkout-content .item-card {
    min-height: 12.5rem;
  }
}

@media (max-width: 720px) {
  .checkout-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .checkout-actions {
    width: 100%;
    justify-content: space-between;
  }
  .checkout-actions .status-pill {
    min-width: 0;
  }
  .checkout-content {
    padding: 1rem .85rem 6.5rem;
  }
}

.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.25rem;
}
.employee-selector-grid {
  padding-top: .35rem;
}
.employee-card {
  min-height: 15.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .95rem;
  border: 1px solid var(--employee-border, var(--slate-200));
  border-radius: var(--radius-3xl);
  background: linear-gradient(180deg, var(--employee-bg, white) 0%, #fff 74%);
  color: var(--slate-900);
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  padding: 1.55rem 0 0;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.employee-card:hover {
  transform: translateY(-1px);
  border-color: var(--employee-border-strong, var(--blue-100));
  box-shadow: 0 14px 30px rgba(15,23,42,.09);
}
.employee-card strong {
  color: var(--slate-950);
  font-size: 1.48rem;
  line-height: 1.08;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-card small {
  color: var(--slate-500);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: .35rem;
}
.employee-tone-1 { --employee-bg: #eff6ff; --employee-border: #bfdbfe; --employee-border-strong: #93c5fd; --employee-avatar-bg: #dbeafe; --employee-accent: #2563eb; }
.employee-tone-2 { --employee-bg: #ecfdf5; --employee-border: #a7f3d0; --employee-border-strong: #6ee7b7; --employee-avatar-bg: #d1fae5; --employee-accent: #059669; }
.employee-tone-3 { --employee-bg: #fdf4ff; --employee-border: #f5d0fe; --employee-border-strong: #e879f9; --employee-avatar-bg: #fae8ff; --employee-accent: #a21caf; }
.employee-tone-4 { --employee-bg: #fff7ed; --employee-border: #fed7aa; --employee-border-strong: #fdba74; --employee-avatar-bg: #ffedd5; --employee-accent: #ea580c; }
.employee-tone-5 { --employee-bg: #f0fdfa; --employee-border: #99f6e4; --employee-border-strong: #5eead4; --employee-avatar-bg: #ccfbf1; --employee-accent: #0f766e; }
.employee-tone-6 { --employee-bg: #fef2f2; --employee-border: #fecaca; --employee-border-strong: #fca5a5; --employee-avatar-bg: #fee2e2; --employee-accent: #dc2626; }
.employee-tone-7 { --employee-bg: #f5f3ff; --employee-border: #ddd6fe; --employee-border-strong: #c4b5fd; --employee-avatar-bg: #ede9fe; --employee-accent: #7c3aed; }
.employee-tone-8 { --employee-bg: #fefce8; --employee-border: #fde68a; --employee-border-strong: #facc15; --employee-avatar-bg: #fef3c7; --employee-accent: #ca8a04; }
.employee-avatar {
  width: 5.2rem;
  height: 5.2rem;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 1.75rem;
  background: var(--employee-avatar-bg, var(--blue-50));
  color: var(--employee-accent, var(--blue-700));
  overflow: hidden;
}
.employee-avatar .inline-svg {
  width: 3.15rem;
  height: 3.15rem;
  opacity: .16;
}
.employee-avatar span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.55rem;
  font-weight: 700;
}
.inline-svg {
  width: 1.18rem;
  height: 1.18rem;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .employee-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .employee-card {
    min-height: 14.5rem;
  }
}
.label.compact {
  min-width: 12rem;
  margin: 0;
}


/* Typography cleanup: keep system fonts and reserve bold weight for hierarchy. */
:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body,
input,
select,
textarea,
td,
.hero-copy,
.landing-card p,
.section-copy p:last-child,
.auth-card .muted,
.panel-title p,
.modal-head p,
.cart-bar small {
  font-weight: 400;
}
.input,
.select,
.textarea,
.proof-note,
.mockup-row small,
.auth-logo p,
.page-head p,
.checkout-brand small,
.checkout-only-note,
.employee-card small,
.empty-card,
.toast {
  font-weight: 500;
}
.label,
th,
.badge,
.status-pill,
.category-pill,
.item-stock-badge,
.stat-card small,
.eyebrow,
.section-eyebrow,
.mockup-title small,
.mockup-head small,
.sidebar-brand small,
.pill-link,
.nav-button,
.button,
.mockup-head button,
.qty,
.qty-button,
.qty-number,
.cart-count,
.step {
  font-weight: 600;
}
.hero-section h1,
.section-copy h2,
.page-head h1,
.auth-logo h1,
.stat-card strong {
  font-weight: 800;
}
.brand-link,
.auth-card h2,
.sidebar-brand strong,
.panel-title h2,
.modal-head h2,
.checkout-brand strong,
.landing-card h3,
.item-name,
.employee-card strong,
.employee-avatar span,
.mockup-head strong,
.mockup-title strong,
.mockup-row strong,
.cart-bar strong {
  font-weight: 700;
}

.inventory-result { display: flex; flex-direction: column; align-items: flex-start; gap: .28rem; }
.inventory-result-detail { color: var(--slate-500); font-size: .78rem; font-weight: 400; white-space: nowrap; }

/* Inventory detail modal */
.modal:has(.inventory-detail) { width: min(100%, 62rem); }
.inventory-detail { display: flex; flex-direction: column; gap: 1rem; }
.inventory-detail-section { border: 1px solid var(--slate-200); border-radius: var(--radius-2xl); padding: 1rem; background: var(--slate-50); }
.inventory-detail-section .table-wrap { background: white; }
.inventory-related-item { background: white; }
.inventory-related-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .55rem; }
.stats-grid.compact { grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
@media (max-width: 640px) {
  .inventory-related-head { align-items: flex-start; flex-direction: column; }
}

/* Shopping list print/PDF support */
.print-only { display: none; }
.shopping-print-meta { margin-bottom: 1rem; color: var(--slate-700); }
.shopping-print-meta strong { display: block; color: var(--slate-950); font-size: 1.15rem; }
.shopping-print-meta span { display: block; margin-top: .2rem; font-size: .9rem; color: var(--slate-500); }
@media print {
  body { background: white !important; }
  body * { visibility: hidden !important; }
  .shopping-print-area, .shopping-print-area * { visibility: visible !important; }
  .shopping-print-area {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: white !important;
  }
  .shopping-print-area .panel-title { display: block !important; }
  .shopping-print-area .panel-title p { display: none !important; }
  .shopping-print-area .table-wrap { border: 0 !important; border-radius: 0 !important; overflow: visible !important; }
  .shopping-print-area table { width: 100% !important; border-collapse: collapse !important; }
  .shopping-print-area th, .shopping-print-area td { border-bottom: 1px solid #d1d5db !important; padding: .55rem .4rem !important; color: #111827 !important; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
}

/* Icon-only page actions */
.page-icon-action {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue-700);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.page-icon-action:hover {
  background: var(--blue-50);
  color: var(--blue-800);
  transform: translateY(-1px);
}
.page-icon-action:focus-visible {
  outline: 3px solid var(--blue-100);
  outline-offset: 2px;
}
.page-icon-action .inline-svg {
  width: 1.65rem;
  height: 1.65rem;
}
.expiry-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .28rem;
}
.expiry-cell span:last-child {
  color: var(--slate-500);
  font-size: .78rem;
  font-weight: 400;
  white-space: nowrap;
}
.stock-tabs { margin-top: .2rem; }

/* v31: table action alignment, SVG button icons, and 16px base type. */
body { font-size: 16px; }
.button .inline-svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.button-sm .inline-svg {
  width: .95rem;
  height: .95rem;
}
.cell-actions,
.cell-status {
  text-align: right;
  white-space: nowrap;
}
.cell-actions .action-row,
.action-row.action-row-end {
  justify-content: flex-end;
}
.cell-status .badge {
  justify-content: center;
}
@media (max-width: 640px) {
  .cell-actions,
  .cell-status {
    white-space: normal;
  }
  .cell-actions .action-row,
  .action-row.action-row-end {
    justify-content: flex-start;
  }
}

/* v35: inventory count table layout. */
.cell-number {
  text-align: right;
  white-space: nowrap;
}
.cell-counted {
  text-align: right;
  white-space: nowrap;
}
.inventory-count-input {
  width: 7rem;
  min-width: 6rem;
  text-align: right;
}
.cell-counted .inventory-count-input {
  display: inline-block;
}
@media (max-width: 640px) {
  .cell-number,
  .cell-counted {
    text-align: left;
  }
  .inventory-count-input {
    width: 6rem;
    min-width: 5.5rem;
  }
}

/* v45: action-lifecycle guarded write-action feedback */

body.has-action-pending {
  cursor: progress;
}

.is-action-pending {
  opacity: .62;
  pointer-events: none;
  cursor: progress;
}

.button.is-action-pending::after,
.page-icon-action.is-action-pending::after {
  content: "";
  width: .8em;
  height: .8em;
  margin-left: .45rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  display: inline-block;
  vertical-align: -0.12em;
  animation: kolko-spin .7s linear infinite;
}

.page-icon-action.is-action-pending::after {
  margin-left: 0;
  position: absolute;
  right: -.15rem;
  bottom: -.15rem;
  width: .65em;
  height: .65em;
}

@keyframes kolko-spin {
  to { transform: rotate(360deg); }
}

/* v48: modern custom UI polish and responsive manager navigation. */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.52;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font-size: 1rem;
}
.button {
  min-height: 2.95rem;
  padding: .82rem 1.08rem;
  border-radius: 1rem;
  font-size: .98rem;
}
.button-sm {
  min-height: 2.45rem;
  padding: .55rem .78rem;
  font-size: .92rem;
  border-radius: .85rem;
}
.input,
.select,
.textarea {
  min-height: 3rem;
  padding: .78rem 1rem;
  font-size: 1rem;
  border-radius: 1rem;
  background: white;
}
.label {
  gap: .48rem;
  font-size: .92rem;
  color: var(--slate-700);
}
.form-grid { gap: 1rem; }
.shell.manager-shell {
  background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}
.sidebar {
  width: 18.5rem;
  padding: 1.15rem;
  gap: .95rem;
  border-right-color: rgba(203,213,225,.75);
  box-shadow: 1px 0 22px rgba(15,23,42,.035);
}
.sidebar-nav {
  display: grid;
  gap: .28rem;
}
.sidebar-brand {
  margin-bottom: .65rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--slate-100);
}
.sidebar-brand img {
  width: 3rem;
  height: 3rem;
}
.sidebar-brand strong { font-size: 1.28rem; }
.nav-button {
  min-height: 3.2rem;
  padding: .82rem .95rem;
  border: 1px solid transparent;
  border-radius: 1.05rem;
  font-size: 1rem;
  font-weight: 650;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.nav-button:hover {
  background: var(--slate-50);
  border-color: var(--slate-200);
}
.nav-button.active {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
  color: var(--blue-700);
  box-shadow: 0 10px 24px rgba(37,99,235,.08);
}
.nav-icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-basis: 1.65rem;
}
.nav-icon .inline-svg {
  width: 1.33rem;
  height: 1.33rem;
}
.content {
  padding: 2rem;
}
.page-head {
  margin-bottom: 1.45rem;
  align-items: center;
}
.page-head h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  letter-spacing: -.045em;
}
.page-head p {
  max-width: 58rem;
  margin-top: .5rem;
  font-size: 1rem;
  color: var(--slate-600);
}
.panel {
  padding: 1.25rem;
  margin-bottom: 1.4rem;
  border-color: rgba(203,213,225,.86);
  box-shadow: 0 10px 30px rgba(15,23,42,.045);
}
.panel-title {
  margin-bottom: 1.1rem;
  align-items: flex-start;
}
.panel-title h2 {
  font-size: 1.32rem;
  letter-spacing: -.02em;
}
.panel-title p {
  font-size: .98rem;
  line-height: 1.55;
}
.stats-grid {
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.stat-card {
  min-height: 8.4rem;
  padding: 1.15rem;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.stat-card-icon {
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: .95rem;
}
.stat-card small {
  font-size: .76rem;
}
.stat-card strong {
  margin-top: .42rem;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
}
.filter-bar {
  gap: .7rem;
  padding: .15rem .05rem 1rem;
  margin-bottom: .15rem;
}
.category-pill {
  min-height: 2.85rem;
  padding: .65rem 1rem;
  border-radius: 1rem;
  font-size: .98rem;
}
.table-wrap {
  border-color: rgba(203,213,225,.9);
  background: white;
  box-shadow: 0 1px 2px rgba(15,23,42,.035);
}
table {
  font-size: 1rem;
}
th {
  padding: .95rem 1rem;
  font-size: .78rem;
  background: #f8fafc;
  color: var(--slate-600);
}
td {
  padding: .95rem 1rem;
  font-size: .98rem;
  color: var(--slate-700);
}
tbody tr:hover td {
  background: #fcfdff;
}
.badge {
  padding: .42rem .68rem;
  font-size: .84rem;
  font-weight: 650;
}
.status-pill {
  padding: .52rem .75rem;
  font-size: .84rem;
}
.action-row {
  gap: .7rem;
}
.page-icon-action,
.manager-icon-action,
.mobile-menu-button,
.mobile-menu-close {
  -webkit-tap-highlight-color: transparent;
}
.page-icon-action {
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 1rem;
}
.page-icon-action .inline-svg {
  width: 1.78rem;
  height: 1.78rem;
}
.checkout-topbar {
  min-height: 5rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.checkout-content {
  padding: 1.5rem 1.35rem 6.75rem;
}
.employee-grid {
  gap: 1.45rem;
}
.employee-card {
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}
.item-grid {
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
}
.item-card {
  min-height: 11.8rem;
  border-color: rgba(203,213,225,.9);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}
.item-name {
  font-size: 1.02rem;
}
.modal {
  border-radius: 1.6rem;
}
.modal-head,
.modal-body,
.modal-actions {
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}
.modal-body { padding-top: 1.15rem; padding-bottom: 1.15rem; }
.modal-head h2 { font-size: 1.55rem; }
.toast {
  font-size: .98rem;
  padding: .95rem 1.1rem;
}
.manager-mobile-topbar {
  display: none;
}
.mobile-menu-close {
  display: none;
}
.mobile-menu-button,
.mobile-menu-close {
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: white;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 4px rgba(15,23,42,.07);
}
.mobile-menu-button .inline-svg,
.mobile-menu-close .inline-svg {
  width: 1.55rem;
  height: 1.55rem;
}
.manager-mobile-title {
  min-width: 0;
  display: grid;
  gap: .08rem;
}
.manager-mobile-title strong {
  overflow: hidden;
  color: var(--slate-950);
  font-size: 1.15rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manager-mobile-title small {
  overflow: hidden;
  color: var(--slate-500);
  font-size: .84rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .stock-stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .stock-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .shell.manager-shell {
    flex-direction: column;
  }
  .manager-mobile-topbar {
    min-height: 4.75rem;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: calc(.8rem + env(safe-area-inset-top,0px)) 1rem .8rem;
    border-bottom: 1px solid rgba(203,213,225,.78);
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(15,23,42,.06);
    z-index: 35;
  }
  .manager-shell .sidebar {
    position: fixed;
    inset: 0;
    z-index: 60;
    width: auto;
    height: 100dvh;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding: calc(1rem + env(safe-area-inset-top,0px)) 1rem calc(1rem + env(safe-area-inset-bottom,0px));
    border: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1.25rem) scale(.985);
    transition: opacity .18s ease, transform .18s ease;
    box-shadow: none;
  }
  .manager-shell.mobile-menu-open .sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .manager-shell .sidebar-brand {
    margin: 0;
    padding: 0 0 1rem;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: .85rem;
    align-items: center;
  }
  .manager-shell .sidebar-brand small {
    display: block;
  }
  .manager-shell .sidebar-brand img {
    width: 3.25rem;
    height: 3.25rem;
  }
  .mobile-menu-close {
    display: inline-flex;
  }
  .sidebar-nav {
    gap: .55rem;
  }
  .manager-shell .nav-button {
    width: 100%;
    min-height: 4rem;
    flex: 0 0 auto;
    padding: .95rem 1rem;
    border: 1px solid var(--slate-200);
    background: white;
    border-radius: 1.15rem;
    font-size: 1.08rem;
    white-space: normal;
    box-shadow: 0 1px 3px rgba(15,23,42,.045);
  }
  .manager-shell .nav-button.active {
    border-color: #bfdbfe;
    background: #eff6ff;
  }
  .manager-shell .sidebar-footer {
    display: grid;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1rem;
  }
  .content {
    padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom,0px));
  }
  .page-head {
    margin-bottom: 1.2rem;
  }
  .page-head h1 {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }
  .stats-grid,
  .stock-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  .panel-title {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-title .action-row,
  .page-head .action-row {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
  }
  .table-wrap thead {
    display: none;
  }
  .table-wrap tbody {
    display: grid;
    gap: .85rem;
  }
  .table-wrap tr {
    overflow: hidden;
    border: 1px solid var(--slate-200);
    border-radius: 1.1rem;
    background: white;
    box-shadow: 0 8px 20px rgba(15,23,42,.045);
  }
  .table-wrap td {
    min-height: 2.85rem;
    display: grid;
    grid-template-columns: minmax(7.5rem, 42%) minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .72rem .85rem;
    border-bottom: 1px solid var(--slate-100);
    color: var(--slate-800);
    font-size: .98rem;
    text-align: right;
  }
  .table-wrap td:last-child {
    border-bottom: 0;
  }
  .table-wrap td::before {
    content: attr(data-label);
    color: var(--slate-500);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-align: left;
    text-transform: uppercase;
  }
  .table-wrap td[colspan] {
    display: block;
    padding: 1rem;
    text-align: center;
  }
  .table-wrap td[colspan]::before {
    content: none;
  }
  .table-wrap .cell-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    white-space: normal;
  }
  .table-wrap .cell-actions::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--slate-500);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-align: left;
    text-transform: uppercase;
  }
  .table-wrap .cell-actions .action-row,
  .table-wrap .action-row.action-row-end {
    justify-content: flex-end;
    gap: .5rem;
  }
  .table-wrap .cell-status,
  .table-wrap .cell-number,
  .table-wrap .cell-counted {
    text-align: right;
  }
  .inventory-count-input {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .content {
    padding-left: .85rem;
    padding-right: .85rem;
  }
  .stats-grid,
  .stock-stats-grid {
    grid-template-columns: 1fr;
  }
  .page-head h1 {
    font-size: 1.8rem;
  }
  .page-head p,
  .panel-title p {
    font-size: .96rem;
  }
  .panel {
    border-radius: 1.15rem;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .8rem;
  }
  .item-card {
    min-height: 10.75rem;
    padding-left: .8rem;
    padding-right: .8rem;
  }
  .item-icon {
    font-size: 2.6rem;
  }
  .modal-actions {
    flex-direction: column;
  }
  .toast-stack {
    right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom,0px));
    width: calc(100% - 1.5rem);
  }
}

/* v49 compact manager header and KPI polish */
.section-head-card {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding: .9rem 1rem .9rem 1.15rem;
  border: 1px solid rgba(203,213,225,.9);
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}
.section-head-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.section-head-title span {
  overflow: hidden;
  color: var(--slate-950);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-head-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
}
.section-head-card .page-icon-action {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: .95rem;
}
.section-head-card .page-icon-action .inline-svg {
  width: 1.65rem;
  height: 1.65rem;
}
.stock-stats-grid .stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .72rem;
  min-height: 8.75rem;
  padding: 1.15rem .95rem;
}
.stock-stats-grid .stat-card-icon {
  margin: 0;
}
.stock-stats-grid .stat-card small {
  line-height: 1.25;
  letter-spacing: .105em;
}
.stock-stats-grid .stat-card strong {
  margin-top: 0;
  line-height: 1;
}
@media (max-width: 900px) {
  .section-head-card {
    min-height: 3.9rem;
    margin-bottom: 1rem;
    padding: .8rem .9rem;
    border-radius: 1.15rem;
  }
  .section-head-title span {
    font-size: 1.15rem;
  }
  .section-head-actions {
    gap: .5rem;
  }
  .section-head-card .page-icon-action {
    width: 2.7rem;
    height: 2.7rem;
  }
}
@media (max-width: 560px) {
  .section-head-card {
    margin-bottom: .9rem;
  }
  .stock-stats-grid .stat-card {
    min-height: 7.6rem;
  }
}

/* v50: full-width manager sidebar navigation */
.manager-shell .sidebar {
  align-items: stretch;
}
.manager-shell .sidebar-nav {
  width: 100%;
  max-width: none;
  align-self: stretch;
}
.manager-shell .nav-button {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  box-sizing: border-box;
}
.manager-shell .nav-button span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.manager-shell .sidebar-footer {
  width: 100%;
  max-width: none;
}
.manager-shell .sidebar-footer .button,
.manager-shell .sidebar-footer .status-pill {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .manager-shell .sidebar {
    align-items: stretch;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }
  .manager-shell .sidebar-brand {
    width: 100%;
    max-width: none;
  }
  .manager-shell .sidebar-nav {
    display: grid;
    width: 100%;
    max-width: none;
    gap: .65rem;
    align-self: stretch;
  }
  .manager-shell .nav-button {
    width: 100%;
    min-height: 3.85rem;
    padding: .95rem 1rem;
    border-radius: 1rem;
  }
  .manager-shell .nav-button::after {
    content: '›';
    margin-left: auto;
    color: var(--slate-400);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1;
  }
  .manager-shell .nav-button.active::after {
    color: var(--blue-600);
  }
  .manager-shell .sidebar-footer {
    width: 100%;
    max-width: none;
  }
  .manager-shell .sidebar-footer .button {
    min-height: 3.35rem;
    justify-content: center;
  }
  .manager-shell .sidebar-footer .status-pill {
    justify-content: flex-start;
  }
}

/* v52 — consumption checkout employee cards */
.employee-select-card {
  justify-content: center;
  padding: 2rem 1.25rem;
  cursor: pointer;
  min-height: 13.75rem;
}
.employee-select-card:focus-visible {
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 3px;
}
.employee-select-card .employee-avatar {
  margin-bottom: .15rem;
}
@media (max-width: 640px) {
  .employee-select-card {
    min-height: 12.75rem;
    padding: 1.75rem 1rem;
  }
}

/* v54 — checkout success confirmation + immediate item correction */
.checkout-confirmation-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}
.checkout-confirmation-card {
  width: min(100%, 46rem);
  display: grid;
  gap: 1.1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-3xl);
  background: rgba(255,255,255,.96);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 20px 60px rgba(15,23,42,.12);
  text-align: center;
}
.checkout-success-icon {
  width: 6rem;
  height: 6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 2rem;
  background: var(--emerald-50);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 1px #bbf7d0;
}
.checkout-success-icon .inline-svg {
  width: 3.5rem;
  height: 3.5rem;
}
.checkout-confirmation-card h1 {
  margin: 0;
  color: var(--slate-950);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 750;
  letter-spacing: -.055em;
}
.checkout-confirmation-card p {
  margin: 0;
  color: var(--slate-500);
  font-weight: 500;
  line-height: 1.55;
}
.checkout-confirmation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  text-align: left;
}
.checkout-confirmation-summary > div {
  border: 1px solid var(--slate-200);
  border-radius: 1.25rem;
  background: var(--slate-50);
  padding: .9rem 1rem;
}
.checkout-confirmation-summary span {
  display: block;
  color: var(--slate-500);
  font-size: .8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.checkout-confirmation-summary strong {
  display: block;
  margin-top: .3rem;
  color: var(--slate-900);
  font-size: 1.05rem;
  font-weight: 700;
}
.checkout-confirmation-list {
  display: grid;
  gap: .7rem;
  text-align: left;
}
.checkout-confirmation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1.35rem;
  background: white;
  padding: .9rem;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
}
.checkout-confirmation-item-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.checkout-confirmation-item-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  background: var(--blue-50);
  font-size: 1.65rem;
}
.checkout-confirmation-item-main strong {
  display: block;
  color: var(--slate-900);
  font-size: 1.05rem;
  font-weight: 700;
}
.checkout-confirmation-item-main small {
  display: block;
  margin-top: .15rem;
  color: var(--slate-500);
  font-weight: 500;
}
.checkout-confirmation-item-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex: 0 0 auto;
}
.checkout-confirmation-help {
  border: 1px solid var(--amber-100);
  border-radius: 1.25rem;
  background: var(--amber-50);
  padding: .85rem 1rem;
  color: var(--amber-700) !important;
  text-align: left;
}
.checkout-confirmation-done {
  justify-self: stretch;
}
@media (max-width: 640px) {
  .checkout-confirmation-screen { padding: .75rem 0; place-items: start stretch; }
  .checkout-confirmation-card { border-radius: 1.5rem; padding: 1rem; }
  .checkout-confirmation-summary { grid-template-columns: 1fr; }
  .checkout-confirmation-item { align-items: stretch; flex-direction: column; }
  .checkout-confirmation-item-side { justify-content: space-between; }
  .checkout-confirmation-item-side .button { flex: 1 1 auto; justify-content: center; }
}

/* v56 cloud lock overlay */
.cloud-lock-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(10px);
}

.cloud-lock-card {
  width: min(100%, 460px);
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.cloud-lock-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #1d4ed8;
  background: #eff6ff;
}

.cloud-lock-icon .inline-svg {
  width: 42px;
  height: 42px;
}

.cloud-lock-card h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.cloud-lock-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.lock-countdown {
  margin: 1.35rem auto 0;
  width: fit-content;
  min-width: 120px;
  border-radius: 999px;
  border: 1px solid rgba(29, 78, 216, 0.22);
  background: #dbeafe;
  color: #1e40af;
  padding: 0.75rem 1.25rem;
  font-size: 1.7rem;
  line-height: 1;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

/* Admin portal */
.admin-body {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--slate-50);
}
.admin-body .admin-root {
  width: 100%;
  min-height: 100dvh;
}
.admin-body .admin-shell {
  min-height: 100dvh;
  overflow: visible;
}
.admin-body .auth-screen {
  min-height: 100dvh;
}
.admin-root { width: 100%; min-height: 100vh; }
.admin-shell { display: block; }
.full-width-content { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 1rem 0 2rem; }
.compact-actions { justify-content: flex-end; }
.toast.inline { position: static; display: inline-flex; margin: .5rem 0 1rem; }
.one-time-key textarea, .monospace { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; }
.table-actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.icon-button.danger { color: #b42318; border-color: rgba(180,35,24,.25); }
.admin-hotel-card .stats-grid { margin-bottom: 1rem; }
@media (max-width: 760px) {
  .full-width-content { width: min(100% - 1rem, 1180px); padding-top: .5rem; }
  .compact-actions { width: 100%; justify-content: flex-start; }
}

.checkout-start-wrap {
  width: min(100%, 30rem);
  margin: 1.25rem auto 0;
}
.employee-start-card {
  min-height: 17rem;
  cursor: pointer;
  justify-content: center;
  padding: 1.6rem;
}
.employee-start-card small {
  max-width: 22rem;
  text-align: center;
  white-space: normal;
}

/* v90 layout stability: keep shell chrome stable while only main content changes. */
.manager-mobile-topbar,
.checkout-topbar {
  flex: 0 0 auto;
}
.content,
.checkout-content,
.sidebar {
  scroll-behavior: auto;
}

/* v94: compact activity logs with calmer typography, date accordions, item chips and details. */
.activity-accordion { display: grid; gap: .75rem; }
.activity-date-group {
  border: 1px solid rgba(203,213,225,.78);
  border-radius: 1.1rem;
  background: rgba(255,255,255,.96);
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15,23,42,.045);
}
.activity-date-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: linear-gradient(90deg, rgba(239,246,255,.95), rgba(248,250,252,.98));
  color: var(--slate-800);
  padding: .88rem 1rem;
  cursor: pointer;
  text-align: left;
}
.activity-date-header:focus-visible { outline: 3px solid rgba(59,130,246,.24); outline-offset: -3px; }
.activity-date-label {
  color: var(--slate-700);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.activity-date-meta { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.activity-date-badge { white-space: nowrap; }
.activity-date-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--slate-500);
  transition: transform .16s ease;
}
.activity-date-group.open .activity-date-chevron { transform: rotate(180deg); }
.activity-date-body { padding: .35rem .35rem .45rem; }
.activity-date-body[hidden] { display: none; }
.activity-table-wrap tbody tr.activity-log-row { cursor: pointer; }
.activity-table-wrap tbody tr.activity-log-row:focus { outline: 3px solid rgba(59,130,246,.24); outline-offset: -3px; }
.activity-table-wrap tbody tr.activity-log-row:hover td { background: #f8fbff; }
.activity-time-cell strong { color: var(--slate-900); font-weight: 650; }
.activity-employee-name { color: var(--slate-800); font-weight: 600; }
.activity-item-summary { display: grid; gap: .38rem; min-width: 0; }
.activity-item-summary strong { color: var(--slate-900); font-weight: 600; }
.activity-item-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
.activity-item-chip {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  max-width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  background: #F3F4F6;
  color: #1F2937;
  padding: .2rem .26rem .2rem .48rem;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
}
.activity-item-chip-icon { flex: 0 0 auto; line-height: 1; }
.activity-item-chip-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.activity-item-chip-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .25rem;
  border-radius: 999px;
  background: #1F2937;
  color: #FFFFFF;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}
.activity-item-chip-more {
  padding: .25rem .58rem;
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #3730A3;
  font-weight: 600;
  white-space: nowrap;
}
.activity-detail-item { display: inline-flex; align-items: center; gap: .42rem; color: var(--slate-800); font-weight: 600; }
.activity-detail-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 .32rem;
  border-radius: 999px;
  background: #1F2937;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.detail-stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.detail-stat-grid .stat-card { min-height: auto; align-items: flex-start; text-align: left; }
.detail-stat-grid .stat-card strong { font-size: .98rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }

@media (max-width: 760px) {
  .activity-date-header { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .activity-date-meta { width: 100%; justify-content: space-between; }
  .activity-table-wrap .activity-log-row td:nth-child(1) { border-top-left-radius: 1.1rem; border-top-right-radius: 1.1rem; }
  .detail-stat-grid { grid-template-columns: 1fr; }
}

.activation-request-status-grid { margin-bottom: .85rem; }
.activation-request-card { margin-top: .85rem; background: var(--slate-50); border-style: dashed; box-shadow: none; }
.activation-request-card .panel-title { margin-bottom: .85rem; }

/* v97: admin hotel accordion */
.admin-hotel-card { padding: 0; overflow: hidden; }
.admin-hotel-header {
  width: 100%;
  border: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  color: var(--slate-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  text-align: left;
}
.admin-hotel-header:focus-visible { outline: 3px solid rgba(59,130,246,.24); outline-offset: -3px; }
.admin-hotel-title { display: grid; gap: .18rem; min-width: 0; }
.admin-hotel-title strong { font-size: 1.05rem; font-weight: 760; color: var(--slate-900); }
.admin-hotel-title small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.admin-hotel-meta { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; }
.admin-hotel-chevron { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; color: var(--slate-500); font-size: 1.2rem; transition: transform .16s ease; }
.admin-hotel-card.open .admin-hotel-chevron { transform: rotate(180deg); }
.admin-hotel-body { padding: 0 1.15rem 1.15rem; }
.admin-hotel-body[hidden] { display: none; }
.admin-hotel-actions { margin: .15rem 0 .9rem; }
@media (max-width: 760px) {
  .admin-hotel-header { align-items: flex-start; flex-direction: column; }
  .admin-hotel-meta { flex-wrap: wrap; }
}
.guided-empty-state.compact { min-height: auto; padding: 1.25rem; margin-bottom: .9rem; }
.guided-empty-state.compact h3 { font-size: 1.15rem; }
.guided-empty-state.compact p { max-width: 42rem; }
.activation-request-readonly-card { display: grid; gap: .85rem; }
.activation-request-readonly-card .activation-request-status-grid { margin-bottom: 0; }

/* v100: activation request details polish */
.activation-request-readonly-card { display: grid; gap: 1rem; }
.activation-request-readonly-card .guided-empty-state.compact { margin-bottom: 0; }
.activation-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem .8rem;
  margin: 0;
}
.activation-detail-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, .58fr) minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  min-width: 0;
  padding: .78rem .9rem;
  border: 1px solid var(--slate-200);
  border-radius: 1.1rem;
  background: #fff;
}
.activation-detail-row dt {
  margin: 0;
  color: var(--slate-500);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.activation-detail-row dd {
  margin: 0;
  min-width: 0;
  color: var(--slate-900);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: normal;
}
.activation-detail-value.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.admin-activation-details { margin-bottom: .9rem; }
.activation-request-note {
  display: grid;
  gap: .25rem;
  margin: .75rem 0 .9rem;
  padding: .75rem .9rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: #fff;
}
.activation-request-note strong {
  color: var(--slate-600);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activation-request-note p {
  margin: 0;
  color: var(--slate-700);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .activation-details-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .activation-detail-row { grid-template-columns: 1fr; gap: .28rem; }
}

/* v101: activation request UX cleanup */
.activation-request-panel { border-color: rgba(37, 99, 235, .18); }
.activation-request-details-block {
  display: grid;
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, .055), rgba(248, 250, 252, .9));
}
.activation-request-details-heading {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--blue-700);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.activation-request-details-heading span {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
}
.activation-request-details-block .activation-detail-row {
  background: rgba(255, 255, 255, .92);
}
.activation-request-next-step {
  margin: .1rem 0 0;
  color: var(--slate-700);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.45;
}

/* v102: activation request status and key-entry polish */
.activation-key-entry-card {
  display: grid;
  gap: .65rem;
  padding: 1rem;
  border: 1px solid rgba(16, 185, 129, .2);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(16, 185, 129, .06), rgba(248, 250, 252, .9));
}
.activation-key-entry-card .form-grid { margin: 0; }
.button.button-secondary.danger { color: var(--red-600); border-color: rgba(220, 38, 38, .28); }
.button.button-secondary.danger:hover { background: var(--red-50); }

/* v103: simplified activation flow */
.activation-request-simple-note {
  display: grid;
  gap: .3rem;
  margin-bottom: .9rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, .055), rgba(248, 250, 252, .9));
}
.activation-request-simple-note strong {
  color: var(--blue-700);
  font-size: .95rem;
  font-weight: 700;
}
.activation-request-simple-note p {
  margin: 0;
  color: var(--slate-700);
  font-size: .95rem;
  line-height: 1.45;
}
.activation-key-entry-heading {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.activation-key-entry-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  color: var(--green-700);
  border-radius: .85rem;
  background: rgba(16, 185, 129, .1);
}
.activation-key-entry-heading h3 {
  margin: 0;
  color: var(--slate-900);
  font-size: 1rem;
  font-weight: 750;
}
.activation-key-entry-heading p {
  margin: .15rem 0 0;
  color: var(--slate-600);
  font-size: .92rem;
  line-height: 1.4;
}
