:root { color-scheme: dark; --bg:#090d18; --surface:#111827; --surface-2:#172033; --line:#26324a; --text:#f3f6ff; --muted:#98a7c2; --accent:#7c5cff; --accent-2:#22d3a4; --danger:#ff6b81; --shadow:0 22px 60px rgba(0,0,0,.35); font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; }
* { box-sizing:border-box; } body { margin:0; min-width:320px; min-height:100vh; background:var(--bg); color:var(--text); } button,input,textarea,select { font:inherit; } button { cursor:pointer; } .hidden { display:none!important; }
.ambient { position:fixed; width:38rem; height:38rem; pointer-events:none; filter:blur(90px); opacity:.18; border-radius:999px; } .ambient-one { top:-18rem; left:-17rem; background:#6d4aff; } .ambient-two { right:-22rem; bottom:-24rem; background:#00bf93; }
.shell { position:relative; z-index:1; min-height:100vh; }.auth-shell { min-height:100vh; display:grid; place-items:center; padding:24px; }.auth-card,.loading-card { width:min(100%,480px); border:1px solid var(--line); background:linear-gradient(160deg,rgba(25,34,54,.97),rgba(12,18,31,.96)); box-shadow:var(--shadow); border-radius:28px; padding:34px; }.loading-card { display:flex; align-items:center; gap:12px; justify-content:center; color:var(--muted); }.brand { display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.03em; font-size:20px; }.brand-mark { display:grid; place-items:center; color:#fff; background:linear-gradient(145deg,var(--accent),#aa7dff); width:28px; height:28px; border-radius:9px; box-shadow:0 7px 22px rgba(124,92,255,.4); }.eyebrow { color:#9f8dff; font-size:11px; font-weight:800; letter-spacing:.13em; margin:28px 0 9px; }.auth-card h1 { font-size:38px; letter-spacing:-.055em; line-height:1.02; margin:0 0 16px; }.muted,.section-heading p,.surface-card p,.welcome-card p { color:var(--muted); line-height:1.55; }.stack-form { display:grid; gap:16px; margin-top:28px; } label { display:grid; gap:7px; color:#dfe7f7; font-size:13px; font-weight:700; } input,textarea,select { width:100%; border:1px solid var(--line); border-radius:12px; padding:12px 13px; color:var(--text); background:#0d1423; outline:none; transition:border-color .15s,box-shadow .15s; } textarea { resize:vertical; min-height:80px; } input:focus,textarea:focus,select:focus { border-color:#8d78ff; box-shadow:0 0 0 3px rgba(124,92,255,.18); }.primary-button { border:0; border-radius:12px; padding:12px 16px; color:#fff; background:linear-gradient(135deg,var(--accent),#9a79ff); font-weight:800; box-shadow:0 9px 24px rgba(100,70,220,.27); display:inline-flex; align-items:center; gap:10px; justify-content:center; }.primary-button:hover { filter:brightness(1.08); }.primary-button span { font-size:18px; line-height:0; }.form-error { min-height:16px; color:#ff9aac; font-size:13px; margin:0; }.auth-hint { margin:22px 0 0; color:var(--muted); font-size:12px; text-align:center; }.spinner { width:17px; height:17px; border:2px solid #8290ad; border-top-color:#fff; border-radius:50%; animation:spin .8s linear infinite; } @keyframes spin { to { transform:rotate(360deg); } }
.app-shell { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:100vh; }.sidebar { display:flex; flex-direction:column; padding:24px 15px; border-right:1px solid var(--line); background:rgba(12,18,32,.8); backdrop-filter:blur(18px); }.tenant-chip { margin:34px 4px 24px; display:flex; align-items:center; gap:10px; padding:12px; background:#141e31; border:1px solid #23304a; border-radius:14px; }.tenant-avatar { width:35px; height:35px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:linear-gradient(145deg,#ff9867,#fe656f); font-weight:900; }.tenant-chip strong,.tenant-chip small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.tenant-chip strong { font-size:13px; }.tenant-chip small,.user-chip small { color:var(--muted); font-size:11px; margin-top:3px; }.nav { display:grid; gap:5px; }.nav-item { text-align:left; border:0; background:transparent; color:var(--muted); padding:11px 12px; border-radius:10px; font-weight:700; }.nav-item span { display:inline-block; width:24px; color:#a89bff; }.nav-item.active,.nav-item:hover { color:#fff; background:#1a2740; }.sidebar-bottom { margin-top:auto; padding:16px 5px 0; border-top:1px solid var(--line); }.user-chip { margin-bottom:10px; }.user-chip span { display:block; font-size:13px; font-weight:700; }.text-button { padding:0; border:0; background:transparent; color:#a99bff; font-size:12px; font-weight:700; }.content { min-width:0; padding:36px clamp(22px,4vw,64px) 70px; }.topbar { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:28px; }.topbar .eyebrow { margin:0 0 7px; }.topbar h1 { margin:0; font-size:32px; letter-spacing:-.05em; }.icon-button { width:41px; height:41px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:#fff; font-size:21px; }.notice { padding:13px 16px; border-radius:12px; margin:0 0 18px; font-size:14px; }.notice.error { color:#ffb4c0; background:rgba(255,107,129,.11); border:1px solid rgba(255,107,129,.27); }.notice.success { color:#9df0d4; background:rgba(34,211,164,.1); border:1px solid rgba(34,211,164,.28); }.welcome-card { display:flex; justify-content:space-between; gap:26px; align-items:center; padding:30px; border-radius:20px; border:1px solid #293857; background:linear-gradient(115deg,#182442,#171b39 60%,#27204f); }.welcome-card .eyebrow { margin:0 0 9px; }.welcome-card h2 { margin:0 0 12px; font-size:24px; letter-spacing:-.04em; }.welcome-card p { max-width:650px; margin:0; }.trial-badge { flex:0 0 auto; width:170px; padding:13px; border-radius:14px; background:rgba(9,13,25,.4); color:#d7d1ff; border:1px solid rgba(177,157,255,.3); font-size:13px; font-weight:800; text-align:center; }.stats-grid { margin:22px 0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.stat-card,.surface-card,.item-card { border:1px solid var(--line); background:rgba(17,24,39,.82); border-radius:17px; padding:20px; }.stat-card span,.stat-card small { color:var(--muted); display:block; }.stat-card strong { display:block; font-size:32px; letter-spacing:-.06em; padding:12px 0 4px; }.stat-card small { font-size:12px; }.split-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.surface-card h3 { margin:0 0 13px; font-size:16px; }.surface-card p { margin:0; }.steps { margin:0; padding-left:20px; color:var(--muted); line-height:1.75; font-size:14px; }.section-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:20px; }.section-heading h2 { margin:0 0 7px; font-size:25px; letter-spacing:-.04em; }.section-heading p { margin:0; max-width:650px; }.cards-list { display:grid; gap:12px; }.empty-state { padding:28px; text-align:center; color:var(--muted); border:1px dashed #31405e; border-radius:16px; }.item-card { display:flex; align-items:center; justify-content:space-between; gap:18px; }.item-card h3 { margin:0 0 6px; font-size:16px; }.item-card p { margin:0; color:var(--muted); font-size:13px; }.item-meta { display:flex; align-items:center; gap:9px; flex-wrap:wrap; color:#c9d5ec; font-size:12px; }.pill { display:inline-flex; align-items:center; padding:5px 8px; border-radius:999px; background:#1f2b45; color:#bdcced; font-size:11px; font-weight:800; }.pill.good { background:rgba(34,211,164,.12); color:#9df0d4; }.pill.warn { background:rgba(255,193,97,.12); color:#ffd18b; }.count { font-weight:900; font-size:22px; color:#cfc7ff; text-align:right; }.count small { color:var(--muted); display:block; font-size:11px; font-weight:600; }.modal { padding:0; border:0; background:transparent; max-width:min(540px,calc(100vw - 32px)); color:var(--text); }.modal::backdrop { background:rgba(3,6,14,.74); backdrop-filter:blur(4px); }.modal-card { position:relative; display:grid; gap:15px; border:1px solid #334362; border-radius:22px; padding:28px; background:#111a2b; box-shadow:var(--shadow); }.modal-card .eyebrow { margin:0; }.modal-card h2 { margin:0 0 6px; letter-spacing:-.04em; }.modal-close { position:absolute; top:16px; right:17px; background:transparent; color:var(--muted); border:0; font-size:26px; }.modal-close:hover { color:#fff; }
@media (max-width:800px) { .app-shell { display:block; }.sidebar { min-height:auto; padding:16px; border-right:0; border-bottom:1px solid var(--line); }.tenant-chip,.sidebar-bottom { display:none; }.nav { display:flex; overflow:auto; margin-top:18px; }.nav-item { white-space:nowrap; }.content { padding:25px 18px 50px; }.stats-grid,.split-grid { grid-template-columns:1fr; }.welcome-card { display:block; }.trial-badge { margin-top:18px; width:auto; }.item-card { align-items:flex-start; }.section-heading { display:block; }.section-heading .primary-button { margin-top:16px; }.auth-card { padding:28px 22px; }.auth-card h1 { font-size:33px; } }

.item-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; flex:0 0 auto; }
.secondary-button { border:1px solid var(--line); border-radius:10px; padding:8px 10px; background:#141e31; color:#d9e4f8; font-size:12px; font-weight:800; }
.secondary-button:hover { background:#1d2a44; }
.danger-button { color:#ffadb9; border-color:rgba(255,107,129,.35); }
.danger-button:hover { background:rgba(255,107,129,.12); }

/* Product editor: catalogue structure, marketplace announcements and delivery
 * settings live in one compact editor without exposing any secret inventory
 * data. */
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.check-grid { display:flex; flex-wrap:wrap; gap:12px 20px; }
.check-row { display:flex; align-items:center; gap:9px; min-height:22px; font-size:13px; color:#dfe7f7; }
.check-row input { width:17px; height:17px; margin:0; accent-color:var(--accent); }
.editor-modal { width:min(1120px,calc(100vw - 32px)); max-width:none; }
.editor-card { max-height:calc(100vh - 32px); overflow:auto; padding:28px; }
.editor-card > .eyebrow { margin:0; }
.editor-card > h2 { margin:5px 36px 2px 0; }
.editor-subtitle { margin:0; color:var(--muted); font-size:12px; }
.editor-tabs { display:flex; flex-wrap:wrap; gap:8px; padding:18px 0 2px; border-bottom:1px solid var(--line); }
.editor-tab { border:1px solid transparent; background:transparent; color:var(--muted); border-radius:9px 9px 0 0; padding:9px 11px; font-size:13px; font-weight:800; }
.editor-tab:hover { color:#fff; background:#18243b; }
.editor-tab.active { color:#fff; border-color:#3c4a69; border-bottom-color:#182235; background:#182235; }
.editor-panel { padding-top:22px; }
.compact-form { max-width:720px; margin-top:0; }
.editor-section-heading { display:flex; gap:20px; align-items:flex-start; justify-content:space-between; margin:0 0 14px; }
.editor-section-heading h3,.editor-form h3 { margin:0 0 6px; font-size:17px; letter-spacing:-.02em; }
.editor-section-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.45; }
.editor-list { display:grid; gap:10px; margin:15px 0; }
.editor-row { display:flex; gap:18px; align-items:center; justify-content:space-between; padding:14px; border:1px solid var(--line); border-radius:13px; background:#101929; }
.editor-row h4 { margin:0 0 5px; font-size:14px; }
.editor-row p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }
.editor-row .item-meta { margin-top:8px; }
.editor-form { display:grid; gap:14px; margin-top:18px; padding:18px; border:1px solid #36466a; border-radius:16px; background:rgba(18,29,48,.78); }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.editor-form textarea { font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:13px; line-height:1.45; }
@media (max-width:800px) {
  .form-grid { grid-template-columns:1fr; }
  .editor-modal { width:calc(100vw - 14px); }
  .editor-card { max-height:calc(100vh - 14px); padding:21px 16px; }
  .editor-tabs { flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; }
  .editor-tab { white-space:nowrap; }
  .editor-section-heading,.editor-row { align-items:flex-start; flex-direction:column; }
  .editor-row .item-actions { width:100%; justify-content:flex-start; }
}
