/**
 * Dateiname: portal.css
 * Erstellt: 2026-06-09
 * Geändert: 2026-07-19
 * Version: 1.5.6
 *
 * Copyright by GeRockt.net - Dieser Code ist urheberrechtlich geschützt.
 * Unerlaubte Verbreitung, Nutzung etc. wird strafrechtlich verfolgt.
 */

:root {
    --color-primary: #0891b2;
    --color-primary-hover: #0e7490;
    --color-success: #059669;
    --color-error: #e11d48;
    --gp-ink: #0f172a;
    --gp-muted: #64748b;
    --gp-paper: #f4f7fb;
    --gp-panel: #ffffff;
    --gp-panel-2: #eef3f8;
    --gp-line: rgba(15, 23, 42, 0.1);
    --gp-cyan: #0891b2;
    --gp-deep: #e8eef5;
    --gp-deep-2: #f4f7fb;
    --font: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --font-display: 'Space Grotesk', system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: #eef3f8;
    color: #0f172a;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 12% 0%, rgba(14, 165, 233, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 92% 18%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #f7fafc 0%, #e8eef5 100%);
    pointer-events: none;
}

.portal-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

body.portal-page--wide .portal-shell {
    align-items: flex-start;
    padding-top: 2rem;
}

body.portal-page--wide .portal-card {
    max-width: 960px;
    overflow: visible;
}

.portal-card {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
    overflow: hidden;
}

.portal-card__header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.portal-brand {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0891b2;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.portal-card__header h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #0f172a;
}

.portal-card__subtitle {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.95rem;
}

.portal-card__body {
    padding: 0 2rem 2rem;
}

.portal-form {
    display: grid;
    gap: 1rem;
}

.portal-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.portal-field input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font: inherit;
    background: #fff;
}

.portal-field input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--color-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.portal-button:hover {
    background: var(--color-primary-hover);
}

.portal-button--secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.portal-button--secondary:hover {
    background: #cbd5e1;
}

