:root {
  --prototype-bg: #080d1f;
  --prototype-landing: #080b14;
  --prototype-panel: #0f1831;
  --prototype-overlay: #0d162e;
  --prototype-text: #f8fafc;
  --prototype-muted: #8290b3;
  --prototype-landing-muted: #96a3b8;
  --prototype-border: rgba(255, 255, 255, .09);
  --prototype-border-strong: rgba(255, 255, 255, .16);
  --prototype-blue: #0051cc;
  --prototype-cyan: #00c8f0;
  --prototype-success: #42d9a3;
  --prototype-warning: #ffbf47;
  --prototype-danger: #ff6b6b;
  --prototype-shadow: 0 24px 70px rgba(3, 7, 19, .48);
  --prototype-page-gutter: 20px;
}

* { box-sizing: border-box; }

html { width: 100%; max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; color-scheme: dark; scroll-behavior: smooth; }

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  background:
    radial-gradient(circle at 85% 5%, rgba(0, 200, 240, .09), transparent 25rem),
    linear-gradient(180deg, var(--prototype-landing), var(--prototype-bg));
  color: var(--prototype-text);
  font-family: Inter, system-ui, sans-serif;
}

main { width: 100%; min-width: 0; min-height: calc(100dvh - 34px); overflow-x: clip; }

body.prototype-layer-open { overflow: hidden; }
body.prototype-sidebar-open { overflow: hidden; }

button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

button, a, input, select { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid rgba(0, 200, 240, .55);
  outline-offset: 3px;
}

[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;
}

.prototype-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  transform: translateY(-150%);
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--prototype-cyan);
  color: #04101f;
  font-weight: 700;
  transition: transform .18s ease;
}

.prototype-skip-link:focus { transform: translateY(0); }

.prototype-notice {
  min-height: 34px;
  padding: 8px var(--prototype-page-gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 200, 240, .16);
  background: rgba(0, 200, 240, .055);
  color: #aeefff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.prototype-notice-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--prototype-cyan);
  box-shadow: 0 0 0 4px rgba(0, 200, 240, .1);
}

.inventory-scenario-control {
  width: min(calc(100% - 32px), 1180px);
  margin: 12px auto 0;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 260px) minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  border: 1px dashed rgba(0, 200, 240, .32);
  border-radius: 10px;
  background: rgba(0, 200, 240, .04);
}

.inventory-scenario-control label { color: var(--prototype-cyan); font-size: .6875rem; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.inventory-scenario-control select { width: 100%; min-height: 42px; padding: 0 34px 0 11px; border: 1px solid var(--prototype-border); border-radius: 8px; background: var(--prototype-panel); color: var(--prototype-text); }
.inventory-scenario-control small { color: var(--prototype-muted); font-size: .6875rem; }
.guest-draft-warning.signed-in-state { border-color: rgba(66, 217, 163, .26); background: rgba(66, 217, 163, .065); }
.guest-draft-warning.signed-in-state .guest-draft-warning-icon { background: rgba(66, 217, 163, .12); color: var(--prototype-success); }

.prototype-header {
  width: min(calc(100% - 40px), 1180px);
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--prototype-border);
}

.prototype-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--prototype-text);
  text-decoration: none;
}

.prototype-brand-mark,
.prototype-modal-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan));
  color: white;
  font: 800 17px Syne, sans-serif;
  box-shadow: 0 10px 24px rgba(0, 81, 204, .22);
}

.prototype-brand strong,
.prototype-brand small { display: block; }
.prototype-brand strong { font: 700 14px Syne, sans-serif; }
.prototype-brand small { margin-top: 2px; color: var(--prototype-muted); font-size: 10px; }

.prototype-header-actions { display: flex; align-items: center; gap: 8px; }
.prototype-header-inbox { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--prototype-muted); cursor: pointer; }
.prototype-header-inbox svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prototype-header-inbox:hover { border-color: rgba(0,200,240,.32); color: var(--prototype-cyan); }
.prototype-header-inbox b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border: 2px solid #0a1229; border-radius: 10px; background: var(--prototype-cyan); color: #041126; font-size: 8px; }
.prototype-desktop-menu-button { order: -1; }
.prototype-header-context { min-width: 0; margin: 0 auto 0 24px; padding-left: 18px; border-left: 1px solid var(--prototype-border); }
.prototype-header-context small, .prototype-header-context strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prototype-header-context small { color: var(--prototype-cyan); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prototype-header-context strong { max-width: 320px; margin-top: 3px; font-size: 12px; }

.prototype-icon-button,
.prototype-account-button,
.prototype-back-button,
.prototype-secondary-button,
.prototype-primary-button,
.prototype-text-button {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--prototype-border);
  color: var(--prototype-text);
}

.prototype-icon-button,
.prototype-back-button {
  width: 44px;
  flex: 0 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, .035);
  font-size: 20px;
}

.prototype-account-button {
  gap: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 700;
}

.prototype-account-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--prototype-success);
}

