:root {
  --bg: #0b0f16;
  --bg-2: #151b25;
  --panel: rgba(15, 19, 28, 0.84);
  --panel-2: rgba(20, 25, 36, 0.94);
  --line: rgba(255, 255, 255, 0.07);
  --text: #f3f6fb;
  --text-soft: #aeb8cb;
  --text-dim: #778096;
  --acid: #8fe4ff;
  --cyan: #79deff;
  --orange: #ff9154;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 540px at 0% 0%, rgba(255, 145, 84, 0.16), transparent 58%),
    radial-gradient(720px 460px at 100% 8%, rgba(121, 222, 255, 0.13), transparent 54%),
    linear-gradient(180deg, #0a0d13 0%, #11161f 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

code {
  padding: 0 0.3em;
  border-radius: 0.5em;
  background: rgba(255, 255, 255, 0.06);
}

.hidden {
  display: none !important;
}

.app-bg,
.app-grid,
.app-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.app-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), transparent 100%);
}

.app-orb {
  filter: blur(56px);
  opacity: 0.6;
}

.orb-a {
  inset: -12% auto auto -10%;
  width: 360px;
  height: 360px;
  background: rgba(255, 142, 77, 0.24);
}

.orb-b {
  inset: auto -12% 20% auto;
  width: 420px;
  height: 420px;
  background: rgba(125, 232, 255, 0.14);
}

.orb-c {
  inset: auto auto -18% 30%;
  width: 320px;
  height: 320px;
  background: rgba(200, 255, 90, 0.1);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 32px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(18, 21, 31, 0.96), rgba(10, 12, 20, 0.92)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
}

.sidebar {
  position: sticky;
  top: 24px;
  height: calc(100svh - 48px);
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 800 13px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff833e, rgba(255, 183, 122, 0.62));
  box-shadow: 0 0 28px rgba(255, 131, 62, 0.24);
}

.sidebar-copy h1,
.hero h2,
.section-head h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.sidebar-copy h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 0.98;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--acid);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.muted {
  color: var(--text-soft);
  line-height: 1.6;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.nav-link,
.button-link,
.ghost-link {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-link {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  text-align: left;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(200, 255, 90, 0.08);
  transform: translateX(2px);
}

.session-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 10px;
}

.session-label,
.meta-label,
.tool-head span {
  color: var(--text-dim);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-link {
  color: var(--cyan);
  font-weight: 700;
}

.workspace {
  display: grid;
  gap: 20px;
}

.hero {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
}

.hero-subtitle {
  max-width: 58ch;
  color: #d9deec;
  line-height: 1.68;
}

.hero h2 {
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 0.96;
}

.hero-chips,
.hero-actions,
.inline-fields,
.triple-fields,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips span {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7faff;
  font-size: 13px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid rgba(200, 255, 90, 0.22);
  background: linear-gradient(135deg, var(--acid), #f5ffb8);
  color: #101309;
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.block-button {
  min-width: 160px;
}

.hero-preview {
  min-height: 320px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 142, 77, 0.18), transparent 36%),
    linear-gradient(160deg, rgba(17, 20, 31, 0.95), rgba(9, 11, 18, 0.92));
}

.preview-stack {
  display: grid;
  gap: 12px;
  height: 100%;
}

.preview-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 8px;
}

.preview-card span {
  color: var(--text-dim);
  font-size: 12px;
}

.preview-card strong {
  font-size: 20px;
}

.preview-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.preview-card-main {
  min-height: 170px;
  align-content: end;
}

.preview-card-wide {
  background: linear-gradient(135deg, rgba(125, 232, 255, 0.08), rgba(200, 255, 90, 0.08));
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1;
}

.workspace > .panel {
  padding: 26px;
}

.tool-grid,
.profile-grid,
.settings-grid,
.config-grid {
  display: grid;
  gap: 16px;
}

.tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card,
.profile-card,
.config-editor,
.config-list-wrap {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 14px;
}

.tool-card-accent {
  background: linear-gradient(135deg, rgba(255, 142, 77, 0.08), rgba(125, 232, 255, 0.06));
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-head h3,
.list-head strong {
  margin: 0;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 10, 17, 0.85);
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 184px;
  padding: 14px 16px;
  resize: vertical;
}

.announce-strip {
  min-height: 100%;
  border-radius: 20px;
  padding: 16px;
  background: rgba(9, 11, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}

.announce-strip strong,
.meta-pairs strong {
  display: block;
}

.announce-strip span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  line-height: 1.5;
}

.result-browser {
  min-height: 220px;
  max-height: 920px;
  overflow: auto;
  border-radius: 22px;
  background: rgba(7, 9, 15, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px;
}

.result-browser-frame {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(7, 9, 15, 0.96);
}

.result-browser > *:first-child {
  margin-top: 0;
}

.result-image-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 9, 15, 0.96);
}

