:root {
  --bg-body: #eef4ff;
  --panel-bg: #ffffff;
  --text-main: #0f172a;
  --text-soft: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --sky: #0284c7;
  --mint: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;
  --line: #e2e8f0;
  --success: #059669;
  --warning-bg: #fffbeb;
  --warning-line: #fde68a;
  --radius: 16px;
  --shadow: 0 18px 42px rgba(79, 70, 229, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.10) 0%, rgba(14, 165, 233, 0.08) 38%, rgba(16, 185, 129, 0.08) 100%),
    var(--bg-body);
  color: var(--text-main);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: 100%;
  padding: 20px;
}

.control-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  background: var(--panel-bg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}

body.embed-mode {
  min-height: auto;
  background: transparent;
}

body.embed-mode .page-shell {
  padding: 0;
}

body.embed-mode .control-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.embed-mode .panel-header,
body.embed-mode .exam-switch {
  display: none;
}

body.embed-mode .workspace-grid {
  gap: 18px;
}

body.embed-mode .results-card {
  position: static;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4f46e5 0%, #0284c7 52%, #10b981 100%);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: 0;
}

.panel-header h1 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.24);
}

.header-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1rem;
}

.tools-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: 0.2s ease;
}

.tools-link:hover,
.tools-link:focus-visible {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
}

