/* The release service controls when campaign content enters the layout. */
:is(.release-banner,.release-welcome,.release-auth,.release-open,.release-dismiss,.release-plans-summary,.release-plan,#releaseMenuPlans)[hidden] {
  display:none !important;
}
.release-badge {
  display:inline-block;
  width:fit-content;
  max-width:100%;
  border-radius:999px;
  padding:3px 9px;
  background:#f9b80d;
  color:#0c2042;
  font-weight:800;
  font-size:.82rem;
  line-height:1.3;
}
.release-badge:empty { display:none; }
.release-open,.release-close {
  min-height:44px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#12447b;
  font:inherit;
  font-weight:750;
  cursor:pointer;
  padding:.45rem .6rem;
}
.release-open { text-decoration:underline; text-underline-offset:.2em; }
.release-open:hover,.release-close:hover { background:#ddedfc; }
.release-open:focus-visible,.release-close:focus-visible,.release-dismiss:focus-visible {
  outline:3px solid #1760a3; outline-offset:2px;
}

.release-banner {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:max-content minmax(0,max-content) max-content minmax(30px,1fr);
  grid-template-areas:"badge copy details dismiss";
  align-items:center;
  gap:4px 12px;
  min-height:44px;
  margin:0 0 12px;
  padding:8px 14px;
  color:#fff;
  background:linear-gradient(90deg,#0e234a 0%,#1b4b8c 100%);
  border:1px solid rgb(255 255 255 / .14);
  border-radius:12px;
  box-shadow:0 3px 9px #0c204225;
  font-size:.9rem;
  line-height:1.3;
}
.release-banner > .release-badge { grid-area:badge; }
.release-banner-copy { grid-area:copy; margin:0; min-width:0; }
.release-banner-copy span:empty,.release-auth p span:empty { display:none; }
.release-banner-copy span::before,.release-auth p span::before { content:" · "; white-space:pre; }
.release-banner .release-open {
  grid-area:details;
  min-height:28px;
  padding:3px 9px;
  color:#fff;
  background:rgb(255 255 255 / .12);
  border:1px solid rgb(255 255 255 / .17);
  text-decoration:none;
  white-space:nowrap;
}
.release-banner .release-open:hover { background:rgb(255 255 255 / .22); }
.release-arrow { display:inline-block; margin-inline-start:4px; }
.release-arrow:dir(rtl) { transform:scaleX(-1); }
.release-dismiss,.release-plans-header .release-plans-dismiss {
  display:grid;
  place-items:center;
  width:30px;
  height:28px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:inherit;
  font:inherit;
  font-size:1.4rem;
  line-height:1;
  cursor:pointer;
}
.release-dismiss { grid-area:dismiss; justify-self:end; }
.release-dismiss:hover { background:rgb(255 255 255 / .15); }
.release-banner :is(.release-open,.release-dismiss):focus-visible { outline-color:#ffd780; outline-offset:2px; }
.release-narrow-copy { display:none; }

.release-welcome {
  box-sizing:border-box;
  display:grid;
  justify-items:start;
  gap:4px;
  width:100%;
  max-width:360px;
  margin-block-start:1.1rem;
  padding:12px 15px;
  border:1px solid rgb(255 255 255 / .78);
  border-inline-start:4px solid #f9b80d;
  border-radius:12px;
  background:rgb(255 255 255 / .88);
  backdrop-filter:blur(8px);
  color:#0c2042;
  box-shadow:0 5px 16px #0c204223;
}
.release-welcome .release-badge { background:#0c2042; color:#ffda75; }
.release-welcome-title { font-size:1rem; line-height:1.25; }
#releaseWelcomeDetail { margin:0; color:#405575; font-size:.88rem; line-height:1.4; }
:root[data-climb-theme="dark"] .release-welcome {
  color:#f8fafc;
  background:#142647;
  border-color:rgb(148 184 232 / .28);
  border-inline-start-color:#f9b80d;
}
:root[data-climb-theme="dark"] #releaseWelcomeDetail { color:#cbd5e1; }

.welcome-auth-header { display:contents; }
#googleAuthModal .welcome-auth-card:has(.release-auth:not([hidden])) {
  width:min(100%,500px);
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,auto);
  border-radius:16px;
}
.welcome-auth-card:has(.release-auth:not([hidden])) .welcome-auth-art { display:none; }
.welcome-auth-card:has(.release-auth:not([hidden])) .welcome-auth-content {
  grid-column:1;
  grid-row:2;
  padding:clamp(16px,3.3vw,26px) clamp(16px,4vw,28px);
}
.welcome-auth-card:has(.release-auth:not([hidden])) .welcome-auth-content h2 {
  margin:0 0 .32rem;
  font-size:clamp(1.48rem,3vw,2rem);
}
.welcome-auth-card:has(.release-auth:not([hidden])) .welcome-auth-content > p { margin-block-end:.95rem; }
.welcome-auth-card:has(.release-auth:not([hidden])) .welcome-auth-header {
  display:block;
  position:relative;
  grid-column:1;
  grid-row:1;
  color:#fff;
  background:linear-gradient(90deg,#0e234a,#1b4b8c);
}
.release-auth {
  display:grid;
  justify-items:start;
  gap:7px;
  padding:14px 16px;
}
.release-auth .release-badge { max-width:calc(100% - 40px); }
.release-auth p { margin:0; font-size:.88rem; line-height:1.35; }
.release-auth .release-badge:empty + p { padding-inline-end:36px; }
.welcome-auth-card .welcome-auth-header .welcome-auth-close {
  inset:auto;
  inset-block-start:7px;
  inset-inline-end:7px;
  z-index:1;
}
#googleAuthModal .welcome-auth-header:has(.release-auth:not([hidden])) .welcome-auth-close {
  width:36px;
  height:36px;
  color:#fff;
  background:transparent;
}
#googleAuthModal .welcome-auth-header:has(.release-auth:not([hidden])) .welcome-auth-close:hover { background:rgb(255 255 255 / .15); }
#googleAuthModal .welcome-auth-header:has(.release-auth:not([hidden])) .welcome-auth-close:focus-visible { outline-color:#ffd780; outline-offset:-2px; }
.firebase-login .firebase-preference small { margin-inline-start:1.55rem; margin-inline-end:0; }
[dir="rtl"] .firebase-login .firebase-preference small { margin-left:0; }

.release-plans {
  box-sizing:border-box;
  width:min(1020px,calc(100% - 24px));
  max-height:calc(100vh - 24px);
  max-height:calc(100dvh - 24px);
  padding:0;
  overflow:hidden;
  color:#132b51;
  background:#edf6ff;
  border:1px solid #a9c6e6;
  border-radius:20px;
  box-shadow:0 20px 70px #071a3b65;
}
.release-plans[open] { display:flex; flex-direction:column; }
.release-plans::backdrop { background:#071a3b85; }
.release-plans-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:none;
  gap:.6rem;
  padding:.55rem clamp(12px,3vw,28px);
  background:#e6f3ff;
  border-block-end:1px solid #c6daed;
}
.release-plans-header h2 { margin:0; font-size:clamp(1.1rem,3vw,1.55rem); }
.release-plans-header .release-plans-dismiss {
  width:40px;
  height:40px;
  min-height:40px;
  background:#fff;
  color:#132b51;
  border:1px solid #c2d8ee;
}
.release-plans-header .release-plans-dismiss:hover { background:#ddedfc; }
.release-plans-body {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:clamp(12px,3vw,28px);
}
.release-plans-body:focus-visible { outline:3px solid #1760a3; outline-offset:-3px; }
.release-plans-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem .8rem;
  background:#eaf4fe;
  padding:.65rem .75rem;
  border:1px solid #c1daf4;
  border-inline-start:5px solid #eeb526;
  border-radius:12px;
}
.release-plans-summary p { margin:0; min-width:0; }
.release-checkout-note,.release-plan-tools { color:#344d72; margin:.9rem 0; }
.release-plan-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));
  gap:clamp(8px,1.5vw,16px);
}
.release-plan {
  box-sizing:border-box;
  min-width:0;
  padding:clamp(12px,2vw,18px);
  border:1px solid #bfd3e9;
  border-block-start:5px solid #168744;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 12px #18335c12;
}
.release-plan-monthly { border-block-start-color:#1682bc; }
.release-plan-special {
  border:2px solid #eeb526;
  background:linear-gradient(150deg,#0d2248,#173866);
  color:#fff;
}
.release-plan-special h3 { color:#ffda75; }
.release-plan h3 { margin:0 0 .5rem; }
.release-plan p { margin:.4rem 0; }
.release-plan-price { font-weight:850; font-size:clamp(1.05rem,2.1vw,1.6rem); }
.release-plan-special .release-plan-price { color:#ffd262; }

@media (max-width:800px) {
  .release-banner {
    grid-template-columns:minmax(0,1fr) auto max-content;
    grid-template-areas:"badge badge dismiss" "copy details details";
    padding:10px 12px;
    gap:2px 8px;
    font-size:.83rem;
  }
  .release-banner .release-open {
    min-height:27px;
    padding:2px 1px 2px 6px;
    color:#ffda75;
    background:transparent;
    border:0;
    text-decoration:underline;
  }
  .release-banner[data-phase="early-access"] .release-wide-copy,.release-banner .release-arrow { display:none; }
  .release-banner[data-phase="early-access"] .release-narrow-copy { display:inline; }
  .release-banner[data-phase="trial"] {
    grid-template-areas:"badge badge details" "copy copy copy";
  }
  .release-auth p { font-size:.84rem; }
}

@media (orientation:portrait) and (max-width:620px) {
  .release-plans {
    width:100%;
    max-width:100%;
    margin-block:auto 0;
    border-radius:20px 20px 0 0;
  }
  .release-plan-grid { grid-template-columns:minmax(0,1fr); }
}

@media (orientation:landscape) and (max-height:540px) {
  .release-banner { padding-block:4px; margin-block-end:7px; }
  .release-plans-header { padding-block:.15rem; }
  .release-plans-body { padding:10px 12px; }
  .release-plans-summary { padding:5px 8px; font-size:.9rem; }
  .release-checkout-note { margin:.55rem 0; }
}

.release-plans [id^="releaseComparison"][hidden],
.release-plans [id^="releasePricing"][hidden] { display:none !important; }
.release-pricing-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem .9rem;
  margin:.8rem 0;
}
.release-pricing-actions .release-checkout-note {
  flex:1 1 14rem;
  margin:0;
}
.release-secondary {
  background:#fff;
  border:1px solid #c2d8ee;
}
.release-comparison-table {
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
  text-align:start;
  line-height:1.45;
}
.release-comparison-table :is(th,td) {
  padding:.7rem .8rem;
  text-align:start;
  vertical-align:top;
  overflow-wrap:anywhere;
}
.release-comparison-table thead th:first-child { width:21%; }
.release-comparison-free { background:#d6ebfa; color:#12355b; }
.release-comparison-pro { background:#11294d; color:#ffdc80; }
.release-comparison-table thead th:first-child { border-start-start-radius:12px; }
.release-comparison-table thead th:last-child { border-start-end-radius:12px; }
.release-comparison-table tbody :is(th,td) { border-block-end:1px solid #c6daed; }
.release-comparison-table tbody tr:nth-child(odd) { background:#fff; }
.release-comparison-table tbody tr:nth-child(even) { background:#f5f9fd; }
.release-comparison-table tbody th { color:#173961; }
.release-comparison-mobile-label { display:none; }

@media (orientation:portrait) and (max-width:620px), (max-width:460px) {
  .release-comparison-table,
  .release-comparison-table tbody {
    display:block;
  }
  .release-comparison-table thead {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .release-comparison-table tbody tr {
    display:grid;
    gap:.5rem;
    margin-block-end:.65rem;
    padding:.75rem;
    background:#fff;
    border:1px solid #c6daed;
    border-radius:14px;
  }
  .release-comparison-table tbody :is(th,td) { padding:0; border:0; }
  .release-comparison-table td {
    display:grid;
    grid-template-columns:max-content minmax(0,1fr);
    align-items:start;
    gap:.5rem;
  }
  .release-comparison-mobile-label {
    display:inline-block;
    border-radius:20px;
    padding:.15rem .5rem;
    font-size:.83rem;
    font-weight:750;
  }
}

@media (orientation:landscape) and (max-height:540px) {
  .release-comparison-table :is(th,td) { padding:.45rem .6rem; }
  .release-pricing-actions { margin-block:.45rem; }
}


:root[data-climb-theme="dark"] .release-plans {
  color:#f8fafc;
  background:#11203d;
  border-color:#43618c;
}
:root[data-climb-theme="dark"] .release-plans :is(.release-plans-header,.release-plans-summary) {
  background:#142647;
  border-color:#43618c;
}
:root[data-climb-theme="dark"] .release-plans-summary { border-inline-start-color:#f9b80d; }
:root[data-climb-theme="dark"] .release-plans :is(.release-checkout-note,.release-plan-tools,.release-comparison-table tbody th) { color:#cbd5e1; }
:root[data-climb-theme="dark"] .release-plans :is(.release-plans-dismiss,.release-secondary,.release-open) {
  color:#f8fafc;
  background:#203b62;
  border-color:#5b78a0;
}
:root[data-climb-theme="dark"] .release-plans :is(.release-plans-dismiss,.release-secondary,.release-open):hover { background:#2e4b72; }
:root[data-climb-theme="dark"] .release-plans :focus-visible { outline-color:#a4d5ff; }
:root[data-climb-theme="dark"] .release-plan:not(.release-plan-special) {
  background:#142647;
  border-inline-color:#43618c;
  border-block-end-color:#43618c;
}
:root[data-climb-theme="dark"] .release-comparison-table tbody tr:nth-child(odd) { background:#142647; }
:root[data-climb-theme="dark"] .release-comparison-table tbody tr:nth-child(even) { background:#1b3155; }
:root[data-climb-theme="dark"] .release-comparison-table tbody :is(tr,th,td) { border-color:#43618c; }

.signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:not([hidden]) {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  margin:4px 0;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:linear-gradient(115deg,#eef6ff 0%,#f8faf9 76%,#fff7e4 100%);
  color:#102749;
  text-align:start;
  cursor:pointer;
}
.signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:not([hidden]):hover { background:#e1effe; }
.signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:focus-visible {
  outline:2px solid #225c9c;
  outline-offset:2px;
}
#releaseMenuPlans .release-menu-emblem {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  color:#805000;
  background:#fef3c7;
}
.release-menu-emblem svg { width:20px; height:20px; }
#releaseMenuPlans .release-menu-copy { display:grid; gap:3px; min-width:0; }
#releaseMenuTitle { font-size:.94rem; font-weight:750; line-height:1.2; }
#releaseMenuStatus { color:#475b73; font-size:.78rem; font-weight:550; line-height:1.35; overflow-wrap:anywhere; }
#releaseMenuPlans .release-menu-view {
  display:inline-flex;
  align-items:center;
  gap:3px;
  color:#19538b;
  font-size:.8rem;
  font-weight:750;
  white-space:nowrap;
}
.release-menu-view svg { width:12px; height:12px; flex:none; }
[dir="rtl"] .release-menu-view svg { transform:scaleX(-1); }
:root[data-climb-theme="dark"] .signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:not([hidden]) {
  background:#162b4e;
  border-color:rgba(148,184,232,.28);
  color:#f1f7ff;
}
:root[data-climb-theme="dark"] .signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:not([hidden]):hover {
  background:#203c65;
}
:root[data-climb-theme="dark"] #releaseMenuPlans .release-menu-emblem {
  background:rgba(249,184,13,.18);
  color:#ffe08c;
}
:root[data-climb-theme="dark"] #releaseMenuStatus { color:#c5d5e9; }
:root[data-climb-theme="dark"] #releaseMenuPlans .release-menu-view { color:#a4d5ff; }
:root[data-climb-theme="dark"] .signed-in-dashboard #teacherMenuPanel #releaseMenuPlans:focus-visible { outline-color:#a4d5ff; }
