:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #dfe4ea;
  --paper: #ffffff;
  --tint: #f4f6f8;
  --tint-blue: #edf3ff;
  --navy: #0a2342;
  --navy-2: #12355b;
  --blue: #1f63e9;
  --blue-dark: #174daf;
  --aqua: #45c9b0;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #16876d;
  --shadow: 0 20px 55px rgba(16,24,40,.10);
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 18px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--tint); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; }
button { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 9999; top: 10px; left: 10px; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(31,99,233,.32); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand__logo { display: block; width: auto; height: auto; object-fit: contain; }
.brand__logo--topbar { width: 126px; max-height: 43px; }
.brand__logo--auth { width: 230px; max-width: 100%; }
.brand--auth { position: relative; z-index: 1; align-self: flex-start; padding: 0; background: transparent; border: 0; box-shadow: none; }

.eyebrow { display: inline-block; color: rgba(255,255,255,.65); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--blue { color: var(--blue); }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.15fr); }
.auth-brand-panel { position: relative; overflow: hidden; min-height: 100vh; padding: 46px clamp(34px, 6vw, 88px); display: flex; flex-direction: column; color: #fff; background: linear-gradient(145deg, var(--navy), #0f3767 68%, #144b75); }
.auth-brand-panel::before { position: absolute; width: 480px; height: 480px; right: -230px; top: -160px; border: 1px solid rgba(255,255,255,.10); border-radius: 50%; content: ""; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02); }
.auth-brand-panel::after { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; content: ""; background: linear-gradient(90deg, var(--blue), var(--aqua)); }
.auth-brand-copy { position: relative; z-index: 1; max-width: 540px; margin: auto 0; }
.auth-brand-copy h1 { max-width: 520px; margin: 14px 0 20px; font-size: clamp(38px, 5vw, 65px); line-height: 1.04; letter-spacing: -.055em; }
.auth-brand-copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.76); font-size: 18px; }
.auth-brand-footer { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.62); font-size: 13px; }
.auth-brand-footer .fa-icon { width: 13px; height: 13px; }
.auth-form-panel { position: relative; min-height: 100vh; padding: 76px 28px 48px; display: grid; place-items: center; background: #fff; }
.auth-form-wrap { width: min(100%, 580px); }
.form-header { margin-bottom: 30px; }
.form-header h2 { margin: 7px 0 8px; font-size: clamp(30px, 4vw, 42px); line-height: 1.15; letter-spacing: -.04em; }
.form-header p { margin: 0; color: var(--muted); font-size: 16px; }

.alert { margin-bottom: 20px; padding: 13px 15px; border: 1px solid; border-radius: var(--radius-sm); }
.alert--error { color: var(--danger); border-color: #fecdca; background: var(--danger-bg); }
.auth-form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label, .captcha-box legend { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); border: 1px solid #cfd6df; background: #fff; border-radius: var(--radius-sm); transition: border-color var(--transition), box-shadow var(--transition); }
.field input:hover, .field select:hover { border-color: #aab4c2; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(31,99,233,.11); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #f04438; }
.field-help { margin: -2px 0 0; color: var(--muted); font-size: 12px; }
.field-error { margin: 0; color: var(--danger); font-size: 12px; }
.label-row { display: flex; justify-content: space-between; }
.password-field { position: relative; }
.password-field input { padding-right: 86px; }
.password-toggle { position: absolute; top: 50%; right: 6px; min-height: 34px; padding: 0 9px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; transform: translateY(-50%); }
.button { min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 750; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); }
.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(31,99,233,.18); }
.button--primary:hover { background: var(--blue-dark); }
.button--full { width: 100%; }
.auth-switch, .auth-back { margin: 22px 0 0; text-align: center; color: var(--muted); }
.auth-switch a, .auth-back a { color: var(--blue); font-weight: 700; text-decoration: none; }
.auth-back { margin-top: 10px; font-size: 13px; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }
.captcha-box { margin: 0; padding: 16px; border: 1px solid var(--line); background: var(--tint-blue); border-radius: var(--radius); }
.captcha-box legend { padding: 0 7px; }
.captcha-box > p { margin: 0 0 10px; font-size: 17px; font-weight: 750; }
.field--compact { max-width: 190px; }
.consent-list { display: grid; gap: 11px; }
.checkbox-row { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 13px; }
.checkbox-row input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.checkbox-row a { color: var(--blue); font-weight: 700; }
.consent-error { margin-left: 28px; }

.portal-page { min-height: 100vh; }
.portal-topbar { position: sticky; z-index: 50; top: 0; height: 68px; padding: 0 22px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.portal-product-name { padding-left: 20px; border-left: 1px solid var(--line); color: var(--ink-2); font-weight: 700; }
.portal-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.language-button { min-height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; color: var(--ink-2); background: transparent; border-radius: 10px; cursor: pointer; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition); }
.language-button:hover, .language-button[aria-expanded="true"] { color: var(--navy); border-color: var(--line); background: var(--tint); box-shadow: 0 8px 18px rgba(16,24,40,.06); }
.language-button > .fa-icon:first-child { width: 16px; height: 16px; }
.language-button__code { min-width: 21px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.language-button__chevron { width: 9px; height: 9px; color: var(--muted); }
.language-menu { width: 286px; }
.language-entry { min-height: 58px; padding: 9px 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--ink); border: 1px solid transparent; border-radius: 10px; text-decoration: none; transition: background var(--transition), border-color var(--transition); }
.language-entry:hover { background: var(--tint); }
.language-entry.is-active { border-color: #d7e4fb; background: var(--tint-blue); }
.language-entry__code { width: 36px; height: 32px; display: grid; place-items: center; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 850; letter-spacing: .05em; }
.language-entry__copy { min-width: 0; }
.language-entry__copy strong, .language-entry__copy small { display: block; }
.language-entry__copy small { margin-top: 1px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.language-entry__status { padding: 4px 7px; color: var(--blue-dark); background: #fff; border: 1px solid #cfddf7; border-radius: 999px; font-size: 10px; font-weight: 800; }
.auth-language-position { position: absolute; z-index: 20; top: 24px; right: 28px; }
.auth-language-position .language-button { border-color: var(--line); background: #fff; }
.auth-language-position .language-menu { top: calc(100% + 8px); }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; border-radius: 10px; cursor: pointer; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition); }
.icon-button:hover, .icon-button[aria-expanded="true"] { border-color: var(--line); background: var(--tint); box-shadow: 0 8px 18px rgba(16,24,40,.06); }
.fa-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.fa-icon { width: 1em; height: 1em; display: block; flex: 0 0 auto; fill: currentColor; }
.icon-button .fa-icon { width: 18px; height: 18px; }
.app-switcher-button { color: var(--blue); }
.app-switcher-button .fa-icon { width: 20px; height: 20px; }
.menu-wrap { position: relative; }
.account-button { min-height: 42px; padding: 4px 10px 4px 5px; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; border-radius: 10px; cursor: pointer; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.account-button:hover, .account-button[aria-expanded="true"] { border-color: var(--line); background: var(--tint); box-shadow: 0 8px 18px rgba(16,24,40,.06); }
.account-avatar { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; font-size: 11px; font-weight: 800; }
.account-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.account-chevron { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--muted); }
.account-chevron .fa-icon { width: 10px; height: 10px; }
.dropdown-menu { position: absolute; z-index: 80; top: calc(100% + 10px); right: 0; width: 330px; padding: 9px; border: 1px solid var(--line); background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(16,24,40,.16); }
.dropdown-heading { padding: 7px 9px 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.app-entry { padding: 12px; display: grid; grid-template-columns: 44px 1fr; gap: 12px; color: var(--ink); border: 1px solid transparent; border-radius: 12px; text-decoration: none; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.app-entry:hover { background: #f9fbff; border-color: #dce7fb; transform: translateY(-1px); }
.app-entry.is-active { background: var(--tint-blue); border-color: #d7e4fb; }
.app-entry__icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.app-entry__icon .fa-icon { width: 19px; height: 19px; }
.app-entry__icon--portal { background: linear-gradient(180deg, #1f63e9, #164cb1); }
.app-entry__icon--tobi { background: linear-gradient(180deg, #0a2342, #12355b); }
.app-entry__icon--web { background: linear-gradient(180deg, #45c9b0, #229a85); }
.app-entry strong, .app-entry small { display: block; }
.app-entry small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.account-menu { width: 250px; }
.account-summary { padding: 10px; border-bottom: 1px solid var(--line); }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { margin-top: 2px; color: var(--muted); }
.dropdown-action { width: 100%; margin-top: 6px; padding: 10px; display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; border-radius: 9px; text-align: left; cursor: pointer; }
.dropdown-action .fa-icon { width: 14px; height: 14px; }
.dropdown-action:hover { background: var(--tint); }
.portal-shell { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 240px 1fr; }
.portal-sidebar { padding: 22px 14px; border-right: 1px solid var(--line); background: #fff; }
.portal-sidebar nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.sidebar-link { min-height: 42px; padding: 9px 11px; display: flex; align-items: center; gap: 10px; color: var(--ink-2); border-radius: 8px; text-decoration: none; font-weight: 650; }
.sidebar-link:hover { background: var(--tint); }
.sidebar-link.is-active { color: var(--blue); background: var(--tint-blue); }
.sidebar-link.is-disabled { color: #98a2b3; cursor: default; }
.sidebar-link span:first-child { width: 19px; text-align: center; }
.sidebar-link .fa-icon { width: 14px; height: 14px; margin: auto; }
.sidebar-section { margin: 17px 10px 4px; color: #98a2b3; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-content { min-width: 0; padding: 34px clamp(24px, 4vw, 58px) 60px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-heading h1 { margin: 6px 0 7px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.045em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--muted); font-size: 16px; }
.status-badge, .empty-badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; font-size: 12px; font-weight: 750; }
.status-badge { padding: 7px 11px; display: inline-flex; align-items: center; gap: 8px; color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; }
.status-badge .fa-icon { width: 13px; height: 13px; }
.dashboard-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dashboard-card, .account-overview { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.dashboard-card { min-height: 205px; padding: 20px; }
.dashboard-card__top { display: flex; align-items: center; justify-content: space-between; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--blue); background: var(--tint-blue); border-radius: 10px; }
.card-icon .fa-icon { width: 16px; height: 16px; }
.empty-badge { padding: 5px 8px; color: var(--muted); background: var(--tint); }
.dashboard-card h2 { margin: 24px 0 7px; font-size: 18px; }
.dashboard-card p { margin: 0; color: var(--muted); }
.account-overview { margin-top: 18px; padding: 22px; display: grid; grid-template-columns: 240px 1fr; gap: 26px; }
.section-kicker { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-overview h2 { margin: 5px 0 0; font-size: 21px; }
.account-overview dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.account-overview dl div { padding-left: 16px; border-left: 1px solid var(--line); }
.account-overview dt { color: var(--muted); font-size: 12px; }
.account-overview dd { margin: 4px 0 0; font-weight: 700; word-break: break-word; }

@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: auto; padding: 28px 24px; }
  .auth-brand-copy { margin: 58px 0 32px; }
  .auth-brand-copy h1 { font-size: 38px; }
  .auth-form-panel { min-height: auto; padding: 42px 22px 60px; }
  .portal-shell { grid-template-columns: 76px 1fr; }
  .portal-sidebar { padding-inline: 10px; }
  .sidebar-link { justify-content: center; font-size: 0; }
  .sidebar-link span:first-child { font-size: 15px; }
  .sidebar-section { display: none; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .account-overview { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; }
  .auth-form-panel { padding-inline: 18px; }
  .portal-topbar { padding-inline: 12px; gap: 10px; }
  .portal-product-name, .account-name { display: none; }
  .portal-shell { display: block; }
  .portal-sidebar { display: none; }
  .portal-content { padding: 25px 16px 50px; }
  .page-heading { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .account-overview dl { grid-template-columns: 1fr; }
  .account-overview dl div { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .dropdown-menu { position: fixed; top: 62px; right: 10px; left: 10px; width: auto; }
}

@media (max-width: 680px) {
  .portal-topbar__actions { gap: 2px; }
  .portal-topbar .language-button { width: 40px; padding: 0; }
  .portal-topbar .language-button__code, .portal-topbar .language-button__chevron { display: none; }
  .auth-form-panel { padding-top: 82px; }
  .auth-language-position { top: 18px; right: 18px; }
  .auth-language-position .dropdown-menu { position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(286px, calc(100vw - 36px)); }
}


/* Authentication security flows */
.alert--success { color: #067647; border-color: #abefc6; background: #ecfdf3; }
.alert--info { color: #175cd3; border-color: #b2ccff; background: #eff8ff; }
.field-link { color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.field-link:hover { text-decoration: underline; }
.form-header--center { text-align: center; }
.auth-state-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--blue); background: var(--tint-blue); border: 1px solid #d7e4fb; border-radius: 16px; }
.auth-state-icon .fa-icon { width: 25px; height: 25px; }
.auth-notice-box { margin: 0 0 20px; padding: 16px 17px; color: var(--ink-2); border: 1px solid var(--line); background: var(--tint); border-radius: var(--radius); }
.auth-notice-box strong { display: block; margin-bottom: 5px; color: var(--ink); }
.auth-notice-box p { margin: 0; color: var(--muted); }
.auth-notice-box--danger { color: var(--danger); border-color: #fecdca; background: var(--danger-bg); }
.auth-notice-box--danger strong, .auth-notice-box--danger p { color: inherit; }
.button--secondary { color: var(--blue-dark); border-color: #b2ccff; background: #fff; }
.button--secondary:hover { background: var(--tint-blue); }
.button--danger { color: var(--danger); border-color: #fecdca; background: #fff; }
.button--danger:hover { background: var(--danger-bg); }
.button--link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Customer account and security */
.dropdown-action { color: var(--ink-2); text-decoration: none; }
.dropdown-divider { height: 1px; margin: 7px 8px 1px; background: var(--line); }
.account-page-heading { margin-bottom: 20px; }
.status-badge--pending { color: #b54708; border-color: #fedf89; background: #fffaeb; }
.status-badge--blocked, .status-badge--deleted { color: var(--danger); border-color: #fecdca; background: var(--danger-bg); }
.account-tabs { position: sticky; z-index: 20; top: 80px; margin: 0 0 20px; padding: 6px; display: flex; gap: 4px; overflow-x: auto; border: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.04); }
.account-tabs a { padding: 9px 13px; color: var(--ink-2); border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.account-tabs a:hover { color: var(--blue); background: var(--tint-blue); }
.account-card { margin-top: 18px; padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.account-anchor { scroll-margin-top: 154px; }
.account-card__header { margin-bottom: 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.account-card__header h2 { margin: 5px 0 5px; font-size: 22px; letter-spacing: -.025em; }
.account-card__header p { max-width: 720px; margin: 0; color: var(--muted); }
.account-card__header--actions { align-items: center; }
.session-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.session-header-actions form { margin: 0; }
.account-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.account-facts div { min-width: 0; padding: 14px; border: 1px solid var(--line); background: var(--tint); border-radius: 9px; }
.account-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.account-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 750; }
.account-form { display: grid; gap: 22px; }
.account-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.account-fieldset + .account-fieldset { padding-top: 22px; border-top: 1px solid var(--line); }
.account-fieldset legend { width: 100%; margin-bottom: 14px; padding: 0; color: var(--ink); font-size: 15px; font-weight: 800; }
.field-optional { color: var(--muted); font-size: 11px; font-weight: 600; }
.field-grid--address { grid-template-columns: minmax(0, 2fr) minmax(120px, .75fr); }
.field--full { grid-column: 1 / -1; }
.account-form__actions { display: flex; justify-content: flex-end; }
.account-note { margin: -5px 0 0; padding: 12px 14px; color: var(--muted); background: var(--tint); border-radius: 8px; font-size: 12px; }
.account-security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-security-grid .account-card { height: calc(100% - 18px); }
.session-list { display: grid; gap: 10px; }
.session-item { padding: 15px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.session-item.is-current { border-color: #b2ccff; background: #f8fbff; }
.session-item__icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); background: var(--tint-blue); border-radius: 10px; }
.session-item__icon .fa-icon { width: 17px; height: 17px; }
.session-item__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.session-current-badge { padding: 3px 7px; color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; border-radius: 999px; font-size: 10px; font-weight: 800; }
.session-meta { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 9px 18px; }
.session-meta div { display: flex; gap: 5px; }
.session-meta dt { color: var(--muted); font-size: 11px; }
.session-meta dd { margin: 0; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.session-revoke-button { padding: 8px 10px; color: var(--danger); border: 1px solid #fecdca; background: #fff; border-radius: 8px; font-size: 12px; font-weight: 750; cursor: pointer; }
.session-revoke-button:hover { background: var(--danger-bg); }

@media (max-width: 1120px) {
  .account-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .account-security-grid { grid-template-columns: 1fr; }
  .account-security-grid .account-card { height: auto; }
}

@media (max-width: 760px) {
  .account-tabs { top: 72px; }
  .account-card { padding: 18px; }
  .account-card__header--actions { align-items: stretch; flex-direction: column; }
  .account-card__header--actions form, .account-card__header--actions .button { width: 100%; }
  .session-header-actions { width: 100%; }
  .session-header-actions form, .session-header-actions .button { width: 100%; }
  .account-facts { grid-template-columns: 1fr 1fr; }
  .field-grid--address { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .account-form__actions .button { width: 100%; }
  .session-item { grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
  .session-item > form { grid-column: 1 / -1; }
  .session-revoke-button { width: 100%; }
}

@media (max-width: 480px) {
  .account-facts { grid-template-columns: 1fr; }
  .session-meta { display: grid; gap: 5px; }
}

/* Administration */
.admin-auth-brand-panel { background: linear-gradient(145deg, #071a33, #0b2d54 62%, #113f6a); }
.admin-auth-brand-panel::after { background: linear-gradient(90deg, var(--aqua), var(--blue)); }
.brand--auth-dark { padding: 0; border: 0; background: transparent; box-shadow: none; }
.admin-auth-form-panel { position: relative; }
.admin-auth-form-wrap { width: min(100%, 520px); }
.admin-auth-help { color: var(--muted); font-size: 12px; }
.admin-auth-page .button--primary { background: linear-gradient(180deg, #1f63e9, #174daf); box-shadow: 0 10px 24px rgba(31,99,233,.18); }
.admin-auth-page .button--primary:hover { background: linear-gradient(180deg, #1b59d0, #123f91); }

.admin-topbar { border-bottom-color: #d8e1eb; }
.admin-product-name { color: var(--navy); }
.admin-account-avatar { background: linear-gradient(180deg, #12355b, #071a33); }
.admin-shell { grid-template-columns: 252px 1fr; }
.admin-sidebar { min-height: calc(100vh - 68px); display: flex; flex-direction: column; border-right-color: #d8e1eb; background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); }
.admin-sidebar nav { flex: 0 0 auto; }
.admin-version { flex: 0 0 auto; margin: auto 10px 2px; padding-top: 14px; border-top: 1px solid #e2e8f0; color: #98a2b3; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.admin-sidebar .sidebar-link.is-active { color: #0f4fb6; background: #eaf2ff; }
.admin-sidebar .sidebar-link .fa-icon { width: 15px; height: 15px; }
.admin-content { background: #f5f7fa; }
.admin-page-heading { margin-bottom: 28px; }
.admin-status-dot { width: 7px; height: 7px; display: inline-block; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgba(22,135,109,.12); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-stat-card { min-width: 0; padding: 19px; display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.admin-stat-card__icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: var(--blue); background: var(--tint-blue); border-radius: 11px; }
.admin-stat-card__icon .fa-icon { width: 18px; height: 18px; }
.admin-stat-card strong, .admin-stat-card span { display: block; }
.admin-stat-card strong { color: var(--ink); font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.admin-stat-card div > span { margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 650; }
.admin-module-panel { margin-top: 18px; padding: 24px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.admin-module-panel .account-card__header { margin-bottom: 18px; }
.admin-module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-module-card { min-width: 0; padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--tint); border-radius: 10px; }
.admin-module-card > span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.admin-module-card .fa-icon { width: 15px; height: 15px; }
.admin-module-card--link { color: inherit; text-decoration: none; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.admin-module-card--link:hover { border-color: #b2ccff; background: var(--tint-blue); transform: translateY(-1px); }
.admin-module-card strong, .admin-module-card small { display: block; }
.admin-module-card strong { font-size: 13px; }
.admin-module-card small { margin-top: 2px; color: var(--muted); font-size: 11px; }

@media (max-width: 1120px) {
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 76px 1fr; }
}

@media (max-width: 680px) {
  .admin-shell { display: block; }
  .admin-sidebar { display: none; }
  .admin-stat-grid, .admin-module-grid { grid-template-columns: 1fr; }
  .admin-module-panel { padding: 18px; }
}


/* Admin customer management */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alert--success { color: var(--success); border-color: #abefc6; background: #ecfdf3; }
.admin-result-count { padding: 8px 12px; color: var(--ink-2); border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.admin-data-panel { padding: 22px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16,24,40,.035); }
.admin-filter-bar { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(160px, .8fr) minmax(180px, .9fr) auto; align-items: end; gap: 12px; }
.admin-filter-search input { min-width: 0; }
.admin-filter-actions { display: flex; gap: 8px; }
.admin-filter-actions .button { min-height: 46px; white-space: nowrap; }
.admin-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admin-table th { color: var(--muted); background: #f8fafc; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #fbfdff; }
.admin-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.customer-number { color: var(--navy); white-space: nowrap; }
.customer-primary-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.customer-primary-link:hover { color: var(--blue); text-decoration: underline; }
.admin-table__actions { text-align: right !important; }
.table-action { display: inline-flex; padding: 7px 10px; color: var(--blue-dark); border: 1px solid #b2ccff; background: #fff; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; }
.table-action:hover { background: var(--tint-blue); }
.customer-status { display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.customer-status--large { padding: 7px 11px; font-size: 12px; }
.customer-status--active { color: var(--success); border-color: #abefc6; background: #ecfdf3; }
.customer-status--pending { color: #b54708; border-color: #fedf89; background: #fffaeb; }
.customer-status--blocked, .customer-status--deleted { color: var(--danger); border-color: #fecdca; background: var(--danger-bg); }
.admin-empty-state { min-height: 250px; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.admin-empty-state .fa-icon { width: 30px; height: 30px; color: #98a2b3; }
.admin-empty-state strong { color: var(--ink); }
.admin-empty-state p { margin: 0; }
.admin-empty-state--compact { min-height: 130px; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; }
.admin-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 12px; }
.admin-pagination a { padding: 7px 10px; color: var(--blue-dark); border: 1px solid var(--line); background: #fff; border-radius: 8px; font-weight: 750; text-decoration: none; }
.admin-pagination a:hover { background: var(--tint-blue); }
.admin-back-link { display: inline-flex; margin-bottom: 14px; color: var(--blue-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.admin-back-link:hover { text-decoration: underline; }
.customer-detail-heading { align-items: center; }
.customer-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 18px; }
.customer-detail-main { min-width: 0; display: grid; gap: 18px; }
.customer-detail-side { position: sticky; top: 86px; }
.customer-section { min-width: 0; }
.customer-section .account-card__header { margin-bottom: 18px; }
.customer-section .account-card__header h2 { margin: 4px 0 0; }
.customer-facts-grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.customer-facts-grid div, .customer-side-facts div { min-width: 0; padding: 13px; border: 1px solid var(--line); background: var(--tint); border-radius: 9px; }
.customer-facts-grid dt, .customer-side-facts dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.customer-facts-grid dd, .customer-side-facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.customer-facts-grid dd a { color: var(--blue-dark); }
.customer-side-facts { margin: 0; display: grid; gap: 9px; }
.customer-status-form { margin-top: 18px; padding-top: 18px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.customer-status-form .button { width: 100%; }
.customer-note-form { padding: 16px; display: grid; gap: 14px; border: 1px solid #d7e4fb; background: #f8fbff; border-radius: 10px; }
.customer-note-form textarea { width: 100%; min-height: 120px; padding: 11px 12px; resize: vertical; color: var(--ink); border: 1px solid #cfd6df; background: #fff; border-radius: var(--radius-sm); }
.customer-note-form textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(31,99,233,.11); }
.customer-note-list { margin-top: 16px; display: grid; gap: 11px; }
.customer-note { padding: 16px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.customer-note__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.customer-note__header strong, .customer-note__header small { display: block; }
.customer-note__header small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.customer-note__text { margin-top: 13px; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.note-delete-button { padding: 6px 9px; color: var(--danger); border: 1px solid #fecdca; background: #fff; border-radius: 7px; font-size: 11px; font-weight: 750; cursor: pointer; }
.note-delete-button:hover { background: var(--danger-bg); }

@media (max-width: 1180px) {
  .admin-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-filter-search { grid-column: 1 / -1; }
  .admin-filter-actions { justify-content: flex-end; }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .customer-detail-side { position: static; }
  .customer-facts-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .admin-data-panel { padding: 17px; }
  .admin-filter-bar { grid-template-columns: 1fr; }
  .admin-filter-search { grid-column: auto; }
  .admin-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3), .admin-table th:nth-child(5), .admin-table td:nth-child(5) { display: none; }
  .customer-detail-heading { align-items: flex-start; }
  .customer-facts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .admin-filter-actions { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4) { display: none; }
  .customer-note__header { flex-direction: column; }
  .note-delete-button { width: 100%; }
}

/* Mitarbeiter, Rollen und Audit */
.alert--info { color: #175cd3; border-color: #b2ccff; background: #eff4ff; }
.button--small { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.admin-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.admin-form-panel { max-width: 1050px; }
.admin-form-panel textarea,
.permission-fieldset textarea { width: 100%; padding: 11px 12px; resize: vertical; color: var(--ink); border: 1px solid #cfd6df; background: #fff; border-radius: var(--radius-sm); }
.admin-form-panel textarea:focus,
.permission-fieldset textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(31,99,233,.11); }
.permission-fieldset { min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfe; }
.permission-fieldset legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.permission-fieldset > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.role-checkbox-grid,
.permission-option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.permission-option { min-width: 0; padding: 12px; display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; }
.permission-option:hover { border-color: #b2ccff; background: #f8fbff; }
.permission-option input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.permission-option strong,
.permission-option small { display: block; }
.permission-option strong { font-size: 13px; }
.permission-option small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.permission-groups { display: grid; gap: 14px; }
.employee-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.employee-detail-main { min-width: 0; display: grid; gap: 18px; }
.employee-detail-side { min-width: 0; display: grid; gap: 18px; }
.employee-session-list { display: grid; gap: 10px; }
.employee-session-card { padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); background: #fbfcfe; border-radius: 10px; }
.employee-session-card strong,
.employee-session-card small { display: block; }
.employee-session-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.role-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card { min-width: 0; padding: 17px; display: grid; gap: 13px; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.role-card--super { border-color: #b2ccff; background: linear-gradient(180deg, #f8fbff, #fff); }
.role-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.role-card__header strong,
.role-card__header small { display: block; }
.role-card__header small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.role-card p { min-height: 44px; margin: 0; color: var(--muted); font-size: 12px; }
.role-card__stats { display: flex; flex-wrap: wrap; gap: 7px; }
.role-card__stats span { padding: 5px 7px; color: var(--ink-2); background: var(--tint); border-radius: 999px; font-size: 10px; font-weight: 750; }
.danger-zone-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid #fecdca; }
.admin-filter-bar--audit { grid-template-columns: minmax(260px, 2fr) minmax(240px, 1fr) auto; }
.audit-table code { color: #344054; font-size: 11px; }
.audit-table details { min-width: 210px; }
.audit-table summary { color: var(--blue-dark); cursor: pointer; font-size: 12px; font-weight: 700; }
.audit-table pre { max-width: 520px; max-height: 260px; margin: 9px 0 0; padding: 10px; overflow: auto; color: #d0d5dd; background: #101828; border-radius: 8px; font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }

@media (max-width: 1100px) {
  .employee-detail-grid { grid-template-columns: 1fr; }
  .role-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-heading-actions { justify-content: flex-start; }
  .role-checkbox-grid, .permission-option-grid, .role-card-grid { grid-template-columns: 1fr; }
  .employee-session-card { align-items: flex-start; flex-direction: column; }
  .admin-filter-bar--audit { grid-template-columns: 1fr; }
}

/* Einstellungen */
.settings-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-card { min-width: 0; min-height: 118px; padding: 18px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: start; gap: 14px; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.035); text-decoration: none; transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition); }
.settings-card:hover { border-color: #b2ccff; background: #fbfdff; box-shadow: 0 12px 28px rgba(16,24,40,.07); transform: translateY(-1px); }
.settings-card--disabled { color: #98a2b3; background: #f8fafc; box-shadow: none; cursor: default; }
.settings-card--disabled:hover { border-color: var(--line); background: #f8fafc; box-shadow: none; transform: none; }
.settings-card__icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--blue); background: var(--tint-blue); border-radius: 11px; }
.settings-card--disabled .settings-card__icon { color: #98a2b3; background: #eef1f5; }
.settings-card__icon .fa-icon { width: 18px; height: 18px; }
.settings-card strong, .settings-card small { display: block; }
.settings-card strong { font-size: 15px; }
.settings-card small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.settings-card--disabled small { color: #98a2b3; }
.settings-form { display: grid; gap: 18px; }
.settings-section { display: grid; gap: 22px; }
.settings-section--narrow { max-width: 900px; }
.settings-section__header h2 { margin: 0; font-size: 19px; }
.settings-section__header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.settings-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-form-grid--compact { margin-top: 4px; }
.settings-form .field input[readonly], .settings-section .field input[readonly] { color: var(--muted); background: #f8fafc; cursor: not-allowed; }
.settings-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.settings-toggle-row { padding: 15px; display: grid; grid-template-columns: auto 44px minmax(0, 1fr); align-items: center; gap: 12px; border: 1px solid var(--line); background: #fbfcfe; border-radius: 11px; cursor: pointer; }
.settings-toggle-row > input { position: absolute; opacity: 0; pointer-events: none; }
.settings-toggle { width: 42px; height: 24px; position: relative; display: block; background: #d0d5dd; border-radius: 999px; transition: background var(--transition); }
.settings-toggle::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(16,24,40,.25); transition: transform var(--transition); }
.settings-toggle-row > input:checked + .settings-toggle { background: var(--blue); }
.settings-toggle-row > input:checked + .settings-toggle::after { transform: translateX(18px); }
.settings-toggle-row > input:focus-visible + .settings-toggle { outline: 3px solid rgba(31,99,233,.28); outline-offset: 2px; }
.settings-toggle-row strong, .settings-toggle-row small { display: block; }
.settings-toggle-row strong { font-size: 13px; }
.settings-toggle-row small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.settings-reminder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.settings-reminder-grid .permission-fieldset { display: grid; gap: 12px; }
.settings-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.settings-status-grid > div { min-width: 0; padding: 14px; border: 1px solid var(--line); background: #f8fafc; border-radius: 10px; }
.settings-status-grid span, .settings-status-grid strong { display: block; }
.settings-status-grid span { color: var(--muted); font-size: 11px; }
.settings-status-grid strong { margin-top: 4px; font-size: 13px; word-break: break-word; }
.cron-command { padding: 14px; overflow-x: auto; color: #d0d5dd; background: #101828; border-radius: 10px; }
.cron-command code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; white-space: nowrap; }
.settings-info-list { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.settings-info-list div { padding: 13px 14px; display: grid; grid-template-columns: 220px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.settings-info-list div:last-child { border-bottom: 0; }
.settings-info-list dt { color: var(--muted); font-size: 12px; }
.settings-info-list dd { margin: 0; font-size: 13px; font-weight: 650; }

@media (max-width: 1100px) {
  .settings-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-reminder-grid, .settings-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .settings-card-grid, .settings-form-grid, .settings-reminder-grid, .settings-status-grid { grid-template-columns: 1fr; }
  .settings-form-actions { justify-content: stretch; }
  .settings-form-actions .button { width: 100%; }
  .settings-info-list div { grid-template-columns: 1fr; gap: 4px; }
}