.exam-switch {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.exam-tab[data-exam="lgs"] {
  --tab-color: #0284c7;
  --tab-bg-hover: #f0f9ff;
  --tab-border: #bae6fd;
}
.exam-tab[data-exam="iokbs"] {
  --tab-color: #059669;
  --tab-bg-hover: #ecfdf5;
  --tab-border: #a7f3d0;
}
.exam-tab[data-exam="kpss"] {
  --tab-color: #db2777;
  --tab-bg-hover: #fdf2f8;
  --tab-border: #fbcfe8;
}
.exam-tab[data-exam="yks"] {
  --tab-color: #7c3aed;
  --tab-bg-hover: #f5f3ff;
  --tab-border: #ddd6fe;
}

.exam-tab {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 8px;
  font-size: 0.9rem;
  border: 1px solid var(--tab-border, #cbd5e1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04);
  color: #475569;
  cursor: pointer;
  font-weight: 800;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exam-tab:hover:not(.active) {
  background: var(--tab-bg-hover, #f8fafc);
  border-color: var(--tab-color, #94a3b8);
  color: var(--tab-color, #1e293b);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.exam-tab.active {
  background: var(--tab-color, linear-gradient(135deg, #4f46e5 0%, #0284c7 100%));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.calculator-card,
.results-card {
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.calculator-card {
  padding: 20px;
}

.results-card {
  position: sticky;
  top: 20px;
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 1.2rem;
  font-weight: 900;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.clear-button {
  align-self: start;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
  transition: 0.2s ease;
}

.clear-button:hover,
.clear-button:focus-visible {
  border-color: var(--primary);
  background: #e0e7ff;
  outline: none;
}

.auto-calc-indicator {
  align-self: start;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.92);
  color: #047857;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.10);
}

.auto-calc-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36);
  animation: autoCalcPulse 1.55s ease-out infinite;
}

@keyframes autoCalcPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36);
  }
  72% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.input-group {
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transition: 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.input-group input,
.input-group select {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
}

.subjects {
  display: grid;
  gap: 12px;
}

.yks-entry-groups {
  display: grid;
  gap: 14px;
}

.yks-subject-group {
  --group-accent: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  overflow: hidden;
}

.yks-subject-group[data-tone="tyt"] {
  --group-accent: #7c3aed;
}

.yks-subject-group[data-tone="ayt"] {
  --group-accent: #0284c7;
}

.yks-subject-group[data-tone="ydt"] {
  --group-accent: #059669;
}

.yks-fixed-group {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(2, 132, 199, 0.08) 100%),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 26px rgba(76, 29, 149, 0.08);
}

.yks-collapsible-group {
  background: rgba(255, 255, 255, 0.58);
}

.yks-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-left: 6px solid var(--group-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--group-accent) 13%, #ffffff) 0%, rgba(255, 255, 255, 0.72) 100%);
}

summary.yks-group-header {
  cursor: pointer;
  list-style: none;
}

summary.yks-group-header::-webkit-details-marker {
  display: none;
}

.yks-group-title {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.yks-group-title span {
  color: var(--group-accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.yks-group-title strong {
  color: #111827;
  font-size: 1.08rem;
  font-weight: 950;
}

.yks-group-title em {
  color: #475569;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 700;
}

.yks-group-meta {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.yks-accordion-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  position: relative;
}

.yks-accordion-icon::before,
.yks-accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: var(--group-accent);
  transform: translate(-50%, -50%);
}

.yks-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.yks-collapsible-group[open] .yks-accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.yks-group-subjects {
  padding: 14px;
}

.subject-card {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #dbe4f0;
  border-left: 6px solid var(--subject-accent, var(--primary));
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subject-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.subject-card:nth-child(6n+1) {
  --subject-accent: #4f46e5;
}

.subject-card:nth-child(6n+2) {
  --subject-accent: #0284c7;
}

.subject-card:nth-child(6n+3) {
  --subject-accent: #10b981;
}

.subject-card:nth-child(6n+4) {
  --subject-accent: #f59e0b;
}

.subject-card:nth-child(6n+5) {
  --subject-accent: #e11d48;
}

.subject-card:nth-child(6n+6) {
  --subject-accent: #7c3aed;
}

.subject-title strong,
.metric strong {
  display: block;
}

.subject-title span,
.metric span {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-input {
  min-width: 0;
}

.subject-title {
  flex: 0 0 180px;
  width: 180px;
  margin-bottom: 2px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mini-input {
  flex: 1 1 0px;
  min-width: 0;
}

.mini-input label {
  display: block;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.mini-input input {
  width: 100%;
  height: 64px;
  padding: 0;
  border: 2px solid #dbe4f0;
  border-radius: 12px;
  outline: none;
  background: #f8fafc;
  color: var(--text-main);
  text-align: center;
  font-weight: 900;
  font-size: 1.25rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.mini-input input:focus {
  border-color: var(--subject-accent, var(--primary));
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.metric-box {
  width: 100%;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #ebf0f5;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.metric-box strong {
  font-size: 1.25rem;
}

.result-grid {
  display: grid;
  gap: 10px;
}

.result-item {
  padding: 13px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.result-item.highlight {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 58%, #ecfdf5 100%);
}

.result-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-value {
  display: block;
  margin-top: 5px;
  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 900;
}

.result-value.success {
  color: var(--success);
}

.yearly-result-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: end;
  margin-top: 5px;
}

.yearly-result .result-value {
  margin-top: 0;
}

.result-note {
  display: block;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
}

/* Past Years Cards */
.yearly-results-header {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 12px;
}

.yearly-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yearly-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yearly-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.05);
}

.yearly-card.highlight-year {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}
.yearly-card.highlight-year::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
}

.yearly-card.standard-year {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}
.yearly-card.standard-year::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--text-soft);
}

.yearly-year-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.yearly-card.highlight-year .yearly-year-badge {
  color: var(--primary);
  background: var(--primary-soft);
}

.yearly-scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.score-col {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.score-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.primary-score .score-val {
  color: var(--primary);
  font-size: 1.3rem;
}

.yks-net-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.yks-net-item {
  --net-tone: #7c3aed;
  padding: 12px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.80) 0%, rgba(248, 247, 255, 0.92) 100%);
  box-shadow: 0 8px 16px rgba(76, 29, 149, 0.05);
  position: relative;
  overflow: hidden;
}

.yks-net-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--net-tone);
}

.yks-net-item[data-tone="tyt"] {
  --net-tone: #7c3aed;
  grid-column: 1 / -1;
}

.yks-net-item[data-tone="say"] {
  --net-tone: #0284c7;
}

.yks-net-item[data-tone="ea"] {
  --net-tone: #7c3aed;
}

.yks-net-item[data-tone="soz"] {
  --net-tone: #db2777;
}

.yks-net-item[data-tone="dil"] {
  --net-tone: #059669;
}

.yks-net-item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.2;
}

.yks-net-item strong {
  display: block;
  margin-top: 4px;
  color: #1e1b4b;
  font-size: 1.22rem;
  font-weight: 900;
}

.yks-score-sections {
  display: grid;
  gap: 14px;
}

.yks-score-section {
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.yks-score-title {
  padding: 10px 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 900;
}

.yks-score-table {
  width: 100%;
  border-collapse: collapse;
}

.yks-score-table th,
.yks-score-table td {
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  text-align: right;
  font-size: 0.88rem;
}

.yks-score-table th:first-child {
  text-align: left;
}

.yks-score-table thead th {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.yks-score-table tbody th,
.yks-score-table tbody td:last-child {
  font-weight: 900;
}

body[data-active-exam] {
  --exam-accent-rgb: 79 70 229;
  --exam-second-rgb: 14 165 233;
  --exam-third-rgb: 16 185 129;
  --exam-bg-body: #dbe7f6;
  --exam-panel-end: 238 249 247;
  --exam-card-border-rgb: var(--exam-accent-rgb);
  --exam-results-border-rgb: var(--exam-second-rgb);
  --exam-card-shadow-rgb: var(--exam-accent-rgb);
  --exam-results-shadow-rgb: var(--exam-second-rgb);
  --exam-left-tint-rgb: 238 242 255;
  --exam-left-deep-rgb: 224 231 255;
  --exam-right-tint-rgb: 219 234 254;
  --exam-right-deep-rgb: 191 219 254;
  --exam-input-bg: #f3f5fb;
  --bg-body: var(--exam-bg-body);
  --panel-bg: #ffffff;
  --shadow: 0 30px 72px rgb(var(--exam-card-shadow-rgb) / 0.22);
  background:
    radial-gradient(circle at 7% 10%, rgb(var(--exam-accent-rgb) / 0.28) 0, rgb(var(--exam-accent-rgb) / 0) 34%),
    radial-gradient(circle at 92% 8%, rgb(var(--exam-second-rgb) / 0.22) 0, rgb(var(--exam-second-rgb) / 0) 32%),
    linear-gradient(135deg, rgb(var(--exam-accent-rgb) / 0.20) 0%, rgb(var(--exam-second-rgb) / 0.15) 48%, rgb(var(--exam-third-rgb) / 0.13) 100%),
    var(--bg-body);
}

body[data-active-exam="lgs"] {
  --exam-accent-rgb: 2 132 199;
  --exam-second-rgb: 79 70 229;
  --exam-third-rgb: 16 185 129;
  --exam-bg-body: #dbeafe;
  --exam-panel-end: 236 253 245;
  --exam-left-tint-rgb: 239 246 255;
  --exam-left-deep-rgb: 219 234 254;
  --exam-right-tint-rgb: 224 242 254;
  --exam-right-deep-rgb: 186 230 253;
}

body[data-active-exam="yks"] {
  --exam-accent-rgb: 124 58 237;
  --exam-second-rgb: 2 132 199;
  --exam-third-rgb: 16 185 129;
  --exam-bg-body: #dbe7f6;
  --exam-panel-end: 238 249 247;
  --exam-left-tint-rgb: 245 243 255;
  --exam-left-deep-rgb: 237 233 254;
  --exam-right-tint-rgb: 224 242 254;
  --exam-right-deep-rgb: 186 230 253;
}

body[data-active-exam="kpss"] {
  --exam-accent-rgb: 219 39 119;
  --exam-second-rgb: 124 58 237;
  --exam-third-rgb: 2 132 199;
  --exam-bg-body: #f3e8f2;
  --exam-panel-end: 239 246 255;
  --exam-left-tint-rgb: 253 242 248;
  --exam-left-deep-rgb: 252 231 243;
  --exam-right-tint-rgb: 250 232 255;
  --exam-right-deep-rgb: 243 232 255;
}

body[data-active-exam="iokbs"] {
  --exam-accent-rgb: 5 150 105;
  --exam-second-rgb: 2 132 199;
  --exam-third-rgb: 245 158 11;
  --exam-bg-body: #dff3ea;
  --exam-panel-end: 239 246 255;
  --exam-left-tint-rgb: 236 253 245;
  --exam-left-deep-rgb: 209 250 229;
  --exam-right-tint-rgb: 207 250 254;
  --exam-right-deep-rgb: 186 230 253;
}

body[data-active-exam] .control-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.97) 44%, rgb(var(--exam-panel-end) / 0.96) 100%);
  border-color: rgb(var(--exam-accent-rgb) / 0.28);
  box-shadow:
    0 34px 86px rgb(var(--exam-card-shadow-rgb) / 0.22),
    0 10px 26px rgb(var(--exam-results-shadow-rgb) / 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

body[data-active-exam] .exam-switch {
  background:
    linear-gradient(135deg, rgb(var(--exam-accent-rgb) / 0.16) 0%, rgb(var(--exam-second-rgb) / 0.13) 52%, rgb(var(--exam-third-rgb) / 0.12) 100%);
  border-color: rgb(var(--exam-accent-rgb) / 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgb(var(--exam-second-rgb) / 0.12);
}

body[data-active-exam] .calculator-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.58) 100%),
    linear-gradient(135deg, rgb(var(--exam-left-tint-rgb) / 0.95) 0%, rgb(var(--exam-left-deep-rgb) / 0.82) 100%),
    #ffffff;
  border-color: rgb(var(--exam-card-border-rgb) / 0.36);
  box-shadow:
    0 22px 44px rgb(var(--exam-card-shadow-rgb) / 0.17),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

body[data-active-exam] .results-card {
  background:
    linear-gradient(180deg, rgb(var(--exam-right-tint-rgb) / 0.98) 0%, rgb(var(--exam-right-deep-rgb) / 0.88) 100%),
    linear-gradient(135deg, rgb(var(--exam-second-rgb) / 0.20) 0%, rgb(var(--exam-accent-rgb) / 0.12) 100%),
    #ffffff;
  border-color: rgb(var(--exam-results-border-rgb) / 0.46);
  box-shadow:
    0 22px 44px rgb(var(--exam-results-shadow-rgb) / 0.20),
    0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

body[data-active-exam] .results-card .result-item,
body[data-active-exam] .results-card .yearly-card,
body[data-active-exam] .results-card .yks-net-item,
body[data-active-exam] .results-card .yks-score-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.70) 100%);
  border-color: rgb(var(--exam-results-border-rgb) / 0.24);
}

body[data-active-exam] .results-card .result-item.highlight {
  background:
    linear-gradient(135deg, rgb(var(--exam-right-tint-rgb) / 0.72) 0%, rgba(255, 255, 255, 0.70) 100%);
  border-color: rgb(var(--exam-results-border-rgb) / 0.34);
}

body.embed-mode[data-active-exam] {
  min-height: auto;
  background: #ffffff;
}

body[data-active-exam="yks"] .subject-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(246, 244, 255, 0.98) 100%);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 8px 18px rgba(76, 29, 149, 0.04);
}

