@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

/* Design tokens — neutral dark (default) */
:root {
    color-scheme: dark;
    --bg: #09090b;
    --bg-soft: #18181b;
    --bg-elev: #27272a;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --primary: #e4e4e7;
    --primary-hover: #ffffff;
    --accent: #d4d4d8;
    --cyan: #a1a1aa;
    --violet: #71717a;
    --gold: #d4d4d8;
    --card: rgba(24, 24, 27, 0.72);
    --card-strong: rgba(39, 39, 42, 0.85);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.06);
    --glass-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
    --radius-lg: 22px;
    --radius-md: 14px;
    --ease-out: cubic-bezier(.2, .9, .2, 1);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: clamp(15px, 0.36vw + 12px, 19px);
}

body {
    margin: 0;
    font-family: "Space Grotesk", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background:
        radial-gradient(1000px 700px at 8% -8%, rgba(255, 255, 255, 0.04), transparent 58%),
        radial-gradient(800px 600px at 95% 8%, rgba(255, 255, 255, 0.03), transparent 60%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 52%, var(--bg) 100%);
    min-height: 100vh;
    --space-parallax: 0px;
}

h1,
h2,
h3,
.eyebrow,
.section-kicker,
.brand-mark {
    font-family: "Orbitron", "Space Grotesk", "Segoe UI", sans-serif;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.eyebrow {
    margin: 0;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: 0.72rem;
    font-weight: 700;
    text-shadow: none;
}

h1 {
    margin: 0.55rem 0 0;
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.08;
    letter-spacing: 0.03em;
}

.subtitle {
    margin-top: 0.95rem;
    max-width: 62ch;
    color: var(--text-dim);
    line-height: 1.65;
}

.subtitle--glow {
    color: var(--text);
    text-shadow: none;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 0.65rem;
}

.top-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.52rem 0.62rem 0.52rem 0.88rem;
    transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out);
}

body.nav-scrolled .top-nav__inner {
    background: rgba(24, 24, 27, 0.75);
    border-color: var(--border);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.32);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f4f8ff;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.brand-mark__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fafafa, var(--accent) 65%, transparent 70%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);
}

.top-nav__links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link,
.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    min-height: 38px;
    padding: 0.55rem 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    backdrop-filter: blur(12px);
    transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out), box-shadow 0.24s var(--ease-out), background 0.24s var(--ease-out), color 0.24s var(--ease-out);
}

.nav-link {
    border-color: transparent;
    color: var(--text-dim);
    background: transparent;
}

.nav-link:hover {
    color: var(--text);
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.admin-link {
    background: rgba(255, 255, 255, 0.035);
}

.admin-link:hover {
    border-color: var(--border-strong);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.admin-link--ghost {
    background: rgba(255, 255, 255, 0.015);
}

.account-link {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    z-index: 2;
}

.hero--galactic {
    min-height: min(86vh, 900px);
    display: grid;
    align-items: center;
    padding: 2rem 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    align-items: center;
}

.hero-copy h1 {
    background: linear-gradient(120deg, #fafafa 10%, #e4e4e7 50%, #d4d4d8 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.hero-cta-row {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.section-head {
    margin-top: 1rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: 0.05em;
}

.section-kicker {
    margin: 0 0 0.35rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.3rem 0 3.2rem;
}

.app-card {
    border-radius: var(--radius-lg);
    background: linear-gradient(172deg, var(--card) 0%, rgba(8, 15, 30, 0.74) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    padding: 0.86rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.app-card--galactic::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(125, 239, 255, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(129, 231, 255, 0.48);
    background: linear-gradient(172deg, var(--card-strong) 0%, rgba(8, 16, 32, 0.8) 100%);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(109, 243, 255, 0.25) inset, 0 0 22px rgba(100, 218, 255, 0.22);
}

.app-card:hover::before {
    opacity: 1;
}

.app-preview {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(130, 212, 255, 0.34);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(24, 24, 27, 0.8));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 22px rgba(255, 255, 255, 0.2);
}

.app-preview--placeholder {
    aspect-ratio: 16 / 9;
}

.app-preview__frame {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(118, 243, 255, 0.32);
    border-radius: 10px;
    pointer-events: none;
}

.app-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.app-card__top {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: flex-start;
}

.app-card h3 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.badge {
    border-radius: 999px;
    border: 1px solid rgba(133, 221, 255, 0.44);
    background: rgba(255, 255, 255, 0.18);
    color: var(--text);
    padding: 0.26rem 0.62rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.energy-line {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(108, 245, 255, 0.25), rgba(108, 245, 255, 0.92), rgba(161, 161, 170, 0.7), rgba(255, 203, 119, 0.24));
    box-shadow: 0 0 14px rgba(113, 222, 255, 0.55);
}

.app-card__description {
    margin: 0;
    color: var(--text-dim);
}

.meta-badges {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.meta-badge {
    border: 1px solid rgba(126, 203, 255, 0.26);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    font-size: 0.74rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.download-button {
    position: relative;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
    text-decoration: none;
    color: #f8fcff;
    border: 1px solid rgba(121, 223, 255, 0.56);
    border-radius: 12px;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(63, 63, 70, 0.2));
    box-shadow: 0 8px 24px rgba(36, 101, 191, 0.34), inset 0 0 18px rgba(111, 232, 255, 0.25);
    overflow: hidden;
    transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out);
}

.download-button:hover {
    transform: translateY(-2px);
    border-color: rgba(142, 242, 255, 0.74);
    box-shadow: 0 14px 28px rgba(26, 96, 203, 0.46), inset 0 0 28px rgba(124, 241, 255, 0.35), 0 0 20px rgba(110, 216, 255, 0.36);
}

.btn-pulse {
    position: absolute;
    inset: auto auto 50% 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(150, 238, 255, 0.65);
    transform: translate(-50%, 50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.download-button.is-downloading .btn-pulse {
    animation: energyPulse 0.9s ease;
}

.blog-list {
    display: grid;
    gap: 1rem;
    padding: 1rem 0 2.4rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.blog-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(175deg, rgba(16, 28, 52, 0.58), rgba(9, 17, 35, 0.78));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.blog-item--galactic {
    position: relative;
    overflow: hidden;
}

.blog-item--galactic::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(107, 233, 255, 0.85), transparent);
}

.blog-item__date {
    margin: 0 0 0.4rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.blog-item h3 {
    margin: 0 0 0.44rem;
}

.blog-item p {
    line-height: 1.62;
}

.muted {
    color: var(--text-dim);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@keyframes energyPulse {
    0% { transform: translate(-50%, 50%) scale(0); opacity: 0.7; }
    100% { transform: translate(-50%, 50%) scale(14); opacity: 0; }
}

.admin-layout {
    padding-bottom: 3rem;
}

.admin-card {
    background: linear-gradient(180deg, var(--card) 0%, rgba(12, 19, 35, 0.55) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.05rem;
    margin-bottom: 1.05rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--glass-shadow);
}

.admin-card h2 {
    margin-top: 0;
}

.control-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.control-nav-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.control-nav-card:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.control-nav-card h3 {
    margin: 0 0 0.35rem;
}

.control-nav-card--disabled {
    opacity: 0.75;
}

.control-inline-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-switch {
    margin-top: -0.25rem;
    margin-bottom: 0.9rem;
}

.auth-switch a {
    color: var(--text-dim);
}

.auth-switch a:hover {
    color: #ffffff;
}

.account-overview-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.account-status-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.account-status-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 0.2rem;
}

.account-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.auth-collapse summary {
    cursor: pointer;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem 1.5rem;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.download-button--header {
    min-height: 38px;
    padding: 0.52rem 1rem;
    font-size: 0.88rem;
    margin-top: 0;
}

.auth-portal-main {
    padding-bottom: 3rem;
}

.rl-subpage.auth-portal-main {
    width: min(100%, 58rem);
}

.auth-portal-panels {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-sizing: border-box;
}

.auth-portal-profile-form {
    grid-template-columns: 1fr;
}

.auth-portal-profile-form .span-2 {
    grid-column: 1;
}

.auth-portal-accent-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-portal-accent-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.top-gap {
    margin-top: 0.8rem;
}

.danger-zone {
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.form-grid label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(8, 14, 27, 0.75);
    color: var(--text);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    font: inherit;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover {
    border-color: rgba(174, 207, 255, 0.34);
}

.form-grid textarea {
    resize: vertical;
}

.span-2 {
    grid-column: span 2;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

th,
td {
    text-align: left;
    padding: 0.55rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

thead th {
    color: var(--text-dim);
    font-weight: 700;
}

tbody tr:nth-child(2n) td {
    background: rgba(255, 255, 255, 0.02);
}

.danger-button {
    border: 1px solid #7b2d2d;
    background: linear-gradient(180deg, #5d1c1c, #4a1414);
    color: #ffdede;
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
    font-weight: 600;
    cursor: pointer;
}

.danger-button:hover {
    filter: brightness(1.06);
}

.request-action-form {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.request-action-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(12, 18, 32, 0.75);
    color: var(--text);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font: inherit;
}

.avatar-preview {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.notice {
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin: 0 0 1rem;
    border: 1px solid transparent;
}

.notice--success {
    background: rgba(31, 109, 55, 0.25);
    border-color: #2f8d56;
}

.notice--error {
    background: rgba(122, 30, 30, 0.25);
    border-color: #a54444;
}

.notice--info {
    background: rgba(32, 54, 96, 0.25);
    border-color: #52525b;
}

.rl-toast-stack {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 2400;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.rl-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(11, 23, 44, 0.92);
    backdrop-filter: blur(16px);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px) translateX(-8px);
    transition: opacity 0.26s ease, transform 0.26s ease;
}

.rl-toast.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

.rl-toast.is-leaving {
    opacity: 0;
    transform: translateY(8px) translateX(-8px);
}

.rl-toast__icon {
    flex: 0 0 auto;
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.42rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

.rl-toast__text {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

.rl-toast--success {
    border-color: rgba(72, 170, 108, 0.55);
    background: rgba(16, 42, 28, 0.94);
    color: #d8f5e2;
}

.rl-toast--error {
    border-color: rgba(196, 92, 92, 0.55);
    background: rgba(42, 16, 16, 0.94);
    color: #f5d8d8;
}

.rl-toast--warning {
    border-color: rgba(214, 164, 72, 0.55);
    background: rgba(42, 32, 12, 0.94);
    color: #f8ecd0;
}

.rl-toast--info {
    border-color: rgba(122, 219, 255, 0.42);
    background: rgba(11, 23, 44, 0.92);
    color: var(--text);
}

html[data-theme="light"] .public-ay .rl-toast--info,
html[data-theme="light"] .cp-shell .rl-toast--info {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #27272a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .public-ay .rl-toast--success,
html[data-theme="light"] .cp-shell .rl-toast--success {
    border-color: rgba(47, 141, 86, 0.35);
    background: #eef9f1;
    color: #1f4d31;
}

html[data-theme="light"] .public-ay .rl-toast--error,
html[data-theme="light"] .cp-shell .rl-toast--error {
    border-color: rgba(165, 68, 68, 0.35);
    background: #fdf0f0;
    color: #7a1e1e;
}

html[data-theme="light"] .public-ay .rl-toast--warning,
html[data-theme="light"] .cp-shell .rl-toast--warning {
    border-color: rgba(180, 130, 40, 0.35);
    background: #fff8ea;
    color: #6b4f12;
}

@media (prefers-reduced-motion: reduce) {
    .rl-toast {
        transition: none !important;
        transform: none !important;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(8, 14, 26, 0.62);
    padding: 2rem 0;
    backdrop-filter: blur(16px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.footer-grid section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.9rem;
    min-height: 140px;
}

.footer-grid h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-dim);
    text-decoration: none;
}

.footer-grid a:hover {
    color: #ffffff;
}

.hidden {
    display: none !important;
}

.upload-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 8, 18, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.upload-modal__card {
    width: min(560px, 100%);
    background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--glass-shadow);
}

.upload-progress {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    overflow: hidden;
}

.upload-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #52525b, #71717a);
    transition: width 0.2s ease;
}

.upload-progress__percent {
    margin: 0.7rem 0 1rem;
    font-weight: 700;
}

.admin-session-bar {
    margin-bottom: 1rem;
}

.admin-session-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin: 0;
}

.admin-session-bar__meta {
    opacity: 0.88;
    font-size: 0.88rem;
}

.admin-back-nav {
    margin: 0 0 1rem;
}

.cp-software-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.rl-software-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rl-software-tabs-wrap {
    padding-top: 0.75rem;
}

.rl-software-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.95rem;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.rl-software-tabs__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.rl-software-tabs__link.is-active {
    background: rgba(143, 228, 255, 0.18);
    color: #dff7ff;
    box-shadow: inset 0 0 0 1px rgba(143, 228, 255, 0.35);
}

html[data-theme="light"] .rl-software-tabs {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .rl-software-tabs__link {
    color: rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .rl-software-tabs__link:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

html[data-theme="light"] .rl-software-tabs__link.is-active {
    background: rgba(0, 120, 180, 0.12);
    color: #0a4a6b;
    box-shadow: inset 0 0 0 1px rgba(0, 120, 180, 0.25);
}

.admin-focus-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.admin-card--focus {
    border-color: rgba(143, 228, 255, 0.38);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38);
}

.admin-section-title {
    margin: 0.35rem 0 0.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(130, 201, 255, 0.2);
    padding-bottom: 0.35rem;
}

.admin-upload-hint {
    margin: 0 0 1rem;
    max-width: 70ch;
    line-height: 1.5;
}

.admin-form .admin-section-title {
    margin-top: 0.75rem;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.25rem;
}

.public-home .public-main {
    position: relative;
    z-index: 2;
}

.space-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.space-stars {
    position: absolute;
    inset: 0;
}

.shooting-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: #f8fdff;
    opacity: var(--o);
    box-shadow: 0 0 10px rgba(165, 226, 255, 0.45);
    animation: twinkle var(--d) linear infinite;
    animation-delay: var(--delay);
}

.shooting-star {
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: 1px;
    height: 1px;
    border-radius: 999px;
    background: #ecfbff;
    box-shadow: 0 0 8px #ecfbff;
    opacity: 0;
    animation: shootingStar var(--dur) ease-out var(--delay) forwards;
}

.space-nebula,
.space-lightbeams {
    position: absolute;
    inset: 0;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.28;
    transform: translateY(calc(var(--space-parallax) * -0.45));
    animation: nebulaFloat 18s ease-in-out infinite;
}

.nebula--a {
    width: 520px;
    height: 520px;
    top: -180px;
    left: -140px;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

.nebula--b {
    width: 560px;
    height: 560px;
    right: -170px;
    top: 12%;
    background: radial-gradient(circle at 58% 38%, rgba(140, 127, 255, 0.35), rgba(140, 127, 255, 0));
    animation-delay: 4s;
}

.nebula--c {
    width: 420px;
    height: 420px;
    left: 28%;
    bottom: -160px;
    background: radial-gradient(circle at 42% 42%, rgba(110, 244, 255, 0.3), rgba(110, 244, 255, 0));
    animation-delay: 7s;
}

.space-fog {
    position: absolute;
    inset: -20% 0 0;
    background: radial-gradient(1200px 800px at 50% 100%, rgba(112, 208, 255, 0.1), transparent 62%);
    filter: blur(10px);
    animation: fogDrift 20s ease-in-out infinite;
}

.beam {
    position: absolute;
    height: 240px;
    width: 120%;
    left: -10%;
    filter: blur(8px);
    opacity: 0.16;
    border-radius: 40%;
}

.beam--one {
    bottom: 30%;
    background: linear-gradient(90deg, rgba(108, 223, 255, 0.28), rgba(108, 223, 255, 0.02), rgba(255, 203, 119, 0.26));
    animation: beamMove 17s ease-in-out infinite;
}

.beam--two {
    bottom: 8%;
    background: linear-gradient(90deg, rgba(161, 161, 170, 0.22), rgba(255, 255, 255, 0.05), rgba(161, 161, 170, 0.22));
    animation: beamMove 23s ease-in-out infinite reverse;
}

.mouse-light {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(122, 219, 255, 0.16), rgba(122, 219, 255, 0.02) 45%, transparent 74%);
    transform: translate(-50%, -50%);
    filter: blur(6px);
    opacity: 0.75;
}

.tilt-card.is-glitching::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(125, 237, 255, 0.12) 48%, transparent 100%);
    mix-blend-mode: screen;
    animation: glitchFlash 0.45s ease;
}

.public-home .modern-grid .app-card {
    transform-style: preserve-3d;
}

.public-home .modern-grid {
    gap: 1.1rem;
}

.download-button--glass::after {
    content: "";
    position: absolute;
    width: 130%;
    height: 200%;
    left: -140%;
    top: -50%;
    background: linear-gradient(115deg, transparent 22%, rgba(255, 255, 255, 0.42) 48%, transparent 74%);
    transition: left 0.6s var(--ease-out);
}

.download-button--glass:hover::after {
    left: 120%;
}

.staged {
    opacity: 0;
    transform: translateY(30px) scale(0.985);
    transition: opacity 0.72s var(--ease-out), transform 0.72s var(--ease-out);
    transition-delay: var(--d, 0ms);
}

.public-home.ready .staged {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.site-footer--galactic {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background:
        radial-gradient(700px 260px at 10% 120%, rgba(255, 255, 255, 0.04), transparent 70%),
        radial-gradient(700px 260px at 92% 120%, rgba(161, 161, 170, 0.15), transparent 68%),
        linear-gradient(180deg, rgba(7, 14, 28, 0.72), rgba(4, 10, 22, 0.9));
    backdrop-filter: blur(14px);
    padding: 2rem 0;
    overflow: hidden;
}

.footer-stars {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(210, 237, 255, 0.28) 1px, transparent 1px), radial-gradient(circle at 70% 80%, rgba(210, 237, 255, 0.16) 1px, transparent 1px), radial-gradient(circle at 40% 50%, rgba(210, 237, 255, 0.2) 1px, transparent 1px);
    background-size: 220px 220px, 260px 260px, 200px 200px;
    opacity: 0.36;
    animation: twinkleSky 12s linear infinite;
    pointer-events: none;
}

.site-footer--galactic .footer-grid {
    position: relative;
    z-index: 1;
}

.site-footer--galactic .footer-grid section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(128, 201, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-footer--galactic .footer-grid a {
    transition: color 0.22s ease, text-shadow 0.22s ease;
}

.site-footer--galactic .footer-grid a:hover {
    color: var(--text);
    text-shadow: 0 0 12px rgba(116, 229, 255, 0.42);
}

.download-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 2000;
    border: 1px solid rgba(122, 219, 255, 0.48);
    background: rgba(11, 23, 44, 0.84);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.download-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes twinkle {
    0%, 100% { opacity: var(--o); transform: scale(1); }
    50% { opacity: min(1, calc(var(--o) + 0.36)); transform: scale(1.25); }
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.8);
    }
    10% {
        opacity: 0.95;
    }
    100% {
        opacity: 0;
        transform: translate3d(-260px, 180px, 0) scale(1);
        box-shadow: 0 0 2px rgba(236, 251, 255, 0.5);
    }
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, -16px, 0) scale(1.05); }
}

@keyframes fogDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes beamMove {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(3%) translateY(-10px); }
}

@keyframes glitchFlash {
    0% { opacity: 0; transform: translateX(-10%); }
    35% { opacity: 0.85; transform: translateX(5%); }
    100% { opacity: 0; transform: translateX(12%); }
}

@keyframes twinkleSky {
    0%, 100% { opacity: 0.28; }
    50% { opacity: 0.42; }
}

@media (prefers-reduced-motion: reduce) {
    .star,
    .shooting-star,
    .nebula,
    .space-fog,
    .beam,
    .mouse-light,
    .staged,
    .download-button,
    .admin-link,
    .nav-link,
    .app-card,
    .download-toast,
    .footer-stars {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@media (max-width: 900px) and (pointer: coarse) and (hover: none) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) and (pointer: coarse) and (hover: none) {
    .top-nav__inner {
        border-radius: 18px;
    }

    .top-nav__links {
        width: 100%;
    }

    .nav-link,
    .admin-link {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .hero-cta-row {
        width: 100%;
    }

    .hero-cta-row .download-button,
    .hero-cta-row .admin-link {
        width: 100%;
    }

    .control-nav-grid {
        grid-template-columns: 1fr;
    }

    .account-overview-head {
        flex-direction: column;
    }

    .account-status-grid {
        grid-template-columns: 1fr;
    }

    .account-main-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mouse-light {
        width: 260px;
        height: 260px;
    }
}

/* Public v3: light sci-fi layout */
.public-v3 {
    color: #18181b;
    background: #ffffff;
    overflow-x: clip;
}

.public-v3 .v3-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(780px 420px at 10% -5%, rgba(0, 0, 0, 0.02), transparent 60%),
        radial-gradient(700px 400px at 92% 8%, rgba(0, 0, 0, 0.015), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.public-v3 #v3-starfield {
    position: absolute;
    inset: 0;
}

.public-v3 .v3-fog {
    position: absolute;
    width: 52vw;
    height: 52vw;
    border-radius: 50%;
    filter: blur(44px);
    opacity: 0.24;
    animation: v3Fog 13s ease-in-out infinite;
}

.public-v3 .v3-fog--a {
    left: -16vw;
    top: 8vh;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.55), transparent 65%);
}

.public-v3 .v3-fog--b {
    right: -20vw;
    top: 26vh;
    animation-delay: 2.2s;
    background: radial-gradient(circle at 50% 50%, rgba(154, 126, 255, 0.44), transparent 65%);
}

.public-v3 .v3-nav,
.public-v3 .v3-hero,
.public-v3 .v3-main,
.public-v3 .v3-footer {
    position: relative;
    z-index: 1;
}

.public-v3 .v3-nav {
    padding-top: 0.8rem;
}

.public-v3 .v3-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-radius: clamp(16px, 2.1vw, 999px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    padding: clamp(0.5rem, 0.7vw, 0.8rem) clamp(0.65rem, 1vw, 1rem);
}

.public-v3 .v3-brand {
    text-decoration: none;
    color: #18181b;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.public-v3 .v3-nav__links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.public-v3 .v3-nav__links > a {
    text-decoration: none;
    color: #27272a;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.public-v3 .v3-nav__links > a:hover {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.public-v3 .v3-hero {
    padding: clamp(1rem, 2.4vw, 2.1rem) 0 clamp(0.6rem, 1.6vw, 1.1rem);
}

.public-v3 .v3-hero__card {
    border-radius: 26px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.95));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    padding: clamp(0.95rem, 2.2vw, 2rem);
}

.public-v3 .v3-kicker {
    margin: 0;
    color: #71717a;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.public-v3 .v3-hero h1 {
    margin: 0.55rem 0 0.4rem;
    color: #18181b;
    font-size: clamp(1.8rem, 4.8vw, 3.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.public-v3 .v3-hero p {
    margin: 0;
    color: #52525b;
    max-width: 66ch;
}

.public-v3 .v3-hero__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.public-v3 .v3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.72);
    color: #27272a;
    text-decoration: none;
    min-height: 42px;
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.public-v3 .v3-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.public-v3 .v3-btn--primary {
    border-color: rgba(0, 0, 0, 0.14);
    background: linear-gradient(180deg, #3f3f46, #27272a);
    color: #f8fcff;
}

.public-v3 .v3-btn--ghost {
    background: rgba(255, 255, 255, 0.65);
}

.public-v3 .v3-main {
    padding-bottom: clamp(1.4rem, 2.5vw, 2.4rem);
}

.public-v3 .v3-section h2 {
    margin: 1.1rem 0 0.75rem;
    color: #18181b;
    font-size: clamp(1.2rem, 2.6vw, 1.9rem);
}

.public-v3 .v3-grid,
.public-v3 .v3-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: clamp(0.75rem, 1.2vw, 1.15rem);
}

.public-v3 .v3-app,
.public-v3 .v3-blog {
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 14px 24px rgba(61, 97, 173, 0.12);
    backdrop-filter: blur(12px);
    padding: clamp(0.75rem, 1.2vw, 1rem);
}

.public-v3 .v3-app__preview {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.32), rgba(183, 171, 255, 0.2));
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.public-v3 .v3-app__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-v3 .v3-app__head {
    margin-top: 0.65rem;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.public-v3 .v3-app__head h3,
.public-v3 .v3-blog h3 {
    margin: 0;
    color: #27272a;
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-v3 .v3-app__head span {
    font-size: 0.72rem;
    color: #3f3f46;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.55rem;
}

.public-v3 .v3-app p,
.public-v3 .v3-blog p,
.public-v3 .v3-blog small {
    color: #52525b;
    overflow-wrap: anywhere;
}

.public-v3 .v3-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.public-v3 .v3-meta small {
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 999px;
    padding: 0.2rem 0.48rem;
    background: rgba(255, 255, 255, 0.74);
    color: #52525b;
}

.public-v3 .v3-download.is-active {
    animation: v3Pulse 0.9s ease;
}

.public-v3 .v3-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(241, 247, 255, 0.82);
    backdrop-filter: blur(12px);
    padding: 1.8rem 0;
}

.public-v3 .v3-footer__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.1vw, 1rem);
}

.public-v3 .v3-footer section {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.75rem;
}

.public-v3 .v3-footer h3 {
    margin: 0 0 0.5rem;
    color: #27272a;
}

.public-v3 .v3-footer a {
    display: block;
    margin-bottom: 0.4rem;
    color: #3f3f46;
    text-decoration: none;
}

.public-v3 .v3-footer a:hover {
    color: #3f3f46;
}

.public-v3 .download-toast {
    border: 1px solid rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.88);
    color: #27272a;
    box-shadow: 0 12px 30px rgba(49, 90, 156, 0.2);
}

@keyframes v3Fog {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-12px) translateX(8px) scale(1.04); }
}