.result-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.result-caption {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meta-pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.meta-pairs span {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  margin-bottom: 6px;
}

.config-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.config-list {
  display: grid;
  gap: 12px;
}

.config-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.config-item-head,
.config-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.config-item-actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.config-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.login-panel {
  position: relative;
  overflow: hidden;
  width: min(1020px, 100%);
  margin: 0 auto;
  padding: 0 !important;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #000;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 8% 42% 9% 4%;
  z-index: 0;
  border-radius: 44px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 149, 84, 0.34), transparent 34%),
    radial-gradient(circle at 72% 52%, rgba(255, 214, 186, 0.14), transparent 24%),
    radial-gradient(circle at 82% 82%, rgba(255, 113, 84, 0.16), transparent 28%);
  filter: blur(78px);
  opacity: 0.9;
  pointer-events: none;
}

body.auth-locked .app-shell {
  grid-template-columns: 1fr;
  width: min(1020px, calc(100% - 56px));
  min-height: 100svh;
  align-items: center;
}

body.auth-locked .sidebar,
body.auth-locked .workspace > .panel:not(#auth-state) {
  display: none;
}

body.auth-locked {
  background:
    radial-gradient(980px 640px at 34% 44%, rgba(255, 139, 74, 0.12), transparent 56%),
    radial-gradient(760px 540px at 58% 52%, rgba(255, 196, 160, 0.08), transparent 60%),
    radial-gradient(1200px 760px at 50% 44%, rgba(12, 12, 15, 0.92), transparent 58%),
    radial-gradient(920px 620px at 50% 50%, rgba(34, 30, 34, 0.5), transparent 74%),
    linear-gradient(180deg, #1d1c1d 0%, #181718 100%);
}

body.auth-locked .app-bg {
  display: block;
  opacity: 0.5;
}

body.auth-locked .app-grid {
  opacity: 0.22;
}

body.auth-locked .orb-a {
  background: rgba(255, 142, 77, 0.12);
}

body.auth-locked .orb-b {
  background: rgba(255, 206, 172, 0.08);
}

body.auth-locked .orb-c {
  background: rgba(255, 142, 77, 0.08);
}

body.auth-locked .workspace {
  min-height: calc(100svh - 56px);
  align-content: center;
  justify-items: center;
}

body.auth-locked #auth-state {
  display: block !important;
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(438px, 1.02fr) minmax(360px, 0.98fr);
  min-height: min(516px, calc(100svh - 248px));
}

.auth-showcase,
.auth-card {
  position: relative;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 2vw, 18px);
}

.auth-showcase {
  padding-left: 10px;
  padding-right: clamp(12px, 2vw, 18px);
}

.auth-showcase {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #000;
}

.auth-showcase::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.auth-brand {
  align-self: start;
}

.auth-showcase-shell {
  width: min(100%, 474px);
  display: grid;
  gap: 18px;
}

.auth-showcase-poster {
  position: relative;
  min-height: 500px;
  padding: 22px;
  border-radius: 32px;
  overflow: hidden;
  border: none;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 146, 82, 0.92), transparent 34%),
    radial-gradient(circle at 74% 50%, rgba(255, 183, 138, 0.22), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(255, 118, 88, 0.18), transparent 24%),
    linear-gradient(180deg, #ff8b4a 0%, #c8613b 34%, #733938 66%, #2f1f24 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -28px 36px rgba(21, 10, 12, 0.28),
    0 26px 70px rgba(0, 0, 0, 0.3);
}

.auth-showcase-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 52%, rgba(255, 215, 188, 0.14), transparent 22%),
    radial-gradient(circle at 26% 28%, rgba(255, 122, 58, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
  z-index: 1;
  pointer-events: none;
}

.auth-showcase-glyph {
  position: relative;
  z-index: 2;
  display: block;
  width: 60px;
  height: 60px;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.auth-showcase-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.auth-showcase-copy strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(36px, 3vw, 46px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.auth-showcase-copy span {
  max-width: 18rem;
  color: rgba(245, 247, 251, 0.78);
  line-height: 1.45;
}

.auth-card-head {
  display: grid;
  gap: 10px;
  width: min(100%, 404px);
  max-width: 404px;
}

.auth-card h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.auth-fields {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field-label {
  color: #edf1fb;
  font-size: 13px;
  font-weight: 700;
}

.auth-field-box {
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.025);
  display: grid;
  align-content: center;
  gap: 4px;
}

.auth-field-box strong {
  font-size: 15px;
}

.auth-field-box small {
  color: var(--text-dim);
}

.auth-field-box-rich {
  min-height: 92px;
}

.auth-field-box-rich .muted {
  margin: 0;
  max-width: none;
}

.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
  cursor: default;
}

.auth-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--orange);
}

.auth-inline-link {
  color: rgba(245, 247, 251, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.auth-inline-link:hover {
  color: var(--orange);
}

.auth-card {
  align-self: stretch;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: #000;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 14px 18px 14px 30px;
}

.auth-card > .eyebrow {
  margin-bottom: 0;
}

.auth-card .muted {
  max-width: 26rem;
}

#auth-description {
  margin: 0;
  width: min(100%, 404px);
  max-width: 404px;
  padding-left: 0;
  color: rgba(245, 247, 251, 0.88);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-align: center;
}

#auth-title {
  width: 100%;
  text-align: center;
}