body[data-active-exam="yks"] .input-group,
body[data-active-exam="yks"] .mini-input input,
body[data-active-exam="yks"] .metric-box {
  background: #f3f5fb;
  border-color: rgba(148, 163, 184, 0.24);
}

body[data-active-exam="yks"] .input-group:focus-within,
body[data-active-exam="yks"] .mini-input input:focus {
  background: #fbfaff;
}

body[data-active-exam="yks"] .yks-score-section {
  background: rgba(255, 255, 255, 0.70);
  border-color: rgba(124, 58, 237, 0.14);
  box-shadow: 0 8px 16px rgba(76, 29, 149, 0.05);
}

body[data-active-exam="yks"] .yks-score-title {
  background: linear-gradient(135deg, #f0ecff 0%, #eef6fb 100%);
}

body[data-active-exam="yks"] .info-callout {
  background: #eef8f3;
  border-color: rgba(16, 185, 129, 0.22);
}

/* Callout Note */
.info-callout {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.callout-icon {
  flex-shrink: 0;
  color: #22c55e;
}

.callout-content {
  font-size: 0.85rem;
  line-height: 1.5;
}

.callout-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #15803d;
}

.callout-content p {
  margin-top: 0;
  margin-bottom: 0;
}

.callout-content p + p {
  margin-top: 8px;
}

.callout-content em {
  background: rgba(255,255,255,0.5);
  padding: 0 4px;
  border-radius: 4px;
  font-style: normal;
  font-weight: 600;
}

.notice {
  margin-top: 18px;
  padding: 16px;
  border: 2px solid #fcd34d;
  border-radius: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
  box-shadow: 0 4px 6px -1px rgb(251 191 36 / 0.3), 0 2px 4px -2px rgb(251 191 36 / 0.3);
}

.school-recommendation-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.school-recommendation-box strong {
  display: block;
  color: #172554;
  font-size: 1rem;
  font-weight: 900;
}

.school-recommendation-box span {
  display: block;
  margin-top: 4px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.school-recommendation-button {
  align-self: flex-start;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.24);
}

.school-recommendation-button:hover {
  background: #1d4ed8;
}

.school-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 22px;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(5px);
  overscroll-behavior: contain;
  /* touch-action: none; mobilde ekranın kilitlenmesini engellemek için kaldırıldı */
}

