:root {
  --bg: #0b0d10;
  --card: #12161b;
  --text: #e8eef7;
  --muted: #9aa7b7;
  --border: #222a33;
  --btn: #2a3440;
  --btn2: #1f2730;
  --danger: #7b2f2f;
  --container-pad: 18px;
  --container-pad-mobile: 14px;
  --card-pad: 18px;
  --card-pad-mobile: 14px;
  --control-gap: 14px;
  --modal-gutter: 20px;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.registration-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.registration-honeypot input {
  width: 1px;
  height: 1px;
  min-width: 1px;
  min-height: 1px;
  padding: 0;
  border: 0;
}
body {
  margin: 0;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #0c1015;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 0;
}
.app-logo {
  height: 32px;
  width: auto;
  display: block;
}
.mobileNavToggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--btn2);
  color: var(--text);
  cursor: pointer;
}
.mobileNavToggleBar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.mobileNavToggle:focus-visible {
  outline: 2px solid #9ecbff;
  outline-offset: 2px;
}
.nav a {
  color: var(--muted);
  text-decoration:none;
  margin-left: 12px;
}
.nav a:hover,
.nav summary:hover { color: var(--text); }
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  margin-left: 0;
}
.navBadgeLink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.navUnreadBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  border: 1px solid rgba(255, 143, 143, 0.34);
  border-radius: 999px;
  background: rgba(123, 47, 47, 0.34);
  color: #ffd6d6;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.navMenu {
  position: relative;
  color: var(--muted);
}
.navMenu summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}
.navMenu summary::-webkit-details-marker {
  display: none;
}
.navMenu summary:focus-visible {
  outline: 2px solid #9ecbff;
  outline-offset: 4px;
  border-radius: 6px;
}
.navSubmenu {
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  background: #0c1015;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
@media (min-width: 769px) {
  .navSubmenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
  }
}

.container {
  max-width: 980px;
  margin: 20px auto;
  padding: 0 var(--container-pad) 40px;
}
.containerWide {
  max-width: 1180px;
}
.siteFooter {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--container-pad) 24px;
}
.footerNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(34, 42, 51, 0.7);
}
.footerNav a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.footerNav a:hover {
  color: var(--text);
}

.stackSm {
  display: grid;
  gap: 8px;
}
.stackMd {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--card-pad);
  margin-bottom: 16px;
  min-width: 0;
}
.card.inner { margin-bottom: 0; }

