.header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.header-login.button {
  min-height: 44px;
  padding: 9px 14px;
  white-space: nowrap;
}
.header-login[aria-current] { color: var(--accent); }
.header-login[data-account-link] { white-space: normal; }
.password-field { position: relative; }
.password-field input { padding-inline-end: 52px; }
.password-field:has(> [data-password-toggle]:not([hidden])) > input[type="password"]::-ms-reveal {
  display: none;
}
.password-toggle {
  position: absolute;
  inset-inline-end: 3px;
  inset-block-start: 2px;
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: none;
}
.password-toggle[hidden] { display: none; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--text); }
.password-visible .eye-slash { display: none; }
.account-info { color: var(--accent); }

body[data-route="account"] { --dashboard-bg: #141619; background: var(--dashboard-bg); }
.dashboard-header { background: var(--dashboard-bg); }
.dashboard-header .nav-row, .dashboard-page {
  width: min(880px,calc(100% - 40px));
}
.dashboard-header .nav-row { display: flex; flex-wrap: nowrap; min-height: 64px; gap: 12px; }
.dashboard-header .brand { font-size: 18px; margin-inline-end: auto; }
.dashboard-header .brand img { width: 28px; height: 28px; }
.dashboard-header .header-login.button { border: 0; background: transparent; font-size: 13px; padding-inline: 6px; }
.dashboard-page { min-height: calc(100vh - 65px); padding-top: 38px; padding-bottom: 72px; }
.dashboard-page h1 {
  margin-bottom: 24px;
  font-size: clamp(29px,4.2vw,38px);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.dashboard-page [hidden] { display: none; }
.dashboard-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.dashboard-tabs button {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  text-align: start;
  font-size: 15px;
  font-weight: 650;
}
.dashboard-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--text); }
.dashboard-block {
  min-width: 0;
  padding: clamp(18px,3.4vw,28px);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow-wrap: anywhere;
}
.dashboard-settings { max-width: 610px; }
.dashboard-block h2 { font-size: 23px; line-height: 1.25; }
.dashboard-block h3 { font-size: 19px; line-height: 1.35; }
.dashboard-licences {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: start;
  column-gap: 22px;
  row-gap: 14px;
}
.dashboard-licences [data-licences]:empty, .dashboard-licences .dashboard-actions:not(:has(:not([hidden]))) { display: none; }
.dashboard-empty { color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.35; align-self: center; }
.dashboard-licences .dashboard-actions { margin: 0; }
.account-licence + .account-licence { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.dashboard-plans { margin-top: 22px; }
.dashboard-plans-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dashboard-close-plans.button { min-height: 44px; padding: 7px 12px; }
.dashboard-plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.dashboard-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(13px,3.1vw,20px);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dashboard-price { margin-bottom: 4px; }
.dashboard-price strong {
  color: var(--text);
  font-size: clamp(25px,4vw,31px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dashboard-price span { font-size: 14px; }
.dashboard-plan button { margin-top: auto; }
.dashboard-renew-note { color: var(--muted); font-size: 14px; max-width: 34ch; }
.dashboard-download { max-width: 236px; }
.dashboard-download p { margin-top: 9px; }
.dashboard-checkout-note .button { margin-top: 10px; }
.dashboard-plan button:disabled {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
}
.dashboard-sales-note, .dashboard-checkout-note, .dashboard-checkout-feedback { margin-top: 13px; }
.dashboard-terms {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 7px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.dashboard-checkout-feedback:empty { display: none; }
.licence-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; }
.licence-heading p { font-weight: 650; font-size: 14px; }
.licence-heading [data-licence-state="active"], .account-confirmation[data-confirmed="true"] { color: var(--accent); }
.account-licence > p { margin-top: 8px; }
.licence-date, .account-identity { margin: 12px 0 0; }
:is(.licence-date, .account-identity) dt { color: var(--muted); }
:is(.licence-date, .account-identity) dd { color: var(--text); font-weight: 650; font-size: 16px; }
.account-confirmation { margin-top: 4px; font-size: 14px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.dashboard-actions [hidden] { display: none; }
.dashboard-block details { margin-top: 12px; }
.dashboard-block summary {
  width: fit-content;
  min-height: 44px;
  padding-block: 9px;
  color: var(--accent);
  cursor: pointer;
}
.dashboard-block summary:focus-visible, .dashboard-page :is([data-feedback],[data-checkout-feedback],[role="tabpanel"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.account-manage button { margin-top: 12px; }
.account-manage button[hidden], .account-manage[hidden] { display: none; }
.account-manage [role="status"]:not(:empty) { margin-top: 7px; font-size: 14px; }
.dashboard-devices {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.dashboard-devices h4 { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: 15px; }
.dashboard-devices h4 span { color: var(--muted); font-size: 13px; font-weight: 500; }
.dashboard-devices ul { margin: 0; padding: 0; list-style: none; }
.dashboard-devices li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 6px 0; }
.dashboard-devices li strong { font-size: 14px; }
.dashboard-devices .button { min-height: 44px; padding: 7px 12px; font-size: 13px; }
.dashboard-devices .button:disabled { opacity: .55; cursor: default; }
.dashboard-devices [role="status"]:not(:empty) { margin-top: 5px; font-size: 13px; }
.dashboard-dialog {
  width: min(420px,calc(100% - 32px));
  margin: auto;
  padding: 22px;
  color: var(--text);
  background: var(--dashboard-bg);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.dashboard-dialog::backdrop { background: #000a; }
.dashboard-dialog h2 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.dashboard-dialog p { overflow-wrap: anywhere; }
.dashboard-settings > details + details { margin-top: 0; }
.dashboard-settings .account-form { max-width: 380px; }
[data-session-feedback]:not(:empty) { margin-top: 8px; }
.dashboard-mail-form {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 13px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
.dashboard-mail-form select {
  min-width: min(180px,100%);
  min-height: 44px;
  padding: 6px 10px;
  color: var(--text);
  color-scheme: dark;
  background: #181d21;
  border: 1px solid #666f76;
  border-radius: 7px;
  font: inherit;
}
.dashboard-switch { display: flex; align-items: center; min-height: 44px; gap: 9px; font-size: 14px; cursor: pointer; }
.dashboard-switch input { width: 19px; height: 19px; margin: 0; flex: none; accent-color: var(--accent); }
.dashboard-mail-form [role="status"]:empty { display: none; }

@media (max-width: 560px) {
  .dashboard-header .nav-row, .dashboard-page { width: calc(100% - 32px); }
  .dashboard-header .nav-row { min-height: 60px; gap: 6px; }
  .dashboard-page { padding-top: 26px; }
  .dashboard-page h1 { margin-bottom: 15px; }
  .dashboard-tabs { gap: 20px; margin-bottom: 15px; }
  .dashboard-licences, .dashboard-plan-grid { grid-template-columns: minmax(0,1fr); }
  .dashboard-licences:has([data-install]:not([hidden])) > .dashboard-actions { grid-row: 1; }
  .dashboard-settings .dashboard-actions { gap: 8px; }
  .dashboard-plans { margin-top: 16px; }
  .dashboard-plan { gap: 6px; }
  .dashboard-price { margin-bottom: 3px; }
}
@media (max-width: 400px) {
  .header-login[data-account-link] { max-width: 100px; }
}
.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-picker[open] summary { background: #ffffff0b; }
.language-picker summary:focus-visible,
.account-page .account-error:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.language-picker ul {
  position: absolute;
  min-width: 156px;
  margin: 4px 0 0;
  padding: 5px;
  inset-inline-end: 0;
  z-index: 2;
  list-style: none;
  background: #181d21;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px #0006;
}
.language-picker a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 13px;
  border-radius: 5px;
  font-size: 14px;
}
.language-picker a[aria-current] { color: var(--accent); background: #ffffff0b; }
.language-picker a:hover { background: #ffffff10; }

.account-page {
  max-width: 530px;
  min-height: 58vh;
  overflow-wrap: anywhere;
}
.account-page .page-heading { margin-bottom: 32px; }
.account-page .page-heading .account-preview-note { margin-top: 10px; font-size: 13px; }
.account-form, .account-result {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.account-form .account-field { margin-bottom: 17px; }
.account-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.account-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--text);
  background: #181d21;
  border: 1px solid #666f76;
  border-radius: 7px;
  color-scheme: dark;
}
.account-field p { margin-top: 6px; }
.account-field input[aria-invalid="true"] { border-color: #ff9c9c; }
.account-field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: none;
}
@media (forced-colors: active) {
  .account-field input:focus { border-color: Highlight; }
}
.account-error { color: #ffb6b6; }
.account-error:empty { display: none; }
#account-feedback { margin-bottom: 16px; }
.account-form .button { width: 100%; }
.account-form button:disabled { opacity: .72; cursor: wait; }
.account-form noscript p { margin-top: 12px; }
.account-alternate { margin-top: 20px; }
.account-alternate a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.account-result h2 { margin-bottom: 12px; }
.account-resend h2 { margin-bottom: 16px; font-size: 20px; }
.account-resend:not([hidden]) { margin-top: 18px; }
.account-result .button { margin-block: 18px; }

:lang(de) :is(.hero-title, .page-heading h1, .support-topic h2, .feature-scene h3) {
  hyphens: auto;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .nav-row { min-height: 72px; gap: 8px; flex-wrap: wrap; }
  .nav-row .menu-toggle {
    display: block;
    margin-inline-start: auto;
    padding-inline: 9px;
    min-height: 44px;
    background: none;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
  }
  .nav-row #main-nav {
    display: none;
    order: 5;
    flex-basis: 100%;
    margin: 0;
    padding-bottom: 14px;
  }
  .nav-row #main-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-row #main-nav a { padding: 6px 12px; }
  .header-login.button { padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 380px) {
  .nav-row {
    width: calc(100% - 24px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-auto-rows: auto;
    align-content: center;
    gap: 4px;
  }
  .nav-row .brand { margin: 0; font-size: 16px; gap: 4px; }
  .nav-row .brand img { width: 26px; height: 26px; }
  .nav-row #main-nav { grid-column: 1 / -1; grid-row: 2; }
  .header-tools { gap: 1px; }
  .header-login.button { padding-inline: 7px; }
  .language-picker summary { padding-inline: 5px; gap: 5px; }
}
