:root {
    --bg: #f3f5f8;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --sidebar: #111827;
    --sidebar-soft: #1f2937;
    --text: #172033;
    --muted: #667085;
    --line: #e5e9f0;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --success: #157347;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    color: #d1d5db;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 8px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: white;
    background: var(--accent);
    font-size: 20px;
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.01em;
}

.brand small {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
}

.main-nav {
    display: grid;
    gap: 8px;
    margin-top: 30px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
    background: rgba(255,255,255,0.08);
    transform: translateX(2px);
    outline: none;
}

.nav-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9px;
    color: #93c5fd;
    font-size: 10px;
    letter-spacing: .08em;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 9px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
    font-size: 13px;
}

.sidebar-footer small {
    grid-column: 2;
    color: #64748b;
}

.status-dot {
    grid-row: 1 / 3;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .1);
}

.main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
}

.topbar strong,
.topbar .eyebrow {
    display: block;
}

.topbar strong {
    margin-top: 3px;
    font-size: 16px;
}

.eyebrow,
.section-kicker {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.environment-badge,
.status-chip {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 6px 9px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
}

.status-chip-success {
    border-color: #bbf7d0;
    color: var(--success);
    background: #f0fdf4;
}

.profile-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #273449;
    font-weight: 800;
}

.content {
    width: 100%;
    max-width: 1500px;
    flex: 1;
    margin: 0 auto;
    padding: 34px;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 30px;
    padding: 46px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 20%, rgba(37,99,235,.09), transparent 32%),
        var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.error-panel h1 {
    margin: 10px 0 0;
    color: #101828;
    letter-spacing: -.035em;
}

.hero-copy h1 {
    max-width: 700px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
}

.hero-copy p {
    max-width: 710px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    color: white;
    background: var(--accent);
    box-shadow: 0 8px 20px rgba(37,99,235,.22);
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    border-color: var(--line);
    background: #fff;
}

.architecture-card {
    align-self: stretch;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    border: 1px solid rgba(37,99,235,.16);
    border-radius: 20px;
    background: linear-gradient(145deg, #f8fbff, #eef4ff);
}

.architecture-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.architecture-card strong {
    margin-top: 10px;
    font-size: 25px;
    line-height: 1.2;
}

.architecture-line {
    width: 1px;
    height: 55px;
    margin: 22px auto 0;
    background: #93b4f6;
}

.product-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.product-row span {
    padding: 11px 8px;
    border: 1px solid #dbe5f6;
    border-radius: 10px;
    background: rgba(255,255,255,.8);
    color: #344054;
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

.metric-grid,
.capability-grid,
.admin-grid,
.endpoint-grid {
    display: grid;
    gap: 16px;
}

.metric-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
}

.metric-card,
.capability-card,
.admin-card,
.details-card,
.endpoint-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.metric-card {
    display: grid;
    gap: 5px;
    padding: 22px;
}

.metric-card span,
.endpoint-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.metric-card strong {
    font-size: 24px;
}

.metric-card small,
.endpoint-card small {
    color: var(--muted);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin: 48px 0 20px;
}

.section-heading h1,
.section-heading h2 {
    font-size: 30px;
}

.section-heading .lead {
    max-width: 780px;
    margin: 12px 0 0;
}

.muted,
.lead {
    color: var(--muted);
}

.capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-card {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 24px;
}

.capability-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--accent);
    background: #eff6ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.capability-card h3,
.admin-card h2 {
    margin: 13px 0 6px;
    font-size: 18px;
}

.capability-card p,
.admin-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-card {
    min-height: 190px;
    padding: 24px;
}

.admin-card > span {
    color: #9db9ed;
    font-size: 28px;
    font-weight: 900;
}

.details-card {
    padding: 12px 26px;
}

.details-list {
    margin: 0;
}

.details-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.details-list > div:last-child {
    border-bottom: 0;
}

.details-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.details-list dd {
    margin: 0;
    font-weight: 650;
}

