
:root {
  color-scheme: dark;
  --bg: #07090f;
  --panel: #0c0f18;
  --panel-2: #111522;
  --panel-3: #171c2b;
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.13);
  --text: #f5f7fb;
  --muted: #8991a4;
  --muted-2: #5d6578;
  --blue: #f5f5f5;
  --blue-2: #ffffff;
  --blue-soft: rgba(255,255,255,.09);
  --green: #41d6a3;
  --green-soft: rgba(65,214,163,.12);
  --amber: #f8be53;
  --amber-soft: rgba(248,190,83,.12);
  --red: #ff6577;
  --red-soft: rgba(255,101,119,.12);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); min-height: 100%; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 520px at 72% -20%, rgba(255,255,255,.045), transparent 60%),
    radial-gradient(760px 480px at 25% 105%, rgba(255,255,255,.025), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 19px; height: 19px; flex: 0 0 auto; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.boot {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px;
  color: var(--muted); font-size: 13px; letter-spacing: .02em;
}
.brand-mark { display: flex; align-items: end; gap: 4px; width: 38px; height: 38px; }
.brand-mark span {
  width: 8px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  box-shadow: 0 0 18px rgba(255,255,255,.2);
  animation: pulse-bars 1.1s ease-in-out infinite;
}
.brand-mark span:nth-child(1) { height: 45%; animation-delay: -.2s; }
.brand-mark span:nth-child(2) { height: 85%; }
.brand-mark span:nth-child(3) { height: 62%; animation-delay: .2s; }
.boot-line { width: 150px; height: 2px; border-radius: 999px; background: #1d2332; overflow: hidden; }
.boot-line:after {
  content: ""; display: block; height: 100%; width: 45%; background: var(--blue);
  animation: boot 1.2s ease-in-out infinite;
}
@keyframes pulse-bars { 50% { opacity: .45; transform: scaleY(.75); } }
@keyframes boot { from { transform: translateX(-110%); } to { transform: translateX(330%); } }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
.sidebar {
  position: fixed; z-index: 30; inset: 0 auto 0 0; width: 248px;
  border-right: 1px solid var(--line);
  background: rgba(8,10,16,.86); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 24px; }
.brand-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  background: linear-gradient(145deg,#ffffff,#d9d9d9); box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.brand-icon .icon { width: 21px; height: 21px; stroke-width: 2.2; }
.brand-copy strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.nav-label {
  padding: 12px 10px 7px; color: var(--muted-2); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.nav-list { display: grid; gap: 3px; }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px;
  border: 1px solid transparent; border-radius: 11px; background: transparent; color: #8f97a9;
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; transition: .18s ease;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active {
  color: #fff; background: linear-gradient(90deg,rgba(255,255,255,.12),rgba(255,255,255,.045));
  border-color: rgba(255,255,255,.15); box-shadow: inset 3px 0 var(--blue);
}
.nav-item.active .icon { color: var(--blue-2); }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.secure-box {
  padding: 12px; border: 1px solid var(--line); border-radius: 13px;
  background: rgba(255,255,255,.025); display: flex; gap: 10px; align-items: center;
}
.secure-box .icon { color: var(--green); }
.secure-box strong { display: block; font-size: 11px; }
.secure-box span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.workspace { grid-column: 2; min-width: 0; }
.topbar {
  height: 72px; position: sticky; top: 0; z-index: 20; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; padding: 0 30px;
  border-bottom: 1px solid var(--line); background: rgba(7,9,15,.78); backdrop-filter: blur(22px);
}
.breadcrumb { display: flex; align-items: center; min-width: 0; color: var(--muted); font-size: 12px; }
.breadcrumb strong { color: var(--text); font-weight: 650; }
.breadcrumb .icon { width: 15px; margin: 0 6px; color: var(--muted-2); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-box {
  min-width: 220px; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 11px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
}
.search-box .icon { width: 16px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid rgba(255,255,255,.2);
  background: linear-gradient(145deg,#242424,#111111); display: grid; place-items: center;
  font-size: 12px; font-weight: 800; overflow: hidden; color: #fff;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.content { width: 100%; max-width: 1480px; margin: 0 auto; padding: 30px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.eyebrow { color: var(--blue-2); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 7px; }
.page-head h1 { font-size: clamp(24px,3vw,34px); line-height: 1.1; letter-spacing: -.045em; font-weight: 720; }
.page-head p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 8px; max-width: 620px; }
.head-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel-2); color: #dce0e9; font-size: 12px; font-weight: 700;
  cursor: pointer; transition: .18s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.2); background: var(--panel-3); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 16px; height: 16px; }
.btn.primary {
  border-color: #fff; background: linear-gradient(180deg,#fff,#dedede); color: #111;
  box-shadow: 0 9px 24px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.16);
}
.btn.primary:hover { background: linear-gradient(180deg,#fff,#ededed); }
.btn.ghost { background: transparent; }
.btn.danger { color: #ff9baa; border-color: rgba(255,101,119,.23); background: var(--red-soft); }
.btn.success { color: #75e9c0; border-color: rgba(65,214,163,.22); background: var(--green-soft); }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.btn.icon-only { width: 36px; padding: 0; }
.btn:disabled { opacity: .45; pointer-events: none; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.metric {
  min-height: 126px; position: relative; overflow: hidden; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(18,22,34,.96),rgba(10,13,21,.96));
}
.metric:after {
  content: ""; position: absolute; right: -35px; top: -35px; width: 110px; height: 110px;
  border-radius: 50%; background: var(--blue-soft); filter: blur(8px);
}
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 650; }
.metric-icon {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
  color: var(--blue-2); border: 1px solid rgba(255,255,255,.14); background: var(--blue-soft);
}
.metric-icon .icon { width: 16px; }
.metric-value { font-size: 29px; letter-spacing: -.05em; font-weight: 730; margin-top: 17px; }
.metric-note { color: var(--muted-2); font-size: 10px; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 14px; }
.grid-equal { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.panel {
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,15,24,.88);
  box-shadow: 0 18px 50px rgba(0,0,0,.12); overflow: hidden;
}
.panel + .panel { margin-top: 14px; }
.panel-head {
  min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-title .icon { color: var(--blue-2); width: 17px; }
.panel-title strong { display: block; font-size: 13px; }
.panel-title span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.panel-body { padding: 16px; }
.panel-body.flush { padding: 0; }

.quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.quick-card {
  min-height: 108px; position: relative; text-align: left; padding: 14px; border: 1px solid var(--line);
  border-radius: 13px; background: linear-gradient(145deg,var(--panel-2),#0c1019); cursor: pointer;
  overflow: hidden; transition: .18s ease;
}
.quick-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.quick-card .icon { color: var(--blue-2); }
.quick-card strong { display: block; margin-top: 14px; font-size: 12px; }
.quick-card span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.quick-card .arrow { position: absolute; right: 12px; top: 12px; color: var(--muted-2); width: 14px; }

.data-list { display: grid; }
.data-row {
  min-height: 62px; display: grid; grid-template-columns: minmax(180px,1.6fr) minmax(100px,.7fr) minmax(100px,.7fr) auto;
  gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12px;
}
.data-row:last-child { border-bottom: 0; }
.data-row:hover { background: rgba(255,255,255,.015); }
.row-main { min-width: 0; }
.row-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main span { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.row-meta { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.status {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 8px;
  border-radius: 999px; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #77e8c1; background: var(--green-soft); border: 1px solid rgba(65,214,163,.16);
}
.status:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status.scheduled { color: #fff; background: var(--blue-soft); border-color: rgba(255,255,255,.14); }
.status.closed { color: #8c94a6; background: rgba(255,255,255,.05); border-color: var(--line); }
.status.cancelled { color: #ff8493; background: var(--red-soft); border-color: rgba(255,101,119,.16); }
.status.waiting { color: #f6c66c; background: var(--amber-soft); border-color: rgba(248,190,83,.16); }

.empty {
  min-height: 220px; padding: 40px 24px; display: grid; place-content: center; justify-items: center;
  text-align: center; color: var(--muted);
}
.empty-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--muted-2);
}
.empty h3 { color: #d9dde7; font-size: 13px; margin-top: 14px; }
.empty p { max-width: 300px; font-size: 11px; line-height: 1.6; margin-top: 6px; }
.empty .btn { margin-top: 16px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field { display: grid; gap: 7px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { color: #c4c9d4; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.field-note { color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.input, .select, .textarea {
  width: 100%; min-height: 42px; border: 1px solid var(--line-strong); border-radius: 10px;
  outline: 0; background: #090c14; color: var(--text); padding: 10px 12px; font-size: 12px;
  transition: .18s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(255,255,255,.58); box-shadow: 0 0 0 3px rgba(255,255,255,.075);
}
.input::placeholder, .textarea::placeholder { color: #4d5566; }
.textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg,transparent 50%,#6d7688 50%),linear-gradient(135deg,#6d7688 50%,transparent 50%); background-position: calc(100% - 16px) 18px,calc(100% - 11px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.switch-row {
  min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #090c14;
}
.switch-row span { font-size: 11px; color: #c8cdd7; }
.switch {
  width: 36px; height: 20px; position: relative; border: 0; border-radius: 999px;
  background: #272d3a; cursor: pointer; transition: .2s;
}
.switch:after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #858c9a; transition: .2s; }
.switch.on { background: var(--blue); }
.switch.on:after { transform: translateX(16px); background: #fff; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.tabs { display: flex; align-items: center; gap: 4px; padding: 4px; width: fit-content; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.tab { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.tab.active { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); }

.creator {
  display: grid; grid-template-columns: 210px minmax(0,1fr); min-height: calc(100dvh - 155px);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(12,15,24,.88);
}
.creator-rail { padding: 18px; border-right: 1px solid var(--line); background: rgba(255,255,255,.012); }
.creator-rail h3 { font-size: 12px; }
.creator-rail p { color: var(--muted); font-size: 10px; line-height: 1.5; margin-top: 5px; }
.step-list { display: grid; gap: 5px; margin-top: 22px; }
.step-item { display: flex; gap: 10px; padding: 9px 7px; color: var(--muted); font-size: 10px; }
.step-number {
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--panel); font-size: 9px; font-weight: 800;
}
.step-item.active { color: var(--text); }
.step-item.active .step-number { color: #111; border-color: var(--blue); background: var(--blue); box-shadow: 0 0 16px rgba(255,255,255,.14); }
.step-item.done .step-number { color: var(--green); border-color: rgba(65,214,163,.25); background: var(--green-soft); }
.creator-main { min-width: 0; }
.creator-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.creator-head h2 { font-size: 18px; letter-spacing: -.025em; }
.creator-head p { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 5px; }
.creator-body { padding: 22px; }
.style-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 22px; }
.style-card {
  min-height: 110px; padding: 14px; text-align: left; border: 1px solid var(--line);
  border-radius: 13px; background: #0a0d15; cursor: pointer; transition: .18s ease;
}
.style-card .icon { color: var(--muted); }
.style-card strong { display: block; font-size: 11px; margin-top: 15px; }
.style-card span { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; margin-top: 4px; }
.style-card.active { border-color: rgba(255,255,255,.42); background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.style-card.active .icon { color: var(--blue-2); }
.section-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 22px 0 11px; }
.ai-box {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: center;
  padding: 14px; margin-bottom: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px;
  background: linear-gradient(100deg,rgba(255,255,255,.07),rgba(255,255,255,.025));
}
.ai-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: rgba(255,255,255,.09); }
.ai-box strong { display: block; font-size: 11px; }
.ai-box p { color: var(--muted); font-size: 9px; line-height: 1.5; margin-top: 3px; }
.question-list { display: grid; gap: 10px; }
.question-card { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #090c14; }
.question-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.question-head strong { font-size: 11px; }
.answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.answer { display: flex; align-items: center; gap: 8px; }
.answer input[type=radio] { accent-color: var(--blue); }
.answer .input { min-height: 36px; padding: 7px 9px; }

.upload-zone {
  min-height: 105px; display: grid; place-content: center; justify-items: center; padding: 18px;
  border: 1px dashed rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.015);
  color: var(--muted); text-align: center; cursor: pointer;
}
.upload-zone:hover { border-color: rgba(255,255,255,.35); background: var(--blue-soft); }
.upload-zone input { display: none; }
.upload-zone .icon { color: var(--blue-2); }
.upload-zone strong { color: #d6dbe5; font-size: 10px; margin-top: 8px; }
.upload-zone span { font-size: 9px; margin-top: 4px; }
.image-previews { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.image-preview { width: 64px; height: 64px; position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

.match-grid { display: grid; gap: 8px; max-height: 320px; overflow: auto; padding-right: 4px; }
.match-option {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #090c14; cursor: pointer;
}
.match-option:hover, .match-option.active { border-color: rgba(255,255,255,.38); background: var(--blue-soft); }
.match-option strong { font-size: 11px; }
.match-option span { color: var(--muted); font-size: 9px; margin-top: 4px; display: block; }
.match-option .icon { color: var(--blue-2); }

.hero {
  min-height: 215px; position: relative; overflow: hidden; padding: 26px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px;
  background:
    linear-gradient(110deg,rgba(14,14,14,.98),rgba(22,22,22,.94)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035);
}
.hero:before {
  content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%;
  right: -150px; top: -260px; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 80px rgba(255,255,255,.07), inset 0 0 80px rgba(255,255,255,.04);
}
.hero:after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(90deg,transparent,black);
}
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.hero-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 999px; color: #fff; background: var(--blue-soft); border: 1px solid rgba(255,255,255,.14); font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.hero-tag .icon { width: 13px; }
.hero h2 { font-size: clamp(25px,4vw,42px); line-height: 1.03; letter-spacing: -.055em; margin-top: 18px; }
.hero p { color: #9aa4b8; font-size: 12px; line-height: 1.65; max-width: 500px; margin-top: 11px; }
.hero-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }

.match-card { padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #0a0d15; }
.match-card + .match-card { margin-top: 9px; }
.match-time { color: var(--muted); font-size: 9px; text-align: center; margin-bottom: 11px; }
.score-row { display: grid; grid-template-columns: minmax(80px,1fr) auto minmax(80px,1fr); align-items: center; gap: 12px; }
.team { font-size: 11px; font-weight: 700; }
.team:first-child { text-align: right; }
.score-control { display: flex; align-items: center; gap: 5px; }
.score-btn { width: 29px; height: 29px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2); color: #cbd1dd; cursor: pointer; font-size: 15px; }
.score { min-width: 22px; text-align: center; font-size: 16px; font-weight: 800; }
.score-divider { color: var(--muted-2); }
.match-note { color: var(--muted); font-size: 9px; text-align: center; margin-top: 10px; }
.rank-row { min-height: 54px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 9px 13px; border-bottom: 1px solid var(--line); }
.rank-row.me { background: var(--blue-soft); box-shadow: inset 2px 0 var(--blue); }
.rank-pos { font-weight: 800; font-size: 12px; color: var(--muted); }
.rank-name { font-size: 11px; font-weight: 650; }
.rank-meta { color: var(--muted); font-size: 9px; }
.rank-points { font-size: 12px; font-weight: 800; }

.number-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(44px,1fr)); gap: 7px; }
.number {
  aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-strong);
  border-radius: 10px; background: #0a0d15; font-size: 11px; font-weight: 750; cursor: pointer;
}
.number:hover { border-color: var(--blue); color: #fff; background: var(--blue-soft); }
.number.taken { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.number.mine { color: #80ebc5; background: var(--green-soft); border-color: rgba(65,214,163,.35); }

.locked {
  min-height: 100dvh; display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 28px; background: radial-gradient(circle at 50% 30%,rgba(255,255,255,.055),transparent 35%);
}
.locked-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; color: #fff; background: var(--blue-soft); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 50px rgba(255,255,255,.07); }
.locked-mark .icon { width: 27px; height: 27px; }
.locked h1 { font-size: 22px; letter-spacing: -.04em; margin-top: 18px; }
.locked p { color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 360px; margin-top: 8px; }
.locked .secure-box { margin-top: 20px; text-align: left; }

.mobile-nav { display: none; }
#toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast {
  min-width: 270px; max-width: 360px; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(16,20,31,.97);
  box-shadow: var(--shadow); color: #e9edf5; font-size: 11px; animation: toast-in .22s ease;
}
.toast .icon { color: var(--green); }
.toast.error .icon { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { position: relative; overflow: hidden; min-height: 38px; border-radius: 9px; background: #121722; }
.skeleton:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent); transform: translateX(-100%); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .style-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.cols-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .workspace { display: block; }
  .topbar { height: 60px; padding: 0 16px; }
  .search-box { display: none; }
  .content { padding: 20px 14px; }
  .page-head { margin-bottom: 20px; }
  .page-head p { font-size: 11px; }
  .head-actions .btn:not(.primary):not(.danger) { display: none; }
  .grid-2, .grid-equal { grid-template-columns: 1fr; }
  .creator { grid-template-columns: 1fr; min-height: auto; }
  .creator-rail { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .creator-rail > p { display: none; }
  .step-list { grid-template-columns: repeat(4,1fr); margin-top: 12px; }
  .step-item { display: grid; justify-items: center; padding: 3px; text-align: center; font-size: 8px; }
  .creator-body { padding: 16px; }
  .mobile-nav {
    display: flex; position: fixed; z-index: 50; left: 10px; right: 10px;
    bottom: calc(9px + env(safe-area-inset-bottom)); min-height: 58px; gap: 2px; align-items: center;
    padding: 5px; border: 1px solid var(--line-strong); border-radius: 17px;
    background: rgba(11,14,22,.94); box-shadow: 0 18px 45px rgba(0,0,0,.5); backdrop-filter: blur(22px);
  }
  .mobile-nav .nav-item { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 3px; padding: 7px 3px; font-size: 8px; box-shadow: none; }
  .mobile-nav .nav-item .icon { width: 18px; height: 18px; }
  .mobile-nav .nav-item.active { box-shadow: none; border-color: rgba(255,255,255,.14); }
  #toast-region { right: 12px; left: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .metric { min-height: 112px; padding: 14px; }
  .metric-value { font-size: 24px; margin-top: 14px; }
  .page-head { align-items: center; }
  .page-head h1 { font-size: 25px; }
  .page-head .eyebrow { display: none; }
  .style-grid, .form-grid, .form-grid.cols-3, .answers { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .data-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .data-row .row-meta:nth-child(2) { display: none; }
  .data-row .row-meta:nth-child(3) { grid-column: 1; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-card { min-height: 100px; }
  .panel-head { padding: 12px 13px; }
  .panel-body { padding: 13px; }
  .hero { padding: 21px; min-height: 230px; }
  .hero h2 { font-size: 29px; }
  .score-row { grid-template-columns: minmax(60px,1fr) auto minmax(60px,1fr); gap: 7px; }
  .score-btn { width: 27px; }
  .rank-row { grid-template-columns: 28px minmax(0,1fr) auto; }
  .rank-meta { display: none; }
  .ai-box { grid-template-columns: auto minmax(0,1fr); }
  .ai-box .btn { grid-column: 1 / -1; }
}

/* Lux Control — visual system 2.0
   Glass is reserved for navigation and control chrome. Product content stays
   dense, quiet and specific instead of becoming a grid of identical cards. */
:root {
  --bg: #050505;
  --panel: #0b0b0b;
  --panel-2: #111111;
  --panel-3: #181818;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f8f8f8;
  --muted: #999999;
  --muted-2: #6f6f6f;
  --blue: #f5f5f5;
  --blue-2: #ffffff;
  --blue-soft: rgba(255, 255, 255, .09);
  --green: #35d8a0;
  --radius: 24px;
  --radius-sm: 15px;
  --shadow: 0 26px 70px rgba(0, 0, 0, .42);
  --spring: cubic-bezier(.2, .8, .2, 1);
}

html { background: #050505; }
body {
  position: relative;
  background:
    radial-gradient(820px 500px at 86% -12%, rgba(255, 255, 255, .045), transparent 62%),
    linear-gradient(180deg, #080808 0%, #050505 45%, #070707 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: -.006em;
}
body::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  left: 32%;
  bottom: -250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  filter: blur(90px);
  pointer-events: none;
}

.app-shell {
  grid-template-columns: 104px minmax(0, 1fr);
}
.sidebar {
  width: 104px;
  padding: 16px 10px;
  border-right-color: rgba(255, 255, 255, .075);
  background:
    linear-gradient(90deg, rgba(7, 7, 7, .96), rgba(10, 10, 10, .84)),
    rgba(8, 8, 8, .84);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .025), 12px 0 50px rgba(0, 0, 0, .18);
  -webkit-backdrop-filter: blur(34px) saturate(145%);
  backdrop-filter: blur(34px) saturate(145%);
}
.brand {
  justify-content: center;
  padding: 2px 0 20px;
}
.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .22), transparent 35%),
    linear-gradient(145deg, #ffffff, #d7d7d7);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, .34),
    inset 0 1px rgba(255, 255, 255, .28),
    inset 0 -1px rgba(0, 0, 0, .18);
}
.brand-icon .icon { width: 23px; height: 23px; }
.brand-copy, .nav-label { display: none; }
.nav-list { gap: 5px; }
.sidebar .nav-item {
  min-height: 67px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  padding: 7px 3px;
  border: 0;
  border-radius: 18px;
  color: #7f899c;
  font-size: 9px;
  font-weight: 620;
  text-align: center;
}
.sidebar .nav-item > .icon {
  width: 35px;
  height: 35px;
  padding: 8px;
  border-radius: 12px;
  color: #9aa5b8;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  transition: transform .28s var(--spring), color .22s ease, background .22s ease;
}
.sidebar .nav-item:hover {
  background: rgba(255, 255, 255, .035);
}
.sidebar .nav-item:hover > .icon { transform: translateY(-2px) scale(1.04); color: #fff; }
.sidebar .nav-item.active {
  color: #fff;
  border: 0;
  background: rgba(255, 255, 255, .075);
  box-shadow: none;
}
.sidebar .nav-item.active > .icon {
  color: #111;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .18), transparent 38%),
    linear-gradient(145deg, #ffffff, #dedede);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, .32),
    inset 0 1px rgba(255, 255, 255, .24);
}
.sidebar-foot { padding-top: 12px; }
.sidebar .secure-box {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  color: var(--green);
  background: rgba(46, 211, 156, .08);
}
.sidebar .secure-box > div { display: none; }
.sidebar .secure-box .icon { width: 21px; height: 21px; }

.workspace { grid-column: 2; }
.topbar {
  height: 66px;
  padding: 0 26px;
  border-bottom-color: rgba(255, 255, 255, .075);
  background: rgba(7, 7, 7, .78);
  -webkit-backdrop-filter: blur(34px) saturate(155%);
  backdrop-filter: blur(34px) saturate(155%);
}
.breadcrumb { font-size: 12px; color: #68748a; }
.breadcrumb strong { font-weight: 670; }
.search-box {
  min-width: 250px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .2);
  background: #191919;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .12);
}
.content {
  max-width: 1360px;
  padding: 28px 30px 50px;
}
.page-head { margin-bottom: 24px; align-items: center; }
.eyebrow {
  margin-bottom: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .08em;
}
.page-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 760;
  letter-spacing: -.046em;
}
.page-head p { margin-top: 7px; color: #8c97aa; font-size: 13px; }

.btn {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045);
  transition:
    transform .28s var(--spring),
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.012);
  background: rgba(255, 255, 255, .085);
}
.btn:active { transform: scale(.97); }
.btn.primary {
  border-color: rgba(255, 255, 255, .55);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 32%),
    linear-gradient(180deg, #ffffff, #dedede);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .28),
    inset 0 1px rgba(255, 255, 255, .27),
    inset 0 -1px rgba(0, 0, 0, .18);
}
.btn.primary:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, .25), transparent 36%),
    linear-gradient(180deg, #ffffff, #eeeeee);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .36), inset 0 1px rgba(255, 255, 255, .3);
}
.btn.small { min-height: 34px; border-radius: 11px; }

.metrics {
  gap: 0;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 24px;
  background: rgba(13, 13, 13, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .03);
}
.metric {
  min-height: 112px;
  padding: 15px 17px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  overflow: hidden;
  box-shadow: none;
  transition: background .24s ease;
}
.metric + .metric { border-left: 1px solid rgba(255, 255, 255, .065); }
.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(180px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, .075), transparent 70%);
  transition: opacity .25s ease;
}
.metric.is-lit::before { opacity: 1; }
.metric::after { display: none; }
.metric-top { position: relative; z-index: 1; font-size: 10px; }
.metric-icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}
.metric-icon .icon { width: 17px; height: 17px; }
.metric-value { position: relative; z-index: 1; margin-top: 11px; font-size: 28px; font-weight: 740; }
.metric-note { position: relative; z-index: 1; }

.hero {
  min-height: 190px;
  padding: 27px 30px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 28px;
  background:
    linear-gradient(112deg, rgba(20, 20, 20, .98) 0%, rgba(14, 14, 14, .98) 55%, rgba(24, 24, 24, .96) 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .28),
    inset 0 1px rgba(255, 255, 255, .07);
  isolation: isolate;
}
.hero::before {
  z-index: -1;
  width: 360px;
  height: 360px;
  right: -116px;
  top: -198px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, .22), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .13), rgba(255, 255, 255, .01) 65%);
  box-shadow:
    inset 18px 15px 44px rgba(255, 255, 255, .07),
    inset -22px -18px 44px rgba(0, 0, 0, .25),
    0 18px 70px rgba(0, 0, 0, .25);
  filter: none;
  animation: liquid-float 8s ease-in-out infinite;
}
.hero::after {
  z-index: -1;
  opacity: 0;
  background: radial-gradient(310px circle at var(--spot-x, 58%) var(--spot-y, 50%), rgba(255, 255, 255, .075), transparent 72%);
  mask-image: none;
  transition: opacity .25s ease;
}
.hero.is-lit::after { opacity: 1; }
.hero-copy { max-width: 610px; }
.hero-tag {
  padding: 6px 10px;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  font-size: 9px;
  letter-spacing: .07em;
}
.hero h2 { margin-top: 17px; font-size: clamp(28px, 4vw, 41px); font-weight: 760; }
.hero p { max-width: 555px; color: #a0aabb; font-size: 12px; }

.grid-2 { grid-template-columns: minmax(0, 1.7fr) minmax(315px, .78fr); gap: 16px; }
.grid-equal { gap: 16px; }
.panel,
.creator {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 24px;
  background: #0b0b0b;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .18), inset 0 1px rgba(255, 255, 255, .025);
}
.panel::after,
.creator::after,
.quick-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(230px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, .05), transparent 72%);
  transition: opacity .25s ease;
}
.panel.is-lit::after,
.creator.is-lit::after,
.quick-card.is-lit::before { opacity: 1; }
.panel > *,
.creator > *,
.quick-card > * { position: relative; z-index: 1; }
.panel-head {
  min-height: 64px;
  padding: 14px 18px;
  border-bottom-color: rgba(255, 255, 255, .065);
}
.panel-title > .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .075);
}
.panel-title strong { font-size: 13px; font-weight: 690; }
.panel-title span { margin-top: 2px; }
.panel-body { padding: 17px; }

.quick-grid { gap: 10px; }
.quick-card {
  min-height: 118px;
  padding: 14px;
  border: 0;
  border-radius: 18px;
  background: #121212;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  transition: transform .32s var(--spring), background .22s ease, box-shadow .22s ease;
}
.quick-card:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: transparent;
  background: #191919;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .055);
}
.quick-card:active { transform: scale(.965); }
.quick-card > .icon:not(.arrow) {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .2), transparent 37%),
    linear-gradient(145deg, #ffffff, #d8d8d8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .27), inset 0 1px rgba(255, 255, 255, .18);
}
.quick-card:nth-child(2) > .icon:not(.arrow) {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .2), transparent 37%),
    linear-gradient(145deg, #8d70ff, #5e47d7);
  box-shadow: 0 8px 20px rgba(73, 51, 190, .25), inset 0 1px rgba(255, 255, 255, .18);
}
.quick-card:nth-child(3) > .icon:not(.arrow) {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .2), transparent 37%),
    linear-gradient(145deg, #37d6aa, #139070);
  box-shadow: 0 8px 20px rgba(10, 131, 98, .24), inset 0 1px rgba(255, 255, 255, .18);
}
.quick-card:nth-child(4) > .icon:not(.arrow) {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .2), transparent 37%),
    linear-gradient(145deg, #ffae53, #de6c24);
  box-shadow: 0 8px 20px rgba(190, 78, 18, .23), inset 0 1px rgba(255, 255, 255, .18);
}
.quick-card .arrow { top: 15px; right: 14px; color: #667186; }
.quick-card strong { margin-top: 12px; font-size: 12px; }

.data-row {
  min-height: 67px;
  border-bottom-color: rgba(255, 255, 255, .06);
  transition: background .2s ease, padding .25s var(--spring);
}
.data-row:hover { padding-left: 19px; background: rgba(255, 255, 255, .025); }
.row-main strong { font-weight: 680; }
.status { border: 0; }

.input,
.select,
.textarea,
.switch-row {
  min-height: 45px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: #080808;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(255, 255, 255, .58);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .075), inset 0 1px rgba(255, 255, 255, .035);
}
.switch { width: 42px; height: 24px; }
.switch::after { width: 18px; height: 18px; box-shadow: 0 2px 5px rgba(0, 0, 0, .32); }
.switch.on::after { transform: translateX(18px); }

.creator { border-radius: 26px; }
.creator-rail { padding: 20px; background: rgba(255, 255, 255, .018); }
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}
.step-item.active .step-number {
  box-shadow: 0 8px 20px rgba(0, 114, 234, .3), inset 0 1px rgba(255, 255, 255, .2);
}
.style-card,
.question-card,
.match-option,
.match-card {
  border-color: rgba(255, 255, 255, .075);
  border-radius: 17px;
  background: #0d0d0d;
}
.style-card {
  min-height: 120px;
  transition: transform .3s var(--spring), background .2s ease, border-color .2s ease;
}
.style-card:hover { transform: translateY(-3px); background: #161616; }
.style-card > .icon {
  width: 36px;
  height: 36px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}
.style-card.active {
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}
.ai-box {
  border-color: rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: #101010;
}
.upload-zone { border-radius: 18px; }
.tabs { border-radius: 14px; background: #090909; }
.tab { border-radius: 10px; }
.number { border-radius: 14px; }
.score-btn { border-radius: 10px; }
.empty-icon,
.locked-mark {
  border-radius: 18px;
  color: #fff;
}
.toast {
  border-radius: 17px;
  background: rgba(18, 18, 18, .94);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

.panel,
.hero,
.metrics,
.creator {
  animation: surface-in .46s var(--spring) both;
}
.metrics { animation-delay: .035s; }
.hero { animation-delay: .075s; }
.grid-2, .grid-equal { animation: surface-in .46s .11s var(--spring) both; }
@keyframes surface-in {
  from { opacity: 0; transform: translateY(10px) scale(.992); }
  to { opacity: 1; transform: none; }
}
@keyframes liquid-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, 9px, 0) scale(1.025); }
}

@media (max-width: 1080px) {
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .metric { padding-inline: 13px; }
  .metric-value { font-size: 24px; }
  .grid-2 { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); }
}