h1,h2,h3 { margin: 0 0 10px; }
label {
  display:block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
input, select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1318;
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.inputLike {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0f1318;
  color: var(--text);
  display: flex;
  align-items: center;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.row { display:flex; gap: 10px; align-items:center; }
.row.wrap { flex-wrap: wrap; }
.grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 768px) { .grid2 { grid-template-columns: 1fr; } }
.timerFormFields { display: grid; gap: 12px; }
.fieldRow { align-items: stretch; }
.fieldRow > input,
.fieldRow > select {
  flex: 1 1 auto;
  min-width: 0;
}
.fieldRow > .btn {
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .fieldRow {
    flex-wrap: wrap;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--btn);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font: inherit;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.btn.secondary { background: var(--btn2); color: var(--muted); }
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.timerBox { margin-top: 14px; padding: 14px; border: 1px dashed var(--border); border-radius: 14px; }
.timer { font-size: 54px; font-weight: 800; letter-spacing: 1px; margin: 6px 0 10px; }
.timerPhase { color: var(--muted); font-size: 14px; }
.timerQuickActions,
.timerToggleGroup,
.timerControlRow,
.modalActions {
  align-items: stretch;
}
.timerQuickBtn {
  flex: 1 1 88px;
}
.timerControlsStack {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}
.timerQuickActions {
  margin-top: 0;
}
.timerControlsDivider {
  margin: 0;
}
.timerCustomDuration {
  flex: 1 1 260px;
  align-items: stretch;
}
.timerCustomDuration input {
  flex: 1 1 auto;
  min-width: 0;
}
.timerCustomDuration .btn {
  flex: 0 0 auto;
}
.timerToggleGroup {
  gap: 14px;
}
.timerToggleGroup .toggleSwitch {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
}
.timerControlRow .btn,
.modalActions .btn {
  flex: 1 1 160px;
}
.muted { color: var(--muted); font-size: 13px; }
.muted,
.error,
.successText {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.error { color: #ff8f8f; font-size: 13px; margin: 6px 0 0; }
.successText { color: #92d6ab; font-size: 13px; margin: 6px 0 0; }
.navInlineForm {
  display: inline;
}
.authShell {
  width: min(100%, 560px);
  margin: clamp(18px, 6vh, 44px) auto;
}
.authCard {
  width: 100%;
  margin-bottom: 0;
}
.authHeader {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.authHeader p {
  margin: 0;
}
.authForm {
  display: grid;
  gap: var(--control-gap);
}
.authField {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.authActions {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}
.authActions .btn {
  width: 100%;
}
.authFooter {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.authFooter p {
  margin: 0;
}
.authCard p:last-child,
.modalCard p:last-child {
  margin-bottom: 0;
}
.authPageMain {
  padding-bottom: 32px;
}
.authShellRegister {
  width: 100%;
  max-width: 1120px;
  margin: clamp(18px, 5vh, 40px) auto;
}
.registerLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
}
.registerFormCard,
.registerMarketingPanel {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 769px) {
  .registerLayout > * {
    height: 100%;
  }
  .registerMarketingPanel {
    height: 100%;
  }
}
.registerFormCard {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.98), rgba(15, 19, 24, 0.98));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.24);
}
.registerHeader {
  margin-bottom: 22px;
}
.registerLogo {
  width: auto;
  height: 34px;
}
.registerEyebrow,
.registerMarketingEyebrow {
  margin: 0;
  color: #9ecbff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.registerHeader h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.registerIntro,
.registerMarketingLead,
.registerAudienceCue {
  margin: 0;
  color: #c7d2df;
  font-size: 15px;
  line-height: 1.65;
}
.registerNotice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 143, 143, 0.35);
  border-radius: 12px;
  background: rgba(123, 47, 47, 0.18);
}
.registerNotice .error {
  margin: 0;
}
.registerForm {
  gap: 16px;
}
.registerNameGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.registerFieldHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.registerFieldHeader .muted {
  font-size: 12px;
}
.registerPlanField {
  gap: 8px;
}
.registerPlanLabel {
  font-weight: 700;
}
.registerPlanSelector {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.registerPlanSelector p {
  margin: 0 0 4px;
}
.registerPlanOption {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 32px;
  color: #ecf2f8;
  font-weight: 600;
}
.registerPlanOption input {
  width: auto;
}
.registerForm .registration-checkbox-row {
  position: relative;
  min-height: 1.4rem;
  margin-top: 0.85rem;
  padding-left: 1.75rem;
  color: #ecf2f8;
  font-size: 14px;
}
.registerForm .registration-checkbox-row + .registration-checkbox-row {
  margin-top: 0.75rem;
}
.registerForm .registration-checkbox-row input[type="checkbox"] {
  position: absolute;
  top: 0.05rem;
  left: 0;
  width: 1rem;
  height: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  margin: 0;
  padding: 0;
}
.registerForm .registration-checkbox-row label {
  display: block;
  margin: 0;
  line-height: 1.45;
}
.registerForm .registration-checkbox-row label a {
  display: inline;
}
.registerPlanSelector.is-disabled {
  opacity: 0.62;
}
.registerActions {
  margin-top: 8px;
}
.registerFooter {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.registerMarketingPanel {
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.22), transparent 36%),
    radial-gradient(circle at bottom left, rgba(158, 203, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(15, 19, 24, 0.98), rgba(12, 17, 23, 0.99));
}
.registerMarketingInner {
  display: grid;
  gap: 18px;
  height: 100%;
  padding: 28px;
}
.registerMarketingPanel h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.registerBenefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.registerBenefits li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.55;
}
.registerBenefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9ecbff;
  box-shadow: 0 0 16px rgba(158, 203, 255, 0.45);
}
.registerInsightGrid {
  display: grid;
  gap: 12px;
}
.registerInsightCard {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.registerInsightLabel,
.registerInsightValue,
.registerInsightNote {
  margin: 0;
}
.registerInsightLabel {
  color: #9ecbff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
.registerInsightValue {
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.registerInsightNote {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.registerAudienceCue {
  margin-top: auto;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
}
.authShellLogin {
  max-width: 1120px;
}
.loginLayout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 20px;
}
.loginFormCard {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.1), transparent 33%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.985), rgba(14, 18, 22, 0.985));
}
.loginHeader {
  gap: 12px;
  margin-bottom: 20px;
}
.loginHeader h1 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.loginIntro {
  max-width: 42ch;
}
.loginStatusText {
  margin: 0 0 14px;
}
.loginNotice {
  margin-bottom: 16px;
}
.loginForm {
  gap: 16px;
}
.loginActions {
  margin-top: 10px;
}
.loginFooter {
  gap: 12px;
}
.loginMarketingPanel {
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom left, rgba(158, 203, 255, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(14, 19, 24, 0.98), rgba(11, 15, 20, 0.99));
}
.loginMarketingInner {
  gap: 20px;
  padding: 30px;
}
.loginMarketingLead {
  max-width: 44ch;
}
.loginBenefits {
  gap: 14px;
}
.loginInsightGrid {
  gap: 10px;
}
.loginInsightCard {
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.035);
}
.loginInsightCard .registerInsightValue {
  font-size: 1.15rem;
}
.loginAudienceCue {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d6e1ec;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.pricingPageMain {
  display: grid;
  gap: 26px;
  padding-bottom: 42px;
}
.pricingHero {
  display: grid;
  gap: 18px;
  max-width: 820px;
  padding: clamp(24px, 5vw, 54px) 0 12px;
}
.pricingHero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.6vw, 4.2rem);
  line-height: 1.02;
}
.pricingHeroLead {
  max-width: 68ch;
  margin: 0;
  color: #c7d2df;
  font-size: 17px;
  line-height: 1.7;
}
.pricingHeroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.pricingTrialNote {
  margin: 0;
  color: #d6e1ec;
  font-size: 14px;
  line-height: 1.55;
}
.pricingTrialNote strong,
.pricingBottomCta strong {
  color: #9ecbff;
}
.pricingPlans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pricingPlan {
  display: grid;
  gap: 16px;
  align-content: start;
  margin-bottom: 0;
  padding: 22px;
}
.pricingPlanLive {
  border-color: rgba(158, 203, 255, 0.62);
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.99), rgba(15, 19, 24, 0.99));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}
.pricingPlanHeader {
  display: grid;
  gap: 8px;
}
.pricingPlanHeader h2,
.pricingPlanHeader p,
.pricingPrice,
.pricingBestFor {
  margin: 0;
}
.pricingPlanHeader h2 {
  font-size: 1.65rem;
  line-height: 1.1;
}
.pricingPlanHeader p,
.pricingBestFor {
  color: var(--muted);
  line-height: 1.55;
}
.pricingStatus {
  justify-self: start;
  padding: 5px 9px;
  border: 1px solid rgba(154, 167, 183, 0.32);
  border-radius: 999px;
  color: #c7d2df;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricingStatusLive {
  border-color: rgba(158, 203, 255, 0.55);
  color: #9ecbff;
  background: rgba(88, 166, 255, 0.1);
}
.pricingPrice {
  color: var(--muted);
  line-height: 1.45;
}
.pricingPrice span {
  display: block;
  color: var(--text);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
}
.pricingFeatureList {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pricingFeatureList li {
  position: relative;
  padding-left: 18px;
  color: #d6e1ec;
  line-height: 1.5;
}
.pricingFeatureList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9ecbff;
}
.pricingPlanCta {
  width: 100%;
  margin-top: 4px;
}
.pricingComparison {
  display: grid;
  gap: 14px;
}
.pricingSectionHeader h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.pricingTableWrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0f1318;
}
.pricingTable {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}
.pricingCapabilityCol {
  width: 46%;
}
.pricingPlanCol {
  width: 18%;
}
.pricingTable th,
.pricingTable td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(34, 42, 51, 0.82);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}
.pricingTable thead th {
  color: #9ecbff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pricingTable tbody th {
  color: var(--text);
  font-weight: 600;
}
.pricingTable td {
  color: #d6e1ec;
}
.pricingTable tr:last-child th,
.pricingTable tr:last-child td {
  border-bottom: 0;
}
.pricingBottomCta {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(158, 203, 255, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(15, 19, 24, 0.98), rgba(12, 17, 23, 0.99));
}
.pricingBottomCta h2,
.pricingBottomCta p {
  margin: 0;
}
.pricingBottomCta h2 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
}
.pricingBottomCta p {
  max-width: 64ch;
  color: #c7d2df;
  line-height: 1.65;
}
.aiBriefingPageMain {
  display: grid;
  gap: 26px;
  padding-bottom: 42px;
}
.aiBriefingHero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
  padding-top: clamp(20px, 4vw, 42px);
}
.aiBriefingHeroCopy {
  display: grid;
  gap: 16px;
  align-content: center;
  min-width: 0;
}
.aiBriefingHero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
}
.aiBriefingSubtitle {
  max-width: 60ch;
  margin: 0;
  color: #d6e1ec;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
}
.aiBriefingHeroBody,
.aiBriefingSupportCopy,
.aiBriefingEmailNote {
  max-width: 68ch;
  margin: 0;
  color: #c7d2df;
  line-height: 1.7;
}
.aiBriefingHeroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.aiBriefingStatus {
  background: rgba(88, 166, 255, 0.1);
  border-color: rgba(158, 203, 255, 0.45);
  color: #9ecbff;
}
.aiBriefingPreview {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  padding: 22px;
  border-color: rgba(158, 203, 255, 0.34);
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.99), rgba(15, 19, 24, 0.99));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}
.aiBriefingPreviewHeader,
.aiBriefingSignal {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.aiBriefingPreviewHeader {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.aiBriefingPreviewKicker,
.aiBriefingPreviewState,
.aiBriefingCardIndex {
  color: #9ecbff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.aiBriefingPreviewState {
  color: var(--muted);
}
.aiBriefingSignal {
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(34, 42, 51, 0.82);
}
.aiBriefingSignal:last-child {
  border-bottom: 0;
}
.aiBriefingSignal span {
  color: var(--muted);
  line-height: 1.45;
}
.aiBriefingSignal strong {
  max-width: 190px;
  text-align: right;
  line-height: 1.45;
}
.aiBriefingGeneratedPreview {
  align-content: center;
}
.aiBriefingGeneratedPreview h2,
.aiBriefingGeneratedPreview p,
.aiBriefingGeneratedCard h3,
.aiBriefingGeneratedCard p {
  margin: 0;
}
.aiBriefingGeneratedPreview h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.18;
}
.aiBriefingGeneratedPreview p,
.aiBriefingGeneratedCard p {
  color: #c7d2df;
  line-height: 1.65;
}
.aiBriefingUnreadPill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(158, 203, 255, 0.42);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.12);
  color: #cfe8ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}