.endpoint-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 18px;
}

.endpoint-card {
    display: grid;
    gap: 8px;
    padding: 23px;
    transition: border-color .18s ease, transform .18s ease;
}

.endpoint-card:hover {
    border-color: #b7caf1;
    transform: translateY(-2px);
}

.error-panel {
    max-width: 720px;
    margin: 70px auto;
    padding: 45px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    text-align: center;
}

.error-code {
    color: var(--accent);
    font-size: 54px;
    font-weight: 900;
}

.error-panel p {
    color: var(--muted);
    font-size: 16px;
}

.correlation-box {
    display: grid;
    gap: 6px;
    margin: 24px 0;
    padding: 15px;
    border-radius: 12px;
    background: var(--surface-soft);
}

.correlation-box span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.correlation-box code {
    overflow-wrap: anywhere;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 34px;
    padding: 22px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 14px;
    }

    .brand {
        justify-content: center;
        padding-inline: 0;
    }

    .brand > span:last-child,
    .brand strong,
    .brand small,
    .nav-link { font-size: 0; }
    .nav-link { justify-content: center; padding-inline: 8px; }
    .nav-icon { font-size: 10px; }
    .sidebar-footer { display: none; }
    .hero-panel { grid-template-columns: 1fr; }
    .metric-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .app-shell { display: block; }
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px;
    }
    .brand { justify-content: flex-start; padding: 0 0 12px; }
    .brand strong, .brand small { font-size: revert; }
    .main-nav { grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
    .nav-link { padding: 8px; }
    .topbar { padding: 12px 18px; }
    .environment-badge { display: none; }
    .content { padding: 18px; }
    .hero-panel { padding: 28px 22px; }
    .hero-copy h1 { font-size: 39px; }
    .metric-grid, .capability-grid, .admin-grid, .endpoint-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .footer { margin-inline: 18px; flex-direction: column; }
}