body[data-session-scenario="signed-in"] #prototypeStatesButton { display: inline-grid; }
body[data-session-scenario="signed-in"] .prototype-account-button { min-width: 96px; padding: 0 11px; border-color: rgba(0,200,240,.24); background: rgba(0,200,240,.055); }
body[data-session-scenario="signed-in"] .prototype-account-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(0,200,240,.34); border-radius: 50%; background: linear-gradient(135deg,#173e70,#0c7892); color: white; font-size: 8px; font-weight: 800; }

.prototype-sliders-icon,
.prototype-search-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.prototype-sliders-icon::before,
.prototype-sliders-icon::after {
  position: absolute;
  left: 1px;
  right: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.prototype-sliders-icon::before { top: 5px; box-shadow: 0 7px currentColor; }
.prototype-sliders-icon::after { width: 4px; height: 4px; top: 3px; left: 5px; border-radius: 50%; box-shadow: 6px 7px currentColor; }

.prototype-state-menu {
  position: fixed;
  z-index: 2100;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  width: min(86vw, 320px);
  max-width: 320px;
  height: 100dvh;
  max-height: 100dvh;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--prototype-border-strong);
  border-width: 0 1px 0 0;
  border-radius: 0;
  background: #101a36;
  box-shadow: var(--prototype-shadow);
  transform: translateX(-104%);
  transition: transform .24s cubic-bezier(.22, .61, .36, 1);
}
.prototype-state-menu.prototype-state-menu-open { transform: translateX(0); }

.prototype-state-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prototype-state-menu-heading-actions { display: flex; align-items: center; gap: 6px; }
.prototype-state-menu .prototype-state-menu-pin { width: 40px; min-height: 40px; padding: 0; display: none; place-items: center; border: 1px solid var(--prototype-border); color: var(--prototype-muted); }
.prototype-state-menu-pin svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prototype-state-menu-pin[aria-pressed="true"] { border-color: rgba(0,200,240,.38); background: rgba(0,200,240,.1); color: var(--prototype-cyan); }
.prototype-state-menu-brand { color: var(--prototype-text); font: 800 18px Syne,sans-serif; text-decoration: none; letter-spacing: -.02em; }
.prototype-state-menu-brand:hover { color: var(--prototype-cyan); }
.prototype-state-menu strong { display: block; padding: 8px 10px; font: 700 14px Syne, sans-serif; }
.prototype-state-menu .prototype-state-menu-close { width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--prototype-border); color: var(--prototype-text); text-align: center; font-size: 22px; }
.prototype-state-menu > small { display: block; padding: 0 10px 8px; color: var(--prototype-muted); font-size: 10px; line-height: 1.45; }
.prototype-state-menu button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: var(--prototype-muted);
  text-align: left;
  font-size: 12px;
}
.prototype-state-menu button:hover { background: rgba(255, 255, 255, .05); color: var(--prototype-text); }
.prototype-state-menu button:disabled { opacity: .42; }
.authenticated-column-settings { margin: 5px 0; padding: 0; position: relative; }
.authenticated-column-settings[hidden] { display: none; }
.authenticated-column-settings p { margin: 0 0 3px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }
.authenticated-column-settings label { color: var(--prototype-muted); font-size: 9px; }
.authenticated-column-settings select { width: 100%; min-height: 42px; padding: 0 9px; border: 1px solid var(--prototype-border); border-radius: 7px; background: var(--prototype-raised); color: var(--prototype-text); font-size: 11px; }
.authenticated-column-settings select option { background: #101a36; color: #f5f8ff; }
.prototype-state-menu .authenticated-column-disclosure { min-height: 42px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--prototype-border); background: rgba(255,255,255,.025); color: var(--prototype-text); }
.authenticated-column-disclosure span { transition: transform .18s ease; }
.authenticated-column-disclosure[aria-expanded="true"] span { transform: rotate(180deg); }
.authenticated-column-priority-panel { position: fixed; z-index: 2250; top: 190px; right: max(292px, calc((100vw - 1180px) / 2 + 272px)); width: 280px; max-height: min(54vh, 440px); padding: 12px; overflow-y: auto; border: 1px solid var(--prototype-border-strong); border-radius: 10px; background: #101a36; box-shadow: var(--prototype-shadow); }
.authenticated-column-priority-panel[hidden] { display: none; }
.authenticated-column-priority-panel > strong { padding: 0; color: var(--prototype-text); font-size: 12px; }
.authenticated-column-priority-panel > p { margin: 6px 0 10px; }
.authenticated-column-priority-list { margin: 3px 0 0; padding: 0; display: grid; gap: 5px; list-style: none; }
.authenticated-column-priority-list li { min-height: 40px; padding: 6px 7px 6px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--prototype-border); border-radius: 7px; background: rgba(255,255,255,.025); }
.authenticated-column-priority-list li > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--prototype-text); font-size: 10px; }
.authenticated-column-priority-list li b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: rgba(0,200,240,.09); color: var(--prototype-cyan); font-size: 9px; }
.authenticated-priority-actions { display: flex; gap: 3px; }
.authenticated-column-priority-panel .authenticated-priority-actions button { width: 30px; min-height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid var(--prototype-border); border-radius: 6px; background: rgba(255,255,255,.025); color: var(--prototype-text); text-align: center; }
.prototype-state-menu .prototype-drawer-signout { margin-top: 8px; border: 1px solid rgba(255,107,107,.24); color: var(--prototype-danger); }
.prototype-state-menu .settings-warning-action { color: var(--prototype-warning); }
.prototype-state-menu .settings-danger-action { color: var(--prototype-danger); }
.prototype-drawer-home { margin: 2px 0 4px; }
.prototype-drawer-note { margin: 12px 2px 0; padding: 12px; border: 1px solid rgba(0, 200, 240, .16); border-radius: 9px; background: rgba(0, 200, 240, .045); color: var(--prototype-muted); font-size: 10px; line-height: 1.55; }
.prototype-drawer-note strong { display: inline; padding: 0; color: var(--prototype-text); font: inherit; font-weight: 700; }
.prototype-drawer-profile { flex: 0 0 auto; min-height: 132px !important; margin: 4px 0 10px; padding: 14px !important; display: grid; justify-items: center; align-content: center; gap: 8px; border: 1px solid rgba(0,200,240,.2) !important; background: linear-gradient(145deg,rgba(0,81,204,.13),rgba(0,200,240,.055)) !important; text-align: center !important; }
.prototype-drawer-avatar { width: 68px; height: 68px; display: grid; place-items: center; border: 2px solid rgba(0,200,240,.42); border-radius: 50%; background: linear-gradient(135deg,#173e70,#0c7892); color: white; font: 800 17px Syne,sans-serif; box-shadow: 0 12px 26px rgba(0,81,204,.22); }
.prototype-drawer-profile > span:last-child strong,.prototype-drawer-profile > span:last-child small { display: block; padding: 0; }
.prototype-drawer-profile > span:last-child small { margin-top: 3px; color: var(--prototype-cyan); font-size: 9px; }
.prototype-drawer-scroll-region { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.prototype-drawer-scroll-region > button { width: 100%; min-height: 44px; border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--prototype-muted); text-align: left; font-size: 12px; }
.prototype-drawer-footer { flex: 0 0 auto; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--prototype-border); }
.prototype-drawer-footer > button { width: 100%; min-height: 46px; border: 0; border-radius: 7px; padding: 8px 10px; background: transparent; color: var(--prototype-muted); text-align: left; font-size: 12px; }
.prototype-drawer-link { display: flex !important; align-items: center; gap: 11px; color: var(--prototype-muted) !important; }
.prototype-drawer-link[hidden] { display: none !important; }
.prototype-state-menu > .prototype-drawer-link { width: 100%; min-height: 44px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 12px; text-align: left; text-decoration: none; }
.prototype-drawer-link:hover { background: rgba(0,200,240,.06) !important; color: var(--prototype-text) !important; }
.prototype-drawer-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.prototype-state-menu .prototype-drawer-signin { margin-top: 8px; min-height: 44px; border: 1px solid rgba(0, 200, 240, .28); background: linear-gradient(135deg, rgba(0, 81, 204, .28), rgba(0, 200, 240, .14)); color: var(--prototype-text); text-align: center; font-weight: 750; }
.prototype-sidebar-scrim { position: fixed; inset: 0; z-index: 2050; border: 0; background: rgba(3, 7, 19, .72); backdrop-filter: blur(3px); }
.prototype-menu-icon { width: 20px; display: grid; gap: 4px; }
.prototype-menu-icon i { width: 100%; height: 2px; display: block; border-radius: 2px; background: currentColor; }
.prototype-hamburger-button { display: grid; place-items: center; }
.prototype-hamburger-icon { width: 20px; display: grid; gap: 4px; }
.prototype-hamburger-icon i { width: 100%; height: 2px; border-radius: 2px; background: currentColor; }

.prototype-view { width: min(calc(100% - 40px), 1180px); margin: auto; padding: 62px 0 90px; }

.prototype-eyebrow {
  margin: 0;
  color: var(--prototype-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tools-hero { max-width: 720px; }
.tools-hero h1 {
  max-width: 680px;
  margin: 9px 0 14px;
  font: 800 clamp(36px, 7vw, 64px)/.98 Syne, sans-serif;
  letter-spacing: -.045em;
}
.tools-hero-copy { max-width: 590px; margin: 0; color: var(--prototype-landing-muted); font-size: 16px; line-height: 1.7; }

.resume-card {
  width: min(100%, 720px);
  min-height: 84px;
  margin-top: 32px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 200, 240, .22);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(0, 81, 204, .12), rgba(0, 200, 240, .045));
  color: var(--prototype-text);
  text-align: left;
}
.resume-card-icon { width: 44px; height: 44px; border-radius: 9px; display: flex !important; align-items: center; justify-content: center; padding: 0 0 2px; background: rgba(0, 200, 240, .1); color: var(--prototype-cyan); font-size: 20px; line-height: 1; }
.resume-card small, .resume-card strong, .resume-card span { display: block; }
.resume-card small { color: var(--prototype-cyan); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.resume-card strong { margin-top: 4px; font-size: 14px; }
.resume-card > span:nth-child(2) > span { margin-top: 3px; color: var(--prototype-muted); font-size: 11px; }
.resume-card-action { color: var(--prototype-cyan); font-size: 12px; font-weight: 700; }

.tools-section-heading {
  margin: 58px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.tools-section-heading span { color: var(--prototype-cyan); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tools-section-heading h2 { margin: 6px 0 0; font: 700 24px Syne, sans-serif; }
.tools-section-heading small { color: var(--prototype-muted); }

.tool-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.tool-card {
  min-height: 340px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--prototype-border);
  border-radius: 18px;
  background: rgba(15, 24, 49, .76);
  box-shadow: 0 14px 44px rgba(3, 7, 19, .18);
}
.tool-card-active { border-color: rgba(0, 200, 240, .25); background: linear-gradient(150deg, rgba(15, 24, 49, .94), rgba(0, 81, 204, .11)); }
.tool-card-unavailable { opacity: .72; }
.tool-card-topline { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.tool-card-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font: 800 18px Syne, sans-serif; }
.tool-card-icon-inventory { grid-template-columns: repeat(3, 5px); align-content: center; align-items: center; justify-content: center; justify-items: center; gap: 4px; background: rgba(0, 200, 240, .1); }
.tool-card-icon-inventory span { width: 5px; height: 22px; border-radius: 3px; background: var(--prototype-cyan); }
.tool-card-icon-inventory span:nth-child(2) { height: 32px; }
.tool-card-icon-pay { background: rgba(54, 242, 165, .1); color: #36f2a5; }
.tool-card-icon-expense { background: rgba(255, 191, 71, .1); color: var(--prototype-warning); }
.tool-availability { border: 1px solid var(--prototype-border); border-radius: 999px; padding: 6px 8px; color: var(--prototype-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.tool-availability-active { border-color: rgba(66, 217, 163, .25); background: rgba(66, 217, 163, .07); color: var(--prototype-success); }
.tool-card p { margin: 0; color: var(--prototype-cyan); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tool-card h3 { margin: 8px 0 10px; font: 700 22px/1.08 Syne, sans-serif; }
.tool-card div > span { color: var(--prototype-muted); font-size: 13px; line-height: 1.6; }
.tool-card-action { min-height: 48px; padding: 0 14px; border: 0; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; font-size: 12px; font-weight: 700; }
.tool-card-action-disabled { border: 1px solid var(--prototype-border); background: rgba(255, 255, 255, .025); color: var(--prototype-muted); justify-content: center; }

.tools-explanation { margin-top: 64px; padding: 30px; border: 1px solid var(--prototype-border); border-radius: 18px; background: rgba(15, 24, 49, .48); }
.tools-explanation h2 { max-width: 640px; margin: 8px 0 24px; font: 700 25px/1.2 Syne, sans-serif; }
.tools-explanation ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; }
.tools-explanation li { min-width: 0; padding: 16px; display: flex; gap: 12px; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.tools-explanation li > span { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 200, 240, .09); color: var(--prototype-cyan); font-size: 11px; font-weight: 700; }
.tools-explanation strong, .tools-explanation small { display: block; }
.tools-explanation strong { font-size: 13px; }
.tools-explanation small { margin-top: 4px; color: var(--prototype-muted); line-height: 1.45; }

.inventory-view { padding-top: 42px; }
.inventory-mobile-header { display: none; }
.inventory-shell { padding-bottom: 40px; }
.inventory-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.inventory-heading h1 { margin: 7px 0 7px; font: 700 clamp(30px, 5vw, 42px)/1 Syne, sans-serif; }
.inventory-heading > div > p:last-child { margin: 0; color: var(--prototype-muted); }
.inventory-title-display { display: flex; align-items: center; gap: 10px; }
.inventory-title-edit { min-height: 36px; flex: 0 0 auto; padding: 0 9px; border: 1px solid var(--prototype-border); border-radius: 7px; background: rgba(255, 255, 255, .025); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; }
.inventory-title-edit-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.inventory-title-edit-icon::before { content: "\270E"; font-size: 14px; line-height: 1; }
.inventory-title-form { margin: 7px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; align-items: start; }
.inventory-title-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255, 255, 255, .035); color: var(--prototype-text); outline: none; font: 600 16px Inter, sans-serif; }
.inventory-title-form input:focus { border-color: var(--prototype-cyan); box-shadow: 0 0 0 3px rgba(0, 200, 240, .08); }
.inventory-title-form .prototype-field-error { grid-column: 1 / -1; }

.prototype-primary-button,
.prototype-secondary-button,
.prototype-text-button {
  min-width: 0;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
}
.prototype-primary-button { border: 0; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; }
.prototype-secondary-button { gap: 8px; background: rgba(255, 255, 255, .035); color: var(--prototype-text); }
.prototype-text-button { border-color: transparent; background: transparent; color: var(--prototype-cyan); }

.offline-banner { margin-bottom: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255, 191, 71, .25); border-radius: 10px; background: rgba(255, 191, 71, .07); }
.offline-banner-icon { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 191, 71, .12); color: var(--prototype-warning); font-weight: 800; }
.offline-banner strong, .offline-banner span { display: block; }
.offline-banner strong { font-size: 12px; }
.offline-banner div span { margin-top: 2px; color: var(--prototype-muted); font-size: 11px; }
.storage-error-banner { margin-bottom: 16px; padding: 13px 14px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(244, 67, 54, .32); border-radius: 10px; background: rgba(244, 67, 54, .08); color: #ffd8d5; font-size: 11px; line-height: 1.55; }
.storage-error-banner strong { display: block; margin-bottom: 3px; color: #fff; font-size: 12px; }
.storage-error-action { min-height: 42px; padding: 0 14px; white-space: nowrap; }

.guest-draft-warning { margin-bottom: 16px; padding: 14px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid rgba(0, 200, 240, .22); border-radius: 11px; background: rgba(0, 81, 204, .08); }
.guest-draft-warning-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(0, 200, 240, .12); color: var(--prototype-cyan); font-weight: 800; }
.guest-draft-warning strong { display: block; font-size: 12px; }
.guest-draft-warning p { margin: 3px 0 0; color: var(--prototype-muted); font-size: 10px; line-height: 1.5; }
.guest-draft-warning button { min-height: 40px; padding: 0 12px; border: 1px solid rgba(0, 200, 240, .25); border-radius: 8px; background: rgba(0, 200, 240, .08); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; }
.guest-draft-warning .guest-draft-save { min-height: 46px; padding: 0 16px; justify-self: end; border: 0; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; font-size: 12px; white-space: nowrap; }

.inventory-progress-card {
  min-height: 104px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(0, 200, 240, .18);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(0, 81, 204, .12), rgba(15, 24, 49, .72));
}
.inventory-progress-copy { min-width: 0; display: flex; align-items: center; gap: 14px; }
.inventory-progress-ring { width: 60px; height: 60px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--prototype-cyan) 0 67%, rgba(255, 255, 255, .09) 67% 100%); position: relative; }
.inventory-progress-ring::after { position: absolute; inset: 5px; border-radius: 50%; background: #0d1832; content: ""; }
.inventory-progress-ring span { z-index: 1; font-size: 11px; font-weight: 700; }
.inventory-progress-copy small, .inventory-progress-copy strong, .inventory-progress-copy div > span { display: block; }
.inventory-progress-copy small { color: var(--prototype-cyan); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inventory-progress-copy strong { margin-top: 5px; font-size: 14px; }
.inventory-progress-copy div > span { margin-top: 4px; color: var(--prototype-muted); font-size: 11px; }
.inventory-progress-card > button { min-height: 42px; border: 0; background: transparent; color: var(--prototype-cyan); font-size: 11px; font-weight: 700; }
.inventory-support-section { margin-top: 20px; }

.inventory-toolbar { margin: 18px 0 14px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 0; background: transparent; }
.inventory-toolbar .inventory-search-row { grid-column: 1 / -1; }
.inventory-search-row { min-width: 0; min-height: 44px; display: flex; justify-content: flex-end; gap: 8px; }
.inventory-filter-row { min-width: 0; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.inventory-filter-row::-webkit-scrollbar { display: none; }
.inventory-filter-row button { min-height: 40px; flex: 0 0 auto; border: 1px solid var(--prototype-border); border-radius: 7px; padding: 0 11px; background: transparent; color: var(--prototype-muted); font-size: 11px; font-weight: 600; }
.inventory-filter-row button span { margin-left: 5px; color: inherit; }
.inventory-filter-row .inventory-filter-active { border-color: rgba(0, 200, 240, .34); background: rgba(0, 200, 240, .07); color: var(--prototype-cyan); }
.inventory-filter-options { display: flex; gap: 7px; }
.inventory-filter-options[hidden] { display: none; }
.inventory-filter-toggle,.inventory-filter-collapse { width: 40px; padding: 0 !important; display: grid; place-items: center; }
.filter-disclosure-icon { width: 8px; height: 8px; margin: 0 3px 0 0 !important; display: inline-block; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.filter-disclosure-icon.expanded { margin: 0 0 0 3px !important; transform: rotate(-135deg); }
.inventory-toolbar-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.inventory-filter-row[hidden], .inventory-toolbar-actions[hidden] { display: none; }
.inventory-toolbar-actions .inventory-view-switch { margin: 0; }
.inventory-wide-add { min-height: 42px; padding-inline: 14px; white-space: nowrap; }
.inventory-table-view-filter { margin: -2px 0 14px; }
.inventory-table-view-filter[hidden] { display: none; }
.inventory-table-views-toggle { min-height: 38px; margin-bottom: 8px; padding: 0 11px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--prototype-border); border-radius: 7px; background: rgba(255,255,255,.025); color: var(--prototype-muted); font: inherit; font-size: .7rem; font-weight: 750; cursor: pointer; }
.inventory-table-views-toggle-active { border-color: rgba(0,200,240,.34); background: rgba(0,200,240,.07); color: var(--prototype-cyan); }
.inventory-table-views { display: flex; align-items: center; gap: 8px; margin: 0; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: thin; }
.inventory-table-views[hidden] { display: none; }
.inventory-table-views button { flex: 0 0 auto; min-height: 38px; border: 1px solid var(--prototype-border); border-radius: 999px; padding: 7px 12px; display: inline-flex; align-items: center; gap: 7px; background: transparent; color: var(--prototype-muted); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.inventory-table-views button small { min-width: 20px; min-height: 20px; border-radius: 999px; display: inline-grid; place-items: center; padding: 0 5px; background: rgba(255,255,255,.07); color: inherit; font-size: .65rem; }
.inventory-table-views button[aria-current="true"] { border-color: rgba(0, 200, 240, .42); background: rgba(0, 200, 240, .09); color: var(--prototype-cyan); }
.inventory-table-configure { min-height: 42px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255,255,255,.025); color: var(--prototype-muted); font-size: 10px; font-weight: 700; }
.inventory-table-configure:hover { border-color: rgba(0,200,240,.28); color: var(--prototype-cyan); }
.inventory-select-items { min-height: 42px; padding: 0 11px; border: 1px solid var(--prototype-border); border-radius: 8px; background: transparent; color: var(--prototype-muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.inventory-select-items:hover { border-color: rgba(255,107,107,.3); color: var(--prototype-danger); }
.inventory-toolbar-add { width: 116px; min-width: 116px; min-height: 44px; padding-inline: 10px; white-space: nowrap; }
.inventory-toolbar-add.resume-item-draft,
.inventory-heading-add.resume-item-draft { width: auto; min-width: 154px; max-width: 100%; }
.prototype-search { width: 44px; max-width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0; overflow: hidden; display: flex; align-items: center; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255, 255, 255, .025); transition: width .48s cubic-bezier(.22,.61,.36,1), max-width .48s cubic-bezier(.22,.61,.36,1), padding .42s ease, border-color .2s, background .2s; }
.prototype-search.expanded { width: min(360px, 100%); max-width: 360px; flex: 1 1 280px; padding: 0 10px; border-color: rgba(0, 200, 240, .28); }
.search-toggle { width: 42px; height: 42px; min-width: 42px; padding: 0; border: 0; display: grid; place-items: center; background: transparent; color: var(--prototype-muted); }
.prototype-search.expanded .search-toggle { width: 28px; min-width: 28px; }
.prototype-search input { min-width: 250px; flex: 1; border: 0; outline: 0; background: transparent; color: var(--prototype-text); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .3s ease .1s; }
.prototype-search input::-webkit-search-cancel-button,
.prototype-search input::-webkit-search-decoration { display: none; -webkit-appearance: none; appearance: none; }
.prototype-search input::-ms-clear { width: 0; height: 0; display: none; }
.prototype-search.expanded input { opacity: 1; pointer-events: auto; }
.search-clear { width: 42px; height: 42px; flex: 0 0 auto; padding: 0; border: 0; display: grid; place-items: center; background: transparent; color: var(--prototype-muted); font-size: 18px; }
.prototype-search:dir(rtl) { flex-direction: row-reverse; }
.prototype-search:dir(rtl) input { direction: rtl; text-align: right; }
.prototype-search-icon { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.prototype-search-icon::after { position: absolute; width: 7px; height: 1.5px; right: -5px; bottom: -2px; transform: rotate(45deg); border-radius: 2px; background: currentColor; content: ""; }

.inventory-view-switch { margin: -2px 0 14px auto; width: max-content; padding: 4px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.inventory-view-switch button { width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 6px; display: grid; place-items: center; background: transparent; color: var(--prototype-muted); }
.inventory-view-switch .inventory-layout-active { background: rgba(0, 200, 240, .1); color: var(--prototype-cyan); }
.inventory-layout-icon { width: 19px; height: 17px; display: block; color: currentColor; }
.inventory-layout-table-icon { border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(to right, transparent 31%, currentColor 31% 36%, transparent 36% 65%, currentColor 65% 70%, transparent 70%), linear-gradient(to bottom, transparent 29%, currentColor 29% 36%, transparent 36% 63%, currentColor 63% 70%, transparent 70%); }
.inventory-layout-card-icon { display: grid; align-content: center; gap: 2px; }
.inventory-layout-card-icon i { width: 19px; height: 4px; display: block; border: 1.5px solid currentColor; border-radius: 2px; }
.inventory-selection-bar { min-height: 54px; margin: 0 0 12px; padding: 8px 10px 8px 14px; border: 1px solid rgba(255, 107, 107, .25); border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 107, 107, .055); }
.inventory-selection-bar strong { font-size: 11px; }
.inventory-stock-actions { display: flex; align-items: center; gap: 6px; }
.inventory-stock-action span { display: none; }
.inventory-item > .inventory-stock-actions { min-width: 76px; display: grid; grid-template-columns: 1fr; align-self: stretch; }
.inventory-item > .inventory-stock-actions .inventory-stock-action { width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.inventory-stock-actions-row { justify-content: flex-end; }
.inventory-stock-action { min-height: 34px; padding: 0 8px; border: 1px solid rgba(0,200,240,.22); border-radius: 6px; background: rgba(0,200,240,.055); color: var(--prototype-cyan); font-size: 9px; font-weight: 750; white-space: nowrap; }
.inventory-stock-use { border-color: rgba(255,191,71,.22); background: rgba(255,191,71,.055); color: var(--prototype-warning); }
.inventory-stock-action:disabled { opacity: .38; cursor: not-allowed; }
.stock-action-modal form { margin-top: 16px; display: grid; gap: 12px; }
.stock-action-summary { margin: 14px 0; padding: 0; display: grid; gap: 7px; }
.stock-action-summary>div { padding: 9px 10px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--prototype-border); border-radius: 7px; background: rgba(255,255,255,.02); }
.stock-action-summary dt { color: var(--prototype-muted); font-size: 9px; text-transform: uppercase; }
.stock-action-summary dd { margin: 0; color: var(--prototype-text); font-size: 11px; font-weight: 700; text-align: right; }
.stock-action-receipt { margin-top: 18px; }
.inventory-table [data-column][hidden] { display: none; }
.inventory-selection-bar > div { display: flex; align-items: center; gap: 7px; }
.inventory-selection-bar button { min-height: 38px; padding: 0 11px; border: 1px solid var(--prototype-border); border-radius: 7px; font-size: 10px; font-weight: 700; }
.selection-cancel { background: transparent; color: var(--prototype-text); }
.selection-delete, .inventory-confirm-danger { background: rgba(255, 107, 107, .12); color: var(--prototype-danger); }
.selection-delete:disabled { opacity: .42; }

.inventory-list { display: grid; gap: 9px; }
.inventory-item {
  position: relative;
  min-width: 0;
  min-height: 118px;
  padding: 16px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: start;
  border: 1px solid var(--prototype-border);
  border-radius: 11px;
  background: rgba(15, 24, 49, .72);
}
.inventory-item-selecting { padding-top: 48px; }
.inventory-card-select { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; }
.inventory-card-select input, .inventory-row-select input { width: 20px; height: 20px; accent-color: var(--prototype-cyan); }
.inventory-row-select { min-width: 24px; min-height: 32px; display: inline-grid; place-items: center; }
.inventory-item[data-status="incomplete"] { border-color: rgba(255, 107, 107, .28); }
.inventory-item[data-status="partial"] { border-color: rgba(255, 191, 71, .23); }
.inventory-item[data-status="complete"] { border-color: rgba(66, 217, 163, .18); }
.inventory-item-icon { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: rgba(0, 200, 240, .07); color: var(--prototype-cyan); font: 700 12px Syne, sans-serif; }
.inventory-item-main { min-width: 0; }
.inventory-item-kicker { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.inventory-item-kind { color: var(--prototype-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inventory-status { border-radius: 999px; padding: 4px 6px; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.inventory-status-incomplete { background: rgba(255, 107, 107, .09); color: var(--prototype-danger); }
.inventory-status-partial { background: rgba(255, 191, 71, .09); color: var(--prototype-warning); }
.inventory-status-complete { background: rgba(66, 217, 163, .08); color: var(--prototype-success); }
.inventory-item h3 { margin: 6px 0 4px; overflow-wrap: anywhere; font: 700 16px Syne, sans-serif; }
.inventory-item-name { max-width: 100%; padding: 0; border: 0; background: transparent; color: var(--prototype-text); font: inherit; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.inventory-item-name:hover { color: var(--prototype-cyan); }
.inventory-item-quantity { color: var(--prototype-text); font-size: 12px; }
.inventory-item-subtotal { margin-top: 3px; display: block; color: var(--prototype-cyan); font-size: 9px; }
.inventory-item-note { margin: 8px 0 0; color: var(--prototype-muted); font-size: 11px; line-height: 1.45; }
.inventory-item-note strong { color: inherit; }
.inventory-item-action { min-height: 42px; border: 1px solid var(--prototype-border); border-radius: 7px; padding: 0 11px; background: transparent; color: var(--prototype-cyan); font-size: 10px; font-weight: 700; }

.inventory-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; contain: inline-size; border: 1px solid var(--prototype-border); border-radius: 11px; background: rgba(15, 24, 49, .72); }
.inventory-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.inventory-table th { padding: 12px 14px; border-bottom: 1px solid var(--prototype-border-strong); color: var(--prototype-muted); font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.inventory-table td { padding: 14px; border-bottom: 1px solid var(--prototype-border); color: var(--prototype-muted); font-size: 11px; vertical-align: middle; }
.inventory-table th, .inventory-table td { box-sizing: border-box; }
.inventory-table tbody tr:last-child td { border-bottom: 0; }
.inventory-table-serial { width: 54px; color: var(--prototype-muted); font-variant-numeric: tabular-nums; }
.inventory-table-item { color: var(--prototype-text); font-weight: 700; }
.inventory-table .inventory-item-action { min-height: 36px; white-space: nowrap; }
.table-action-mobile, .table-quantity-mobile { display: none; }
.inventory-table-mobile { display: none; }

.inventory-empty { min-height: 350px; padding: 72px 20px 48px; position: relative; border: 1px dashed var(--prototype-border-strong); border-radius: 12px; display: grid; place-content: center; justify-items: center; text-align: center; }
.inventory-empty-mark { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(0, 200, 240, .08); color: var(--prototype-cyan); font-size: 28px; }
.inventory-empty h2 { margin: 16px 0 8px; font: 700 21px Syne, sans-serif; }
.inventory-empty p { max-width: 430px; margin: 0 0 20px; color: var(--prototype-muted); font-size: 13px; line-height: 1.6; }

.inventory-loading { display: grid; gap: 9px; }
.inventory-loading-list { display: grid; gap: 9px; }
.inventory-loading-list[hidden],.inventory-loading-table[hidden] { display: none; }
.inventory-loading-list article { height: 118px; border: 1px solid var(--prototype-border); border-radius: 11px; background: linear-gradient(100deg, rgba(255,255,255,.025) 20%, rgba(255,255,255,.07) 38%, rgba(255,255,255,.025) 56%); background-size: 220% 100%; animation: prototype-shimmer 1.4s infinite; }
.inventory-loading-table { overflow: hidden; border: 1px solid var(--prototype-border); border-radius: 11px; }
.inventory-loading-table-head,.inventory-loading-table-row { min-height: 52px; padding: 10px 12px; display: grid; grid-template-columns: 42px minmax(120px,1.6fr) repeat(2,minmax(74px,1fr)); align-items: center; gap: 10px; border-bottom: 1px solid var(--prototype-border); }
.inventory-loading-table-row:last-child { border-bottom: 0; }
.inventory-loading-table i { height: 13px; border-radius: 4px; background: linear-gradient(100deg, rgba(255,255,255,.025) 20%, rgba(255,255,255,.09) 38%, rgba(255,255,255,.025) 56%); background-size: 220% 100%; animation: prototype-shimmer 1.4s infinite; }
@keyframes inventory-content-enter { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.inventory-table tbody tr,.inventory-grid .inventory-item { animation: inventory-content-enter .2s ease both; }
.inventory-loading span { padding: 8px; color: var(--prototype-muted); font-size: 11px; text-align: center; }

.inventory-floating-add, .inventory-save-bar { display: none; }

.prototype-scrim { position: fixed; inset: 0; z-index: 1800; background: rgba(3, 7, 19, .58); backdrop-filter: blur(3px); }

.prototype-sheet {
  position: fixed;
  z-index: 1900;
  left: 50%;
  bottom: 0;
  width: min(100%, 640px);
  max-height: calc(100dvh - 20px);
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translate(-50%, 105%);
  border: 1px solid var(--prototype-border-strong);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: var(--prototype-overlay);
  box-shadow: var(--prototype-shadow);
  transition: transform .22s ease;
}
.prototype-sheet.prototype-layer-visible { transform: translate(-50%, 0); }
.prototype-sheet-handle { width: 56px; height: 30px; margin: -4px auto 6px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent; touch-action: none; cursor: grab; }
.prototype-sheet-handle span { width: 44px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.prototype-sheet-handle:active { cursor: grabbing; }
.prototype-sheet-dragging { transition: none !important; }
.prototype-sheet-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.item-form-edit-cancel { min-height: 44px; flex: 0 0 auto; padding: 0 12px; }
.prototype-sheet-heading h2 { margin: 6px 0 7px; font: 700 24px Syne, sans-serif; }
.prototype-sheet-heading p { max-width: 490px; margin: 0; color: var(--prototype-muted); font-size: 12px; line-height: 1.55; }

.prototype-sheet form { margin-top: 22px; }
.item-kind-options { margin: 0; padding: 14px 12px 8px; border: 0; border-top: 1px solid var(--prototype-border); }
.item-kind-options legend, .prototype-field label { display: block; margin-bottom: 8px; color: var(--prototype-text); font-size: 11px; font-weight: 700; }
.item-kind-options > label { display: inline-flex; margin: 0 6px 7px 0; }
.item-kind-options input { position: absolute; opacity: 0; pointer-events: none; }
.item-kind-options span { min-height: 42px; padding: 0 12px; border: 1px solid var(--prototype-border); border-radius: 7px; display: inline-flex; align-items: center; color: var(--prototype-muted); font-size: 11px; font-weight: 700; }
.item-kind-options input:checked + span { border-color: rgba(0, 200, 240, .35); background: rgba(0, 200, 240, .07); color: var(--prototype-cyan); }
.item-kind-options input:focus-visible + span { outline: 3px solid rgba(0, 200, 240, .55); outline-offset: 3px; }

.prototype-field { min-width: 0; margin-bottom: 16px; }
.prototype-basics-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.quantity-unit-grid { display: grid; grid-template-columns: minmax(108px, .78fr) minmax(0, 1.22fr); align-items: start; gap: 8px; }
.prototype-unit-field { width: 100%; }
.quantity-stepper { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.quantity-stepper-actions { display: grid; grid-template-columns: 44px 44px; overflow: hidden; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(0, 200, 240, .045); }
.quantity-stepper-actions button { width: 44px; min-width: 44px; min-height: 44px; padding: 0; border: 0; background: rgba(0, 200, 240, .035); color: var(--prototype-text); font-size: 17px; font-weight: 750; }
.quantity-stepper-actions button + button { border-left: 1px solid var(--prototype-border); }
.quantity-stepper-actions button:hover { background: rgba(0, 200, 240, .11); color: var(--prototype-cyan); }
.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }
.required-label { margin-left: 5px; color: var(--prototype-cyan); font-size: 8px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.optional-label { margin-left: 5px; color: var(--prototype-muted); font-size: 8px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.prototype-field > small { display: block; margin-top: 6px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }
.package-details { margin: -2px 0 16px; padding: 14px; border: 1px solid rgba(0, 200, 240, .16); border-radius: 10px; background: rgba(0, 200, 240, .035); }
.package-details > div:first-child { margin-bottom: 12px; }
.package-details strong, .package-details small { display: block; }
.package-details strong { font-size: 11px; }
.package-details small { margin-top: 4px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }
.item-form-disclosure { margin: 0 0 14px; overflow: hidden; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255, 255, 255, .02); }
.item-form-disclosure > summary { min-height: 54px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--prototype-text); cursor: pointer; list-style: none; }
.item-form-disclosure > summary::-webkit-details-marker { display: none; }
.item-form-disclosure > summary strong, .item-form-disclosure > summary small { display: block; }
.item-form-disclosure > summary strong { font-size: 11px; }
.item-form-disclosure > summary small { margin-top: 3px; color: var(--prototype-muted); font-size: 10px; }
.item-form-disclosure > summary i { width: 9px; height: 9px; margin: 0 4px 4px 10px; border-right: 2px solid var(--prototype-cyan); border-bottom: 2px solid var(--prototype-cyan); transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.item-form-disclosure[open] > summary i { margin-top: 5px; margin-bottom: 0; transform: rotate(225deg); }
.item-form-disclosure[open] > :not(summary) { animation: item-details-reveal .18s ease both; }
.item-form-disclosure-body { padding: 14px 12px 2px; border-top: 1px solid var(--prototype-border); }
.item-form-disclosure-body > .optional-label { display: block; margin: 0 0 8px; }
.item-form-disclosure-body > small { display: block; margin-top: 8px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }
@keyframes item-details-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.prototype-field input, .prototype-field select, .prototype-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--prototype-border);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .035);
  color: var(--prototype-text);
  outline: none;
  font-size: 13px;
}
.prototype-field textarea { min-height: 88px; padding-top: 12px; resize: vertical; line-height: 1.5; }
.prototype-field > small { display: block; margin-top: 6px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }
.prototype-field select option { background: #111a36; color: var(--prototype-text); }
.prototype-field input:focus, .prototype-field select:focus, .prototype-field textarea:focus { border-color: var(--prototype-cyan); box-shadow: 0 0 0 3px rgba(0, 200, 240, .08); }
.prototype-field .quantity-stepper input { min-width: 0; padding-inline: 8px; background: rgba(255, 255, 255, .035); text-align: center; }
.quantity-formatted-output { min-height: 20px; margin-top: 6px; padding: 4px 7px; border: 1px solid rgba(0, 200, 240, .14); border-radius: 6px; display: block; background: rgba(0, 200, 240, .035); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; overflow-wrap: anywhere; }
.quantity-formatted-output[hidden] { display: none; }
.prototype-field input.prototype-input-error, .prototype-field select.prototype-input-error, .prototype-field textarea.prototype-input-error { border-color: var(--prototype-danger); }
.prototype-input-error, [aria-invalid="true"] { scroll-margin-block: 96px; }
.prototype-field-error { min-height: 16px; margin-top: 5px; display: block; color: var(--prototype-danger); font-size: 10px; }
.prototype-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.optional-details-toggle { width: 100%; min-height: 56px; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--prototype-border); border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255, 255, 255, .02); color: var(--prototype-text); text-align: left; }
.optional-details-toggle strong, .optional-details-toggle small { display: block; }
.optional-details-toggle strong { font-size: 11px; }
.optional-details-toggle small { margin-top: 3px; color: var(--prototype-muted); font-size: 10px; }
.optional-details-toggle > span:last-child { color: var(--prototype-cyan); font-size: 20px; transition: transform .18s ease; }
.optional-details-toggle[aria-expanded="true"] > span:last-child { transform: rotate(45deg); }
.optional-details { padding: 14px 14px 1px; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255, 255, 255, .018); }

.prototype-form-note { margin: 8px 0 20px; padding: 11px; border-left: 2px solid var(--prototype-cyan); background: rgba(0, 200, 240, .04); color: var(--prototype-muted); font-size: 10px; line-height: 1.55; }
.prototype-form-note span { margin-right: 7px; color: var(--prototype-cyan); font-weight: 800; }
.prototype-sheet-actions { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9px; }
.prototype-sheet-actions button { width: 100%; min-height: 48px; }

.button-loader { width: 17px; height: 17px; border: 2px solid rgba(255, 255, 255, .25); border-top-color: white; border-radius: 50%; animation: prototype-spin .7s linear infinite; }

.prototype-modal {
  position: fixed;
  z-index: 1900;
  top: 50%;
  left: 50%;
  width: min(calc(100% - 32px), 480px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  overflow-y: auto;
  transform: translate(-50%, -46%) scale(.98);
  border: 1px solid var(--prototype-border-strong);
  border-radius: 16px;
  background: var(--prototype-overlay);
  box-shadow: var(--prototype-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.inventory-setup-modal { width: min(calc(100% - 32px), 560px); }
.inventory-setup-modal form { margin-top: 22px; display: grid; gap: 15px; }
.inventory-setup-modal .prototype-field { margin-bottom: 0; }
.item-details-modal { width: min(calc(100% - 32px), 560px); }
.item-details-heading { padding-right: 128px; }
.item-details-heading h2 { margin-bottom: 14px; overflow-wrap: anywhere; }
.item-details-top-actions { position: absolute; top: 16px; right: 16px; display: flex; align-items: center; gap: 7px; }
.item-details-top-actions .prototype-modal-close { position: static; }
.item-details-history-button { min-width: 74px; height: 42px; padding: 0 13px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(0, 200, 240, .06); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; }
.item-details-grid { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item-details-grid div { min-width: 0; padding: 14px; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.item-details-grid dt { color: var(--prototype-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.item-details-grid dd { margin: 6px 0 0; color: var(--prototype-text); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.item-details-reference { padding: 0; border: 0; background: transparent; color: var(--prototype-cyan); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.item-details-location-list { display: flex; flex-wrap: wrap; gap: 6px; }
.item-details-grid .item-detail-wide { grid-column: 1 / -1; }
.table-designer-modal { width: min(620px, calc(100% - 32px)); }
.table-designer-modes { margin: 18px 0 14px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255,255,255,.02); }
.table-designer-modes button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--prototype-muted); font-weight: 700; }
.table-designer-modes button.active { background: rgba(0,200,240,.1); color: var(--prototype-cyan); }
.table-custom-field-row { display: grid; grid-template-columns: minmax(0,1fr) 130px auto; gap: 8px; align-items: end; }
.table-custom-field-row > button { min-height: 48px; align-self: end; margin: 0; }
.table-designer-columns { margin-top: 16px; }
.table-designer-columns > div { display: flex; justify-content: space-between; gap: 10px; }
.table-designer-columns small { color: var(--prototype-muted); font-size: 9px; }
.table-designer-columns ol { margin: 9px 0 0; padding: 0; display: grid; gap: 6px; list-style: none; }
.table-designer-columns li { min-height: 44px; padding: 7px 8px 7px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255,255,255,.025); }
.table-designer-columns li[draggable="true"] { cursor: grab; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.table-designer-columns li[draggable="true"]:active { cursor: grabbing; }
.table-designer-columns li.table-column-dragging { opacity: .45; }
.table-designer-columns li.table-column-drag-target { border-color: var(--prototype-cyan); background: rgba(0,200,240,.08); transform: translateY(1px); }
.table-column-drag-label { min-width: 0; display: flex; align-items: center; gap: 8px; }
.table-column-drag-handle,.table-column-fixed { width: 42px; height: 36px; flex: 0 0 42px; display: grid; place-items: center; border: 0; border-radius: 7px; background: rgba(0,200,240,.06); color: var(--prototype-cyan); font-style: normal; font-size: 17px; letter-spacing: -4px; touch-action: none; cursor: grab; }
.table-column-drag-handle:active { cursor: grabbing; }
.table-column-fixed { background: transparent; color: rgba(168,184,215,.48); font-size: 11px; letter-spacing: 0; cursor: not-allowed; }
.table-designer-columns li > span:first-child b,.table-designer-columns li > span:first-child small { display: block; }
.table-designer-columns li > span:first-child small { margin-top: 2px; color: var(--prototype-muted); font-size: 8px; }
.table-designer-columns li > span:last-child { display: flex; gap: 4px; }
.table-designer-columns li button { width: 32px; min-height: 32px; border: 1px solid var(--prototype-border); border-radius: 6px; background: transparent; color: var(--prototype-text); }
.table-designer-preview { margin-top: 16px; padding: 12px; border: 1px dashed var(--prototype-border-strong); border-radius: 9px; overflow: hidden; }
.table-designer-preview > small { color: var(--prototype-cyan); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.table-designer-preview > div { margin-top: 8px; display: flex; gap: 5px; overflow-x: auto; }
.table-designer-preview span { min-width: 96px; padding: 9px; border-radius: 6px; background: rgba(255,255,255,.04); color: var(--prototype-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.table-more-settings { margin-top: 14px; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255,255,255,.018); }
.table-more-settings summary { min-height: 46px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--prototype-cyan); font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.table-more-settings summary::-webkit-details-marker { display: none; }
.table-more-settings summary::after { content: "+"; font-size: 16px; }
.table-more-settings[open] summary::after { content: "−"; }
.table-more-settings > div { padding: 0 12px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.table-view-settings { min-width: 0; margin: 0; padding: 10px; grid-column: 1 / -1; display: grid; gap: 10px; border: 1px solid var(--prototype-border); border-radius: 9px; }
.table-view-settings[hidden] { display: none; }
.table-view-settings legend { padding: 0 6px; color: var(--prototype-cyan); font-size: 10px; font-weight: 750; }
.table-general-settings { grid-column: 1 / -1; padding-top: 4px; }
.table-general-settings strong,.table-general-settings small { display: block; }
.table-general-settings small { margin-top: 3px; color: var(--prototype-muted); font-size: 9px; }
.table-reset-link { min-height: 34px; margin-top: 9px; padding: 0; border: 0; background: transparent; color: var(--prototype-cyan); font-size: 10px; font-weight: 700; text-align: left; cursor: pointer; }
.table-reset-all { margin-top: 12px; color: var(--prototype-warning); }
.inventory-sharing-settings .prototype-form-note { grid-column: 1 / -1; margin: 0 0 4px; }
.inventory-sharing-actions { display: flex; align-items: end; justify-content: flex-end; }
.inventory-public-link { grid-column: 1 / -1; padding: 10px; border: 1px solid rgba(0,200,240,.2); border-radius: 9px; background: rgba(0,200,240,.045); }
.inventory-public-link small,.inventory-public-link a { display: block; }
.inventory-public-link a { margin-top: 4px; color: var(--prototype-cyan); overflow-wrap: anywhere; }
.inventory-public-link p { margin: 8px 0 0; color: var(--prototype-muted); font-size: 10px; line-height: 1.5; }
.inventory-public-link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inventory-public-link-actions button { min-height: 36px; }
.inventory-members-panel { grid-column: 1 / -1; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--prototype-border); }
.inventory-members-panel > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.inventory-members-panel small { color: var(--prototype-muted); }
.inventory-member-list { display: grid; gap: 8px; margin-top: 10px; }
.inventory-member-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(118px, auto) auto; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255,255,255,.025); }
.inventory-member-row strong,.inventory-member-row small { display: block; overflow-wrap: anywhere; }
.inventory-member-row select { min-height: 38px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255,255,255,.035); color: var(--prototype-text); padding: 0 8px; }
.inventory-member-row select option { background: #101a36; color: #f5f8ff; }
.inventory-member-remove { min-height: 38px; padding: 0 10px; border: 1px solid rgba(244,67,54,.24); border-radius: 8px; background: rgba(244,67,54,.08); color: #ff8a80; font-size: 10px; font-weight: 750; }
.inventory-invite-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .55fr) auto; align-items: end; gap: 9px; margin-top: 14px; }
.inventory-invite-form .prototype-primary-button { min-height: 42px; }
.inventory-pending-invitations { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--prototype-border); }
.inventory-pending-invitations > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.inventory-invitation-delivery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid rgba(51, 211, 255, .28); border-radius: 10px; background: rgba(51, 211, 255, .06); }
.inventory-invitation-delivery strong { flex: 1 1 100%; }
.inventory-invitation-delivery a { color: var(--prototype-cyan); overflow-wrap: anywhere; }
.inventory-invitation-row time { display: block; margin-top: 3px; color: var(--prototype-cyan); font-size: .74rem; font-weight: 700; }
.inventory-history-actor { display: block; margin-bottom: 5px; color: var(--prototype-cyan); font-weight: 700; }
.table-setting-check { min-height: 44px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--prototype-border); border-radius: 8px; color: var(--prototype-muted); font-size: 10px; }
.table-setting-check input { width: 18px; height: 18px; accent-color: var(--prototype-cyan); }
body.compact-inventory-table .inventory-table td { padding-block: 7px; }
body.compact-inventory-list .inventory-item { min-height: 78px; padding-block: 8px; }
body.custom-inventory-row-height .inventory-table tbody tr { height: var(--inventory-custom-row-height, 54px); }
body.hide-inventory-completeness .inventory-progress-card,
body.hide-inventory-completeness [data-filter="incomplete"],
body.hide-inventory-completeness [data-filter="partial"],
body.hide-inventory-completeness [data-filter="complete"],
body.hide-inventory-completeness .inventory-status { display: none; }
.item-details-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-details-actions button { width: 100%; min-height: 48px; }
.prototype-modal.prototype-layer-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.prototype-modal.prototype-modal-dragging { transition: none; }
.prototype-modal-close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--prototype-border); border-radius: 8px; background: transparent; color: var(--prototype-text); font-size: 20px; }
.prototype-modal-mark { margin-bottom: 18px; }
.prototype-modal h2 { margin: 7px 44px 10px 0; font: 700 27px/1.05 Syne, sans-serif; }
.prototype-modal > p:not(.prototype-eyebrow) { margin: 0; color: var(--prototype-muted); font-size: 13px; line-height: 1.65; }
.auth-draft-summary { margin: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--prototype-border); border-radius: 10px; overflow: hidden; }
.auth-draft-summary div { min-width: 0; padding: 13px 8px; text-align: center; border-right: 1px solid var(--prototype-border); }
.auth-draft-summary div:last-child { border-right: 0; }
.auth-draft-summary span, .auth-draft-summary small { display: block; }
.auth-draft-summary span { overflow-wrap: anywhere; font: 700 15px Syne, sans-serif; }
.auth-draft-summary small { margin-top: 4px; color: var(--prototype-muted); font-size: 8px; text-transform: uppercase; }
.auth-gate-actions { display: grid; gap: 8px; }
.auth-gate-actions button { width: 100%; min-height: 48px; }
.auth-gate-actions-primary { margin-top: 16px; }
.auth-item-receipt { margin: 16px 0 0; padding: 0; border: 1px solid var(--prototype-border); border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .018); }
.auth-item-receipt > div { min-width: 0; padding: 10px 12px; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; border-bottom: 1px solid var(--prototype-border); }
.auth-item-receipt > div:last-child { border-bottom: 0; }
.auth-item-receipt dt { color: var(--prototype-muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: .035em; }
.auth-item-receipt dd { margin: 0; color: var(--prototype-text); font-size: 11px; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.auth-gate-top-actions { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-gate-top-actions .prototype-modal-close { position: static; flex: 0 0 auto; }
.auth-gate-back { min-height: 42px; padding: 0; border: 0; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--prototype-cyan); font-size: 11px; font-weight: 750; }
.auth-gate-back span { font-size: 18px; line-height: 1; }
.auth-gate-footnote { margin-top: 16px; display: block; color: var(--prototype-muted); font-size: 9px; line-height: 1.5; text-align: center; }
.pending-draft-delete-action { width: 100%; min-height: 44px; margin-top: 4px; color: var(--prototype-danger); text-align: center; }
.pending-draft-delete-actions { margin-top: 22px; }
.pending-draft-delete-actions .inventory-confirm-danger { width: 100%; min-height: 48px; border: 1px solid rgba(255, 107, 107, .28); border-radius: 8px; font-size: 11px; font-weight: 750; }

.auth-benefits { margin: 0 0 20px; padding: 0; display: grid; gap: 9px; list-style: none; }
.auth-benefits li { padding: 11px; display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255, 255, 255, .018); }
.auth-benefits li > span { width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(66, 217, 163, .09); color: var(--prototype-success); font-size: 10px; font-weight: 800; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { font-size: 11px; }
.auth-benefits small { margin-top: 3px; color: var(--prototype-muted); font-size: 9px; line-height: 1.45; }

.item-history-list { max-height: min(52dvh, 480px); margin: 18px 0; padding: 0 0 0 14px; overflow-y: auto; display: grid; gap: 8px; list-style: none; }
.item-history-list li { position: relative; padding: 0 0 0 18px; border-left: 1px solid var(--prototype-border-strong); }
.item-history-list li::before { position: absolute; top: 2px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--prototype-cyan); content: ""; }
.item-history-list strong, .item-history-list time { display: block; }
.item-history-list strong { font-size: 11px; }
.item-history-list time { margin-top: 5px; color: var(--prototype-cyan); font-size: 9px; }
.item-history-entry details { min-width: 0; }
.item-history-entry summary { min-height: 48px; padding: 8px 9px; display: grid; grid-template-columns: minmax(0,1fr) 20px; align-items: center; gap: 8px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255,255,255,.018); cursor: pointer; list-style: none; }
.item-history-entry summary::-webkit-details-marker { display: none; }
.item-history-entry summary > span { min-width: 0; }
.item-history-entry summary i { width: 8px; height: 8px; justify-self: center; border-right: 1.5px solid var(--prototype-cyan); border-bottom: 1.5px solid var(--prototype-cyan); transform: rotate(45deg); transition: transform .18s ease; }
.item-history-entry details[open] summary i { transform: rotate(225deg); }
.history-entry-details { padding: 2px 4px 8px; }
.item-history-changes { margin: 7px 0 0; padding: 8px; display: grid; grid-template-columns: repeat(auto-fit,minmax(128px,1fr)); gap: 6px; border-radius: 7px; background: rgba(255, 255, 255, .025); color: var(--prototype-muted); font-size: 10px; line-height: 1.45; }
.item-history-changes li { min-width: 0; padding: 7px 8px; border: 1px solid rgba(255,255,255,.045); border-radius: 6px; display: grid; align-content: start; gap: 2px; }
.item-history-changes li::before { display: none; }
.item-history-changes strong { display: block; color: var(--prototype-text); font-size: inherit; }
.item-history-changes span { color: var(--prototype-muted); }
.item-history-back { width: 100%; min-height: 48px; }
.draft-activity-detail { margin: 7px 0 0; color: var(--prototype-muted); font-size: 10px; line-height: 1.55; }
.draft-activity-empty { margin: 22px 0; padding: 18px; border: 1px dashed var(--prototype-border-strong); border-radius: 10px; color: var(--prototype-muted); font-size: 11px; text-align: center; }
.inventory-history-timeline { margin: 18px 0 0; padding: 0; display: grid; gap: 9px; list-style: none; }
.inventory-history-entry { overflow: hidden; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255,255,255,.025); }
.inventory-history-entry summary { min-height: 62px; padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.inventory-history-entry summary::-webkit-details-marker { display: none; }
.inventory-history-timeline.item-history-list > .inventory-history-entry { padding-left: 0; border-left: 0; }
.inventory-history-timeline.item-history-list > .inventory-history-entry::before { display: none; }
.inventory-history-entry summary strong,.inventory-history-entry summary time { display: block; }
.inventory-history-entry summary time { margin-top: 4px; color: var(--prototype-muted); font-size: 9px; }
.inventory-history-entry summary i { width: 8px; height: 8px; border-right: 2px solid var(--prototype-cyan); border-bottom: 2px solid var(--prototype-cyan); transform: rotate(45deg); transition: transform .18s ease; }
.inventory-history-entry details[open] summary i { transform: rotate(225deg); }
.inventory-history-detail { padding: 0 12px 12px; border-top: 1px solid var(--prototype-border); }
.inventory-history-detail > p { margin: 11px 0; font-size: 11px; line-height: 1.55; }
.inventory-history-facts { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.inventory-history-facts div { min-width: 0; padding: 9px; border-radius: 8px; background: rgba(255,255,255,.035); }
.inventory-history-facts dt { color: var(--prototype-muted); font-size: 8px; text-transform: uppercase; }
.inventory-history-facts dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 10px; }
.history-reference { width: 100%; min-height: 42px; margin-top: 9px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid rgba(0,200,240,.2); border-radius: 8px; background: rgba(0,200,240,.055); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; text-align: left; }
.history-inline-reference { padding: 0; border: 0; background: transparent; color: var(--prototype-cyan); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.inventory-history-receipt { display: inline-block; margin-top: 9px; color: var(--prototype-muted); font-size: 8px; }
.item-history-references { margin-top: 9px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.item-history-references .history-reference { margin: 0; }
.item-history-references small,.item-history-references strong { display: block; }
.duplicate-actions { margin-top: 22px; display: grid; gap: 8px; }
.duplicate-actions button { width: 100%; min-height: 48px; }
.inventory-confirm-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inventory-confirm-actions button { width: 100%; min-height: 48px; border: 1px solid var(--prototype-border); border-radius: 8px; font-size: 11px; font-weight: 700; }

#notification-container { position: fixed; bottom: calc(92px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 32px), 420px); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 9999; pointer-events: none; }
.notification-toast { width: 100%; pointer-events: all; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; font-family: Inter, sans-serif; font-size: 12px; font-weight: 500; color: #f8fafc; opacity: 0; transform: translateY(16px); transition: opacity .3s ease, transform .3s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.24); }
.notification-toast.toast-visible { opacity: 1; transform: translateY(0); }
.notification-toast.toast-hidden { opacity: 0; transform: translateY(8px); }
.toast-icon { width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); color: #fff; font-size: 11px; }
.toast-message { flex: 1; color: #f8fafc; line-height: 1.4; }

@keyframes prototype-spin { to { transform: rotate(360deg); } }
@keyframes prototype-shimmer { to { background-position-x: -220%; } }

@media (max-width: 800px) {
  .inventory-toolbar { grid-template-columns: 1fr auto; }
  .inventory-search-row { grid-column: 1 / -1; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 280px; }
  .tool-card-active { grid-row: 1; }
  .tools-explanation ol { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --prototype-page-gutter: 16px; }

  body { padding-bottom: env(safe-area-inset-bottom); }

  .prototype-notice { justify-content: flex-start; text-align: left; }

  .prototype-header { width: calc(100% - 32px); min-height: 64px; }
  .prototype-brand small { display: none; }
  .prototype-account-button { width: 44px; padding: 0; font-size: 0; }
  .prototype-account-dot { width: 10px; height: 10px; }

  .prototype-state-menu { top: 104px; right: 16px; }

  .prototype-view { width: 100%; padding: 38px var(--prototype-page-gutter) 70px; }

  .tools-hero h1 { font-size: clamp(36px, 11vw, 46px); }
  .tools-hero-copy { font-size: 14px; }

  .resume-card { margin-top: 26px; grid-template-columns: 40px minmax(0, 1fr); }
  .resume-card-icon { width: 40px; height: 40px; }
  .resume-card-action { display: none; }

  .tools-section-heading { margin-top: 44px; align-items: start; }
  .tools-section-heading h2 { font-size: 21px; }
  .tools-section-heading small { margin-top: 4px; font-size: 9px; text-align: right; }

  .tool-card { min-height: 250px; padding: 18px; border-radius: 14px; }
  .tool-card h3 { font-size: 20px; }
  .tool-card-unavailable { min-height: 220px; }

  .tools-explanation { margin-top: 46px; padding: 20px 16px; border-radius: 14px; }
  .tools-explanation h2 { font-size: 21px; }

  .inventory-view { padding: 0 0 110px; }
  .inventory-view + .prototype-footer { display: none; }
  .inventory-mobile-header { min-height: 68px; padding: 10px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; border-bottom: 1px solid var(--prototype-border); background: rgba(8, 13, 31, .88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 700; }
  .inventory-mobile-header small, .inventory-mobile-header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .inventory-mobile-header small { color: var(--prototype-cyan); font-size: 9px; font-weight: 700; text-transform: uppercase; }
  .inventory-mobile-header strong { margin-top: 3px; font-size: 12px; }
  .prototype-more-icon { font-size: 20px; letter-spacing: 2px; }

  .inventory-shell { padding: 26px 16px 20px; }
  .inventory-heading { margin-bottom: 18px; }
  .guest-draft-warning { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .guest-draft-warning button { grid-column: 2; justify-self: end; min-height: 38px; }
  .inventory-heading h1 { font-size: 30px; }
  .inventory-heading > div > p:last-child { font-size: 13px; line-height: 1.55; }

  .inventory-progress-card { align-items: stretch; flex-direction: column; gap: 8px; padding: 15px; }
  .inventory-progress-ring { width: 54px; height: 54px; }
  .inventory-progress-card > button { min-height: 38px; padding: 0; align-self: flex-start; }

  .inventory-toolbar { margin-top: 20px; }
  .inventory-filter-row { margin-right: -4px; }
  .inventory-filter-row button { min-height: 42px; }

  .inventory-item { min-height: 0; grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
  .inventory-item-icon { width: 42px; height: 42px; }
  .inventory-item-action { grid-column: 2; width: max-content; margin-top: 2px; }

  .inventory-floating-add { position: fixed; z-index: 900; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border: 0; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; box-shadow: 0 16px 30px rgba(0, 81, 204, .32); font-size: 25px; }

  .prototype-sheet { padding-inline: 16px; }
  .prototype-sheet-heading h2 { font-size: 22px; }
  .prototype-field-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .prototype-sheet-actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--prototype-border); background: rgba(13, 22, 46, .96); }

  .prototype-modal { padding: 24px 20px; }
  .prototype-modal h2 { font-size: 24px; }
}

@media (max-width: 380px) {
  .prototype-notice { font-size: 10px; }
  .prototype-header { width: calc(100% - 28px); }
  .prototype-brand strong { font-size: 13px; }
  .prototype-header-actions { gap: 6px; }
  .tools-section-heading { flex-direction: column; gap: 7px; }
  .tools-section-heading small { text-align: left; }
  .prototype-field-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-draft-summary { grid-template-columns: 1fr; }
  .auth-draft-summary div { border-right: 0; border-bottom: 1px solid var(--prototype-border); }
  .auth-draft-summary div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .inventory-scenario-control { grid-template-columns: 1fr; margin-top: 10px; }
  .inventory-scenario-control label { font-size: .625rem; }
}

/* Active IMS inventory flow: mobile defaults first, enhanced at wider widths. */
:root { --prototype-page-gutter: 16px; }
body { font-size: 14px; }
.prototype-header { display: none; }
.prototype-state-menu { top: 104px; left: 16px; right: 16px; width: auto; max-width: none; max-height: calc(100dvh - 120px); overflow-y: auto; }
.prototype-view { width: 100%; margin: 0; padding: 0; }
.inventory-view { padding: 0 0 110px; }
.inventory-mobile-header { min-height: 68px; padding: 10px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--prototype-border); background: rgba(8, 13, 31, .92); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 700; }
.inventory-mobile-header small, .inventory-mobile-header strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-mobile-header small { color: var(--prototype-cyan); font-size: .5625rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.inventory-mobile-header strong { margin-top: 3px; font-size: .75rem; }
.inventory-mobile-auth-button { width: auto; min-width: 68px; min-height: 40px; padding-inline: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(0, 200, 240, .28); border-radius: 8px; background: rgba(0, 200, 240, .075); color: var(--prototype-text); font-size: .6875rem; font-weight: 700; white-space: nowrap; }
.inventory-shell { padding: 24px 16px 20px; }
.inventory-heading { margin-bottom: 18px; align-items: flex-start; }
.inventory-heading h1 { font-size: clamp(1.75rem, 8vw, 2rem); line-height: 1.04; }
.inventory-title-display { align-items: flex-start; flex-direction: column; gap: 2px; }
.inventory-title-edit { min-height: 40px; margin-left: -9px; }
.inventory-title-form { grid-template-columns: 1fr 1fr; }
.inventory-title-form input { grid-column: 1 / -1; }
.inventory-title-form button { min-height: 44px; }
.inventory-heading > div > p:last-child { font-size: .8125rem; line-height: 1.55; }
.inventory-desktop-actions { display: none; }
.guest-draft-warning { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
.guest-draft-warning strong { font-size: .75rem; line-height: 1.35; }
.guest-draft-warning p { font-size: .6875rem; }
.guest-draft-warning button { grid-column: 2; justify-self: end; min-height: 44px; font-size: .6875rem; }
.inventory-progress-card { align-items: stretch; flex-direction: column; gap: 10px; padding: 15px; }
.inventory-progress-ring { width: 54px; height: 54px; }
.inventory-progress-copy small { font-size: .5625rem; }
.inventory-progress-copy strong { font-size: .875rem; }
.inventory-progress-copy div > span { font-size: .6875rem; line-height: 1.45; }
.inventory-progress-card > button { min-height: 44px; padding: 0; align-self: flex-start; font-size: .6875rem; }
.inventory-toolbar { margin-top: 20px; }
.inventory-toolbar { flex-wrap: wrap; }
.prototype-search.expanded { width: 100%; max-width: none; flex-basis: 100%; }
.prototype-search input { min-width: 0; font-size: 16px; }
.inventory-filter-row button { min-height: 44px; font-size: .6875rem; }
.inventory-view-switch button { min-height: 40px; font-size: .6875rem; }
.inventory-item { min-height: 0; grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
.inventory-item-icon { width: 42px; height: 42px; }
.inventory-item h3 { font-size: .9375rem; line-height: 1.25; }
.inventory-item-quantity { font-size: .75rem; }
.inventory-item-note { font-size: .6875rem; }
.inventory-item-action { grid-column: 2; width: max-content; min-height: 44px; margin-top: 2px; font-size: .6875rem; }
.inventory-table { min-width: 960px; }
.inventory-table th { font-size: .5625rem; }
.inventory-table td { font-size: .6875rem; }
.inventory-floating-add { position: fixed; z-index: 900; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border: 0; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; box-shadow: 0 16px 30px rgba(0, 81, 204, .32); font-size: 1.5625rem; }
.inventory-auth-nav {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 12px;
  width: auto;
  max-width: calc(100vw - 24px);
  min-height: 66px;
  padding: 7px 5px 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 2px;
  border: 1px solid var(--prototype-border);
  border-radius: 15px;
  background: rgba(13, 22, 46, .96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
}
.inventory-auth-nav > button {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--prototype-muted);
}
.inventory-auth-nav > button.active {
  background: rgba(0, 200, 240, .09);
  color: var(--prototype-cyan);
}
.inventory-auth-nav small { font-size: .5625rem; }
.inventory-auth-nav-icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inventory-auth-nav-icon-wrap { position: relative; display: grid; place-items: center; }
.inventory-auth-nav-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border: 2px solid var(--prototype-overlay);
  border-radius: 9px;
  background: var(--prototype-cyan);
  color: #041126;
  font-size: .5rem;
}
.inventory-auth-nav .inventory-auth-create {
  position: relative;
  min-height: 48px;
  overflow: visible;
  color: white;
}
.inventory-auth-create > span {
  width: 54px;
  height: 54px;
  margin-top: -25px;
  display: grid;
  place-items: center;
  border: 6px solid var(--prototype-overlay);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan));
  box-shadow: 0 8px 24px rgba(0, 81, 204, .42);
  font-size: 1.8125rem;
  font-weight: 500;
  line-height: 1;
}
.inventory-auth-create small { margin-top: -1px; color: var(--prototype-cyan); font-weight: 700; }
.inventory-auth-nav-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 200, 240, .35);
  border-radius: 50%;
  background: linear-gradient(135deg, #173e70, #0c7892);
  color: white;
  font-size: .5625rem;
  font-weight: 800;
}
.inventory-auth-account small { color: #a8b8d7; }
body[data-session-scenario="signed-in"] .inventory-floating-add {
  bottom: calc(98px + env(safe-area-inset-bottom));
}
.prototype-sheet { padding-inline: 16px; }
.prototype-sheet-heading h2 { font-size: 1.375rem; }
.prototype-sheet-heading p, .prototype-modal > p:not(.prototype-eyebrow) { font-size: .75rem; }
.prototype-field-grid { grid-template-columns: 1fr; gap: 0; }
.prototype-field label { font-size: .6875rem; }
.prototype-field input, .prototype-field select, .prototype-field textarea { font-size: max(1rem, 16px); }
.prototype-sheet-actions { position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 0 -16px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--prototype-border); background: rgba(13, 22, 46, .97); }
.prototype-modal { top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: calc(100dvh - 12px); padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); overscroll-behavior: contain; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 20px 20px 0 0; transform: translateY(102%); }
.prototype-modal.prototype-layer-visible { transform: translateY(0); }
.prototype-modal h2 { font-size: 1.5rem; }
.item-details-heading { padding-right: 118px; }
.item-details-top-actions { top: 12px; right: 12px; }
.item-details-history-button { min-width: 70px; height: 44px; font-size: .6875rem; }
.item-details-top-actions .prototype-modal-close { width: 44px; height: 44px; }
.item-details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.item-details-grid .item-detail-wide { grid-column: 1 / -1; }
.item-details-grid dt { font-size: .5625rem; }
.item-details-grid dd { font-size: .75rem; }
.item-details-actions { grid-template-columns: 1fr; }

@media (min-width: 400px) {
  .prototype-field-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .item-details-grid { grid-template-columns: 1fr 1fr; }
  .item-details-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 621px) {
  :root { --prototype-page-gutter: 20px; }
  body { font-size: 15px; }
  .prototype-header { display: flex; }
  .prototype-view { width: min(calc(100% - 40px), 1180px); margin: auto; }
  .inventory-view { padding: 42px 0 90px; }
  .inventory-mobile-header { display: none; }
  .inventory-shell { padding: 0 0 40px; }
  .inventory-heading { align-items: end; margin-bottom: 24px; }
  .inventory-heading h1 { font-size: clamp(2rem, 4vw, 2.625rem); }
  .inventory-title-display { align-items: center; flex-direction: row; gap: 10px; }
  .inventory-title-edit { min-height: 36px; margin-left: 0; }
  .inventory-title-form { grid-template-columns: minmax(0, 1fr) auto auto; }
  .inventory-title-form input { grid-column: auto; font-size: .875rem; }
  .inventory-heading > div > p:last-child { font-size: .9375rem; }
  .inventory-desktop-actions { display: flex; align-items: center; gap: 9px; }
  .inventory-desktop-actions button { min-height: 46px; }
  .prototype-state-menu { top: 0; right: auto; bottom: 0; left: 0; width: 320px; max-width: 320px; height: 100dvh; max-height: 100dvh; overflow: hidden; border-width: 0 1px 0 0; border-radius: 0; }
  .guest-draft-warning { grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; }
  .guest-draft-warning .guest-draft-save { grid-column: 3; justify-self: end; }
  .inventory-progress-card { align-items: center; flex-direction: row; gap: 24px; padding: 18px; }
  .inventory-progress-ring { width: 60px; height: 60px; }
  .inventory-progress-card > button { min-height: 44px; align-self: auto; }
  .prototype-search.expanded { width: min(360px, 100%); max-width: 360px; flex-basis: 280px; }
  .prototype-search input { min-width: 250px; font-size: .8125rem; }
  .inventory-item { min-height: 118px; grid-template-columns: 46px minmax(0, 1fr) auto; padding: 16px; }
  .inventory-item-icon { width: 46px; height: 46px; }
  .inventory-item h3 { font-size: 1rem; }
  .inventory-item-action { grid-column: auto; align-self: start; }
  .inventory-floating-add { display: none; }
  .inventory-auth-nav { display: none; }
  .prototype-sheet { padding-inline: 24px; }
  .prototype-sheet > .prototype-sheet-handle { display: none; }
  .prototype-sheet-heading h2 { font-size: 1.625rem; }
  .prototype-sheet-heading p, .prototype-modal > p:not(.prototype-eyebrow) { font-size: .8125rem; }
  .prototype-field label { font-size: .75rem; }
  .prototype-field input, .prototype-field select, .prototype-field textarea { font-size: .8125rem; }
  .prototype-basics-grid { grid-template-columns: minmax(0, 1fr); }
  .quantity-unit-grid { max-width: 580px; grid-template-columns: minmax(180px, .8fr) minmax(260px, 1.2fr); gap: 12px; }
  .prototype-sheet-actions { position: static; margin: 0; padding: 0; border-top: 0; background: transparent; }
  .prototype-modal { padding: 28px; }
  .prototype-modal { top: 50%; right: auto; bottom: auto; left: 50%; width: min(calc(100% - 32px), 480px); max-height: calc(100dvh - 32px); border: 1px solid var(--prototype-border-strong); border-radius: 16px; transform: translate(-50%, -46%) scale(.98); }
  .prototype-modal.prototype-layer-visible { transform: translate(-50%, -50%) scale(1); }
  .inventory-setup-modal, .item-details-modal { width: min(calc(100% - 32px), 560px); }
  .prototype-modal h2 { font-size: 1.6875rem; }
  .item-details-actions { grid-template-columns: 1fr 1fr; }
  #notification-container { bottom: 28px; }
}

@media (min-width: 900px) {
  .prototype-state-menu .prototype-state-menu-pin { display: inline-grid; }
  body.prototype-sidebar-pinned #prototype-main { width: calc(100% - 320px); margin-left: 320px; transition: width .22s ease, margin-left .22s ease; }
  body.prototype-sidebar-pinned .prototype-header { width: min(calc(100% - 360px), 1180px); margin-left: 340px; margin-right: 20px; transition: width .22s ease, margin-left .22s ease; }
  body.prototype-sidebar-pinned .prototype-state-menu { transform: translateX(0); box-shadow: 12px 0 30px rgba(0,0,0,.18); }
  body.prototype-sidebar-pinned .prototype-sidebar-scrim { display: none; }
}

@media (max-width: 379px) {
  .auth-draft-summary { grid-template-columns: 1fr; }
  .auth-draft-summary div { border-right: 0; border-bottom: 1px solid var(--prototype-border); }
  .auth-draft-summary div:last-child { border-bottom: 0; }
}

/* Definitive small-screen behavior: keep these rules last to avoid legacy cascade conflicts. */
@media (max-width: 620px) {
  body.prototype-sidebar-open { overflow: hidden; }
  html, body { width: 100%; max-width: 100%; overflow-x: clip; }
  .prototype-header-context { display: none; }

  .inventory-view { min-height: calc(100dvh - 34px); padding-bottom: 110px; overflow-x: clip; }
  .inventory-shell { width: 100vw; max-width: 100vw; overflow-x: clip; }
  .inventory-shell > * { min-width: 0; max-width: 100%; }
  .inventory-table-wrap { width: calc(100vw - 32px); max-width: calc(100vw - 32px); min-width: 0; contain: inline-size; overflow-x: hidden; }
  .inventory-table-desktop { display: none; }
  .inventory-table-mobile { display: table; }
  .inventory-table { width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; }
  .inventory-table th { padding: 6px 3px; line-height: 1.2; overflow-wrap: anywhere; }
  .inventory-table td { padding: 2px 3px; line-height: 1.25; overflow-wrap: anywhere; }
  .inventory-table th:nth-child(1), .inventory-table td:nth-child(1) { width: 24px; text-align: center; }
  .inventory-table th:nth-child(2), .inventory-table td:nth-child(2) { width: 34%; }
  .inventory-table th:nth-child(3), .inventory-table td:nth-child(3),
  .inventory-table th:nth-child(4), .inventory-table td:nth-child(4) { width: 21%; }
  .inventory-table th:nth-child(5), .inventory-table td:nth-child(5) { width: 58px; }
  .inventory-table .inventory-table-item { min-height: 44px; display: inline-flex; align-items: center; font-size: .625rem; line-height: 1.25; }
  .inventory-table .inventory-status { padding: 3px; font-size: .40625rem; white-space: normal; }
  .inventory-table .inventory-item-action { position: relative; width: 100%; height: 32px; min-height: 32px; padding: 1px 2px; font-size: .5rem; white-space: normal; }
  .inventory-table .inventory-item-action::after { position: absolute; inset: -6px 0; content: ""; }
  .inventory-selection-bar { align-items: stretch; flex-direction: column; }
  .inventory-selection-bar > div { justify-content: flex-end; }
  .inventory-selection-bar button { min-height: 44px; }
  .inventory-row-select input { width: 16px; height: 16px; }
  .guest-draft-warning .guest-draft-save { display: none; }
  .storage-error-banner { grid-template-columns: 30px minmax(0, 1fr); align-items: start; }
  .storage-error-action { display: none; }
  .inventory-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .inventory-heading > div:first-child { width: 100%; min-width: 0; overflow: hidden; }
  .inventory-title-display { width: 100%; display: grid; grid-template-columns: minmax(0, calc(100vw - 102px)) 44px; align-items: start; gap: 10px; }
  .inventory-title-display h1 { width: 100%; min-width: 0; max-width: calc(100vw - 102px); margin-right: 0; font-size: clamp(1.5rem, 7vw, 1.75rem); line-height: 1.08; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
  .inventory-title-edit { width: 44px; min-width: 44px; min-height: 44px; margin: 2px 0 0; padding: 0; display: inline-grid; place-items: center; border-color: rgba(0, 200, 240, .3); border-radius: 10px; background: rgba(0, 200, 240, .075); box-shadow: inset 0 0 0 1px rgba(0, 200, 240, .025); }
  .inventory-title-edit-icon { width: 20px; height: 20px; }
  .inventory-title-edit-icon::before { font-size: 1rem; }
  .inventory-title-edit-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .inventory-desktop-actions { width: 100%; margin-top: 0; display: flex; }
  .inventory-desktop-actions button { width: auto; min-width: 132px; min-height: 46px; padding: 0 16px 0 10px; gap: 8px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan)); color: white; box-shadow: 0 10px 24px rgba(0, 81, 204, .22); font-size: .75rem; }
  .inventory-desktop-actions button > span:first-child { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .14); color: white; font-size: 1rem; }
  .inventory-floating-add { right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); }
  .inventory-floating-add.has-item-draft::after { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border: 2px solid #08101f; border-radius: 50%; background: var(--prototype-warning); content: ""; }
  .inventory-save-bar { position: fixed; z-index: 800; right: 0; bottom: 0; left: 0; min-height: calc(76px + env(safe-area-inset-bottom)); padding: 9px 12px max(9px, env(safe-area-inset-bottom)) 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--prototype-border); background: rgba(8, 13, 31, .96); backdrop-filter: blur(14px); }
  .inventory-save-bar > div { min-width: 0; flex: 1 1 auto; }
  .inventory-save-bar small, .inventory-save-bar strong { display: block; }
  .inventory-save-bar small { color: var(--prototype-cyan); font-size: .5rem; font-weight: 700; text-transform: uppercase; }
  .inventory-save-bar strong { margin-top: 3px; font-size: .6875rem; }
  .inventory-save-bar .prototype-primary-button { min-width: 124px; min-height: 50px; align-self: center; flex: 0 0 auto; padding: 0 18px; border-radius: 9px; font-size: .6875rem; white-space: nowrap; }

  .prototype-state-menu {
    z-index: 2100;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(86vw, 320px);
    max-width: 320px;
    max-height: 100dvh;
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: hidden;
    border-width: 0 1px 0 0;
    border-radius: 0;
    transform: translateX(-104%);
    transition: transform .24s cubic-bezier(.22, .61, .36, 1);
  }

  .prototype-state-menu.prototype-state-menu-open { transform: translateX(0); }
  .prototype-state-menu-heading { margin-bottom: 6px; }
  .prototype-state-menu .prototype-state-menu-pin { display: none; }
  .prototype-state-menu .prototype-state-menu-close { width: 44px; min-height: 44px; flex: 0 0 auto; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--prototype-border); color: var(--prototype-text); text-align: center; font-size: 22px; }
  .prototype-state-menu > small { padding-bottom: 14px; font-size: .6875rem; }
  .prototype-state-menu > button:not(.prototype-state-menu-close) { min-height: 48px; border-top: 1px solid var(--prototype-border); border-radius: 0; font-size: .75rem; }
  .prototype-state-menu > .prototype-drawer-profile { border-radius: 12px; }
  .prototype-state-menu > .prototype-drawer-signin { margin-top: 10px; border: 1px solid rgba(0, 200, 240, .28); border-radius: 9px; background: linear-gradient(135deg, rgba(0, 81, 204, .34), rgba(0, 200, 240, .16)); color: var(--prototype-text); text-align: center; }

  .inventory-toolbar { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .inventory-mobile-header { width: 100%; max-width: 100vw; }
  .inventory-mobile-header > div { min-width: 0; }
  .inventory-shell,
  .inventory-heading,
  .inventory-heading > div,
  .inventory-title-display,
  .inventory-toolbar { min-width: 0; max-width: 100%; }
  .inventory-heading h1 { max-width: 100%; overflow-wrap: anywhere; }
  .inventory-search-row { width: 100%; min-height: 44px; justify-content: flex-start; }
  .prototype-search,
  .prototype-search.expanded { width: 100%; max-width: 100%; flex: 1 1 auto; padding: 0 10px; border-color: rgba(0, 200, 240, .28); }
  .prototype-search input,
  .prototype-search.expanded input { min-width: 0; opacity: 1; pointer-events: auto; }
  .prototype-search .search-toggle,
  .prototype-search.expanded .search-toggle { width: 28px; min-width: 28px; }
  .inventory-filter-row { width: 100%; padding-bottom: 2px; flex-wrap: wrap; overflow: visible; }
  .inventory-filter-options { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; gap: 6px; }
  .inventory-filter-options button { min-width: 0; padding-inline: 6px; }
  .inventory-filter-collapse { width: 44px; padding: 0 !important; font-size: 1.125rem !important; }
  .inventory-toolbar-actions { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; }
  .inventory-toolbar-add { width: 100%; min-width: 0; min-height: 44px; padding-inline: 10px; }
  .prototype-unit-field { max-width: none; }
  .prototype-basics-grid { grid-template-columns: minmax(0, 1fr); }
  .prototype-name-field input { padding-inline: 10px; }

  .prototype-sheet .prototype-sheet-handle {
    position: sticky;
    z-index: 8;
    top: -12px;
    width: calc(100% + 32px);
    height: 46px;
    margin: -12px -16px 6px;
    border-radius: 20px 20px 10px 10px;
    background: var(--prototype-overlay);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .prototype-sheet .prototype-sheet-handle span { background: rgba(203, 240, 255, .7); }

  .prototype-sheet,
  .prototype-modal {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 8px);
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }

  .prototype-modal {
    top: auto;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    transform: translate3d(0, 102%, 0);
  }

  .prototype-modal.prototype-layer-visible { transform: translate3d(0, 0, 0); }
  .prototype-sheet { right: 8px; bottom: 8px; left: 8px; width: auto; max-width: calc(100% - 16px); max-height: min(90dvh, 760px); border: 1px solid var(--prototype-border-strong); border-radius: 20px; transform: translate3d(0, calc(102% + 16px), 0); }
  .prototype-sheet.prototype-layer-visible { transform: translate3d(0, 0, 0); }
  .inventory-setup-modal,
  .item-details-modal,
  .item-history-modal,
  .duplicate-modal,
  .draft-activity-modal { width: 100%; max-width: 100%; }
}

@media (max-width: 620px) {
  .inventory-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .inventory-search-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .inventory-search-row .inventory-toolbar-add { width: 116px; min-width: 116px; justify-self: end; }
  .inventory-search-row .inventory-toolbar-add.resume-item-draft { width: auto; min-width: 154px; }
  .inventory-filter-row { grid-column: 1; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
  .inventory-filter-options { width: auto; flex: 0 0 auto; display: flex; }
  .inventory-toolbar-actions { grid-column: 2; width: auto; min-width: max-content; display: flex; justify-self: end; }
  .inventory-toolbar-actions .inventory-view-switch { margin: 0; }
  .inventory-wide-add { display: none; }
  .inventory-table-view-filter { min-width: 0; }
  .inventory-table-views-toggle { margin-bottom: 6px; }
  .inventory-table-views { max-width: 100%; padding-bottom: 8px; }
  body[data-session-scenario="signed-in"] .prototype-account-button { width: auto; min-width: 92px; padding: 0 10px; font-size: 11px; }
  body[data-session-scenario="signed-in"] .prototype-account-dot { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(0,200,240,.34); border-radius: 50%; background: linear-gradient(135deg,#173e70,#0c7892); color: white; font-size: 8px; font-weight: 800; }
  body[data-session-scenario="signed-in"] .inventory-mobile-auth-button { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 50%; background: linear-gradient(135deg,#173e70,#0c7892); color: white; font-size: 9px; font-weight: 800; }
  body[data-session-scenario="signed-in"] .inventory-mobile-header { grid-template-columns: 44px 44px minmax(0,1fr) 42px; gap: 6px; }
  .inventory-table-configure { display: none; }
  .authenticated-column-priority-panel { top: calc(118px + env(safe-area-inset-top)); right: auto; left: 14px; width: min(calc(86vw - 28px), 292px); max-height: calc(100dvh - 154px - env(safe-area-inset-top)); }
  .inventory-item > .inventory-stock-actions { grid-column: 2 / -1; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory-item > .inventory-stock-actions .inventory-stock-action { min-height: 40px; }
  .signed-in-inventory-back { font-size: 22px; }
  .table-custom-field-row { grid-template-columns: minmax(0,1fr) 110px; }
  .table-custom-field-row button { grid-column: 1 / -1; }
  .table-more-settings > div { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .inventory-toolbar-actions { grid-row: 2; grid-column: 1 / -1; }
  .inventory-filter-row { grid-row: 3; grid-column: 1 / -1; }
}

body[data-session-scenario="signed-in"] .inventory-table-wrap { overflow-x: hidden; }
body[data-session-scenario="signed-in"] .inventory-table-desktop { display: table; width: 100%; min-width: 0; max-width: 100%; table-layout: fixed; }
body[data-session-scenario="signed-in"] .inventory-table-mobile { display: none; }
body[data-session-scenario="signed-in"] .inventory-table-desktop th,
body[data-session-scenario="signed-in"] .inventory-table-desktop td { overflow: hidden; text-overflow: ellipsis; }
body[data-session-scenario="signed-in"] .inventory-table-desktop td[data-column="actions"] { overflow: visible; }
body[data-session-scenario="signed-in"] .inventory-table-desktop th[data-column="actions"] { overflow: visible; text-align: right; }
.desktop-column-picker { margin-left: auto; }
.selection-move { min-height: 36px; padding: 0 12px; border: 1px solid rgba(0,200,240,.32); border-radius: 8px; background: rgba(0,200,240,.08); color: var(--prototype-cyan); font-weight: 750; cursor: pointer; }
.selection-move:disabled { opacity: .45; cursor: not-allowed; }
.table-manage-items { width: fit-content; }

.inventory-location-control {
  display: grid;
  gap: 10px;
}

.inventory-location-selects {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.inventory-sub-location {
  margin: 0;
}

.inventory-sub-location > span {
  display: block;
  margin-bottom: 6px;
  color: var(--prototype-muted);
  font-size: 10px;
  font-weight: 700;
}

#locationCreatorForm .location-creator-actions {
  margin-top: 30px;
  padding-top: 4px;
}

.location-editor-fields { display: grid; gap: 14px; }
.location-review-receipt { margin-top: 20px; padding: 18px; border: 1px solid rgba(0,200,240,.24); border-radius: 12px; background: linear-gradient(145deg,rgba(0,81,204,.1),rgba(0,200,240,.035)); }
.location-review-receipt[hidden],.inventory-move-receipt[hidden],#inventoryMoveEditor[hidden] { display: none; }
.location-review-receipt > div { min-width: 0; }
.location-review-receipt > div > small,.location-review-receipt > div > strong { display: block; }
.location-review-receipt > div > small { color: var(--prototype-cyan); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.location-review-receipt > div > strong { margin-top: 4px; font: 700 20px Syne,sans-serif; overflow-wrap: anywhere; }
.location-review-receipt > div > p { margin: 6px 0 0; color: var(--prototype-muted); font-size: 11px; line-height: 1.5; }
.receipt-status-mark { width: 38px; height: 38px; margin-bottom: 12px; display: grid; place-items: center; border: 1px solid rgba(66,217,163,.3); border-radius: 50%; background: rgba(66,217,163,.09); color: var(--prototype-success); font-weight: 800; }

.inventory-move-receipt { margin-top: 18px; }
.inventory-move-route { padding: 16px; display: grid; grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr); align-items: center; gap: 8px; border: 1px solid rgba(0,200,240,.24); border-radius: 12px; background: linear-gradient(135deg,rgba(0,81,204,.12),rgba(0,200,240,.045)); }
.inventory-move-route > div { min-width: 0; }
.inventory-move-route small,.inventory-move-route strong { display: block; }
.inventory-move-route small { color: var(--prototype-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.inventory-move-route strong { margin-top: 5px; font-size: 12px; overflow-wrap: anywhere; }
.inventory-move-route > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,200,240,.1); color: var(--prototype-cyan); font-size: 17px; }

.stock-action-quantity-fields,
.stock-transfer-fields {
  display: grid;
  gap: 12px;
}

.stock-transfer-match { min-width: 0; padding: 11px 12px; display: grid; gap: 5px; border: 1px solid rgba(0,200,240,.18); border-radius: 9px; background: rgba(0,200,240,.045); }
.stock-transfer-match[hidden] { display: none; }
.stock-transfer-match > span { color: var(--prototype-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.stock-transfer-match > strong { color: var(--prototype-text); font-size: 12px; }
.stock-transfer-match > label { min-height: 36px; display: flex; align-items: center; gap: 8px; color: var(--prototype-muted); font-size: 10px; }
.stock-transfer-match input { width: 18px; height: 18px; accent-color: var(--prototype-cyan); }
.stock-action-drag-handle { display: none; }

.stock-transfer-fields {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(120, 201, 255, .18);
  border-radius: 12px;
  background: rgba(120, 201, 255, .05);
}

@media (min-width: 640px) {
  .stock-action-quantity-fields,
  .stock-transfer-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.inventory-location-control .prototype-secondary-button {
  min-height: 44px;
}

.server-review-warning {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 191, 71, .35);
  border-radius: 10px;
  color: #ffe0a1;
  background: rgba(255, 191, 71, .08);
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .inventory-location-control {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (max-width: 620px) {
  .stock-action-modal { padding-top: 0; }
  .stock-action-modal .stock-action-drag-handle { position: sticky; z-index: 12; top: 0; width: calc(100% + 40px); height: 46px; margin: 0 -20px 2px; display: grid; border-radius: 20px 20px 10px 10px; background: var(--prototype-overlay); }
  .stock-action-modal .stock-action-drag-handle span { background: rgba(203,240,255,.7); }
  .stock-action-modal .stock-action-actions { position: sticky; z-index: 11; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 6px -20px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); border-top: 1px solid var(--prototype-border); background: rgba(13,22,46,.98); box-shadow: 0 -12px 24px rgba(3,7,19,.18); }
  .stock-action-modal .stock-action-actions button { min-width: 0; }
  body[data-session-scenario="signed-in"] .inventory-stock-actions-row { gap: 3px; }
  body[data-session-scenario="signed-in"] .inventory-stock-action { min-width: 0; min-height: 40px; padding-inline: 3px; font-size: 8px; }
  body[data-session-scenario="signed-in"] .inventory-stock-actions-mobile { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px; }
  body[data-session-scenario="signed-in"] .inventory-table-mobile th:nth-child(1),
  body[data-session-scenario="signed-in"] .inventory-table-mobile td:nth-child(1) { width: 22px; }
  body[data-session-scenario="signed-in"] .inventory-table-mobile th:nth-child(2),
  body[data-session-scenario="signed-in"] .inventory-table-mobile td:nth-child(2) { width: 30%; }
  body[data-session-scenario="signed-in"] .inventory-table-mobile th:nth-child(3),
  body[data-session-scenario="signed-in"] .inventory-table-mobile td:nth-child(3),
  body[data-session-scenario="signed-in"] .inventory-table-mobile th:nth-child(4),
  body[data-session-scenario="signed-in"] .inventory-table-mobile td:nth-child(4) { width: 16%; }
  body[data-session-scenario="signed-in"] .inventory-table-mobile th:nth-child(5),
  body[data-session-scenario="signed-in"] .inventory-table-mobile td:nth-child(5) { width: 96px; }
}

/* Signed-in inventory refinements: compact controls, responsive columns and calm motion. */
.prototype-drawer-profile {
  min-height: 76px !important;
  grid-template-columns: 42px minmax(0, 1fr);
  justify-items: start;
  align-content: center;
  text-align: left !important;
}
.prototype-drawer-avatar { width: 42px; height: 42px; }
.prototype-drawer-home { min-height: 54px; padding-block: 8px; }

.inventory-table-view-filter {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr);
  align-items: center;
  column-gap: 10px;
  margin: 0 0 10px;
}
.inventory-table-view-filter[hidden] { display: none; }
.inventory-table-views-toggle {
  min-height: 28px;
  margin: 0;
  padding: 0;
  gap: 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .68rem;
}
.inventory-table-views-toggle:hover { color: var(--prototype-cyan); }
.inventory-table-views-toggle-active { background: transparent; }
.inventory-table-view-rule { height: 1px; background: linear-gradient(90deg, var(--prototype-border-strong), transparent); }
.inventory-group-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}
.inventory-group-chevron.expanded { transform: translateY(2px) rotate(225deg); }
.inventory-table-views-reveal {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .28s cubic-bezier(.22,.61,.36,1), opacity .2s ease;
}
.inventory-table-views-reveal.is-expanded { grid-template-rows: 1fr; opacity: 1; }
.inventory-table-views {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: padding .24s ease;
}
.inventory-table-views-reveal.is-expanded .inventory-table-views { padding: 7px 0 6px; overflow-x: auto; }
.inventory-table-views button {
  min-height: 34px;
  opacity: 0;
  transform: translateY(-7px) scale(.98);
  transition: opacity .18s ease, transform .24s cubic-bezier(.22,.61,.36,1), border-color .18s ease, background .18s ease;
  transition-delay: 0ms;
}
.inventory-table-views-reveal.is-expanded button {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: calc(var(--group-index, 0) * 32ms);
}

.inventory-heading-add { flex: 0 0 auto; min-width: 124px; }
.inventory-table-configure > span:last-child { display: inline; }
.inventory-table-configure { width: auto; justify-content: center; padding: 0 11px; font-size: 10px; cursor: pointer; }
.mobile-column-picker {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--prototype-border);
  border-radius: 7px;
  background: rgba(255,255,255,.035);
  color: var(--prototype-cyan);
  font-weight: 800;
  cursor: pointer;
}
.inventory-table-mobile th:last-child { width: 44px; text-align: right; }
.inventory-table-mobile th:last-child .mobile-column-picker { margin-left: auto; display: block; }
.authenticated-column-priority-list button { padding: 0; border: 0; background: transparent; color: var(--prototype-cyan); font-weight: 750; cursor: pointer; }
.column-quick-reset { min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--prototype-warning); font-size: 10px; font-weight: 700; cursor: pointer; }
.inventory-browse-groups { min-height: 34px; margin-top: 4px; padding: 0 10px; border: 1px solid rgba(0,200,240,.22); border-radius: 8px; background: rgba(0,200,240,.05); color: var(--prototype-cyan); font-size: 10px; font-weight: 700; display: none; }
.inventory-table-views-reveal.is-expanded .inventory-browse-groups:not([hidden]) { display: block; justify-self: start; }
.inventory-group-search { margin-top: 18px; }
.inventory-group-picker-list { margin: 14px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inventory-group-picker-list label { min-height: 58px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--prototype-border); border-radius: 9px; cursor: pointer; }
.inventory-group-picker-list input { width: 18px; height: 18px; accent-color: var(--prototype-cyan); }
.inventory-group-picker-list strong,.inventory-group-picker-list small { display: block; }
.inventory-group-picker-list small { margin-top: 3px; color: var(--prototype-muted); font-size: 8px; }
.inventory-group-picker-empty { grid-column: 1 / -1; color: var(--prototype-muted); font-size: 11px; }
.inventory-archive-preview { max-height: 210px; margin: 16px 0; padding: 0; overflow-y: auto; display: grid; gap: 7px; list-style: none; }
.inventory-archive-preview li { padding: 10px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--prototype-border); border-radius: 8px; background: rgba(255,255,255,.02); }
.inventory-archive-preview strong,.inventory-archive-preview span { min-width: 0; overflow-wrap: anywhere; }
.inventory-archive-preview strong { font-size: 11px; }
.inventory-archive-preview span { color: var(--prototype-muted); font-size: 9px; text-align: right; }
.inventory-confirm-danger { min-height: 46px; border: 1px solid rgba(255,107,107,.35); border-radius: 8px; background: rgba(255,107,107,.1); color: var(--prototype-danger); font-weight: 750; }

.table-custom-field-row { grid-template-columns: minmax(0,1fr) 108px 124px; gap: 10px; }
.table-custom-field-row > * { min-width: 0; }
.table-custom-field-row > button {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding-inline: 10px;
  align-self: end;
  border-color: transparent;
  background: linear-gradient(135deg, var(--prototype-blue), var(--prototype-cyan));
  color: #fff;
  white-space: nowrap;
}
.table-more-settings + .item-details-actions { margin-top: 18px; }
body.compact-inventory-table .inventory-table th { padding-block: 6px; }
body.compact-inventory-table .inventory-table td { padding-block: 5px; }
body.compact-inventory-list .inventory-item { min-height: 78px; padding-block: 8px; }
body:not(.inventory-list-detailed) .inventory-item-note,
body:not(.inventory-list-detailed) .inventory-item-kind { display: none; }
body.hide-inventory-list-type .inventory-item-kind { display: none; }
body.wrap-inventory-item-names .inventory-table-item { white-space: normal; overflow: visible; text-overflow: clip; }
.inventory-heading { margin-top: 20px; }
.edit-quantity-summary { min-height: 70px; padding: 11px 12px; display: grid; gap: 3px; border: 1px solid var(--prototype-border); border-radius: 9px; background: rgba(255,255,255,.025); }
.edit-quantity-summary[hidden] { display: none; }
.edit-quantity-summary small,.edit-quantity-summary span { color: var(--prototype-muted); font-size: 9px; }
.edit-quantity-summary strong { color: var(--prototype-text); font: 700 15px Syne,sans-serif; }
.editing-item-details .prototype-quantity-field > label,
.editing-item-details .prototype-quantity-field > .quantity-stepper,
.editing-item-details #itemQuantityHint,
.editing-item-details #itemQuantityFormatted,
.editing-item-details #itemQuantityError { display: none; }
.inventory-table tr[data-status="incomplete"] td:first-child { box-shadow: inset 3px 0 0 var(--prototype-danger); }
.inventory-table tr[data-status="partial"] td:first-child { box-shadow: inset 3px 0 0 var(--prototype-warning); }
.inventory-table tr[data-status="complete"] td:first-child { box-shadow: inset 3px 0 0 var(--prototype-success); }
.inventory-item[data-status]::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 0 3px 3px 0; }
.inventory-item[data-status="incomplete"]::before { background: var(--prototype-danger); }
.inventory-item[data-status="partial"]::before { background: var(--prototype-warning); }
.inventory-item[data-status="complete"]::before { background: var(--prototype-success); }
.hide-inventory-status-accent .inventory-item[data-status]::before { display: none; }
.hide-inventory-status-accent .inventory-table tr td:first-child,
.hide-inventory-status-accent .inventory-item { box-shadow: none; }
.hide-inventory-status-accent .inventory-item[data-status] { border-color: var(--prototype-border); }
.inventory-low-stock > td:first-child { box-shadow: inset 3px 0 0 var(--prototype-warning); }
.inventory-item.inventory-low-stock { box-shadow: inset 3px 0 0 var(--prototype-warning); }
.hide-inventory-status-accent .inventory-low-stock > td:first-child,
.hide-inventory-status-accent .inventory-item.inventory-low-stock { box-shadow: none; }

.inventory-destination-list { display: grid; gap: 9px; margin: 18px 0; }
.inventory-destination-card {
  width: 100%;
  min-height: 66px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--prototype-border);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: var(--prototype-text);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.inventory-destination-card:hover { transform: translateY(-1px); border-color: rgba(0,200,240,.38); background: rgba(0,200,240,.06); }
.inventory-destination-card strong,.inventory-destination-card small { display: block; }
.inventory-destination-card small { margin-top: 4px; color: var(--prototype-muted); }
.inventory-destination-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; background: rgba(0,200,240,.1); color: var(--prototype-cyan); font-weight: 800; }
.inventory-destination-arrow { color: var(--prototype-cyan); font-size: 18px; }
.inventory-context-modal { width: min(calc(100% - 32px), 480px); }
.inventory-context-actions { margin-top: 20px; display: grid; gap: 9px; }
.inventory-context-actions button { width: 100%; }
.inventory-context-drag-handle { display: none; }
.inventory-context-group { display: grid; gap: 7px; }
.inventory-context-group > strong { margin: 6px 2px 2px; color: var(--prototype-muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.inventory-context-destination,.inventory-inbox-entry { min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--prototype-border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--prototype-text); text-align: left; }
.inventory-context-destination strong,.inventory-context-destination small,.inventory-inbox-entry strong,.inventory-inbox-entry small,.inventory-inbox-entry time { display: block; }
.inventory-context-destination small,.inventory-inbox-entry small,.inventory-inbox-entry time { margin-top: 3px; color: var(--prototype-muted); font-size: 9px; }
.inventory-context-loading,.inventory-context-error { padding: 18px; border: 1px dashed var(--prototype-border); border-radius: 10px; color: var(--prototype-muted); text-align: center; }
.inventory-inbox-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inventory-inbox-tabs button { min-height: 42px; border: 1px solid var(--prototype-border); border-radius: 8px; background: transparent; color: var(--prototype-muted); font-size: 10px; font-weight: 750; }
.inventory-inbox-tabs button.active { border-color: rgba(0,200,240,.4); background: rgba(0,200,240,.08); color: var(--prototype-cyan); }
.inventory-inbox-panel { display: grid; gap: 7px; }
.inventory-inbox-toolbar { min-height: 28px; display: flex; justify-content: flex-end; }
.inventory-inbox-toolbar button { border: 0; background: transparent; color: var(--prototype-cyan); font-size: 9px; font-weight: 700; cursor: pointer; }
.inventory-inbox-toolbar button:disabled { opacity: .45; cursor: default; }
.inventory-context-actions.inventory-inbox-refreshing { position: relative; }
.inventory-context-actions.inventory-inbox-refreshing::before { position: absolute; z-index: 3; top: -4px; right: 0; width: 52px; height: 2px; border-radius: 2px; background: linear-gradient(90deg,transparent,var(--prototype-cyan),transparent); animation: prototype-inbox-refresh 1s ease-in-out infinite; content: ""; }
.inventory-inbox-entry > b { color: var(--prototype-cyan); font-size: 9px; }
.inventory-inbox-entry.invitation-revoked,.inventory-inbox-entry.invitation-expired,.inventory-inbox-entry.invitation-declined,.inventory-inbox-entry.invitation-accepted { opacity: .67; border-color: rgba(255,255,255,.06); background: rgba(255,255,255,.018); }
@keyframes prototype-inbox-refresh { 50% { transform: translateX(-62px); } }
.inventory-invitation-row.invitation-revoked,
.inventory-invitation-row.invitation-expired,
.inventory-invitation-row.invitation-declined,
.inventory-invitation-row.invitation-accepted {
  border-color: rgba(255,255,255,.055);
  background: rgba(255,255,255,.018);
  opacity: .66;
}
.inventory-invitation-row:not(.invitation-pending) div > small:nth-of-type(2) { display: none; }
.prototype-confirm-cover { position: fixed; z-index: 5000; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(2,6,18,.8); backdrop-filter: blur(8px); }
.prototype-confirm-dialog { width: min(100%,420px); padding: 22px; border: 1px solid rgba(0,200,240,.2); border-radius: 13px; background: linear-gradient(145deg,#101b37,#0a1229); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.prototype-confirm-dialog > span { color: var(--prototype-cyan); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.prototype-confirm-dialog h2 { margin: 8px 0 0; color: var(--prototype-text); font: 700 20px Syne,sans-serif; }
.prototype-confirm-dialog p { margin: 11px 0 20px; color: var(--prototype-muted); font-size: 11px; line-height: 1.6; }
.prototype-confirm-dialog > div { display: flex; justify-content: flex-end; gap: 8px; }
.prototype-confirm-dialog button { min-height: 40px; padding-inline: 14px; border-radius: 8px; font-size: 10px; font-weight: 750; cursor: pointer; }
.prototype-danger-button { border: 1px solid rgba(255,103,128,.42); background: rgba(255,72,104,.1); color: #ff8da1; }
.inventory-inbox-entry { grid-template-columns: minmax(0,1fr); }
.inventory-inbox-entry.unread { border-color: rgba(0,200,240,.32); background: rgba(0,200,240,.055); }

@media (max-width: 620px) {
  body[data-session-scenario="signed-in"] .inventory-table-desktop { display: none; }
  body[data-session-scenario="signed-in"] .inventory-table-mobile { display: table; }
  .inventory-heading-add { display: none !important; }
  body[data-session-scenario="signed-in"] .inventory-table-configure { width: 42px; padding: 0; display: inline-flex; font-size: 15px; }
  body[data-session-scenario="signed-in"] .inventory-table-configure > span:last-child { display: none; }
  .inventory-table-view-filter { margin-bottom: 8px; }
  .inventory-table-views-reveal.is-expanded .inventory-table-views { padding-top: 5px; }
  .table-custom-field-row { grid-template-columns: minmax(0,1fr) 104px; }
  .table-custom-field-row > button { grid-column: 1 / -1; width: 100%; }
  .prototype-drawer-profile { min-height: 70px !important; }
  .inventory-group-picker-list { grid-template-columns: 1fr; }
  .table-designer-modal > .item-details-actions:last-child { position: sticky; z-index: 10; bottom: calc(-24px - env(safe-area-inset-bottom)); margin: 16px -20px calc(-24px - env(safe-area-inset-bottom)); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--prototype-border); background: rgba(13,22,46,.98); box-shadow: 0 -12px 24px rgba(3,7,19,.18); }
  .table-designer-modal { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .inventory-context-modal { right: 0; left: 0; width: 100%; max-width: 100%; padding-top: 0; }
  .inventory-context-modal .inventory-context-drag-handle { position: sticky; z-index: 12; top: 0; width: calc(100% + 40px); height: 46px; margin: 0 -20px 2px; display: grid; border-radius: 20px 20px 10px 10px; background: var(--prototype-overlay); }
  .inventory-context-modal .inventory-context-drag-handle span { background: rgba(203,240,255,.7); }
  .inventory-item { min-height: 76px; padding: 10px 11px; gap: 9px; }
  .inventory-item-icon { width: 38px; height: 38px; }
  .inventory-item h3 { margin-top: 3px; font-size: 14px; }
  .inventory-heading { margin-top: 14px; }
  .inventory-member-row { grid-template-columns: minmax(0, 1fr) auto; }
  .inventory-member-row > div { grid-column: 1 / -1; }
  .inventory-invite-form { grid-template-columns: 1fr; }
  .inventory-sharing-actions .prototype-secondary-button,.inventory-invite-form .prototype-primary-button { width: 100%; }
}

@media (max-width: 380px) {
  .inventory-table-mobile th:nth-child(4),
  .inventory-table-mobile td:nth-child(4) { display: none; }
}

@media (max-width: 620px) {
  body[data-session-scenario="guest"] .inventory-view {
    height: 100dvh;
    min-height: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    overflow: hidden;
    box-sizing: border-box;
  }
  body[data-session-scenario="guest"] .inventory-shell {
    min-height: 0;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  }
  body[data-session-scenario="guest"] .inventory-toolbar {
    margin: 0 0 18px;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  body[data-session-scenario="guest"] .inventory-filter-row,
  body[data-session-scenario="guest"] .inventory-toolbar-actions,
  body[data-session-scenario="guest"] .inventory-floating-add {
    display: none !important;
  }
  body[data-session-scenario="guest"] .inventory-search-row {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr) 116px;
  }
  body[data-session-scenario="guest"] .inventory-empty {
    min-height: clamp(180px, 27dvh, 220px);
    margin: 0 0 20px;
    padding: 28px 20px;
    border-color: rgba(255, 255, 255, .075);
    border-radius: 12px;
  }
  body[data-session-scenario="guest"] .inventory-empty-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 20px;
  }
  body[data-session-scenario="guest"] .inventory-empty h2 {
    margin: 12px 0 6px;
    font-size: 16px;
  }
  body[data-session-scenario="guest"] .inventory-empty p {
    max-width: 290px;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
  }
  body[data-session-scenario="guest"] .inventory-empty button {
    display: none;
  }
  body[data-session-scenario="guest"] .inventory-heading {
    margin: 0;
    gap: 6px;
  }
  body[data-session-scenario="guest"] .inventory-heading h1 {
    margin: 6px 0;
    font-size: 21px;
  }
  body[data-session-scenario="guest"] .inventory-title-display {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
  body[data-session-scenario="guest"] .inventory-heading > div > p:last-child {
    display: none;
  }
  body[data-session-scenario="guest"] .inventory-title-edit {
    width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
  }
  body[data-session-scenario="guest"] .inventory-title-edit-label {
    display: none;
  }
  body[data-session-scenario="guest"] .guest-draft-warning {
    margin: 18px 0 0;
    padding: 9px 0 9px 12px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    border: 0;
    border-left: 2px solid rgba(0, 200, 240, .38);
    border-radius: 0;
    background: transparent;
  }
  body[data-session-scenario="guest"] .guest-draft-warning-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
  }
  body[data-session-scenario="guest"] .guest-draft-warning strong { font-size: 11px; }
  body[data-session-scenario="guest"] .guest-draft-warning p {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.4;
  }
}

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