.topbar { grid-column: 1 / -1; position: relative; z-index: 20; min-height: 68px; display: flex; align-items: center; gap: 16px; padding: 12px 22px; color: white; background: var(--ink); }
.topbar .official-logo { display: block; height: 36px; width: auto; }
.topbar-title { border-left: 1px solid #ffffff38; padding-left: 16px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbar .area-button { display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 8px; min-height: 40px; padding: 8px 12px; border: 1px solid #ffffff80; border-radius: 999px; color: white; text-decoration: none; font-size: 12px; font-weight: 700; white-space: nowrap; }
.area-button svg { flex: none; }
.topbar .area-button:hover { background: #ffffff26; border-color: white; }
.topbar .area-button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.topbar .area-switch { display: inline-flex; align-items: center; flex: none; gap: 3px; padding: 3px; border: 1px solid #ffffff80; border-radius: 999px; }
.area-switch .area-button { border-color: transparent; }
.topbar .area-switch [aria-current="page"] { background: var(--gold); color: var(--ink); }
.area-label-short { display: none; }
#cambio-area-description { overflow-wrap: anywhere; }
#cambio-area-dialog .actions { margin-top: 18px; }
#cambio-area-status { color: var(--ink); }
.topbar button { color: white; background: #ffffff12; border: 0; border-radius: 10px; cursor: pointer; }
.topbar .search-trigger { display: flex; align-items: center; gap: 10px; max-width: 440px; flex: 1; margin-left: 12px; padding: 11px 12px; color: #e0e4ee; font-size: 12px; }
.search-trigger kbd { margin-left: auto; padding: 3px 5px; background: #ffffff20; border-radius: 4px; white-space: nowrap; }
.topbar-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.topbar .icon-button { width: 40px; height: 40px; padding: 9px; position: relative; }
.notification-dot { position: absolute; right: 6px; top: 5px; height: 8px; width: 8px; border-radius: 50%; background: var(--gold); }
.topbar .avatar-trigger { display: flex; gap: 10px; align-items: center; text-align: left; padding: 4px 12px 4px 4px; border-radius: 99px; max-width: 230px; }
.topbar .avatar-trigger strong { display: block; font-size: 12px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.avatar-trigger small { display: block; font-size: 11px; color: #c7cede; }
.top-avatar { position: relative; display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; overflow: hidden; }
.top-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.personal-menu, .bell-menu { position: absolute; top: calc(100% - 3px); right: 18px; width: min(300px, calc(100vw - 32px)); padding: 8px; background: white; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 20px 50px #07163733; }
.personal-menu a, .personal-menu button, .bell-menu button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 9px; width: 100%; color: var(--ink); background: white; text-align: left; text-decoration: none; font: 600 14px var(--sans); }
.personal-menu :is(a, button):hover, .personal-menu :is(a, button):focus-visible, .bell-menu button:hover { background: #efe9dc; }
.personal-menu hr { border: 0; border-top: 1px solid var(--line); }
.personal-menu #salir { color: #a3261b; }
dialog { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 18px; width: min(620px, calc(100vw - 32px)); max-height: 85dvh; padding: 24px; }
dialog::backdrop { background: #071637a6; }
dialog .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.search-results { display: grid; gap: 6px; max-height: 50dvh; overflow: auto; margin-top: 16px; }
.search-results [role="group"] { display: grid; gap: 4px; }
.search-results [role="group"] > strong { padding: 8px; font-size: 12px; color: var(--muted); }
.search-results [role="option"] { padding: 12px; border-radius: 10px; cursor: pointer; }
.search-results [role="option"] small { display: block; color: var(--muted); margin-top: 5px; }
.search-results [aria-selected="true"], .search-results [role="option"]:hover { background: #efe9dc; }
.topbar #drawer-toggle { display: none; }
.topbar :is(a, button):focus-visible { outline: 3px solid white; outline-offset: 3px; }
.cuenta-page :is(button, a, input, select, textarea, summary, canvas):focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.cuenta-page .topbar :is(a, button):focus-visible { outline-color: white; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 900px) {
  .topbar { gap: 10px; padding: 12px; }
  .topbar .official-logo { height: 29px; }
  .topbar-title { font-size: 11px; padding-left: 10px; }
  .topbar #drawer-toggle { display: block; flex: none; }
  .topbar .search-trigger { flex: none; margin-left: auto; padding: 10px; }
  .search-trigger span, .search-trigger kbd, .avatar-trigger > span:last-child { display: none; }
  .topbar .avatar-trigger { padding: 3px; }
  .topbar-tools { margin-left: 0; gap: 5px; }
  .area-switch .area-button span, .area-divider { display: none; }
  .topbar .area-switch .area-button { width: 36px; padding: 6px; }
}
@media (max-width: 600px) {
  .area-label-long { display: none; }
  .area-label-short { display: inline; }
  .topbar .area-button { gap: 6px; padding: 8px; }
}
@media (max-width: 420px) { .topbar-title { max-width: 66px; white-space: normal; } .topbar .official-logo { height: 25px; } .topbar { gap: 7px; } .cuenta-page .cuenta-bar { gap: 7px; } }