.portal-button--small {
    width: auto;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

.portal-table .portal-button--small {
    white-space: nowrap;
}

.portal-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.portal-alert ul {
    margin-left: 1.1rem;
}

.portal-alert--error {
    background: #fef2f2;
    color: var(--color-error);
    border: 1px solid #fecaca;
}

.portal-alert--success {
    background: #ecfdf5;
    color: var(--color-success);
    border: 1px solid #a7f3d0;
}

.portal-meta {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    word-break: break-all;
}

.portal-meta strong {
    color: #0f172a;
}

.portal-links {
    margin-top: 1rem;
    display: grid;
    gap: 0.75rem;
}

.portal-footer {
    position: relative;
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.portal-dashboard-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.portal-dashboard-list li {
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.portal-dashboard-list span {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.portal-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.portal-note--success {
    color: #15803d;
}

.portal-note--warning {
    color: #b45309;
}

.portal-credential-card {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.portal-credential-card h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.portal-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.portal-section h2 {
    font-size: 1rem;
    margin-bottom: 0.85rem;
    color: #0f172a;
}

.portal-booking-offers {
    display: grid;
    gap: 1rem;
}

.portal-booking-offer {
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.portal-booking-offer h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #0f172a;
}

.portal-booking-offer__text {
    margin: 0 0 1rem;
    color: #334155;
    line-height: 1.55;
}

.portal-tenant-kind__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.portal-tenant-kind__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.portal-tenant-kind__option {
    position: relative;
    display: block;
    cursor: pointer;
}

.portal-tenant-kind__option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.portal-tenant-kind__option-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.625rem;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.portal-tenant-kind__option:hover .portal-tenant-kind__option-body {
    border-color: #94a3b8;
    background: #f8fafc;
}

.portal-tenant-kind__option input:focus-visible + .portal-tenant-kind__option-body {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.portal-tenant-kind__option input:checked + .portal-tenant-kind__option-body {
    border-color: var(--color-primary);
    background: rgba(34, 211, 238, 0.12);
    color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

@media (max-width: 520px) {
    .portal-tenant-kind__options {
        grid-template-columns: 1fr;
    }
}

.portal-form--inline {
    margin: 0;
}

.portal-field select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font: inherit;
    background: #fff;
}

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

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.portal-table th,
.portal-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.portal-table th {
    color: #64748b;
    font-weight: 600;
}

.portal-table a {
    color: #4338ca;
    text-decoration: none;
    word-break: break-all;
}

.portal-table a:hover {
    text-decoration: underline;
}

.portal-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 600;
}

.portal-order-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.portal-order-card__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.portal-links--inline {
    grid-template-columns: 1fr 1fr;
}

.portal-form--inline {
    margin-top: 0.75rem;
}

.portal-dashboard-list a {
    color: #4338ca;
    text-decoration: none;
}

.portal-dashboard-list a:hover {
    text-decoration: underline;
}

.portal-field-label-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.portal-field-label-row label {
    margin-bottom: 0;
}

.portal-field-help-btn {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #f8fafc;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.portal-field-help-btn:hover,
.portal-field-help-btn:focus-visible {
    background: #eef2ff;
    border-color: #818cf8;
    color: #4338ca;
    outline: none;
}

.portal-field-help-source {
    display: none;
}

body.portal-lightbox-open {
    overflow: hidden;
}

.portal-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.portal-lightbox[hidden] {
    display: none !important;
}

.portal-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.portal-lightbox__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: min(85vh, 520px);
    overflow: auto;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
}

.portal-lightbox__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.portal-lightbox__header h2 {
    font-size: 1rem;
    color: #0f172a;
}

.portal-lightbox__close {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 0.35rem;
}

.portal-lightbox__close:hover,
.portal-lightbox__close:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.portal-lightbox__body {
    padding: 1rem 1.25rem 1.25rem;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
}

.portal-lightbox__body p {
    margin-bottom: 0.75rem;
}

.portal-lightbox__body ul {
    margin: 0;
    padding-left: 1.15rem;
}

.portal-lightbox__body li {
    margin-bottom: 0.35rem;
}

.portal-lightbox__body code {
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
}

.portal-lightbox__dialog--wide {
    max-width: min(960px, 96vw);
    max-height: min(90vh, 820px);
}

.portal-lightbox__dialog--wide .portal-lightbox__body .portal-section {
    margin-top: 1.25rem;
}

.portal-lightbox__dialog--wide .portal-lightbox__body .portal-section:first-of-type {
    margin-top: 0;
}

.portal-lightbox__dialog--wide .portal-lightbox__body .portal-dashboard-list {
    margin-bottom: 0.5rem;
}



/* ——— Storefront: Technik / hell & freundlich ——— */

body.gp-storefront {
    display: block;
    color: #0f172a;
}

body.gp-storefront::before {
    background:
        linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px),
        radial-gradient(ellipse 80% 45% at 50% -8%, rgba(56, 189, 248, 0.18) 0%, transparent 58%),
        radial-gradient(ellipse 40% 30% at 100% 30%, rgba(45, 212, 191, 0.12) 0%, transparent 50%),
        #f4f7fb;
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

.gp-frame {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.gp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(14, 165, 233, 0.16);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.gp-brand {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.gp-brand__mark {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #0f172a;
}

.gp-brand__sub {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0891b2;
}

.gp-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gp-topbar__text-link {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.gp-topbar__text-link:hover {
    color: #0e7490;
}

.gp-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(8, 145, 178, 0.28);
    background: #ffffff;
    color: #0f172a;
    border-radius: 0.65rem;
    padding: 0.4rem 0.8rem 0.4rem 0.45rem;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.gp-account-trigger:hover,
.gp-account-trigger[aria-expanded="true"] {
    border-color: rgba(8, 145, 178, 0.55);
    background: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.gp-account-trigger__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    align-items: center;
    justify-content: center;
    background: rgba(14, 165, 233, 0.12);
    color: #0e7490;
}

.gp-account-trigger__label {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
}

.gp-main {
    flex: 1;
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 3.5rem;
}

.gp-footer {
    text-align: center;
    padding: 1.25rem;
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.gp-hero {
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
    max-width: 42rem;
    padding: 0.75rem 0 0.25rem;
}

.gp-hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0891b2;
    margin-bottom: 0.75rem;
}

.gp-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.gp-hero__text {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
}

.gp-hero__text strong {
    color: #0f172a;
    font-weight: 600;
}

.gp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.4rem;
}

.gp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.7rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 0.65rem;
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 100%);
    color: #042f2e;
    font: inherit;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.22);
}

.gp-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

.gp-button--ghost {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.28);
    color: #0e7490;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.gp-button--ghost:hover {
    filter: none;
    border-color: rgba(8, 145, 178, 0.5);
    background: #f0f9ff;
    color: #0e7490;
}

.gp-button--compact {
    min-height: 2.3rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
}

.gp-catalog__head {
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(14, 165, 233, 0.14);
}

.gp-catalog__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 0.45rem;
}

.gp-catalog__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.gp-catalog__lead {
    color: #64748b;
    line-height: 1.55;
    max-width: 40rem;
}

.gp-app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.05rem;
}

.gp-app-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gp-app-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--app-accent, #0891b2), #67e8f9);
    opacity: 1;
}

