:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: rgba(20, 20, 26, 0.66);
  --panel-strong: rgba(24, 24, 31, 0.92);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f7fb;
  --muted: #9293a0;
  --muted-strong: #b9bac5;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --green: #36d399;
  --danger: #fb7185;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.44);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(104, 69, 190, 0.16), transparent 36%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.14;
}
.ambient-one { top: -180px; left: -170px; background: #6d28d9; }
.ambient-two { right: -190px; bottom: -220px; background: #0e7490; }

.glass-panel {
  background: linear-gradient(145deg, rgba(28, 28, 36, 0.78), rgba(12, 12, 17, 0.62));
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #d7caff;
  border: 1px solid rgba(167, 139, 250, 0.26);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.08));
  box-shadow: inset 0 0 22px rgba(139, 92, 246, 0.09), 0 10px 30px rgba(76, 29, 149, 0.14);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark-large { width: 62px; height: 62px; margin-bottom: 24px; border-radius: 19px; }
.brand-mark-large svg { width: 34px; height: 34px; }

.login-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  overflow-y: auto;
  place-items: center;
  align-content: center;
  gap: 26px;
  padding: 32px 20px;
}

.login-card {
  width: min(100%, 440px);
  padding: 42px;
  border-radius: var(--radius-xl);
  animation: card-in 0.7s cubic-bezier(.2,.75,.25,1) both;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(31px, 6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.login-subtitle {
  margin: 13px 0 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #a7a8b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input, textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  caret-color: var(--purple-light);
  outline: none;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 1px 0 rgba(0,0,0,.2);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

input { height: 50px; padding: 0 15px; }
textarea { min-height: 96px; padding: 14px 15px 26px; resize: none; line-height: 1.55; scrollbar-width: thin; scrollbar-color: rgba(139,92,246,.35) transparent; }
input::placeholder, textarea::placeholder { color: #565763; }
input:hover, textarea:hover { border-color: rgba(255,255,255,.14); background: linear-gradient(145deg, rgba(255,255,255,.062), rgba(255,255,255,.028)); }
input:focus, textarea:focus {
  border-color: rgba(139, 92, 246, 0.72);
  background: linear-gradient(145deg, rgba(139,92,246,.08), rgba(255,255,255,.025));
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), inset 0 1px 0 rgba(255,255,255,.04);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #17151f inset; transition: background-color 9999s ease-out; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }

.password-field, .url-field { position: relative; }
.password-field input { padding-right: 50px; }
.control-with-icon input { padding-left: 44px; }
.field-leading { position: absolute; z-index: 2; top: 15px; left: 15px; width: 18px; height: 18px; color: #737481; pointer-events: none; transition: color .2s ease, filter .2s ease; }
.field-leading svg { width: 18px; height: 18px; }
.control-with-icon:focus-within .field-leading { color: var(--purple-light); filter: drop-shadow(0 0 7px rgba(139,92,246,.45)); }
.url-field input { padding-left: 43px; }
.url-field > span { position: absolute; z-index: 1; top: 15px; left: 14px; width: 19px; height: 19px; color: var(--muted); transition: color .2s ease; }
.url-field:focus-within > span { color: var(--purple-light); }
.password-toggle { position: absolute; z-index: 3; top: 6px; right: 6px; width: 38px !important; height: 38px !important; border-color: transparent; background: transparent; }
.password-toggle svg { width: 18px; height: 18px; }

.number-stepper {
  display: grid;
  height: 50px;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.number-stepper:focus-within { border-color: rgba(139,92,246,.72); box-shadow: 0 0 0 4px rgba(139,92,246,.1); }
.number-stepper input { height: 38px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font-variant-numeric: tabular-nums; }
.number-stepper input:focus, .number-stepper input:hover { border: 0; background: transparent; box-shadow: none; }
.number-stepper button {
  display: grid;
  width: 29px;
  height: 29px;
  margin: auto;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: #9b9ca8;
  background: rgba(255,255,255,.035);
  font-size: 16px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.number-stepper button:hover { color: white; border-color: rgba(139,92,246,.35); background: rgba(139,92,246,.13); }

.custom-select { position: relative; }
.select-trigger {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.select-trigger:hover, .select-trigger[aria-expanded="true"] { border-color: rgba(139,92,246,.55); background: linear-gradient(145deg, rgba(139,92,246,.08), rgba(255,255,255,.025)); }
.select-trigger[aria-expanded="true"] { box-shadow: 0 0 0 4px rgba(139,92,246,.1); }
.select-current-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(139,92,246,.23); border-radius: 9px; color: #c4b5fd; background: rgba(139,92,246,.1); }
.select-current-icon svg { width: 16px; height: 16px; }
.select-current-label { flex: 1; text-align: left; font-size: 12px; }
.select-chevron { color: #6f707d; font-size: 17px; transition: transform .2s ease, color .2s ease; }
.select-trigger[aria-expanded="true"] .select-chevron { color: var(--purple-light); transform: rotate(180deg); }
.select-menu {
  position: absolute;
  z-index: 30;
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  display: grid;
  width: 100%;
  max-height: 246px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(139,92,246,.23);
  border-radius: 14px;
  background: rgba(18,17,24,.98);
  box-shadow: 0 22px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05);
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.4) transparent;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.select-menu[hidden] { display: none; }
.select-option { display: flex; min-width: 0; height: 36px; align-items: center; gap: 8px; padding: 0 9px; cursor: pointer; border: 1px solid transparent; border-radius: 9px; color: #9293a0; background: transparent; font-size: 10px; transition: color .18s ease, border-color .18s ease, background .18s ease; }
.select-option > span:first-child { display: grid; width: 19px; height: 19px; place-items: center; }
.select-option svg { width: 15px; height: 15px; }
.select-option:hover { color: white; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.05); }
.select-option.is-selected { color: #d8ceff; border-color: rgba(139,92,246,.2); background: rgba(139,92,246,.13); }

.color-field { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.085); border-radius: 13px; background: linear-gradient(145deg, rgba(255,255,255,.052), rgba(255,255,255,.022)); box-shadow: inset 0 1px 0 rgba(255,255,255,.025); }
.color-swatches { display: grid; flex: 1; grid-template-columns: repeat(9, minmax(17px, 1fr)); gap: 5px; }
.color-swatch { position: relative; width: 100%; aspect-ratio: 1; padding: 0; cursor: pointer; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: var(--swatch); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 8px color-mix(in srgb, var(--swatch) 18%, transparent); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.color-swatch:hover { transform: translateY(-2px) scale(1.05); }
.color-swatch.is-selected { border-color: white; box-shadow: 0 0 0 2px #17171e, 0 0 0 4px color-mix(in srgb, var(--swatch) 65%, transparent), 0 5px 14px color-mix(in srgb, var(--swatch) 30%, transparent); }
.color-field #colorValue { flex: 0 0 auto; color: #8a8b97; font-size: 9px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }

.form-message {
  min-height: 19px;
  margin: 8px 0;
  color: #fda4af;
  font-size: 12px;
}
.form-message.success { color: #6ee7b7; }

.primary-button, .secondary-button, .danger-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  cursor: pointer;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.primary-button {
  border: 1px solid rgba(167, 139, 250, 0.55);
  color: white;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  box-shadow: 0 10px 28px rgba(109, 40, 217, 0.2), inset 0 1px 0 rgba(255,255,255,.18);
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(109, 40, 217, 0.3), inset 0 1px 0 rgba(255,255,255,.18); }
.primary-button:active, .secondary-button:active, .danger-button:active { transform: translateY(1px); }
.secondary-button {
  border: 1px solid var(--line);
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.035);
}
.secondary-button:hover { color: white; border-color: var(--line-strong); background: rgba(255,255,255,.065); }
.danger-button { border: 1px solid rgba(251,113,133,.28); background: rgba(244,63,94,.14); color: #fda4af; }
.danger-button:hover { background: rgba(244,63,94,.22); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.login-button { width: 100%; height: 50px; justify-content: space-between; padding: 0 18px 0 21px; }
.button-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 17px; }
.button-svg, .secondary-button [data-icon], .primary-button [data-icon] { width: 17px; height: 17px; }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.icon-button:hover { color: white; border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.icon-button svg { width: 19px; height: 19px; }

.login-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  color: #696a76;
  font-size: 10px;
  letter-spacing: .03em;
}
.login-meta span { display: inline-flex; align-items: center; gap: 6px; }
.status-dot, .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(54,211,153,.75); }
.login-footer { margin: 0; color: #555662; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.app-shell {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: grid;
  overflow: hidden;
  grid-template-rows: 72px minmax(0, 1fr) 36px;
}
.topbar {
  z-index: 20;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.065);
  background: rgba(7, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-copy b { font-size: 13px; letter-spacing: .2em; }
.brand-copy small { color: var(--muted); font-size: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.logout-button:hover { color: #fda4af; border-color: rgba(251,113,133,.2); background: rgba(244,63,94,.07); }

.workspace {
  width: min(1380px, calc(100% - 40px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  margin: 0 auto;
  padding: 24px 0 0;
  overflow: hidden;
}
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 20px; padding: 0 4px; }
.hero h1 { margin: 0; font-size: clamp(34px, 4vw, 48px); line-height: 1; letter-spacing: -.055em; }
.hero-dot { color: var(--purple-light); }
.hero > div:first-child > p:last-child { max-width: 580px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.live-dot { width: 5px; height: 5px; margin-right: 8px; vertical-align: 2px; }
.hero .eyebrow { margin-bottom: 9px; }
.hero-time { display: grid; min-width: 174px; padding: 14px 18px; border-radius: 17px; text-align: right; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.hero-time span { color: var(--muted); font-size: 11px; }
.hero-time strong { margin: 3px 0 0; font-size: 25px; line-height: 1.1; font-weight: 520; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.hero-time small { margin-top: 4px; color: #595a66; font-size: 9px; letter-spacing: .12em; }

.catalog {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(145deg, rgba(20,20,27,.72), rgba(10,10,14,.62));
  box-shadow: 0 22px 70px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.016); }
.section-heading { display: flex; align-items: center; gap: 11px; }
.section-heading h2 { margin: 0 0 3px; font-size: 14px; letter-spacing: -.02em; }
.section-heading p { margin: 0; color: #686976; font-size: 9px; letter-spacing: .03em; }
.section-heading p span { color: var(--purple-light); font-weight: 700; }
.section-icon { display: grid; width: 36px; height: 36px; place-items: center; color: #bca8fb; border: 1px solid rgba(139,92,246,.2); border-radius: 11px; background: rgba(139,92,246,.09); }
.section-icon svg { width: 17px; height: 17px; }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }
.search-field { position: relative; width: 220px; margin: 0; }
.search-field > span { position: absolute; z-index: 1; top: 12px; left: 13px; width: 17px; height: 17px; color: #6c6d78; }
.search-field input { height: 42px; padding-left: 39px; border-radius: 11px; font-size: 12px; }
.compact-button { min-height: 42px; padding: 0 15px; }

.product-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(139,92,246,.42) transparent;
}
.product-scroll::-webkit-scrollbar { width: 6px; }
.product-scroll::-webkit-scrollbar-track { background: transparent; }
.product-scroll::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(139,92,246,.34); }
.product-scroll::-webkit-scrollbar-thumb:hover { background: rgba(139,92,246,.58); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; align-content: start; }
.product-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  padding: 19px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(27,27,34,.72), rgba(14,14,19,.72));
  box-shadow: 0 22px 55px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.035);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s ease, box-shadow .25s ease;
  animation: card-in .48s cubic-bezier(.2,.75,.25,1) both;
}
.product-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%); opacity: 0; transition: opacity .25s ease; }
.product-card::after { content: ""; position: absolute; top: 0; left: 19px; right: 19px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent); opacity: .6; }
.product-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 28px 70px rgba(0,0,0,.34), 0 0 36px color-mix(in srgb, var(--accent) 8%, transparent); }
.product-card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.product-icon { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 13px; color: color-mix(in srgb, var(--accent) 74%, white); background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 22px color-mix(in srgb, var(--accent) 7%, transparent); }
.product-icon svg { width: 20px; height: 20px; }
.card-actions { display: flex; gap: 6px; opacity: 0; transform: translateY(-3px); transition: opacity .2s ease, transform .2s ease; }
.product-card:hover .card-actions, .product-card:focus-within .card-actions { opacity: 1; transform: translateY(0); }
.card-action { width: 30px; height: 30px; border-radius: 9px; }
.card-action svg { width: 15px; height: 15px; }
.card-action.delete:hover { color: #fda4af; border-color: rgba(251,113,133,.22); background: rgba(244,63,94,.09); }
.product-card h3 { position: relative; margin: 18px 0 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.025em; }
.product-card p { position: relative; min-height: 36px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { position: absolute; right: 19px; bottom: 17px; left: 19px; display: flex; align-items: center; justify-content: space-between; }
.connection-status { display: inline-flex; align-items: center; gap: 7px; color: #7f808c; font-size: 10px; }
.connection-status i { width: 5px; height: 5px; border-radius: 50%; background: #62636d; }
.connection-status.ready { color: #86efac; }
.connection-status.ready i { background: var(--green); box-shadow: 0 0 8px rgba(54,211,153,.65); }
.launch-arrow { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; color: #7c7d89; background: rgba(255,255,255,.04); transition: color .2s ease, transform .2s ease, background .2s ease; }
.launch-arrow svg { width: 14px; height: 14px; }
.product-card:hover .launch-arrow { color: white; background: color-mix(in srgb, var(--accent) 15%, rgba(255,255,255,.04)); transform: translate(2px,-2px); }

.empty-state { padding: 58px 24px; border-radius: var(--radius-lg); text-align: center; }
.empty-icon { display: grid; width: 50px; height: 50px; margin: 0 auto 18px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.035); }
.empty-icon svg { width: 22px; height: 22px; }
.empty-state h3 { margin: 0; font-size: 16px; }
.empty-state p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }

.footer { display: flex; width: min(1380px, calc(100% - 40px)); height: 36px; margin: 0 auto; padding: 0 4px; align-items: center; justify-content: space-between; color: #4f505b; font-size: 8px; letter-spacing: .13em; }

.modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 24px;
  border: 0;
  color: var(--text);
  background: transparent;
}
.modal[open] { display: grid; place-items: center; animation: fade-in .2s ease both; }
.modal::backdrop { background: rgba(2,2,5,.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal-card { width: min(100%, 620px); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border-radius: 24px; animation: modal-in .3s cubic-bezier(.2,.75,.25,1) both; }
.modal-card-small { width: min(100%, 460px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 27px; }
.modal-header h2, .modal-card > h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.modal-header .eyebrow { margin-bottom: 8px; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; font-size: 24px; line-height: 1; }
.field-group { position: relative; margin-bottom: 20px; }
.field-group label em { color: #fda4af; font-style: normal; }
.field-group small { display: block; margin-top: 7px; color: #666773; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field-group { min-width: 0; }
.field-row .order-field { grid-column: span 1; }
.char-count { position: absolute; right: 12px; bottom: 8px; color: #5c5d68; font-size: 9px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.danger-symbol { display: grid; width: 52px; height: 52px; margin: 0 auto 20px; place-items: center; color: #fda4af; border: 1px solid rgba(251,113,133,.22); border-radius: 16px; background: rgba(244,63,94,.1); }
.danger-symbol svg { width: 23px; height: 23px; }
#deleteDialog .modal-card { text-align: center; }
#deleteDialog .modal-card > p { margin: 12px auto 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.centered-actions { justify-content: center; }

.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 24px; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; min-width: 240px; max-width: 360px; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted-strong); background: rgba(22,22,29,.94); box-shadow: 0 18px 50px rgba(0,0,0,.42); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 12px; animation: toast-in .28s ease both; }
.toast::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(54,211,153,.6); }
.toast.error::before { background: var(--danger); box-shadow: 0 0 9px rgba(251,113,133,.6); }

@keyframes card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

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

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { align-items: center; }
  .hero-time { min-width: 165px; }
}

@media (max-width: 640px) {
  .app-shell { grid-template-rows: 64px minmax(0, 1fr); }
  .topbar { height: 64px; padding: 0 12px; }
  .brand-copy small, #changePasswordButton span:last-child { display: none; }
  #changePasswordButton { width: 42px; padding: 0; }
  .workspace { width: calc(100% - 20px); padding: 12px 0 0; }
  .hero { display: block; margin-bottom: 12px; padding: 0 2px; }
  .hero h1 { font-size: 30px; }
  .hero .eyebrow { margin-bottom: 7px; font-size: 9px; }
  .hero > div:first-child > p:last-child { margin-top: 8px; font-size: 10px; }
  .hero-time { display: none; }
  .catalog { border-radius: 18px 18px 0 0; }
  .toolbar { align-items: center; padding: 10px; }
  .section-icon { width: 34px; height: 34px; }
  .section-heading p { display: none; }
  .toolbar-actions { flex: 1; justify-content: flex-end; }
  .search-field { width: min(100%, 145px); }
  .compact-button { width: 42px; padding: 0; }
  .compact-button span:last-child { display: none; }
  .product-scroll { padding: 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 180px; }
  .card-actions { opacity: 1; transform: none; }
  .footer { display: none; }
  .login-card { padding: 32px 24px; }
  .modal { padding: 12px; }
  .modal-card { max-height: calc(100vh - 24px); padding: 24px 19px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .toast-region { right: 14px; bottom: 14px; left: 14px; }
  .toast { min-width: 0; max-width: none; }
}

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