:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;--bg:#070b14;--surface:#121b2deb;--surface-soft:#1e293bad;--border:#94a3b82e;--border-strong:#f59e0b61;--text:#f8fafc;--muted:#94a3b8;--accent:#f59e0b;--accent-strong:#f97316;--danger:#fb7185;--success:#34d399;--shadow:0 24px 70px #00000052;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}::selection{color:#111827;background:#fbbf24}html{background:var(--bg);min-height:100%}body{isolation:isolate;min-width:320px;min-height:100vh;color:var(--text);background:radial-gradient(circle at 8% 5%, #f59e0b29, transparent 28rem), radial-gradient(circle at 94% 32%, #ef44441c, transparent 30rem), var(--bg);margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:wait;opacity:.58}.app-shell{width:min(1180px,100%);min-height:100vh;padding:max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));margin:0 auto}.brand-bar,.portal-header,.section-heading,.form-actions,.history-card,.admin-row,.product-card-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.brand-bar{margin-bottom:1.5rem}.brand-bar>div:last-child{gap:.1rem;display:grid}.brand-bar strong{letter-spacing:-.02em}.brand-bar span,.admin-row span,.product-card-heading span,.history-card span{color:var(--muted);font-size:.82rem}.brand-mark{color:#111827;background:linear-gradient(135deg,#fbbf24,#f97316);border:1px solid #fff3;border-radius:.95rem;place-items:center;width:2.75rem;height:2.75rem;font-weight:900;display:grid;box-shadow:0 12px 28px #f973163d}.view[hidden],.tab-panel[hidden],[hidden]{display:none!important}.centered-card,.auth-card,.content-card,.guide-card{border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.centered-card,.auth-card{text-align:center;border-radius:1.5rem;width:min(460px,100%);margin:8vh auto 0;padding:clamp(1.5rem,5vw,2.4rem)}.auth-card{text-align:left}.guide-card{border-radius:1.5rem;width:min(620px,100%);margin:5vh auto 0;padding:clamp(1.5rem,5vw,2.4rem)}.content-card{border-radius:1.35rem;padding:clamp(1rem,3vw,1.6rem)}h1,h2,p{margin-top:0}h1{letter-spacing:-.045em;margin-bottom:.55rem;font-size:clamp(1.7rem,6vw,2.35rem);line-height:1.05}h2{letter-spacing:-.025em;margin-bottom:0;font-size:1.2rem}.eyebrow{color:#fbbf24;letter-spacing:.14em;text-transform:uppercase;margin-bottom:.45rem;font-size:.72rem;font-weight:800}.muted{color:var(--muted);line-height:1.55}.small-text{font-size:.78rem}.stack-form,.compact-stack{gap:1rem;display:grid}.stack-form{margin-top:1.4rem}.compact-stack{margin-top:1rem}label{color:#cbd5e1;gap:.42rem;font-size:.82rem;font-weight:700;display:grid}input,select,textarea{border:1px solid var(--border);width:100%;min-height:3rem;color:var(--text);background:#080f1cc7;border-radius:.78rem;outline:none;padding:.76rem .85rem;transition:border-color .15s,box-shadow .15s}textarea{resize:vertical;min-height:5rem}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #f59e0b21}.primary-button,.secondary-button,.text-button,.status-button{border-radius:.82rem;min-height:2.8rem;padding:.68rem 1rem;font-weight:800}.primary-button{color:#111827;background:linear-gradient(135deg,#fbbf24,#f97316);border:0;box-shadow:0 12px 24px #f973162b}.secondary-button,.status-button{border:1px solid var(--border);color:var(--text);background:var(--surface-soft)}.text-button{color:#fbbf24;background:0 0;border:0;width:100%}.guide-button{width:100%;margin-top:.8rem}.compact-button{min-height:2.35rem;padding:.45rem .7rem;font-size:.78rem}.form-message{min-height:1.2rem;color:var(--danger);margin:.75rem 0 0;font-size:.84rem;line-height:1.45}.form-message[data-tone=success]{color:var(--success)}.guide-steps{gap:.8rem;margin:1.4rem 0;padding-left:1.35rem;display:grid}.guide-steps li{color:var(--text);padding-left:.25rem;line-height:1.45}.guide-steps strong,.guide-steps span{display:block}.guide-steps span{color:var(--muted);margin-top:.15rem;font-size:.9rem}.guide-help{color:#fde68a;background:#f59e0b14;border:1px solid #f59e0b52;border-radius:.9rem;margin:0 0 1.2rem;padding:.9rem 1rem;font-size:.9rem;line-height:1.5}.account-chip,.status-pill{border:1px solid var(--border);color:#e2e8f0;background:#0f172abf;border-radius:999px;justify-content:center;align-items:center;width:-moz-fit-content;width:fit-content;display:inline-flex}.account-chip{margin:0 auto 1rem;padding:.55rem .85rem}.status-pill{flex:none;padding:.38rem .68rem;font-size:.72rem;font-weight:800}.status-approved,.status-imported{color:#6ee7b7;border-color:#34d39952}.status-rejected,.status-returned{color:#fda4af;border-color:#fb718552}.status-submitted,.status-under_review{color:#fde68a;border-color:#f59e0b52}.portal{gap:1rem;display:grid}.portal-header{align-items:flex-end;padding:.4rem .15rem}.portal-header h1{margin-bottom:.3rem}.portal-header p:last-child{margin-bottom:0}.tab-bar{z-index:10;top:max(.5rem, env(safe-area-inset-top));border:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#080d18e6;border-radius:1rem;grid-auto-columns:1fr;grid-auto-flow:column;gap:.35rem;padding:.38rem;display:grid;position:sticky;box-shadow:0 12px 35px #0000003d}.tab-button{min-height:2.7rem;color:var(--muted);background:0 0;border:0;border-radius:.72rem;font-weight:800}.tab-button.is-active{color:#111827;background:linear-gradient(135deg,#fbbf24,#f97316)}.section-heading{margin-bottom:1.2rem}.products-heading{margin-top:1.6rem}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;margin-bottom:1rem;display:grid}.product-list,.history-list,.admin-list{gap:.75rem;display:grid}.product-card{border:1px solid var(--border);background:#080f1c8a;border-radius:1rem;padding:1rem}.product-card-heading{align-items:flex-start;margin-bottom:.9rem}.product-card-heading>*{display:block}.quantity-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;display:grid}.quantity-grid label{font-size:.69rem}.quantity-grid input{text-align:center;min-height:2.7rem;padding-inline:.55rem}.form-actions{margin-top:1.2rem}.history-card,.admin-row{border:1px solid var(--border);background:#080f1c80;border-radius:.95rem;padding:.9rem}.history-card>div,.admin-row>div{gap:.22rem;display:grid}.history-card-actions{flex:none;justify-items:end}.history-review-note{color:#fcd34d;max-width:42rem;margin:.35rem 0 0;font-size:.78rem;line-height:1.45}.admin-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);align-items:start;gap:1rem;display:grid}.team-admin-card{grid-column:1/-1}.team-create-form{margin-top:1rem}.unit-access-fieldset{border:1px solid var(--border);border-radius:.9rem;margin:0;padding:.9rem}.unit-access-fieldset legend{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding-inline:.35rem;font-size:.75rem;font-weight:700}.unit-access-options{flex-wrap:wrap;gap:.55rem;display:flex}.unit-access-option{border:1px solid var(--border);min-height:2.35rem;color:var(--text);text-transform:none;letter-spacing:0;background:#080f1c80;border-radius:999px;align-items:center;gap:.45rem;padding:.45rem .7rem;font-size:.8rem;display:inline-flex}.unit-access-option input{width:1rem;height:1rem;min-height:auto;accent-color:var(--accent)}.credential-result{background:#34d39914;border:1px solid #34d39959;border-radius:.9rem;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding:.9rem;display:flex}.credential-result>div{gap:.35rem;display:grid}.credential-result code{color:#a7f3d0;word-break:break-all;font-size:.95rem}.team-admin-list{gap:.75rem;margin-top:1rem;display:grid}.team-member-card{border:1px solid var(--border);background:#080f1c80;border-radius:.95rem;gap:.8rem;padding:.9rem;display:grid}.team-member-heading{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.team-member-heading>div{gap:.2rem;display:grid}.team-member-heading span{color:var(--muted);font-size:.78rem}.team-member-controls{grid-template-columns:minmax(130px,.35fr) 1fr auto;align-items:end;gap:.65rem;display:grid}.team-member-controls>label{gap:.35rem;display:grid}.inline-form{grid-template-columns:1fr .8fr auto;gap:.6rem;margin:1rem 0 0;display:grid}.status-button{min-height:2.3rem;padding:.4rem .65rem;font-size:.73rem}.empty-state{border:1px dashed var(--border);color:var(--muted);text-align:center;border-radius:.9rem;margin:0;padding:1.5rem 1rem}.error-text{color:var(--danger)}.spinner{border:3px solid #94a3b833;border-top-color:var(--accent);border-radius:50%;width:2rem;height:2rem;margin:0 auto 1rem;animation:.75s linear infinite spin}.toast{z-index:30;right:max(1rem, env(safe-area-inset-right));bottom:max(1rem, env(safe-area-inset-bottom));border:1px solid var(--border-strong);max-width:min(360px,100vw - 2rem);color:var(--text);box-shadow:var(--shadow);background:#172033;border-radius:.9rem;padding:.85rem 1rem;position:fixed}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:760px){.app-shell{padding-inline:.75rem}.brand-bar{margin-bottom:1rem}.portal-header{align-items:center}.portal-header .secondary-button{min-height:2.4rem;padding:.45rem .7rem}.form-grid,.admin-grid,.team-member-controls{grid-template-columns:1fr}.credential-result{flex-direction:column;align-items:stretch}.quantity-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.inline-form{grid-template-columns:1fr}}@media (max-width:430px){.brand-mark{width:2.45rem;height:2.45rem}.centered-card,.auth-card{margin-top:4vh}.section-heading,.form-actions,.product-card-heading{flex-direction:column;align-items:stretch}.form-actions>button{width:100%}.quantity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