@keyframes v3Pulse {
    0% { transform: scale(1); }
    35% { transform: scale(0.98); }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 720px) and (pointer: coarse) and (hover: none) {
    .public-v3 .v3-nav__inner {
        border-radius: 18px;
    }

    .public-v3 .v3-nav__links {
        width: 100%;
    }

    .public-v3 .v3-nav__links > a,
    .public-v3 .v3-btn {
        width: 100%;
    }

    .public-v3 .v3-hero__actions {
        flex-direction: column;
    }

    .public-v3 .v3-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) and (pointer: coarse) and (hover: none) {
    .public-v3 .v3-nav__inner {
        border-radius: 20px;
        align-items: stretch;
    }

    .public-v3 .v3-nav__links {
        width: 100%;
        justify-content: flex-start;
    }

    .public-v3 .v3-nav__links > a {
        flex: 1 1 140px;
        text-align: center;
    }
}

@media (min-width: 1280px) {
    .public-v3 .container {
        width: min(96vw, 1680px);
    }

    .public-v3 .v3-grid,
    .public-v3 .v3-blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

/* Ayocin-inspired one-page public layout */
.public-ay {
    --ay-parallax: 0px;
    --ay-cine-intensity: 0;
    color: var(--text);
    background: var(--bg);
    height: 100svh;
    overflow: hidden;
    overflow-x: clip;
    scroll-padding-top: 0;
    overscroll-behavior-y: contain;
}

.public-ay .ay-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(950px 520px at 8% -10%, rgba(255, 255, 255, 0.04), transparent 62%),
        radial-gradient(900px 500px at 90% 8%, rgba(255, 255, 255, 0.03), transparent 62%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 62%, var(--bg) 100%);
}

.public-ay #ay-stars {
    position: absolute;
    inset: 0;
}

.public-ay .ay-glow {
    position: absolute;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.24;
    transform: translateY(calc(var(--ay-parallax) * -1));
}

.public-ay .ay-glow--a {
    left: -16vw;
    top: 12vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 60%);
}

.public-ay .ay-glow--b {
    right: -14vw;
    top: 32vh;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 60%);
}

.public-ay .ay-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: 0.75rem;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

.public-ay .ay-header.is-mega-open {
    z-index: 60;
}

.public-ay .ay-nav-mega-backdrop {
    position: fixed;
    inset: 0;
    z-index: 38;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

body.public-ay.ay-nav-mega-open .ay-nav-mega-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.public-ay.ay-nav-mega-open {
    overflow: hidden;
}

body.public-ay.ay-nav-mega-open .ay-main {
    overflow: hidden;
}

/* Während Start-Splash: Leiste/Navigation ausblenden (erscheint nach Entfernen von ay-splash-active) */
body.public-ay.ay-splash-active .ay-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.public-ay .ay-header__shell {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.72) 0%, rgba(39, 39, 42, 0.58) 100%);
    backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    transition: box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
    overflow: visible;
    outline: none;
}

.public-ay .ay-header.is-mega-open .ay-header__shell {
    border-color: var(--border-strong);
    background: rgba(24, 24, 27, 0.92);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.public-ay .ay-header__shell:hover {
    border-color: var(--border-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.public-ay .ay-header.is-scrolled .ay-header__shell {
    border-color: var(--border-strong);
    background: rgba(24, 24, 27, 0.85);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.public-ay .ay-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem 0.75rem;
    min-height: 56px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0.45rem 0.75rem 0.45rem 0.8rem;
    box-shadow: none;
}

.public-ay .ay-header__bar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.22s ease, color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
    -webkit-appearance: none;
    appearance: none;
}

.public-ay .ay-header__bar-toggle:hover,
.public-ay .ay-header__bar-toggle:focus-visible,
.public-ay .ay-header.is-mega-open .ay-header__bar-toggle {
    border-color: var(--border-strong);
    border-style: solid;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    outline: none;
}

.public-ay .ay-header__bar-toggle-chevron {
    display: inline-flex;
    transition: transform 0.26s ease;
}

.public-ay .ay-header.is-mega-open .ay-header__bar-toggle-chevron {
    transform: rotate(180deg);
}

.public-ay .ay-header__actions {
    display: flex;
    align-items: center;
    gap: 0.45rem 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    flex-shrink: 0;
}

.public-ay .ay-header__actions[data-ay-nav-stop] {
    cursor: default;
}

.public-ay .ay-nav-mega {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 12;
    max-height: min(72vh, 540px);
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(160deg, rgba(24, 24, 27, 0.96) 0%, rgba(39, 39, 42, 0.94) 100%);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    transition:
        opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.28s ease;
    padding: 0.75rem 0.7rem 0.85rem;
}

.public-ay .ay-nav-mega::before {
    content: "";
    position: absolute;
    top: -0.55rem;
    left: 0;
    right: 0;
    height: 0.55rem;
}

.public-ay .ay-header.is-mega-open .ay-nav-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.public-ay .ay-nav-mega__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-top: 0;
    border-top: 0;
}

@media (min-width: 30rem) {
    .public-ay .ay-nav-mega__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 56.25rem) {
    .public-ay .ay-nav-mega__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.public-ay .ay-nav-mega__card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.7rem 0.75rem;
}

.public-ay .ay-nav-mega__heading {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.public-ay .ay-nav-mega__link {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--text-dim);
    border-radius: 10px;
    padding: 0.55rem 0.55rem;
    margin: 0 -0.35rem;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font: inherit;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.public-ay .ay-nav-mega__link-icon {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.public-ay .ay-nav-mega__link-body {
    flex: 1 1 auto;
    min-width: 0;
}

.public-ay .ay-nav-mega__link:hover,
.public-ay .ay-nav-mega__link:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border);
    outline: none;
    transform: translateX(2px);
}

.public-ay .ay-nav-mega__link:hover .ay-nav-mega__link-icon,
.public-ay .ay-nav-mega__link:focus-visible .ay-nav-mega__link-icon {
    background: rgba(255, 255, 255, 0.08);
}

.public-ay .ay-nav-mega__link-label {
    display: block;
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.25;
}

.public-ay .ay-nav-mega__link-desc {
    display: block;
    margin-top: 0.12rem;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-dim);
}

.public-ay .ay-nav-mega__link:hover .ay-nav-mega__link-desc,
.public-ay .ay-nav-mega__link:focus-visible .ay-nav-mega__link-desc {
    color: var(--text-dim);
}

.public-ay .ay-nav-mega__link--browser {
    border-color: rgba(120, 200, 160, 0.25);
    background: rgba(40, 120, 80, 0.12);
}

.public-ay .ay-nav-mega__link--browser:hover,
.public-ay .ay-nav-mega__link--browser:focus-visible {
    border-color: rgba(140, 230, 180, 0.45);
    background: rgba(50, 140, 95, 0.22);
    color: #e8fff0;
}

.public-ay .ay-nav-mega__link--browser.is-active {
    border-color: rgba(140, 230, 180, 0.55);
    background: rgba(50, 140, 95, 0.28);
}

.public-ay .ay-nav-mega__logout-form {
    margin: 0;
    padding: 0;
}

.public-ay .ay-nav-mega__link--button {
    width: calc(100% + 1rem);
}

.public-ay .ay-nav-mega__link--button:hover {
    border-color: rgba(255, 120, 120, 0.45);
    background: rgba(150, 30, 35, 0.18);
    color: #ffe8e8;
}

@media (hover: none) {
    .public-ay .ay-header__bar-toggle {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
    }

    .public-ay .ay-nav-mega__link {
        padding: 0.55rem 0.55rem;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-ay .ay-nav-mega,
    .public-ay .ay-nav-mega-backdrop,
    .public-ay .ay-header__bar-toggle-chevron,
    .public-ay .ay-header__shell {
        transition: none !important;
    }
}

.public-ay .ay-header__leading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    min-width: 0;
    flex: 0 1 auto;
}

.public-ay .ay-header__leading .ay-logo--img {
    margin-right: 0;
}

.public-ay .ay-header__logout-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    align-items: center;
    align-self: center;
    border: 0;
    background: none;
}

/* Wie Theme-Umschalter: Pill, 36px hoch, schmal; Abmelden: Hover rot (hell + dunkel) */
.public-ay .ay-header-pill-btn,
.public-ay .ay-header__logout-form .ay-header-logout {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: max-content;
    min-width: 0;
    max-width: 100%;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0 0.8rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(160, 175, 195, 0.35);
    background: rgba(0, 0, 0, 0.2);
    color: #e4e8ee;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

html[data-theme="dark"] .public-ay .ay-header-pill-btn,
html[data-theme="dark"] .public-ay .ay-header__logout-form .ay-header-logout {
    border-color: rgba(200, 210, 220, 0.28);
    background: rgba(255, 255, 255, 0.04);
    color: #eef0f3;
}

html[data-theme="light"] .public-ay .ay-header-pill-btn,
html[data-theme="light"] .public-ay .ay-header__logout-form .ay-header-logout {
    border-color: rgba(0, 0, 0, 0.1);
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="dark"] .public-ay .ay-header-pill-btn:hover,
html[data-theme="light"] .public-ay .ay-header-pill-btn:hover {
    box-shadow: 0 0 0 1px rgba(200, 210, 220, 0.2) inset;
}

html[data-theme="light"] .public-ay .ay-header-pill-btn:hover {
    filter: brightness(1.04);
    box-shadow: 0 0 0 1px rgba(80, 120, 150, 0.25) inset;
}

html[data-theme="dark"] .public-ay .ay-header__logout-form .ay-header-logout:hover,
html[data-theme="light"] .public-ay .ay-header__logout-form .ay-header-logout:hover {
    border-color: rgba(255, 120, 120, 0.9) !important;
    background: linear-gradient(180deg, rgba(200, 50, 50, 0.85), rgba(150, 30, 35, 0.92)) !important;
    color: #fff5f5 !important;
    box-shadow: 0 0 0 1px rgba(255, 80, 80, 0.45) inset, 0 4px 14px rgba(120, 20, 20, 0.35) !important;
    filter: none;
}

.public-ay .ay-header__logout-form .ay-header-logout:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* Legacy: inner scrolled state kept for pages without shell */
.public-ay .ay-header.is-scrolled .ay-header__inner {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.public-ay .ay-logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.public-ay .ay-logo--img {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 0;
    background: transparent;
    margin-right: 0.1rem;
}

.public-ay .ay-logo--img img {
    display: block;
    height: 44px;
    width: auto;
    max-width: min(44vw, 200px);
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.public-ay .ay-nav {
    display: flex;
    gap: 0.5rem 0.55rem;
    flex-wrap: wrap;
    align-items: center;
}

.public-ay .ay-nav > a {
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 999px;
    min-height: 36px;
    height: 36px;
    padding: 0 0.7rem;
    line-height: 1;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.public-ay .ay-nav > a:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.public-ay .ay-nav > a.ay-nav__browser {
    border-color: rgba(120, 200, 160, 0.45);
    background: rgba(40, 120, 80, 0.18);
    color: #c8f5dc;
}

.public-ay .ay-nav > a.ay-nav__browser:hover {
    border-color: rgba(140, 230, 180, 0.55);
    background: rgba(50, 140, 95, 0.28);
    color: #e8fff0;
}

.public-ay .ay-nav > a.ay-nav__browser.is-active {
    border-color: rgba(140, 230, 180, 0.65);
    background: rgba(50, 140, 95, 0.35);
    color: #e8fff0;
}

body.public-ay.public-ay--subpage.public-ay--browser-page {
    display: flex;
    flex-direction: column;
    height: 100svh;
    min-height: 100svh;
    max-height: 100svh;
    overflow: hidden;
}

html.public-ay-html--browser-page,
html:has(body.public-ay--browser-page) {
    height: 100%;
    overflow: hidden;
}

body.public-ay--browser-page .ay-bg {
    opacity: 0.16;
}

body.public-ay--browser-page .ay-header {
    flex: 0 0 auto;
}

body.public-ay--browser-page .ay-jump-nav {
    display: none;
}

.public-ay__browser-main {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    min-height: 0;
    width: min(1180px, calc(100% - 2rem));
    max-width: min(1180px, calc(100% - 2rem));
    margin: 1.25rem auto 0.75rem;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ay-browser-page__message {
    padding: 1.5rem 1rem;
    width: min(720px, 100%);
    margin: 0 auto;
}

.ay-customer-browser--layout-page {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.ay-customer-browser--layout-page.ay-customer-browser {
    padding: 0;
}

.ay-customer-browser--layout-page .ay-customer-browser__shell {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(120, 200, 160, 0.2);
    background: linear-gradient(165deg, rgba(10, 18, 14, 0.96) 0%, rgba(6, 10, 16, 0.98) 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(90, 180, 140, 0.07) inset;
}

.ay-customer-browser--layout-page .ay-customer-browser__toolbar {
    flex: 0 0 auto;
    grid-row: 1;
    background: linear-gradient(180deg, rgba(22, 38, 30, 0.98) 0%, rgba(12, 20, 16, 0.99) 100%);
    border-bottom: 1px solid rgba(100, 190, 145, 0.18);
}

.ay-customer-browser--layout-page .ay-customer-browser__toolbar-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.7rem 0.32rem;
}

.ay-customer-browser--layout-page .ay-customer-browser__frame {
    grid-row: 2;
    flex: 1 1 auto;
    min-height: 0 !important;
    max-height: none !important;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
    display: block;
}

body.public-ay--browser-page .ay-customer-browser__frame {
    min-height: 0 !important;
}

.ay-customer-browser__hint {
    flex: 0 0 auto;
    margin: 0;
    padding: 0.4rem 0.85rem 0.55rem;
    font-size: 0.74rem;
    color: rgba(190, 230, 205, 0.58);
    border-bottom: 1px solid rgba(100, 190, 145, 0.1);
}

.ay-customer-browser__hint--page {
    margin: 0;
    padding: 0 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(100, 190, 145, 0.12);
    color: rgba(190, 230, 205, 0.62);
}

/* Vollbild-Modus (nativ oder Fallback) */
body.ay-customer-browser-fs-active.public-ay--browser-page .ay-header {
    display: none;
}

body.ay-customer-browser-fs-active.public-ay--browser-page .public-ay__browser-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ay-customer-browser--fs {
    position: fixed !important;
    inset: 0;
    z-index: 10000;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.ay-customer-browser--fs .ay-customer-browser__shell {
    border-radius: 0 !important;
    border: 0 !important;
    height: 100% !important;
}

.ay-customer-browser:fullscreen,
.ay-customer-browser__shell:fullscreen {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
}

.ay-customer-browser__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(28vw, 220px);
}

.ay-customer-browser__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: rgba(200, 240, 215, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ay-customer-browser__nav {
    display: flex;
    gap: 0.3rem;
    flex: 0 0 auto;
}

.ay-customer-browser__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 9px;
    border: 1px solid rgba(110, 190, 150, 0.22);
    background: rgba(0, 0, 0, 0.28);
    color: rgba(220, 245, 230, 0.95);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.ay-customer-browser__btn:hover {
    border-color: rgba(150, 235, 190, 0.55);
    background: rgba(40, 110, 75, 0.35);
    transform: translateY(-1px);
}

.ay-customer-browser__btn:active {
    transform: translateY(0);
}

.ay-customer-browser__btn--go {
    font-weight: 800;
    font-size: 1.05rem;
}

.ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--exit {
    display: none;
}

.ay-customer-browser--fs .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--enter,
.ay-customer-browser:fullscreen .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--enter,
.ay-customer-browser__shell:fullscreen .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--enter {
    display: none;
}

.ay-customer-browser--fs .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--exit,
.ay-customer-browser:fullscreen .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--exit,
.ay-customer-browser__shell:fullscreen .ay-customer-browser__btn--fullscreen .ay-customer-browser__fs-icon--exit {
    display: inline;
}

@media (max-width: 900px) {
    body.public-ay--browser-page .ay-customer-browser--layout-page .ay-customer-browser__toolbar-main {
        padding: 0.35rem 0.55rem 0.28rem;
        gap: 0.4rem;
    }
}

@media (max-width: 720px) {
    .ay-customer-browser__brand {
        display: none;
    }

    .ay-customer-browser__toolbar-main {
        flex-wrap: wrap;
    }

    .ay-customer-browser__address,
    .ay-customer-browser__status {
        order: 3;
        flex: 1 1 100%;
    }
}

.public-ay .ay-nav__app-title {
    max-width: clamp(160px, 26vw, 340px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 0;
    border-radius: 0;
    height: 36px;
    padding: 0 0.35rem;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #e9f5ff;
    background: transparent;
}

body.public-ay.ay-detail-mode .ay-header__inner {
    position: relative;
}

body.public-ay.ay-detail-mode .ay-header__actions {
    position: static;
}

body.public-ay.ay-detail-mode .ay-nav__app-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: min(46vw, 520px);
    padding: 0 1rem;
    justify-content: center;
    text-align: center;
    font-size: clamp(1rem, 0.35vw + 0.85rem, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 0 16px rgba(116, 210, 255, 0.45);
    z-index: 1;
    pointer-events: none;
}

.public-ay .ay-chip {
    border-color: rgba(125, 200, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.03);
}

.public-ay .ay-chip--solid {
    border-color: rgba(125, 219, 255, 0.5) !important;
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.85), rgba(82, 82, 91, 0.65));
    box-sizing: border-box;
    min-width: 4.25rem;
    min-height: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.public-ay .ay-header-pill-btn--profile {
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* In-Site-Navigation: Splash per rl_splash_gate_inline.php übersprungen */
html.rl-splash-skip #ay-splash {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

/* Start-Ladebildschirm: Logo zoom-in, kurz halten, zoom-through */
body.public-ay.ay-splash-active {
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    background: #000;
}

.ay-splash {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    background: #000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.48s cubic-bezier(0.2, 0.9, 0.2, 1), visibility 0.48s step-end;
}

.ay-splash--exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ay-splash--gone {
    display: none !important;
}

.ay-splash__motion {
    position: relative;
    will-change: transform, opacity, filter;
    transform-origin: center center;
    animation: aySplashMotion 2.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes aySplashMotion {
    0% {
        transform: scale(0.26) translateZ(0);
        opacity: 0;
        filter: blur(20px) brightness(1.3);
    }
    20% {
        opacity: 1;
        filter: blur(0) brightness(1);
    }
    30% {
        transform: scale(1.04) translateZ(0);
    }
    40% {
        transform: scale(1.18) translateZ(0);
    }
    50% {
        transform: scale(1) translateZ(0);
        opacity: 1;
        filter: blur(0) brightness(1);
    }
    78% {
        transform: scale(1) translateZ(0);
        opacity: 1;
        filter: blur(0) brightness(1.02);
    }
    100% {
        transform: scale(5.8) translateZ(0);
        opacity: 0;
        filter: blur(12px) brightness(1.45);
    }
}

.ay-splash__logo {
    display: block;
    width: min(72vmin, min(90vw, 420px));
    height: auto;
    max-height: min(72vmin, 78vh);
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: 0;
    margin: 0;
}

.public-ay .ay-main {
    position: relative;
    z-index: 2;
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Abstand unten, damit Footer & Taskleiste des OS die Inhalte nicht verdecken */
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px) + 3.5rem);
    box-sizing: border-box;
}

body.public-ay.ay-detail-mode {
    overflow: auto;
}

body.public-ay.ay-detail-mode .ay-main {
    height: auto;
    min-height: calc(100svh - 70px);
    overflow-y: visible;
    scroll-snap-type: none;
    overscroll-behavior-y: auto;
}

html[data-theme="light"] body.public-ay.ay-detail-mode {
    background:
        radial-gradient(900px 520px at 10% -6%, rgba(79, 130, 185, 0.22), transparent 62%),
        radial-gradient(820px 520px at 92% 4%, rgba(121, 150, 196, 0.2), transparent 62%),
        linear-gradient(180deg, #dde6f1 0%, #d4dfec 55%, #ced9e6 100%);
}

.public-ay .ay-main::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.public-ay .ay-main::before,
.public-ay .ay-main::after {
    content: none;
}

.public-ay .ay-jump-nav {
    position: fixed;
    right: clamp(0.55rem, 1.6vw, 1.2rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: grid;
    gap: 0.5rem;
    transition: opacity 0.42s ease, visibility 0.42s ease;
}

body.public-ay.ay-splash-active .ay-jump-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.public-ay .ay-jump-nav__btn {
    width: clamp(40px, 3vw, 48px);
    height: clamp(40px, 3vw, 48px);
    border-radius: 999px;
    border: 1px solid rgba(130, 219, 255, 0.44);
    background: rgba(11, 24, 43, 0.62);
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.33), inset 0 0 0 1px rgba(122, 214, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.public-ay .ay-jump-nav__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(150, 235, 255, 0.72);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38), 0 0 16px rgba(104, 214, 255, 0.34);
}

.public-ay .ay-jump-nav__btn:active {
    transform: translateY(0);
}

.public-ay .ay-jump-nav__btn:disabled {
    opacity: 0.36;
    cursor: not-allowed;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.22);
}

.public-ay .ay-panel {
    min-height: 100svh;
    height: 100svh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    align-items: stretch;
    padding-top: clamp(4.3rem, 8vh, 5.8rem);
    position: relative;
    opacity: 0.52;
    transform: scale(0.985);
    filter: saturate(0.85);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
    touch-action: pan-y;
}

.public-ay .ay-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(70vw 50vh at 50% 60%, rgba(255, 255, 255, 0.06), transparent 70%);
    opacity: 0.3;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.public-ay .ay-panel > .container {
    min-height: calc(100svh - clamp(4.3rem, 8vh, 5.8rem));
    height: calc(100svh - clamp(4.3rem, 8vh, 5.8rem));
    display: grid;
    align-items: center;
}

.public-ay .ay-panel.is-active {
    opacity: 1;
    transform: scale(1);
    filter: saturate(1);
}

.public-ay .ay-panel.is-active::after {
    opacity: 0.85;
    transform: translateY(calc(var(--ay-cine-intensity) * -0.5px));
}

.public-ay .ay-panel--footer .ay-footer {
    align-self: end;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.public-ay .ay-hero {
    min-height: min(74vh, 820px);
    display: grid;
    align-content: center;
    gap: 1rem;
}

.public-ay .ay-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: #97bfff;
}

.public-ay .ay-hero h1 {
    margin: 0;
    max-width: 17ch;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.05;
}

.public-ay .ay-hero p {
    margin: 0;
    max-width: 60ch;
    color: #c8d7ef;
}

.public-ay .ay-hero__actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.public-ay .ay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(128, 206, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
    color: #eef6ff;
    text-decoration: none;
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.public-ay .ay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(38, 92, 177, 0.35);
}

.public-ay .ay-btn.is-disabled,
.public-ay .ay-btn[aria-disabled="true"] {
    opacity: 0.48;
    cursor: not-allowed;
    pointer-events: auto;
    box-shadow: none;
}

.public-ay .ay-btn--solid {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.72), rgba(82, 82, 91, 0.5));
}

.public-ay .ay-btn--small {
    min-height: 32px;
    padding: 0.38rem 0.68rem;
    border-radius: 10px;
}

.public-ay .ay-overview,
.public-ay .ay-software {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 20, 37, 0.52);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.public-ay .ay-overview {
    padding: 1rem;
}

.public-ay .ay-section-head {
    margin-bottom: 0.9rem;
}

.public-ay .ay-section-head h2 {
    margin: 0.2rem 0 0.45rem;
}

.public-ay .ay-section-head p {
    margin: 0;
    color: #c8d7ef;
}

.public-ay .ay-section-head a {
    color: #9ec4ff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.public-ay .ay-section-head a:hover {
    color: var(--text-dim);
}

html[data-theme="light"] .public-ay .ay-section-head a {
    color: #145a9e;
}

html[data-theme="light"] .public-ay .ay-section-head a:hover {
    color: #27272a;
}

html[data-theme="dark"] .public-ay .ay-section-head a {
    color: #8eb8f0;
}

html[data-theme="dark"] .public-ay .ay-section-head a:hover {
    color: #c8daf8;
}

.public-ay .ay-overview h2 {
    margin-top: 0;
}

.public-ay .ay-software {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1rem;
    padding: clamp(1rem, 2vw, 1.6rem);
    min-height: 0;
    height: min(76svh, 850px);
    align-items: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 84px;
    isolation: isolate;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.public-ay .ay-screen {
    width: 100%;
}

.public-ay .ay-software::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, rgba(4, 10, 19, 0.88) 20%, rgba(6, 13, 25, 0.56) 68%, rgba(5, 11, 22, 0.92) 100%);
}

.public-ay .ay-software::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(120deg, rgba(200, 200, 200, 0.16), rgba(161, 161, 170, 0.08), transparent 68%),
        repeating-linear-gradient(
            90deg,
            rgba(168, 255, 239, 0.18) 0,
            rgba(168, 255, 239, 0.18) 1px,
            transparent 1px,
            transparent 34px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(168, 255, 239, 0.16) 0,
            rgba(168, 255, 239, 0.16) 1px,
            transparent 1px,
            transparent 34px
        );
    mix-blend-mode: screen;
}

.public-ay .ay-software__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transform: scale(1.05);
}

.public-ay .ay-software.is-active {
    transform: translateY(-2px) scale(1.003);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(147, 224, 255, 0.16) inset;
}

.public-ay .ay-software.is-assembling::after {
    animation: ayPixelBuildOverlay 0.78s steps(12, end) both;
}

.public-ay .ay-software.is-assembling .ay-software__copy,
.public-ay .ay-software.is-assembling .ay-software__visual {
    animation: ayPixelBuildContent 0.78s steps(12, end) both;
    transform-origin: center;
}

.public-ay .ay-software h3 {
    margin: 0.3rem 0 0.4rem;
    font-size: clamp(1.25rem, 2.8vw, 2rem);
}

.public-ay .ay-software p {
    color: #c8d7ef;
}

.public-ay .ay-software ul {
    margin: 0.55rem 0;
    padding-left: 1.1rem;
    color: #d6e4f8;
}

.public-ay .ay-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.public-ay .ay-meta span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.52rem;
    font-size: 0.76rem;
}

.public-ay .ay-software__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.public-ay .ay-software__visual {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    aspect-ratio: 1 / 1;
    width: min(100%, 560px);
    min-height: 0;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.35);
    justify-self: end;
}

