/* ==========================================================
   SEORCH Kontrast – Konto-Bereich: Anmelden, Registrieren,
   Passwort, E-Mail-Bestätigung, Mein Konto, Einstellungen.
   Benötigt base.css + pages.css
   ========================================================== */

/* ---------- Gemeinsame Bausteine ---------- */
.mono { font-family: var(--mono); letter-spacing: .04em; }
.field__opt { margin-left: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field__hint { margin: 0; }
.field__error { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--red-dark); display: flex; gap: 6px; align-items: flex-start; }
.field__error:empty { display: none; }
.field__error::before { content: "!"; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: 800 11px/1 var(--font); }
.field__caps { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.field__caps:empty { display: none; }
.field__caps::before { content: "⇪"; font-size: 14px; color: var(--red); }
.field input[aria-invalid="true"], .field input[aria-invalid="true"]:focus { border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 14%, transparent); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { border-radius: var(--r); background: #fff; }
.check a, .switch a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }
.check input { border-radius: 6px; }
.field > label.check { font-weight: 400; font-size: 14.5px; color: var(--text-2); }
.check input:focus-visible { outline: 3px solid var(--c2); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--red); }

/* password field with toggle */
.pw { position: relative; }
.field .pw input { padding-right: 56px; }
.pw__toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 46px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; place-items: center; transition: color .2s, background .2s; }
.pw__toggle:hover { color: var(--text); background: var(--bg-2); }
.pw__toggle .pw__hide, .pw__toggle[aria-pressed="true"] .pw__show { display: none; }
.pw__toggle[aria-pressed="true"] .pw__hide { display: block; }