.aiBriefingActivation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 20px;
  margin-bottom: 0;
  padding: 22px;
  border-color: rgba(158, 203, 255, 0.32);
  background: #0f1318;
}
.aiBriefingActivationCopy {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.aiBriefingActivationCopy h2,
.aiBriefingActivationCopy p,
.aiBriefingProgressIntro {
  margin: 0;
}
.aiBriefingActivationCopy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.aiBriefingActivationCopy p,
.aiBriefingTimezoneNote,
.aiBriefingProgressIntro {
  color: #c7d2df;
  line-height: 1.65;
}
.aiBriefingTimezoneNote a {
  color: #9ecbff;
  font-weight: 800;
}
.aiBriefingActivationActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.aiBriefingProgress {
  display: grid;
  gap: 10px;
  align-content: center;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.aiBriefingProgressMetric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.aiBriefingProgressMetric span {
  color: var(--muted);
  line-height: 1.45;
}
.aiBriefingProgressMetric strong {
  white-space: nowrap;
}
.aiBriefingProgressBar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.aiBriefingProgressBar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #9ecbff;
}
.aiBriefingSection {
  display: grid;
  gap: 14px;
}
.aiBriefingSectionHeader h2 {
  margin: 6px 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}
.aiBriefingCardGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.aiBriefingConceptCard,
.aiBriefingCadenceCard {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-bottom: 0;
  padding: 20px;
}
.aiBriefingConceptCard h3,
.aiBriefingConceptCard p,
.aiBriefingCadenceCard h3 {
  margin: 0;
}
.aiBriefingConceptCard p {
  color: #c7d2df;
  line-height: 1.6;
}
.aiBriefingCadenceGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.aiBriefingGeneratedGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.aiBriefingTabs {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.aiBriefingTab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.aiBriefingTab.active {
  background: rgba(158, 203, 255, 0.12);
  color: var(--text);
}
.aiBriefingTab.disabled {
  cursor: default;
  opacity: 0.65;
}
.aiBriefingWorkspace {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.aiBriefingHistoryPanel,
.aiBriefingDetailPanel {
  min-width: 0;
}
.aiBriefingHistoryPanel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f1318;
}
.aiBriefingHistoryHeader,
.aiBriefingDetailHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.aiBriefingHistoryHeader h3,
.aiBriefingDetailHeader h2,
.aiBriefingDetailHeader p,
.aiBriefingSummary,
.aiBriefingEmptyState h2,
.aiBriefingEmptyState h3,
.aiBriefingEmptyState p {
  margin: 0;
}
.aiBriefingHistoryHeader span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.aiBriefingHistoryList {
  display: grid;
  gap: 8px;
}
.aiBriefingHistoryItem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
}
.aiBriefingHistoryItem:hover,
.aiBriefingHistoryItem.active {
  border-color: rgba(158, 203, 255, 0.36);
  background: rgba(88, 166, 255, 0.09);
}
.aiBriefingHistoryItem span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.aiBriefingHistoryItem strong {
  font-size: 14px;
  line-height: 1.3;
}
.aiBriefingHistoryItem small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.aiBriefingHistoryItem em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(158, 203, 255, 0.12);
  color: #cfe8ff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.aiBriefingDetail {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.aiBriefingDetailHeader {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.aiBriefingDetailHeader h2 {
  margin-top: 6px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}
.aiBriefingDetailHeader p,
.aiBriefingSummary {
  color: #c7d2df;
  line-height: 1.65;
}
.aiBriefingSummary {
  max-width: 78ch;
}
.aiBriefingEmptyState {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(154, 167, 183, 0.32);
  border-radius: 16px;
  background: rgba(15, 19, 24, 0.72);
}
.aiBriefingEmptyState p {
  color: var(--muted);
  line-height: 1.65;
}
.aiBriefingDetailEmpty,
.aiBriefingMonthlyPlaceholder {
  min-height: 150px;
  align-content: center;
}
.aiBriefingGeneratedCard {
  display: grid;
  gap: 12px;
  align-content: start;
  margin-bottom: 0;
  padding: 20px;
}
.aiBriefingCoachingCard {
  border-color: rgba(158, 203, 255, 0.34);
}
.aiBriefingPhilosophy {
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(158, 203, 255, 0.32);
  border-radius: 16px;
  background: #0f1318;
}
.aiBriefingPhilosophy p {
  margin: 0;
  max-width: 74ch;
  color: #d6e1ec;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}
.aiBriefingPhilosophy .aiBriefingEmailNote {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.settingsPanel {
  display: grid;
  gap: 16px;
}
.settingsSection {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
  padding: 14px;
}
.settingsAccordion {
  padding: 0;
  overflow: hidden;
}
.settingsAccordionSummary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
}
.settingsAccordionSummary::-webkit-details-marker {
  display: none;
}
.settingsAccordionSummary::before {
  content: "\25B6";
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  transition: transform 120ms ease;
}
.settingsAccordion[open] > .settingsAccordionSummary::before {
  transform: rotate(90deg);
}
.settingsAccordionSummary:hover,
.settingsAccordionSummary:focus-visible {
  background: #141a21;
}
.settingsAccordionSummary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.settingsAccordionHeading {
  display: grid;
  gap: 4px;
}
.settingsAccordionTitle {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}
.settingsAccordionDescription {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.settingsAccordionContent {
  padding: 0 14px 14px 38px;
}
.settingsCurrentValue {
  margin: 0 0 12px;
  color: var(--muted);
}
.settingsIntegrationsList {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.integrationCard {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: #111820;
}
.integrationCard h3,
.integrationCard h4 { margin-top: 0; }
.integrationCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.integrationAccessGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0;
}
.integrationAccessGrid ul { margin-bottom: 0; padding-left: 20px; }
.integrationNotice {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(62, 180, 108, .12);
}
.integrationNotice.error { background: rgba(181, 71, 71, .14); }
.calendarChoices {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.calendarChoice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.calendarChoice input { width: auto; }
.calendarChoice .pill { margin-left: 6px; }
.disconnectConfirmation { margin-top: 14px; }
.disconnectConfirmation > summary { display: inline-block; cursor: pointer; list-style: none; }
.disconnectConfirmation > summary::-webkit-details-marker { display: none; }
.disconnectConfirmationBody {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--danger);
  border-radius: 8px;
}
.integrationReconnect,
.integrationUnavailable,
.futureIntegration { margin-top: 14px !important; }
.workingHoursGrid { display: grid; gap: 0.35rem; max-width: 47rem; }
.workingHoursRow {
  display: grid;
  grid-template-columns: 2.25rem 6.25rem 7.75rem 1.5rem 7.75rem minmax(6.5rem, 1fr);
  align-items: center;
  column-gap: 0.55rem;
  min-height: 2.5rem;
}
.workingHoursToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-height: 2.25rem;
  margin: 0;
  cursor: pointer;
}
.workingHoursToggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #38d985;
  cursor: pointer;
}
.workingHoursDayLabel { font-weight: 600; }
.workingHoursTime { margin: 0; }
.workingHoursTime input[type="time"] { width: 7.75rem; min-width: 0; }
.workingHoursSeparator { text-align: center; color: var(--muted); }
.workingHoursOff { margin: 0 !important; white-space: nowrap; }
.workingHoursUnavailable h3 { margin-bottom: 0.4rem; }
.workingHoursUnavailable .muted { margin-bottom: 0; }
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 700px) {
  .integrationAccessGrid { grid-template-columns: 1fr; }
  .integrationCardHeader { display: block; }
  .workingHoursRow {
    grid-template-columns: 2.25rem minmax(5.5rem, 1fr) minmax(6.75rem, 1fr) 1.25rem minmax(6.75rem, 1fr);
    column-gap: 0.35rem;
    row-gap: 0.2rem;
  }
  .workingHoursTime input[type="time"] { width: 100%; }
  .workingHoursOff { grid-column: 2 / -1; }
}
.settingsSection .muted {
  margin: 0 0 12px;
}
.settingsSubheading {
  margin-bottom: 12px;
  font-size: 15px;
}
.settingsSectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.settingsForm {
  margin-top: 12px;
}
.settingsActions {
  margin-top: 14px;
  align-items: center;
}
.settingsList {
  display: grid;
  gap: 10px;
}
.settingsListEmpty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  background: #0c1117;
}
.settingsRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c1117;
  padding: 12px 14px;
}
.settingsRowInfo {
  min-width: 0;
}
.settingsRowTitle {
  font-weight: 600;
}
.settingsRowMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.settingsRowActions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.statusBadge {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.billingNotice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1117;
}
.billingNotice p {
  margin: 6px 0 0;
}

.toggle { display:flex; align-items:center; gap: 8px; color: var(--muted); font-size: 13px; }