.public-ay .ay-software__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-ay .ay-software__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    width: 100%;
    height: 100%;
    padding: 0.35rem;
}

.public-ay .ay-software__gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.public-ay .ay-software__gallery img:only-child {
    grid-column: 1 / -1;
}

.public-ay .ay-software__mockup {
    min-height: 220px;
    display: grid;
    place-items: center;
    color: #bcd0ec;
}

.public-ay .ay-software.ay-theme--modern-schwarz {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(145deg, rgba(10, 16, 30, 0.74), rgba(12, 20, 37, 0.56));
}

.public-ay .ay-software.ay-theme--modern-grey {
    border-color: rgba(183, 194, 212, 0.34);
    background: linear-gradient(145deg, rgba(25, 33, 49, 0.72), rgba(31, 42, 61, 0.52));
}

.public-ay .ay-software.ay-theme--clean-grey {
    border-color: rgba(198, 207, 224, 0.35);
    background: linear-gradient(145deg, rgba(233, 238, 246, 0.2), rgba(216, 224, 238, 0.12));
}

.public-ay .ay-software.ay-theme--clean-grey h3,
.public-ay .ay-software.ay-theme--clean-grey p,
.public-ay .ay-software.ay-theme--clean-grey ul,
.public-ay .ay-software.ay-theme--clean-grey .ay-meta span {
    color: #e8f1ff;
}

.public-ay .ay-software.ay-theme--sci-fiction {
    border-color: rgba(132, 255, 238, 0.36);
    background: linear-gradient(145deg, rgba(10, 25, 35, 0.72), rgba(7, 38, 62, 0.55));
    box-shadow: 0 14px 38px rgba(161, 161, 170, 0.18);
}

.public-ay .ay-software.ay-theme--aurora-neon {
    border-color: rgba(161, 161, 170, 0.4);
    background: linear-gradient(145deg, rgba(34, 14, 58, 0.7), rgba(14, 34, 65, 0.55));
    box-shadow: 0 16px 42px rgba(149, 99, 255, 0.2);
}

.public-ay .ay-overview-page-main {
    min-height: 100svh;
    display: grid;
    align-content: start;
    padding-top: 0.7rem;
}

.public-ay .ay-overview-page-main--detail {
    width: 100%;
    max-width: none;
    padding: 0.5rem clamp(0.65rem, 1.5vw, 1.25rem) 1.15rem;
    min-height: auto;
    height: auto;
    overflow: visible;
    align-content: stretch;
    scroll-snap-type: none;
}

.public-ay .ay-overview-page {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(12, 20, 37, 0.52);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    padding: 1rem;
}

