/* Inicio del maestro. Las barras, la foto y el progreso conservan sus controles de cuenta. */
body:has(#workspace .home-explorer-shell) .head-in,
#workspace:has(> .home-explorer-shell) {
  width: min(1238px, calc(100% - clamp(28px, 8vw, 108px)));
  max-width: none;
}
#workspace:has(> .home-explorer-shell) { padding-block: clamp(.9rem, 1.6vw, 1.4rem) 2.2rem; }
.home-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.home-explorer-shell .dashboard-top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.home-explorer-shell .profile-row { padding-bottom: .75rem; }
.home-explorer-shell .profile-row .foto-editable { width: clamp(72px, 7.1vw, 96px); }
.home-explorer-shell .profile-row .portrait { aspect-ratio: 1; }
.home-explorer-shell .profile-row > div { flex: 1; overflow-wrap: anywhere; }
.home-explorer-shell .profile-name { line-height: 1.18; }
.home-explorer-shell .home-route-caption { margin-top: .25rem; }
.home-explorer-shell .home-route-summary {
  margin: .15rem 0 0; color: var(--ruta-tinta); font-size: .92rem;
  font-weight: 650; line-height: 1.3;
}
.home-explorer-shell .home-study-card {
  align-items: center;
  align-self: stretch;
  padding: clamp(.8rem, 1.4vw, 1.3rem);
  overflow-wrap: anywhere;
  background: #edf4f8;
  border-color: #cfdee8;
}
.home-explorer-shell .home-study-card :is(.eyebrow, .mini, h3) { text-align: center; }
.home-explorer-shell .home-study-card .btn { min-height: 44px; }
.home-explorer-shell .home-progress-entry { padding: .65rem .85rem; }
.home-explorer-shell .profile-panel .home-progress-entry {
  background: #f3eef7; color: #53376a;
}
.home-explorer-shell .home-progress-entry:hover { background: #eae1f1; }
.home-explorer-shell .home-progress-entry:focus-visible { outline-color: #63467c; }
.home-explorer-shell .home-progress-entry .progress-hint { color: #584461; }
.home-explorer-shell .home-progress-entry .earned-strip { background: #ded3e7; }
.home-explorer-shell .home-progress-entry .earned-strip rect { fill: var(--study-color); }
.home-disclosures { display: grid; gap: .6rem; margin-top: .85rem; }
.home-disclosure {
  min-width: 0;
  border: 1px solid var(--ruta-linea);
  border-radius: .8rem;
  background: var(--card);
}
.home-disclosure-heading { margin: 0; font-size: 1rem; }
.home-disclosure-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: .65rem clamp(.8rem, 2vw, 1.5rem);
  gap: 1rem;
  border: 0;
  border-radius: .75rem;
  background: transparent;
  font: inherit;
  color: var(--ruta-tinta);
  cursor: pointer;
}
.home-disclosure-trigger:hover { background: var(--ruta-panel); }
.home-disclosure-trigger[aria-expanded=true] {
  border-bottom: 1px solid var(--ruta-linea);
  border-radius: .75rem .75rem 0 0;
  background: #e8f0f5;
  color: var(--ruta-oscuro);
}
.home-disclosure-name { font-size: clamp(1.13rem, 1.75vw, 1.4rem); font-weight: 700; }
.home-disclosure-hint {
  border-inline-start: 1px solid var(--ruta-linea);
  padding-inline-start: 1rem;
  color: var(--ruta-muted);
  font-size: .86rem;
  font-weight: 600;
  text-align: start;
}
.home-disclosure-trigger .symbol { margin-inline-start: auto; width: .93rem; height: .93rem; transform: rotate(90deg); }
.home-disclosure-trigger[aria-expanded=true] .symbol { transform: rotate(-90deg); }
.home-disclosure :focus-visible { outline: 3px solid var(--ruta-azul); outline-offset: -3px; }
.home-disclosure-panel[hidden] { display: none; }
.home-preparation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem .75rem;
  padding: .65rem;
}
.home-preparation-grid .kind-button {
  width: 100%; min-height: 58px; justify-content: start; gap: .65rem;
  padding: .5rem .65rem; border: 0; border-radius: .4rem; background: transparent;
}
.home-preparation-grid .kind-button .arrow { margin-inline-start: auto; }
.home-preparation-grid .kind-button .icon-tile { padding: .35rem; }
.home-study-tools {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .15rem .55rem;
  padding: .35rem .75rem;
  border-bottom: 1px solid var(--ruta-linea);
}
.home-tool {
  display: inline-flex; gap: .35rem; align-items: center; min-height: 42px;
  border: 0; border-radius: .4rem; padding: .3rem .5rem;
  background: transparent; color: var(--ruta-oscuro); font: inherit; font-size: .84rem;
  font-weight: 650; text-underline-offset: .18em; cursor: pointer;
}
.home-tool:hover { background: var(--ruta-panel); text-decoration: underline; }
.first-study-steps {
  width: min(100%, 52rem); margin: 1.2rem auto 0;
  display: grid; gap: .8rem;
}
.workspace .first-study-heading h1 { width: fit-content; max-width: 100%; margin-inline: auto; font-size: clamp(1.5rem,4vw,2.2rem); }
.workspace .first-study-heading h1:focus { outline: none; }
.workspace .first-study-heading h1:focus-visible { text-decoration: underline; text-decoration-color: var(--ruta-control);
  text-decoration-thickness: 2px; text-underline-offset: .18em; }
.workspace .first-study-heading .muted { margin-inline: auto; text-align: center; text-align-last: center; }
.first-study-step {
  display: grid; grid-template-columns: 2.5rem minmax(0,1fr) auto; align-items: center;
  gap: .85rem; padding: clamp(.85rem,2.5vw,1.35rem);
  border: 1px solid var(--ruta-linea); border-radius: .9rem; background: #fff;
}
.first-study-number { display: grid; place-items: center; border-radius: 50%; width: 2.3rem;
  height: 2.3rem; background: var(--ruta-activo); color: var(--ruta-oscuro); font-weight: 700; }
.workspace .first-study-copy h2 { font-size: clamp(1.02rem, 2vw, 1.25rem); margin: .2rem 0; overflow-wrap: anywhere; }
.first-study-copy .fine { margin: 0; }
.workspace .first-study-copy .first-study-label {
  margin: 0; color: var(--ruta-oscuro); font-size: .8rem; font-weight: 700;
}
.first-study-step .btn { min-height: 44px; }
@media (min-width: 900px) {
  body:has(#workspace .home-explorer-shell) .head-in { min-height: 64px; padding-block: .3rem; }
  body:has(#workspace .home-explorer-shell) .brand img { width: 50px; }
  #workspace:has(> .home-explorer-shell) { padding-top: .7rem; }
  .home-explorer-shell .dashboard-top .profile-panel { padding: .65rem .85rem; }
  .home-explorer-shell .profile-row { padding: 0 0 .45rem; gap: .9rem; }
  .home-explorer-shell .profile-row .foto-editable { width: 80px; gap: .12rem; }
  .home-explorer-shell .foto-editable .portrait { width: 64px; }
  .home-explorer-shell .foto-editable-texto { line-height: 1.1; font-size: .73rem; white-space: nowrap; }
  .home-explorer-shell .profile-row .eyebrow { margin: 0; font-size: .7rem; }
  .home-explorer-shell .profile-row .profile-name { margin: .1rem 0; font-size: 1.45rem; }
  .home-explorer-shell .profile-row .home-route-caption { margin: .12rem 0 0; font-size: .71rem; }
  .home-explorer-shell .profile-panel .home-progress-entry { gap: .24rem; padding: .45rem .8rem; }
  .home-explorer-shell .home-progress-entry .earned-strip { height: 6px; }
  .home-explorer-shell .home-progress-entry .progress-hint { font-size: .76rem; }
  .home-explorer-shell .home-study-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: .65rem 1rem; gap: .25rem;
  }
  .workspace .home-explorer-shell .home-study-card :is(.eyebrow, h3, .mini) { margin: 0; width: 100%; text-align: center; text-align-last: center; }
  .home-explorer-shell .home-study-card .btn { margin: .2rem 0 0; }
  .home-disclosures { margin-top: .65rem; gap: .45rem; }
  .home-disclosure { position: relative; }
  .home-disclosure-trigger { min-height: 46px; padding-block: .42rem; }
  #home-trigger-study[aria-expanded=true] .home-disclosure-hint { margin-right: 13rem; }
  .home-study-tools {
    position: absolute; inset: 0 3rem auto auto; min-height: 45px;
    align-items: center; gap: .15rem; padding: 0; border: 0;
  }
  .home-study-tools .home-tool { min-height: 38px; font-size: .8rem; }
}
@media (max-width: 700px) {
  body:has(#workspace .home-explorer-shell) .head-in,
  #workspace:has(> .home-explorer-shell) { width: calc(100% - 24px); }
  .home-explorer-shell .dashboard-top { grid-template-columns: 1fr; gap: .55rem; }
  .home-explorer-shell .home-study-card { display: grid; gap: .15rem; justify-items: center; }
  .home-explorer-shell .home-study-card :is(h3, .mini, .eyebrow) { margin: 0; }
  .home-explorer-shell .home-study-card .btn { margin-top: .25rem; }
  .home-disclosure-trigger { display: grid; grid-template-columns: minmax(0,1fr) auto;
    gap: .12rem .6rem; min-height: 60px; align-items: center; text-align: start; }
  .home-disclosure-name { grid-column: 1; grid-row: 1; }
  .home-disclosure-hint { grid-column: 1; grid-row: 2; padding: 0; border: 0; font-size: .83rem; line-height: 1.25; }
  .home-disclosure-trigger .symbol { grid-column: 2; grid-row: 1/3; }
  .home-preparation-grid { grid-template-columns: 1fr; gap: .22rem; padding: .4rem; }
  .home-study-tools { justify-content: flex-start; }
  .first-study-step { grid-template-columns: 2.1rem minmax(0,1fr); align-items: start; gap: .55rem; }
  .first-study-number { width: 2rem; height: 2rem; }
  .first-study-step .btn { grid-column: 2; justify-self: start; }
}

/* Bienvenida guiada. Los quince enlaces permanecen abiertos a cualquier ancho. */
#workspace:has(.va), body:has(#workspace .va) .head-in {
  width: min(1264px, calc(100% - clamp(24px, 6vw, 80px)));
  max-width: none;
}
#workspace:has(.va) { padding-block: 19px 28px; }
body:has(#workspace .va) .site-head, body:has(#workspace .va) .tabbar {
  background: #f5f9fd;
  border-color: transparent;
  box-shadow: none;
}
body:has(#workspace .va) .head-in { min-height: 68px; }
body:has(#workspace .va) .brand img { width: 45px; height: 45px; }
body:has(#workspace .va) .brand strong { color: #193f69; }
body:has(#workspace .va) .tabbar .nav-item[aria-current=page] {
  border-radius: 2rem;
  background: #dbeaf8;
  border-color: transparent;
}
.va { color: #193c61; }
.va .va-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 15px;
  min-height: 190px;
}
.va-hello, .va-reading { min-width: 0; border-radius: 22px; }
.va .va-hello {
  --portrait-size: clamp(122px, 11.75vw, 156px);
  display: grid;
  grid-template-columns: var(--portrait-size) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 1.65vw, 22px);
  padding: 12px clamp(18px, 2.2vw, 30px);
  background: #e6f2fd;
}
.va-photo.foto-editable {
  width: var(--portrait-size);
  display: grid;
  place-items: center;
  gap: 5px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 10px;
}
.va-photo .portrait {
  width: min(100%, 108px);
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  background: #c9e0f3;
  color: #234d74;
  box-shadow: 0 0 0 3px white;
  font: 700 calc(var(--portrait-size) * .37)/1 var(--sans);
}
.va-photo .portrait img { width: 100%; height: 100%; object-fit: cover; }
.va-photo .foto-editable-texto {
  padding: .14em .65em;
  border-radius: 1em;
  white-space: nowrap;
  color: #234d74;
  background: white;
  font-size: .73rem;
  line-height: 1.35;
  text-decoration: none;
}
.va-photo:hover .foto-editable-texto { text-decoration: underline; }
.va-hello-text { min-width: 0; }
.va-hello-text, .workspace .va-hello-text :is(h1,p) { text-align: center; text-align-last: center; }
.va .va-kicker { margin: 0; color: #356183; font-size: .82rem; font-weight: 700; line-height: 1.2; letter-spacing: .05em; }
.workspace .va h1 { margin: 3px 0; color: #193c61; font-size: clamp(1.6rem, 2.65vw, 2.3125rem); font-weight: 700; line-height: 1.16; letter-spacing: -.04em; }
.va .va-process { margin: 4px 0 2px; color: #244f79; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.va .va-route { margin: 0; color: #42617a; font-size: 1rem; line-height: 1.3; }
.profile-choice-value { display: none; }
@media (max-width: 700px) {
  .profile-picker { position: relative; }
  .profile-picker select { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; }
  .profile-choice-value {
    display: flex; align-items: center; min-height: 47px; padding: 9px 36px 9px 12px;
    border: 1px solid #8299ae; border-radius: 9px; color: var(--ink); background: white; line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .profile-choice-value::after {
    content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg);
  }
  .profile-picker select:focus-visible + .profile-choice-value { outline: 3px solid #245b83; outline-offset: 2px; }
  .profile-picker select:disabled + .profile-choice-value { color: #546778; background: #f2f5f8; }
}
.va .va-progress {
  display: grid;
  width: min(100%, 330px);
  min-height: 44px;
  margin: 10px auto 0;
  padding: 2px;
  gap: 4px;
  border-radius: .5rem;
  background: transparent;
  color: #244f79;
  text-align: center;
}
.va-progress .progress-title-line { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; line-height: 1.08; }
.va-progress .progress-title-line b { font-size: 1.125rem; }
.va-progress .progress-title-line strong { font-size: clamp(1.25rem, 2vw, 1.8125rem); }
.va-progress .progress-title-line .symbol { width: 12px; height: 12px; align-self: center; }
.va-progress .earned-strip { width: 100%; height: 11px; border-radius: 1rem; background: #c6def0; }
.va-progress .earned-strip rect { fill: var(--study-color); }
.va-progress .progress-hint { color: #42617a; font-size: .75rem; line-height: 1.2; }
.va .va-progress:hover { background: #d9ebfa; }
.va .va-reading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 17px 25px;
  background: #255681;
  color: white;
}
.va-reading .va-place { display: flex; align-items: center; gap: 8px; margin: 0; color: #dcefff; font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }
.va-place .symbol { flex: none; width: 19px; height: 19px; }
.workspace .va-reading h2 {
  max-width: 100%; margin: 7px 0 2px; color: white; text-align: start; text-align-last: start;
  font-size: clamp(1.5rem, 2.5vw, 2.125rem); letter-spacing: -.035em; line-height: 1.12;
}
.workspace .va-reading p { margin: 0; color: #e9f5ff; text-align: start; text-align-last: start; font-size: .9375rem; line-height: 1.35; }
.va-reading .va-resume {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .45rem .9rem; border: 0; border-radius: 1.5rem;
  font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.18;
  background: #fff; color: #244e78;
}
.va-reading .va-resume { margin-top: 9px; }
.va-reading .va-resume:hover { background: #e1eef8; }
.va-resume .symbol { width: 16px; height: 16px; }
.va-section { margin-top: 21px; }
.va-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.va-step {
  display: grid; flex: none; place-items: center; width: 37px; height: 37px; border-radius: 13px;
  color: #345d88; background: #e6f1ff; font-weight: 700; font-size: 1.125rem;
}
.workspace .va-heading h2, .workspace .va-family h3 { margin: 0; text-align: start; text-align-last: start; }
.workspace .va-heading h2 { color: #193c61; font-size: clamp(1.35rem, 2.4vw, 1.8125rem); line-height: 1.14; letter-spacing: -.035em; }
.workspace .va-heading p { margin: 3px 0 0; color: #475f75; font-size: .875rem; line-height: 1.35; text-align: start; text-align-last: start; }
.va-preparation, .va-study { display: grid; }
.va-preparation { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.va-study { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.va .va-choice {
  display: flex; text-align: start; align-items: center; justify-content: flex-start; gap: 10px;
  min-width: 0; border: 0; border-radius: 13px; min-height: 66px; padding: 10px 11px;
  color: #213b52; background: var(--pastel); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.22;
}
.va-choice:hover { box-shadow: inset 0 0 0 2px var(--icon-ink); }
.va-icon { flex: none; display: grid; place-items: center; width: 34px; height: 36px; border-radius: 10px; color: var(--icon-ink); background: rgb(255 255 255 / 63%); }
.va-icon .symbol { width: 21px; height: 21px; }
.va-family { display: grid; align-content: start; gap: 6px; padding-top: 6px; min-width: 0; }
.workspace .va-family h3 { margin: 0 0 2px 2px; color: #305a82; font-size: 1.25rem; line-height: 1.25; letter-spacing: -.02em; }
.va-family .va-choice { width: 100%; min-height: 45px; border-radius: 10px; padding: 6px 13px; }
.va-family .va-icon { width: 29px; height: 30px; border-radius: 8px; }
.va-family .va-icon .symbol { width: 18px; height: 18px; }
.va-family .va-choice > .symbol:last-child { width: 14px; height: 14px; flex: none; margin-inline-start: auto; color: #526b7f; }
.va-guide { --pastel:#f8e0eb; --icon-ink:#824460; }
.va-biblio { --pastel:#dfedfc; --icon-ink:#3b648f; }
.va-orienta { --pastel:#e9eaf8; --icon-ink:#525f8a; }
.va .va-preparation .va-choice { gap: 6px; padding-inline: 8px; }
.referencias-ruta { margin-block: .5rem 1rem; padding: .6rem .85rem; border-radius: 10px; background: #f1f6fb; }
.referencias-ruta summary { cursor: pointer; color: #214f74; font-weight: 700; }
.referencias-ruta ol { padding-inline-start: 1.4rem; }
.referencias-ruta li + li { margin-top: .55rem; }
.va-steps { --pastel:#dcefe5; --icon-ink:#446d59; }
.va-calendar { --pastel:#fbebc8; --icon-ink:#846128; }
.va-faq { --pastel:#ece3f9; --icon-ink:#665082; }
.va-calc { --pastel:#f9e3d8; --icon-ink:#885741; }
.va-sim { --pastel:#e1e7fb; --icon-ink:#4d5d8c; }
.va-vf { --pastel:#d9eee9; --icon-ink:#41685f; }
.va-game { --pastel:#f7dfdd; --icon-ink:#874f53; }
.va-info { --pastel:#e9eed3; --icon-ink:#5c7043; }
.va-graphic { --pastel:#f3e1ef; --icon-ink:#795770; }
.va-quick { --pastel:#f7efd6; --icon-ink:#77633a; }
.va-audio { --pastel:#e4e0f4; --icon-ink:#615986; }
.va-class { --pastel:#daebef; --icon-ink:#3f6977; }
.va-video { --pastel:#f2e5d6; --icon-ink:#7c6146; }
.va :is(button,a):focus-visible, .head-tools button:focus-visible, #news-dialog summary:focus-visible {
  outline: 3px solid #194a76; outline-offset: 2px;
}
.va-reading .va-resume:focus-visible { outline-color: white; }
.head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; }
.head-tools :is(.header-news,.head-person) {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: .4rem .85rem; border: 0; border-radius: 2rem; background: #e6eff9; color: #163f69;
  font: inherit; font-size: .875rem; font-weight: 700; line-height: 1.1;
}
.head-tools :is(.header-news,.head-person):hover { background: #d7e8f9; }
.head-tools .symbol { flex: none; width: 18px; height: 18px; }
.news-badge { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding-inline: .2rem; border-radius: 1em; background: #b91f35; color: white; font-size: .78rem; }
.news-badge[hidden] { display: none; }
#news-dialog { width: min(32rem, calc(100% - 24px)); }
#news-dialog .dialog-wrap { padding: clamp(1rem, 4vw, 1.6rem); }
#news-dialog .news-list { display: grid; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
#news-dialog .news-item { padding: .15rem .8rem; border-radius: .7rem; background: #f1f5f9; }
#news-dialog .news-unread { background: #e6f0fb; }
#news-dialog summary { min-height: 44px; padding-block: .6rem; color: #214b70; cursor: pointer; font-weight: 700; }
#news-dialog .news-label { color: #173c61; }
#news-dialog .news-status, #news-dialog .news-read { color: #496177; font-size: .82rem; font-weight: 600; }
#news-dialog summary .news-read { display: block; }
#news-dialog .news-unread .news-read { color: #8f2438; }
#news-dialog .news-item p { text-align: start; margin: 0 0 .8rem; line-height: 1.5; }
@media (max-width: 1100px) {
  .va-preparation { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .va .va-hello { padding-inline: 16px; }
  .va .va-reading { padding: 16px 20px; }
}
@media (max-width: 850px) {
  .va .va-hero { grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 10px; }
  .va .va-hello { --portrait-size: 92px; gap: 12px; }
  .va-progress .progress-title-line { gap: 2px 6px; }
  .va-progress .progress-title-line b { font-size: 1rem; }
  .va-study { gap: 10px; }
  .va .va-choice { gap: 7px; font-size: .94rem; }
  .va-family .va-choice { padding-inline: 8px; }
}
@media (max-width: 700px) {
  .va .va-hero { grid-template-columns: minmax(0,1fr); }
  .va .va-hello { --portrait-size: clamp(88px, 24vw, 128px); padding: 17px; }
  .va .va-reading { padding: 16px 20px; border-radius: 17px; }
  .va-reading .va-place { font-size: 1.04rem; }
  .va-section { margin-top: 20px; }
  .va-preparation { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .va-study { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .va-family { padding-top: 0; }
  .va-heading { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 7px 9px; }
  .va-heading > div { min-width: 0; }
  .va-step { width: 29px; height: 29px; border-radius: 9px; font-size: .94rem; }
  .va-family .va-choice { min-height: 46px; padding: 8px 12px; }
}
@media (max-width: 480px) {
  .head-tools { gap: .25rem; }
  .head-tools :is(.header-news,.head-person) { gap: .24rem; padding: .35rem .5rem; font-size: .77rem; }
  body:has(.head-tools) .head-in { width: calc(100% - 20px); gap: .4rem; }
  body:has(.head-tools) .brand { gap: .35rem; }
  body:has(#workspace:not([hidden])) .brand img { width: 37px; height: 37px; }
  .head-tools .symbol { width: 15px; height: 15px; }
  .head-tools .news-badge { min-width: 18px; height: 18px; font-size: .72rem; }
  .va .va-choice { padding-inline: 8px; }
  .va-preparation .va-icon { width: 27px; height: 30px; }
}
@media (max-width: 370px) {
  .va .va-hello { --portrait-size: 78px; gap: 10px; padding-inline: 12px; }
  .workspace .va h1 { font-size: 1.4rem; }
  .va-preparation { grid-template-columns: minmax(0, 1fr); }
  .va-preparation .va-choice { min-height: 46px; padding-inline: 12px; }
}

@media (max-width: 540px) {
  body:has(.brand[data-interior]) .head-in { flex-wrap: wrap; gap: .2rem .6rem; padding-block: .35rem; }
  .site-head .brand[data-interior] strong { font-size: 1rem; letter-spacing: -.035em; }
  .site-head .brand[data-interior] span { display: block; }
  .head-in:has(.brand[data-interior]) .head-tools { margin-inline-start: auto; }
}