/* Block 5 – Plattformadministration */
.section-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:26px; }
.heading-actions,.form-actions,.topbar-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 16px; border:1px solid transparent; border-radius:10px; font:inherit; font-weight:700; cursor:pointer; }
.button-primary { color:#fff; background:var(--accent); }
.button-primary:hover { background:var(--accent-dark); }
.button-secondary { color:var(--text); background:var(--surface); border-color:var(--line); }
.button-danger { color:#fff; background:#b42318; }
.button.disabled,.disabled { opacity:.45; pointer-events:none; }
.metric-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:24px; }
.metric-card { display:flex; flex-direction:column; gap:8px; padding:22px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.metric-card span,.metric-card small { color:var(--muted); }
.metric-card strong { font-size:32px; }
.dashboard-grid,.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin-bottom:24px; }
.panel,.form-panel { padding:24px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:24px; }
.panel h2 { margin-top:0; }
.panel-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; }
.panel-header h2 { margin:2px 0 0; }
.compact-list { display:grid; gap:4px; }
.compact-list>a,.compact-list.static-list>div { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); }
.compact-list small,.table-subline { display:block; color:var(--muted); margin-top:3px; }
.filter-bar,.inline-create-form { display:flex; align-items:end; gap:14px; flex-wrap:wrap; padding:18px; margin-bottom:22px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.filter-bar label,.inline-create-form label { min-width:180px; flex:1; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.form-grid-full { grid-column:1/-1; }
label { display:grid; gap:7px; color:var(--muted); font-size:14px; font-weight:700; }
input,select,textarea { width:100%; padding:11px 12px; border:1px solid #cfd6e1; border-radius:9px; background:#fff; color:var(--text); font:inherit; }
input:focus,select:focus,textarea:focus { outline:3px solid rgba(37,99,235,.13); border-color:var(--accent); }
.checkbox-label { display:flex; flex-direction:row; align-items:center; gap:9px; min-height:42px; }
.checkbox-label input { width:auto; }
.form-actions { justify-content:flex-end; grid-column:1/-1; margin-top:24px; }
.validation-summary,.field-validation-error { color:#b42318; }
.validation-summary:empty { display:none; }
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; }
th,td { padding:14px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-size:12px; letter-spacing:.05em; text-transform:uppercase; }
.table-actions { display:flex; gap:12px; white-space:nowrap; }
.table-actions a,.link-button { color:var(--accent); font-weight:700; }
.link-button { padding:0; border:0; background:none; cursor:pointer; }
.badge { display:inline-flex; align-items:center; min-height:28px; padding:0 10px; border-radius:999px; font-size:12px; font-weight:800; white-space:nowrap; }
.badge-success { color:#067647; background:#ecfdf3; }
.badge-warning { color:#b54708; background:#fffaeb; }
.badge-muted { color:#475467; background:#f2f4f7; }
.badge-info { color:#175cd3; background:#eff8ff; }
.alert { padding:14px 16px; border-radius:11px; margin-bottom:18px; font-weight:650; }
.alert-success { color:#067647; background:#ecfdf3; border:1px solid #abefc6; }
.alert-danger { color:#b42318; background:#fef3f2; border:1px solid #fecdca; }
.details-list { display:grid; grid-template-columns:minmax(130px,.7fr) 1.5fr; gap:12px 18px; margin:0; }
.details-list dt { color:var(--muted); font-weight:700; }
.details-list dd { margin:0; overflow-wrap:anywhere; }
.action-stack { display:grid; gap:12px; }
.inline-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.inline-form input { flex:1; min-width:170px; }
.note { padding:12px; color:var(--muted); background:var(--surface-soft); border-radius:9px; }
.empty-state { padding:20px; color:var(--muted); text-align:center; }
.pager { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:20px 0; color:var(--muted); }
.inline-editor { margin-top:18px; border-top:1px solid var(--line); padding-top:16px; }
.inline-editor summary { cursor:pointer; color:var(--accent); font-weight:800; }
.compact-form { display:grid; gap:12px; margin-top:16px; }
.chip-list { display:flex; flex-wrap:wrap; gap:8px; }
code { padding:2px 6px; border-radius:6px; background:var(--surface-soft); }
@media (max-width:1100px){ .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .dashboard-grid,.detail-grid{grid-template-columns:1fr;} }
@media (max-width:760px){ .section-heading{flex-direction:column;} .metric-grid,.form-grid{grid-template-columns:1fr;} .filter-bar,.inline-create-form{align-items:stretch;flex-direction:column;} .app-shell{display:block;} .sidebar{position:relative;height:auto;} }


/* Block 6: access and license management */
.access-card { border: 1px solid var(--border); border-radius: 14px; padding: 1rem; margin-top: 1rem; background: rgba(255,255,255,.02); }
.access-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: .85rem; }
.access-card-head h3 { margin: 0; }
.access-card-head small { color: var(--muted); }
.access-card-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .9rem; align-items: center; }
.chip-form { display: inline-flex; margin: 0; }
.chip-form button { border: 0; cursor: pointer; }
.access-decision { display: grid; gap: .25rem; margin-top: 1rem; padding: .9rem; border-radius: 12px; }
.decision-allowed { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.decision-denied { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); }
.badge-danger { background: rgba(239,68,68,.16); color: #fecaca; }


/* Block 7: invitations, onboarding and tenant administration */
.card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.selection-card { display:grid; gap:8px; padding:20px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.selection-card:hover { border-color:#9db9ed; transform:translateY(-1px); }
.option-fieldset { border:1px solid var(--line); border-radius:12px; padding:18px; }
.option-fieldset legend { padding:0 8px; font-weight:800; }
.check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.nested-options { margin-top:12px; padding-left:24px; }
.onboarding-shell { max-width:820px; margin:30px auto; }
.onboarding-card { padding:34px; border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:var(--shadow); }
.onboarding-card h1 { margin:8px 0 12px; }
.onboarding-card blockquote { margin:20px 0; padding:16px 20px; border-left:4px solid var(--accent); background:var(--surface-soft); }
.onboarding-summary { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:22px 0; }
.onboarding-summary>div { display:grid; gap:6px; padding:14px; border-radius:12px; background:var(--surface-soft); }
.onboarding-summary span { color:var(--muted); }
.success-card { text-align:center; }
@media (max-width:760px){ .card-grid,.check-grid,.onboarding-summary{grid-template-columns:1fr;} }


/* Block 8: Provisioning */
.error-cell { max-width: 32rem; white-space: normal; overflow-wrap: anywhere; color: var(--muted); font-size: .84rem; }
.table-note { display: block; margin-top: .2rem; color: var(--muted); font-weight: 400; }
.status-failed, .status-deadletter { background: #fee2e2; color: #991b1b; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-completed { background: #dcfce7; color: #166534; }


/* Block 9 – authentication and organization context */
.auth-card { max-width: 760px; padding: 2rem; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.auth-card h1 { margin: .45rem 0 .75rem; }
.auth-card p { color: var(--muted); line-height: 1.65; }
.organization-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.organization-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; min-height: 220px; padding: 1.35rem; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.organization-card.is-selected { outline: 2px solid var(--primary); outline-offset: 2px; }
.organization-card h2 { margin: .65rem 0 .25rem; }
.organization-card p, .organization-card small { color: var(--muted); }
.tenant-badge { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .45rem .7rem; border-radius: 999px; background: var(--surface-muted); color: var(--text); text-decoration: none; font-size: .85rem; }
.button-compact { padding: .55rem .8rem; }
.topbar-actions form { margin: 0; }


/* Block 10 – Linfinity Hub */
.hub-hero { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr); gap:24px; align-items:stretch; margin-bottom:24px; padding:30px; border-radius:24px; background:linear-gradient(135deg,#101828,#1d2939); color:#fff; box-shadow:var(--shadow); }
.hub-hero h1 { margin:8px 0 10px; font-size:clamp(32px,5vw,54px); }
.hub-hero p { max-width:720px; margin:0; color:#d0d5dd; font-size:17px; line-height:1.65; }
.hub-organization { display:grid; align-content:center; gap:6px; padding:22px; border:1px solid rgba(255,255,255,.16); border-radius:18px; background:rgba(255,255,255,.08); }
.hub-organization span,.hub-organization small { color:#d0d5dd; }
.hub-organization strong { font-size:21px; }
.hub-organization a { margin-top:10px; color:#b9d0ff; font-weight:800; }
.metric-text { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:18px !important; }
.hub-product-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.hub-product-card { position:relative; display:flex; flex-direction:column; min-height:390px; padding:22px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }
.hub-product-card::before { content:""; position:absolute; inset:0 0 auto; height:4px; background:#98a2b3; }
.hub-state-available::before { background:#1570ef; }
.hub-state-assignment::before { background:#f79009; }
.hub-state-blocked::before { background:#d92d20; }
.hub-product-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.hub-product-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:15px; background:#eff4ff; color:#1849a9; font-weight:900; letter-spacing:.04em; }
.hub-state-available .badge { color:#067647; background:#ecfdf3; }
.hub-state-assignment .badge { color:#b54708; background:#fffaeb; }
.hub-state-blocked .badge,.hub-state-unavailable .badge { color:#b42318; background:#fef3f2; }
.hub-product-copy { margin-top:20px; }
.hub-product-code { color:var(--muted); font-size:11px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.hub-product-copy h2 { margin:6px 0 9px; font-size:24px; }
.hub-product-copy p { min-height:72px; margin:0; color:var(--muted); line-height:1.55; }
.hub-chip-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.hub-chip { padding:6px 9px; border-radius:999px; background:var(--surface-soft); color:#344054; font-size:11px; font-weight:800; }
.hub-details { margin-top:15px; padding-top:14px; border-top:1px solid var(--line); }
.hub-details summary { color:var(--accent); font-weight:800; cursor:pointer; }
.hub-details ul { display:grid; gap:7px; margin:12px 0 0; padding-left:20px; color:var(--muted); }
.hub-details li small { display:block; }
.hub-product-footer { display:grid; gap:8px; margin-top:auto; padding-top:20px; }
.hub-product-footer small { min-height:34px; color:var(--muted); line-height:1.4; }
.hub-product-footer .button[disabled] { cursor:not-allowed; opacity:.62; }
.hub-empty { padding:52px 20px; border:1px dashed var(--line); border-radius:18px; background:var(--surface); }
@media (max-width:1100px){ .hub-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:760px){ .hub-hero{grid-template-columns:1fr;padding:24px;} .hub-product-grid{grid-template-columns:1fr;} }


/* Production portal landing + reliable account actions */
.public-app-shell {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 12%, rgba(37, 99, 235, .10), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(59, 130, 246, .07), transparent 24%),
        #f6f8fb;
}

.public-main-column { min-height: 100vh; }

.public-topbar {
    min-height: 82px;
    padding-inline: clamp(22px, 5vw, 72px);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.public-brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}

.public-brand strong,
.public-brand small { display: block; }
.public-brand strong { color: #101828; font-size: 17px; }
.public-brand small { margin-top: 1px; color: var(--muted); font-size: 11px; }

.public-content {
    max-width: 1380px;
    display: flex;
    align-items: center;
    padding: clamp(46px, 7vw, 96px) clamp(22px, 5vw, 72px);
}

.portal-landing {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(370px, .88fr);
    gap: clamp(38px, 7vw, 100px);
    align-items: center;
}

.portal-landing-copy { max-width: 760px; }

.portal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.portal-landing h1 {
    max-width: 760px;
    margin: 22px 0 0;
    color: #0f172a;
    font-size: clamp(46px, 6vw, 78px);
    line-height: .99;
    letter-spacing: -.055em;
}

.portal-lead {
    max-width: 690px;
    margin: 26px 0 0;
    color: #5d6b82;
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.72;
}

.portal-actions { margin-top: 32px; }
.portal-login-button { min-height: 50px; padding-inline: 24px; font-size: 14px; }

.portal-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 48px;
}

.portal-benefits > div {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 10px;
    align-items: start;
}

.portal-check {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
}

.portal-benefits strong,
.portal-benefits small { display: block; }
.portal-benefits strong { color: #25324a; font-size: 13px; }
.portal-benefits small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }

.portal-product-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 3vw, 38px);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 28px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .11);
}

.portal-product-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    top: -105px;
    right: -80px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .08);
}

.portal-product-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.portal-product-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #111827;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.portal-product-head small,
.portal-product-head strong { display: block; }
.portal-product-head small { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.portal-product-head strong { margin-top: 4px; color: #172033; font-size: 17px; }

.portal-product-list { display: grid; gap: 10px; margin-top: 22px; }
.portal-product-list > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    column-gap: 13px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    background: #fbfcfe;
}
.portal-product-list > div > span {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #eef4ff;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 900;
}
.portal-product-list strong { font-size: 14px; }
.portal-product-list small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.portal-product-card > p { margin: 20px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.logout-button { white-space: nowrap; }
.public-footer { margin-inline: clamp(22px, 5vw, 72px); }

@media (max-width: 980px) {
    .portal-landing { grid-template-columns: 1fr; }
    .portal-product-card { max-width: 720px; }
}

@media (max-width: 720px) {
    .public-topbar { padding-inline: 18px; }
    .public-content { padding: 44px 18px 60px; }
    .portal-landing h1 { font-size: clamp(42px, 12vw, 58px); }
    .portal-benefits { grid-template-columns: 1fr; margin-top: 38px; }
    .public-footer { margin-inline: 18px; }
}