@media (max-width: 820px) {
  .app-shell { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar {
    height: 58px;
    padding: 0 16px;
    background: rgba(7, 7, 7, .82);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    backdrop-filter: blur(28px) saturate(160%);
  }
  .breadcrumb > span { color: #8995a8; }
  .avatar { width: 38px; height: 38px; border-radius: 13px; }
  .content { padding: 20px 15px 32px; }
  .page-head { margin-bottom: 19px; }
  .page-head h1 { font-size: 27px; }
  .page-head p { font-size: 11px; max-width: 390px; }
  .metrics {
    grid-template-columns: repeat(4, 142px);
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .metrics::-webkit-scrollbar { display: none; }
  .metric { scroll-snap-align: start; }
  .metric + .metric { border-left: 1px solid rgba(255, 255, 255, .06); }
  .grid-2, .grid-equal { grid-template-columns: 1fr; }
  .hero { min-height: 205px; padding: 24px; border-radius: 25px; }
  .hero h2 { font-size: 32px; }
  .hero::before { right: -175px; top: -225px; }
  .panel, .creator { border-radius: 22px; }
  .mobile-nav {
    min-height: 70px;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    gap: 3px;
    padding: 6px;
    border-color: rgba(255, 255, 255, .16);
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .075), transparent 52%),
      rgba(14, 14, 14, .9);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, .5),
      inset 0 1px rgba(255, 255, 255, .09);
    -webkit-backdrop-filter: blur(32px) saturate(175%);
    backdrop-filter: blur(32px) saturate(175%);
  }
  .mobile-nav .nav-item {
    min-height: 56px;
    padding: 5px 2px;
    border: 0;
    border-radius: 17px;
    color: #788397;
    background: transparent;
    font-size: 8px;
    font-weight: 650;
  }
  .mobile-nav .nav-item > .icon {
    width: 27px;
    height: 27px;
    padding: 5px;
    border-radius: 9px;
    color: #8995aa;
  }
  .mobile-nav .nav-item.active {
    color: #dceeff;
    border: 0;
    background: rgba(15, 126, 238, .15);
  }
  .mobile-nav .nav-item.active > .icon {
    color: #111;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .28));
  }
  #toast-region { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 25px; }
  .metrics { grid-template-columns: repeat(4, 132px); }
  .metric { min-height: 108px; padding: 13px; }
  .metric-value { font-size: 25px; }
  .hero { padding: 22px; }
  .hero h2 { font-size: 29px; }
  .quick-card { min-height: 112px; }
  .panel-head { padding: 13px 14px; }
  .panel-body { padding: 14px; }
  .creator-body { padding: 15px; }
  .creator-head { padding: 18px 17px; }
}

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