/* Rechtstexte: volle Inhaltsbreite wie Header-Taskbar (container = min(1180px, …)) */
.public-ay .rl-legal {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.public-ay .rl-legal h2 {
    margin: 1.35rem 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 650;
}

.public-ay .rl-legal h3 {
    margin: 1rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

.public-ay .rl-legal p,
.public-ay .rl-legal li {
    color: #cad8ee;
    line-height: 1.6;
}

.public-ay .rl-legal ul {
    margin: 0.4rem 0 0.75rem 1.1rem;
    padding: 0;
}

.public-ay .rl-legal .rl-legal__note {
    border-left: 3px solid rgba(255, 255, 255, 0.45);
    padding: 0.65rem 0.85rem;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
}

html[data-theme="light"] .public-ay--subpage .rl-legal p,
html[data-theme="light"] .public-ay--subpage .rl-legal li,
html[data-theme="light"] .public-ay--subpage .rl-legal h2,
html[data-theme="light"] .public-ay--subpage .rl-legal h3 {
    color: #27272a;
}

html[data-theme="light"] .public-ay--subpage .rl-legal .rl-legal__note {
    background: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(0, 0, 0, 0.15);
}

.public-ay .ay-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 0.9rem;
    margin-top: 0.8rem;
}

.public-ay .ay-tile {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(24, 24, 27, 0.64);
    overflow: hidden;
    display: grid;
    min-height: 320px;
}

.public-ay .ay-tile__visual {
    min-height: 170px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.public-ay .ay-tile__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.public-ay .ay-tile__body {
    padding: 0.8rem;
}

.public-ay .ay-tile__body h2 {
    margin: 0.05rem 0 0.35rem;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.public-ay .ay-tile__body p {
    margin: 0 0 0.7rem;
    color: #cad8ee;
}

.public-ay .ay-app-detail {
    display: grid;
    gap: 0.95rem;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background:
        radial-gradient(900px 350px at 12% 0%, rgba(58, 126, 251, 0.12), transparent),
        radial-gradient(700px 300px at 88% 8%, rgba(45, 201, 249, 0.11), transparent),
        transparent;
    padding: 0;
    overflow: visible;
}

.public-ay .ay-detail-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.public-ay .ay-detail-block {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.public-ay .ay-detail-block h2 {
    margin: 0 0 0.65rem;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
}

.public-ay .ay-detail-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.public-ay .ay-current-system {
    margin: 0 0 0.7rem;
    color: #c9daf3;
}

.public-ay .ay-btn.is-current-platform {
    border-color: rgba(132, 255, 188, 0.72);
    box-shadow: 0 0 0 1px rgba(109, 242, 171, 0.35) inset, 0 10px 26px rgba(40, 177, 120, 0.24);
}

.public-ay .ay-detail-gallery {
    display: none;
}

.public-ay .ay-detail-carousel {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0.6rem;
}

.public-ay .ay-detail-carousel__viewport {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.public-ay .ay-detail-carousel.is-dragging .ay-detail-carousel__viewport {
    cursor: grabbing;
}

.public-ay .ay-detail-carousel--multiple .ay-detail-carousel__slide {
    cursor: pointer;
}

.public-ay .ay-detail-carousel__track {
    display: flex;
    gap: 0;
    padding-inline: 0;
    box-sizing: border-box;
    transition: transform 0.76s cubic-bezier(0.22, 1, 0.18, 1);
    will-change: transform;
}

.public-ay .ay-detail-carousel.is-dragging .ay-detail-carousel__track {
    transition: none;
}

.public-ay .ay-detail-carousel__slide {
    flex: 0 0 var(--ay-slide-width, 720px);
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 38vh;
    padding-right: 0;
}

.public-ay .ay-detail-carousel__slide img {
    width: 100%;
    height: auto;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.public-ay .ay-detail-carousel__slide {
    --slide-box-width: 100%;
}

.public-ay .ay-detail-carousel__slide::before {
    content: "";
    width: var(--slide-box-width);
    aspect-ratio: 16 / 10;
    grid-area: 1 / 1;
    border-radius: 0;
    border: 0;
    background: rgba(7, 15, 29, 0.12);
    box-shadow: none;
}

.public-ay .ay-detail-carousel__slide > img {
    grid-area: 1 / 1;
    width: var(--slide-box-width);
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    object-fit: contain;
    object-position: center center;
    background: rgba(7, 15, 29, 0.35);
    -webkit-user-drag: none;
}

.public-ay .ay-detail-carousel__slide:not(.is-active) > img {
    transform: scale(0.94);
    opacity: 0.78;
}

.public-ay .ay-detail-carousel__slide > img {
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.18, 1), opacity 0.72s cubic-bezier(0.22, 1, 0.18, 1);
    transform-origin: center center;
}

.public-ay .ay-detail-carousel__slide.is-active > img {
    transform: scale(1.045);
    opacity: 1;
}

.public-ay .ay-detail-carousel__arrow {
    height: 44px;
    width: 44px;
    border-radius: 999px;
    border: 1px solid rgba(133, 206, 255, 0.45);
    background: rgba(8, 20, 36, 0.62);
    color: #f2f8ff;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
}

.public-ay .ay-detail-carousel__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.public-ay .ay-detail-info-list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 0.6rem;
}

.public-ay .ay-detail-info-list > div {
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    padding: 0.5rem 0.1rem 0.55rem;
    background: transparent;
}

.public-ay .ay-detail-info-list dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #95b7e1;
    margin-bottom: 0.2rem;
}

.public-ay .ay-detail-info-list dd {
    margin: 0;
    color: #ecf5ff;
    line-height: 1.45;
}

.public-ay .ay-overview-page-main--detail .ay-section-head {
    margin-bottom: 0.2rem;
}

.public-ay .ay-overview-page-main--detail .ay-section-head p {
    margin-bottom: 0.35rem;
}

.public-ay .ay-overview-page-main--detail .ay-section-head h1 {
    margin: 0 0 0.3rem;
}

.public-ay .ay-overview-page-main--detail .ay-detail-block h2 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
}

body.public-ay.ay-detail-mode .ay-header {
    padding-top: 0.4rem;
}

body.public-ay.ay-detail-mode .ay-header .container.ay-header__shell {
    width: calc(100% - 1.3rem);
    max-width: none;
    margin: 0 auto;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(132, 203, 255, 0.24);
    background: linear-gradient(180deg, rgba(7, 14, 28, 0.78), rgba(7, 14, 28, 0.58));
    box-shadow: none;
    overflow: visible;
}

body.public-ay.ay-detail-mode .ay-header .ay-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-header .container.ay-header__shell {
    border-bottom-color: rgba(72, 103, 131, 0.35);
    background: transparent;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-nav__app-title {
    color: #1f3348;
    text-shadow: none;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-block h2,
html[data-theme="light"] body.public-ay.ay-detail-mode .ay-current-system,
html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-info-list dd {
    color: #1f3145;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-info-list dt {
    color: #36526e;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-info-list > div {
    border-bottom-color: rgba(74, 106, 136, 0.26);
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-btn {
    border-color: rgba(83, 126, 161, 0.4);
    background: rgba(255, 255, 255, 0.5);
    color: #1f3348;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-btn--solid {
    background: linear-gradient(135deg, rgba(63, 63, 70, 0.85), rgba(82, 82, 91, 0.75));
    color: #f5f9ff;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-gallery {
    background: transparent;
}

html[data-theme="light"] body.public-ay.ay-detail-mode .ay-detail-gallery__item + .ay-detail-gallery__item::before {
    content: none;
}

html[data-theme="light"] .public-ay .ay-detail-carousel__arrow {
    border-color: rgba(74, 106, 136, 0.44);
    background: rgba(219, 230, 241, 0.8);
    color: #1f3348;
}

html[data-theme="light"] .public-ay .ay-detail-carousel__slide::before {
    border: 0;
    box-shadow: none;
    background: transparent;
}

@media (max-width: 900px) and (pointer: coarse) and (hover: none) {
    .public-ay .ay-detail-carousel__slide {
        flex: 0 0 var(--ay-slide-width, 86vw);
    }
}

.public-ay .ay-footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(6, 12, 24, 0.82);
    padding: 1.8rem 0 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.public-ay .ay-footer__sub {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.public-ay .ay-footer__tagline {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: rgba(195, 218, 252, 0.75);
    text-align: center;
    display: block;
}

.public-ay .ay-footer__mark {
    font-size: 0.62em;
    vertical-align: super;
    margin-left: 0.08em;
}

.public-ay .ay-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 30rem) {
    .public-ay .ay-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 56.25rem) {
    .public-ay .ay-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.public-ay .ay-footer section {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
}

.public-ay .ay-footer h3 {
    margin: 0 0 0.5rem;
}

.public-ay .ay-footer a {
    display: block;
    text-decoration: none;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.public-ay .ay-footer a:hover {
    color: var(--text);
}

.public-ay .ay-reveal {
    opacity: 0;
    transform: translateY(24px) scale(0.99);
    transition: opacity 0.72s cubic-bezier(.2,.9,.2,1), transform 0.72s cubic-bezier(.2,.9,.2,1);
}

.public-ay .ay-reveal.is-in,
.public-ay .ay-panel.is-active.ay-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.public-ay .ay-download.is-active {
    animation: ayPulse 0.8s ease;
}

@keyframes ayPulse {
    0% { transform: scale(1); }
    45% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

@keyframes ayPixelBuildOverlay {
    0% {
        opacity: 0.42;
        filter: blur(0px) hue-rotate(0deg);
        background-size: auto, 44px 44px, 44px 44px;
    }
    55% {
        opacity: 0.26;
        filter: blur(0.3px) hue-rotate(18deg);
        background-size: auto, 20px 20px, 20px 20px;
    }
    100% {
        opacity: 0;
        filter: blur(0px) hue-rotate(0deg);
        background-size: auto, 6px 6px, 6px 6px;
    }
}

@keyframes ayPixelBuildContent {
    0% {
        opacity: 0.16;
        transform: translateY(10px) scale(0.985);
        filter: blur(7px) saturate(1.3) contrast(1.12);
    }
    58% {
        opacity: 0.95;
        transform: translateY(2px) scale(1.003);
        filter: blur(1.8px) saturate(1.15) contrast(1.06);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0) saturate(1) contrast(1);
    }
}

@media (max-width: 980px) and (pointer: coarse) and (hover: none) {
    .public-ay .ay-header__shell {
        border-radius: 12px;
    }

    .public-ay .ay-header__inner {
        align-items: center;
    }

    .public-ay .ay-logo--img img {
        height: 38px;
        max-width: min(52vw, 160px);
    }

    .public-ay .ay-header__actions {
        width: auto;
        flex-wrap: nowrap;
    }

    .public-ay .ay-header__bar-toggle-label {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-ay .ay-main {
        scroll-snap-type: y proximity;
    }

    .public-ay .ay-panel {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .public-ay .ay-panel::after {
        opacity: 0.35;
        transform: none;
    }

    .public-ay .ay-software::after,
    .public-ay .ay-software.is-assembling .ay-software__copy,
    .public-ay .ay-software.is-assembling .ay-software__visual,
    .public-ay .ay-jump-nav__btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Site-Theme (z. B. risingliberty-nav-home): Logos/Start in include/rl_public_site_theme.php; html[data-site-theme] für CSS-Overrides. */

/* --- RisingLiberty: Hell (Weiß/Grau) & Dunkel (Schwarz/Grau) --- */
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090b;
    --bg-soft: #18181b;
    --bg-elev: #27272a;
    --text: #fafafa;
    --text-dim: #a1a1aa;
    --primary: #e4e4e7;
    --primary-hover: #ffffff;
    --accent: #d4d4d8;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
    --card: rgba(24, 24, 27, 0.72);
    --card-strong: rgba(39, 39, 42, 0.85);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #f4f4f5;
    --bg-elev: #e4e4e7;
    --text: #18181b;
    --text-dim: #71717a;
    --primary: #27272a;
    --primary-hover: #09090b;
    --accent: #52525b;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --card: rgba(255, 255, 255, 0.92);
    --card-strong: #ffffff;
}

/* Brand-Logos: ein Bild je Stelle, Quelle per applyRlPublicLogos (PNG) */

.public-ay .ay-logo--img .ay-logo__mark {
    border-radius: 0;
    max-height: 44px;
    max-width: min(50vw, 220px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: none;
}

/* Transparente Logos: leichte Tiefenwirkung je Theme */
html[data-theme="dark"] .public-ay #ay-header-logo.ay-logo__mark {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

html[data-theme="light"] .public-ay #ay-header-logo.ay-logo__mark {
    filter: drop-shadow(0 1px 2px rgba(12, 24, 48, 0.14));
}

.ay-theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 4.25rem;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(160, 175, 195, 0.35);
    background: rgba(0, 0, 0, 0.2);
    color: #e4e8ee;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ay-theme-toggle__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
}

html[data-theme="dark"] .ay-theme-toggle__icon--moon,
html[data-theme="light"] .ay-theme-toggle__icon--sun {
    display: none;
}

.ay-theme-toggle:hover {
    box-shadow: 0 0 0 1px rgba(200, 210, 220, 0.2) inset;
}

/* Theme-Knopf: im Dunkelmodus Sonne sichtbar (→ Hell) — gold; im Hellmodus Mond sichtbar (→ Dunkel) — dunkel */
html[data-theme="dark"] .ay-theme-toggle__icon--sun {
    color: #e5a000;
    filter: drop-shadow(0 0 5px rgba(255, 200, 60, 0.45));
}

html[data-theme="light"] .ay-theme-toggle__icon--moon {
    color: #0a0b0d;
    filter: drop-shadow(0 0.5px 0 rgba(255, 255, 255, 0.55));
}

html[data-theme="light"] .ay-theme-toggle__icon--moon svg path {
    fill: none;
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

/* Hover: Sonne leuchtet gelb (Dunkelmodus — Wechsel zu Hell) */
html[data-theme="dark"] .ay-theme-toggle:hover {
    background: rgba(255, 200, 50, 0.14) !important;
    box-shadow:
        0 0 0 1px rgba(255, 200, 100, 0.35) inset,
        0 0 16px rgba(255, 200, 60, 0.28) !important;
    border-color: rgba(255, 200, 100, 0.45) !important;
}

html[data-theme="dark"] .ay-theme-toggle:hover .ay-theme-toggle__icon--sun {
    color: #ffdd55;
    filter:
        drop-shadow(0 0 4px rgba(255, 220, 120, 1))
        drop-shadow(0 0 12px rgba(255, 200, 60, 0.85))
        drop-shadow(0 0 22px rgba(255, 180, 40, 0.45));
}

/* Hover: Mond schwarz ausgefüllt (Hellmodus — Wechsel zu Dunkel) */
html[data-theme="light"] .ay-theme-toggle:hover {
    background: linear-gradient(180deg, #e2e8ef, #d0d8e0) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset !important;
    border-color: rgba(60, 80, 100, 0.35) !important;
}

html[data-theme="light"] .ay-theme-toggle:hover .ay-theme-toggle__icon--moon {
    color: #0a0a0a;
    filter: none;
}

html[data-theme="light"] .ay-theme-toggle:hover .ay-theme-toggle__icon--moon svg path {
    fill: #0a0a0a;
    stroke: #0a0a0a;
    stroke-width: 1.3px;
    stroke-linejoin: round;
}

.ay-theme-toggle.is-pressed {
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    transform: scale(0.97);
}

html[data-theme="dark"] .ay-theme-toggle.is-pressed {
    background: rgba(255, 200, 40, 0.22) !important;
    box-shadow: 0 0 0 2px rgba(255, 190, 50, 0.55) inset, 0 0 20px rgba(255, 200, 60, 0.25) !important;
    border-color: rgba(255, 200, 80, 0.55) !important;
}

html[data-theme="dark"] .ay-theme-toggle.is-pressed .ay-theme-toggle__icon--sun {
    color: #ffcc20;
    filter: drop-shadow(0 0 8px rgba(255, 220, 100, 0.85));
}

html[data-theme="light"] .ay-theme-toggle.is-pressed {
    background: linear-gradient(180deg, #f5e6a8, #d8c878) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) inset !important;
    border-color: rgba(90, 120, 145, 0.45) !important;
}

html[data-theme="light"] .ay-theme-toggle.is-pressed .ay-theme-toggle__icon--moon {
    color: #000000;
    filter: none;
}

.public-ay .ay-hero.ay-hero--centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: min(70vh, 800px);
    width: 100%;
    gap: 0;
}

.public-ay .ay-hero.ay-hero--centered h1 {
    max-width: none;
}

.ay-hero--centered .ay-hero__main {
    max-width: 40rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
    z-index: 1;
}

.ay-hero__lead {
    margin: 0;
    max-width: 50ch;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.6;
    color: var(--ay-hero-muted, #b8c0cc);
}

.ay-hero--centered .ay-hero__lead {
    margin-left: auto;
    margin-right: auto;
}

.ay-hero--centered .ay-hero__highlights {
    justify-content: center;
}

.ay-hero--centered .ay-hero__actions {
    justify-content: center;
}

.ay-hero__highlights {
    margin: 0.1rem 0 0.2rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.ay-hero__highlights li {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(150, 165, 185, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: #d0d6df;
}

/* Dunkel: monochrom, schwarz — silber — weiss */
html[data-theme="dark"] .public-ay {
    color: #e8e9ec;
    background: #030303;
}

html[data-theme="dark"] .public-ay .ay-bg {
    background:
        radial-gradient(900px 500px at 10% 0%, rgba(200, 210, 220, 0.07), transparent 60%),
        radial-gradient(700px 420px at 90% 12%, rgba(150, 160, 175, 0.06), transparent 58%),
        linear-gradient(180deg, #010101 0%, #0a0a0c 48%, #030303 100%);
}

html[data-theme="dark"] #ay-stars {
    opacity: 0.9;
}

html[data-theme="dark"] .public-ay .ay-glow--a {
    background: radial-gradient(circle, rgba(200, 210, 220, 0.18), transparent 60%);
    opacity: 0.2;
}

html[data-theme="dark"] .public-ay .ay-glow--b {
    background: radial-gradient(circle, rgba(180, 190, 205, 0.14), transparent 60%);
    opacity: 0.18;
}

html[data-theme="dark"] .public-ay .ay-nav-mega-backdrop {
    background: rgba(18, 12, 8, 0.5);
}

html[data-theme="dark"] .public-ay .ay-header__shell {
    border-color: var(--border);
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.88) 0%, rgba(39, 39, 42, 0.82) 100%);
}

html[data-theme="dark"] .public-ay .ay-header__shell:hover {
    border-color: rgba(161, 161, 170, 0.42);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(228, 228, 231, 0.06) inset;
}

html[data-theme="dark"] .public-ay .ay-header.is-scrolled .ay-header__shell {
    border-color: rgba(161, 161, 170, 0.36);
    background: rgba(24, 24, 27, 0.9);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .public-ay .ay-header.is-mega-open .ay-header__shell {
    border-color: rgba(212, 212, 216, 0.46);
    background: rgba(39, 39, 42, 0.95);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48);
}

html[data-theme="dark"] .public-ay .ay-header__inner {
    border-color: transparent;
    background: transparent;
}

html[data-theme="dark"] .public-ay .ay-header.is-scrolled .ay-header__inner {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .public-ay .ay-header__bar-toggle {
    border-color: rgba(113, 113, 122, 0.32);
    color: rgba(228, 228, 231, 0.92);
    background: rgba(228, 228, 231, 0.04);
}

html[data-theme="dark"] .public-ay .ay-header__bar-toggle:hover,
html[data-theme="dark"] .public-ay .ay-header__bar-toggle:focus-visible,
html[data-theme="dark"] .public-ay .ay-header.is-mega-open .ay-header__bar-toggle {
    border-color: rgba(212, 212, 216, 0.55);
    border-style: solid;
    background: rgba(161, 161, 170, 0.12);
    color: #f4f4f5;
    box-shadow: 0 0 0 1px rgba(212, 212, 216, 0.14) inset;
}

html[data-theme="dark"] .public-ay .ay-nav-mega {
    border-color: rgba(161, 161, 170, 0.38);
    background: linear-gradient(160deg, rgba(39, 39, 42, 0.97) 0%, rgba(39, 39, 42, 0.95) 100%);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.52);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__card {
    border-color: rgba(113, 113, 122, 0.24);
    background: rgba(228, 228, 231, 0.035);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__heading {
    color: rgba(161, 161, 170, 0.8);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link {
    color: #d4d4d8;
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link-desc {
    color: rgba(113, 113, 122, 0.74);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link:hover,
html[data-theme="dark"] .public-ay .ay-nav-mega__link:focus-visible {
    color: #f4f4f5;
    background: rgba(161, 161, 170, 0.1);
    border-color: rgba(161, 161, 170, 0.3);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link:hover .ay-nav-mega__link-desc,
html[data-theme="dark"] .public-ay .ay-nav-mega__link:focus-visible .ay-nav-mega__link-desc {
    color: rgba(212, 212, 216, 0.92);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link--browser {
    border-color: rgba(113, 113, 122, 0.38);
    background: rgba(63, 63, 70, 0.2);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link--browser:hover,
html[data-theme="dark"] .public-ay .ay-nav-mega__link--browser:focus-visible {
    border-color: rgba(161, 161, 170, 0.52);
    background: rgba(82, 82, 91, 0.28);
    color: #fafafa;
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link--browser.is-active {
    border-color: rgba(161, 161, 170, 0.58);
    background: rgba(82, 82, 91, 0.32);
}

html[data-theme="dark"] .public-ay .ay-nav-mega__link--button:hover {
    border-color: rgba(200, 110, 90, 0.45);
    background: rgba(120, 45, 35, 0.22);
    color: #ffe8e0;
}

html[data-theme="dark"] .public-ay .ay-logo--img img,
html[data-theme="dark"] .public-ay #ay-header-logo.ay-logo__mark {
    box-shadow: none;
    border-radius: 0;
}

html[data-theme="dark"] .public-ay .ay-nav > a {
    color: #d8dce2;
}

html[data-theme="dark"] .ay-theme-toggle {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: #e4e4e7;
}

html[data-theme="dark"] .public-ay .ay-chip {
    border-color: var(--border) !important;
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .public-ay .ay-chip--solid {
    border-color: rgba(200, 210, 220, 0.28) !important;
    background: rgba(255, 255, 255, 0.04);
    color: #eef0f3;
}

html[data-theme="dark"] .public-ay .ay-kicker {
    color: #a8b0bc;
    letter-spacing: 0.2em;
}

html[data-theme="dark"] .public-ay .ay-hero h1 {
    max-width: none;
    background: linear-gradient(118deg, #ffffff 0%, #c8cdd4 50%, #eceef0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="dark"] .ay-hero__lead {
    color: #9ca3ad;
}

html[data-theme="dark"] .ay-hero__highlights li {
    border-color: rgba(200, 210, 220, 0.22);
    background: rgba(255, 255, 255, 0.03);
    color: #b8c0ca;
}

html[data-theme="dark"] .public-ay .ay-panel::after {
    background: radial-gradient(70vw 50vh at 50% 60%, rgba(200, 210, 220, 0.04), transparent 70%);
}

html[data-theme="dark"] .public-ay .ay-btn {
    border-color: rgba(200, 210, 220, 0.28);
    color: #f0f2f4;
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .public-ay .ay-btn--solid {
    background: linear-gradient(135deg, rgba(100, 108, 118, 0.85), rgba(60, 66, 74, 0.75));
    border-color: rgba(220, 228, 235, 0.25);
}

html[data-theme="dark"] .public-ay .ay-jump-nav__btn {
    border-color: rgba(200, 210, 220, 0.35);
    background: rgba(4, 5, 7, 0.72);
    color: #e8ebef;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(200, 210, 220, 0.1);
}

html[data-theme="dark"] .public-ay .ay-jump-nav__btn:hover {
    border-color: rgba(240, 245, 250, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 210, 220, 0.1);
}

html[data-theme="dark"] .public-ay .ay-overview,
html[data-theme="dark"] .public-ay .ay-software {
    border-color: rgba(200, 210, 220, 0.18);
    background: rgba(8, 9, 11, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .public-ay .ay-software p,
html[data-theme="dark"] .public-ay .ay-section-head p {
    color: #9ca3ad;
}

html[data-theme="dark"] .public-ay .ay-meta span {
    border-color: rgba(200, 210, 220, 0.2);
    color: #c0c6ce;
}

html[data-theme="dark"] .public-ay .ay-software::before {
    background: linear-gradient(110deg, rgba(4, 5, 7, 0.92) 20%, rgba(6, 8, 10, 0.68) 68%, rgba(2, 3, 4, 0.94) 100%);
}

html[data-theme="dark"] .public-ay .ay-software__visual {
    border-color: rgba(200, 210, 220, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .public-ay .ay-footer {
    border-top-color: rgba(200, 210, 220, 0.15);
    background: rgba(2, 3, 4, 0.88);
}

html[data-theme="dark"] .public-ay .ay-footer section {
    border-color: rgba(200, 210, 220, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

html[data-theme="dark"] .public-ay .ay-footer a {
    color: #b4bcc6;
}

html[data-theme="dark"] .public-ay .ay-footer a:hover {
    color: #f0f2f4;
}

html[data-theme="dark"] body.public-ay.ay-splash-active,
html[data-theme="dark"] .ay-splash {
    background: #000;
}

/* Hell: Babyblau + Graustufen — minimal gedämpft, Sterne etwas besser lesbar. */
html[data-theme="light"] .public-ay {
    color: #18181b;
    background: #ffffff;
}

html[data-theme="light"] .public-ay .ay-bg {
    background:
        radial-gradient(880px 520px at 8% 0%, rgba(0, 0, 0, 0.02), transparent 58%),
        radial-gradient(720px 480px at 92% 12%, rgba(0, 0, 0, 0.015), transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #f8f8f8 45%, #f4f4f5 100%);
}

html[data-theme="light"] #ay-stars {
    opacity: 0.94;
}

html[data-theme="light"] .public-ay .ay-glow--a {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03), transparent 62%);
    opacity: 0.25;
}

html[data-theme="light"] .public-ay .ay-glow--b {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02), transparent 62%);
    opacity: 0.2;
}

html[data-theme="light"] .public-ay .ay-header__shell {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .public-ay .ay-header.is-scrolled .ay-header__shell {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .public-ay .ay-header.is-mega-open .ay-header__shell {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .public-ay .ay-header__inner {
    border-color: transparent;
    background: transparent;
    backdrop-filter: none;
}

html[data-theme="light"] .public-ay .ay-header.is-scrolled .ay-header__inner {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

html[data-theme="light"] .public-ay .ay-header__bar-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-header__bar-toggle:hover,
html[data-theme="light"] .public-ay .ay-header.is-mega-open .ay-header__bar-toggle {
    color: #1a2835;
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .public-ay .ay-nav-mega-backdrop {
    background: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .public-ay .ay-nav-mega {
    border-color: rgba(0, 0, 0, 0.08);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.96) 100%);
}

html[data-theme="light"] .public-ay .ay-nav-mega__card {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .public-ay .ay-nav-mega__heading {
    color: rgba(82, 82, 91, 0.85);
}

html[data-theme="light"] .public-ay .ay-nav-mega__link {
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-nav-mega__link-icon {
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .public-ay .ay-nav-mega__link-desc {
    color: rgba(113, 113, 122, 0.85);
}

html[data-theme="light"] .public-ay .ay-nav-mega__link:hover,
html[data-theme="light"] .public-ay .ay-nav-mega__link:focus-visible {
    color: #09090b;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .public-ay .ay-nav-mega__link:hover .ay-nav-mega__link-icon,
html[data-theme="light"] .public-ay .ay-nav-mega__link:focus-visible .ay-nav-mega__link-icon {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .public-ay .ay-nav > a {
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-nav > a:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset;
}

html[data-theme="light"] .ay-theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-chip {
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-chip--solid {
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-kicker {
    color: #71717a;
    letter-spacing: 0.16em;
}

html[data-theme="light"] .public-ay .ay-hero h1 {
    max-width: none;
    background: linear-gradient(122deg, #09090b 0%, #3f3f46 50%, #52525b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="light"] .ay-hero__lead {
    color: #52525b;
    --ay-hero-muted: #52525b;
}

html[data-theme="light"] .ay-hero__highlights li {
    border-color: rgba(0, 0, 0, 0.08);
    background: #f4f4f5;
    color: #3f3f46;
}

html[data-theme="light"] .public-ay .ay-panel::after {
    background: radial-gradient(70vw 50vh at 50% 60%, rgba(0, 0, 0, 0.02), transparent 70%);
}

html[data-theme="light"] .public-ay .ay-btn {
    border-color: rgba(0, 0, 0, 0.1);
    color: #27272a;
    background: #ffffff;
}

html[data-theme="light"] .public-ay .ay-btn--solid {
    background: linear-gradient(135deg, #3f3f46, #27272a);
    border-color: rgba(0, 0, 0, 0.14);
    color: #fafafa;
}

html[data-theme="light"] .public-ay .ay-jump-nav__btn {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #27272a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .public-ay .ay-jump-nav__btn:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 24px rgba(80, 120, 150, 0.12);
}

html[data-theme="light"] .public-ay .ay-overview,
html[data-theme="light"] .public-ay .ay-software {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .public-ay .ay-software p,
html[data-theme="light"] .public-ay .ay-section-head p {
    color: #52525b;
}

html[data-theme="light"] .public-ay .ay-meta span {
    border-color: rgba(0, 0, 0, 0.08);
    color: #3f3f46;
    background: #f4f4f5;
}

html[data-theme="light"] .public-ay .ay-software::before {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.98) 20%, rgba(248, 248, 248, 0.95) 70%, rgba(244, 244, 245, 0.98) 100%);
}

html[data-theme="light"] .public-ay .ay-software.ay-theme--sci-fiction,
html[data-theme="light"] .public-ay .ay-software.ay-theme--aurora-neon {
    box-shadow: 0 16px 40px rgba(70, 100, 120, 0.1);
}

html[data-theme="light"] .public-ay .ay-software__visual {
    border-color: rgba(0, 0, 0, 0.08);
    background: #f4f4f5;
}

html[data-theme="light"] .public-ay .ay-software.ay-theme--clean-grey h3,
html[data-theme="light"] .public-ay .ay-software.ay-theme--clean-grey p {
    color: #27272a;
}

html[data-theme="light"] .public-ay .ay-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
    background: #f4f4f5;
}

html[data-theme="light"] .public-ay .ay-footer section {
    border-color: rgba(0, 0, 0, 0.06);
    background: #ffffff;
}

html[data-theme="light"] .public-ay .ay-footer a {
    color: #3f3f46;
}

html[data-theme="light"] .public-ay .ay-footer a:hover {
    color: #09090b;
}

html[data-theme="light"] .public-ay .ay-footer__sub {
    border-top-color: rgba(70, 100, 120, 0.22);
}

html[data-theme="light"] .public-ay .ay-footer__tagline {
    color: rgba(30, 40, 48, 0.78);
}

/* Ladebildschirm Hell: reines #fff — nur Logo, unabhängig vom Seitendesign */
html[data-theme="light"] body.public-ay.ay-splash-active,
html[data-theme="light"] .ay-splash {
    background: #ffffff;
}

html[data-theme="light"] #ay-splash-logo.ay-splash__logo {
    filter: none;
}

html[data-theme="light"] .public-ay .download-toast {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #27272a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .public-ay .notice--error {
    border-color: rgba(200, 120, 120, 0.45);
    background: rgba(30, 12, 12, 0.55);
    color: #f0d0d0;
}

html[data-theme="light"] .public-ay .notice--error {
    border-color: rgba(200, 120, 100, 0.35);
    background: linear-gradient(180deg, #f2e4e0, #ebe0dc);
    color: #5a1a0a;
}

/* Unterseiten: Scroll, einheitliches Theming mit Startseite */
body.public-ay.public-ay--subpage {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
}

.public-ay__subpage-main {
    position: relative;
    z-index: 2;
}

/* —— Teams (/teams/*) —— */
.teams-page {
    padding-bottom: 0.5rem;
}

.rl-subpage.teams-page {
    width: min(100%, 52rem);
}

.teams-page__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.teams-page__header--compact {
    margin-bottom: 1.25rem;
}

.teams-page__header--detail {
    margin-bottom: 1.25rem;
}

.teams-page__intro h1 {
    margin: 0.15rem 0 0.5rem;
}

.teams-page__lead {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    line-height: 1.5;
}

.teams-page__cta {
    flex-shrink: 0;
    align-self: center;
}

.teams-page__notice {
    margin-bottom: 1rem;
}

.teams-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.teams-back:hover {
    color: rgba(255, 255, 255, 0.9);
}

.teams-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-top: 0.65rem;
}

.teams-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.72);
}

.teams-empty {
    text-align: center;
    padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.teams-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.teams-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.teams-empty p {
    margin: 0 0 1.25rem;
}

.teams-onboarding {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(147, 197, 253, 0.28);
    background: linear-gradient(145deg, rgba(147, 197, 253, 0.1), rgba(110, 231, 160, 0.06));
    text-align: center;
}

.teams-onboarding__icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.teams-onboarding__title {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
}

.teams-onboarding__lead {
    margin: 0 auto 1.25rem;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.55;
}

.teams-onboarding__status {
    margin: 0;
}

.teams-onboarding__cancel-hint {
    max-width: 34rem;
    margin: 0 auto 1rem;
    text-align: center;
}

.teams-onboarding__form {
    margin: 0;
}

.teams-onboarding__cta {
    min-width: min(100%, 22rem);
}

.teams-onboarding__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    max-width: 42rem;
    margin: 0 auto;
    text-align: left;
}

.teams-onboarding__option {
    padding: 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    background: rgba(15, 23, 42, 0.35);
}

.teams-onboarding__option-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
}

.teams-onboarding__option-lead {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.teams-onboarding__option .teams-form__field {
    margin-bottom: 0.85rem;
}

.teams-onboarding__option .teams-form__field input {
    width: 100%;
}

.teams-onboarding__cta--video {
    width: 100%;
}

.teams-onboarding__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 2.5rem;
}

.teams-onboarding__divider span {
    position: relative;
    z-index: 1;
    padding: 0 0.65rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    background: inherit;
}

.teams-onboarding__divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(147, 197, 253, 0.2);
}

.teams-meeting-page .teams-page__header {
    margin-bottom: 1rem;
}

.teams-meeting {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.teams-meeting__frame {
    width: 100%;
    min-height: min(72vh, 42rem);
    border: 0;
    border-radius: 14px;
    background: #0f172a;
}

.teams-meeting__hint {
    margin: 0;
    font-size: 0.85rem;
    word-break: break-all;
}

.teams-meeting__hint a {
    color: rgba(147, 197, 253, 0.95);
}

@media (min-width: 48rem) {
    .teams-onboarding__options {
        grid-template-columns: 1fr auto 1fr;
        align-items: stretch;
    }

    .teams-onboarding__divider {
        min-width: 2.5rem;
        min-height: auto;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
    }

    .teams-onboarding__divider::before {
        left: 50%;
        right: auto;
        top: 0;
        bottom: 0;
        width: 0;
        height: auto;
        border-top: 0;
        border-left: 1px solid rgba(147, 197, 253, 0.2);
    }
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 0.85rem;
}

.teams-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.teams-card:hover {
    border-color: var(--border-strong);
    background: var(--card-strong, var(--card));
}

.teams-card__icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    background: rgba(110, 231, 160, 0.12);
    border: 1px solid rgba(110, 231, 160, 0.22);
    color: #9ef0c4;
}

.teams-card__icon--large {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.35rem;
    margin: 0 auto 0.85rem;
}

.teams-card__body {
    flex: 1;
    min-width: 0;
}

.teams-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-card__arrow {
    flex-shrink: 0;
    opacity: 0.35;
    font-size: 1.1rem;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.teams-card:hover .teams-card__arrow {
    opacity: 0.85;
    transform: translateX(3px);
}

.teams-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.teams-badge--owner {
    background: rgba(110, 231, 160, 0.16);
    color: #9ef0c4;
    border-color: rgba(110, 231, 160, 0.28);
}

.teams-badge--admin {
    background: rgba(161, 161, 170, 0.14);
    color: #93c5fd;
    border-color: rgba(161, 161, 170, 0.28);
}

.teams-badge--member {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.1);
}

.teams-badge--leader {
    background: rgba(251, 191, 36, 0.16);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.28);
}

.teams-badge--title {
    background: rgba(147, 197, 253, 0.14);
    color: #bfdbfe;
    border-color: rgba(147, 197, 253, 0.24);
}

.teams-company {
    margin-bottom: 1.35rem;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.teams-company__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.teams-company__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.teams-company__link:hover .teams-company__title {
    color: var(--text, #fff);
}

.teams-company__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 650;
}

.teams-company__empty {
    margin: 0;
    padding: 0.35rem 0 0.15rem;
}

.teams-grid--nested {
    margin-top: 0.15rem;
}

.org-chart {
    overflow-x: auto;
    padding: 0.35rem 0 0.5rem;
}

.org-chart__root {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: min(100%, 42rem);
    margin: 0 auto;
}

.org-chart__branches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 1.5rem;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.org-chart__branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 1.25rem;
    background: rgba(255, 255, 255, 0.14);
    transform: translateX(-50%);
}

.org-branch {
    flex: 1 1 14rem;
    max-width: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-branch__connector {
    width: 2px;
    height: 1rem;
    background: rgba(255, 255, 255, 0.14);
    margin-bottom: 0.35rem;
}

.org-branch__connector--sub {
    height: 0.85rem;
}

.org-branch__connector--staff {
    width: 1.25rem;
    height: 2px;
    margin: 0 0.45rem 0 0;
    align-self: center;
}

.org-chart__subtree,
.org-chart__staff {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.org-subbranch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-staff-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.org-node {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
}

.org-node--owner {
    border-color: rgba(110, 231, 160, 0.35);
    background: rgba(110, 231, 160, 0.08);
    min-width: 14rem;
}

.org-node--team {
    border-color: rgba(147, 197, 253, 0.28);
    background: rgba(147, 197, 253, 0.07);
}

.org-node--leader {
    border-color: rgba(251, 191, 36, 0.32);
    background: rgba(251, 191, 36, 0.08);
}

.org-node--member {
    padding: 0.55rem 0.75rem;
}

.org-node__edit-form {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.45rem;
}

.org-node__edit-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.78rem;
    flex: 1 1 10rem;
}

.org-node__edit-label select {
    font-size: 0.82rem;
    padding: 0.3rem 0.45rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: inherit;
}

.teams-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.teams-page__header--detail {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.org-node__avatar {
    flex-shrink: 0;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
}

.org-node__avatar--team {
    background: rgba(147, 197, 253, 0.18);
}

.org-node__avatar--small {
    width: 2rem;
    height: 2rem;
    font-size: 0.82rem;
}

.org-node__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.org-node__name {
    font-size: 0.95rem;
}

.org-node__meta {
    font-size: 0.82rem;
}

.org-node__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.org-node__link {
    font-size: 0.82rem;
    color: var(--accent, #86efac);
    text-decoration: none;
}

.org-node__link:hover {
    text-decoration: underline;
}

.org-branch__empty {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    text-align: center;
}

.org-table-wrap {
    overflow-x: auto;
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.org-table th,
.org-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.org-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.55);
}

.org-table__indent {
    display: inline-block;
    width: calc(var(--org-indent, 0) * 0.85rem);
}

.org-table__row--level-0 td {
    font-weight: 650;
}

.teams-panel--org {
    overflow: hidden;
}

.teams-badge--browser-on {
    background: rgba(110, 231, 160, 0.12);
    color: #86efac;
    border-color: rgba(110, 231, 160, 0.22);
}

.teams-badge--browser-off {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.42);
    border-color: rgba(255, 255, 255, 0.08);
}

.teams-panel {
    padding: 1.15rem 1.2rem;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.teams-panel--muted {
    background: rgba(255, 255, 255, 0.02);
}

.teams-panel--hint {
    border-style: dashed;
    background: transparent;
}

.teams-panel--form {
    max-width: 28rem;
}

.teams-panel--invite-card {
    text-align: center;
    max-width: 24rem;
    margin: 0 auto;
}

.teams-panel__title {
    margin: 0 0 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.teams-panel__hint {
    margin: 0.75rem 0 0;
    font-size: 0.88rem;
}

.teams-panel--invite .teams-panel__title {
    margin-bottom: 0.65rem;
}

.teams-invite-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.teams-invite-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.teams-invite-block {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.teams-invite-block__title {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.teams-invite-block__hint {
    margin: 0 0 0.85rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.teams-invite-link-form {
    margin: 0;
}

.teams-invite-link-box {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.teams-invite-link-box__label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.teams-invite-link-box__row,
.teams-invite__link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.teams-invite-link-box__input,
.teams-invite__link-input {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: inherit;
    font: inherit;
    font-size: 0.82rem;
}

.teams-invite-link-box__meta {
    margin: 0.55rem 0 0;
    font-size: 0.8rem;
}

.teams-invite--link .teams-invite__info strong::before {
    content: "🔗 ";
}

html[data-theme="light"] .teams-invite-block {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .teams-invite-link-box__input,
html[data-theme="light"] .teams-invite__link-input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #18181b;
}

.teams-invite-form input[type="email"] {
    flex: 1 1 12rem;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: inherit;
    font: inherit;
}

.teams-invite-form input[type="email"]:focus {
    outline: none;
    border-color: var(--border-strong);
}

.teams-form {
    display: grid;
    gap: 1rem;
}

.teams-form__field {
    display: grid;
    gap: 0.4rem;
}

.teams-form__label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}

.teams-form__field input,
.teams-form__field select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
    color: inherit;
    font: inherit;
}

.teams-form__field input:focus,
.teams-form__field select:focus {
    outline: none;
    border-color: var(--border-strong);
}

.teams-form__submit {
    justify-self: start;
}

.teams-panel__head {
    margin-bottom: 0.85rem;
}

.teams-panel__head .teams-panel__title {
    margin-bottom: 0.25rem;
}

.teams-panel__subtitle {
    margin: 0;
    font-size: 0.88rem;
}

.teams-members {
    display: grid;
    gap: 0.75rem;
}

.teams-member {
    padding: 0;
    border-bottom: none;
}

.teams-member--manageable {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-soft);
    overflow: hidden;
}

.teams-member__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem 0.85rem;
    align-items: center;
    padding: 0.85rem 1rem;
}

.teams-member__avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    flex-shrink: 0;
}

.teams-member__info {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.teams-member__name {
    font-size: 0.98rem;
}

.teams-member__email {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.48);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teams-member__since {
    font-size: 0.8rem;
}

.teams-member__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.teams-member__details {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.teams-member__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    list-style: none;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.teams-member__toggle::-webkit-details-marker {
    display: none;
}

.teams-member__toggle::after {
    content: "▾";
    font-size: 0.85rem;
    opacity: 0.65;
    transition: transform 0.15s ease;
}

.teams-member__details[open] .teams-member__toggle::after {
    transform: rotate(180deg);
}

.teams-member__toggle:hover {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.92);
}

.teams-member__manage {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.12);
}

.teams-member__form {
    margin: 0;
}

.teams-member__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.teams-form__field--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.teams-form__field--inline .teams-form__label {
    margin: 0;
    white-space: nowrap;
}

.teams-form__field--inline select {
    width: auto;
    min-width: 7rem;
    padding: 0.45rem 0.65rem;
}

.teams-member__remove-form {
    margin: 0.65rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-btn-remove {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.35) !important;
    background: rgba(248, 113, 113, 0.08) !important;
}

.teams-btn-remove:hover {
    background: rgba(248, 113, 113, 0.16) !important;
}

.teams-panel--danger {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.06);
}

.teams-panel--tags {
    border-color: rgba(147, 197, 253, 0.2);
}

.teams-badge--tag {
    border-color: transparent;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.73rem;
    font-weight: 600;
}

.teams-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: default;
    background: rgba(147, 197, 253, 0.16);
    color: #93c5fd;
}

.teams-tag-chip--removable {
    cursor: pointer;
    transition: opacity 0.15s;
}

.teams-tag-chip--removable:hover {
    opacity: 0.7;
}

.teams-tags-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.teams-tag-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.teams-tag-item__header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    list-style: none;
}

.teams-tag-item__header::-webkit-details-marker {
    display: none;
}

.teams-tag-item__body {
    padding: 0.6rem 0.9rem 0.9rem;
    border-top: 1px solid var(--border);
}

.teams-tag-edit-form__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.teams-tag-edit-form__fields .teams-form__field {
    flex: 1;
    min-width: 140px;
}

.teams-tag-perms {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem;
    margin-bottom: 0.75rem;
}

.teams-tag-perms legend {
    padding: 0 0.3rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.teams-tag-perms__group {
    margin-bottom: 0.5rem;
}

.teams-tag-perms__group-title {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.2rem;
}

html[data-theme="light"] .teams-tag-perms__group-title {
    color: rgba(0, 0, 0, 0.55);
}

.teams-tag-edit-form__actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.teams-tag-delete-form {
    margin-top: 0.5rem;
}

.teams-tag-create {
    margin-top: 0.75rem;
}

.teams-tag-create-form {
    margin-top: 0.75rem;
}

.teams-member__tag-assign {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
}

.teams-member__tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.3rem 0;
}

.teams-member__tag-form-inline {
    display: inline;
}

.teams-member__tag-add-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.teams-tag-select {
    font-size: 0.82rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: inherit;
}

.teams-check--small {
    font-size: 0.82rem;
    margin-bottom: 0.15rem;
}

.teams-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: inherit;
}

.teams-link-danger,
.teams-link-muted {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.teams-link-danger {
    color: #f87171;
    font-size: 0.84rem;
}

.teams-link-muted {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.84rem;
}

.teams-invites {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.teams-invite {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.teams-invite:last-child {
    border-bottom: none;
}

.teams-invite__info {
    display: grid;
    gap: 0.1rem;
}

.teams-invite__info strong {
    font-size: 0.92rem;
}

.teams-invite__info .muted {
    font-size: 0.8rem;
}

.teams-browsers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.teams-browser-chip {
    display: inline-flex;
}

.teams-browser-chip__name {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.84rem;
    background: rgba(110, 231, 160, 0.1);
    border: 1px solid rgba(110, 231, 160, 0.2);
    color: #a7f3d0;
}

.teams-invite-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.teams-invite-card__email {
    margin: 0 0 1rem;
}

.teams-invite-card__text {
    margin: 0 0 1rem;
    font-size: 0.92rem;
}

.teams-invite-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

/* Legacy / shared */
.teams-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.teams-list__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.ay-browser-picker {
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .teams-page__header {
        flex-direction: column;
    }

    .teams-page__cta {
        align-self: stretch;
        text-align: center;
    }

    .teams-member__main {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .teams-member__tags {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .teams-member__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .teams-form__field--inline {
        flex-direction: column;
        align-items: stretch;
    }

    .teams-form__field--inline select {
        width: 100%;
    }

    .teams-invite-form {
        flex-direction: column;
    }

    .teams-invite-form .ay-btn {
        width: 100%;
    }

    .teams-invite-modes {
        grid-template-columns: 1fr;
    }

    .teams-invite-link-box__row,
    .teams-invite__link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .teams-invite-link-box__row .ay-btn,
    .teams-invite__link-row .ay-btn {
        width: 100%;
    }
}

html[data-theme="light"] .teams-page__lead,
html[data-theme="light"] .teams-back {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .teams-back:hover {
    color: rgba(15, 23, 42, 0.9);
}

html[data-theme="light"] .teams-stat {
    background: #f4f4f5;
    border-color: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .teams-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .teams-card:hover {
    background: #fafafa;
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .teams-card__icon {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
    color: #15803d;
}

html[data-theme="light"] .teams-panel {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .teams-panel--muted {
    background: #f8f8f8;
}

html[data-theme="light"] .teams-empty {
    background: #fafafa;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .teams-member--manageable {
    background: #fafafa;
}

html[data-theme="light"] .teams-member__details {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-member__toggle {
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .teams-member__toggle:hover {
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.92);
}

html[data-theme="light"] .teams-member__manage {
    background: #f4f4f5;
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-member__remove-form {
    border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-member {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-member__avatar {
    background: #f4f4f5;
    color: #27272a;
}

html[data-theme="light"] .teams-member__email {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .teams-panel__title {
    color: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .teams-badge--owner {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.22);
}

html[data-theme="light"] .teams-badge--admin {
    background: #f4f4f5;
    color: #3f3f46;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .teams-badge--member {
    background: #f4f4f5;
    color: #52525b;
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-badge--leader {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.22);
}

html[data-theme="light"] .teams-badge--title {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .teams-company {
    background: #fafafa;
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-onboarding {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.07), rgba(34, 197, 94, 0.05));
    border-color: rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .teams-onboarding__lead {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .teams-onboarding__option {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(59, 130, 246, 0.2);
}

html[data-theme="light"] .teams-onboarding__divider span {
    color: rgba(15, 23, 42, 0.55);
}

.team-access-admin-form__datetime {
    display: block;
    margin: 0.65rem 0;
}

.team-access-admin-form__datetime span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.team-access-admin-form__datetime input {
    width: 100%;
    max-width: 18rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(147, 197, 253, 0.25);
    background: rgba(15, 23, 42, 0.45);
    color: inherit;
}

html[data-theme="light"] .team-access-admin-form__datetime span {
    color: rgba(15, 23, 42, 0.72);
}

html[data-theme="light"] .team-access-admin-form__datetime input {
    background: #fff;
    border-color: rgba(59, 130, 246, 0.25);
}

html[data-theme="light"] .org-chart__branches {
    border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .org-chart__branches::before,
html[data-theme="light"] .org-branch__connector {
    background: rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .org-chart__subtree,
html[data-theme="light"] .org-chart__staff {
    border-top-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .org-node--owner {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.22);
}

html[data-theme="light"] .org-node--team {
    background: rgba(59, 130, 246, 0.07);
    border-color: rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .org-node--leader {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

html[data-theme="light"] .org-node__avatar {
    background: #f4f4f5;
}

html[data-theme="light"] .org-table th {
    color: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] .teams-badge--browser-on {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.2);
}

html[data-theme="light"] .teams-badge--browser-off {
    background: #f4f4f5;
    color: #71717a;
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .teams-browser-chip__name {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

/* Teams: flache Buttons ohne Verlauf */
.teams-page .ay-btn {
    border-radius: 10px;
    box-shadow: none;
    font-weight: 600;
}

.teams-page .ay-btn:hover {
    transform: none;
    box-shadow: none;
}

.teams-page .ay-btn--solid {
    background: #27272a;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fafafa;
}

.teams-page .ay-btn--solid:hover {
    background: #3f3f46;
    border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="light"] .teams-page .ay-btn {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #27272a;
}

html[data-theme="light"] .teams-page .ay-btn:hover {
    background: #f4f4f5;
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .teams-page .ay-btn--solid {
    background: #18181b;
    border-color: rgba(15, 23, 42, 0.14);
    color: #fafafa;
}

html[data-theme="light"] .teams-page .ay-btn--solid:hover {
    background: #27272a;
    border-color: rgba(15, 23, 42, 0.2);
}

/* /auth.php: Abstand Taskbar → „Account“-Bereich */
main.auth-page.public-ay__subpage-main.ay-main {
    padding-top: clamp(1.5rem, 4.2vh, 2.75rem);
}

.public-ay .ay-section-head h1 {
    margin: 0.2rem 0 0.55rem;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.15;
}

/* —— Auth-Seite (/auth.php) —— */
.auth-page-head {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.auth-page-head__text.ay-section-head {
    margin-bottom: 0;
}

.auth-page-head__text.ay-section-head h1 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
}

.auth-page-username {
    font-weight: 500;
    font-size: 0.92em;
    opacity: 0.88;
}

.auth-login-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.auth-login-cta {
    display: block;
    margin-top: 0.2rem;
}

.auth-oidc-alt-login {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-oidc-alt-login a {
    font-weight: 600;
}

.auth-login-form label.span-2 {
    grid-column: 1 / -1;
}

.auth-page .auth-profile-card.admin-card {
    padding: 1.2rem 1.25rem 1.3rem 1.25rem;
    border-radius: 20px;
}

/* —— Konto: einheitliche Karten & Formular —— */
.rl-subpage.auth-page .auth-portal-panels {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 900px) {
    .rl-subpage.auth-page .auth-portal-panels {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }
}

.auth-account-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding: clamp(1.15rem, 2.4vw, 1.45rem);
    border-radius: 18px;
    box-sizing: border-box;
}

.rl-subpage.auth-page .auth-account-card.rl-subpage__card {
    padding: clamp(1.15rem, 2.4vw, 1.45rem);
}

.auth-account-card__head {
    margin-bottom: 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(200, 210, 220, 0.14);
}

.auth-account-card__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
}

.auth-account-card__hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    opacity: 0.72;
}

.auth-account-card__actions {
    margin-top: auto;
    padding-top: 1.15rem;
}

.auth-page-account-email {
    font-weight: 400;
    opacity: 0.78;
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-account-card {
    background: linear-gradient(165deg, rgba(248, 250, 252, 0.98) 0%, rgba(236, 241, 246, 0.96) 100%);
    border-color: rgba(70, 100, 125, 0.14);
    box-shadow: 0 10px 32px rgba(40, 65, 90, 0.08);
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-account-card__head {
    border-bottom-color: rgba(70, 100, 125, 0.16);
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-account-card__head h2 {
    color: #1e2a32;
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-account-card__hint {
    color: #4a5c68;
}

html[data-theme="dark"] .public-ay--subpage .auth-page .auth-account-card {
    background: linear-gradient(165deg, rgba(22, 24, 30, 0.97) 0%, rgba(12, 14, 20, 0.92) 100%);
    border-color: rgba(200, 210, 220, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .public-ay--subpage .auth-page .auth-account-card__head {
    border-bottom-color: rgba(200, 210, 220, 0.12);
}

html[data-theme="dark"] .public-ay--subpage .auth-page .auth-account-card__head h2 {
    color: #e8eaee;
}

.auth-profile-form,
.auth-password-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    flex: 1;
    min-width: 0;
}

.auth-profile-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
}

@media (min-width: 560px) {
    .auth-profile-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

.auth-avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
}

.auth-avatar-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    opacity: 0.65;
    max-width: 7.5rem;
}

.auth-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    width: 100%;
    min-width: 0;
}

.auth-field label {
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.3;
}

.auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 0.68rem 0.82rem;
    font: inherit;
    color: var(--text);
    background: rgba(8, 14, 27, 0.75);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.auth-field input:hover {
    border-color: rgba(174, 207, 255, 0.34);
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(150, 200, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(120, 170, 230, 0.18);
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-field label {
    color: #3d4a55;
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-field input {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #18181b;
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-field input:hover {
    border-color: rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-field input:focus {
    border-color: rgba(45, 90, 120, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 90, 120, 0.12);
}

.auth-security-card__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.auth-security-card__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    opacity: 0.78;
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-security-card__text {
    color: #4a5c68;
}

.auth-page .auth-profile-card .auth-profile-form {
    margin-top: 0;
}

.auth-avatar-tile {
    position: relative;
    display: block;
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.auth-avatar-tile:hover {
    border-color: rgba(150, 200, 255, 0.45);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.auth-avatar-tile:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px var(--text), 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.auth-avatar-tile--empty {
    background: rgba(8, 14, 27, 0.55);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.35);
}

html[data-theme="light"] .public-ay--subpage .auth-avatar-tile--empty {
    background: #f4f4f5;
    border-color: rgba(0, 0, 0, 0.1);
}

.auth-avatar-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

/* Nur Plus im Kreis — kein Text-Overlay; Bild liegt visuell darüber */
.auth-avatar-fallback {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

html[data-theme="light"] .public-ay--subpage .auth-avatar-fallback {
    color: #3d4a55;
}

.auth-avatar-fallback__icon {
    display: block;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    position: relative;
}

.auth-avatar-fallback__icon::before,
.auth-avatar-fallback__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.75rem;
    height: 2px;
    background: rgba(220, 230, 255, 0.95);
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.auth-avatar-fallback__icon::after {
    width: 2px;
    height: 0.75rem;
}

html[data-theme="light"] .public-ay--subpage .auth-avatar-fallback__icon {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .public-ay--subpage .auth-avatar-fallback__icon::before,
html[data-theme="light"] .public-ay--subpage .auth-avatar-fallback__icon::after {
    background: #3d4a55;
}

.auth-avatar-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

/* Primäraktionen: gleiche Höhe/Padding, volle Kartenbreite */
.auth-page a.auth-btn-primary,
.auth-page button.auth-btn-primary {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    padding: 0.6rem 1rem;
    font-weight: 700;
    text-align: center;
}

.auth-security-card a.auth-btn-primary {
    text-decoration: none;
}

.auth-page .form-grid .auth-btn-primary {
    grid-column: 1 / -1;
}

/* Auth: Speichern & Keycloak — besserer Kontrast, passt zu Hell/Dunkel-Karten */
html[data-theme="light"] .public-ay--subpage .auth-page .auth-btn-primary.download-button,
html[data-theme="light"] .public-ay--subpage .auth-page a.auth-btn-primary.download-button {
    background: linear-gradient(180deg, #2d5a78, #1c3d52);
    color: #f2f8fc;
    border: 1px solid rgba(20, 45, 65, 0.55);
    box-shadow: 0 6px 20px rgba(25, 55, 75, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .public-ay--subpage .auth-page .auth-btn-primary.download-button:hover,
html[data-theme="light"] .public-ay--subpage .auth-page a.auth-btn-primary.download-button:hover {
    background: linear-gradient(180deg, #356586, #244860);
    border-color: rgba(20, 50, 70, 0.65);
    box-shadow: 0 8px 22px rgba(20, 50, 70, 0.32);
    transform: translateY(-1px);
}

html[data-theme="dark"] .public-ay--subpage .auth-page .auth-btn-primary.download-button,
html[data-theme="dark"] .public-ay--subpage .auth-page a.auth-btn-primary.download-button {
    background: linear-gradient(180deg, #a87840, #5c3d22);
    color: #fff7ed;
    border: 1px solid rgba(200, 160, 90, 0.55);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .public-ay--subpage .auth-page .auth-btn-primary.download-button:hover,
html[data-theme="dark"] .public-ay--subpage .auth-page a.auth-btn-primary.download-button:hover {
    background: linear-gradient(180deg, #71717a, #52525b);
    border-color: var(--border-strong);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

html[data-theme="light"] .public-ay--subpage .ay-overview-page.ay-reveal,
html[data-theme="light"] .public-ay--subpage .ay-overview-page {
    border-color: rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: #27272a;
}

html[data-theme="light"] .public-ay--subpage .ay-tile {
    border-color: rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

html[data-theme="light"] .public-ay--subpage .ay-tile__body p,
html[data-theme="light"] .public-ay--subpage .ay-tile__body h2 {
    color: #27272a;
}

html[data-theme="light"] .public-ay--subpage .ay-tile__visual {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .public-ay--subpage .admin-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #27272a;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .public-ay--subpage .admin-card .muted,
html[data-theme="light"] .public-ay--subpage .admin-card label {
    color: #3d4a55;
}

html[data-theme="dark"] .public-ay--subpage .ay-overview-page {
    background: rgba(8, 10, 14, 0.62);
    border-color: rgba(200, 210, 220, 0.16);
}

html[data-theme="dark"] .public-ay--subpage .admin-card {
    background: linear-gradient(180deg, rgba(18, 20, 26, 0.92) 0%, rgba(8, 10, 14, 0.82) 100%);
    border-color: rgba(200, 210, 220, 0.18);
    color: #e4e6ea;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .public-ay--subpage .ay-tile {
    border-color: rgba(200, 210, 220, 0.16);
    background: rgba(10, 12, 16, 0.72);
}

html[data-theme="dark"] .public-ay--subpage .ay-tile__body p,
html[data-theme="dark"] .public-ay--subpage .ay-tile__body h2 {
    color: #dce0e6;
}

/* -------------------------------------------------------------------------- */
/* Admin / Control / Upload: dunkelgruen (RisingLiberty-Stil, nur html-Klasse) */
/* -------------------------------------------------------------------------- */
html.portal-admin-green {
    color-scheme: dark;
    --bg: #030907;
    --bg-soft: #071410;
    --bg-elev: #0c1c16;
    --text: #e8f4ef;
    --text-dim: #8fb0a3;
    --primary: #5cdba4;
    --primary-hover: #8aecc4;
    --cyan: #5cdba4;
    --violet: #5a8f78;
    --gold: #c8e070;
    --card: rgba(8, 26, 20, 0.55);
    --card-strong: rgba(12, 38, 28, 0.72);
    --border: rgba(92, 219, 164, 0.26);
    --border-strong: rgba(126, 235, 190, 0.48);
    --shadow-soft: 0 14px 36px rgba(0, 14, 10, 0.42);
    --shadow-glow: 0 0 26px rgba(72, 200, 150, 0.22);
    --glass-shadow: 0 16px 40px rgba(0, 12, 8, 0.48);
}

html.portal-admin-green body {
    background:
        radial-gradient(1000px 700px at 8% -8%, rgba(46, 168, 120, 0.16), transparent 58%),
        radial-gradient(820px 560px at 94% 10%, rgba(24, 72, 52, 0.28), transparent 58%),
        linear-gradient(180deg, #020806 0%, #061210 48%, #030a07 100%);
}

html.portal-admin-green .eyebrow {
    color: #7dd9b0;
    text-shadow: 0 0 14px rgba(72, 200, 150, 0.32);
}

html.portal-admin-green .hero {
    padding: clamp(1.25rem, 3.5vw, 2.75rem) 0 clamp(0.75rem, 2vw, 1.25rem);
}

html.portal-admin-green .hero-actions {
    justify-content: flex-start;
    align-items: flex-end;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

html.portal-admin-green .header-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

html.portal-admin-green .header-links .admin-link,
html.portal-admin-green .header-links .inline-form .admin-link {
    min-height: 44px;
    padding: 0.62rem 1.2rem;
    border-radius: 999px;
    box-sizing: border-box;
}

html.portal-admin-green .inline-form {
    margin: 0;
    display: inline-flex;
}

html.portal-admin-green .inline-form .admin-link,
html.portal-admin-green button.admin-link {
    font: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

html.portal-admin-green .admin-link {
    border-color: rgba(110, 210, 170, 0.32);
}

html.portal-admin-green .admin-link:hover {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 1px rgba(100, 220, 170, 0.2) inset, 0 8px 22px rgba(0, 24, 16, 0.35);
}

html.portal-admin-green .admin-link--ghost {
    background: rgba(255, 255, 255, 0.04);
}

html.portal-admin-green .account-link {
    border-color: rgba(110, 220, 170, 0.45);
    background: rgba(40, 140, 100, 0.18);
}

html.portal-admin-green .download-button {
    min-height: 46px;
    padding: 0.72rem 1.15rem;
    border-radius: 14px;
    border-color: rgba(120, 228, 185, 0.52);
    background: linear-gradient(180deg, rgba(52, 160, 118, 0.42), rgba(28, 88, 64, 0.35));
    box-shadow: 0 8px 24px rgba(0, 36, 24, 0.38), inset 0 0 18px rgba(110, 235, 190, 0.12);
}

html.portal-admin-green .download-button:hover {
    border-color: rgba(150, 245, 200, 0.65);
    box-shadow: 0 12px 28px rgba(0, 48, 32, 0.45), inset 0 0 24px rgba(120, 240, 190, 0.18), 0 0 18px rgba(72, 200, 150, 0.25);
}

html.portal-admin-green .admin-card {
    border-color: rgba(100, 200, 155, 0.28);
    background: linear-gradient(180deg, rgba(10, 28, 22, 0.58) 0%, rgba(6, 16, 12, 0.72) 100%);
}

html.portal-admin-green .admin-card--focus {
    border-color: rgba(130, 235, 190, 0.38);
    box-shadow: 0 14px 44px rgba(0, 20, 14, 0.45);
}

html.portal-admin-green .admin-section-title {
    color: #9ee0c4;
    border-bottom-color: rgba(100, 200, 155, 0.22);
}

html.portal-admin-green .form-grid input,
html.portal-admin-green .form-grid select,
html.portal-admin-green .form-grid textarea {
    border-color: rgba(100, 190, 150, 0.28);
    background: rgba(4, 14, 10, 0.75);
}

html.portal-admin-green .form-grid input:hover,
html.portal-admin-green .form-grid select:hover,
html.portal-admin-green .form-grid textarea:hover {
    border-color: rgba(130, 220, 175, 0.38);
}

html.portal-admin-green .admin-form-actions {
    gap: 0.85rem;
    margin-top: 0.5rem;
}

html.portal-admin-green .admin-form-actions .admin-link,
html.portal-admin-green .admin-form-actions .download-button,
html.portal-admin-green .admin-form-actions button:not(.danger-button) {
    min-height: 44px;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    border-radius: 12px;
}

html.portal-admin-green .control-nav-grid {
    gap: 1.15rem;
}

html.portal-admin-green .control-nav-card {
    padding: 1.2rem 1.3rem;
    border-radius: 18px;
    border-color: rgba(100, 200, 155, 0.28);
    background: rgba(4, 18, 12, 0.45);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

html.portal-admin-green .control-nav-card:hover {
    border-color: rgba(130, 235, 190, 0.45);
    box-shadow: 0 12px 28px rgba(0, 20, 14, 0.35);
}

html.portal-admin-green .control-nav-card h3 {
    margin: 0 0 0.45rem;
}

html.portal-admin-green .upload-modal {
    background: rgba(2, 10, 6, 0.78);
}

html.portal-admin-green .upload-modal__card {
    border-color: rgba(110, 210, 170, 0.32);
    background: linear-gradient(180deg, rgba(12, 32, 24, 0.92) 0%, rgba(6, 16, 12, 0.96) 100%);
}

html.portal-admin-green .upload-progress__bar {
    background: linear-gradient(90deg, #2a9d6a, #5cdba4);
}

html.portal-admin-green .notice--info {
    background: rgba(20, 60, 44, 0.35);
    border-color: rgba(80, 180, 130, 0.45);
}

html.portal-admin-green .notice--success {
    background: rgba(24, 72, 48, 0.35);
    border-color: #3d9d6a;
}

html.portal-admin-green a:focus-visible,
html.portal-admin-green button:focus-visible,
html.portal-admin-green input:focus-visible,
html.portal-admin-green textarea:focus-visible,
html.portal-admin-green select:focus-visible {
    outline-color: #6ae8b8;
}

html.portal-admin-green .admin-back-nav {
    margin: 0 0 1.15rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

html.portal-admin-green .admin-back-nav .admin-link {
    min-height: 44px;
    padding: 0.62rem 1.2rem;
}

html.portal-admin-green .admin-session-bar__inner {
    gap: 0.65rem 1.1rem;
}

html.portal-admin-green .admin-wizard__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.8rem;
}

html.portal-admin-green #wizard-subpage-label {
    margin: 0 0 0.2rem;
}

html.portal-admin-green .admin-wizard__step {
    border: 1px solid rgba(107, 232, 184, 0.35);
    background: rgba(13, 38, 28, 0.5);
    color: #b8eed8;
    border-radius: 10px;
    min-height: 40px;
    padding: 0.45rem 0.55rem;
    font-size: 0.84rem;
}

html.portal-admin-green .admin-wizard__step.is-active {
    background: rgba(35, 98, 73, 0.75);
    border-color: rgba(107, 232, 184, 0.72);
    color: #e7fff4;
}

html.portal-admin-green .admin-wizard__panel {
    display: none;
    border: 1px solid rgba(107, 232, 184, 0.22);
    border-radius: 12px;
    background: rgba(8, 25, 18, 0.46);
    padding: 0.9rem;
}

html.portal-admin-green .admin-wizard__panel.is-active {
    display: block;
}

html.portal-admin-green .admin-wizard__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

html.portal-admin-green .admin-wizard__actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
}

html.portal-admin-green .upload-picker {
    position: relative;
    border: 1px dashed rgba(107, 232, 184, 0.4);
    border-radius: 10px;
    padding: 0.75rem;
    background: rgba(10, 31, 22, 0.55);
}

html.portal-admin-green .upload-picker input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

html.portal-admin-green .upload-picker__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(107, 232, 184, 0.6);
    background: rgba(27, 88, 62, 0.82);
    color: #eafff5;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

html.portal-admin-green .upload-picker__name {
    display: block;
    margin-top: 0.45rem;
    color: #bee9d8;
    font-size: 0.8rem;
    word-break: break-word;
}

html.portal-admin-green .admin-preview-card {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 1rem;
    border: 1px solid rgba(107, 232, 184, 0.3);
    border-radius: 12px;
    padding: 0.9rem;
    background: rgba(9, 28, 19, 0.7);
}

html.portal-admin-green .admin-preview-card__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
}

html.portal-admin-green .admin-preview-card__gallery img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(124, 231, 190, 0.3);
}

html.portal-admin-green .admin-preview-card__placeholder {
    min-height: 130px;
    border: 1px dashed rgba(124, 231, 190, 0.45);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #aedbc8;
    grid-column: 1 / -1;
}

@media (max-width: 900px) and (pointer: coarse) and (hover: none) {
    html.portal-admin-green .admin-wizard__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    html.portal-admin-green .admin-wizard__grid {
        grid-template-columns: 1fr;
    }
    html.portal-admin-green .admin-preview-card {
        grid-template-columns: 1fr;
    }
}

/* Tailscale-Startseite (router_public.php, Host 100.79.x) */
html.portal-admin-green .control-nav-card h3 {
    margin-top: 0;
}

html.portal-admin-green .control-nav-card--featured {
    border-color: rgba(120, 200, 130, 0.55);
    background: linear-gradient(145deg, rgba(40, 70, 45, 0.55), rgba(20, 35, 22, 0.85));
    grid-column: 1 / -1;
}

html.portal-admin-green body.portal-ts-nav {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 4vw, 2.5rem) 0;
}

html.portal-admin-green .portal-ts-nav__main {
    max-width: 920px;
}

html.portal-admin-green .portal-ts-nav__title {
    margin: 0.35rem 0 0.25rem;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0.02em;
}

html.portal-admin-green .portal-ts-nav__lead {
    margin-top: 0.5rem;
    max-width: 52ch;
}

html.portal-admin-green .portal-ts-nav__h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ee0c4;
}

html.portal-admin-green .portal-ts-nav__card {
    margin-top: 1.35rem;
    padding: clamp(1.1rem, 2.5vw, 1.45rem);
}

html.portal-admin-green .portal-ts-nav__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    html.portal-admin-green .portal-ts-nav__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    html.portal-admin-green .portal-ts-nav__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

html.portal-admin-green .portal-ts-nav__foot {
    margin-top: 1.75rem;
    text-align: center;
}

html.portal-admin-green .portal-ts-nav__foot .admin-link {
    min-height: 44px;
    padding: 0.62rem 1.25rem;
}

/* Eingebetteter Kunden-Browser (customer_browser.php) */
html.portal-admin-green body.portal-browser-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f1410;
    overflow: hidden;
}

html.portal-admin-green .portal-browser-toolbar {
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem 0.45rem;
    background: linear-gradient(180deg, #1a241c 0%, #121812 100%);
    border-bottom: 1px solid rgba(120, 180, 130, 0.22);
}

html.portal-admin-green .portal-browser-toolbar__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

html.portal-admin-green .portal-browser-toolbar__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: rgba(90, 160, 100, 0.18);
    color: #b8e6bf;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

html.portal-admin-green .portal-browser-toolbar__nav {
    display: flex;
    gap: 0.25rem;
}

html.portal-admin-green .portal-browser-toolbar__btn {
    min-width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(120, 180, 130, 0.25);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.25);
    color: #d8f0dc;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

html.portal-admin-green .portal-browser-toolbar__btn--text {
    min-width: auto;
    padding: 0 0.75rem;
    font-size: 0.82rem;
}

html.portal-admin-green .portal-browser-toolbar__address {
    flex: 1 1 12rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(120, 180, 130, 0.18);
}

html.portal-admin-green .portal-browser-toolbar__lock {
    opacity: 0.75;
    font-size: 0.85rem;
}

html.portal-admin-green .portal-browser-toolbar__url {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #e8f5ea;
    font-size: 0.85rem;
    outline: none;
}

html.portal-admin-green .portal-browser-toolbar__badge {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(200, 160, 60, 0.2);
    color: #f0d890;
    border: 1px solid rgba(200, 160, 60, 0.35);
}

html.portal-admin-green .portal-browser-toolbar__logout {
    margin: 0;
}

html.portal-admin-green .portal-browser-toolbar__hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
}

html.portal-admin-green .portal-browser-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #fff;
    min-height: 0;
}

/* Docker-Uebersicht (docker_overview.php) */
html.portal-admin-green .docker-inv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html.portal-admin-green .docker-inv-intro code {
    font-size: 0.88em;
}

html.portal-admin-green .docker-inv-live-hint code {
    font-size: 0.85em;
}

html.portal-admin-green .docker-inv-table-card .docker-inv-table-wrap {
    margin: 0 -0.25rem;
}

html.portal-admin-green table.docker-inv-table {
    width: 100%;
    min-width: 38rem;
    border-collapse: collapse;
}

html.portal-admin-green .docker-inv-th-toggle {
    width: 7.5rem;
}

html.portal-admin-green .docker-inv-summary-row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

html.portal-admin-green .docker-inv-summary-row:hover {
    background: rgba(62, 168, 124, 0.12);
}

html.portal-admin-green .docker-inv-summary-row--open {
    background: rgba(62, 168, 124, 0.18);
}

html.portal-admin-green .docker-inv-summary-row:focus-within {
    outline: 2px solid rgba(158, 224, 196, 0.65);
    outline-offset: -2px;
}

html.portal-admin-green .docker-inv-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.35rem 0.5rem;
    font: inherit;
    color: #c7f5df;
    background: rgba(35, 95, 72, 0.45);
    border: 1px solid rgba(92, 190, 150, 0.35);
    border-radius: 0.35rem;
    cursor: pointer;
}

html.portal-admin-green .docker-inv-toggle:hover {
    background: rgba(45, 120, 88, 0.55);
}

html.portal-admin-green .docker-inv-chevron {
    display: inline-block;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.18s ease;
    transform: rotate(0deg);
}

html.portal-admin-green .docker-inv-summary-row--open .docker-inv-chevron {
    transform: rotate(90deg);
}

html.portal-admin-green .docker-inv-toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.portal-admin-green .docker-inv-title-strong {
    font-weight: 700;
}

html.portal-admin-green .docker-inv-cname {
    font-size: 0.82rem;
    opacity: 0.92;
}

html.portal-admin-green .docker-inv-td-status .docker-inv-badge--table {
    max-width: min(22rem, 100%);
}

html.portal-admin-green .docker-inv-detail-row .docker-inv-detail-cell {
    padding: 0;
    vertical-align: top;
    border-bottom-width: 2px;
}

html.portal-admin-green .docker-inv-detail-inner {
    padding: 1rem 1rem 1.15rem;
    background: rgba(12, 42, 32, 0.35);
    border-top: 1px solid rgba(92, 190, 150, 0.15);
}

html.portal-admin-green .docker-inv-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

html.portal-admin-green .docker-inv-card__title {
    margin: 0;
    font-size: 1.15rem;
}

html.portal-admin-green .docker-inv-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(62, 168, 124, 0.35);
    color: #e8fff4;
    max-width: min(100%, 42ch);
    word-break: break-word;
}

html.portal-admin-green .docker-inv-id {
    margin: 0.35rem 0 0.5rem;
}

html.portal-admin-green .docker-inv-desc {
    margin: 0 0 1rem;
    line-height: 1.45;
}

html.portal-admin-green .docker-inv-dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(7rem, auto) 1fr;
    gap: 0.35rem 1rem;
    font-size: 0.92rem;
}

html.portal-admin-green .docker-inv-dl dt {
    margin: 0;
    font-weight: 600;
    color: #a8dcc8;
}

html.portal-admin-green .docker-inv-dl dd {
    margin: 0;
}

html.portal-admin-green .docker-inv-ports {
    white-space: pre-wrap;
    word-break: break-word;
}

html.portal-admin-green .docker-inv-links-wrap {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(92, 190, 150, 0.22);
}

html.portal-admin-green .docker-inv-links-h {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ee0c4;
}

html.portal-admin-green ul.docker-inv-linktree {
    margin: 0;
    padding-left: 1.15rem;
    list-style: disc;
}

html.portal-admin-green ul.docker-inv-linktree ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    list-style: circle;
}

html.portal-admin-green ul.docker-inv-linktree li {
    margin: 0.25rem 0;
    line-height: 1.45;
}

html.portal-admin-green ul.docker-inv-linktree a {
    color: #c7f5df;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.portal-admin-green thead th {
    color: #d4f0e4;
}

html.portal-admin-green th,
html.portal-admin-green td {
    border-bottom-color: rgba(92, 190, 150, 0.2);
}

/* Interne Taskbar + UI-Refresh (Tailscale Admin-Bereich) */
html.portal-admin-green .portal-taskbar {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 0 0.75rem;
    border: 0;
    backdrop-filter: blur(6px);
    background: linear-gradient(180deg, rgba(6, 20, 14, 0.52) 0%, rgba(5, 16, 12, 0.3) 60%, rgba(4, 14, 10, 0) 100%);
}

html.portal-admin-green .portal-taskbar::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 0.2rem;
    background: linear-gradient(90deg, transparent, rgba(112, 212, 172, 0.2), transparent);
}

html.portal-admin-green .portal-taskbar__inner {
    display: flex;
    gap: 0.85rem 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0 0.35rem;
}

html.portal-admin-green .portal-taskbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #ecfff6;
    font-weight: 700;
    letter-spacing: 0.02em;
}

html.portal-admin-green .portal-taskbar__brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at 35% 35%, #e6fff7, #6ce8b9 58%, rgba(26, 107, 77, 0.75) 100%);
    box-shadow: 0 0 10px rgba(122, 242, 194, 0.65);
}

html.portal-admin-green .portal-taskbar__buttons {
    display: flex;
    gap: 0.52rem;
    flex-wrap: wrap;
    align-items: center;
}

html.portal-admin-green .portal-taskbar__logout-form {
    margin: 0;
    display: inline-flex;
}

html.portal-admin-green .portal-taskbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.46rem 0.9rem;
    border: 1px solid rgba(120, 220, 180, 0.32);
    border-radius: 12px;
    text-decoration: none;
    color: #ecfff6;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(180deg, rgba(38, 114, 84, 0.66), rgba(14, 52, 38, 0.7));
    box-shadow: 0 8px 20px rgba(0, 24, 16, 0.32), inset 0 1px 0 rgba(214, 255, 238, 0.08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

html.portal-admin-green .portal-taskbar__btn:hover {
    transform: translateY(-1px);
    border-color: rgba(170, 255, 224, 0.72);
    box-shadow: 0 12px 24px rgba(0, 30, 20, 0.45), 0 0 0 1px rgba(150, 245, 210, 0.26) inset;
    background: linear-gradient(180deg, rgba(52, 144, 108, 0.78), rgba(20, 72, 52, 0.76));
}

html.portal-admin-green .portal-taskbar__btn.is-active {
    border-color: rgba(194, 255, 232, 0.88);
    color: #f5fff9;
    background: linear-gradient(180deg, rgba(72, 190, 144, 0.86), rgba(34, 110, 80, 0.9));
    box-shadow: 0 14px 28px rgba(0, 42, 30, 0.48), 0 0 0 1px rgba(182, 255, 226, 0.4) inset;
}

html.portal-admin-green .portal-taskbar__btn--danger {
    border-color: rgba(255, 122, 122, 0.7);
    color: #ffecec;
    background: linear-gradient(180deg, rgba(186, 52, 52, 0.9), rgba(117, 24, 24, 0.92));
    box-shadow: 0 10px 22px rgba(58, 8, 8, 0.5), inset 0 1px 0 rgba(255, 210, 210, 0.12);
}

html.portal-admin-green .portal-taskbar__btn--danger:hover {
    border-color: rgba(255, 172, 172, 0.9);
    background: linear-gradient(180deg, rgba(205, 66, 66, 0.95), rgba(137, 30, 30, 0.96));
    box-shadow: 0 14px 28px rgba(72, 10, 10, 0.58), 0 0 0 1px rgba(255, 188, 188, 0.24) inset;
}

html.portal-admin-green .hero {
    padding-bottom: 0.35rem;
}

html.portal-admin-green .admin-link {
    border-color: rgba(120, 220, 180, 0.36);
    background: linear-gradient(180deg, rgba(20, 70, 52, 0.45), rgba(10, 36, 27, 0.5));
    box-shadow: inset 0 1px 0 rgba(220, 255, 240, 0.06);
}

html.portal-admin-green .admin-link:hover {
    border-color: rgba(168, 248, 218, 0.62);
    box-shadow: 0 10px 22px rgba(0, 30, 20, 0.4), 0 0 0 1px rgba(140, 235, 198, 0.24) inset;
}

html.portal-admin-green .download-button {
    border-width: 1px;
    border-color: rgba(145, 240, 203, 0.62);
    background: linear-gradient(180deg, rgba(60, 184, 136, 0.5), rgba(28, 96, 69, 0.44));
    box-shadow: 0 10px 24px rgba(0, 32, 22, 0.4), inset 0 0 24px rgba(140, 245, 207, 0.15);
}

html.portal-admin-green .download-button:hover {
    transform: translateY(-1px);
    border-color: rgba(178, 255, 224, 0.78);
    box-shadow: 0 14px 30px rgba(0, 40, 28, 0.5), inset 0 0 28px rgba(160, 255, 220, 0.2);
}

@media (max-width: 820px) and (pointer: coarse) and (hover: none) {
    html.portal-admin-green .portal-taskbar__inner {
        justify-content: flex-start;
    }
    html.portal-admin-green .portal-taskbar__buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        width: 100%;
    }
    html.portal-admin-green .portal-taskbar__btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* Control Panel Dashboard (professionelles Layout) */
html.portal-admin-green .cp-dashboard {
    padding-top: 0.25rem;
}

html.portal-admin-green .cp-hero {
    padding-bottom: 0.5rem;
}

html.portal-admin-green .cp-hero__actions {
    align-items: stretch;
    justify-content: space-between;
}

html.portal-admin-green .cp-hero__badge {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(110, 210, 170, 0.28);
    background: linear-gradient(145deg, rgba(8, 28, 20, 0.72), rgba(4, 14, 10, 0.88));
    box-shadow: 0 12px 32px rgba(0, 16, 10, 0.35);
    min-width: min(100%, 240px);
}

html.portal-admin-green .cp-hero__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: #dffef0;
    background: linear-gradient(145deg, rgba(52, 160, 118, 0.55), rgba(20, 72, 52, 0.85));
    border: 1px solid rgba(140, 235, 190, 0.35);
    flex-shrink: 0;
}

html.portal-admin-green .cp-hero__user-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

html.portal-admin-green .cp-hero__user-name {
    display: block;
    font-size: 1rem;
    color: var(--text);
}

html.portal-admin-green .cp-hero__user-meta {
    display: block;
    font-size: 0.78rem;
    color: #7dd9b0;
    margin-top: 0.1rem;
}

html.portal-admin-green .cp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

html.portal-admin-green .cp-stat {
    margin-bottom: 0;
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

html.portal-admin-green .cp-stat__label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-dim);
}

html.portal-admin-green .cp-stat__value {
    font-size: 1.65rem;
    line-height: 1.15;
    color: #e8fff4;
}

html.portal-admin-green .cp-stat__value--sm {
    font-size: 1.15rem;
}

html.portal-admin-green .cp-stat__meta {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

html.portal-admin-green .cp-stat__bar {
    margin-top: 0.55rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

html.portal-admin-green .cp-stat__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2a9d6a, #5cdba4);
    transition: width 0.35s ease;
}

html.portal-admin-green .cp-stat__bar-fill--warn {
    background: linear-gradient(90deg, #b8860b, #e8c547);
}

html.portal-admin-green .cp-stat__bar-fill--danger {
    background: linear-gradient(90deg, #c44, #f66);
}

html.portal-admin-green .cp-maintenance-card {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
    border-color: rgba(200, 224, 112, 0.22);
    background: linear-gradient(135deg, rgba(24, 40, 28, 0.55), rgba(8, 18, 12, 0.82));
}

html.portal-admin-green .cp-maintenance-card__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    flex-wrap: wrap;
}

html.portal-admin-green .cp-maintenance-card__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

html.portal-admin-green .cp-maintenance-card__btn {
    white-space: nowrap;
}

html.portal-admin-green .cp-section {
    margin-bottom: 1.15rem;
}

html.portal-admin-green .cp-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(100, 200, 155, 0.16);
}

html.portal-admin-green .cp-section__title {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: #b8f0d6;
}

html.portal-admin-green .cp-section__desc {
    margin: 0;
    font-size: 0.88rem;
}

html.portal-admin-green .cp-section__count {
    flex-shrink: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(100, 200, 155, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

html.portal-admin-green .cp-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

html.portal-admin-green .cp-nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(100, 200, 155, 0.22);
    background: rgba(4, 16, 12, 0.42);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html.portal-admin-green .cp-nav-item:hover {
    border-color: rgba(140, 235, 190, 0.42);
    background: rgba(8, 28, 20, 0.55);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 20, 14, 0.32);
}

html.portal-admin-green .cp-nav-item--featured {
    border-color: rgba(140, 235, 190, 0.38);
    background: linear-gradient(135deg, rgba(16, 48, 34, 0.55), rgba(6, 18, 12, 0.78));
}

html.portal-admin-green .cp-nav-item__icon {
    flex-shrink: 0;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html.portal-admin-green .cp-nav-item__icon--mint {
    color: #d4ffec;
    background: linear-gradient(145deg, rgba(44, 140, 100, 0.45), rgba(18, 64, 46, 0.75));
}

html.portal-admin-green .cp-nav-item__icon--teal {
    color: #c8f5e8;
    background: linear-gradient(145deg, rgba(32, 120, 100, 0.5), rgba(14, 52, 48, 0.78));
}

html.portal-admin-green .cp-nav-item__icon--slate {
    color: #d8e8e2;
    background: linear-gradient(145deg, rgba(48, 68, 60, 0.55), rgba(20, 32, 28, 0.8));
}

html.portal-admin-green .cp-nav-item__icon--amber {
    color: #fff4cc;
    background: linear-gradient(145deg, rgba(140, 110, 40, 0.45), rgba(72, 56, 20, 0.75));
}

html.portal-admin-green .cp-nav-item__icon--violet {
    color: #e8dcff;
    background: linear-gradient(145deg, rgba(88, 64, 140, 0.45), rgba(40, 28, 72, 0.75));
}

html.portal-admin-green .cp-nav-item__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

html.portal-admin-green .cp-nav-item__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

html.portal-admin-green .cp-nav-item__desc {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-dim);
}

html.portal-admin-green .cp-nav-item__badge {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    border: 1px solid rgba(140, 235, 190, 0.28);
    color: #9ee0c4;
}

html.portal-admin-green .cp-nav-item__arrow {
    flex-shrink: 0;
    opacity: 0.45;
    font-size: 1.1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

html.portal-admin-green .cp-nav-item:hover .cp-nav-item__arrow {
    opacity: 1;
    transform: translateX(3px);
}

html.portal-admin-green .cp-back-nav {
    margin-bottom: 0.75rem;
}

html.portal-admin-green .cp-login-card {
    max-width: 520px;
}

html.portal-admin-green .cp-taskbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
}

html.portal-admin-green .cp-taskbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

html.portal-admin-green .cp-taskbar__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

html.portal-admin-green .cp-taskbar__brand-title {
    font-weight: 600;
    font-size: 0.92rem;
}

html.portal-admin-green .cp-taskbar__brand-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html.portal-admin-green .cp-taskbar__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

html.portal-admin-green .cp-taskbar__group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

html.portal-admin-green .cp-taskbar__divider {
    width: 1px;
    height: 1.4rem;
    background: rgba(120, 210, 170, 0.22);
    flex-shrink: 0;
}

html.portal-admin-green .cp-taskbar__btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
}

html.portal-admin-green .cp-taskbar__btn--ghost {
    opacity: 0.85;
}

html.portal-admin-green .cp-taskbar__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    justify-content: flex-end;
}

html.portal-admin-green .cp-taskbar__user {
    font-size: 0.8rem;
    color: var(--text-dim);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    html.portal-admin-green .cp-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html.portal-admin-green .cp-taskbar__inner {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    html.portal-admin-green .cp-taskbar__nav {
        justify-content: flex-start;
    }

    html.portal-admin-green .cp-taskbar__actions {
        justify-content: flex-start;
    }

    html.portal-admin-green .cp-hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    html.portal-admin-green .cp-nav-grid,
    html.portal-admin-green .cp-stats-grid {
        grid-template-columns: 1fr;
    }

    html.portal-admin-green .cp-taskbar__divider {
        display: none;
    }

    html.portal-admin-green .cp-taskbar__nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }

    html.portal-admin-green .cp-taskbar__group {
        flex-wrap: nowrap;
    }
}

/* Control Panel — clean (weiss/schwarz) */
html.portal-admin-clean {
    color-scheme: light;
    --bg: #f7f7f8;
    --bg-soft: #ffffff;
    --bg-elev: #ffffff;
    --text: #111111;
    --text-dim: #666666;
    --primary: #111111;
    --primary-hover: #333333;
    --card: #ffffff;
    --card-strong: #ffffff;
    --border: #e4e4e7;
    --border-strong: #d4d4d8;
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04);
    --glass-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

html.portal-admin-clean body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
}

html.portal-admin-clean .cp-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}

html.portal-admin-clean .cp-sidebar {
    background: #ffffff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

html.portal-admin-clean .cp-sidebar__brand {
    padding: 0 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

html.portal-admin-clean .cp-sidebar__brand-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: block;
}

html.portal-admin-clean .cp-sidebar__brand-sub {
    display: block;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

html.portal-admin-clean .cp-sidebar__nav {
    flex: 1;
    padding: 0 0.75rem;
}

html.portal-admin-clean .cp-sidebar__group {
    margin-bottom: 1rem;
}

html.portal-admin-clean .cp-sidebar__group-title {
    margin: 0 0 0.35rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
}

html.portal-admin-clean .cp-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

html.portal-admin-clean .cp-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.35;
}

html.portal-admin-clean .cp-sidebar__link:hover {
    background: #f4f4f5;
    color: #000;
}

html.portal-admin-clean .cp-sidebar__link.is-active {
    background: #111;
    color: #fff;
    font-weight: 500;
}

html.portal-admin-clean .cp-sidebar__ext {
    font-size: 0.75rem;
    opacity: 0.55;
}

html.portal-admin-clean .cp-sidebar__foot {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

html.portal-admin-clean .cp-sidebar__user {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

html.portal-admin-clean .cp-sidebar__logout {
    margin: 0;
}

html.portal-admin-clean .cp-sidebar__logout-btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: #333;
    font: inherit;
    cursor: pointer;
}

html.portal-admin-clean .cp-sidebar__logout-btn:hover {
    background: #f4f4f5;
    border-color: var(--border-strong);
}

html.portal-admin-clean .cp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

html.portal-admin-clean .cp-main--solo {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem;
}

html.portal-admin-clean .cp-pagehead {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

html.portal-admin-clean .cp-pagehead__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
}

html.portal-admin-clean .cp-pagehead__sub {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.cp-area-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.55rem 1.5rem 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.cp-area-tabs__link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 1rem;
    border-radius: 10px 10px 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    transition: color 0.15s ease, background 0.15s ease;
}

.cp-area-tabs__link:hover {
    color: #111;
    background: #f8fafc;
}

.cp-area-tabs__link.is-active {
    color: #111;
    background: #fff;
    border-color: var(--border);
    box-shadow: inset 0 2px 0 #2563eb;
}

.cp-users-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: #f4f4f5;
    border: 1px solid var(--border);
}

.cp-users-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #3f3f46;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cp-users-tabs__link:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #111;
}

.cp-users-tabs__link.is-active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cp-users-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.cp-users-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cp-users-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: grid;
    gap: 0.2rem;
}

.cp-users-stat--warn {
    border-color: rgba(245, 158, 11, 0.45);
    background: #fffbeb;
}

.cp-users-stat__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
}

.cp-users-stat__label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.cp-users-hub__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
}

.cp-users-hub__search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
}

.cp-users-table__identity {
    display: grid;
    gap: 0.15rem;
}

.cp-user-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cp-user-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f4f4f5;
    color: #3f3f46;
}

.cp-user-pill--ok {
    background: #dcfce7;
    color: #166534;
}

.cp-user-pill--warn {
    background: #fef3c7;
    color: #92400e;
}

.cp-user-pill--accent {
    background: #dbeafe;
    color: #1d4ed8;
}

.cp-req-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #f4f4f5;
    color: #3f3f46;
}

.cp-req-badge--open {
    background: #fef3c7;
    color: #92400e;
}

.cp-req-badge--ok {
    background: #dcfce7;
    color: #166534;
}

.cp-req-badge--bad {
    background: #fee2e2;
    color: #991b1b;
}

.cp-req-badge--muted {
    background: #f4f4f5;
    color: #71717a;
}

.cp-users-hub__hint {
    margin-top: 0.5rem;
}

.cp-user-requests__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.cp-user-requests__block h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

.cp-user-requests__list {
    list-style: none;
    margin: 0 0 0.65rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.cp-user-requests__list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

html.portal-admin-clean .cp-content {
    padding: 1rem 1.5rem 2rem;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    flex: 1;
}

html.portal-admin-clean .admin-layout {
    padding-bottom: 0;
}

html.portal-admin-clean .admin-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: none;
}

html.portal-admin-clean .admin-card h2 {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
}

html.portal-admin-clean .muted {
    color: var(--text-dim);
}

html.portal-admin-clean .download-button {
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 8px;
    box-shadow: none;
    min-height: 40px;
}

html.portal-admin-clean .download-button:hover {
    background: #333;
    border-color: #333;
    box-shadow: none;
    transform: none;
}

html.portal-admin-clean .danger-button {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

html.portal-admin-clean .danger-button:hover {
    background: #fef2f2;
    border-color: #f87171;
}

html.portal-admin-clean .admin-link {
    background: #fff;
    color: #111;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    box-shadow: none;
}

html.portal-admin-clean .admin-link:hover {
    background: #f4f4f5;
    border-color: #bbb;
    box-shadow: none;
}

html.portal-admin-clean .admin-link--ghost {
    background: transparent;
}

html.portal-admin-clean .admin-link--danger {
    color: #b91c1c;
    border-color: #fecaca;
}

html.portal-admin-clean .form-grid input,
html.portal-admin-clean .form-grid select,
html.portal-admin-clean .form-grid textarea {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: #111;
    border-radius: 8px;
}

html.portal-admin-clean .form-grid input:focus,
html.portal-admin-clean .form-grid select:focus,
html.portal-admin-clean .form-grid textarea:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

html.portal-admin-clean .notice--info {
    background: #f4f4f5;
    border-color: var(--border-strong);
    color: #333;
}

html.portal-admin-clean .notice--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

html.portal-admin-clean .notice--warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

html.portal-admin-clean .notice--error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

html.portal-admin-clean .cp-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

html.portal-admin-clean .cp-dashboard-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

html.portal-admin-clean .cp-dashboard-action-wrap {
    margin-left: auto;
}

html.portal-admin-clean .cp-dashboard-section {
    margin-bottom: 1.25rem;
}

html.portal-admin-clean .cp-dashboard-section__title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

html.portal-admin-clean .cp-metrics--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.portal-admin-clean .cp-metrics--auto {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

html.portal-admin-clean .cp-metric--bar .cp-metric__bar {
    display: block;
    height: 5px;
    margin: 0.45rem 0 0.35rem;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
}

html.portal-admin-clean .cp-metric--bar .cp-metric__bar > span {
    display: block;
    height: 100%;
    background: #111;
    border-radius: 999px;
    min-width: 2px;
    transition: width 0.3s ease;
}

html.portal-admin-clean .cp-metric--wide {
    grid-column: 1 / -1;
}

html.portal-admin-clean .cp-metric__value--ports {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    word-break: break-word;
}

html.portal-admin-clean .cp-dashboard-action {
    margin: 0;
    flex: 0 0 auto;
    align-self: center;
}

html.portal-admin-clean .cp-inline-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.85rem 1rem;
    margin: 0;
}

html.portal-admin-clean .cp-inline-search input[type="search"] {
    flex: 1;
    min-width: min(100%, 280px);
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
}

html.portal-admin-clean .cp-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

html.portal-admin-clean .cp-field-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.15rem;
}

html.portal-admin-clean .cp-field-value {
    margin: 0;
    font-weight: 600;
}

html.portal-admin-clean .cp-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.portal-admin-clean .cp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

html.portal-admin-clean .cp-backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

html.portal-admin-clean .cp-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    margin: 0;
    grid-template-columns: unset;
}

html.portal-admin-clean .form-grid label.cp-check input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.1rem 0 0;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    accent-color: #111;
}

html.portal-admin-clean .cp-check strong {
    display: block;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
}

html.portal-admin-clean .cp-check__hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.4;
    font-weight: 400;
}

html.portal-admin-clean .cp-details summary {
    cursor: pointer;
    font-weight: 600;
    color: #111;
}

html.portal-admin-clean .cp-details__body {
    margin: 0.85rem 0 0;
    padding-left: 1.2rem;
}

html.portal-admin-clean .download-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    html.portal-admin-clean .cp-backup-grid {
        grid-template-columns: 1fr;
    }

    html.portal-admin-clean .cp-metrics--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

html.portal-admin-clean .table-wrap {
    width: 100%;
    overflow-x: auto;
}

html.portal-admin-clean .table-wrap table {
    width: 100%;
}

html.portal-admin-clean .cp-metric {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

html.portal-admin-clean .cp-metric__label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 0.25rem;
}

html.portal-admin-clean .cp-metric__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    line-height: 1.2;
}

html.portal-admin-clean .cp-metric__value--sm {
    font-size: 1rem;
}

html.portal-admin-clean .cp-metric__hint {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-top: 0.2rem;
}

html.portal-admin-clean .cp-welcome-card__text {
    margin: 0;
    font-size: 0.92rem;
    color: #444;
    line-height: 1.5;
}

html.portal-admin-clean .cp-welcome-card__action {
    margin: 0.85rem 0 0;
}

html.portal-admin-clean .cp-divider {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid var(--border);
}

html.portal-admin-clean .cp-login-card {
    margin-top: 1rem;
}

html.portal-admin-clean table {
    border-color: var(--border);
}

html.portal-admin-clean th,
html.portal-admin-clean td {
    border-color: var(--border);
}

html.portal-admin-clean thead th {
    background: #fafafa;
    color: #555;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

html.portal-admin-clean code {
    background: #f4f4f5;
    color: #111;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
}

html.portal-admin-clean .docker-inv-summary-row {
    cursor: pointer;
}

html.portal-admin-clean .docker-inv-summary-row:hover {
    background: #fafafa;
}

html.portal-admin-clean .docker-inv-summary-row--open {
    background: #f4f4f5;
}

html.portal-admin-clean .docker-inv-toggle {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: #111;
    border-radius: 6px;
}

html.portal-admin-clean .docker-inv-badge {
    border: 1px solid var(--border);
    background: #fafafa;
    color: #333;
}

html.portal-admin-clean .upload-modal {
    background: rgba(0, 0, 0, 0.45);
}

html.portal-admin-clean .upload-modal__card {
    background: #fff;
    border: 1px solid var(--border-strong);
    color: #111;
}

html.portal-admin-clean .upload-progress {
    background: #e5e5e5;
    border: 1px solid #d4d4d4;
}

html.portal-admin-clean .upload-progress__bar {
    background: #111;
}

html.portal-admin-clean .admin-wizard__step {
    border: 1px solid var(--border);
    background: #fff;
    color: #555;
}

html.portal-admin-clean .admin-wizard__step.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

html.portal-admin-clean .admin-wizard__panel {
    border: 1px solid var(--border);
    background: #fff;
}

html.portal-admin-clean .upload-picker {
    border: 1px dashed var(--border-strong);
    background: #fafafa;
}

html.portal-admin-clean .upload-picker__btn {
    background: #111;
    color: #fff;
    border: 0;
}

html.portal-admin-clean .admin-preview-card {
    border: 1px solid var(--border);
    background: #fafafa;
}

@media (max-width: 720px) {
    html.portal-admin-clean .cp-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    html.portal-admin-clean .cp-shell {
        grid-template-columns: 1fr;
    }

    html.portal-admin-clean .cp-sidebar {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    html.portal-admin-clean .cp-content {
        padding: 1rem;
    }

    html.portal-admin-clean .cp-pagehead {
        padding: 1rem 1rem 0.75rem;
    }

    html.portal-admin-clean .cp-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    html.portal-admin-clean .cp-metrics {
        grid-template-columns: 1fr;
    }
}

/* Kunden-Browser auf risingliberty.com (home.php) */
.ay-customer-browser {
    padding: 1.25rem 0 2rem;
}

.ay-customer-browser__shell {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(120, 200, 160, 0.2);
    background: linear-gradient(165deg, rgba(10, 18, 14, 0.94) 0%, rgba(6, 10, 16, 0.97) 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(90, 180, 140, 0.07) inset;
}

.ay-customer-browser__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(180deg, rgba(22, 38, 30, 0.97) 0%, rgba(12, 20, 16, 0.99) 100%);
    border-bottom: 1px solid rgba(100, 190, 145, 0.16);
}

.ay-customer-browser__toolbar-main {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
}

.ay-customer-browser__dots {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ay-customer-browser__dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.ay-customer-browser__dots span:first-child { background: #ff5f57; }
.ay-customer-browser__dots span:nth-child(2) { background: #febc2e; }
.ay-customer-browser__dots span:nth-child(3) { background: #28c840; }

.ay-customer-browser__address {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(100, 190, 145, 0.2);
}

.ay-customer-browser__status {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(100, 190, 145, 0.2);
    color: rgba(200, 240, 215, 0.88);
    font-size: 0.85rem;
    user-select: none;
}

.ay-customer-browser__status-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ay-customer-browser__address input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgba(225, 245, 232, 0.92);
    font-size: 0.85rem;
    outline: none;
}

.ay-customer-browser__address input:focus {
    color: #f0fff5;
}

.ay-customer-browser__address input::placeholder {
    color: rgba(180, 220, 195, 0.45);
}

.ay-customer-browser__lock {
    opacity: 0.75;
    font-size: 0.8rem;
}

.ay-customer-browser__actions {
    display: flex;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.ay-customer-browser__frame {
    display: block;
    width: 100%;
    min-height: min(72vh, 820px);
    border: 0;
    background: #fff;
}

@media (max-width: 720px) {
    .ay-customer-browser__frame {
        min-height: 55vh;
    }
}

/* Control Panel — Portal-Benutzer bearbeiten */
.cp-user-edit {
    max-width: 1080px;
}

.cp-user-edit__toolbar {
    margin-bottom: 0.85rem;
}

.cp-user-edit__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    padding: 0.4rem 0.75rem;
}

.cp-user-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.cp-user-hero__kicker {
    margin: 0 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.cp-user-hero__name {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.cp-user-hero__email {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: var(--text-dim);
}

.cp-user-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.cp-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-dim);
}

.cp-user-badge--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.cp-user-badge--muted {
    opacity: 0.85;
}

.cp-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.cp-perm-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
}

.cp-perm-card--featured {
    border-color: #c7d2fe;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.cp-perm-card__head {
    padding: 1rem 1.1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.02);
}

.cp-perm-card--featured .cp-perm-card__head {
    background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
    border-bottom-color: #e0e7ff;
}

.cp-perm-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.cp-perm-card__desc {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-dim);
}

.cp-perm-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.cp-perm-list > li + li {
    border-top: 1px solid var(--border);
}

.cp-perm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.cp-perm-row:hover {
    background: rgba(0, 0, 0, 0.025);
}

.cp-perm-row--featured:hover {
    background: #f8faff;
}

.cp-perm-row__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.cp-perm-row__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.cp-perm-row__hint {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--text-dim);
}

.cp-perm-row__input {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: #111;
    cursor: pointer;
}

.cp-user-edit__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.cp-user-edit__actions-hint {
    margin: 0;
    font-size: 0.84rem;
}

.cp-danger-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-color: #fecaca;
    background: #fffafa;
}

.cp-danger-zone__title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #991b1b;
}

.cp-danger-zone__desc {
    margin: 0;
    font-size: 0.84rem;
    color: #7f1d1d;
    max-width: 42rem;
}

.cp-danger-zone__form {
    margin: 0;
    flex-shrink: 0;
}

.cp-portal-users__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.85rem;
    font-size: 0.84rem;
}

.cp-portal-users__search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
    align-items: center;
}

.cp-portal-users__search input[type="search"] {
    flex: 1 1 220px;
    min-width: 0;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font: inherit;
    background: #fff;
    color: #111;
}

html.portal-admin-clean .cp-portal-users__search input[type="search"]:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

html.portal-admin-clean .cp-user-badge--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

html.portal-admin-clean .cp-perm-card--featured {
    border-color: #c7d2fe;
}

html.portal-admin-clean .cp-perm-card--featured .cp-perm-card__head {
    background: linear-gradient(180deg, #f5f7ff 0%, #fff 100%);
}

@media (max-width: 960px) {
    .cp-perm-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cp-user-hero__name {
        font-size: 1.2rem;
    }

    .cp-user-edit__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-user-edit__actions .download-button {
        width: 100%;
    }

    .cp-danger-zone {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-danger-zone__form .danger-button {
        width: 100%;
    }
}

/* —— Öffentliche Unterseiten: schlanke Nav + einheitliches Layout —— */
body.public-ay.public-ay--subpage-nav .ay-bg--subtle {
    opacity: 0.42;
}

body.public-ay.public-ay--subpage-nav .ay-glow {
    opacity: 0.35;
}

.rl-public-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html[data-theme="light"] .rl-public-nav {
    border-bottom-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.88);
}

.rl-public-nav__inner {
    display: flex;
    align-items: center;
    gap: 1rem 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.65rem clamp(1rem, 3vw, 1.5rem);
}

.rl-public-nav__brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    text-decoration: none;
}

.rl-public-nav__logo {
    display: block;
    width: auto;
    height: 2rem;
    max-width: 9.5rem;
    object-fit: contain;
}

.rl-public-nav__links {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.rl-public-nav__favorites {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    min-width: 0;
}

.rl-public-nav--favorites-only .rl-public-nav__favorites {
    padding-right: 0;
    margin-right: 0;
    border-right: none;
}

.rl-public-nav__favorites.is-empty {
    min-height: 2.15rem;
}

.rl-public-nav__catalog {
    display: none !important;
}

.rl-public-nav__link--fav-pinned {
    border: 1px solid rgba(245, 200, 66, 0.28);
    background: rgba(245, 200, 66, 0.08);
}

.rl-public-nav__link--fav-pinned::before {
    content: "★";
    margin-right: 0.28rem;
    font-size: 0.72rem;
    color: #f5c842;
    line-height: 1;
}

html[data-theme="light"] .rl-public-nav__link--fav-pinned {
    border-color: rgba(201, 151, 18, 0.28);
    background: rgba(201, 151, 18, 0.08);
}

html[data-theme="light"] .rl-public-nav__link--fav-pinned::before {
    color: #c99712;
}

/* —— Favoriten-Seite (/favoriten) —— */
.rl-favoriten__head {
    margin-bottom: 1.25rem;
}

.rl-favoriten__head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.rl-favoriten__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.rl-favoriten__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rl-favoriten__row.is-favorite {
    border-color: rgba(245, 200, 66, 0.32);
    background: rgba(245, 200, 66, 0.07);
}

html[data-theme="light"] .rl-favoriten__row {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(15, 23, 42, 0.03);
}

html[data-theme="light"] .rl-favoriten__row.is-favorite {
    border-color: rgba(201, 151, 18, 0.28);
    background: rgba(201, 151, 18, 0.07);
}

.rl-favoriten__link {
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.rl-favoriten__label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.rl-favoriten__emoji {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.rl-favoriten__label-text {
    min-width: 0;
}

.rl-favoriten__desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

html[data-theme="light"] .rl-favoriten__desc {
    color: rgba(15, 23, 42, 0.55);
}

.rl-favoriten__star {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.38);
    background: transparent;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.rl-favoriten__star:hover {
    color: #f5d565;
    background: rgba(245, 213, 101, 0.12);
}

.rl-favoriten__star.is-active {
    color: #f5c842;
    background: rgba(245, 200, 66, 0.14);
}

.rl-favoriten__star.is-active svg {
    filter: drop-shadow(0 0 5px rgba(245, 200, 66, 0.4));
}

html[data-theme="light"] .rl-favoriten__star {
    color: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .rl-favoriten__star:hover,
html[data-theme="light"] .rl-favoriten__star.is-active {
    color: #c99712;
}

.rl-favoriten__hint {
    margin: 1rem 0 0;
}

.rl-favoriten__actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .rl-favoriten__actions {
    border-top-color: rgba(15, 23, 42, 0.1);
}

.rl-public-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.rl-public-nav__link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
}

.rl-public-nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.rl-public-nav__link--taskbar .rl-public-nav__emoji {
    flex-shrink: 0;
    font-size: 1rem;
    line-height: 1;
}

.rl-public-nav__link--taskbar .rl-public-nav__text {
    min-width: 0;
    white-space: nowrap;
}

.rl-public-nav__link--taskbar[data-rl-nav-id="browser"] .rl-public-nav__text,
.rl-public-nav__link--taskbar .rl-public-nav__text {
    font-weight: 500;
}

html[data-theme="light"] .rl-public-nav__link {
    color: rgba(15, 23, 42, 0.62);
}

html[data-theme="light"] .rl-public-nav__link:hover {
    color: rgba(15, 23, 42, 0.92);
    background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .rl-public-nav__link.is-active {
    color: rgba(15, 23, 42, 0.95);
    background: rgba(15, 23, 42, 0.08);
}

.rl-public-nav__actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
}

.rl-public-nav__logout-form {
    margin: 0;
}

.rl-public-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: 0.38rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rl-public-nav__btn--solid {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.rl-public-nav__btn--ghost:hover,
.rl-public-nav__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.rl-public-nav__btn.is-active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

html[data-theme="light"] .rl-public-nav__btn {
    border-color: rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.82);
    background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .rl-public-nav__btn--solid {
    background: rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .rl-public-nav__btn:hover,
html[data-theme="light"] .rl-public-nav__btn.is-active {
    background: rgba(15, 23, 42, 0.1);
    border-color: rgba(15, 23, 42, 0.18);
    color: rgba(15, 23, 42, 0.95);
}

@media (max-width: 760px) {
    .rl-public-nav__inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .rl-public-nav__favorites {
        order: 2;
        flex-basis: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.1rem;
        -webkit-overflow-scrolling: touch;
    }

    .rl-public-nav__actions {
        margin-left: auto;
    }
}

.rl-subpage {
    position: relative;
    z-index: 2;
    width: min(100%, 50rem);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) 3rem;
    box-sizing: border-box;
}

.rl-subpage--wide {
    width: min(100%, 68rem);
}

.rl-subpage__head {
    margin-bottom: 1.75rem;
}

.rl-subpage__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.rl-subpage__lead {
    margin: 0;
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.98rem;
    line-height: 1.55;
}

html[data-theme="light"] .rl-subpage__lead {
    color: #3d4a55;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__title {
    color: #18181b;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__lead a {
    color: #1c4f6e;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__lead a:hover {
    color: #153a52;
}

html[data-theme="light"] body.public-ay.public-ay--subpage {
    color: #18181b;
}

html[data-theme="light"] .public-ay--subpage .muted {
    color: #52525b;
}

/* Unterseiten-Formulare (Support, Feedback, …) — lesbar im Hellmodus */
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid label {
    color: #3d4a55;
    font-weight: 500;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid select,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid textarea {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.16);
    color: #18181b;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input:hover,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid select:hover,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid textarea:hover {
    border-color: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input:focus,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid select:focus,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid textarea:focus {
    outline: none;
    border-color: rgba(45, 90, 120, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 90, 120, 0.12);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input::placeholder,
html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid textarea::placeholder {
    color: #71717a;
    opacity: 1;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input[type="file"] {
    padding: 0.55rem 0.7rem;
    color: #3f3f46;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    background: #f4f4f5;
    color: #18181b;
    font: inherit;
    cursor: pointer;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card .form-grid input[type="file"]::file-selector-button:hover {
    background: #e4e4e7;
}

html[data-theme="light"] .public-ay--subpage .rl-subpage .download-button {
    background: linear-gradient(180deg, #2d5a78, #1c3d52);
    color: #f2f8fc;
    border: 1px solid rgba(20, 45, 65, 0.55);
    box-shadow: 0 6px 20px rgba(25, 55, 75, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage .download-button:hover {
    background: linear-gradient(180deg, #356586, #244860);
    border-color: rgba(20, 50, 70, 0.65);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(20, 50, 70, 0.28);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .public-ay--subpage .rl-subpage__card h2 {
    color: #18181b;
}

html[data-theme="light"] body.public-ay.public-ay--subpage-nav .ay-bg--subtle {
    opacity: 0.28;
}

html[data-theme="light"] body.public-ay.public-ay--subpage-nav .ay-glow {
    opacity: 0.18;
}

html[data-theme="light"] .rl-public-nav__link {
    color: rgba(15, 23, 42, 0.78);
}

.rl-subpage__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rl-subpage__card {
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

html[data-theme="light"] .rl-subpage__card {
    border-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

.rl-subpage__card h2 {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
}

.rl-subpage--prose .rl-subpage__content {
    gap: 0;
}

.rl-subpage--prose .rl-legal h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.08rem;
}

.rl-subpage--prose .rl-legal h2:first-child {
    margin-top: 0;
}

.rl-subpage--prose .rl-legal p,
.rl-subpage--prose .rl-legal li {
    margin: 0 0 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .rl-subpage--prose .rl-legal p,
html[data-theme="light"] .rl-subpage--prose .rl-legal li {
    color: rgba(15, 23, 42, 0.78);
}

.rl-subpage--prose .rl-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rl-subpage .teams-page__header {
    margin-bottom: 1.25rem;
}

.rl-subpage .teams-page__intro h1 {
    margin: 0 0 0.5rem;
}

.rl-subpage .teams-page__intro .ay-kicker {
    display: none;
}

.rl-subpage .auth-page-username {
    font-weight: 500;
    font-size: 0.92em;
    opacity: 0.88;
}

.rl-subpage .auth-login-cta {
    margin-top: 0.35rem;
}

.rl-subpage .auth-oidc-alt-login {
    margin: 0.85rem 0 0;
}

.rl-subpage .ay-overview-page {
    margin: 0;
}

.rl-subpage .ay-section-head .ay-kicker {
    display: none;
}

.rl-subpage .ay-section-head h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.55rem, 3.2vw, 2rem);
}

.rl-subpage .ay-section-head {
    margin-bottom: 1.25rem;
}

/* ─── Control Panel Redesign ─── */

html.portal-admin-clean .cp-sidebar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
}

html.portal-admin-clean .cp-sidebar__badge--muted {
    background: #e4e4e7;
    color: #52525b;
}

.cp-dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cp-dash-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cp-dash-stat__value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.cp-dash-stat__label {
    font-size: 0.78rem;
    color: #71717a;
}

.cp-dash-stat__hint {
    font-size: 0.72rem;
    color: #a1a1aa;
    margin-top: 0.1rem;
}

.cp-dash-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.cp-dash-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cp-dash-card:hover {
    border-color: #a1a1aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cp-dash-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-dash-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.cp-dash-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.cp-dash-card__icon--blue { background: #dbeafe; color: #2563eb; }
.cp-dash-card__icon--green { background: #dcfce7; color: #16a34a; }
.cp-dash-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.cp-dash-card__icon--orange { background: #fff7ed; color: #ea580c; }

.cp-dash-card__body {
    font-size: 0.85rem;
    color: #52525b;
    line-height: 1.4;
}

.cp-dash-card__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.78rem;
    color: #a1a1aa;
}

.cp-dash-card__count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111;
}

.cp-dash-activity {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.25rem;
}

.cp-dash-activity__title {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.cp-dash-activity__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.cp-dash-activity__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.cp-dash-activity__item:last-child {
    border-bottom: 0;
}

.cp-dash-activity__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cp-dash-activity__dot--blue { background: #3b82f6; }
.cp-dash-activity__dot--green { background: #22c55e; }
.cp-dash-activity__dot--orange { background: #f59e0b; }
.cp-dash-activity__dot--red { background: #ef4444; }

.cp-dash-system {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.cp-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.cp-filter-bar input[type="search"],
.cp-filter-bar select {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: 0.88rem;
    background: #fff;
}

.cp-filter-bar input[type="search"] {
    flex: 1;
    min-width: min(100%, 220px);
}

.cp-filter-bar select {
    min-width: 130px;
}

.cp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cp-data-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #71717a;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.cp-data-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: #27272a;
}

.cp-data-table tr:hover td {
    background: #f9fafb;
}

.cp-data-table .cp-col-actions {
    white-space: nowrap;
    text-align: right;
}

.cp-inline-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.3rem;
    border-radius: 10px;
    background: #f4f4f5;
    border: 1px solid var(--border);
}

.cp-inline-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #52525b;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.cp-inline-tabs__link:hover {
    background: rgba(255,255,255,0.75);
    color: #111;
}

.cp-inline-tabs__link.is-active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-weight: 600;
}

.cp-inline-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.cp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.cp-app-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-app-card:hover {
    border-color: #a1a1aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cp-app-card__head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cp-app-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: #f4f4f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #52525b;
    flex-shrink: 0;
}

.cp-app-card__icon--blue { background: #dbeafe; color: #2563eb; }
.cp-app-card__icon--green { background: #dcfce7; color: #16a34a; }
.cp-app-card__icon--orange { background: #fff7ed; color: #ea580c; }
.cp-app-card__icon--purple { background: #ede9fe; color: #7c3aed; }

.cp-app-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.cp-app-card__meta {
    font-size: 0.78rem;
    color: #71717a;
}

.cp-app-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: auto;
}

.cp-app-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #f4f4f5;
    color: #52525b;
}

.cp-app-card__badge--web { background: #dbeafe; color: #1d4ed8; }
.cp-app-card__badge--download { background: #dcfce7; color: #166534; }
.cp-app-card__badge--active { background: #dcfce7; color: #166534; }
.cp-app-card__badge--hidden { background: #fef3c7; color: #92400e; }

.cp-company-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.cp-company-card:hover {
    border-color: #a1a1aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cp-company-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.cp-company-card__owner {
    font-size: 0.82rem;
    color: #71717a;
}

.cp-company-card__stats {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    font-size: 0.82rem;
    color: #52525b;
}

.cp-company-card__stat-val {
    font-weight: 700;
    color: #111;
}

.cp-nested-tree {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-nested-tree__item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.65rem;
    background: #fff;
    overflow: hidden;
}

.cp-nested-tree__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.cp-nested-tree__header:hover {
    background: #f4f4f5;
}

.cp-nested-tree__item[open] .cp-nested-tree__header {
    border-bottom-color: var(--border);
}

.cp-nested-tree__title {
    font-weight: 600;
    font-size: 0.92rem;
    color: #111;
}

.cp-nested-tree__count {
    font-size: 0.78rem;
    color: #71717a;
    margin-left: 0.5rem;
}

.cp-nested-tree__body {
    padding: 0.75rem 1rem;
}

.cp-nested-tree__members {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.cp-nested-tree__member {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
}

.cp-nested-tree__member:hover {
    background: #f9fafb;
}

.cp-nested-tree__member-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: #111;
}

.cp-nested-tree__member-role {
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: #f4f4f5;
    color: #52525b;
    font-weight: 600;
}

.cp-nested-tree__member-role--leader {
    background: #dbeafe;
    color: #1d4ed8;
}

.cp-nested-tree__member-role--admin {
    background: #ede9fe;
    color: #7c3aed;
}

.cp-detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cp-detail-header__info {
    display: grid;
    gap: 0.25rem;
}

.cp-detail-header__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.cp-detail-header__meta {
    font-size: 0.85rem;
    color: #71717a;
}

.cp-detail-header__actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cp-section-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
}

.cp-section-title:first-child {
    margin-top: 0;
}

.cp-assign-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.cp-assign-section__title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.cp-assign-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cp-assign-form select {
    flex: 1;
    min-width: 180px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
    font-size: 0.88rem;
}

.cp-assign-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.cp-assign-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    background: #f9fafb;
    font-size: 0.88rem;
}

.cp-assign-list__item:hover {
    background: #f4f4f5;
}

.cp-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: #71717a;
    font-size: 0.92rem;
}

.cp-empty-state__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .cp-dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cp-dash-system {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cp-dash-grid {
        grid-template-columns: 1fr;
    }
    .cp-dash-cards {
        grid-template-columns: 1fr;
    }
    .cp-dash-system {
        grid-template-columns: 1fr;
    }
}

.billing-profile-root {
    margin-top: 0.5rem;
    min-height: 3rem;
}

.billing-profile-open {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: var(--rl-accent, #c9a227);
}

/* Compact billing table fallback when billing.css is not loaded */
.billing-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.billing-profile-table th,
.billing-profile-table td {
    padding: 0.45rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.billing-profile-actions {
    white-space: nowrap;
}

.cp-user-billing-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0 0 1rem;
}

.cp-user-billing-summary dt {
    font-weight: 600;
    opacity: 0.85;
}

.cp-user-billing-form {
    gap: 0.75rem;
}

.cp-inline-form {
    display: inline;
}

.cp-field-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    vertical-align: middle;
    white-space: nowrap;
}

.cp-field-badge--required {
    background: rgba(180, 60, 40, 0.15);
    color: #a33;
    border: 1px solid rgba(180, 60, 40, 0.35);
}

.cp-field-badge--optional {
    background: rgba(120, 120, 120, 0.12);
    color: #666;
    border: 1px solid rgba(120, 120, 120, 0.25);
}

.cp-field-badge--later {
    background: rgba(40, 90, 160, 0.12);
    color: #285aa0;
    border: 1px solid rgba(40, 90, 160, 0.3);
}

.cp-billing-legend {
    margin: 0 0 1rem;
    line-height: 1.8;
}

.cp-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cp-form-hint {
    display: block;
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted, #888);
    margin-top: 0.15rem;
}

.cp-billing-setup__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cp-billing-setup__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.cp-billing-setup__item.is-done {
    border-color: rgba(40, 120, 60, 0.35);
    background: rgba(40, 120, 60, 0.04);
}

.cp-billing-setup__num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    font-weight: 700;
    font-size: 0.85rem;
}

.cp-billing-setup__ok {
    font-size: 0.75rem;
    color: #2a7a3a;
    font-weight: 600;
}

.cp-billing-setup__hint {
    margin-top: 1rem;
    margin-bottom: 0;
}

.cp-billing-notice {
    border-left: 3px solid #285aa0;
}

.cp-billing-form h2 {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

.cp-billing-form h2:first-of-type {
    margin-top: 0;
}

.cp-billing-legend-box {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.cp-billing-legend__title {
    margin: 0 0 0.35rem;
}

.cp-billing-legend__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    font-size: 0.88rem;
}

.cp-billing-in-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-left: 3px solid var(--rl-accent, #c9a227);
}

.cp-billing-in-banner__body {
    flex: 1 1 16rem;
}

.cp-billing-in-banner__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.cp-billing-in-banner__btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.cp-billing-setup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cp-billing-setup__head h2 {
    margin: 0;
}

.cp-billing-setup__progress {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted, #888);
}

.cp-billing-setup__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.65rem;
}

.cp-billing-step {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.cp-billing-step:hover {
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.04);
}

.cp-billing-step--done {
    border-color: rgba(40, 120, 60, 0.35);
    background: rgba(40, 120, 60, 0.05);
}

.cp-billing-step__num {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.07);
    font-weight: 700;
    font-size: 0.8rem;
}

.cp-billing-step__title {
    font-weight: 600;
    font-size: 0.92rem;
}

.cp-billing-step__text {
    font-size: 0.8rem;
}

.cp-billing-step__ok {
    font-size: 0.72rem;
    color: #2a7a3a;
    font-weight: 600;
}

.cp-billing-quicknav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.cp-billing-quicknav__card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    background: rgba(0, 0, 0, 0.02);
}

.cp-billing-quicknav__card.is-active {
    border-color: var(--rl-accent, #c9a227);
    background: rgba(201, 162, 39, 0.08);
}

.cp-billing-quicknav__card:hover:not(.is-active) {
    border-color: rgba(0, 0, 0, 0.2);
}

.cp-billing-status {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.cp-billing-status__ok {
    margin: 0;
    color: #2a7a3a;
}

.cp-billing-status__pending {
    margin: 0;
}

.cp-billing-section {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cp-billing-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.cp-billing-section__head h2 {
    margin: 0 0 0.25rem;
}

.cp-billing-section__head {
    margin-bottom: 0.75rem;
}

.cp-billing-section--fold {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.5rem 0.85rem 0.85rem;
    margin-bottom: 0.85rem;
}

.cp-billing-section__summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
}

.cp-billing-section__summary::-webkit-details-marker {
    display: none;
}

.cp-billing-section__summary::before {
    content: "▸ ";
    color: var(--muted, #888);
}

.cp-billing-section--fold[open] > .cp-billing-section__summary::before {
    content: "▾ ";
}

.cp-billing-test {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.cp-billing-test p {
    margin: 0;
    flex: 1 1 12rem;
}

@media (max-width: 720px) {
    .billing-profile-table thead {
        display: none;
    }

    .billing-profile-table tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 0.5rem;
    }

    .billing-profile-table td {
        display: flex;
        justify-content: space-between;
        gap: 0.75rem;
        border: none;
        padding: 0.35rem 0.25rem;
    }

    .billing-profile-table td::before {
        content: attr(data-label);
        font-weight: 600;
        opacity: 0.75;
    }

    .billing-profile-table td.billing-profile-actions::before {
        content: '';
    }
}

/* —— Global loading spinner (RLLoading) —— */
@keyframes rl-spin {
    to {
        transform: rotate(360deg);
    }
}

.rl-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 2.5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--rl-accent, #c9a227);
    border-radius: 50%;
    animation: rl-spin 0.75s linear infinite;
    flex-shrink: 0;
}

.rl-spinner--sm {
    width: 1.125rem;
    height: 1.125rem;
    border-width: 2px;
}

.rl-spinner--btn {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.rl-spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 2rem 1rem;
}

.rl-spinner-wrap--sm {
    padding: 1rem;
    gap: 0.5rem;
}

.rl-spinner-wrap--inline-row {
    flex-direction: row;
    padding: 0;
}

.rl-spinner__label {
    font-size: 0.9rem;
    opacity: 0.72;
}

.rl-spinner-host {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4rem;
}

.rl-loading-overlay-parent {
    position: relative;
}

.rl-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 15, 0.55);
    backdrop-filter: blur(2px);
    z-index: 50;
    border-radius: inherit;
}

html[data-theme="light"] .rl-loading-overlay {
    background: rgba(255, 255, 255, 0.65);
}

html[data-theme="light"] .rl-spinner {
    border-color: rgba(0, 0, 0, 0.12);
    border-top-color: var(--rl-accent, #c9a227);
}

.rl-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.download-button.is-loading,
button.is-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .rl-spinner {
        animation-duration: 1.5s;
    }
}

