@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f8fafc; --surface: #fff; --surface-subtle: #f1f5f9; --surface-elevated: #fff;
  --border: #e2e8f0; --border-strong: #cbd5e1; --text: #0f172a; --text-secondary: #475569;
  --muted: #64748b; --disabled: #94a3b8; --primary: #2563eb; --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff; --success: #0f766e; --success-soft: #f0fdfa; --warning: #b45309;
  --warning-soft: #fffbeb; --danger: #dc2626; --shadow: 0 1px 2px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.04);
  --sidebar: 240px; --topbar: 64px; --ease: cubic-bezier(.2,0,0,1);
}

.dark {
  color-scheme: dark;
  --bg: #0b1120; --surface: #111827; --surface-subtle: #1e293b; --surface-elevated: #172033;
  --border: #283548; --border-strong: #334155; --text: #f8fafc; --text-secondary: #cbd5e1;
  --muted: #94a3b8; --disabled: #64748b; --primary: #60a5fa; --primary-hover: #93c5fd;
  --primary-soft: rgba(37,99,235,.14); --success: #5eead4; --success-soft: rgba(13,148,136,.12);
  --warning: #fbbf24; --warning-soft: rgba(217,119,6,.13); --danger: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font: 400 14px/1.5 Inter,system-ui,sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .brand { font-family: Manrope,Inter,system-ui,sans-serif; }
:focus-visible { outline: 3px solid color-mix(in srgb,var(--primary) 45%,transparent); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar); flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--border); background: var(--surface); transition: width 220ms var(--ease),transform 220ms var(--ease); }
.brand { display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.sidebar__brand { justify-content: center; padding: 4px 8px; text-decoration: none; }
.sidebar__logo { display: block; width: 100%; max-width: 182px; height: auto; }
.sidebar__logo-compact { display: none; width: 38px; height: 38px; object-fit: contain; }
.sidebar__collapse { position: absolute; top: 72px; right: -13px; z-index: 2; display: grid; width: 26px; height: 26px; padding: 0; place-items: center; color: var(--text-secondary); border: 1px solid var(--border); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); cursor: pointer; transform: rotate(180deg); transition: transform 220ms var(--ease),background 150ms var(--ease); }
.sidebar__collapse:hover { color: var(--primary); background: var(--primary-soft); }
.brand__mark { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 12px; background: var(--primary); box-shadow: 0 5px 14px color-mix(in srgb,var(--primary) 22%,transparent); }
.nav { margin-top: 22px; }
.nav__label { padding: 0 12px 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.nav__label--spaced { margin-top: 24px; }
.nav__item { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 2px 0; padding: 0 12px; color: var(--text-secondary); border-radius: 12px; text-decoration: none; font-weight: 550; transition: 150ms var(--ease); }
.nav__item small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 600; }
.nav__item:hover:not(.is-disabled) { color: var(--text); background: var(--surface-subtle); }
.nav__item.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 650; }
.nav__item.is-disabled { cursor: default; opacity: .65; }
.sidebar__footer { margin-top: auto; }
.sidebar__mascot { display: block; width: 112px; max-height: 150px; margin: 10px auto 8px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 14px rgba(15,23,42,.12)); }
.sidebar__settings { margin-top: 0; }
.workspace { min-height: 100vh; margin-left: var(--sidebar); transition: margin-left 220ms var(--ease); }
.sidebar-collapsed .sidebar { width: 76px; }
.sidebar-collapsed .workspace { margin-left: 76px; }
.sidebar-collapsed .sidebar__logo { display: none; }.sidebar-collapsed .sidebar__logo-compact { display: block; }
.sidebar-collapsed .sidebar__collapse { transform: rotate(0); }
.sidebar-collapsed .nav__label { height: 0; padding: 0; overflow: hidden; opacity: 0; }
.sidebar-collapsed .nav__label--spaced { margin-top: 16px; }
.sidebar-collapsed .nav__item { justify-content: center; gap: 0; padding: 0; }
.sidebar-collapsed .nav__item span,.sidebar-collapsed .nav__item small { width: 0; overflow: hidden; opacity: 0; white-space: nowrap; }
.sidebar-collapsed .sidebar__mascot { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: var(--topbar); align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--border); background: color-mix(in srgb,var(--surface) 92%,transparent); backdrop-filter: blur(12px); }
.topbar__context { display: flex; align-items: baseline; gap: 8px; }
.topbar__context span { color: var(--muted); font-size: 12px; }
.topbar__context strong { font-size: 14px; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: inline-grid; width: 40px; height: 40px; padding: 0; place-items: center; color: var(--text-secondary); border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--text); background: var(--surface-subtle); }
.menu-button { display: none; }
.avatar { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(145deg,#2563eb,#0d9488); font-size: 12px; font-weight: 700; }
.theme-switcher { position: relative; }
.theme-menu { position: absolute; top: 45px; right: 0; z-index: 50; width: 176px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-elevated); box-shadow: 0 12px 32px rgba(15,23,42,.14); }
.theme-menu button { width: 100%; padding: 9px 10px; color: var(--text); border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.theme-menu button:hover, .theme-menu button[aria-checked="true"] { color: var(--primary); background: var(--primary-soft); }
.scrim { display: none; }

.main-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 32px 48px; }
.breadcrumb { display: flex; align-items: center; gap: 5px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--text-secondary); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.eyebrow { margin-bottom: 5px; color: var(--primary); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-heading h1 { margin-bottom: 7px; font-size: clamp(24px,3vw,32px); line-height: 1.25; letter-spacing: -.035em; }
.page-heading p:not(.eyebrow) { max-width: 680px; color: var(--text-secondary); font-size: 15px; }
.page-heading__actions { display: flex; flex: 0 0 auto; gap: 10px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; transition: 150ms var(--ease); }
.button--primary { color: #fff; background: #2563eb; }
.button--primary:hover:not(:disabled) { background: #1d4ed8; }
.button--secondary { color: var(--text); border-color: var(--border); background: var(--surface); }
.button--secondary:hover:not(:disabled) { background: var(--surface-subtle); }
.button--danger { color: #fff; background: var(--danger); }
.button--danger:hover:not(:disabled) { background: color-mix(in srgb,var(--danger) 86%,#000); }
.button:disabled { cursor: not-allowed; opacity: .58; }

.card { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.stat-card { display: flex; min-height: 144px; justify-content: space-between; padding: 21px; }
.stat-card__label { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.stat-card__value { display: block; margin: 8px 0 2px; font-family: Manrope,sans-serif; font-size: 30px; line-height: 1.2; }
.stat-card__detail { color: var(--muted); font-size: 12px; }
.stat-card__icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--primary); border-radius: 13px; background: var(--primary-soft); }
.stat-card__icon--success { color: var(--success); background: var(--success-soft); }
.stat-card__icon--warning { color: var(--warning); background: var(--warning-soft); }
.stat-card__icon--neutral { color: var(--muted); background: var(--surface-subtle); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(280px,1fr); gap: 16px; margin-top: 16px; }
.panel { min-height: 310px; padding: 22px; }
.panel__header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.panel h2, .getting-started h2 { font-size: 18px; letter-spacing: -.025em; }
.badge { display: inline-flex; min-height: 25px; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.badge--warning { color: var(--warning); background: var(--warning-soft); }
.badge--success { color: var(--success); background: var(--success-soft); }
.badge--neutral { color: var(--text-secondary); background: var(--surface-subtle); }
.empty-state { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; padding: 30px; text-align: center; }
.empty-state__icon { display: grid; width: 58px; height: 58px; margin-bottom: 14px; place-items: center; color: var(--primary); border-radius: 18px; background: var(--primary-soft); }
.empty-state h3 { margin-bottom: 6px; font-size: 15px; }
.empty-state p { max-width: 400px; color: var(--muted); font-size: 13px; }
.empty-state--compact { min-height: 220px; }
.getting-started { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-top: 16px; padding: 22px; }
.getting-started__icon { display: grid; width: 52px; height: 52px; place-items: center; color: var(--success); border-radius: 16px; background: var(--success-soft); }
.getting-started p:not(.eyebrow) { margin-top: 5px; color: var(--text-secondary); font-size: 13px; }
.getting-started__status { display: flex; align-items: end; flex-direction: column; gap: 10px; }
.getting-started__status a { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); font-size: 12px; font-weight: 650; text-decoration: none; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; }
.toast { display: flex; min-width: 240px; align-items: center; gap: 10px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-elevated); box-shadow: 0 12px 32px rgba(15,23,42,.14); animation: toast-in 180ms var(--ease); }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.user-name { color: var(--text-secondary); font-size: 12px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); align-items: start; gap: 16px; }
.catalog-tabs { display: grid; gap: 5px; }
.catalog-tabs button { display: flex; min-height: 45px; align-items: center; gap: 11px; padding: 0 13px; color: var(--text-secondary); border: 1px solid transparent; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.catalog-tabs button:hover { background: var(--surface-subtle); }.catalog-tabs button.is-active { color: var(--primary); border-color: color-mix(in srgb,var(--primary) 16%,var(--border)); background: var(--primary-soft); font-weight: 650; }
.catalog-panel { min-height: 430px; padding: 22px; }.catalog-panel h2 { font-size: 19px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.search-field { display: flex; width: min(300px,45%); height: 40px; align-items: center; gap: 8px; padding: 0 11px; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); }
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent); }.search-field input { min-width: 0; flex: 1; color: var(--text); border: 0; outline: 0; background: transparent; }
.catalog-message { padding: 60px 20px; color: var(--muted); text-align: center; }.table-wrap { overflow-x: auto; }.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 12px; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 11px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }.data-table td { padding: 15px 12px; border-bottom: 1px solid var(--border); }.data-table tr:last-child td { border-bottom: 0; }.muted-cell { max-width: 440px; color: var(--muted); font-size: 12px; }.actions-cell { width: 190px; text-align: right !important; white-space: nowrap; }
.table-action { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 10px; color: var(--primary); border: 1px solid color-mix(in srgb,var(--primary) 40%,var(--border)); border-radius: 9px; background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; transition: 150ms var(--ease); }.table-action + .table-action { margin-left: 7px; }.table-action:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary); }.table-action:disabled { cursor: not-allowed; opacity: .5; }.table-action--danger { color: var(--danger); border-color: color-mix(in srgb,var(--danger) 38%,var(--border)); }.table-action--danger:hover:not(:disabled) { border-color: var(--danger); background: color-mix(in srgb,var(--danger) 9%,transparent); }
.catalog-dialog { width: min(92vw,620px); max-height: 88vh; padding: 0; color: var(--text); border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 70px rgba(2,6,23,.28); }.catalog-dialog::backdrop { background: rgba(2,6,23,.55); backdrop-filter: blur(2px); }.catalog-dialog form { padding: 24px; }.dialog-header { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }.dialog-header h2 { font-size: 21px; }.catalog-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }.catalog-fields label { display: grid; gap: 6px; color: var(--text-secondary); font-size: 12px; font-weight: 650; }.catalog-fields label:first-child,.catalog-fields label:last-child { grid-column: 1/-1; }.catalog-fields input,.catalog-fields textarea { width: 100%; padding: 10px 12px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; outline: 0; background: var(--surface); }.catalog-fields input:focus,.catalog-fields textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent); }.catalog-fields textarea { resize: vertical; }.catalog-fields small { color: var(--danger); font-weight: 500; }.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }.catalog-dialog .form-message { color: var(--danger); text-align: left; }.toast--danger .toast__dot { background: var(--danger); }
.delete-dialog { width: min(92vw,560px); padding: 26px; }.delete-dialog__content { display: grid; grid-template-columns: 170px minmax(0,1fr); align-items: center; gap: 24px; }.delete-dialog__mascot { display: block; width: 100%; max-height: 190px; object-fit: contain; }.delete-dialog__copy h2 { margin-bottom: 9px; font-size: 21px; }.delete-dialog__copy > p:last-child { color: var(--text-secondary); }.delete-dialog__copy strong { color: var(--text); }.delete-dialog .form-message:not(:empty) { margin-top: 14px; }