.auth-card-head {
  gap: 6px;
}

.auth-actions,
.auth-info {
  width: min(100%, 404px);
  max-width: 404px;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.auth-button {
  width: 100%;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
}

.auth-button-faceit {
  border: 1px solid rgba(255, 166, 95, 0.34);
  background: linear-gradient(135deg, #ff833e, #ffb06e);
  color: #160f0b;
  box-shadow: 0 20px 44px rgba(255, 117, 53, 0.18);
}

.auth-button-faceit:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(255, 117, 53, 0.24);
}

.auth-button-secondary {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.auth-button-steam {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111216;
  color: var(--text);
}

.auth-button-steam:hover {
  transform: translateY(-2px);
  background: #151821;
}

.auth-button-logo {
  display: block;
  flex: 0 0 auto;
}

.auth-button-logo-faceit {
  width: 20px;
  height: 20px;
}

.auth-button-logo-steam {
  width: 22px;
  height: 22px;
  object-fit: cover;
  object-position: left center;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 16px;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  color: var(--text-dim);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: #0a0c13;
}

.auth-faceit-mark {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.auth-faceit-mark::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #ff833e;
  transform: translate(-25%, -50%);
}

.auth-telegram-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
}

.auth-telegram-mark::before {
  content: "";
  position: absolute;
  top: 47%;
  left: 53%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #0c111d;
  border-right: 2px solid #0c111d;
  transform: translate(-50%, -50%) rotate(25deg);
}

.auth-steam-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.88);
}

.auth-steam-mark::before {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.auth-steam-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.88);
  transform: rotate(24deg);
  transform-origin: left center;
}

.auth-footer {
  margin: 0;
  color: rgba(245, 247, 251, 0.72);
  text-align: center;
}

.auth-footer strong {
  color: var(--text);
  font-weight: 800;
}