.gp-app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.gp-app-card__accent {
    display: none;
}

.gp-app-card__body {
    padding: 1.25rem 1.2rem 1.3rem;
    display: grid;
    gap: 0.55rem;
}

.gp-app-card__tagline {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--app-accent, #0891b2);
}

.gp-app-card__name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #0f172a;
}

.gp-app-card__text {
    color: #475569;
    line-height: 1.55;
    font-size: 0.95rem;
}

.gp-app-card__meta,
.gp-app-card__status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #64748b;
}

.gp-app-card__status {
    color: #0e7490;
    font-weight: 600;
}

.gp-app-card__actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

.gp-app-card__form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.gp-app-card .portal-field label,
.gp-app-card .portal-tenant-kind__label {
    color: #334155;
}

.gp-app-card .portal-field input,
.gp-app-card .portal-tenant-kind__option-body {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gp-app-card .portal-tenant-kind__option input:checked + .portal-tenant-kind__option-body {
    border-color: #0891b2;
    background: #ecfeff;
    color: #0e7490;
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.35);
}

.gp-empty {
    color: #64748b;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.gp-auth {
    margin-top: clamp(2.25rem, 5vw, 3.5rem);
    display: flex;
    justify-content: center;
}

.gp-auth__card {
    width: min(440px, 100%);
    background: #ffffff;
    color: #0f172a;
    border-radius: 1rem;
    padding: 1.5rem 1.35rem 1.55rem;
    border: 1px solid rgba(14, 165, 233, 0.16);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.gp-auth__card h2 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.gp-auth__lead {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gp-auth__card .portal-field label {
    color: #334155;
}

.gp-auth__card .portal-field input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gp-auth__card .portal-field input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.gp-auth__links {
    margin-top: 1rem;
}

.gp-auth__links a {
    color: #0e7490;
    font-weight: 600;
    text-decoration: none;
}

.gp-auth__links a:hover {
    text-decoration: underline;
}

.gp-account-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.35);
}

.gp-account-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    width: min(460px, 100vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    color: #0f172a;
    border-left: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: -16px 0 40px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
}

.gp-account-panel[hidden],
.gp-account-backdrop[hidden] {
    display: none !important;
}

.gp-account-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.15rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.gp-account-panel__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0891b2;
    margin-bottom: 0.3rem;
}

.gp-account-panel__head h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}

.gp-account-close {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.5rem;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.gp-account-close:hover {
    border-color: #0891b2;
    color: #0e7490;
    background: #f0f9ff;
}

.gp-account-panel__body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.15rem 1.5rem;
}

.gp-account-panel__body .portal-dashboard-list li,
.gp-account-panel__body .portal-credential-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.gp-account-panel__body .portal-section h2,
.gp-account-panel__body .portal-credential-card h3,
.gp-account-panel__body .portal-dashboard-list strong {
    color: #0f172a;
}