.school-modal-overlay.open {
  display: flex;
}

html.school-modal-open,
body.school-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.school-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.school-modal {
  width: min(1120px, 100%);
  height: calc(100dvh - 32px);
  max-height: 860px;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
}

.school-modal-header {
  flex: 0 0 auto;
  padding: 22px 24px;
  background: linear-gradient(135deg, #1e3a8a 0%, #4338ca 100%);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.school-modal-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.school-modal-header h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

.school-modal-header p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.school-modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.school-modal-filters {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.school-filter-top {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(260px, 1fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: start;
}

.school-score-summary,
.school-select-filter,
.school-search-filter,
.school-type-filter {
  min-width: 0;
}

.school-score-summary {
  position: relative;
  overflow: hidden;
  min-height: 116px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 52%, #ecfdf5 100%);
  border: 1px solid #bfdbfe;
  padding: 16px 18px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.10), inset 0 1px 0 rgba(255,255,255,0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.school-score-summary::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.school-score-summary span,
.school-select-filter,
.school-search-filter-header span,
.school-type-filter-header span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.school-score-summary strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 900;
}

.school-score-summary small {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 900;
}

.school-modal-filters select,
.school-city-search-input {
  width: 100%;
  margin-top: 0;
  border: 2px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  padding: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 52px;
}

.school-modal-filters select:disabled {
  cursor: not-allowed;
  background: #f1f5f9;
  color: #94a3b8;
}

.school-search-filter {
  position: relative;
  display: grid;
  grid-template-rows: auto 52px;
  row-gap: 7px;
  align-content: start;
}

.school-select-filter {
  display: grid !important;
  grid-template-rows: auto 52px;
  row-gap: 7px;
  align-content: start;
}

.school-search-filter-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 18px;
}

.school-city-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  -webkit-overflow-scrolling: touch;
}

.school-city-results.open {
  display: grid;
}

.school-city-results button {
  min-height: 34px;
  border: 1px solid #dbe4f0;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.school-city-results button.active {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.school-city-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
}

.school-type-filter {
  grid-column: 1 / -1;
  padding: 13px;
  border: 1px solid #dbe4f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.school-type-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.school-type-filter-header small {
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.school-type-chip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.school-type-chip {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #dbe4f0;
  color: #334155 !important;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  line-height: 1.15;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.school-type-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.school-type-chip span {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.school-type-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}

.school-type-chip:has(input:checked) {
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.school-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 20px 22px;
}

.school-empty {
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  padding: 28px;
  color: #64748b;
  font-weight: 900;
  text-align: center;
  background: #f8fafc;
}

.school-empty.error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}

.school-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.school-legend-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.school-legend button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #dbe4f0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.85rem;
  font-weight: 800;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.school-legend button:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
}

.school-legend button::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.school-legend button small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
}

.school-legend .fit-safe::before { background: #166534; }
.school-legend .fit-reach::before { background: #92400e; }
.school-legend .fit-hard::before { background: #9a3412; }

.school-legend .fit-safe.active {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.school-legend .fit-reach.active {
  border-color: #fde68a;
  background: #fef3c7;
  color: #92400e;
}

.school-legend .fit-hard.active {
  border-color: #fdba74;
  background: #ffedd5;
  color: #9a3412;
}

.school-legend button:not(.active) {
  opacity: 0.62;
}

.school-clear-city-button {
  margin-left: auto;
  border-color: #dbe4f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
}

.school-clear-city-button::before {
  display: none !important;
}

.school-list {
  display: grid;
  gap: 10px;
}

.school-card {
  border-radius: 14px;
  border: 2px solid #dbe4f0;
  background: #ffffff;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: center;
}

.school-card.fit-safe {
  border-color: #86efac;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.school-card.fit-reach {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.school-card.fit-hard {
  border-color: #fdba74;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%);
}

.school-legend .fit-safe,
.school-card.fit-safe .school-card-score span {
  background: #dcfce7;
  color: #166534;
}

.school-legend .fit-reach,
.school-card.fit-reach .school-card-score span {
  background: #fef3c7;
  color: #92400e;
}

.school-legend .fit-hard,
.school-card.fit-hard .school-card-score span {
  background: #ffedd5;
  color: #9a3412;
}

.school-location {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.school-card h3 {
  margin: 4px 0 5px;
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}

.school-card p {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.school-card-score {
  text-align: right;
}

.school-card-score span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.school-card-score strong {
  display: block;
  margin-top: 7px;
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 900;
}

.school-card-score small {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 10px;
  }

  .control-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .panel-header,
  .section-heading {
    flex-direction: column;
  }

  .tools-link {
    width: 100%;
  }

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

  .school-recommendation-box,
  .school-modal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .school-filter-top {
    grid-template-columns: 1fr 1fr;
  }

  .school-score-summary {
    grid-column: 1 / -1;
    min-height: 96px;
  }

  .school-type-filter {
    grid-column: 1 / -1;
  }

  .school-card {
    grid-template-columns: 1fr;
  }

  .school-card-score {
    text-align: left;
  }

  .school-type-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .results-card {
    position: static;
  }
}

@media (max-width: 640px) {
  #resultsPanel {
    display: flex;
    flex-direction: column;
  }

  #resultsPanel .school-recommendation-box {
    order: -1;
    margin-top: 0;
    margin-bottom: 16px;
  }

  .school-modal-overlay {
    align-items: flex-start;
    display: none;
    height: 100dvh;
    overflow-y: auto;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .school-modal-overlay.open {
    display: block;
  }

  .school-modal {
    width: 100%;
    min-height: calc(100dvh - 20px);
    height: auto;
    max-height: none;
    display: block;
    overflow: visible;
  }

  .school-modal-body {
    overflow-y: visible;
    padding-bottom: 40px;
  }

  .school-modal-header {
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .school-modal-filters {
    gap: 10px;
    padding: 12px;
  }

  .school-filter-top {
    grid-template-columns: 1fr;
  }

  .school-score-summary {
    grid-column: auto;
    min-height: 104px;
  }

  .school-recommendation-button {
    width: 100%;
  }

  .school-type-filter-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .school-city-results {
    grid-template-columns: 1fr;
  }

  .school-legend {
    justify-content: center;
  }

  .school-legend-buttons {
    justify-content: center;
  }

  .school-clear-city-button {
    margin-left: 0;
  }

  .yks-group-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .yks-group-title {
    flex: 1 1 100%;
  }

  .yks-accordion-icon {
    margin-left: auto;
  }

  .yks-group-subjects {
    padding: 10px;
  }

  .subject-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .subject-title {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 8px;
    align-items: center;
    text-align: center;
  }

  .mini-input {
    flex: 1 1 40%; /* 2x2 grid approach for mobile if it allows */
  }

  .yks-net-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .exam-switch {
    flex-direction: column;
  }

  .yearly-result-row {
    grid-template-columns: minmax(82px, 0.75fr) minmax(0, 1.25fr);
    gap: 8px;
  }

  .result-note {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auto-calc-dot {
    animation: none;
  }
}

/* =========================================
   EMBED / IFRAME GÖRÜNÜMÜ VE DÜZELTMELER
   ========================================= */

/* 1. Sadece embed=1 iken "Araçlara dön" butonunu gizle */
body.embed-mode .tools-link {
  display: none !important;
}

/* (Opsiyonel) Eğer üstteki "Rehberlik Servisim" etiketini de gizlemek istersen 
   aşağıdaki yorum satırlarını kaldırabilirsin */
/*
body.embed-mode .eyebrow {
  display: none !important;
}
*/

/* 2. Alt kısımdaki "bıçakla kesilmiş" boşluk hissini yok et */
.page-shell {
  /* Alttan ekstra 80px boşluk vererek kutuyu yukarı iter, gölgeler kesilmez */
  padding-bottom: 80px !important; 
}

/* Arka plan gradyanının sayfa ne kadar uzarsa uzasın bozulmaması için sabitliyoruz */
/* Sildiğiniz satırların yerine BAZDA BUNU YAPIŞTIRIN */
body::before {
  content: "";
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  z-index: -1;
  background: inherit;
  pointer-events: none;
}

body.embed-mode::before {
  display: none;
}