.auth-page { min-height: 100vh; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.auth-intro { display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: clamp(32px,5vw,72px); color: #fff; background: radial-gradient(circle at 15% 15%,rgba(45,212,191,.2),transparent 28%),linear-gradient(145deg,#0f2c59,#173f83 56%,#0f766e); }
.auth-brand { width: fit-content; height: auto; padding: 0; color: #fff; text-decoration: none; }
.auth-brand .brand__mark { background: rgba(255,255,255,.14); box-shadow: none; }
.auth-intro > div { max-width: 600px; }
.auth-intro__content { display: grid; width: 100%; max-width: 760px !important; grid-template-columns: minmax(0,1fr) minmax(180px,300px); align-items: center; gap: clamp(20px,3vw,44px); text-align: left; }
.auth-mascot { display: block; width: 100%; max-height: 42vh; grid-column: 2; grid-row: 1; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(2,6,23,.18)); }
.auth-intro__content > div { grid-column: 1; grid-row: 1; }
.auth-intro .eyebrow { color: #99f6e4; }
.auth-intro h1 { max-width: 630px; margin-top: 12px; font-size: clamp(34px,4vw,56px); line-height: 1.08; letter-spacing: -.045em; }
.auth-intro__content > div > p:last-child { max-width: 530px; margin-top: 20px; color: #dbeafe; font-size: 16px; }
.auth-intro ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; color: #dbeafe; font-size: 13px; }
.auth-intro li { display: flex; align-items: center; gap: 7px; }
.auth-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 32px; background: var(--bg); }
.auth-logo { display: block; width: min(100%,300px); margin-bottom: 22px; }
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-card { width: min(100%,440px); padding: clamp(26px,4vw,40px); border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: 0 18px 50px rgba(15,23,42,.09); }
.auth-card__heading { margin-bottom: 26px; }
.auth-card__heading h2 { font-size: 26px; letter-spacing: -.035em; }
.auth-card__heading p { margin-top: 7px; color: var(--text-secondary); }
.auth-form { display: grid; gap: 17px; }
.auth-form label { display: grid; gap: 7px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.auth-form input { width: 100%; height: 46px; padding: 0 13px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 11px; background: var(--surface); outline: 0; transition: 150ms var(--ease); }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent); }
.auth-form label small { min-height: 0; color: var(--danger); font-weight: 500; }
.auth-form label small:not(:empty) { margin-top: -3px; }
.field-hint { color: var(--muted); font-size: 11px; font-weight: 400; }
.auth-form .button, .google-button { width: 100%; min-height: 46px; text-decoration: none; }
.form-row { display: flex; justify-content: space-between; margin-top: -5px; font-size: 12px; }
.form-row a, .auth-switch a { color: var(--primary); font-weight: 650; text-decoration: none; }
.auth-switch { margin-top: 22px; color: var(--text-secondary); text-align: center; font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0; color: var(--muted); font-size: 11px; }
.auth-divider::before,.auth-divider::after { height: 1px; flex: 1; background: var(--border); content: ''; }
.google-mark { font-size: 17px; font-weight: 700; color: #4285f4; }
.form-message { min-height: 20px; margin-top: 15px; font-size: 12px; text-align: center; }
.form-message.is-error { color: var(--danger); }.form-message.is-success { color: var(--success); }
.auth-footer { max-width: 430px; margin-top: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.error-page { min-height: 100vh; background: radial-gradient(circle at 50% 12%,var(--primary-soft),transparent 34%),var(--bg); }
.error-shell { display: flex; width: min(100% - 32px,960px); min-height: 100vh; margin: 0 auto; align-items: center; justify-content: center; flex-direction: column; padding: 32px 0; }
.error-logo { display: block; width: min(72vw,270px); margin-bottom: 28px; }
.error-logo img { display: block; width: 100%; height: auto; }
.error-card { display: grid; width: 100%; grid-template-columns: minmax(260px,.85fr) minmax(320px,1.15fr); align-items: center; gap: clamp(28px,6vw,72px); padding: clamp(30px,5vw,58px); border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px rgba(15,23,42,.1); }
.error-illustration { position: relative; display: grid; min-height: 280px; place-items: center; }
.error-illustration::before { position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--primary-soft); content: ''; }
.error-illustration img { position: relative; z-index: 1; display: block; width: 100%; max-height: 310px; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(15,23,42,.14)); }
.error-code { position: absolute; top: -18px; left: -8px; z-index: 2; color: color-mix(in srgb,var(--primary) 12%,transparent); font: 700 clamp(74px,11vw,128px)/1 Manrope,Inter,sans-serif; letter-spacing: -.08em; user-select: none; }
.error-copy .eyebrow { margin-bottom: 10px; }
.error-copy h1 { max-width: 520px; font-size: clamp(30px,4vw,44px); line-height: 1.12; letter-spacing: -.045em; }
.error-copy > p:not(.eyebrow) { max-width: 500px; margin-top: 16px; color: var(--text-secondary); font-size: 15px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.error-actions .button { min-height: 44px; padding-inline: 19px; }
.error-footer { margin-top: 20px; color: var(--muted); font-size: 12px; text-align: center; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }.auth-intro { display: none; }.auth-panel { min-height: 100vh; }
  .sidebar { transform: translateX(-101%); box-shadow: 12px 0 30px rgba(15,23,42,.14); transition: transform 220ms var(--ease); }
  .sidebar__collapse { display: none; }
  .sidebar-collapsed .sidebar { width: var(--sidebar); }.sidebar-collapsed .workspace { margin-left: 0; }.sidebar-collapsed .sidebar__logo { display: block; }.sidebar-collapsed .sidebar__logo-compact { display: none; }.sidebar-collapsed .nav__label { height: auto; padding: 0 12px 8px; overflow: visible; opacity: 1; }.sidebar-collapsed .nav__label--spaced { margin-top: 24px; }.sidebar-collapsed .nav__item { justify-content: flex-start; gap: 12px; padding: 0 12px; }.sidebar-collapsed .nav__item span,.sidebar-collapsed .nav__item small { width: auto; overflow: visible; opacity: 1; }.sidebar-collapsed .sidebar__mascot { display: block; }
  .nav-open .sidebar { transform: translateX(0); }
  .scrim { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(2,6,23,.48); }
  .nav-open .scrim { display: block; }
  .workspace { margin-left: 0; }
  .menu-button { display: inline-grid; }
  .topbar { padding: 0 20px; }
  .topbar__context { margin-right: auto; margin-left: 8px; }
  .main-content { padding-right: 22px; padding-left: 22px; }
}
@media (max-width: 700px) {
  .user-name { display: none; }
  .topbar__context span { display: none; }
  .main-content { padding: 18px 16px 36px; }
  .breadcrumb { margin-bottom: 14px; }
  .page-heading { align-items: stretch; flex-direction: column; margin-bottom: 22px; }
  .page-heading__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .stats-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 128px; }
  .getting-started { grid-template-columns: auto 1fr; }
  .getting-started__status { grid-column: 1 / -1; align-items: start; flex-direction: row; justify-content: space-between; }
  .toast-region { right: 16px; bottom: 16px; left: 16px; }
  .toast { min-width: 0; }
  .catalog-layout { grid-template-columns: 1fr; }.catalog-tabs { display: flex; padding-bottom: 5px; overflow-x: auto; }.catalog-tabs button { flex: 0 0 auto; }.catalog-toolbar { align-items: stretch; flex-direction: column; }.search-field { width: 100%; }.catalog-fields { grid-template-columns: 1fr; }.catalog-fields label { grid-column: 1 !important; }.muted-cell { display: none; }
  .delete-dialog__content { grid-template-columns: 120px minmax(0,1fr); gap: 16px; }
  .error-shell { justify-content: flex-start; padding-top: 24px; }.error-logo { margin-bottom: 20px; }.error-card { grid-template-columns: 1fr; gap: 14px; padding: 28px 22px; text-align: center; }.error-illustration { min-height: 210px; }.error-illustration img { max-height: 230px; }.error-code { top: -8px; left: 2px; }.error-copy > p:not(.eyebrow) { margin-right: auto; margin-left: auto; }.error-actions { justify-content: center; }
}
@media (max-width: 430px) {
  .auth-panel { padding: 18px; }.auth-card { padding: 24px 20px; }
  .page-heading__actions { grid-template-columns: 1fr; }
  .stats-grid { gap: 12px; }
  .panel, .stat-card, .getting-started { padding: 18px; }
  .getting-started { grid-template-columns: 1fr; }
  .getting-started__status { grid-column: auto; flex-direction: column; }
  .delete-dialog { padding: 22px; }.delete-dialog__content { grid-template-columns: 1fr; text-align: center; }.delete-dialog__mascot { width: 140px; margin: 0 auto; }.delete-dialog .dialog-actions { display: grid; }.delete-dialog .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.product-panel { padding: 20px; }
.product-filters { display: grid; grid-template-columns: minmax(230px,1.5fr) repeat(4,minmax(135px,1fr)); gap: 10px; margin-bottom: 20px; }
.product-filters .search-field { width: 100%; }
.product-filters select,.product-form-grid input,.product-form-grid select,.product-form-grid textarea { width: 100%; min-height: 40px; padding: 8px 10px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.product-card { padding: 19px; }.product-card__top { display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.product-card__icon {display:grid;width:40px;height:40px;place-items:center;color:var(--primary);border-radius:12px;background:var(--primary-soft)}.product-card h2{font-size:17px}.product-card>p{margin-top:4px;color:var(--muted);font-size:12px}.product-card dl{display:grid;gap:9px;margin:18px 0}.product-card dl div{display:flex;justify-content:space-between;gap:12px}.product-card dt{color:var(--muted);font-size:12px}.product-card dd{margin:0;font-size:12px;font-weight:650}.product-card__actions{display:flex;flex-wrap:wrap;gap:7px}.product-card__actions .table-action{margin:0}
.product-dialog { width:min(94vw,780px) }.product-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.product-form-grid label{display:grid;gap:5px;color:var(--text-secondary);font-size:12px;font-weight:650}.product-form-grid .full{grid-column:1/-1}.product-form-grid small{color:var(--danger)}
.wizard-success{padding:14px 16px;color:var(--success);border:1px solid color-mix(in srgb,var(--success) 30%,var(--border));border-radius:12px;background:var(--success-soft)}.wizard-success p{margin-top:3px;color:var(--text-secondary);font-size:12px}.wizard-uploaded{display:grid;gap:7px;padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle)}.wizard-uploaded p{color:var(--muted);font-size:12px}.wizard-uploaded a{overflow:hidden;color:var(--primary);font-size:12px;font-weight:650;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}
.select-with-action{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:7px}.quick-add-button{display:grid;width:40px;height:40px;padding:0;place-items:center;color:var(--primary);border:1px solid color-mix(in srgb,var(--primary) 38%,var(--border));border-radius:10px;background:var(--primary-soft);font-size:21px;line-height:1;cursor:pointer}.quick-add-button:hover{border-color:var(--primary)}.quick-catalog-dialog{width:min(92vw,460px)}.quick-catalog-dialog form{padding:24px}.quick-catalog-field{display:grid;gap:6px;color:var(--text-secondary);font-size:12px;font-weight:650}.quick-catalog-field input{width:100%;min-height:42px;padding:8px 11px;color:var(--text);border:1px solid var(--border-strong);border-radius:10px;background:var(--surface)}.quick-catalog-field small{color:var(--danger)}
.detail-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:16px}.warranty-hero,.detail-card{padding:22px}.warranty-hero__header{display:flex;justify-content:space-between;gap:15px}.warranty-hero h2,.detail-card h2{font-size:18px}.warranty-progress{height:12px;margin:24px 0 12px;overflow:hidden;border-radius:99px;background:var(--surface-subtle)}.warranty-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--success),var(--primary))}.warranty-hero>p{font-weight:650}.warranty-hero>small{color:var(--muted)}.detail-card dl{display:grid;gap:12px;margin:18px 0 0}.detail-card dl div{display:flex;justify-content:space-between;gap:10px}.detail-card dt{color:var(--muted)}.detail-card dd{margin:0;font-weight:650}.warranties-card{margin-top:16px}.warranty-row{display:flex;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--border)}.warranty-row p{margin-top:3px;color:var(--muted);font-size:12px}
.attachments-card{margin-top:16px}.attachment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.attachment-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-subtle)}.attachment-preview{display:grid;width:56px;height:56px;place-items:center;overflow:hidden;color:var(--primary);border-radius:9px;background:var(--surface);font-weight:700;text-decoration:none}.attachment-preview img{width:100%;height:100%;object-fit:cover}.attachment-copy{min-width:0}.attachment-copy a{display:block;overflow:hidden;color:var(--text);font-weight:650;text-overflow:ellipsis;white-space:nowrap;text-decoration:none}.attachment-copy p{color:var(--muted);font-size:11px}.attachment-copy button{margin-top:6px;margin-left:0}.attachment-grid>.catalog-message{grid-column:1/-1}.product-form-grid input[type=file]{padding:7px}
@media(max-width:1100px){.product-grid,.attachment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-filters{grid-template-columns:repeat(2,1fr)}.product-filters .search-field{grid-column:1/-1}}
@media(max-width:700px){.product-grid,.detail-grid,.product-form-grid,.attachment-grid{grid-template-columns:1fr}.product-form-grid .full{grid-column:auto}.product-filters{grid-template-columns:1fr}.product-filters .search-field{grid-column:auto}.attachments-card .panel__header{align-items:stretch;flex-direction:column}}