.gp-account-panel__body .portal-note,
.gp-account-panel__body .portal-dashboard-list span,
.gp-account-panel__body .portal-table th {
    color: #64748b;
}

.gp-account-panel__body .portal-table td,
.gp-account-panel__body .portal-field label {
    color: #334155;
}

.gp-account-panel__body .portal-field input,
.gp-account-panel__body .portal-field select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

.gp-account-panel__body .portal-button {
    background: linear-gradient(180deg, #22d3ee 0%, #0891b2 100%);
    color: #042f2e;
}

.gp-account-panel__body .portal-button--secondary {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
}

.gp-account-panel__body .portal-badge {
    background: #ecfeff;
    color: #0e7490;
}

.portal-status {
    display: inline-block;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-status--active {
    color: #16a34a;
    text-shadow:
        0 0 6px rgba(34, 197, 94, 0.85),
        0 0 14px rgba(34, 197, 94, 0.55),
        0 0 24px rgba(74, 222, 128, 0.35);
}

.portal-status--pending {
    color: #ca8a04;
    text-shadow:
        0 0 6px rgba(234, 179, 8, 0.9),
        0 0 14px rgba(250, 204, 21, 0.55),
        0 0 24px rgba(253, 224, 71, 0.35);
}

.portal-tile__details .portal-status {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
}

.portal-tile__details .portal-status--active {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.portal-tile__details .portal-status--pending {
    background: rgba(234, 179, 8, 0.14);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.gp-account-panel__body .portal-table a,
.gp-account-panel__body .portal-dashboard-list a {
    color: #0e7490;
}

.gp-account-panel__body .portal-section:first-child {
    margin-top: 0.5rem;
}

.gp-account-panel__body .portal-links {
    margin-top: 1.25rem;
}

.portal-tile-list {
    display: grid;
    gap: 0.75rem;
}

.portal-tile {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    overflow: hidden;
}

.portal-tile__toggle {
    position: relative;
    display: grid;
    gap: 0.25rem;
    width: 100%;
    padding: 0.9rem 2.4rem 0.9rem 1rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.portal-tile__toggle:hover {
    background: #f1f5f9;
}

.portal-tile__meta {
    display: block;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.portal-tile__title {
    display: block;
    font-size: 0.98rem;
    color: #0f172a;
    font-weight: 700;
}

.portal-tile__hint {
    display: block;
    font-size: 0.8rem;
    color: #0891b2;
}

.portal-tile__chevron {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}

.portal-tile.is-open .portal-tile__chevron {
    transform: translateY(-30%) rotate(225deg);
}

.portal-tile__panel {
    padding: 0 1rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.portal-tile__details {
    list-style: none;
    display: grid;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    padding: 0;
}

.portal-tile__details li {
    display: grid;
    gap: 0.15rem;
}

.portal-tile__details span {
    font-size: 0.75rem;
    color: #64748b;
}

.portal-tile__details strong {
    font-size: 0.92rem;
    color: #0f172a;
    font-weight: 600;
}

.portal-tile__instance {
    margin-top: 0.9rem;
    padding: 0.85rem 0.9rem;
    border-radius: 0.65rem;
    background: #ecfeff;
    border: 1px solid rgba(8, 145, 178, 0.2);
}

.portal-tile__instance > span {
    display: block;
    font-size: 0.75rem;
    color: #0e7490;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.portal-tile__instance a {
    display: block;
    color: #0e7490;
    font-weight: 700;
    word-break: break-all;
    text-decoration: none;
}

.portal-tile__instance a:hover {
    text-decoration: underline;
}

.portal-tile__instance .portal-note {
    margin-top: 0.45rem;
}

.portal-tile__actions {
    margin-top: 0.85rem;
}

.portal-tile--static {
    padding: 0.9rem 1rem;
}

.portal-tile-list--static {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.gp-account-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .gp-account-trigger__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .gp-account-trigger {
        padding: 0.35rem;
        border-radius: 0.65rem;
    }

    .gp-hero__title {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
    }
}