/* Component standard 3.0 — supplied Uiverse patterns, adapted to Lux Control */
:root {
  --blue: #f5f7fb;
  --blue-2: #ffffff;
  --blue-soft: rgba(255, 255, 255, .09);
  --focus: rgba(255, 255, 255, .58);
}

.asset-icon {
  display: block;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .22));
}
.mono-icon { filter: invert(1) drop-shadow(0 4px 9px rgba(0, 0, 0, .2)); }

button {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.brand-icon {
  color: #080a0f;
  border-color: rgba(255, 255, 255, .8);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(218, 222, 230, .9));
  box-shadow:
    0 12px 28px rgba(0, 0, 0, .3),
    inset 0 1px rgba(255, 255, 255, 1),
    inset 0 -1px rgba(0, 0, 0, .12);
}
.brand-icon .icon { color: #080a0f; }

.sidebar .nav-item > .icon {
  width: 39px;
  height: 39px;
  padding: 7px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.sidebar .nav-item:hover > .icon { color: #fff; }
.sidebar .nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
}
.sidebar .nav-item.active > .icon {
  color: #090b10;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32), inset 0 1px #fff;
}
.sidebar .nav-item.active > .mono-icon { filter: none; }
.sidebar .secure-box { color: #fff; background: rgba(255, 255, 255, .07); }

.eyebrow,
.hero-tag { color: #fff; }
.hero-tag,
.metric-icon,
.panel-title > .icon,
.ai-icon {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .075);
}
.hero {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(112deg, #151515 0%, #0f0f0f 58%, #1b1b1b 100%);
}
.hero::before {
  border-color: rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, .3), transparent 12%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .015) 68%);
  box-shadow:
    inset 18px 15px 44px rgba(255, 255, 255, .07),
    inset -22px -18px 44px rgba(0, 0, 0, .22),
    0 18px 70px rgba(0, 0, 0, .2);
}

.metric-icon {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 15px;
}
.metric-icon .icon { width: 32px; height: 32px; }
.panel-title > .asset-icon {
  width: 43px;
  height: 43px;
  padding: 5px;
}

/* Universal action button, based on the supplied BHARGAVPATEL1244 component */
.btn {
  position: relative;
  isolation: isolate;
  min-height: 44px;
  overflow: hidden;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #f7f7f8;
  color: #fff;
  font-weight: 720;
  letter-spacing: .025em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .85);
  transition: color .4s ease, transform .28s var(--spring), box-shadow .28s ease;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 -10%;
  width: 120%;
  height: 100%;
  border-radius: inherit;
  background: #0c0f15;
  transform: skew(30deg);
  transition: transform .4s cubic-bezier(.3, 1, .8, 1);
}
.btn::after { display: none; }
.btn:hover {
  color: #080a0f;
  background: #fff;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28), inset 0 1px #fff;
}
.btn:hover::before { transform: translate3d(100%, 0, 0) skew(30deg); }
.btn:active { transform: scale(.96); }
.btn > .icon {
  position: relative;
  z-index: 2;
}
.btn .asset-icon { width: 21px; height: 21px; padding: 1px; }
.btn:hover .mono-icon { filter: none; }
.btn.primary {
  color: #fff;
  border: 0;
  background: #fff;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .28), inset 0 1px #fff;
}
.btn.primary:hover {
  color: #080a0f;
  background: #fff;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .33), inset 0 1px #fff;
}
.btn.danger {
  color: #fff;
  border: 0;
  background: #ff6977;
}
.btn.danger:hover { color: #160507; background: #ff6977; }
.btn.success { color: #fff; border: 0; background: #baf5d9; }
.btn.success:hover { color: #06110c; background: #baf5d9; }
.btn.ghost { background: #fff; }
.btn.small { min-height: 36px; padding: 8px 14px; border-radius: 999px; }
.btn.icon-only { width: 38px; padding: 0; }

/* Universal segmented selector, based on the supplied chase2k25 component */
.glass-radio-group {
  --bg: rgba(255, 255, 255, .06);
  --text: #d9dde5;
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 17px;
  background: var(--bg);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, .16),
    inset -1px -1px 6px rgba(0, 0, 0, .3),
    0 8px 22px rgba(0, 0, 0, .15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.glass-radio-group input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.glass-radio-group > label {
  grid-row: 1;
  min-width: 0;
  min-height: 50px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  color: var(--text);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .01em;
  text-align: center;
  transition: color .3s ease, transform .3s var(--spring);
}
.glass-radio-group > label:hover { color: #fff; transform: translateY(-1px); }
.glass-radio-group > input[type=radio]:checked + label { color: #07090d; }
.glass-radio-group > label .icon {
  width: 25px;
  height: 25px;
  padding: 1px;
  filter: none;
}
.glass-radio-group.with-icons > label {
  min-height: 72px;
  flex-direction: column;
  gap: 5px;
  padding: 8px 6px;
}
.glass-radio-group.with-icons > label .icon { width: 36px; height: 36px; }
.glass-glider {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: calc(100% / var(--count));
  border-radius: 16px;
  transform: translateX(calc(100% * var(--active-index)));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .98));
  box-shadow:
    0 0 18px rgba(255, 255, 255, .22),
    0 0 10px rgba(255, 255, 255, .35) inset;
  transition:
    transform .5s cubic-bezier(.37, 1.45, .66, .56),
    background .4s ease,
    box-shadow .4s ease;
}

/* Universal dropdown, based on the supplied ilkhoeri component */
.dropdown {
  width: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .045);
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, .055);
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.dropdown.open {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .065);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .24), inset 1px 1px 4px rgba(255, 255, 255, .08);
}
.dropdown-trigger {
  width: 100%;
  min-height: 45px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #f0f2f6;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.dropdown-trigger .icon {
  width: 17px;
  height: 17px;
  transition: transform .42s var(--spring);
}
.dropdown.open .dropdown-trigger .icon { transform: rotate(90deg); }
.dropdown-list {
  display: grid;
  gap: 5px;
  max-height: 0;
  padding: 0 7px;
  overflow: hidden auto;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    max-height .5s ease,
    opacity .35s ease,
    transform .5s var(--spring),
    padding .4s ease;
}
.dropdown.open .dropdown-list {
  max-height: 280px;
  padding: 0 7px 8px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dropdown-option {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 11px;
  background: #0d0d0d;
  color: #dce0e8;
  font-size: 12px;
  font-weight: 570;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s var(--spring);
}
.dropdown-option:hover,
.dropdown-option.active {
  color: #080a0f;
  background: #fff;
  transform: translateX(2px);
}
.dropdown-option .icon { width: 16px; height: 16px; }
.webkit-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.webkit-scrollbar::-webkit-scrollbar-track { background: transparent; }
.webkit-scrollbar::-webkit-scrollbar-thumb { background: transparent; border-radius: 999px; }
.webkit-scrollbar:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .24); }

.input:focus,
.textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .075), inset 0 1px rgba(255, 255, 255, .04);
}
.select { background-image: none; }

