:root,
:root[data-theme="jr"] {
  --ui-primary: #2465c6;
  --ui-hover: #1954ad;
  --ui-deep: #102844;
  --ui-background: #f4f7fa;
  --ui-surface: #ffffff;
  --ui-text: #172f4a;
  --ui-muted: #53677b;
  --ui-line: #e4eaf0;
  --ui-soft: #eaf1fc;
  --ui-accent: #d7b477;
  --category-1: #143b70;
  --category-2: #3777cf;
  --category-3: #648bc0;
  --category-4: #a7c3e4;
  --category-5: #b58c4c;
  --category-6: #758493;
  --category-7: #487b9c;
  --category-8: #bdcbdc;
}
:root[data-theme="bosque"] {
  --ui-primary: #176c5a;
  --ui-hover: #105443;
  --ui-deep: #143e34;
  --ui-background: #f6f7f3;
  --ui-surface: #ffffff;
  --ui-text: #263b33;
  --ui-muted: #5d7164;
  --ui-line: #e2e8df;
  --ui-soft: #eaf2e7;
  --ui-accent: #c5ad79;
  --category-1: #176c5a;
  --category-2: #89a66c;
  --category-3: #b9cc94;
  --category-4: #d5a774;
  --category-5: #8a9db4;
  --category-6: #aca0ba;
  --category-7: #c68775;
  --category-8: #6b8d89;
}
:root[data-theme="lavanda"] {
  --ui-primary: #6a4bb1;
  --ui-hover: #52348f;
  --ui-deep: #352650;
  --ui-background: #f7f4fb;
  --ui-surface: #ffffff;
  --ui-text: #362a48;
  --ui-muted: #756281;
  --ui-line: #e8e0ef;
  --ui-soft: #eee7f7;
  --ui-accent: #c4a27a;
  --category-1: #62409e;
  --category-2: #9475c2;
  --category-3: #bca8d8;
  --category-4: #d8c9ec;
  --category-5: #b384a8;
  --category-6: #859ab9;
  --category-7: #ba9777;
  --category-8: #a8b9a3;
}
:root[data-theme="terracota"] {
  --ui-primary: #92523b;
  --ui-hover: #773e2a;
  --ui-deep: #4e342c;
  --ui-background: #faf5f0;
  --ui-surface: #fffdfa;
  --ui-text: #44332c;
  --ui-muted: #6e5f55;
  --ui-line: #e9ded4;
  --ui-soft: #f4e9e0;
  --ui-accent: #bfa170;
  --category-1: #92523b;
  --category-2: #b77c5e;
  --category-3: #d3a98d;
  --category-4: #e2c9b5;
  --category-5: #9a9f7a;
  --category-6: #7b969d;
  --category-7: #a494ad;
  --category-8: #c0b59e;
}
:root {
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --paper: var(--ui-background);
  --white: var(--ui-surface);
  --line: var(--ui-line);
  --green: var(--ui-soft);
  --forest: var(--ui-primary);
  --gold: var(--ui-accent);
}
.appearance-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 22px 0;
}
.appearance-options legend {
  font-weight: 600;
  margin-bottom: 16px;
}
.appearance-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 2px solid var(--ui-line);
  padding: 20px;
  border-radius: 12px;
  background: var(--ui-surface);
  color: var(--ui-text);
  cursor: pointer;
  min-height: 145px;
}
.appearance-card:has(input:checked) {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 1px var(--ui-primary);
}
.appearance-card:focus-within {
  outline: 3px solid var(--ui-primary);
  outline-offset: 3px;
}
.appearance-card input {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--ui-primary);
}
.appearance-card strong {
  padding-right: 24px;
  font-size: 15px;
}
.appearance-card small {
  font-size: 12px;
  color: var(--ui-muted);
  line-height: 1.5;
}
.appearance-swatches {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.appearance-swatches i {
  display: block;
  width: 26px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid #0003;
}
.appearance-note {
  font-size: 13px;
  color: var(--ui-muted);
}
@media (max-width: 560px) {
  .appearance-options {
    grid-template-columns: 1fr;
  }
  .appearance-card {
    min-height: 130px;
    padding: 17px;
  }
}
body > header,
body > header .navlinks,
.hero-visual,
.plan.personal,
.platform {
  background: var(--ui-deep);
}
body > header {
  color: white;
}
.process,
.switcher,
.billing-switch,
.bonus-inline,
.subscription-summary {
  background: var(--ui-soft);
}
.btn {
  background: var(--ui-primary);
  border-color: var(--ui-primary);
}
.btn:hover {
  background: var(--ui-hover);
}
.btn.light {
  color: var(--ui-text);
  background: transparent;
  border-color: var(--ui-muted);
}
.btn.light:hover {
  background: var(--ui-soft);
}
.btn.mint {
  background: var(--ui-soft);
  color: var(--ui-deep);
}
.review,
.future,
.tool-status {
  background: var(--ui-soft);
  color: var(--ui-deep);
}
.hero-visual .visual-top,
.hero-visual small,
.hero-visual .visual-note,
.plan.personal .subtitle,
.plan.personal .price-note,
.plan.personal .plan-end,
.tool-list article p {
  color: #e1e7ee;
}
.plan.personal .tag,
.plan.personal li:before {
  color: var(--ui-accent);
}
.plan.personal .future {
  color: #fff;
}
.contactbox,
.demo {
  background: var(--ui-surface);
}
body > header .monogram {
  border-color: var(--ui-accent);
}
#appearance-open {
  background: transparent;
  border: 0;
  color: white;
  font-size: 13px;
  padding: 12px 0;
  text-align: left;
  min-height: 44px;
}
#appearance-dialog {
  width: min(700px, calc(100% - 28px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--ui-line);
  border-radius: 18px;
  background: var(--ui-background);
  color: var(--ui-text);
  padding: 28px;
}
#appearance-dialog::backdrop {
  background: #10284499;
}
.appearance-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.appearance-dialog-heading h2 {
  font-size: 30px;
}
.appearance-dialog-heading button,
#appearance-reset {
  border: 1px solid var(--ui-muted);
  color: var(--ui-text);
  background: var(--ui-surface);
  border-radius: 7px;
  padding: 10px 14px;
  min-height: 44px;
}
.appearance-options {
  line-height: 1.4;
}
.appearance-options input {
  padding: 0;
}
.appearance-card strong {
  line-height: 1.4;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: var(--ui-primary);
}
body > header .monogram {
  border-color: #9cb9e0;
}
.subscription {
  background: var(--ui-soft);
}
.btn.light:hover,
body > header .btn:hover {
  background: var(--ui-soft);
}
.bonus-card {
  border-color: var(--ui-primary);
}
.demo-label {
  color: var(--ui-muted);
}
@media (max-width: 1240px) {
  body > header .nav-toggle {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
  }
  body > header .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ui-deep);
    border-bottom: 1px solid #ffffff2a;
    padding: 15px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body > header .navlinks.open {
    display: flex;
  }
  body > header .navlinks > a:not([hidden]) {
    display: block;
    padding: 12px;
    font-size: 14px;
  }
  body > header nav {
    min-height: 78px;
  }
}