.auth-info {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.auth-info-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .auth-layout,
  .hero,
  .config-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-showcase::after {
    display: none;
  }

  .auth-card {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .login-panel::before {
    inset: 6% 8% 36% 8%;
    filter: blur(72px);
    opacity: 0.82;
  }

  body.auth-locked {
    background:
      radial-gradient(840px 520px at 50% 22%, rgba(255, 139, 74, 0.14), transparent 52%),
      radial-gradient(640px 420px at 50% 36%, rgba(255, 196, 160, 0.08), transparent 56%),
      radial-gradient(1200px 760px at 50% 42%, rgba(12, 12, 15, 0.92), transparent 58%),
      linear-gradient(180deg, #1d1c1d 0%, #181718 100%);
  }

  .auth-showcase-shell {
    width: min(100%, 560px);
  }

  .auth-showcase-poster {
    min-height: 460px;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100%, calc(100% - 20px));
    padding-top: 12px;
  }

  .workspace > .panel,
  .sidebar {
    padding: 20px;
  }

  .auth-showcase,
  .auth-card {
    padding: 22px;
  }

  .tool-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .preview-row,
  .meta-pairs {
    grid-template-columns: 1fr;
  }

  .announce-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .hero h2 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .auth-card h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .login-panel {
    width: 100%;
  }

  .login-panel::before {
    inset: 5% 6% 48% 6%;
    filter: blur(58px);
    opacity: 0.76;
  }

  body.auth-locked {
    background:
      radial-gradient(620px 360px at 50% 16%, rgba(255, 139, 74, 0.16), transparent 48%),
      radial-gradient(420px 260px at 50% 28%, rgba(255, 196, 160, 0.08), transparent 52%),
      linear-gradient(180deg, #1c1b1c 0%, #171616 100%);
  }

  .auth-showcase-poster {
    min-height: 370px;
  }

  .auth-meta-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

body:not(.auth-locked) {
  background:
    radial-gradient(780px 520px at 0% 0%, rgba(255, 139, 76, 0.12), transparent 48%),
    radial-gradient(920px 640px at 100% 24%, rgba(92, 172, 255, 0.08), transparent 42%),
    linear-gradient(180deg, #0f1218 0%, #12161d 100%);
}

body:not(.auth-locked) .app-grid {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 20px 20px;
}

body:not(.auth-locked) .app-orb {
  filter: blur(84px);
  opacity: 0.26;
}

.dashboard-shell {
  width: min(1320px, calc(100% - 28px));
  padding: 20px 0 36px;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
}

.dashboard-shell .panel:not(#auth-state) {
  border-radius: 22px;
  border: 1px solid #2a2f39;
  background:
    linear-gradient(180deg, rgba(26, 30, 38, 0.98), rgba(21, 25, 32, 0.98)),
    #181c24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.015);
  backdrop-filter: none;
}

.dashboard-sidebar.sidebar {
  top: 20px;
  height: calc(100svh - 40px);
  padding: 16px;
  gap: 16px;
  align-content: start;
}

.dashboard-brand-block {
  display: grid;
  gap: 8px;
}

.dashboard-brand {
  gap: 10px;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.dashboard-brand .brand-mark {
  width: 34px;
  height: 14px;
  background: linear-gradient(90deg, #ff9246, #cf6f39);
  box-shadow: none;
}

.dashboard-brand-note,
.dashboard-sidebar-title {
  margin: 0;
  color: var(--text-dim);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dashboard-sidebar-copy {
  display: grid;
  gap: 8px;
}

.dashboard-sidebar-text {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 14px;
}

.dashboard-nav {
  display: grid;
  gap: 14px;
}

.dashboard-nav-group {
  display: grid;
  gap: 8px;
}

.dashboard-nav-label {
  color: #70798e;
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-sidebar .nav-link {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.025);
  color: #b8c0d0;
  transform: none;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  color: #f4f7fc;
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

.dashboard-session {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #2e3440;
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-session strong {
  font-size: 22px;
  line-height: 1.05;
}

.dashboard-logout {
  justify-self: start;
}

.dashboard-main.workspace {
  gap: 16px;
}

.dashboard-page {
  display: grid;
  gap: 16px;
}

.dashboard-panel {
  padding: 20px 22px;
}

.dashboard-overview-panel {
  display: grid;
  gap: 18px;
}

.dashboard-overview-empty {
  min-height: 180px;
  border-radius: 18px;
  border: 1px solid #2b313c;
  background:
    linear-gradient(180deg, rgba(28, 33, 42, 0.72), rgba(22, 27, 35, 0.82)),
    #1a1f28;
  display: grid;
  place-items: center;
  padding: 24px;
}

.dashboard-page-placeholder {
  width: min(100%, 560px);
  display: grid;
  gap: 10px;
  text-align: center;
}

.dashboard-page-placeholder strong {
  font: 800 clamp(20px, 2.2vw, 28px)/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
  color: #eef3fb;
}

.dashboard-page-placeholder p {
  margin: 0;
  color: #a8b2c5;
  line-height: 1.6;
}

.dashboard-compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 20px;
  align-items: start;
}

.dashboard-compare-stage-panel,
.dashboard-compare-side {
  min-height: 100%;
}

.dashboard-compare-stage-panel {
  padding-bottom: 30px;
}

.dashboard-compare-placeholder {
  display: grid;
  gap: 30px;
}

.dashboard-compare-topline {
  display: grid;
  grid-template-columns: minmax(124px, auto) minmax(0, 1fr) minmax(124px, auto);
  gap: 18px;
  align-items: center;
}

.dashboard-compare-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-compare-source-right {
  justify-content: flex-end;
}

.dashboard-compare-topnote {
  color: #8cbcff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.dashboard-compare-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.dashboard-compare-player {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.dashboard-compare-badge {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(78, 87, 103, 0.72);
  background: rgba(43, 49, 59, 0.52);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe3f2;
  font-weight: 800;
  font-size: 14px;
}

.dashboard-compare-badge.is-active {
  background: #313946;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-compare-card {
  width: 100%;
  max-width: 268px;
  padding: 20px 18px 18px;
  border-radius: 24px;
  border: 1px solid #343d4c;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 42%),
    linear-gradient(180deg, rgba(24, 29, 39, 0.98), rgba(18, 22, 31, 0.98));
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.dashboard-compare-card-left {
  box-shadow:
    inset 0 0 0 1px rgba(63, 166, 255, 0.42),
    0 0 0 1px rgba(63, 166, 255, 0.16),
    0 0 44px rgba(48, 143, 255, 0.18);
}

.dashboard-compare-card-right {
  box-shadow:
    inset 0 0 0 1px rgba(255, 67, 110, 0.38),
    0 0 0 1px rgba(255, 67, 110, 0.16),
    0 0 44px rgba(255, 66, 112, 0.18);
}

.dashboard-compare-avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(160deg, #58647a, #2f3848);
}

.dashboard-compare-card-main {
  display: grid;
  gap: 4px;
}

.dashboard-compare-card-main strong {
  font: 800 24px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.dashboard-compare-card-main span,
.dashboard-compare-card-rating span,
.dashboard-compare-card-role span {
  color: #9da8bc;
  font-size: 14px;
  line-height: 1.5;
}

.dashboard-compare-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-compare-card-rating b {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 16px/1 "Sora", "Segoe UI", sans-serif;
}

.dashboard-compare-card-left .dashboard-compare-card-rating {
  color: #43b0ff;
}

.dashboard-compare-card-right .dashboard-compare-card-rating {
  color: #ff486f;
}

.dashboard-compare-card-role {
  display: grid;
  gap: 3px;
}

.dashboard-compare-card-role strong {
  font-size: 20px;
  font-weight: 800;
}

.dashboard-compare-versus {
  color: #b5c1d8;
  font: 800 18px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-compare-block {
  display: grid;
  gap: 16px;
}

.dashboard-compare-block h3 {
  margin: 0;
  padding-top: 4px;
  color: #f7faff;
  font-size: 15px;
  font-weight: 800;
}

.dashboard-compare-metrics {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-compare-metric {
  display: grid;
  grid-template-columns: 72px 1fr auto 1fr 72px;
  gap: 12px;
  align-items: center;
}

.dashboard-compare-metric strong {
  font-size: 14px;
  text-align: center;
}

.dashboard-compare-value {
  font: 800 18px/1 "Sora", "Segoe UI", sans-serif;
}

.dashboard-compare-value-left {
  color: #43b0ff;
  text-align: right;
}

.dashboard-compare-value-right {
  color: #ff486f;
}

.dashboard-compare-bar {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #43b0ff, rgba(67, 176, 255, 0.24));
  position: relative;
}

.dashboard-compare-bar i {
  position: absolute;
  right: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #43b0ff;
  transform: translateY(-50%);
  box-shadow: 0 0 16px rgba(67, 176, 255, 0.55);
}

.dashboard-compare-bar-right {
  background: linear-gradient(90deg, rgba(255, 72, 111, 0.24), #ff486f);
}

.dashboard-compare-bar-right i {
  left: 0;
  right: auto;
  background: #ff486f;
  box-shadow: 0 0 16px rgba(255, 72, 111, 0.5);
}

.dashboard-compare-side {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-bottom: 24px;
}

.dashboard-compare-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-compare-side-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-compare-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 2px solid #c6f26a;
  position: relative;
}

.dashboard-compare-mark::before,
.dashboard-compare-mark::after {
  content: "";
  position: absolute;
  background: #c6f26a;
}

.dashboard-compare-mark::before {
  width: 2px;
  top: 4px;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.dashboard-compare-mark::after {
  height: 2px;
  left: 4px;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.dashboard-compare-side-head h3 {
  margin: 2px 0 0;
  font: 800 26px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.dashboard-compare-version {
  color: #8f98aa;
  font: 700 14px/1 "Sora", "Segoe UI", sans-serif;
}

.dashboard-compare-side-copy {
  margin: 0;
  color: #9fb2d0;
  font-size: 15px;
  line-height: 1.5;
}

.dashboard-compare-controls {
  display: grid;
  gap: 12px;
}

.dashboard-compare-actions {
  display: grid;
  gap: 10px;
}

.dashboard-compare-actions .primary-button,
.dashboard-compare-actions .secondary-button {
  width: 100%;
}

.dashboard-compare-side-note {
  margin: -2px 0 0;
  color: #8f98aa;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-compare-groups {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-compare-groups strong {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dashboard-compare-result {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-stats-panel {
  display: grid;
  gap: 18px;
}

.dashboard-stats-result {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 15, 22, 0.7);
}

.dashboard-stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.8fr) minmax(180px, 0.7fr);
  gap: 12px;
  align-items: end;
}

.dashboard-stats-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-stats-actions .primary-button,
.dashboard-stats-actions .secondary-button {
  min-width: 190px;
}

.dashboard-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-kicker {
  margin: 0 0 8px;
  color: #7cb8ff;
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dashboard-title,
.dashboard-title-md,
.dashboard-profile-copy h2,
.dashboard-tool-head h3,
.dashboard-module-body h3 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  letter-spacing: -0.04em;
}

.dashboard-title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 0.98;
}

.dashboard-title-md {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
}

.dashboard-hero-panel {
  display: grid;
  gap: 18px;
}

.dashboard-profile-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.dashboard-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid #3a4353;
  background: linear-gradient(180deg, #343c49, #2c333f);
  color: #f4f7fc;
}

.dashboard-avatar span {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.dashboard-avatar .dashboard-avatar-fallback {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.dashboard-profile-copy {
  min-width: 0;
}

.dashboard-profile-label {
  margin: 0 0 6px;
  color: var(--text-dim);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-profile-copy h2 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.92;
}

.dashboard-profile-subtitle {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.dashboard-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dashboard-shell .status-chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #343b48;
  background: #212631;
  color: #dde3ee;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-shell .primary-button,
.dashboard-shell .secondary-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: none;
}

.dashboard-shell .primary-button {
  border: 1px solid #4768d3;
  background: linear-gradient(180deg, #4c73e3, #3b5fc7);
  color: #f8fbff;
}

.dashboard-shell .secondary-button {
  border: 1px solid #313743;
  background: #20252f;
  color: #e8ecf5;
}

.dashboard-shell .primary-button:hover,
.dashboard-shell .secondary-button:hover {
  transform: none;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-stat-card,
.dashboard-module-card,
.dashboard-tool-card,
.dashboard-info-card,
.dashboard-count-pill,
.config-item,
.config-empty {
  border: 1px solid #2b313c;
  background: #1a1f28;
}

.dashboard-stat-card {
  padding: 16px;
  border-radius: 18px;
}

.dashboard-stat-label {
  display: block;
  color: var(--text-dim);
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-stat-value {
  display: block;
  margin-top: 12px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 22px;
  line-height: 1;
}

.dashboard-stat-text {
  margin: 10px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-module-card {
  overflow: hidden;
  border-radius: 18px;
}

.dashboard-module-media {
  aspect-ratio: 16 / 9;
  position: relative;
  background: #252b36;
}

.dashboard-module-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 36%);
}

.dashboard-module-media.tone-prematch {
  background:
    radial-gradient(circle at 22% 18%, rgba(82, 151, 255, 0.18), transparent 20%),
    linear-gradient(135deg, #293244 0%, #212935 100%);
}

.dashboard-module-media.tone-stats {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 140, 71, 0.18), transparent 22%),
    linear-gradient(135deg, #312a2d 0%, #242730 100%);
}

.dashboard-module-media.tone-compare {
  background:
    radial-gradient(circle at 48% 24%, rgba(117, 197, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #252b37 0%, #1d2129 100%);
}

.dashboard-module-media.tone-announce {
  background:
    radial-gradient(circle at 72% 20%, rgba(104, 152, 255, 0.16), transparent 20%),
    linear-gradient(135deg, #252c39 0%, #20242c 100%);
}

.dashboard-module-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.dashboard-module-tag {
  color: #7f8aa2;
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-module-body h3 {
  font-size: 20px;
  line-height: 1.08;
}

.dashboard-module-body p,
.dashboard-tool-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.module-link {
  appearance: none;
  border: none;
  background: transparent;
  color: #8fb7ff;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  justify-self: start;
}

.dashboard-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-tool-card {
  padding: 16px;
  border-radius: 18px;
  display: grid;
  gap: 14px;
}

.dashboard-tool-card-wide {
  grid-column: 1 / -1;
}

.dashboard-tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-tool-head span {
  color: var(--text-dim);
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dashboard-tool-head h3 {
  margin-top: 8px;
  font-size: 24px;
}

.dashboard-inline-grid {
  display: grid;
  gap: 12px;
}

.dashboard-inline-grid-double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-shell .field span {
  color: #bcc5d6;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-shell .field input,
.dashboard-shell .field select,
.dashboard-shell .field textarea {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #313743;
  background: #11151c;
  color: #f3f6fb;
}

.dashboard-shell .field textarea {
  min-height: 180px;
}

.dashboard-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-info-card {
  padding: 16px;
  border-radius: 18px;
}

.dashboard-count-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 12px;
}

.dashboard-shell .config-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
}

.dashboard-shell .config-editor,
.dashboard-shell .config-list-wrap {
  padding: 16px;
  border-radius: 18px;
}

.dashboard-shell .config-list {
  gap: 10px;
}

.dashboard-shell .config-item {
  padding: 14px;
  border-radius: 16px;
}

.dashboard-shell .config-item-actions button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #343b46;
  background: #232933;
}

.dashboard-shell .config-empty {
  padding: 16px;
  border-radius: 16px;
}

.dashboard-shell .settings-grid {
  margin-bottom: 14px;
}

.dashboard-shell .result-browser,
.dashboard-shell .result-image-wrap {
  border-radius: 18px;
  border: 1px solid #2d3440;
  background: #12171f;
}

.dashboard-shell .result-caption {
  border-radius: 16px;
  background: #171c24;
}

@media (max-width: 1240px) {
  .dashboard-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-compare-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar.sidebar {
    position: static;
    height: auto;
  }

  .dashboard-profile-hero {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dashboard-profile-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .dashboard-stat-grid,
  .dashboard-module-grid,
  .dashboard-tool-grid,
  .dashboard-profile-grid,
  .dashboard-shell .config-grid,
  .dashboard-inline-grid-double,
  .dashboard-shell .settings-grid,
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-compare-topline,
  .dashboard-compare-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-compare-source-right,
  .dashboard-compare-player {
    justify-content: flex-start;
    justify-items: stretch;
  }

  .dashboard-compare-topnote,
  .dashboard-compare-versus {
    text-align: left;
    justify-self: start;
  }

  .dashboard-compare-card {
    max-width: none;
  }

  .dashboard-compare-metric {
    grid-template-columns: 58px 1fr auto 1fr 58px;
    gap: 10px;
  }

  .dashboard-profile-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-avatar {
    width: 64px;
    height: 64px;
  }

  .dashboard-shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 10px;
  }

  .dashboard-panel {
    padding: 16px;
  }
}

.dashboard-overview {
  display: grid;
  gap: 22px;
}

.dashboard-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 16px;
}

.identity-card,
.command-radar,
.dash-stat,
.feed-card,
.history-row {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(160deg, rgba(24, 30, 42, 0.94), rgba(13, 17, 26, 0.92)),
    rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.identity-card {
  min-height: 100%;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 145, 84, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(25, 30, 42, 0.96), rgba(11, 15, 23, 0.94));
}

.identity-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.identity-avatar {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(121, 222, 255, 0.18), rgba(255, 145, 84, 0.22)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.identity-avatar span {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.identity-copy {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.identity-copy-head {
  display: grid;
  gap: 10px;
}

.identity-copy-head h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #eff4ff;
  font-size: 13px;
  font-weight: 700;
}

.command-radar {
  padding: 22px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at 82% 18%, rgba(121, 222, 255, 0.12), transparent 28%),
    linear-gradient(160deg, rgba(22, 28, 39, 0.98), rgba(12, 16, 24, 0.96));
}

.command-radar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.command-radar-head strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.radar-badge,
.card-badge {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.radar-stage {
  padding: 14px 0 6px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}

.radar-chart {
  width: 100%;
  height: auto;
  display: block;
}

.radar-legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.legend-dot.tone-orange {
  background: rgba(255, 143, 77, 0.92);
}

.legend-dot.tone-cyan {
  background: rgba(121, 222, 255, 0.9);
}

.legend-dot.tone-green {
  background: rgba(169, 255, 201, 0.82);
}

.radar-note,
.status-note {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.dash-stat {
  padding: 18px;
}

.dash-stat-label {
  display: block;
  color: var(--text-dim);
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dash-stat-value {
  display: block;
  margin-top: 14px;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1;
}

.dash-stat-copy {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.dashboard-feed {
  display: grid;
  gap: 20px;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feed-card {
  overflow: hidden;
}

.feed-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  background-color: #121824;
}

.feed-thumb::before,
.feed-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feed-thumb::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.64)),
    linear-gradient(130deg, rgba(255, 255, 255, 0.12), transparent 34%);
}

.feed-thumb::after {
  inset: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(11, 14, 22, 0.2);
}

.feed-thumb.tone-prematch {
  background:
    radial-gradient(circle at 18% 22%, rgba(121, 222, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #263040 0%, #1a202c 42%, #141922 100%);
}

.feed-thumb.tone-stats {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 145, 84, 0.2), transparent 24%),
    linear-gradient(135deg, #242d39 0%, #1a1f29 46%, #141920 100%);
}

.feed-thumb.tone-announce {
  background:
    radial-gradient(circle at 64% 20%, rgba(169, 255, 201, 0.16), transparent 22%),
    linear-gradient(135deg, #202835 0%, #151b25 46%, #0f141d 100%);
}

.feed-card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.feed-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: 700 10px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
}

.feed-card h3 {
  margin: 0;
  font-size: 22px;
}

.feed-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-dim);
  font-size: 12px;
}

.quick-history {
  display: grid;
  gap: 10px;
}

.history-row {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.history-row strong,
.profile-card-head strong {
  font-size: 20px;
}

.history-row .muted,
.profile-card-head .muted {
  margin: 6px 0 0;
}

.history-state {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 11px/1 "Sora", "Segoe UI", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-state.tone-ready {
  background: rgba(143, 228, 255, 0.1);
  color: var(--cyan);
}

.history-state.tone-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.history-meta {
  color: var(--text-dim);
  font-size: 12px;
}

.field-grow {
  flex: 1 1 220px;
}

.profile-card-highlight {
  background:
    radial-gradient(circle at 100% 0%, rgba(121, 222, 255, 0.1), transparent 34%),
    linear-gradient(160deg, rgba(24, 30, 42, 0.94), rgba(13, 17, 26, 0.92));
}

.profile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.result-stack {
  display: grid;
  gap: 16px;
}

@media (max-width: 1180px) {
  .dashboard-grid,
  .feed-grid,
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard-kpi-grid,
  .feed-grid {
    grid-template-columns: 1fr;
  }

  .history-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .identity-main,
  .profile-card-head {
    flex-direction: column;
  }

  .identity-avatar {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .identity-avatar span {
    font-size: 28px;
  }

  .dashboard-actions {
    width: 100%;
  }

  .dashboard-actions .primary-button,
  .dashboard-actions .secondary-button {
    flex: 1 1 220px;
  }
}

body:not(.auth-locked) .dashboard-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: block;
}

body:not(.auth-locked) .dashboard-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  height: 64px;
  padding: 0 18px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #2b313c;
  background:
    linear-gradient(180deg, rgba(34, 39, 48, 0.995), rgba(31, 36, 45, 0.995)),
    #21262f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

body.auth-locked .dashboard-topbar {
  display: none;
}

body:not(.auth-locked) .dashboard-topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.dashboard-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  flex: 0 0 auto;
}

body:not(.auth-locked) .dashboard-logo-topbar {
  width: 188px;
  height: auto;
}

body:not(.auth-locked) .dashboard-logo-sidebar {
  width: 168px;
  height: auto;
}

body:not(.auth-locked) .dashboard-topbar-account {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 14px;
}

body:not(.auth-locked) .dashboard-topbar-profile {
  appearance: none;
  border: 1px solid #394150;
  background:
    linear-gradient(180deg, rgba(50, 57, 70, 0.98), rgba(42, 48, 59, 0.98)),
    #2b303a;
  color: #eef3fb;
  min-width: 54px;
  min-height: 42px;
  padding: 4px 8px 4px 4px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.auth-locked) .dashboard-topbar-profile:hover {
  background:
    linear-gradient(180deg, rgba(55, 62, 76, 0.98), rgba(45, 51, 63, 0.98)),
    #303743;
  border-color: #4a5365;
}

body:not(.auth-locked) .dashboard-topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 1px solid #465062;
  background: linear-gradient(180deg, #4b5568, #3c4554);
  flex: 0 0 auto;
}

body:not(.auth-locked) .dashboard-topbar-avatar span {
  font: 800 13px/1 "Sora", "Segoe UI", sans-serif;
}

body:not(.auth-locked) .dashboard-topbar-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #9ba6bb;
  margin-top: 1px;
  transition: transform 0.18s ease, border-top-color 0.18s ease;
}

body:not(.auth-locked) .dashboard-topbar-profile[aria-expanded="true"] .dashboard-topbar-caret {
  transform: rotate(180deg);
  border-top-color: #eef3fb;
}

.dashboard-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.dashboard-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

body:not(.auth-locked) .dashboard-topbar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid #313846;
  background:
    linear-gradient(180deg, rgba(24, 28, 36, 0.995), rgba(19, 23, 30, 0.995)),
    #181c23;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

body:not(.auth-locked) .dashboard-topbar-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #1b2028;
  border-left: 1px solid #313846;
  border-top: 1px solid #313846;
  transform: rotate(45deg);
}

body:not(.auth-locked) .dashboard-topbar-menu-item {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #edf2fb;
  display: flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

body:not(.auth-locked) .dashboard-topbar-menu-item:hover {
  background: #252b35;
  border-color: #343c49;
}

body:not(.auth-locked) .dashboard-topbar-menu-item-danger {
  margin-top: 8px;
  color: #ff7d8e;
  background: rgba(110, 34, 47, 0.18);
  border-color: rgba(154, 56, 73, 0.22);
}

body:not(.auth-locked) .dashboard-topbar-menu-item-danger:only-child {
  margin-top: 0;
}

body:not(.auth-locked) .dashboard-topbar-menu-item-danger:hover {
  background: rgba(128, 40, 55, 0.28);
  border-color: rgba(171, 63, 82, 0.3);
}

body:not(.auth-locked) .dashboard-sidebar.sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  z-index: 8;
  width: 284px;
  height: calc(100svh - 64px);
  padding: 18px 16px 20px;
  gap: 18px;
  border-left: none;
  border-top: none;
  border-bottom: none;
  border-radius: 0 24px 24px 0;
  background:
    linear-gradient(180deg, rgba(27, 31, 39, 0.995), rgba(22, 26, 33, 0.995)),
    #1a1e26;
  box-shadow:
    18px 0 44px rgba(0, 0, 0, 0.26),
    inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

body:not(.auth-locked) .dashboard-main.workspace {
  width: auto;
  max-width: none;
  min-height: 100svh;
  margin-left: 284px;
  margin-right: 0;
  padding: 82px 24px 40px;
  gap: 16px;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-brand-block {
  display: none;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-sidebar-copy {
  gap: 10px;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-sidebar-text {
  font-size: 13px;
  line-height: 1.55;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-nav {
  gap: 16px;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-nav-group {
  gap: 7px;
}

body:not(.auth-locked) .dashboard-sidebar .dashboard-nav-label {
  color: #7a8499;
}

body:not(.auth-locked) .dashboard-sidebar .nav-link {
  position: relative;
  min-height: 44px;
  padding: 11px 14px 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #242a34;
  color: #c5cede;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

body:not(.auth-locked) .dashboard-sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

body:not(.auth-locked) .dashboard-sidebar .nav-link:hover {
  color: #eef3fb;
  background: #2a303b;
  border-color: #353d49;
}

body:not(.auth-locked) .dashboard-sidebar .nav-link.active {
  color: #f7faff;
  background: linear-gradient(180deg, #2e3440, #292f39);
  border-color: #3b4452;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body:not(.auth-locked) .dashboard-sidebar .nav-link.active::before {
  background: linear-gradient(180deg, #ff9a4d, #ff7d3a);
}

body:not(.auth-locked) .dashboard-session {
  padding: 14px;
  border-radius: 16px;
  background: #1f242d;
  border-color: #313844;
  gap: 12px;
}

body:not(.auth-locked) .dashboard-session strong {
  font-size: 18px;
}

body:not(.auth-locked) .dashboard-session .session-actions {
  display: block;
}

body:not(.auth-locked) .dashboard-session .secondary-button {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #3a4352;
  background: linear-gradient(180deg, #2b3443, #242c38);
  color: #f2f6fd;
}

body:not(.auth-locked) .dashboard-session .secondary-button:hover {
  background: linear-gradient(180deg, #303a4b, #27303d);
}

body:not(.auth-locked) .dashboard-session .dashboard-logout {
  color: #8db8ff;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  body:not(.auth-locked) .dashboard-topbar {
    position: static;
    height: auto;
    margin: 10px 8px 0;
    border: 1px solid #2a2f39;
    border-radius: 16px;
    box-shadow: none;
  }

  body:not(.auth-locked) .dashboard-shell {
    width: min(100%, calc(100% - 16px));
    margin: 0 auto;
    padding: 10px 0 24px;
    display: grid;
  }

  body:not(.auth-locked) .dashboard-sidebar.sidebar {
    position: static;
    width: auto;
    height: auto;
    border: 1px solid #2a2f39;
    border-radius: 20px;
    box-shadow: none;
  }

  body:not(.auth-locked) .dashboard-sidebar .dashboard-brand-block {
    display: grid;
    gap: 6px;
  }

  body:not(.auth-locked) .dashboard-main.workspace {
    width: auto;
    max-width: none;
    margin-left: 0;
    padding: 0;
  }

  .dashboard-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-stats-grid > :first-child {
    grid-column: 1 / -1;
  }
}