/* strength meter + rules */
.pwmeter { display: grid; gap: 6px; margin-top: 2px; }
.pwmeter__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pwmeter__bar i { height: 4px; border-radius: 2px; background: var(--bg-2); transition: background .3s; }
.pwmeter[data-level="1"] i:nth-child(-n+1) { background: var(--red); }
.pwmeter[data-level="2"] i:nth-child(-n+2) { background: var(--red-dark); }
.pwmeter[data-level="3"] i:nth-child(-n+3) { background: #4a4a4a; }
.pwmeter[data-level="4"] i { background: var(--text); }
.pwmeter__label { font-size: 12.5px; color: var(--muted); }
.pwmeter__label b { color: var(--text); font-weight: 600; }
.pwrules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.pwrules li { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.pwrules__ico { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--stroke-2); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.pwrules li.is-ok { color: var(--text); }
.pwrules li.is-ok .pwrules__ico { background: var(--text); border-color: var(--text); }
.pwrules li.is-ok .pwrules__ico::after { content: ""; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 1.8px 1.8px; transform: translateY(-1px) rotate(-45deg); }
.pwrules.is-checked li:not(.is-ok) { color: var(--red-dark); }
.pwrules.is-checked li:not(.is-ok) .pwrules__ico { border-color: var(--red); }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--stroke); background: #fff; font-size: 15px; line-height: 1.5; }
.alert[hidden] { display: none; }
.alert svg { flex: none; margin-top: 1px; }
.alert p { margin: 0; color: var(--text-2); }
.alert strong { color: var(--text); }
.alert--ok { border-color: var(--text); box-shadow: inset 4px 0 0 var(--text); }
.alert--ok svg { color: var(--text); }
.alert--err { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 6%, #fff); box-shadow: inset 4px 0 0 var(--red); }
.alert--err svg { color: var(--red); }
.alert--info { background: var(--bg); box-shadow: inset 4px 0 0 var(--red); }
.alert--info svg { color: var(--red); }

/* submit buttons with loading state */
.auth__submit { position: relative; height: 52px; font-size: 16px; }
.auth__submit:not(.auth__submit--auto) { width: 100%; }
.auth__submit--auto { height: 46px; font-size: 15px; }
.auth__submit[disabled] { cursor: not-allowed; opacity: .55; transform: none; }
.auth__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
.is-loading .auth__spin { display: block; }
.is-loading > svg { display: none; }
.is-loading { pointer-events: none; }
.btn--grad:hover, .btn--dark:hover { border-color: transparent; }
.btn--danger { background: var(--red); color: #fff; border-color: transparent; }
.btn--danger:hover { background: var(--red-dark); border-color: transparent; }

/* ==========================================================
   Auth-Seiten (Split-Screen)
   ========================================================== */
.auth-page { padding-block: clamp(28px, 5vw, 64px) 56px; }
.auth {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  max-width: 1080px; margin-inline: auto; min-height: 640px;
  border-radius: var(--r-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--stroke); box-shadow: var(--shadow-lg);
}

.auth__aside {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 32px; padding: 44px 44px 36px;
  background: #0a0a0a; color: #fff;
}
.auth__aside::before { /* white dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(160deg, #000 10%, transparent 75%); -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
}
.auth__aside::after { /* red accent: glow + bar */
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -140px; width: 360px; height: 360px; border-radius: 50%;
  background: var(--red); opacity: .55; filter: blur(90px);
}
.auth__brand { display: flex; align-items: center; gap: 10px; }
.auth__logo { font-weight: 800; letter-spacing: .04em; font-size: 20px; }
.auth__tag { font: 700 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--red); color: #fff; }
.auth__pitch { position: relative; padding-left: 20px; }
.auth__pitch::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: var(--red); }
.auth__title { margin: 0; font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.auth__lead { margin: 10px 0 0; color: rgba(255, 255, 255, .7); font-size: 17px; }
.auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth__perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.auth__perks b { color: #fff; font-weight: 700; }
.auth__perks svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; stroke-width: 1.8; }
.auth__perks li:first-child svg { background: var(--red); border-color: transparent; }
.auth__foot { margin: auto 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .55); }
.auth__foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.auth__foot a:hover { border-color: var(--red); }
.auth__aside :focus-visible { outline-color: #fff; }

.auth__card { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(32px, 5vw, 64px); min-width: 0; }
.auth__card > [data-view] { display: grid; gap: 22px; }
.auth__card > [hidden] { display: none; }
.auth__head { display: grid; gap: 6px; }
.auth__head .eyebrow, .auth__state .eyebrow { margin: 0; }
.auth__card h1 { margin: 0; font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.auth__card h1:focus { outline: none; }
.auth__card .auth__state h1 { font-size: clamp(30px, 3vw, 38px); }
.auth__sub { margin: 4px 0 0; color: var(--text-2); font-size: 15.5px; }
.auth__sub a, .auth__legal a, .auth__text a { color: var(--text); font-weight: 600; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.auth__sub--center { text-align: center; }
.auth__form { gap: 18px; }
.auth__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.auth__link { font-size: 14.5px; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.auth__link:hover, .auth__sub a:hover { color: var(--red-dark); }
.auth__back { text-decoration: none !important; }
.auth__checks { display: grid; gap: 12px; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--stroke); }
.auth__checks .check { font-size: 14.5px; }
.auth__legal { margin: 0; font-size: 13px; color: var(--muted); }

/* success / error states */
.auth__state { display: grid; gap: 14px; justify-items: start; }
.auth__badge { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; background: var(--text); color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); position: relative; }
.auth__badge::after { content: ""; position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 3px solid #fff; }
.auth__badge svg { width: 30px; height: 30px; }
.auth__badge--ok svg { stroke-width: 2.6; }
.auth__badge--err { background: var(--red); box-shadow: 0 14px 30px -12px rgba(222, 18, 18, .7); }
.auth__badge--err::after { background: var(--text); }
.auth__text { margin: 0; color: var(--text-2); font-size: 16.5px; max-width: 34em; }
.auth__text strong { color: var(--text); overflow-wrap: anywhere; }
.auth__tips { margin: 0; padding: 14px 16px 14px 34px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--stroke); font-size: 14.5px; color: var(--text-2); display: grid; gap: 4px; width: 100%; }
.auth__tips li::marker { color: var(--red); }
.auth__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.auth__actions .btn { height: 50px; }
.auth__status { margin: 0; font-size: 14px; color: var(--text-2); min-height: 1.4em; }
.auth__state .auth__form { width: 100%; }
.auth__state .auth__form .auth__status { min-height: 0; }
.auth__card .loader { padding: 64px 20px; }
.auth__card > .loader[hidden] { display: none; }

/* ==========================================================
   Konto-Menü im Kopf
   ========================================================== */
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 5px; border-radius: 8px; border: 1px solid var(--stroke-2); background: var(--glass-2); font-weight: 600; font-size: 15px; transition: border-color .2s; }
.acct__btn:hover, .acct__btn[aria-expanded="true"] { border-color: var(--text); }
.acct__chev { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--spring); }
.acct__btn[aria-expanded="true"] .acct__chev { transform: rotate(180deg); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; background: var(--text); color: #fff; font: 700 13px var(--font); letter-spacing: .04em; position: relative; flex: none; }
.avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; border-radius: 8px; }
.acct__menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120; width: 280px; padding: 8px;
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  transform-origin: 100% 0; animation: drop .35s var(--spring);
}
.acct__menu[hidden] { display: none; }
.acct__who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--stroke); margin-bottom: 6px; }
.acct__who b { display: block; font-size: 15px; line-height: 1.25; }
.acct__who small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.acct__menu ul { list-style: none; margin: 0; padding: 0; }
.acct__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500; }
.acct__menu a svg { width: 18px; height: 18px; color: var(--muted); }
.acct__menu a:hover, .acct__menu a:focus-visible { background: var(--bg-2); }
.acct__menu a[aria-current] { font-weight: 700; }
.acct__menu a[aria-current] svg { color: var(--red); }
.acct__sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--stroke); }
.acct__sep a:hover { color: var(--red-dark); }
.acct__sep a:hover svg { color: var(--red); }