/* Approved commercial identity; alternative appearance choices remain available. */
:root[data-theme="noche"] {
  color-scheme: dark;
  --ui-primary: #A3CABB;
  --ui-hover: #B9DBCD;
  --ui-deep: #0B1210;
  --ui-background: #0B1210;
  --ui-surface: #143C32;
  --ui-text: #F3F1E8;
  --ui-muted: #C0D1C7;
  --ui-line: #527A6C;
  --ui-soft: #103027;
  --ui-accent: #C4A16A;
}
.brand-logo { display:block; width:56px; height:56px; flex:none; object-fit:contain; border-radius:50%; }
body > header .brand strong { font-family:Georgia,'Times New Roman',serif; font-size:21px; font-weight:400; letter-spacing:-.035em; }
body > header .brand small { font-size:8px; letter-spacing:.25em; }
:root[data-theme="noche"] body { background:var(--ui-background); color:var(--ui-text); }
:root[data-theme="noche"] :is(body > header, body > header .navlinks) { background:var(--ui-background); }
:root[data-theme="noche"] :is(body > header, .intro-strip, footer) { border-color:#335749; }
:root[data-theme="noche"] .review { background:var(--ui-soft); color:var(--ui-text); }
:root[data-theme="noche"] :is(.hero-visual,.plan,.plan.personal,.contactbox,.demo) { background:var(--ui-surface); color:var(--ui-text); border-color:var(--ui-line); }
:root[data-theme="noche"] .hero-visual { background:linear-gradient(125deg,#143C32,#063A2C); }
:root[data-theme="noche"] .hero-visual::before { border-color:var(--ui-accent); opacity:.65; }
:root[data-theme="noche"] .hero .kicker { color:var(--ui-accent); }
:root[data-theme="noche"] :is(.intro-strip span,.principle .n,.step .num,.library-list .number,.start-steps > li > span) { color:var(--ui-accent); }
:root[data-theme="noche"] .hero h1 em { color:var(--ui-primary); }
:root[data-theme="noche"] .hero-visual :is(.visual-top,small,.visual-note) { color:var(--ui-muted); }
:root[data-theme="noche"] .visual-top .dot { background:var(--ui-primary); }
:root[data-theme="noche"] .goal-line { border-color:var(--ui-line); }
:root[data-theme="noche"] .goal-num { color:var(--ui-accent); }
:root[data-theme="noche"] :is(.process,.faq,.subscription,.platform) { background:var(--ui-soft); }
:root[data-theme="noche"] :is(.btn,.btn.mint,body > header .btn) { color:var(--ui-deep); background:var(--ui-primary); border-color:var(--ui-primary); }
:root[data-theme="noche"] :is(.btn,.btn.mint,body > header .btn):hover { color:var(--ui-deep); background:var(--ui-hover); border-color:var(--ui-hover); }
:root[data-theme="noche"] .btn.light { background:transparent; color:var(--ui-text); border-color:var(--ui-primary); }
:root[data-theme="noche"] .btn.light:hover { background:var(--ui-surface); color:var(--ui-text); }
:root[data-theme="noche"] :is(.btn:disabled,a[aria-disabled="true"]) { background:#263F35; color:#B2C1B9; border-color:#527A6C; transform:none; }
:root[data-theme="noche"] :is(select,input,textarea,.plan select,.contactbox select,.payment-notice input) { color:var(--ui-text); background:var(--ui-background); border-color:var(--ui-muted); }
:root[data-theme="noche"] :is(input,textarea)::placeholder { color:var(--ui-muted); opacity:1; }
:root[data-theme="noche"] :is(.switcher,.billing-switch,.subscription-summary,.message-preview,.pending,.bonus-inline,.personal .bonus-inline,.mini-stats div,thead) { background:var(--ui-soft); color:var(--ui-text); }
:root[data-theme="noche"] :is(.switcher button,.billing-switch button) { color:var(--ui-text); }
:root[data-theme="noche"] :is(.switcher button,.billing-switch button)[aria-pressed="true"] { background:var(--ui-primary); color:var(--ui-deep); }
:root[data-theme="noche"] :is(.future,.plan.personal .future,.tool-status) { color:var(--ui-muted); background:var(--ui-background); border:1px solid var(--ui-line); }
:root[data-theme="noche"] :is(.platform .section-head p,.platform .description,.platform-note,.tool-list article p,.plan.personal .subtitle,.plan.personal .price-note,.plan.personal .plan-end) { color:var(--ui-muted); }
:root[data-theme="noche"] .plan.blue { border-color:var(--ui-primary); }
:root[data-theme="noche"] .plan.personal { border-color:#88734E; }
:root[data-theme="noche"] :is(.plan.personal .tag,.plan.personal li:before) { color:var(--ui-primary); }
:root[data-theme="noche"] :is(.faq details,.step,.timeline) { border-color:var(--ui-line); }
:root[data-theme="noche"] .notice-status { color:#A5DEBA; }
:root[data-theme="noche"] .skip { background:var(--ui-primary); color:var(--ui-deep); }
:root[data-theme="noche"] #appearance-dialog::backdrop { background:#000b; }
:root[data-theme="noche"] .nav-toggle { border-color:var(--ui-primary); color:var(--ui-text); }
@media(max-width:600px) {
  .brand-logo { width:45px; height:45px; }
  body > header .brand strong { font-size:17px; }
  body > header .brand { gap:8px; }
}
@media(max-width:420px) {
  body > header .brand strong { font-size:15px; max-width:95px; }
  .brand-logo { width:42px; height:42px; }
}