/* Wizard navigation, based on the supplied next/back components */
.wizard-actions {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.wizard-next {
  width: 154px;
  height: 50px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: background .5s ease, color .5s ease, transform .28s var(--spring);
}
.wizard-next .icon {
  width: 23px;
  height: 23px;
  transition: transform .5s var(--spring);
}
.wizard-next:hover { color: #07090d; background: #fff; transform: translateY(-2px); }
.wizard-next:hover .icon { transform: translateX(5px); }
.wizard-back {
  width: 150px;
  height: 50px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #090b10;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}
.wizard-back > span:last-child {
  position: relative;
  z-index: 2;
  display: block;
  margin-left: 42px;
  transition: color .35s ease;
}
.wizard-back-icon {
  position: absolute;
  z-index: 1;
  left: 4px;
  top: 4px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: #0d0d0d;
  transition: width .5s var(--spring);
}
.wizard-back-icon .icon { width: 21px; height: 21px; }
.wizard-back:hover .wizard-back-icon { width: calc(100% - 8px); }
.wizard-back:hover > span:last-child { color: #fff; }
.publish-button { min-width: 185px; }

.creator-kicker {
  display: block;
  margin-bottom: 7px;
  color: #fff;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.creator-body { min-height: 430px; }
.step-item.active .step-number {
  color: #080a0f;
  border-color: #fff;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3), inset 0 1px #fff;
}
.step-item.done .step-number {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
}
.step-item.done .step-number .icon { width: 14px; height: 14px; }
.format-focus {
  min-height: 126px;
  margin-top: 18px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 19px;
  background: #0f0f0f;
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.format-focus > .icon {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  padding: 4px;
}
.format-focus strong { display: block; font-size: 16px; }
.format-focus span { display: block; max-width: 520px; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.review-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px;
  background: #0a0a0a;
}
.review-hero {
  min-height: 170px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .075);
  background: linear-gradient(120deg, rgba(255, 255, 255, .075), transparent 62%);
}
.review-hero > .icon { width: 102px; height: 102px; flex: 0 0 auto; }
.review-hero span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.review-hero h3 { margin-top: 5px; font-size: 25px; letter-spacing: -.035em; }
.review-hero p { margin-top: 7px; color: #a1a9b8; font-size: 11px; }
.review-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.review-grid > div { min-height: 92px; padding: 17px; border-right: 1px solid rgba(255, 255, 255, .07); }
.review-grid > div:last-child { border-right: 0; }
.review-grid span { display: block; color: var(--muted); font-size: 9px; }
.review-grid strong { display: block; margin-top: 8px; font-size: 12px; line-height: 1.45; }

/* Status is a compact control, never a notification ping */
.status {
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  color: #f6f7f9;
  background: rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px rgba(255, 255, 255, .055);
  letter-spacing: .03em;
}
.status::before { display: none; }
.status.scheduled,
.status.waiting,
.status.closed {
  color: #f6f7f9;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .065);
}
.status.cancelled { color: #ffb5bd; background: rgba(255, 105, 119, .1); }

.quick-card > .asset-icon:not(.arrow) {
  width: 58px;
  height: 58px;
  padding: 4px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.quick-card:nth-child(n) > .asset-icon:not(.arrow) {
  background: transparent;
  box-shadow: none;
}

.tabs {
  padding: 4px;
  border-color: rgba(255, 255, 255, .1);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, .08);
}
.tab { min-height: 34px; border-radius: 11px; }
.tab.active { color: #080a0f; background: #fff; box-shadow: 0 5px 14px rgba(0, 0, 0, .24); }

@media (max-width: 820px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 8px;
  }
  .metric {
    min-height: 118px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 17px;
    background: rgba(255, 255, 255, .025);
  }
  .metric + .metric { border-left: 1px solid rgba(255, 255, 255, .055); }
  .mobile-nav {
    width: auto;
    min-height: 66px;
    padding: 7px;
    justify-content: space-around;
    border-radius: 18px;
    background: rgba(245, 247, 251, .11);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, .5),
      inset 1px 1px 4px rgba(255, 255, 255, .16),
      inset -1px -1px 6px rgba(0, 0, 0, .3);
  }
  .mobile-nav .nav-item {
    flex: 0 0 50px;
    width: 50px;
    min-height: 50px;
    border-radius: 50%;
    transition: transform .3s var(--spring), background .3s ease;
  }
  .mobile-nav .nav-item > .icon {
    width: 33px;
    height: 33px;
    padding: 5px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .22));
  }
  .mobile-nav .nav-item > span { display: none; }
  .mobile-nav .nav-item:hover { transform: translateY(-3px); }
  .mobile-nav .nav-item.active {
    color: #080a0f;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  }
  .mobile-nav .nav-item.active > .mono-icon { filter: none; }
  .creator-body { min-height: 0; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid > div:nth-child(2) { border-right: 0; }
  .review-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
}

@media (max-width: 560px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 112px; }
  .metric-icon { width: 39px; height: 39px; }
  .metric-icon .icon { width: 29px; height: 29px; }
  .glass-radio-group > label { padding-inline: 7px; font-size: 10px; }
  .glass-radio-group.with-icons > label .icon { width: 31px; height: 31px; }
  .format-focus { min-height: 112px; padding: 15px; }
  .format-focus > .icon { width: 66px; height: 66px; }
  .wizard-actions { align-items: stretch; }
  .wizard-back,
  .wizard-next { width: 48%; }
  .publish-button { width: 56%; min-width: 0; padding-inline: 13px; }
  .review-hero { min-height: 150px; padding: 19px; gap: 15px; }
  .review-hero > .icon { width: 76px; height: 76px; }
  .review-hero h3 { font-size: 21px; }
}

/* Light visual system 4.0 — white surfaces, neutral graphite contrast */
:root {
  color-scheme: light;
  --bg: #f4f4f6;
  --panel: #ffffff;
  --panel-2: #f7f7f8;
  --panel-3: #ececef;
  --line: rgba(18, 18, 20, .09);
  --line-strong: rgba(18, 18, 20, .16);
  --text: #171719;
  --muted: #6f6f76;
  --muted-2: #929299;
  --blue: #171719;
  --blue-2: #171719;
  --blue-soft: rgba(18, 18, 20, .065);
  --focus: rgba(18, 18, 20, .42);
  --shadow: 0 24px 70px rgba(24, 24, 27, .1);
}

html { background: #f4f4f6; }
body {
  color: var(--text);
  background:
    radial-gradient(760px 440px at 84% -10%, rgba(255, 255, 255, .98), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, #f6f6f8 44%, #f1f1f3 100%);
}
body::before {
  background: rgba(255, 255, 255, .72);
  filter: blur(100px);
}

.sidebar {
  border-right-color: rgba(18, 18, 20, .085);
  background: rgba(250, 250, 251, .9);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .8), 12px 0 42px rgba(24, 24, 27, .045);
}
.brand-icon {
  color: #fff;
  border-color: #171719;
  background: #171719;
  box-shadow: 0 12px 25px rgba(24, 24, 27, .18), inset 0 1px rgba(255, 255, 255, .18);
}
.brand-icon .icon { color: #fff; }
.sidebar .nav-item { color: #77777e; }
.sidebar .nav-item > .icon { background: transparent; }
.sidebar .nav-item:hover {
  color: #171719;
  background: rgba(18, 18, 20, .045);
}
.sidebar .nav-item.active {
  color: #171719;
  background: #e9e9ec;
}
.sidebar .nav-item.active > .icon {
  color: #171719;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 24, 27, .13), inset 0 1px #fff;
}
.sidebar .secure-box {
  color: #171719;
  background: #ececef;
}

.topbar {
  border-bottom-color: rgba(18, 18, 20, .08);
  background: rgba(255, 255, 255, .82);
}
.breadcrumb { color: #77777e; }
.breadcrumb strong,
.eyebrow,
.hero-tag { color: #171719; }
.search-box {
  color: #77777e;
  border-color: rgba(18, 18, 20, .09);
  background: rgba(246, 246, 248, .92);
  box-shadow: inset 0 1px rgba(255, 255, 255, .9);
}
.search-box input { color: #171719; }
.avatar {
  color: #171719;
  border-color: rgba(18, 18, 20, .13);
  background: #ededf0;
  box-shadow: 0 8px 22px rgba(24, 24, 27, .1), inset 0 1px #fff;
}
.page-head p { color: #6f6f76; }
.btn::before { background: #171719; }

.metrics {
  border-color: rgba(18, 18, 20, .085);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 34px rgba(24, 24, 27, .055), inset 0 1px #fff;
}
.metric {
  color: #171719;
  background: transparent;
}
.metric + .metric { border-left-color: rgba(18, 18, 20, .075); }
.metric::before {
  background: radial-gradient(180px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(18, 18, 20, .055), transparent 70%);
}
.metric-icon,
.hero-tag,
.panel-title > .icon,
.ai-icon {
  color: #171719;
  border-color: rgba(18, 18, 20, .09);
  background: #f0f0f2;
}

.hero {
  color: #171719;
  border-color: rgba(18, 18, 20, .1);
  background: linear-gradient(112deg, #ffffff 0%, #f7f7f8 58%, #ededf0 100%);
  box-shadow: 0 20px 52px rgba(24, 24, 27, .09), inset 0 1px #fff;
}
.hero::before {
  border-color: rgba(18, 18, 20, .11);
  background:
    radial-gradient(circle at 32% 34%, rgba(255, 255, 255, .96), transparent 13%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .52), rgba(18, 18, 20, .035) 68%);
  box-shadow:
    inset 18px 15px 44px rgba(255, 255, 255, .78),
    inset -22px -18px 44px rgba(24, 24, 27, .075),
    0 18px 58px rgba(24, 24, 27, .07);
}
.hero::after {
  background: radial-gradient(310px circle at var(--spot-x, 58%) var(--spot-y, 50%), rgba(18, 18, 20, .045), transparent 72%);
}
.hero p { color: #5f5f66; }

.panel,
.creator,
.review-card {
  color: #171719;
  border-color: rgba(18, 18, 20, .09);
  background: #fff;
  box-shadow: 0 18px 48px rgba(24, 24, 27, .065), inset 0 1px #fff;
}
.panel::after,
.creator::after,
.quick-card::before {
  background: radial-gradient(230px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(18, 18, 20, .035), transparent 72%);
}
.panel-head,
.creator-head,
.wizard-actions,
.review-hero {
  border-color: rgba(18, 18, 20, .08);
}
.creator-rail { background: #f7f7f8; }
.creator-kicker { color: #171719; }

.quick-card,
.style-card,
.question-card,
.match-option,
.match-card,
.format-focus {
  color: #171719;
  border-color: rgba(18, 18, 20, .085);
  background: #f7f7f8;
  box-shadow: inset 0 1px #fff;
}
.quick-card:hover,
.style-card:hover {
  border-color: rgba(18, 18, 20, .14);
  background: #eeeeF1;
  box-shadow: 0 13px 25px rgba(24, 24, 27, .085), inset 0 1px #fff;
}
.quick-card .arrow { color: #8b8b92; }
.empty h3,
.upload-zone strong { color: #35353a; }
.data-row { border-bottom-color: rgba(18, 18, 20, .07); }
.data-row:hover { background: rgba(18, 18, 20, .025); }

.input,
.select,
.textarea,
.switch-row {
  color: #171719;
  border-color: rgba(18, 18, 20, .11);
  background: #f8f8f9;
  box-shadow: inset 0 1px rgba(18, 18, 20, .025);
}
.input::placeholder,
.textarea::placeholder { color: #9a9aa1; }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(18, 18, 20, .42);
  box-shadow: 0 0 0 4px rgba(18, 18, 20, .065), inset 0 1px rgba(18, 18, 20, .02);
}
.field label,
.switch-row span { color: #55555c; }
.switch { background: #d6d6da; }
.switch.on { background: #171719; }
.switch::after { background: #fff; }

.status,
.status.scheduled,
.status.waiting,
.status.closed {
  color: #2b2b2f;
  border-color: rgba(18, 18, 20, .11);
  background: #efeff1;
  box-shadow: inset 0 1px #fff;
}
.status.cancelled {
  color: #9e2634;
  border-color: rgba(158, 38, 52, .12);
  background: #fff0f2;
}

.glass-radio-group {
  --bg: #eeeeF1;
  --text: #56565d;
  border-color: rgba(18, 18, 20, .09);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, .92),
    inset -1px -1px 5px rgba(24, 24, 27, .07),
    0 7px 20px rgba(24, 24, 27, .055);
}
.glass-radio-group > label:hover { color: #171719; }
.glass-radio-group > input[type=radio]:checked + label { color: #171719; }
.glass-glider {
  background: linear-gradient(135deg, #ffffff, #fafafa);
  box-shadow: 0 8px 20px rgba(24, 24, 27, .11), 0 0 9px rgba(255, 255, 255, .9) inset;
}

.dropdown {
  border-color: rgba(18, 18, 20, .11);
  background: #f8f8f9;
  box-shadow: inset 1px 1px 3px rgba(255, 255, 255, .9);
}
.dropdown.open {
  border-color: rgba(18, 18, 20, .28);
  background: #fff;
  box-shadow: 0 14px 32px rgba(24, 24, 27, .11), inset 1px 1px 4px #fff;
}
.dropdown-trigger { color: #171719; }
.dropdown-option {
  color: #313136;
  border-color: rgba(18, 18, 20, .08);
  background: #fff;
}
.dropdown-option:hover,
.dropdown-option.active {
  color: #fff;
  background: #171719;
}
.webkit-scrollbar:hover::-webkit-scrollbar-thumb { background: rgba(18, 18, 20, .25); }

.ai-box {
  color: #171719;
  border-color: rgba(18, 18, 20, .1);
  background: #f5f5f7;
}
.upload-zone {
  color: #171719;
  border-color: rgba(18, 18, 20, .16);
  background: #fafafa;
}
.upload-zone:hover {
  border-color: rgba(18, 18, 20, .34);
  background: #f0f0f2;
}
.match-option:hover,
.match-option.active,
.style-card.active {
  border-color: rgba(18, 18, 20, .28);
  background: #ededf0;
}

.step-item { color: #85858c; }
.step-number {
  color: #6f6f76;
  border-color: rgba(18, 18, 20, .12);
  background: #fff;
}
.step-item.active .step-number {
  color: #fff;
  border-color: #171719;
  background: #171719;
  box-shadow: 0 8px 20px rgba(24, 24, 27, .18);
}
.step-item.done .step-number {
  color: #171719;
  border-color: rgba(18, 18, 20, .14);
  background: #e8e8eb;
}

.wizard-next {
  color: #171719;
  border-color: rgba(18, 18, 20, .16);
  background: #fff;
}
.wizard-next:hover {
  color: #fff;
  background: #171719;
}
.wizard-back {
  color: #171719;
  border: 1px solid rgba(18, 18, 20, .12);
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 24, 27, .08);
}
.wizard-back-icon {
  color: #fff;
  background: #171719;
}

.review-hero {
  background: linear-gradient(120deg, #f8f8f9, #fff 62%);
}
.review-hero p { color: #68686f; }
.review-grid > div {
  border-color: rgba(18, 18, 20, .075);
}
.tabs {
  border-color: rgba(18, 18, 20, .09);
  background: #ededf0;
  box-shadow: inset 1px 1px 4px #fff;
}
.tab { color: #66666d; }
.tab.active {
  color: #171719;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 24, 27, .11);
}
.empty-icon,
.locked-mark {
  color: #171719;
  border-color: rgba(18, 18, 20, .09);
  background: #efeff1;
}
.locked {
  color: #171719;
  background: radial-gradient(circle at 50% 30%, #fff, #f4f4f6 42%, #ededf0);
}
.number,
.score-btn {
  color: #303035;
  border-color: rgba(18, 18, 20, .12);
  background: #fff;
}
.number:hover,
.number.mine {
  color: #fff;
  border-color: #171719;
  background: #171719;
}
.toast {
  color: #171719;
  border-color: rgba(18, 18, 20, .1);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 17px 45px rgba(24, 24, 27, .14);
}
.campaign-loading { padding: 18px; }
.ranking-panel { margin-top: 16px; }
.pagination {
  min-height: 58px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-top: 1px solid rgba(18, 18, 20, .075);
  color: #77777e;
  font-size: 10px;
}
.pagination strong { color: #171719; }
.pagination .btn { box-shadow: 0 5px 14px rgba(24, 24, 27, .09); }

@media (max-width: 820px) {
  .topbar {
    background: rgba(255, 255, 255, .86);
  }
  .breadcrumb > span { color: #77777e; }
  .metric {
    border-color: rgba(18, 18, 20, .07);
    background: #fafafa;
  }
  .metric + .metric { border-left-color: rgba(18, 18, 20, .07); }
  .mobile-nav {
    border-color: rgba(18, 18, 20, .11);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(246, 246, 248, .82)),
      rgba(255, 255, 255, .86);
    box-shadow:
      0 18px 42px rgba(24, 24, 27, .16),
      inset 1px 1px 4px #fff,
      inset -1px -1px 5px rgba(24, 24, 27, .055);
  }
  .mobile-nav .nav-item {
    color: #74747b;
    background: transparent;
  }
  .mobile-nav .nav-item.active {
    color: #171719;
    background: #fff;
    box-shadow: 0 8px 18px rgba(24, 24, 27, .14);
  }
  .review-grid > div:nth-child(-n+2) {
    border-bottom-color: rgba(18, 18, 20, .075);
  }
}

@media (max-width: 560px) {
  .panel-head:has(.tabs) {
    align-items: stretch;
    flex-direction: column;
  }
  .panel-head .tabs { width: 100%; }
  .panel-head .tab { flex: 1; }
  .ranking-panel .rank-row {
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .ranking-panel .rank-meta {
    grid-column: 2;
    grid-row: 2;
  }
  .ranking-panel .rank-points {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* Bolão — escudos oficiais e placar compacto sem ultrapassar o Mini App */
.app-shell,
.workspace,
.content,
.panel,
.panel-body,
.match-card {
  min-width: 0;
  max-width: 100%;
}
.match-card {
  overflow: hidden;
}
.match-card .score-row {
  width: 100%;
  grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr);
  gap: 7px;
}
.match-card .team {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  text-align: center;
}
.team-emblem {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
}
.team-crest {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(24, 24, 27, .14));
}
.team-crest-fallback {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(18, 18, 20, .09);
  border-radius: 50%;
  background: #fff;
}
.team-crest-fallback .icon {
  width: 28px;
  height: 28px;
  padding: 2px;
}
.team-emblem.missing .team-crest {
  display: none;
}
.team-emblem.missing .team-crest-fallback {
  display: grid;
}
.match-card .team-name {
  max-width: 78px;
  min-height: 18px;
  color: #4d4d53;
  font-size: 8px;
  font-weight: 680;
  line-height: 1.12;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.match-card .score-control {
  min-width: 0;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.match-card .score-btn {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
}
.match-card .score {
  min-width: 15px;
  font-size: 15px;
}
.match-card .score-divider {
  margin: 0 1px;
  font-size: 10px;
}

@media (max-width: 820px) {
  html,
  body,
  #app,
  .app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
}

@media (max-width: 390px) {
  .content {
    padding-right: 10px;
    padding-left: 10px;
  }
  .match-card {
    padding: 12px 8px;
  }
  .match-card .score-row {
    grid-template-columns: minmax(46px, 1fr) auto minmax(46px, 1fr);
    gap: 4px;
  }
  .team-emblem {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .team-crest-fallback {
    width: 36px;
    height: 36px;
  }
  .match-card .team-name {
    max-width: 62px;
    font-size: 7.5px;
  }
  .match-card .score-control {
    gap: 2px;
  }
  .match-card .score-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
  }
  .match-card .score {
    min-width: 13px;
    font-size: 14px;
  }
}