/* ==========================================================
   Mein Konto (Dashboard)
   ========================================================== */
.acct-page { gap: 24px; }
.acct-hero h1 { font-size: clamp(44px, 7vw, 84px); }
.acct-hero .eyebrow { margin-bottom: 10px; }
.acct-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; }
.quick__a { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 8px; border: 1px solid var(--stroke-2); background: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .3s var(--spring), border-color .2s; }
.quick__a:hover { transform: translateY(-2px); border-color: var(--text); }
.quick__a svg { width: 30px; height: 30px; padding: 6px; border-radius: 6px; background: var(--bg-2); }
.quick__a--main { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -12px rgba(222, 18, 18, .8); }
.quick__a--main:hover { border-color: transparent; }
.quick__a--main svg { background: rgba(255, 255, 255, .18); }

.kpis { list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis .stat { background: #fff; position: relative; }
.kpis .stat b { font-weight: 800; }
.stat--live b { color: var(--red); }
.stat--live::after { content: ""; position: absolute; right: 18px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(222, 18, 18, .5); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(222, 18, 18, 0); } 100% { box-shadow: 0 0 0 0 rgba(222, 18, 18, 0); } }

.dash { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dash__main, .dash__side { display: grid; gap: 20px; min-width: 0; }
.card { padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--stroke); box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card__head h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.card__head h2 svg { width: 30px; height: 30px; padding: 6px; border-radius: 6px; background: var(--text); color: #fff; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-2); white-space: nowrap; }
.card__more svg { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.card__more:hover { color: var(--red-dark); }
.card__more:hover svg { transform: translateX(3px); }
.card__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.card__note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

/* crawl table */
.dtable-wrap { background: #fff; }
.dtable td { vertical-align: middle; }
.dtable .dlist__url { font-weight: 600; text-decoration: none; white-space: nowrap; }
.dtable .dlist__url:hover { text-decoration: underline; text-decoration-color: var(--red); }
.dtable time { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.dlist__act { text-align: right; white-space: nowrap; }
.status { gap: 6px; }
.status--run::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.8s infinite; }
.progress { position: relative; width: 100%; min-width: 110px; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: var(--text); }
.progress--inv { background: rgba(255, 255, 255, .16); height: 8px; border-radius: 4px; }
.progress--inv i { background: var(--red); }
tr:has(.status--run) .progress i { background: var(--red); }
tr:has(.status--err) .progress i { background: var(--red-dark); }
.progress__txt { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* result lists */
.rlist { list-style: none; margin: 0; padding: 0; display: grid; }
.rlist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--stroke); }
.rlist li:first-child { border-top: 0; padding-top: 0; }
.rlist li:last-child { padding-bottom: 0; }
.rlist__ico { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--red) 10%, #fff); color: var(--red); }
.rlist__ico svg { width: 20px; height: 20px; }
.rlist__ico--sched { background: var(--bg-2); color: var(--text); }
.rlist__body { flex: 1; min-width: 0; display: grid; }
.rlist__t { font-weight: 600; text-decoration: none; overflow-wrap: break-word; line-height: 1.35; }
.rlist__t:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.rlist small { font-size: 13px; color: var(--muted); }
.rlist .btn { flex: none; }

/* dark API card */
.card--dark { background: #0a0a0a; color: #fff; border-color: transparent; position: relative; overflow: hidden; isolation: isolate; }
.card--dark::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--red); opacity: .35; filter: blur(60px); }
.card--dark .card__head h2 svg { background: var(--red); }
.card--dark .card__note { color: rgba(255, 255, 255, .55); }
.badge-s--inv { color: #fff; background: rgba(255, 255, 255, .14); }
.quota { margin: 0 0 14px; display: grid; }
.quota b { font-size: 42px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.quota span { font-size: 14px; color: rgba(255, 255, 255, .7); margin-top: 4px; }
.btn--light { background: #fff; color: var(--text); border-color: transparent; }
.btn--light:hover { border-color: transparent; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--ghost:hover { border-color: #fff; }
.card--dark :focus-visible { outline-color: #fff; }

.tlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tlinks a { display: flex; align-items: center; gap: 12px; padding: 10px; margin-inline: -10px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.tlinks a:hover { background: var(--bg); }
.tlinks__ico { width: 38px; height: 38px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--bg-2); }
.tlinks b { display: block; font-size: 15px; line-height: 1.3; }
.tlinks small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.tlinks a > span:nth-child(2) { flex: 1; min-width: 0; }
.tlinks__go { width: 16px; height: 16px; color: var(--muted); transition: transform .3s var(--spring), color .2s; }
.tlinks a:hover .tlinks__go { color: var(--red); transform: translateX(2px); }

.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; gap: 1px; }
.kv dt { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ==========================================================
   Einstellungen
   ========================================================== */
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.snav { position: sticky; top: 96px; }
.snav ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.snav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; white-space: nowrap; }
.snav a svg { width: 18px; height: 18px; color: var(--muted); }
.snav a:hover { background: var(--bg); color: var(--text); }
.snav a[aria-current] { background: var(--text); color: #fff; font-weight: 600; }
.snav a[aria-current] svg { color: var(--red); }
.snav__danger { color: var(--red-dark) !important; }
.snav a.snav__danger[aria-current] { background: var(--red); color: #fff !important; }
.snav a.snav__danger[aria-current] svg { color: #fff; }

.settings__body { display: grid; gap: 20px; min-width: 0; }
.sect { padding: clamp(22px, 3vw, 32px); scroll-margin-top: 96px; }
.sect__head { margin-bottom: 20px; }
.sect__head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.sect__head p { margin: 0; color: var(--text-2); font-size: 15.5px; max-width: 46em; }
.sect__head a { color: var(--text); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }
.sect__meta { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.form-row--top, .acct-page .form-row { align-items: start; }
.auth-body .field, .acct-body .field { align-content: start; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 8px; }
.form-status:empty { display: none; }
.form-status::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.form-status.is-err { color: var(--red-dark); }
.form-status.is-err::before { background: var(--red); content: "!"; color: #fff; display: grid; place-items: center; font: 800 11px var(--font); }

/* switches */
.switches { display: grid; gap: 4px; }
.switch { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; cursor: pointer; border-top: 1px solid var(--stroke); }
.switch:first-child { border-top: 0; padding-top: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--stroke-2); transition: background .25s; margin-top: 1px; }
.switch__ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .35s var(--spring); }
.switch input:checked + .switch__ui { background: var(--red); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--c2); outline-offset: 3px; }
.switch__txt b { display: block; font-size: 16px; }
.switch__txt small { display: block; font-size: 14px; color: var(--text-2); }

/* api key */
.apikey { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v b"; gap: 8px 12px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--stroke); }
.apikey__label { grid-area: l; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.apikey__val { grid-area: v; display: block; padding: 12px 14px; border-radius: 6px; background: #0a0a0a; color: #fff; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; word-break: break-all; }
.apikey__btns { grid-area: b; display: flex; flex-wrap: wrap; gap: 6px; }
.apikey.is-new .apikey__val { box-shadow: 0 0 0 3px var(--red); }

/* sessions */
.sessions { list-style: none; margin: 0 0 18px; padding: 0; display: grid; border: 1px solid var(--stroke); border-radius: var(--r); }
.sessions li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--stroke); }
.sessions li:first-child { border-top: 0; }
.sessions li.is-ended { opacity: .45; }
.sessions li.is-ended .btn { display: none; }
.sessions__ico { width: 38px; height: 38px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); }
.sessions .is-current .sessions__ico { background: var(--text); color: #fff; }
.sessions__body { flex: 1; min-width: 0; display: grid; }
.sessions__body b { font-size: 15px; }
.sessions__body small { font-size: 13px; color: var(--muted); }

/* danger zone */
.danger { border-color: color-mix(in srgb, var(--red) 40%, transparent); box-shadow: inset 0 4px 0 var(--red), var(--shadow); }
.danger .sect__head h2 { color: var(--red-dark); }

/* dialogs */
.modal { padding: 0; border: 0; background: transparent; color: var(--text); width: min(480px, calc(100vw - 32px)); max-width: none; }
.modal::backdrop { background: rgba(10, 10, 10, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal[open] .modal__box { animation: drop .4s var(--spring); }
.modal__box { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--stroke); box-shadow: var(--shadow-lg); }
.modal__box h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; line-height: 1.15; }
.modal__box > p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.modal__ico { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: var(--text); color: #fff; }
.modal--danger .modal__ico { background: var(--red); }
.modal__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal .field label b { color: var(--red-dark); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1000px) {
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .snav { position: sticky; top: 84px; z-index: 50; }
  .snav ul { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .snav ul::-webkit-scrollbar { display: none; }
  .sect { scroll-margin-top: 150px; }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth__aside { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 6px 16px; }
  .auth__aside::after { right: -60px; bottom: auto; top: -150px; width: 240px; height: 240px; opacity: .5; }
  .auth__logo { font-size: 17px; }
  .auth__pitch { padding-left: 0; }
  .auth__pitch::before, .auth__title { display: none; }
  .auth__lead { margin: 0; font-size: 13.5px; }
  .auth__perks, .auth__foot { display: none; }
}

@media (max-width: 680px) {
  .auth-page { padding-block: 16px 32px; }
  .auth { border-radius: 12px; }
  .auth__card { padding: 26px 20px 28px; gap: 18px; }
  .auth__card > [data-view] { gap: 18px; }
  .auth__card h1 { font-size: 30px; }
  .auth__actions .btn { flex: 1 1 auto; }

  .acct__btn { padding: 0 3px; height: 40px; }
  .acct__name, .acct__chev { display: none; }
  .avatar { width: 32px; height: 32px; }
  .acct__menu { position: fixed; left: 12px; right: 12px; top: 72px; width: auto; }

  .acct-hero h1 { font-size: 48px; }
  .quick { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .quick__a { padding: 0 12px 0 10px; font-size: 14px; }
  .quick__a--main { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px; }

  /* crawl table -> stacked cards */
  .dtable-wrap { border: 0; background: transparent; overflow: visible; }
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable tbody { display: grid; gap: 10px; }
  .dtable tr { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; border: 1px solid var(--stroke); border-radius: var(--r); }
  .dtable td { padding: 0; border: 0; }
  .dtable td:nth-child(1) { grid-column: 1; }
  .dtable td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .dtable td:nth-child(3) { grid-column: 1 / -1; }
  .dtable td:nth-child(4) { grid-column: 1; align-self: center; }
  .dtable td:nth-child(5) { grid-column: 2; }
  .dtable tbody tr:hover { background: transparent; }

  .dtable .dlist__url { white-space: normal; overflow-wrap: break-word; }
  .card__head h2 { font-size: 18px; }
  .rlist__copy span { display: none; }

  .apikey { grid-template-columns: 1fr; grid-template-areas: "l" "v" "b"; }
  .sessions li { flex-wrap: wrap; }
  .modal { margin: auto auto 12px; }
  .modal__box { padding: 22px; }
  .modal__btns .btn { flex: 1 1 auto; }
  .form__foot .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .stat--live::after, .status--run::before { animation: none; }
}

/* ---------- Kopfbereich zentriert (wie die übrigen Seiten) ---------- */
.acct-hero { text-align: center; }
.acct-hero .page-hero__crumbs { justify-content: center; }
.acct-hero .page-hero__lead { margin-inline: auto; }
.acct-hero__row { flex-direction: column; align-items: center; }
.acct-hero .quick { justify-content: center; }
