    .profile-shell {
        max-width: 1170px;
        margin: 0 auto 28px;
    }

    .profile-hero-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .profile-hero-row > .profile-card {
        margin-bottom: 0;
    }

    .pilot-idcard {
        display: flex;
        background: #fff;
        border: 1px solid var(--ibo-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        position: relative;
    }

    .pilot-idcard-stamp {
        flex-shrink: 0;
        border: 3px solid currentColor;
        border-radius: 7px;
        padding: 5px 12px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: .12em;
        text-transform: uppercase;
        transform: rotate(-10deg);
        opacity: .82;
        pointer-events: none;
    }

    .pilot-idcard-stamp--crew {
        color: var(--ibo-blue-dark);
    }

    .pilot-idcard-stamp--staff {
        color: var(--ibo-red);
    }

    .pilot-idcard-stripe {
        width: 12px;
        flex-shrink: 0;
        background: linear-gradient(180deg, var(--ibo-red) 0%, var(--ibo-red-dark) 100%);
    }

    .pilot-idcard-main {
        flex: 1;
        padding: 16px;
        position: relative;
        z-index: 0;
    }

    .pilot-idcard-watermark {
        position: absolute;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
    }

    .pilot-idcard-watermark-inner {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 900px;
        height: 900px;
        transform: translate(-50%, -50%) rotate(-18deg);
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 34px 46px;
    }

    .pilot-idcard-watermark span {
        font-family: var(--font-nav);
        font-size: 15px;
        letter-spacing: .04em;
        color: var(--ibo-ink);
        opacity: .04;
        white-space: nowrap;
    }

    .pilot-idcard-top {
        display: flex;
        gap: 14px;
        margin-bottom: 10px;
    }

    .pilot-idcard-photo,
    .pilot-idcard-photo-fallback {
        width: 112px;
        height: 112px;
        border-radius: var(--radius-md);
        border: 2px solid var(--ibo-gold);
        object-fit: cover;
        flex-shrink: 0;
    }

    .pilot-idcard-photo-fallback {
        background: var(--ibo-surface-alt);
        color: var(--ibo-text-muted);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 52px;
    }

    .pilot-idcard-identity {
        flex: 1;
        min-width: 0;
    }

    .pilot-idcard-field-label {
        display: block;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--ibo-text-faint);
        margin: 0 0 1px;
    }

    .pilot-idcard-name {
        margin: 0 0 6px;
        font-size: 18px;
        font-weight: 800;
        color: var(--ibo-text);
    }

    .pilot-idcard-fields {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 14px;
    }

    .pilot-idcard-rank {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        font-weight: 600;
        color: var(--ibo-text);
    }

    .pilot-idcard-rank img {
        height: 26px;
        width: auto;
        border-radius: 4px;
    }

    .pilot-idcard-callsign {
        display: block;
        font-family: var(--font-mono);
        font-weight: 800;
        font-size: 15px;
        letter-spacing: .05em;
        color: var(--ibo-red-dark);
    }

    .pilot-idcard-empno {
        display: block;
        margin-top: 2px;
        font-family: var(--font-mono);
        font-size: 9.5px;
        color: var(--ibo-text-faint);
        letter-spacing: .03em;
    }

    .pilot-idcard-table {
        margin-top: 10px;
        display: flex;
        flex-direction: column;
    }

    .pilot-idcard-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 8px;
        padding: 5px 0;
        border-bottom: 1px dashed #e5edf6;
        font-size: 12px;
    }

    .pilot-idcard-row:last-child {
        border-bottom: none;
    }

    .pilot-idcard-row span:first-child {
        color: var(--ibo-text-muted);
    }

    .pilot-idcard-row span:last-child {
        font-weight: 700;
        color: var(--ibo-text);
    }

    .pilot-idcard-row img {
        vertical-align: -2px;
        margin-right: 3px;
    }

    .pilot-idcard-signature {
        margin-top: 0;
        padding-top: 8px;
        border-top: 1px dashed #e5edf6;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
    }

    .pilot-idcard-signature-script {
        display: block;
        font-family: 'Dancing Script', cursive;
        font-size: 26px;
        font-weight: 700;
        color: var(--ibo-text);
        line-height: 1;
    }

    .pilot-idcard-signature-caption {
        display: block;
        margin-top: 2px;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--ibo-text-faint);
    }

    .pilot-idcard-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-top: 10px;
        font-size: 10.5px;
        color: var(--ibo-text-faint);
    }

    .pilot-idcard-barcode {
        flex-shrink: 0;
        font-family: 'Libre Barcode 39', cursive;
        font-size: 32px;
        line-height: 1;
        color: inherit;
        white-space: nowrap;
    }

    .profile-details-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .profile-details-row > .profile-card {
        margin-bottom: 0;
    }

    .profile-details-row > .profile-card:only-child {
        grid-column: 1 / -1;
    }

    .profile-details-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .profile-details-pill {
        background: var(--ibo-surface-alt);
        border: 1px solid var(--ibo-border-soft);
        border-radius: 8px;
        padding: 6px 10px;
        min-width: 130px;
    }

    .profile-details-pill-label {
        display: block;
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: .06em;
        color: var(--ibo-text-faint);
        margin: 0 0 1px;
    }

    .profile-details-pill-value {
        font-size: 13px;
        font-weight: 800;
        color: var(--ibo-text);
    }

    .profile-social {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        color: var(--ibo-text);
    }

    .profile-social a {
        width: 30px;
        height: 30px;
        border-radius: 999px;
        border: 1px solid var(--ibo-border-soft);
        background: var(--ibo-surface-alt);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
    }

    .profile-social span {
        font-size: 13px;
        font-weight: 600;
    }

    .profile-network {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }

    .profile-network img {
        height: 34px;
        width: auto;
        border: 1px solid var(--ibo-border-soft);
        border-radius: var(--radius-sm);
        background: #fff;
    }

    .profile-background {
        margin-top: 10px;
        padding: 8px 12px;
        background: var(--ibo-surface-alt);
        border-left: 3px solid var(--ibo-gold);
        border-radius: 0 8px 8px 0;
        color: var(--ibo-text);
        font-style: italic;
        font-size: 13px;
    }

    .profile-extra {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px 14px;
        align-items: center;
    }


    .profile-card {
        background: #fff;
        border: 1px solid var(--ibo-border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-card);
        overflow: hidden;
        margin-bottom: 16px;
    }

    .profile-card .panel-heading {
        background: #fff;
        border-bottom: 1px solid var(--ibo-border-soft);
        padding: 12px 16px;
    }

    .profile-card .panel-title {
        margin: 0;
        font-size: 19px;
        color: var(--ibo-text);
    }

    .profile-heading-meta {
        display: inline-block;
        margin-left: 8px;
        font-size: 11px;
        font-weight: 600;
        color: var(--ibo-text-muted);
    }

    .profile-heading-link {
        float: right;
        font-size: 12px;
        font-weight: 700;
        border: 1px solid var(--ibo-dark-border-strong);
        border-radius: var(--radius-sm);
        padding: 4px 9px;
        color: #d5e6f7;
        background: var(--ibo-dark-border);
        text-decoration: none;
    }

    .profile-heading-link:hover,
    .profile-heading-link:focus {
        color: #fff;
        background: #2a4765;
        text-decoration: none;
    }

    .profile-card .panel-body {
        padding: 12px 16px;
    }

    .awards-card .panel-body {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .awards-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .award-item {
        width: 72px;
        height: 72px;
        border: 1px solid var(--ibo-border-soft);
        border-radius: var(--radius-md);
        background: #fff;
        padding: 2px;
    }

    .stats-tabs {
        display: flex;
        gap: 4px;
        border-bottom: 1px solid var(--ibo-border-soft);
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .stats-tab {
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
        font-size: 12.5px;
        font-weight: 700;
        color: var(--ibo-text-muted);
        cursor: pointer;
    }

    .stats-tab.active {
        color: var(--ibo-blue-dark);
        border-bottom-color: var(--ibo-blue);
    }

    .stats-tabpanel {
        display: none;
    }

    .stats-tabpanel.active {
        display: block;
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 4px 0;
        border-bottom: 1px dashed #e5edf6;
    }

    .stats-row:last-child {
        border-bottom: none;
    }

    .stats-row strong {
        color: var(--ibo-text-muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .02em;
    }

    .stats-row span {
        color: var(--ibo-text);
        font-size: 13px;
        font-weight: 600;
        text-align: right;
    }

    .profile-top3-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .profile-top3-block {
        background: var(--ibo-surface-alt);
        border: 1px solid var(--ibo-border-soft);
        border-radius: var(--radius-md);
        padding: 10px;
    }

    .profile-top3-block h4 {
        margin: 0 0 8px;
        color: var(--ibo-text);
        font-size: 16px;
    }

    .profile-top3-list {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 6px;
    }

    .profile-top3-list li {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 8px;
        border: 1px solid #e4ebf5;
        border-radius: var(--radius-sm);
        padding: 7px 9px;
        background: #fff;
        color: #385069;
        font-size: 13px;
        font-weight: 600;
    }

    .profile-top3-list strong {
        color: var(--ibo-text);
        font-size: 12px;
        border: 1px solid var(--ibo-border-soft);
        border-radius: 999px;
        padding: 1px 7px;
        min-width: 36px;
        text-align: center;
        background: #f2f7ff;
    }

    .profile-top3-empty {
        margin: 0;
        font-size: 13px;
        color: var(--ibo-text-muted);
    }

    .logbook-hint {
        font-size: 11px;
        font-weight: 400;
        color: var(--ibo-text-faint);
        margin-left: 6px;
        text-transform: none;
        letter-spacing: normal;
    }

    .logbook-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .logbook-card {
        background: var(--ibo-surface-alt);
        border: 1px solid var(--ibo-border-soft);
        border-radius: 9px;
        padding: 10px 12px;
    }

    .logbook-card.is-hidden {
        display: none;
    }

    .logbook-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 5px;
        font-size: 13px;
    }

    .logbook-flight a {
        color: var(--ibo-text);
        font-weight: 800;
        text-decoration: none;
    }

    .logbook-landing {
        font-size: 11px;
        font-weight: 700;
        color: var(--ibo-text);
    }

    .logbook-route {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 12px;
        margin-bottom: 5px;
    }

    .logbook-route a {
        color: var(--ibo-text);
        text-decoration: none;
    }

    .logbook-duration {
        font-size: 11px;
        font-weight: 700;
        color: var(--ibo-blue-dark);
        white-space: nowrap;
    }

    .logbook-aircraft {
        font-size: 11px;
        color: var(--ibo-text-muted);
        margin-bottom: 2px;
    }

    .logbook-meta {
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        color: var(--ibo-text-faint);
    }

    .logbook-empty {
        font-size: 13px;
        color: var(--ibo-text-muted);
    }

    .logbook-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 14px;
    }

    .logbook-page-btn {
        background: var(--ibo-surface-alt);
        border: 1px solid var(--ibo-border-soft);
        border-radius: 7px;
        padding: 5px 12px;
        font-size: 12px;
        font-weight: 700;
        color: var(--ibo-text);
        cursor: pointer;
    }

    .logbook-page-btn:disabled {
        opacity: .4;
        cursor: default;
    }

    .logbook-page-status {
        font-size: 12px;
        color: var(--ibo-text-muted);
    }

    @media (max-width: 991px) {
        .profile-hero-row {
            grid-template-columns: 1fr;
        }

        .profile-details-row {
            grid-template-columns: 1fr;
        }

        .profile-top3-grid {
            grid-template-columns: 1fr;
        }

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

    @media (max-width: 620px) {
        .logbook-grid {
            grid-template-columns: 1fr;
        }
    }

    html[data-theme="dark"] .profile-card,
    html[data-theme="dark"] .pilot-idcard {
        background: var(--ibo-dark-surface);
        border-color: var(--ibo-dark-border);
        box-shadow: var(--shadow-card-dark);
    }

    html[data-theme="dark"] .profile-card .panel-heading {
        background: var(--ibo-dark-surface);
        border-bottom-color: var(--ibo-dark-border);
    }

    html[data-theme="dark"] .profile-card .panel-title {
        color: var(--ibo-dark-heading) !important;
    }

    html[data-theme="dark"] .profile-meta p,
    html[data-theme="dark"] .profile-social,
    html[data-theme="dark"] .profile-heading-meta {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .profile-background {
        background: var(--ibo-dark-surface-raised);
        border-left-color: var(--ibo-dark-gold-accent);
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .stats-row span {
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .pilot-idcard-watermark span {
        color: #ffffff;
        opacity: .055;
    }

    html[data-theme="dark"] .pilot-idcard-field-label {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .pilot-idcard-name {
        color: var(--ibo-dark-heading);
    }

    html[data-theme="dark"] .pilot-idcard-rank {
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .pilot-idcard-callsign {
        color: var(--ibo-dark-alert-danger-text);
    }

    html[data-theme="dark"] .pilot-idcard-row {
        border-bottom-color: var(--ibo-dark-border);
    }

    html[data-theme="dark"] .pilot-idcard-row span:first-child {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .pilot-idcard-row span:last-child {
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .pilot-idcard-empno {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .pilot-idcard-stamp--crew {
        color: var(--ibo-dark-blue-accent);
    }

    html[data-theme="dark"] .pilot-idcard-signature {
        border-top-color: var(--ibo-dark-border);
    }

    html[data-theme="dark"] .pilot-idcard-signature-script {
        color: var(--ibo-dark-heading);
    }

    html[data-theme="dark"] .pilot-idcard-signature-caption {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .pilot-idcard-footer {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .pilot-idcard-photo-fallback {
        background: var(--ibo-dark-surface-raised);
        color: #a8bed5;
    }

    html[data-theme="dark"] .profile-social a {
        background: var(--ibo-dark-border);
        border-color: #35526f;
        color: #d2e1f0;
    }

    html[data-theme="dark"] .profile-network img {
        background: var(--ibo-dark-surface-raised);
        border-color: var(--ibo-dark-border-strong);
    }

    html[data-theme="dark"] .profile-top3-block {
        background: var(--ibo-dark-surface-raised);
        border-color: var(--ibo-dark-border-strong);
    }

    html[data-theme="dark"] .profile-top3-block h4 {
        color: var(--ibo-dark-heading);
    }

    html[data-theme="dark"] .profile-top3-list li {
        background: var(--ibo-dark-surface);
        border-color: var(--ibo-dark-border-strong);
        color: #d6e4f2;
    }

    html[data-theme="dark"] .profile-top3-list strong {
        color: var(--ibo-dark-text-strong);
        border-color: var(--ibo-dark-border-strong);
        background: var(--ibo-dark-surface-raised);
    }

    html[data-theme="dark"] .profile-top3-empty {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .profile-details-pill {
        background: #1d3146;
        border-color: var(--ibo-dark-border-strong);
    }

    html[data-theme="dark"] .profile-details-pill-label {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .profile-details-pill-value {
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .award-item {
        background: var(--ibo-dark-surface-raised);
        border-color: var(--ibo-dark-border-strong);
    }

    html[data-theme="dark"] .stats-row {
        border-bottom-color: var(--ibo-dark-border);
    }

    html[data-theme="dark"] .stats-row strong {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .stats-tabs {
        border-bottom-color: var(--ibo-dark-border);
    }

    html[data-theme="dark"] .stats-tab {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .stats-tab.active {
        color: var(--ibo-dark-blue-accent);
        border-bottom-color: var(--ibo-dark-blue-accent);
    }

    html[data-theme="dark"] .logbook-hint {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .logbook-card {
        background: var(--ibo-dark-surface-raised);
        border-color: var(--ibo-dark-border-strong);
    }

    html[data-theme="dark"] .logbook-flight a,
    html[data-theme="dark"] .logbook-landing,
    html[data-theme="dark"] .logbook-route a {
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .logbook-duration {
        color: var(--ibo-dark-blue-accent);
    }

    html[data-theme="dark"] .logbook-aircraft {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .logbook-meta,
    html[data-theme="dark"] .logbook-empty,
    html[data-theme="dark"] .logbook-page-status {
        color: var(--ibo-dark-muted);
    }

    html[data-theme="dark"] .logbook-page-btn {
        background: var(--ibo-dark-surface-raised);
        border-color: var(--ibo-dark-border-strong);
        color: var(--ibo-dark-text-strong);
    }

    html[data-theme="dark"] .profile-card a {
        color: var(--ibo-dark-gold-accent);
    }

    html[data-theme="dark"] .profile-card a:hover,
    html[data-theme="dark"] .profile-card a:focus {
        color: var(--ibo-dark-gold-accent);
    }