.toggleSwitch {
  position: relative;
  gap: 12px;
  align-items: center;
}
.toggleSwitch > span:last-child {
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  min-width: 0;
}
.switchInput {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
.switchTrack {
  position: relative;
  width: 66px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1a2028;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.switchThumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #d9e1ec;
  transition: transform 0.2s ease;
}
.switchState {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #0f141a;
  pointer-events: none;
}
.switchOn {
  right: 8px;
  opacity: 0;
}
.switchOff {
  right: 7px;
  opacity: 0.75;
}
.switchInput:checked + .switchTrack {
  background: #2f8f66;
  border-color: #2f8f66;
}
.switchInput:checked + .switchTrack .switchThumb {
  transform: translateX(36px);
}
.switchInput:checked + .switchTrack .switchOn {
  opacity: 0.9;
}
.switchInput:checked + .switchTrack .switchOff {
  opacity: 0;
}
.switchInput:focus-visible + .switchTrack {
  outline: 2px solid #9ecbff;
  outline-offset: 2px;
}

.tableWrap { overflow:auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); text-align:left; font-size: 12px; }
.table td {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.adminPageCard {
  display: grid;
  gap: 18px;
}
.adminPageNotice {
  margin-bottom: 0;
}
.adminPageHeader,
.adminSectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.adminUsageMetricGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.adminUsageMetricGrid > div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c1117;
}
.adminUsageMetricGrid strong {
  font-size: 24px;
}
@media (max-width: 900px) {
  .adminUsageMetricGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .adminUsageMetricGrid {
    grid-template-columns: 1fr;
  }
}
.adminInviteLayout,
.adminInviteDetailGrid {
  display: grid;
  gap: 16px;
}
.adminInviteLayout {
  grid-template-columns: minmax(360px, 450px) minmax(0, 1fr);
}
.adminLifecycleLayout {
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
}
.adminLifecycleLayout > * {
  min-width: 0;
}
.adminInviteDetailGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.adminCreateCard {
  align-content: start;
}
.adminFormIntro {
  margin: 0 0 2px;
}
.adminInviteCreateForm {
  gap: 14px;
}
.adminCreatePrimaryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.adminToggleRow {
  display: grid;
  gap: 12px;
  align-content: start;
}
.adminAdvancedFields {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0c1117;
  overflow: hidden;
}
.adminAdvancedFields summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.adminAdvancedFields summary::-webkit-details-marker {
  display: none;
}
.adminAdvancedFields summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  margin-right: 8px;
  color: #9ecbff;
}
.adminAdvancedFields[open] summary::before {
  content: "-";
}
.adminAdvancedFieldsBody {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.adminWideField {
  grid-column: 1 / -1;
}
.adminCreateActions {
  align-items: center;
}
.adminInviteLink {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.adminInviteLink:hover {
  color: #9ecbff;
}
.adminTableMeta {
  margin-top: 6px;
  font-size: 12px;
  max-width: 34ch;
}
.adminStatus {
  color: var(--text);
}
.adminStatusActive {
  border-color: rgba(47, 143, 102, 0.5);
  background: rgba(47, 143, 102, 0.16);
}
.adminStatusInactive {
  border-color: rgba(154, 167, 183, 0.4);
  background: rgba(154, 167, 183, 0.08);
}
.adminStatusExpired,
.adminStatusUsedUp {
  border-color: rgba(123, 47, 47, 0.55);
  background: rgba(123, 47, 47, 0.18);
}
.adminMaxUsesForm {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.adminMaxUsesForm input {
  width: 88px;
  min-width: 88px;
}
.adminInlineForm {
  margin-top: 16px;
}
.adminTextBlock {
  min-height: 72px;
  white-space: pre-wrap;
  align-items: flex-start;
  padding-top: 12px;
}
.adminInviteTable {
  min-width: 980px;
}
.adminInviteTable td {
  overflow-wrap: normal;
  word-break: normal;
}
.adminBillingDiagnosticsPage,
.adminBillingDiagnosticsLayout,
.adminBillingDiagnosticsLayout > *,
.adminBillingDiagnosticsTableWrap {
  min-width: 0;
}
.adminBillingDiagnosticsLayout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.adminBillingSummaryCard,
.adminBillingFlaggedUsersCard {
  width: 100%;
}
.adminBillingSummaryGrid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.adminBillingSummaryGrid > div {
  display: grid;
  grid-template-rows: minmax(34px, auto) auto;
  align-content: start;
  gap: 8px;
}
.adminBillingSummaryGrid label {
  display: flex;
  align-items: flex-end;
  min-height: 34px;
  line-height: 1.25;
  white-space: normal;
  text-wrap: balance;
}
.adminBillingDiagnosticsTableWrap {
  max-width: 100%;
}
.adminBillingDiagnosticsTable {
  min-width: 920px;
  table-layout: fixed;
}
.adminBillingDiagnosticsTable th,
.adminBillingDiagnosticsTable td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.adminBillingDiagnosticsTable .adminTableMeta {
  max-width: none;
}
.adminBillingUserCell {
  width: 22%;
}
.adminBillingStripeCell {
  width: 36%;
}
.adminBillingReasonsCell {
  width: 30%;
  font-size: 13px;
  line-height: 1.45;
}
.adminBillingReasonsCell > div + div {
  margin-top: 6px;
}
.adminInviteCodeCell {
  min-width: 180px;
}
.adminInviteStatusCell,
.adminInviteUsesCell,
.adminInviteAccessCell,
.adminInviteDateCell {
  white-space: nowrap;
}
.adminInviteActionsCell {
  min-width: 280px;
}
.adminLifecyclePreview {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin-top: 20px;
}
.adminLifecyclePreview h3 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.adminLifecyclePreviewBlock {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.adminLifecyclePreviewBlock h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.adminLifecyclePreview pre,
.adminLifecycleHtmlPreview {
  max-width: 100%;
  min-width: 0;
  max-height: 320px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c1117;
  padding: 12px;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.adminLifecyclePreview pre {
  margin: 0;
  white-space: pre-wrap;
}
.adminFocusScoreRawJson {
  max-width: 100%;
  max-height: 420px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c1117;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.adminLifecycleHtmlPreview,
.adminLifecycleHtmlPreview * {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.adminLifecycleHtmlPreview p {
  margin: 0 0 10px;
}
.adminLifecycleHtmlPreview p:last-child {
  margin-bottom: 0;
}
.adminLifecycleHtmlPreview a {
  max-width: 100%;
}
.adminTableActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}
.adminLifecycleActions {
  justify-content: flex-start;
  gap: 10px 12px;
  flex-wrap: wrap;
}
.adminLifecycleActions .muted {
  min-width: 0;
  overflow-wrap: anywhere;
}
.adminLifecycleEmptyState {
  display: grid;
  gap: 6px;
  min-height: 160px;
  align-content: center;
  justify-items: center;
  padding: 28px 18px;
  border: 1px dashed rgba(154, 167, 183, 0.28);
  border-radius: 8px;
  background: rgba(12, 17, 23, 0.55);
  text-align: center;
}
.adminLifecycleEmptyState p {
  margin: 0;
}
.adminLifecycleAttemptsList {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.adminLifecycleAttempt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 17, 23, 0.55);
}
.adminLifecycleAttemptMain {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.adminLifecycleAttemptTime {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.adminLifecycleAttemptRecipient {
  color: var(--text);
  font-weight: 600;
}
.adminLifecycleAttemptTemplate {
  color: var(--muted);
  font-size: 12px;
}
.adminLifecycleAttemptMessage {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.adminLifecycleAttemptRecipient,
.adminLifecycleAttemptTemplate,
.adminLifecycleAttemptMessage {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.adminLifecycleStatus {
  justify-self: end;
  color: var(--text);
  text-transform: capitalize;
  white-space: nowrap;
}
.adminLifecycleStatusSent {
  border-color: rgba(47, 143, 102, 0.5);
  background: rgba(47, 143, 102, 0.16);
}
.adminLifecycleStatusFailed {
  border-color: rgba(123, 47, 47, 0.55);
  background: rgba(123, 47, 47, 0.18);
}
.adminLifecycleStatusSkipped {
  border-color: rgba(190, 148, 70, 0.52);
  background: rgba(190, 148, 70, 0.14);
}
.adminAiBriefingsPage {
  gap: 18px;
}
.adminAiBriefingLayout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}
.adminAiFullWidthPanel {
  grid-column: 1 / -1;
}
.adminAiControlGrid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.45fr);
  gap: 14px;
}
.adminAiMetricGrid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}
.adminAiOperationsGrid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.adminAiReadinessList {
  display: grid;
  gap: 10px;
}
.adminAiReadinessRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0c1117;
}
.adminAiAttentionRow {
  background: rgba(190, 148, 70, 0.08);
}
.adminAiPagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.adminAiPaginationBtn {
  min-width: 92px;
  justify-content: center;
}
.adminAiPaginationDisabled {
  opacity: 0.5;
  pointer-events: none;
}
.adminAiPaginationState {
  min-width: 92px;
  text-align: center;
}
.adminAiReason {
  font-weight: 700;
  margin: 0;
}
.adminAiFieldHelp {
  display: block;
  font-size: 12px;
  margin-top: 6px;
}
.adminAiStatus {
  color: var(--text);
  white-space: nowrap;
}
.adminAiStatusGenerated,
.adminAiStatusConfigured,
.adminAiStatusDefault,
.adminAiStatusNotified,
.adminAiStatusRead,
.adminAiResultGenerated {
  border-color: rgba(47, 143, 102, 0.5);
  background: rgba(47, 143, 102, 0.16);
}
.adminAiStatusSkipped,
.adminAiStatusNotnotified,
.adminAiStatusNotNotified,
.adminAiStatusUnread,
.adminAiStatusSkippednotification,
.adminAiStatusSkippedNotification,
.adminAiResultSkipped {
  border-color: rgba(190, 148, 70, 0.52);
  background: rgba(190, 148, 70, 0.14);
}
.adminAiStatusFailed,
.adminAiStatusMissing,
.adminAiStatusFailednotification,
.adminAiStatusFailedNotification,
.adminAiResultFailed {
  border-color: rgba(123, 47, 47, 0.55);
  background: rgba(123, 47, 47, 0.18);
}
.adminAiErrorCell {
  max-width: 280px;
  white-space: normal;
  word-break: break-word;
}
.adminAiBriefingsTable td {
  vertical-align: top;
}
.adminAiNowrapCell {
  white-space: nowrap;
}
.adminTableManageBtn {
  white-space: nowrap;
}
@media (max-width: 960px) {
  .adminInviteLayout,
  .adminInviteDetailGrid,
  .adminAiBriefingLayout {
    grid-template-columns: 1fr;
  }
  .adminBillingDiagnosticsTable {
    min-width: 820px;
  }
  .adminBillingSummaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .adminBillingSummaryGrid > div {
    grid-template-rows: minmax(30px, auto) auto;
  }
  .adminBillingSummaryGrid label {
    min-height: 30px;
  }
  .adminCreatePrimaryGrid {
    grid-template-columns: 1fr;
  }
	  .adminAiControlGrid,
	  .adminAiMetricGrid,
	  .adminAiOperationsGrid {
	    grid-template-columns: 1fr;
	  }
  .adminToggleRow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .adminBillingSummaryGrid {
    grid-template-columns: 1fr;
  }
  .adminBillingSummaryGrid > div {
    grid-template-rows: auto auto;
  }
  .adminBillingSummaryGrid label {
    min-height: 0;
  }
  .adminBillingDiagnosticsTable {
    min-width: 720px;
  }
}

.reportsPage {
  overflow-x: clip;
}

.focusScoreHero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  margin: 18px 0 22px;
  padding: 22px;
  border: 1px solid rgba(130, 232, 82, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(130, 232, 82, 0.08), transparent 42%),
    #0f141a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.focusScoreHeroMain {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-width: 0;
}
.focusScoreRingWrap {
  display: grid;
  place-items: center;
}
.focusScoreRing {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.focusScoreRing svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.focusScoreRingTrack,
.focusScoreRingProgress {
  fill: none;
  stroke-width: 10;
}
.focusScoreRingTrack {
  stroke: #252f3a;
}
.focusScoreRingProgress {
  stroke: #82e852;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s ease;
  filter: drop-shadow(0 0 10px rgba(130, 232, 82, 0.28));
}
.focusScoreRingProgressBuilding {
  stroke: rgba(130, 232, 82, 0.72);
}
.focusScoreRingText {
  position: absolute;
  inset: 18%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.focusScoreRingLabel,
.focusScoreOutOf {
  color: var(--muted);
  font-weight: 600;
}
.focusScoreRingLabel {
  font-size: 14px;
}
.focusScoreRingText strong {
  color: #82e852;
  font-size: 64px;
  line-height: 1;
  margin: 8px 0 4px;
}
.focusScoreRingBuilding .focusScoreRingText strong {
  font-size: 48px;
}
.focusScoreOutOf {
  font-size: 18px;
}
.focusScoreHeroCopy {
  min-width: 0;
}
.focusScoreHeroCopy h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.15;
}
.focusScoreBand {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(130, 232, 82, 0.36);
  border-radius: 999px;
  color: #9cf36b;
  background: rgba(130, 232, 82, 0.08);
  font-weight: 700;
  line-height: 1.2;
}
.focusScoreTrend {
  margin: 10px 0;
  color: var(--text);
  font-weight: 700;
}
.focusScoreTrendPositive {
  color: #9cf36b;
}
.focusScoreTrendDown {
  color: #ffc36a;
}
.focusScoreBuildStats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 8px;
}
.focusScoreBuildStats > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.focusScoreBuildStats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.focusScoreBuildStats strong {
  display: block;
  margin-top: 6px;
  color: #82e852;
  font-size: 24px;
}
.focusScoreComponents {
  padding-left: 24px;
  border-left: 1px solid rgba(255,255,255,0.12);
  min-width: 0;
}
.focusScoreComponents h3 {
  margin: 0 0 14px;
}
.focusScoreComponentList {
  display: grid;
  gap: 12px;
}
.focusScoreComponentRow {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(80px, 1fr) 38px;
  gap: 12px;
  align-items: center;
}
.focusScoreComponentText {
  min-width: 0;
}
.focusScoreComponentText span {
  display: block;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.focusScoreComponentText em {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.focusScoreComponentBar {
  height: 8px;
  border-radius: 999px;
  background: #252f3a;
  overflow: hidden;
}
.focusScoreComponentBar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #82e852;
}
.focusScoreComponentRow > strong {
  color: #9cf36b;
  text-align: right;
}
.focusScoreNextFocus {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-left: 3px solid rgba(130, 232, 82, 0.72);
  border-radius: 6px;
  background: rgba(130, 232, 82, 0.055);
}
.focusScoreNextFocusCopy {
  min-width: 0;
}
.focusScoreNextFocus h3 {
  margin: 0 0 5px;
  color: #9cf36b;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.focusScoreNextFocus p {
  margin: 0;
  line-height: 1.45;
}
.focusScoreNextFocus p + p {
  margin-top: 4px;
  font-size: 13px;
}
.focusScoreNextFocusCta {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 13px;
}

.reportsSummaryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reportsStatCard {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
  padding: 14px;
  min-width: 0;
}
.reportsStatLabel {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.reportsStatValue {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.reportsStatMeta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.reportsBehaviourTableWrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.reportsChartWrap {
  position: relative;
  min-height: 260px;
}
.reportsChartWrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.reportsCellMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.reportsSectionNote {
  margin: 10px 2px 0;
  font-size: 12px;
}
.calendarIntelligence {
  margin-top: 16px;
}
.calendarIntelligenceHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.calendarIntelligenceHeading h2,
.calendarDailyComparison h3,
.calendarBalance h3 {
  margin-top: 0;
}
.calendarIntelligenceHeading p {
  margin-bottom: 0;
}
.calendarIntelligencePeriod {
  flex: 0 0 auto;
  padding-top: 5px;
  font-size: 13px;
  text-align: right;
}
.calendarIntelligenceState {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.calendarIntelligenceState span {
  display: block;
  margin-top: 4px;
}
.calendarIntelligenceGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.calendarMetricCard .reportsStatMeta {
  margin-bottom: 0;
  line-height: 1.4;
}
.calendarMetricSecondary {
  margin-top: 5px;
  color: var(--text);
  font-size: 13px;
}
.protectedFocusReporting,
.calendarBalance,
.calendarDailyComparison {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.protectedFocusReporting > h3 { margin-bottom: 4px; }
.protectedFocusReporting .calendarDailyTable { margin-top: 16px; }
.calendarBalanceHeading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calendarBalanceRatio {
  color: var(--muted);
  font-size: 13px;
}
.calendarBalanceValues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.calendarBalanceValues > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.calendarBalanceValues strong {
  font-size: 18px;
}
.calendarFocusKey,
.calendarScheduledKey {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}
.calendarFocusKey { background: #38d985; }
.calendarScheduledKey { background: #9ecbff; }
.calendarLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
  font-size: 13px;
}
.calendarLegend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calendarDailyChartWrap {
  min-height: 300px;
}
.calendarDailyTable {
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
}

@media (max-width: 768px) {
  .focusScoreHero {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .focusScoreHeroMain {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .focusScoreRing {
    width: min(100%, 220px);
  }
  .focusScoreComponents {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .focusScoreComponentRow {
    grid-template-columns: minmax(0, 1fr) 42px;
  }
  .focusScoreComponentBar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .focusScoreBuildStats {
    grid-template-columns: 1fr;
  }
  .focusScoreNextFocus {
    align-items: flex-start;
    flex-direction: column;
  }
  .reportsSummaryGrid { grid-template-columns: 1fr; }
  .calendarIntelligenceHeading,
  .calendarBalanceHeading {
    flex-direction: column;
  }
  .calendarIntelligencePeriod { text-align: left; }
  .calendarIntelligenceGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calendarBalanceValues { grid-template-columns: 1fr; }
  .settingsGrid { grid-template-columns: 1fr; }
  .settingsRow {
    flex-direction: column;
    align-items: flex-start;
  }
  .settingsRowActions {
    justify-content: flex-start;
  }
}

.historyPage {
  overflow-x: clip;
}
.historyToolbar { justify-content: space-between; align-items: flex-end; }
.historyToolbar > .btn {
  flex: 0 0 auto;
}
.historyFilters {
  justify-content: flex-end;
  flex: 1 1 460px;
}
.historyFilter {
  flex: 1 1 220px;
  min-width: 220px;
}
.historyFilter label { margin: 0 0 6px; }
.historyFilter select { min-width: 0; }
.historyGroups { display: grid; gap: 10px; margin-top: 12px; }
.historyWeek {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.historyWeek > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text);
}
.historyWeek > summary::-webkit-details-marker { display: none; }
.historyWeek > summary::before {
  content: "▸";
  color: var(--muted);
  margin-right: 6px;
}
.historyWeek[open] > summary::before { content: "▾"; }
.historyWeek > summary:focus-visible {
  outline: 2px solid #9ecbff;
  outline-offset: 2px;
  border-radius: 10px;
}
.historyWeekTitle { flex: 1; font-weight: 600; }
.historyWeekCount { white-space: nowrap; }
.historyWeekTableWrap {
  padding: 0 10px 10px;
  overflow: visible;
}
.historyActionsCell {
  white-space: nowrap;
  padding-top: 8px;
}
.historyActions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.historyActions .btn {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
}
.historyActionsLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.historyActionsRow td {
  border-bottom: 1px solid var(--border);
  padding-top: 6px;
  padding-bottom: 10px;
}
.historySessionRow td {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.historyStatusHeader,
.historyStatusCell {
  text-align: center;
}
.historyStatusDot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}
.historyStatusDotRunning {
  background: #4da3ff;
}
.historyStatusDotCompleted {
  background: #38d985;
}
.historyStatusDotCalendar {
  background: #a9b7c6;
}
.historyTypeBadge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.historyTypeCalendar::before {
  content: "▦";
  margin-right: 5px;
  font-size: 13px;
}
.historyTypeCalendar {
  color: #d8e2ec;
  background: rgba(169, 183, 198, 0.08);
}
.historyTypeFocus {
  color: #c8f6df;
  background: rgba(56, 217, 133, 0.07);
}
.historyCalendarRow {
  background: rgba(169, 183, 198, 0.025);
}
.historyContextCell {
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}
.historyLoadMore {
  display: block;
  margin: 14px auto 0;
}
.historyLoadMore.hidden {
  display: none;
}
.historyResultCell {
  display: inline-grid;
  max-width: 100%;
  align-items: start;
  justify-items: start;
  text-align: left;
}
.historyResultOutcome {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  max-width: 100%;
}

.reportsControls {
  align-items: flex-end;
}
.reportsModeBar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.reportsModeBtn.is-active {
  background: var(--text);
  color: #0f141a;
  border-color: var(--text);
}
.reportsControl {
  flex: 1 1 220px;
  min-width: 220px;
}
.reportsControl .btn {
  width: 100%;
  margin-top: 10px;
}
.reportsControl.is-dimmed {
  opacity: 0.45;
}
.reportsControl.is-dimmed input,
.reportsControl.is-dimmed button {
  pointer-events: none;
}
.reportsPicker {
  position: relative;
}
.reportsPicker::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.92;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7fbff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.reportsPicker input[type="date"],
.reportsPicker input[type="month"] {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-right: 44px;
  color-scheme: dark;
}
.reportsPicker input[type="date"]::-webkit-calendar-picker-indicator,
.reportsPicker input[type="month"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .historyToolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .historyToolbar > .btn {
    width: 100%;
  }
  .historyFilters {
    flex: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    justify-content: stretch;
    align-content: start;
    gap: 10px;
  }
  .historyFilter {
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .historyFilter label {
    margin-bottom: 6px;
  }
  .historyFilter select {
    min-width: 0;
  }
  .reportsControls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .reportsControl {
    flex: none;
    min-width: 0;
    width: 100%;
  }
  .reportsControl .btn {
    margin-top: 8px;
  }
  .reportsSummaryGrid {
    grid-template-columns: 1fr;
  }
  .reportsChartWrap {
    min-height: 240px;
  }
  .calendarIntelligenceState {
    align-items: flex-start;
    flex-direction: column;
  }
  .calendarIntelligenceState .btn { width: 100%; }
  .calendarIntelligenceGrid { grid-template-columns: 1fr; }
  .calendarDailyChartWrap { min-height: 230px; }
  .heatmap {
    padding: 8px;
  }
}

#topProjectsList {
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .historyWeek > summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .historyWeekCount {
    white-space: normal;
  }
  .historyWeekTableWrap {
    padding: 0 12px 12px;
  }
  .historyTable thead {
    display: none;
  }
  .historyTable,
  .historyTable tbody,
  .historyTable tr,
  .historyTable td {
    display: block;
    width: 100%;
  }
  .historyTable tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0c1117;
    padding: 12px 14px;
  }
  .historyTable tr + tr:not(.historyActionsRow) {
    margin-top: 12px;
  }
  .historyTable tr.historyActionsRow {
    border-top: 0;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
    padding-top: 0;
  }
  .historyTable tr.historySessionRow:has(+ .historyActionsRow) {
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
  }
  .historyTable td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 9px 0;
  }
  .historyTable td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }
  .historyTable td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .historyTable .historyActionsCell {
    min-width: 0;
    white-space: normal;
    padding-top: 12px;
  }
  .historyActionsLabel {
    display: none;
  }
  .historyActions {
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
  }
  .historyActions .btn {
    flex: 1 1 calc(50% - 5px);
    min-height: 38px;
  }
}

@media (max-width: 560px) {
  .historyFilters {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.pill { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 12px; display:inline-block; white-space: nowrap; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: var(--modal-gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 30;
}
.modal.hidden { display:none; }
.modalCard {
  width: min(520px, calc(100vw - (var(--modal-gutter) * 2)));
  max-width: 100%;
  max-height: min(680px, calc(100dvh - (var(--modal-gutter) * 2)));
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--card-pad);
  overflow: auto;
  overscroll-behavior: contain;
}
.modalCard.wide {
  width: min(760px, calc(100vw - (var(--modal-gutter) * 2)));
}
.modalCard > * {
  min-width: 0;
}
.modalCard > * + * {
  margin-top: 14px;
}
.modalCard > .modalActions {
  margin-top: 16px;
}
.modalActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.welcomeModalCard {
  border-color: #314152;
  background: linear-gradient(180deg, #141a21 0%, #12161b 100%);
}
.welcomeModalEyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(158, 203, 255, 0.2);
  background: rgba(158, 203, 255, 0.08);
  color: #cfe6ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.welcomeModalBody {
  white-space: pre-line;
}
.welcomeCouponBlock {
  padding: 14px 16px;
  border: 1px solid #47607a;
  border-radius: 14px;
  background: #0d141b;
}
.welcomeCouponLabel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.welcomeCouponCode {
  margin-top: 6px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: 0.08em;
  word-break: break-word;
}
.welcomeCouponHelper {
  margin-top: 10px;
}

@media (max-width: 768px) {
  .topbar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .mobileNavToggle {
    display: inline-flex;
    flex: 0 0 auto;
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: auto;
    padding: 12px 18px 16px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: #0c1015;
    border-bottom: 1px solid var(--border);
    overflow-x: hidden;
  }
  .topbar[data-mobile-nav-open="true"] .nav {
    display: flex;
  }
  .nav a,
  .nav details,
  .nav form {
    width: 100%;
  }
  .navInlineForm {
    display: block;
  }
  .nav form {
    display: block !important;
  }
  .nav a {
    display: block;
    padding: 12px 0;
    line-height: 1.4;
  }
  .navBadgeLink {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  .navMenu summary {
    padding: 12px 0;
    line-height: 1.4;
  }
  .navSubmenu {
    gap: 0;
    padding: 0 0 0 14px;
    background: transparent;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }
  .navSubmenu a {
    padding: 10px 0;
  }
  .nav .btn {
    width: 100%;
  }
  .container {
    padding: 0 var(--container-pad-mobile) 32px;
  }
  .siteFooter {
    padding: 0 var(--container-pad-mobile) 22px;
  }
  .card {
    padding: var(--card-pad-mobile);
  }
  .timerPageCard {
    padding: 14px;
  }
  .fieldRow {
    flex-wrap: wrap;
  }
  .fieldRow > .btn,
  .fieldActionBtn,
  .timerCustomDuration .btn {
    width: 100%;
  }
  .fieldActionBtn {
    justify-content: center;
  }
  .timerQuickActions {
    gap: 12px;
  }
  .timerQuickBtn {
    flex: 1 1 calc(50% - 6px);
  }
  .timerCustomDuration {
    flex-basis: 100%;
    width: 100%;
    flex-wrap: wrap;
  }
  .timerControlsStack {
    gap: 6px;
  }
  .timerControlsDivider {
    display: none;
  }
  .timerToggleGroup {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .timerToggleGroup .toggleSwitch {
    flex: 0 0 auto;
    align-items: flex-start;
    min-height: 0;
    height: auto;
  }
  .timerToggleGroup .toggleSwitch > span:last-child {
    padding-top: 2px;
  }
  .timerBox {
    margin-top: 0;
  }
  .timerControlRow .btn {
    flex: 1 1 calc(50% - 6px);
  }
  .settingsSection {
    padding: 12px;
  }
  .authShell {
    width: 100%;
    margin: 12px auto 20px;
  }
  .authPageMain {
    padding-bottom: 24px;
  }
  .authShellRegister {
    margin-top: 12px;
  }
  .registerLayout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .registerFormCard,
  .registerMarketingInner {
    padding: 22px;
  }
  .registerMarketingPanel {
    order: 2;
  }
  .loginLayout {
    gap: 16px;
  }
  .loginFormCard,
  .loginMarketingInner {
    padding: 22px;
  }
  .loginHeader h1 {
    font-size: clamp(1.85rem, 8vw, 2.25rem);
  }
  .registerHeader h1,
  .registerMarketingPanel h2 {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
  }
  .registerHeader {
    margin-bottom: 18px;
  }
  .registerNameGrid {
    grid-template-columns: 1fr;
  }
  .authHeader {
    gap: 6px;
    margin-bottom: 16px;
  }
  .authForm {
    gap: 12px;
  }
  .authFooter {
    gap: 8px;
    margin-top: 14px;
  }
  .modal {
    align-items: flex-end;
    padding: 12px;
  }
  .modalCard,
  .modalCard.wide {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }
  .modalCard > * + * {
    margin-top: 12px;
  }
  .modalActions .btn {
    flex: 1 1 calc(50% - 5px);
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad-mobile: 12px;
    --card-pad-mobile: 13px;
    --modal-gutter: 10px;
  }
  .card {
    border-radius: 12px;
  }
  .reportsChartWrap {
    min-height: 220px;
  }
  .heatmap {
    padding: 6px;
  }
  .heatmap-labeled {
    grid-template-columns: 40px repeat(24, minmax(20px, 1fr));
    min-width: 540px;
  }
  .heatmap-day {
    justify-content: flex-start;
    padding-right: 0;
    font-size: 10px;
  }
  .heatmap-hour {
    font-size: 9px;
  }
  .timer {
    font-size: clamp(40px, 13vw, 54px);
    letter-spacing: 0.5px;
    word-break: break-word;
  }
  .timerQuickBtn,
  .timerControlRow .btn,
  .modalActions .btn {
    flex-basis: 100%;
    width: 100%;
  }
  .toggleSwitch {
    gap: 10px;
  }
  .switchTrack {
    flex: 0 0 auto;
  }
  .timerModalCard,
  .modalCard {
    max-height: calc(100dvh - 20px);
  }
  .modalActions {
    flex-direction: column;
  }
  .authShell {
    margin-top: 10px;
  }
  .registerFormCard,
  .registerMarketingInner {
    padding: 18px;
  }
  .loginFormCard,
  .loginMarketingInner {
    padding: 18px;
  }
  .registerLayout {
    gap: 14px;
  }
  .loginHeader {
    margin-bottom: 18px;
  }
  .registerFieldHeader {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .registerMarketingInner {
    gap: 16px;
  }
  .loginMarketingInner {
    gap: 16px;
  }
  .pricingPageMain {
    gap: 20px;
  }
  .pricingHero {
    padding-top: 18px;
  }
  .pricingHero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .pricingHeroLead {
    font-size: 15px;
  }
  .pricingHeroActions .btn {
    flex: 1 1 180px;
  }
  .pricingPlans {
    grid-template-columns: 1fr;
  }
  .aiBriefingHero,
  .aiBriefingActivation,
  .aiBriefingCardGrid,
  .aiBriefingCadenceGrid,
  .aiBriefingGeneratedGrid,
  .aiBriefingWorkspace {
    grid-template-columns: 1fr;
  }
  .aiBriefingHero {
    gap: 16px;
    padding-top: 18px;
  }
  .aiBriefingHero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }
  .aiBriefingHeroActions .btn {
    flex: 1 1 180px;
  }
  .aiBriefingPreview,
  .aiBriefingConceptCard,
  .aiBriefingCadenceCard,
  .aiBriefingGeneratedCard,
  .aiBriefingHistoryPanel,
  .aiBriefingEmptyState,
  .aiBriefingPhilosophy {
    padding: 18px;
  }
  .aiBriefingProgressMetric {
    align-items: flex-start;
  }
  .aiBriefingTabs {
    width: 100%;
  }
  .aiBriefingTab {
    flex: 1 1 50%;
  }
  .aiBriefingDetailHeader,
  .aiBriefingHistoryHeader {
    display: grid;
  }
  .aiBriefingSignal {
    display: grid;
  }
  .aiBriefingSignal strong {
    max-width: none;
    text-align: left;
  }
  .pricingPlan,
  .pricingBottomCta {
    padding: 18px;
  }
  .pricingTableWrap {
    border-radius: 12px;
  }
  .pricingTable th,
  .pricingTable td {
    padding: 12px;
  }
  .authHeader {
    margin-bottom: 14px;
  }
  .authActions,
  .authFooter {
    gap: 8px;
  }
}

.heatmap {
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f1318;
}
.heatmap-labeled {
  display: grid;
  grid-template-columns: 48px repeat(24, minmax(22px, 1fr));
  gap: 2px;
  min-width: 620px;
}
.heatmap-corner {
  height: 18px;
}
.heatmap-hour {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  font-size: 10px;
  color: var(--muted);
}
.heatmap-day {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.heatcell {
  min-width: 22px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.05);
}

.updatesPage {
  display: grid;
  gap: 18px;
}
.updatesHero {
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.98), rgba(15, 19, 24, 0.98));
}
.updatesHeroCopy {
  max-width: 720px;
}
.updatesEyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #9ecbff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.updatesIntro {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.7;
}
.updatesSection {
  gap: 14px;
}
.updatesSectionHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.updatesSectionNote {
  margin: 0;
}
.releaseCard {
  margin-bottom: 0;
}
.releaseCardLatest {
  padding: 22px;
  border-color: rgba(88, 166, 255, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(20, 26, 33, 0.98), rgba(14, 18, 24, 0.98));
}
.releaseCardCompact {
  padding: 0;
  overflow: hidden;
  background: #0f1318;
}
.releaseMetaRow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.releasePill {
  color: #d7ebff;
  border-color: rgba(158, 203, 255, 0.35);
  background: rgba(88, 166, 255, 0.12);
}
.releaseVersion {
  font-weight: 700;
  color: var(--text);
}
.releaseDate {
  color: var(--muted);
  font-size: 13px;
}
.releaseTitle {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.releaseSummary {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.releaseDetailGroups {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.releaseDetailGroup {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.releaseDetailGroup h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ecbff;
}
.releaseDetailList {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.releaseDetailList li + li {
  margin-top: 8px;
}
.updatesHistory {
  display: grid;
  gap: 12px;
}
.releaseSummaryToggle {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}
.releaseSummaryToggle::-webkit-details-marker {
  display: none;
}
.releaseSummaryHeader {
  min-width: 0;
}
.releaseSummaryToggle .releaseTitle {
  font-size: 18px;
  margin-bottom: 8px;
}
.releaseToggleLabel {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.releaseToggleLabel::after {
  content: "v";
  font-size: 12px;
  transition: transform 0.2s ease;
}
.releaseCardCompact[open] .releaseToggleLabel::after {
  transform: rotate(180deg);
}
.releaseExpandable {
  padding: 0 18px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.roadmapGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.roadmapCard {
  margin-bottom: 0;
  min-height: 100%;
  background: #0f1318;
}
.roadmapCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .updatesHero,
  .releaseCardLatest {
    padding: 18px;
  }
  .updatesSectionHeader,
  .releaseSummaryToggle {
    flex-direction: column;
    align-items: flex-start;
  }
  .releaseToggleLabel {
    margin-top: 4px;
  }
  .roadmapGrid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 821px) {
  .historyTable {
    table-layout: fixed;
  }
  .historyTable th:nth-child(1),
  .historyTable td:nth-child(1) {
    width: 3%;
    white-space: nowrap;
  }
  .historyTable th:nth-child(2),
  .historyTable td:nth-child(2) {
    width: 14%;
    white-space: nowrap;
  }
  .historyTable th:nth-child(3),
  .historyTable td:nth-child(3) {
    width: 12%;
  }
  .historyTable th:nth-child(4),
  .historyTable td:nth-child(4) {
    width: 18%;
  }
  .historyTable th:nth-child(5),
  .historyTable td:nth-child(5) {
    width: 10%;
  }
  .historyTable th:nth-child(6),
  .historyTable td:nth-child(6) {
    width: 12%;
    white-space: normal;
  }
  .historyTable th:nth-child(7),
  .historyTable td:nth-child(7) {
    width: 7%;
    white-space: nowrap;
  }
  .historyTable th[data-label="Result"],
  .historyTable td[data-label="Result"],
  .historyTable th:nth-child(8),
  .historyTable td:nth-child(8) {
    width: 12%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .historyTable th[data-label="Note"],
  .historyTable td[data-label="Note"],
  .historyTable th:nth-child(9),
  .historyTable td:nth-child(9) {
    width: 12%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .historyTable .historyActionsRow td {
    width: auto;
  }
  .historyActionsCell {
    white-space: nowrap;
  }
}

/* =========================================
   Instructions page
   ========================================= */

.instructions-page {
  padding: 2rem 1rem 3rem;
}

.instructions-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.instructions-hero,
.instructions-quickstart,
.instructions-jumpnav,
.instruction-card,
.instructions-detail-section,
.instructions-footer-callout {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.instructions-hero,
.instructions-quickstart,
.instructions-detail-section,
.instructions-footer-callout {
  padding: 1.5rem;
}

.instructions-hero {
  margin-bottom: 1rem;
}

.instructions-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4ade80;
}

.instructions-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.instructions-intro {
  max-width: 760px;
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.92);
}

.instructions-page .section-heading {
  margin-bottom: 1rem;
}

.instructions-page .section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.2;
}

.instructions-page .section-heading p {
  margin: 0.45rem 0 0;
  color: rgba(226, 232, 240, 0.82);
}

.instructions-quickstart {
  margin-bottom: 1rem;
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.quickstart-step {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.quickstart-step h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  line-height: 1.4;
}

.quickstart-step p {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.6;
}

.instructions-jumpnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.instructions-jumpnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: rgba(241, 245, 249, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.instructions-jumpnav a:hover,
.instructions-jumpnav a:focus-visible {
  background: rgba(51, 65, 85, 0.95);
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateY(-1px);
  outline: none;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.instruction-card {
  padding: 1.35rem;
}

.instruction-card-header {
  margin-bottom: 1rem;
}

.instruction-card-header h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.instruction-summary {
  margin: 0.45rem 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 1rem;
}

.instruction-glance {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.instruction-glance h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #4ade80;
}

.instruction-glance ul {
  margin: 0;
  padding-left: 1.1rem;
}

.instruction-glance li {
  margin: 0.35rem 0;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.92);
}

.instruction-card p {
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
}

.instruction-callout {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  line-height: 1.6;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.instruction-callout-tip {
  background: rgba(20, 83, 45, 0.2);
  border-color: rgba(74, 222, 128, 0.2);
}

.instruction-callout-note {
  background: rgba(30, 41, 59, 0.6);
}

.instructions-detail-section {
  margin-bottom: 1rem;
}

.instruction-details-list {
  display: grid;
  gap: 0.75rem;
}

.instruction-detail {
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.instruction-detail summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  position: relative;
}

.instruction-detail summary::-webkit-details-marker {
  display: none;
}

.instruction-detail summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: #4ade80;
}

.instruction-detail[open] summary::after {
  content: "–";
}

.instruction-detail p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.85);
}

.instructions-footer-callout {
  padding: 1.4rem 1.5rem;
}

.instructions-footer-callout h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.instructions-footer-callout p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
}

.instructions-footer-callout a {
  color: #4ade80;
  text-decoration: none;
  font-weight: 600;
}

.instructions-footer-callout a:hover,
.instructions-footer-callout a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 980px) {
  .quickstart-grid,
  .instructions-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .instructions-page {
    padding: 1rem 0.85rem 2rem;
  }

  .instructions-hero,
  .instructions-quickstart,
  .instruction-card,
  .instructions-detail-section,
  .instructions-footer-callout {
    padding: 1.15rem;
    border-radius: 20px;
  }

  .instructions-jumpnav {
    padding: 0.85rem;
    border-radius: 20px;
  }

  .quickstart-grid,
  .instructions-grid {
    grid-template-columns: 1fr;
  }

  .instructions-jumpnav a {
    font-size: 0.9rem;
    padding: 0.58rem 0.8rem;
  }

  .instructions-hero h1 {
    font-size: 2rem;
  }

  .instruction-card-header h2,
  .instructions-footer-callout h2,
  .instructions-page .section-heading h2 {
    font-size: 1.25rem;
  }
}
