:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #f5eeee;
  --ink: #241919;
  --muted: #776565;
  --line: #eadcdc;
  --navy: #2b0b0b;
  --navy-2: #5b1112;
  --blue: #c61e1e;
  --blue-dark: #991315;
  --blue-soft: #fae8e8;
  --green: #138a5b;
  --green-soft: #e7f8f1;
  --red: #c61e1e;
  --red-soft: #fff0f0;
  --yellow: #a56a00;
  --yellow-soft: #fff7dc;
  --radius: 18px;
  --shadow: 0 12px 38px rgba(87, 22, 22, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; }
p { margin: .65rem 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.main { min-height: 58vh; padding: 48px 0 72px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; font-weight: 950; letter-spacing: .045em; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand-name { color: #9b1516; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links > a { color: #4d3030; font-weight: 800; }
.nav-links > a:hover { color: var(--blue); text-decoration: none; }
.nav-links form { margin: 0; }
.mobile-menu {
  display: none;
  color: #7d1718;
  background: #fff5f5;
  border: 1px solid #e3bbbb;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 800;
}

.button, .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button { color: white; background: var(--blue); box-shadow: 0 8px 20px rgba(198,30,30,.20); }
.button:hover { color: white; background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); box-shadow: none; }
.topbar .btn-secondary { color: #6d2020; background: white; border-color: #e2c9c9; }
.dark .btn-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.btn-secondary:hover { text-decoration: none; border-color: #d4a8a8; transform: translateY(-1px); }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: #f1c5cb; }
.btn-danger:hover { text-decoration: none; border-color: var(--red); }

.hero {
  position: relative;
  color: white;
  background:
    linear-gradient(135deg, rgba(92,12,13,.96), rgba(198,30,30,.96)),
    #9b1516;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -7%;
  bottom: -45%;
  width: 56%;
  aspect-ratio: 1;
  background: rgba(255,255,255,.09);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: center; padding: 76px 0; }
.hero h1 { color: white; margin: 15px 0 20px; font-size: clamp(3.1rem, 8vw, 6.2rem); letter-spacing: -.065em; }
.hero p { max-width: 700px; color: #ffeaea; font-size: 1.16rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff4f4;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scoreboard {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(45,5,6,.48);
  box-shadow: 0 26px 65px rgba(0,0,0,.25);
}
.scoreboard .muted { color: #f2caca; }
.scoreboard .score-row { border-color: rgba(255,255,255,.14); }
.scoreboard b, .scoreboard .score-big { color: white; }
.score-big { font-size: 2.6rem; font-weight: 950; letter-spacing: -.055em; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  padding: 24px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
a.card:hover { text-decoration: none; border-color: #dcb7b7; transform: translateY(-1px); }
.card.dark, .dark { color: #e7f1ff; background: var(--navy); border-color: #244361; }
.dark h1, .dark h2, .dark h3, .dark b { color: white; }
.dark .muted { color: #a9bfd5; }
.card.premium { position: relative; border: 2px solid var(--blue); }
.card.premium::before {
  content: "Популярный";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: var(--blue);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.exam-card { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; }
.exam-card .button { margin-top: auto; }
.exam-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #075abf;
  background: var(--blue-soft);
  font-size: .78rem;
  font-weight: 850;
}
.chip.gray { color: #53677d; background: #edf2f7; }
.metric { margin-top: 5px; font-size: 2.45rem; font-weight: 950; letter-spacing: -.05em; }
.price { margin: .5rem 0; color: var(--blue-dark); font-size: 2.55rem; font-weight: 950; letter-spacing: -.055em; }
.muted { color: var(--muted); }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-title h1, .section-title h2, .section-title p { margin-bottom: 0; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.score-row:last-child { border-bottom: 0; }
.clean-list { margin: 18px 0 24px; padding: 0; list-style: none; }
.clean-list li { position: relative; padding: 7px 0 7px 28px; }
.clean-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 950; }

.form-card { width: min(100%, 680px); margin-inline: auto; }
.form-row { margin: 0 0 18px; }
.form-row > label, .form-row > b { display: block; margin-bottom: 7px; font-weight: 800; }
.form-control,
.form-card input[type=email], .form-card input[type=password], .form-card input[type=text],
.form-card input[type=number], .form-card input[type=file], .form-card select, .form-card textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbc8c8;
  border-radius: 11px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
  outline: none;
}
textarea.form-control, .form-card textarea { min-height: 112px; resize: vertical; }
.form-control:focus, .form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(198,30,30,.12);
}
.form-card input[type=checkbox], input[type=checkbox], input[type=radio] { width: auto; min-height: auto; accent-color: var(--blue); }
.form-card small { display: block; margin-top: 5px; }
.errorlist { margin: 7px 0 0; padding-left: 20px; color: var(--red); font-weight: 700; }

.messages { padding-top: 16px; }
.message, .notice {
  padding: 14px 17px;
  border: 1px solid #e8c5c5;
  border-radius: 13px;
  color: #78191a;
  background: #fff1f1;
}
.locked { margin-top: 16px; padding: 15px; border: 1px dashed #e0b757; border-radius: 13px; background: var(--yellow-soft); }
.solution { margin-top: 16px; padding: 18px; border-left: 4px solid var(--green); border-radius: 0 13px 13px 0; background: var(--green-soft); }

.question { margin-bottom: 18px; scroll-margin-top: 92px; }
.question-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.question-head h3 { margin-bottom: 14px; }
.answer-status { margin-top: 10px; color: var(--green); font-size: .82rem; font-weight: 800; }
.timer {
  min-width: 152px;
  border-radius: 13px;
  padding: 10px 16px;
  color: white;
  background: var(--navy);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  font-weight: 950;
  text-align: center;
  letter-spacing: .04em;
}
.sticky-exam { position: sticky; top: 96px; }
.sticky-exam .chip { min-width: 38px; justify-content: center; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { color: #765252; background: var(--surface-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

.chat { display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: min(82%, 720px); padding: 13px 15px; border-radius: 15px 15px 15px 4px; background: #edf3f8; }
.bubble.mine { align-self: flex-end; border-radius: 15px 15px 4px 15px; background: var(--blue-soft); }
.bubble small { display: block; margin-top: 7px; }

.auth-section { display: grid; min-height: 48vh; place-items: center; }
.empty-state { width: min(100%, 620px); padding: 44px; text-align: center; }
.empty-state h1 { font-size: 5rem; margin-bottom: 8px; }

.footer { color: #e9caca; background: #310808; padding: 48px 0; }
.footer .brand { color: white; }
.footer a { color: #fff0f0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 42px; }
.footer p { margin: 8px 0; }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .scoreboard { max-width: 640px; }
}

@media (max-width: 820px) {
  .mobile-menu { display: block; }
  .nav { position: relative; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e7cccc;
    border-radius: 15px;
    flex-direction: column;
    align-items: stretch;
    z-index: 40;
    box-shadow: 0 18px 35px rgba(86,22,22,.18);
  }
  .nav-links.open a, .nav-links.open form, .nav-links.open button { width: 100%; }
  .topbar .container { width: min(100% - 22px, 1160px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1160px); }
  .main { padding: 34px 0 56px; }
  .hero-grid { padding: 55px 0; gap: 32px; }
  .hero h1 { font-size: clamp(2.8rem, 16vw, 4.5rem); }
  .grid, .grid-2 { grid-template-columns: 1fr !important; }
  .card { padding: 19px; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .section-title .button, .section-title .btn { width: 100%; }
  .timer { width: 100%; }
  .sticky-exam { position: static; }
  .bubble { max-width: 95%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
}


/* Arena brand additions */
.admin-link { color: var(--blue) !important; }
.red-eyebrow { color: #9b1516; background: #f9e7e7; border-color: #e6bcbc; }
.footer-brand .brand-logo { filter: brightness(0) invert(1); opacity: .95; }
.section-title.compact { margin-bottom: 14px; }
.wide-button { width: 100%; }
.checkbox-row { margin: 14px 0; }
.checkbox-label { display: flex !important; gap: 10px; align-items: flex-start; cursor: pointer; }
.checkbox-label input { margin-top: 5px; accent-color: var(--blue); }
.checkout-card { border-top: 5px solid var(--blue); }
.payment-steps { display: grid; gap: 11px; margin: 22px 0; }
.payment-steps > div { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: center; }
.payment-steps b { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--blue); }
.form-error { min-height: 24px; margin-top: 8px; color: var(--red); font-weight: 750; }

.lesson-video { display: block; width: min(100%, 960px); max-height: 620px; margin-top: 14px; border-radius: 16px; background: #130303; }
.full-review-card { margin: 24px 0; border-top: 4px solid var(--blue); }
.video-block { margin-top: 18px; }
.result-list { display: grid; gap: 18px; margin-top: 24px; }

.live-chat-shell { padding: 0; overflow: hidden; }
.live-chat-shell .chat { min-height: 360px; max-height: 62vh; overflow-y: auto; padding: 22px; background: linear-gradient(#fff, #fffafa); }
.chat-composer { margin-top: 16px; }
.chat-state { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 800; color: var(--muted); }
.chat-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b69f9f; }
.chat-state[data-kind="online"]::before { background: #1b9b68; box-shadow: 0 0 0 4px rgba(27,155,104,.12); }
.chat-state[data-kind="offline"]::before { background: #d36b6b; }
.typing-state { min-height: 30px; padding: 4px 22px 10px; color: var(--muted); background: #fffafa; font-size: .88rem; }
.bubble { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #eadede; }
.bubble.mine { background: #fbe6e6; border-color: #efc6c6; }
.bubble-text { margin-top: 4px; }
.attachment-link { display: inline-flex; margin-top: 10px; font-weight: 800; }
.composer-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.file-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid #dbbcbc; border-radius: 11px; background: #fff8f8; color: #7d191a; font-weight: 800; cursor: pointer; }
.file-button:hover { border-color: var(--blue); }
.composer-row .button { margin-left: auto; }
.chat-help { margin-bottom: 0; font-size: .86rem; }
.empty-chat { padding: 70px 20px; text-align: center; }

@media (max-width: 820px) {
  .nav-links.open a { color: #4d3030; }
  .nav-links.open .btn-secondary { color: #6d2020; }
}
@media (max-width: 680px) {
  .brand-name { font-size: .9rem; }
  .brand-logo { width: 36px; height: 36px; }
  .composer-row { align-items: stretch; }
  .composer-row .button { width: 100%; margin-left: 0; }
  .live-chat-shell .chat { max-height: 58vh; padding: 15px; }
}

.admin-actions { margin: 36px 0; }
.action-card { display: flex; min-height: 128px; flex-direction: column; justify-content: center; gap: 7px; border-left: 4px solid var(--blue); }
.action-card:hover { text-decoration: none; border-color: var(--blue); }
.admin-columns { margin-top: 28px; }
.hero-primary { color: #9b1516; background: white; box-shadow: 0 8px 20px rgba(44,5,5,.18); }
.hero-primary:hover { color: white; background: #3c0909; }
.hero p { color: #ffeaea; }
.scoreboard .muted { color: #f2caca; }
.button { box-shadow: 0 8px 20px rgba(198,30,30,.2); }
.chip { color: #961719; background: #fae8e8; }
.card.dark, .dark { color: #fff3f3; background: var(--navy); border-color: #692223; }
.dark .muted { color: #ddbaba; }
.btn-secondary:hover { border-color: #d4a8a8; }
a.card:hover { border-color: #dcb7b7; }
.form-control:focus, .form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(198,30,30,.12);
}


/* Public launch and mobile app */
.announcement-bar { padding: 8px 16px; color: #fff; background: #4b0b0c; text-align: center; font-size: .9rem; font-weight: 800; }
.spacer-lg { height: 40px; }
.install-app-button[hidden] { display: none !important; }
.launch-card { margin-bottom: 24px; border-top: 5px solid #c88700; }
.launch-card.launch-ready { border-top-color: var(--green); }
.status-pill { display: inline-flex; border-radius: 999px; padding: 6px 11px; color: #7a4d00; background: var(--yellow-soft); font-weight: 900; }
.launch-ready .status-pill { color: #0b7148; background: var(--green-soft); }
.launch-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 20px; margin: 18px 0; }
.launch-check { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; }
.check-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #7a4d00; background: var(--yellow-soft); font-weight: 950; }
.check-icon.ok { color: #fff; background: var(--green); }
.launch-links { margin-top: 18px; }
.legal-document { width: min(100%, 900px); margin-inline: auto; }
.legal-document h2 { margin-top: 32px; font-size: 1.3rem; }
.offline-logo { width: 100px; margin-bottom: 18px; }
@media (max-width:680px) {
  .launch-checks { grid-template-columns: 1fr; }
  .legal-document { padding: 20px; }
  .announcement-bar { font-size: .82rem; }
}

/* Owner studio */
.studio-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -18px 0 30px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  scrollbar-width: thin;
}
.studio-nav a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 800;
}
.studio-nav a:hover, .studio-nav a.active { color: white; background: var(--blue); text-decoration: none; }
.studio-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 34px; }
.studio-metrics .card { padding: 19px; box-shadow: none; }
.studio-metrics .metric { font-size: 2rem; }
.studio-shortcuts { margin: 38px 0; }
.studio-columns { margin: 26px 0; }
.studio-list { display: grid; gap: 14px; }
.studio-list-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.studio-list-main { min-width: 0; }
.studio-list-main h2 { margin: 10px 0 5px; font-size: 1.35rem; }
.studio-list-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.studio-list-actions form { margin: 0; }
.studio-form { max-width: 1040px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.studio-editor { display: grid; gap: 24px; }
.studio-questions { display: grid; gap: 15px; }
.question-editor { position: relative; box-shadow: none; }
.question-editor[hidden] { display: none; }
.sticky-save { position: sticky; bottom: 16px; z-index: 20; display: flex; gap: 10px; width: fit-content; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.filter-bar { margin-bottom: 18px; padding: 16px; box-shadow: none; }
.filter-fields { display: flex; align-items: flex-end; gap: 12px; }
.filter-fields > * { flex: 1 1 180px; margin: 0; }
.filter-fields button { flex: 0 0 auto; }
.status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #6f3a3a; background: #f5e8e8; font-size: .75rem; font-weight: 850; }
.status-pill.ok { color: #08633f; background: var(--green-soft); }
.section-title.compact { align-items: center; margin-bottom: 15px; }
.section-title.compact h2, .section-title.compact h3 { margin: 0; }
.studio-table { width: 100%; border-collapse: collapse; }
.studio-table th, .studio-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.studio-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.text-right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.video-admin-card { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; box-shadow: none; }
.video-placeholder { display: grid; min-height: 100px; place-items: center; overflow: hidden; border-radius: 13px; color: white; background: var(--navy); font-size: 2rem; }
.video-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.plan-admin-card { box-shadow: none; }
.plan-admin-card.highlighted { border: 2px solid var(--blue); }
.full { width: 100%; }
.topic-stat { margin-bottom: 16px; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: #efe3e3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }

@media (max-width: 1040px) {
  .studio-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .studio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-list-item { align-items: flex-start; flex-direction: column; }
  .studio-list-actions { width: 100%; justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .filter-fields { align-items: stretch; flex-direction: column; }
  .filter-fields > * { width: 100%; flex-basis: auto; }
  .video-admin-card { grid-template-columns: 1fr; }
  .sticky-save { width: 100%; bottom: 8px; }
  .sticky-save > * { flex: 1; }
}
.video-public-card { display: grid; grid-template-columns: 190px 1fr; gap: 22px; align-items: center; box-shadow: none; }
@media (max-width: 680px) { .video-public-card { grid-template-columns: 1fr; } }
.notification-list { display: grid; gap: 12px; }
.notification-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: none; }
.notification-item h2 { margin: 10px 0 4px; font-size: 1.15rem; }
.notification-item.unread { border-left: 5px solid var(--blue); background: #fffafa; }
.nav-notification { position: relative; }
.nav-notification .count { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 4px; border-radius: 999px; color: white; background: var(--blue); font-size: .68rem; }
.copy-field { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fffafa; }
.copy-field code { min-width: 0; overflow-wrap: anywhere; }
.copy-field button { flex: 0 0 auto; }
.launch-steps li { margin: 10px 0; }
.answer-actions { margin: 14px 0; }

/* Quality reports and detail views */
.studio-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin-bottom: 18px; box-shadow: none; }
.studio-filter label { flex: 1 1 220px; font-weight: 800; }
.studio-filter .button, .studio-filter .btn { flex: 0 0 auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.studio-two-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 22px; align-items: start; }
.prose-card h2:not(:first-child) { margin-top: 32px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.detail-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.detail-grid div { padding: 12px; border-radius: 12px; background: var(--surface-soft); }
.detail-grid dt { color: var(--muted); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.detail-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 750; }
.message-box, .question-prompt { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fffafa; overflow-wrap: anywhere; }
.question-image { display: block; max-height: 560px; margin: 12px auto; object-fit: contain; border-radius: 12px; }
.stack-form { display: grid; gap: 16px; }
.stack-form > label { display: grid; gap: 7px; font-weight: 800; }
.help-text { color: var(--muted); font-size: .84rem; font-weight: 400; }
.field-error, .form-error { color: var(--red); font-size: .88rem; font-weight: 750; }
.text-link { font-weight: 850; }
.small { font-size: .86rem; }
.status-new { color: #8a5200; background: var(--yellow-soft); }
.status-in_progress { color: #7d191a; background: var(--blue-soft); }
.status-resolved { color: #08633f; background: var(--green-soft); }
.status-rejected { color: #59616b; background: #edf1f4; }
@media (max-width: 820px) {
  .studio-two-columns { grid-template-columns: 1fr; }
  .detail-grid.compact { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .studio-filter { align-items: stretch; flex-direction: column; }
  .studio-filter > * { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
}
.subject-symbol { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: white; background: var(--navy); font-size: 1.2rem; font-weight: 950; }
