        :root {
            color-scheme: light;
            --portal-ink: #1d1d1f;
            --portal-primary: #0071e3;
            --portal-primary-deep: #0059b3;
            --portal-accent: #0891b2;
            --portal-accent-soft: #e7f8fc;
            --portal-canvas: #f5f5f7;
            --portal-card: rgba(255, 255, 255, 0.82);
            --portal-card-strong: #ffffff;
            --portal-border: rgba(0, 0, 0, 0.08);
            --portal-muted: #6e6e73;
            --portal-subtle: #86868b;
            --portal-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
            --portal-shadow-soft: 0 10px 32px rgba(0, 0, 0, 0.045);
            --portal-radius: 28px;
            --portal-font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Microsoft YaHei UI", "PingFang SC", sans-serif;
            --portal-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Microsoft YaHei UI", "PingFang SC", sans-serif;
        }

        html {
            min-height: 100%;
            background-color: #edf3f7;
        }

        body {
            min-height: 100vh;
            margin: 0;
            color: var(--portal-ink);
            background-color: var(--portal-canvas);
            background:
                linear-gradient(90deg, rgba(15, 32, 53, 0.025) 1px, transparent 1px),
                linear-gradient(180deg, rgba(15, 32, 53, 0.025) 1px, transparent 1px),
                radial-gradient(circle at top left, rgba(21, 87, 214, 0.20), transparent 30%),
                radial-gradient(circle at 85% 10%, rgba(26, 155, 120, 0.18), transparent 24%),
                linear-gradient(180deg, #f8fbfd 0%, var(--portal-canvas) 100%);
            background-size: 32px 32px, 32px 32px, auto, auto, auto;
            font-family: var(--portal-font-body);
            line-height: 1.6;
        }

        @view-transition {
            navigation: auto;
        }

        ::view-transition-old(root),
        ::view-transition-new(root) {
            animation-duration: 0.18s;
            animation-timing-function: ease;
        }

        ::view-transition-old(root) {
            animation-name: portalPageFadeOut;
        }

        ::view-transition-new(root) {
            animation-name: portalPageFadeIn;
        }

        ::view-transition-group(portal-header),
        ::view-transition-group(portal-hero),
        ::view-transition-group(portal-first-fold) {
            animation-duration: 0.22s;
            animation-timing-function: ease;
        }

        ::view-transition-old(portal-header),
        ::view-transition-new(portal-header),
        ::view-transition-old(portal-hero),
        ::view-transition-new(portal-hero),
        ::view-transition-old(portal-first-fold),
        ::view-transition-new(portal-first-fold) {
            animation-duration: 0.22s;
            animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        }

        ::view-transition-old(portal-header),
        ::view-transition-old(portal-hero),
        ::view-transition-old(portal-first-fold) {
            animation-name: portalSharedFadeOut;
        }

        ::view-transition-new(portal-header) {
            animation-name: portalSharedFadeIn;
        }

        ::view-transition-new(portal-hero) {
            animation-name: portalSharedHeroIn;
        }

        ::view-transition-new(portal-first-fold) {
            animation-name: portalSharedMetricsIn;
        }

        .portal-shell {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .portal-header {
            position: sticky;
            top: 0;
            z-index: 20;
            backdrop-filter: blur(16px);
            background: rgba(248, 251, 253, 0.82);
            border-bottom: 1px solid rgba(15, 32, 53, 0.08);
            view-transition-name: portal-header;
        }

        .portal-header-inner {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0.95rem 1.35rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .portal-header-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex: 1 1 auto;
            gap: 0.8rem;
            min-width: 0;
        }

        .portal-brand {
            display: flex;
            align-items: center;
            gap: 0.95rem;
            text-decoration: none;
            color: inherit;
            min-width: 0;
            transition: transform 0.24s ease;
        }

        .portal-brand:hover {
            transform: translateY(-1px);
        }

        .portal-brand-copy {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .portal-brand-logo-shell {
            width: 56px;
            height: 56px;
            padding: 0.2rem;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 243, 247, 0.96) 100%);
            border: 1px solid rgba(15, 32, 53, 0.08);
            box-shadow: 0 16px 32px rgba(15, 32, 53, 0.12);
            flex: 0 0 auto;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .portal-brand:hover .portal-brand-logo-shell {
            transform: rotate(-4deg) scale(1.03);
            box-shadow: 0 20px 38px rgba(15, 32, 53, 0.16);
        }

        .portal-vector-logo {
            width: 100%;
            height: 100%;
            display: block;
        }

        .portal-brand-copy strong {
            font-size: 1.08rem;
            letter-spacing: 0.01em;
            font-weight: 700;
            font-family: var(--portal-font-display);
        }

        .portal-brand-copy span {
            color: var(--portal-muted);
            font-size: 0.84rem;
        }

        .portal-nav {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.45rem;
        }

        .portal-nav-surface {
            display: inline-flex;
            align-items: center;
            padding: 0.34rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(15, 32, 53, 0.08);
            box-shadow: 0 10px 20px rgba(15, 32, 53, 0.07);
            backdrop-filter: blur(18px);
        }

        .portal-header-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.5rem 0.82rem;
            border-radius: 999px;
            background: rgba(21, 87, 214, 0.08);
            color: var(--portal-primary-deep);
            font-size: 0.84rem;
            font-weight: 700;
            white-space: nowrap;
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.08);
        }

        .portal-header-badge-dot {
            width: 0.58rem;
            height: 0.58rem;
            border-radius: 50%;
            flex: 0 0 auto;
            background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
            box-shadow: 0 0 0 4px rgba(21, 87, 214, 0.10);
        }

        .portal-nav a {
            position: relative;
            color: var(--portal-muted);
            text-decoration: none;
            padding: 0.55rem 0.92rem;
            border-radius: 999px;
            transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            font-weight: 600;
        }

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

        .portal-nav button {
            appearance: none;
            border: 0;
            border-radius: 999px;
            background: transparent;
            color: var(--portal-muted);
            cursor: pointer;
            font: inherit;
            font-weight: 600;
            padding: 0.55rem 0.92rem;
            transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
            white-space: nowrap;
        }

        .portal-nav button:hover,
        .portal-nav button:focus-visible {
            color: var(--portal-primary);
            background: rgba(21, 87, 214, 0.08);
            outline: none;
            transform: translateY(-1px);
        }

        .portal-nav a::after {
            content: "";
            position: absolute;
            left: 18px;
            right: 18px;
            bottom: 8px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
            transform: scaleX(0);
            transform-origin: center;
            transition: transform 0.22s ease;
            opacity: 0.72;
        }

        .portal-nav a:hover {
            color: var(--portal-primary);
            background: rgba(21, 87, 214, 0.08);
            transform: translateY(-1px);
        }

        .portal-announcement-board {
            position: relative;
            overflow: hidden;
        }

        .portal-announcement-board::before {
            content: "";
            position: absolute;
            inset: 0 auto auto 0;
            width: 220px;
            height: 220px;
            background: radial-gradient(circle, rgba(21, 87, 214, 0.14) 0%, rgba(21, 87, 214, 0) 72%);
            pointer-events: none;
        }

        .portal-announcement-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
        }

        .portal-announcement-card {
            position: relative;
            border: 1px solid rgba(15, 32, 53, 0.08);
            border-radius: 20px;
            padding: 1.2rem;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 253, 0.92) 100%);
            box-shadow: var(--portal-shadow-soft);
        }

        .portal-announcement-card.is-pinned {
            border-color: rgba(21, 87, 214, 0.22);
            box-shadow: 0 16px 32px rgba(21, 87, 214, 0.10);
        }

        .portal-announcement-card.is-pinned::after {
            content: "";
            position: absolute;
            top: 0;
            right: 1.1rem;
            width: 60px;
            height: 4px;
            border-radius: 0 0 999px 999px;
            background: linear-gradient(90deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
        }

        .portal-pill-accent {
            color: #0a6b53;
            background: rgba(26, 155, 120, 0.14);
        }

        .portal-announcement-meta {
            min-width: 140px;
            text-align: right;
            color: var(--portal-muted);
            font-size: 0.88rem;
        }

        .portal-announcement-content {
            color: var(--portal-ink);
            white-space: pre-line;
        }

        .portal-announcement-foot {
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px dashed rgba(15, 32, 53, 0.12);
            color: var(--portal-muted);
            font-size: 0.9rem;
        }

        .portal-nav a:focus-visible {
            color: var(--portal-primary-deep);
            background: rgba(21, 87, 214, 0.12);
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.18);
            outline: none;
        }

        .portal-nav a:hover::after,
        .portal-nav a:focus-visible::after,
        .portal-nav a.active::after {
            transform: scaleX(1);
        }

        .portal-nav a.active {
            color: #fff;
            background: linear-gradient(135deg, var(--portal-primary) 0%, #0f7cf0 100%);
            box-shadow: 0 10px 22px rgba(21, 87, 214, 0.22);
        }

        .portal-nav a.active::after {
            background: rgba(255, 255, 255, 0.82);
        }

        .portal-main {
            flex: 1;
            width: 100%;
            max-width: 1240px;
            margin: 0 auto;
            padding: 2rem 1.35rem 3rem;
        }

        .portal-card {
            border: 1px solid var(--portal-border);
            border-radius: var(--portal-radius);
            background: var(--portal-card);
            box-shadow: var(--portal-shadow);
        }

        .portal-hero {
            position: relative;
            overflow: hidden;
            border-radius: 32px;
            padding: 2.2rem;
            background:
                radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
                linear-gradient(135deg, rgba(21, 87, 214, 0.98) 0%, rgba(14, 68, 172, 0.95) 52%, rgba(26, 155, 120, 0.92) 100%);
            color: #fff;
            box-shadow: 0 22px 52px rgba(21, 87, 214, 0.18);
            view-transition-name: portal-hero;
            contain: paint;
        }

        .portal-hero::before,
        .portal-hero::after {
            content: "";
            position: absolute;
            pointer-events: none;
            border-radius: 999px;
            opacity: 0.75;
        }

        .portal-hero::before {
            width: 320px;
            height: 320px;
            right: -72px;
            top: -120px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 72%);
            animation: portalHaloDrift 14s ease-in-out infinite;
        }

        .portal-hero::after {
            width: 220px;
            height: 220px;
            left: -40px;
            bottom: -90px;
            background: radial-gradient(circle, rgba(174, 255, 231, 0.18) 0%, rgba(174, 255, 231, 0) 72%);
            animation: portalHaloDrift 12s ease-in-out infinite reverse;
        }

        .hero-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.38rem 0.9rem;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.16);
            font-size: 0.85rem;
            letter-spacing: 0.03em;
            backdrop-filter: blur(8px);
        }

        .hero-actions,
        .card-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .hero-actions {
            margin-top: 1.25rem;
        }

        .portal-btn-primary,
        .portal-btn-light,
        .portal-btn-outline {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
            border-radius: 999px;
            text-decoration: none;
            padding: 0.82rem 1.22rem;
            font-weight: 600;
            border: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
        }

        .portal-btn-primary {
            color: #fff;
            background: linear-gradient(135deg, var(--portal-primary) 0%, #0f7cf0 100%);
            box-shadow: 0 10px 22px rgba(21, 87, 214, 0.20);
        }

        .portal-btn-light {
            color: var(--portal-ink);
            background: #fff;
            box-shadow: 0 10px 22px rgba(255, 255, 255, 0.16);
        }

        .portal-btn-outline {
            color: var(--portal-primary);
            background: rgba(21, 87, 214, 0.08);
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.10);
        }

        .portal-btn-primary:hover,
        .portal-btn-light:hover,
        .portal-btn-outline:hover {
            transform: translateY(-1px);
            text-decoration: none;
        }

        .portal-btn-primary:hover,
        .portal-btn-primary:focus-visible {
            color: #fff;
            background: linear-gradient(135deg, #124bb9 0%, #0c6be0 100%);
            box-shadow: 0 14px 26px rgba(21, 87, 214, 0.22);
        }

        .portal-btn-light:hover,
        .portal-btn-light:focus-visible {
            color: var(--portal-primary-deep);
            background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
            box-shadow: 0 14px 26px rgba(255, 255, 255, 0.20);
        }

        .portal-btn-outline:hover,
        .portal-btn-outline:focus-visible {
            color: var(--portal-primary-deep);
            background: rgba(21, 87, 214, 0.14);
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.18), 0 10px 20px rgba(21, 87, 214, 0.08);
        }

        .portal-hero .portal-btn-outline {
            color: #fff;
            background: rgba(255, 255, 255, 0.10);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
        }

        .portal-hero .portal-btn-outline:hover,
        .portal-hero .portal-btn-outline:focus-visible {
            color: var(--portal-primary-deep);
            background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
            box-shadow: 0 16px 30px rgba(10, 54, 133, 0.24);
        }

        .portal-section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1.1rem;
        }

        .portal-section-title h2,
        .portal-section-title h3 {
            margin: 0;
            font-weight: 700;
            font-family: var(--portal-font-display);
            letter-spacing: 0.01em;
        }

        .portal-section-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.34rem 0.72rem;
            border-radius: 999px;
            background: rgba(21, 87, 214, 0.08);
            color: var(--portal-primary);
            font-size: 0.8rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        button.portal-section-badge {
            appearance: none;
            -webkit-appearance: none;
            border: 0;
            outline: 0;
            margin: 0;
            font-family: inherit;
            cursor: pointer;
        }

        .portal-muted {
            color: var(--portal-muted);
        }

        .portal-stat-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 1rem;
        }

        .portal-stat-card {
            border: 1px solid var(--portal-border);
            border-radius: 20px;
            padding: 1.15rem 1.2rem;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 253, 0.96) 100%);
            box-shadow: var(--portal-shadow-soft);
        }

        .portal-stat-label {
            color: var(--portal-muted);
            font-size: 0.9rem;
            letter-spacing: 0.01em;
        }

        .portal-stat-value {
            font-size: 1.9rem;
            font-weight: 700;
            margin-top: 0.35rem;
            font-family: var(--portal-font-display);
        }

        .portal-progress {
            height: 10px;
            background: rgba(19, 34, 56, 0.08);
            border-radius: 999px;
            overflow: hidden;
        }

        .portal-progress > span {
            display: block;
            height: 100%;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--portal-accent) 0%, #53c3a2 100%);
        }

        .portal-table-wrap {
            border-radius: 20px;
            overflow: hidden;
            border: 1px solid rgba(15, 32, 53, 0.06);
            background: var(--portal-card-strong);
        }

        .portal-table-wrap .table {
            margin-bottom: 0;
        }

        .portal-table-wrap .table thead th {
            border-bottom: 1px solid rgba(15, 32, 53, 0.08);
            color: var(--portal-muted);
            font-size: 0.84rem;
            font-weight: 700;
            white-space: nowrap;
            background: rgba(248, 251, 253, 0.95);
        }

        .portal-table-wrap .table td {
            border-color: rgba(15, 32, 53, 0.06);
            vertical-align: middle;
        }

        .portal-table-wrap .table tbody tr:hover {
            background: rgba(21, 87, 214, 0.025);
        }

        .portal-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.36rem 0.78rem;
            border-radius: 999px;
            background: rgba(21, 87, 214, 0.08);
            color: var(--portal-primary);
            font-size: 0.84rem;
            font-weight: 600;
        }

        .portal-soft {
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(15, 32, 53, 0.08);
            box-shadow: var(--portal-shadow-soft);
        }

        .portal-list {
            display: grid;
            gap: 0.9rem;
        }

        .portal-list-item {
            border: 1px solid rgba(15, 32, 53, 0.08);
            border-radius: 20px;
            padding: 1rem 1.05rem;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: var(--portal-shadow-soft);
            transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .portal-list-item:hover {
            transform: translateY(-2px);
            border-color: rgba(21, 87, 214, 0.18);
            box-shadow: 0 14px 28px rgba(15, 32, 53, 0.07);
        }

        .portal-subtitle {
            color: var(--portal-muted);
            font-size: 0.95rem;
        }

        .portal-mark {
            width: 54px;
            height: 54px;
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
            color: #fff;
            font-size: 0.92rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            box-shadow: 0 14px 28px rgba(21, 87, 214, 0.22);
            flex: 0 0 auto;
        }

        .portal-app-logo-shell {
            width: 54px;
            height: 54px;
            padding: 0.18rem;
            border-radius: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(237, 243, 247, 0.96) 100%);
            border: 1px solid rgba(15, 32, 53, 0.08);
            box-shadow: 0 14px 28px rgba(15, 32, 53, 0.12);
            flex: 0 0 auto;
        }

        .portal-app-logo-shell-sm {
            width: 42px;
            height: 42px;
            padding: 0.14rem;
            border-radius: 14px;
        }

        .portal-mark-document {
            background: linear-gradient(135deg, #1e63da 0%, #4b93ff 100%);
        }

        .portal-mark-sheet {
            background: linear-gradient(135deg, #1a9b78 0%, #49c49f 100%);
        }

        .portal-mark-presentation {
            background: linear-gradient(135deg, #f08b21 0%, #ffb04f 100%);
        }

        .portal-mark-archive {
            background: linear-gradient(135deg, #6b58c8 0%, #9279f0 100%);
        }

        .portal-mark-image {
            background: linear-gradient(135deg, #ef476f 0%, #ff7e98 100%);
        }

        .portal-mark-package {
            background: linear-gradient(135deg, #1557d6 0%, #1a9b78 100%);
        }

        .portal-mark-config {
            background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
        }

        .portal-mark-drawing {
            background: linear-gradient(135deg, #845ec2 0%, #b39cff 100%);
        }

        .portal-mark-other {
            background: linear-gradient(135deg, #617286 0%, #8b9caf 100%);
        }

        .portal-feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
        }

        .portal-feature-card {
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(15, 32, 53, 0.10);
            border-radius: 18px;
            padding: 1rem 1.05rem 1.05rem;
            background: linear-gradient(180deg, rgba(252, 254, 255, 0.98) 0%, rgba(242, 247, 251, 0.98) 100%);
            box-shadow: var(--portal-shadow-soft);
        }

        .portal-feature-card::before {
            content: "";
            position: absolute;
            inset: 0 auto auto 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, rgba(14, 68, 172, 0.92) 0%, rgba(26, 155, 120, 0.52) 100%);
        }

        .portal-feature-card strong {
            display: block;
            margin-bottom: 0.35rem;
            font-size: 1rem;
            letter-spacing: 0.01em;
        }

        .portal-card-head {
            display: flex;
            align-items: center;
            gap: 0.85rem;
        }

        .portal-mark-sm {
            width: 42px;
            height: 42px;
            border-radius: 14px;
            font-size: 0.8rem;
            letter-spacing: 0.06em;
        }

        .portal-detail-grid {
            display: grid;
            gap: 0.8rem;
        }

        .portal-detail-row {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px dashed rgba(15, 32, 53, 0.10);
        }

        .portal-detail-row:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .portal-detail-key {
            color: var(--portal-muted);
            min-width: 96px;
            font-size: 0.92rem;
        }

        .portal-detail-value {
            text-align: right;
            color: var(--portal-ink);
            font-weight: 600;
        }

        .portal-empty-state {
            border: 1px dashed rgba(15, 32, 53, 0.16);
            border-radius: 20px;
            padding: 2rem 1.4rem;
            color: var(--portal-muted);
            text-align: center;
            background: rgba(255, 255, 255, 0.66);
        }

        .portal-input {
            width: 100%;
            border: 1px solid rgba(15, 32, 53, 0.12);
            border-radius: 18px;
            padding: 0.82rem 1rem;
            color: var(--portal-ink);
            background: rgba(255, 255, 255, 0.96);
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }

        .portal-input:focus {
            outline: none;
            border-color: rgba(21, 87, 214, 0.34);
            box-shadow: 0 0 0 4px rgba(21, 87, 214, 0.12);
            background: #fff;
        }

        .portal-inline-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.55rem;
        }

        .portal-inline-meta > span {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.38rem 0.72rem;
            border-radius: 999px;
            background: rgba(15, 32, 53, 0.05);
            color: var(--portal-muted);
            font-size: 0.88rem;
        }

        .portal-note {
            color: var(--portal-muted);
            font-size: 0.9rem;
        }

        .portal-empty-figure {
            position: relative;
            width: 68px;
            height: 68px;
            margin: 0 auto 1rem;
            border-radius: 22px;
            background: linear-gradient(135deg, rgba(21, 87, 214, 0.14) 0%, rgba(26, 155, 120, 0.16) 100%);
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.08);
        }

        .portal-empty-figure::before,
        .portal-empty-figure::after {
            content: "";
            position: absolute;
            border-radius: 999px;
            background: rgba(21, 87, 214, 0.18);
        }

        .portal-empty-figure::before {
            width: 28px;
            height: 28px;
            top: 12px;
            left: 12px;
        }

        .portal-empty-figure::after {
            width: 18px;
            height: 18px;
            right: 12px;
            bottom: 12px;
            background: rgba(26, 155, 120, 0.24);
        }

        .portal-empty-title {
            color: var(--portal-ink);
            font-size: 1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .portal-inline-meta.compact {
            gap: 0.4rem;
        }

        .portal-inline-meta.compact > span {
            padding: 0.28rem 0.58rem;
            font-size: 0.82rem;
        }

        .portal-tag-soft {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.36rem 0.78rem;
            border-radius: 999px;
            background: rgba(15, 32, 53, 0.06);
            color: var(--portal-ink);
            font-size: 0.84rem;
            font-weight: 600;
        }

        .portal-pagination .page-link {
            border: none;
            border-radius: 14px;
            color: var(--portal-primary);
            margin: 0 0.18rem;
            min-width: 42px;
            text-align: center;
            box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.10);
        }

        .portal-pagination .page-item.active .page-link {
            background: linear-gradient(135deg, var(--portal-primary) 0%, #0f7cf0 100%);
            box-shadow: 0 10px 22px rgba(21, 87, 214, 0.18);
        }

        .portal-pagination .page-item.disabled .page-link {
            color: var(--portal-subtle);
            background: rgba(15, 32, 53, 0.04);
            box-shadow: none;
        }

        .portal-table-compact .table thead th {
            padding: 0.8rem 0.7rem;
        }

        .portal-table-compact .table td {
            padding: 0.78rem 0.7rem;
            line-height: 1.42;
        }

        .portal-table-compact code {
            font-size: 0.86rem;
        }

        .portal-footer {
            color: var(--portal-muted);
            text-align: center;
            padding: 1.6rem 1rem 2rem;
            font-size: 0.92rem;
        }

        .portal-footer strong {
            color: var(--portal-ink);
            font-weight: 700;
        }

        @media (max-width: 768px) {
            .portal-header-inner {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.8rem;
                padding: 0.85rem 1rem 0.95rem;
            }

            .portal-brand-logo-shell {
                width: 50px;
                height: 50px;
                border-radius: 18px;
            }

            .portal-brand {
                gap: 0.75rem;
            }

            .portal-brand-copy strong {
                font-size: 1rem;
            }

            .portal-brand-copy span {
                font-size: 0.78rem;
            }

            .portal-nav {
                width: max-content;
            }

            .portal-main {
                padding: 1rem 0.95rem 2.4rem;
            }

            .portal-hero {
                padding: 1.2rem;
                border-radius: 24px;
                box-shadow: 0 18px 36px rgba(21, 87, 214, 0.16);
            }

            .portal-hero .display-5 {
                font-size: clamp(2.05rem, 10vw, 2.65rem);
                line-height: 1.08;
            }

            .portal-hero .fs-5 {
                font-size: 1rem !important;
                line-height: 1.62;
            }

            .hero-chip {
                padding: 0.32rem 0.72rem;
                font-size: 0.78rem;
            }

            .hero-actions {
                margin-top: 1rem;
                gap: 0.65rem;
            }

            .portal-card,
            .portal-soft,
            .portal-list-item,
            .portal-info-card,
            .portal-focus-card,
            .portal-step-card,
            .portal-kv-item {
                box-shadow: 0 6px 16px rgba(15, 32, 53, 0.05);
            }

            .portal-stat-grid {
                grid-template-columns: 1fr;
            }

            .portal-list-item {
                padding: 0.95rem;
            }

            .portal-detail-row {
                flex-direction: column;
            }

            .portal-detail-value {
                text-align: left;
            }

            .portal-mark {
                width: 48px;
                height: 48px;
                border-radius: 16px;
                font-size: 0.82rem;
            }

            .portal-app-logo-shell {
                width: 48px;
                height: 48px;
                border-radius: 16px;
            }

            .portal-mark-sm {
                width: 38px;
                height: 38px;
                border-radius: 12px;
            }

            .portal-app-logo-shell-sm {
                width: 38px;
                height: 38px;
                border-radius: 12px;
            }

            .portal-empty-figure {
                width: 58px;
                height: 58px;
                border-radius: 18px;
            }

            .hero-actions > a,
            .card-actions > a,
            .card-actions > button {
                width: 100%;
            }
        }
    

.portal-small-title {
    color: var(--portal-subtle);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.portal-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.portal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    view-transition-name: portal-first-fold;
    contain: paint;
}

.portal-info-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 18px;
    padding: 1rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 251, 0.96) 100%);
    box-shadow: var(--portal-shadow-soft);
}

.portal-info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
}

.portal-info-card strong {
    display: block;
    color: var(--portal-ink);
    font-size: 1.05rem;
    font-weight: 700;
    font-family: var(--portal-font-display);
}

.portal-info-card span {
    display: block;
    color: var(--portal-muted);
    font-size: 0.88rem;
    margin-top: 0.3rem;
}

.portal-bullet-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.55rem;
}

.portal-bullet-list li {
    padding-left: 0.15rem;
}

.portal-bullet-list.compact {
    gap: 0.4rem;
    font-size: 0.94rem;
}

.portal-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.portal-kv-item {
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 249, 252, 0.98) 100%);
    box-shadow: var(--portal-shadow-soft);
}

.portal-kv-item span {
    display: block;
    color: var(--portal-muted);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.portal-kv-item strong {
    display: block;
    color: var(--portal-ink);
    font-size: 1.02rem;
    font-weight: 700;
}

.portal-code-inline {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: left;
    word-break: break-all;
}

.portal-callout {
    border: 1px solid rgba(21, 87, 214, 0.12);
    border-radius: 20px;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, rgba(236, 244, 255, 0.92) 0%, rgba(245, 251, 248, 0.96) 100%);
}

.portal-callout strong {
    color: var(--portal-ink);
}

.portal-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.portal-step-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 22px;
    padding: 1.15rem 1.15rem 1.05rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 249, 252, 0.98) 100%);
    box-shadow: var(--portal-shadow-soft);
}

.portal-step-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(21, 87, 214, 0.88) 0%, rgba(26, 155, 120, 0.82) 100%);
}

.portal-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(21, 87, 214, 0.08);
    color: var(--portal-primary);
    font-family: var(--portal-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.portal-step-card h3 {
    margin: 0 0 0.45rem;
    font-family: var(--portal-font-display);
    font-size: 1.08rem;
}

.portal-step-card p {
    margin: 0;
    color: var(--portal-muted);
}

.portal-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.portal-mini-note {
    color: var(--portal-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

.portal-chart-shell {
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 24px;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 250, 252, 0.98) 100%);
    box-shadow: var(--portal-shadow-soft);
}

.portal-chart-shell canvas {
    display: block;
    width: 100% !important;
}

.portal-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: stretch;
    gap: 1rem;
}

.portal-focus-card {
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 20px;
    padding: 1.05rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--portal-shadow-soft);
    height: 100%;
}

.portal-focus-card .portal-progress {
    margin-top: 0.65rem;
}

.portal-focus-card .portal-pill {
    flex: 0 0 auto;
}

.portal-section-divider {
    height: 1px;
    border: none;
    margin: 1.4rem 0;
    background: linear-gradient(90deg, rgba(15, 32, 53, 0) 0%, rgba(15, 32, 53, 0.12) 18%, rgba(15, 32, 53, 0.12) 82%, rgba(15, 32, 53, 0) 100%);
}

.portal-table-note {
    color: var(--portal-muted);
    font-size: 0.9rem;
}

.portal-link-inline {
    color: var(--portal-primary);
    font-weight: 600;
    text-decoration: none;
}

.portal-link-inline:hover {
    color: var(--portal-primary-deep);
    text-decoration: underline;
}

.portal-table-wrap code {
    color: var(--portal-primary-deep);
}

.portal-card-accent {
    position: relative;
    overflow: hidden;
}

.portal-card-accent::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
}

.portal-card-accent::after {
    content: "";
    position: absolute;
    inset: auto -24px -46px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21, 87, 214, 0.07) 0%, rgba(21, 87, 214, 0) 72%);
    pointer-events: none;
}

.portal-density-copy {
    color: var(--portal-muted);
    line-height: 1.72;
}

.portal-card-micro {
    color: var(--portal-subtle);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.portal-glance-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.portal-glance-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    background: rgba(21, 87, 214, 0.08);
    color: var(--portal-primary-deep);
    font-size: 0.86rem;
    font-weight: 600;
}

.portal-glance-row.compact {
    gap: 0.45rem;
}

.portal-glance-row.compact .portal-glance-chip {
    padding: 0.42rem 0.68rem;
    font-size: 0.82rem;
}

.portal-download-card {
    display: flex;
    flex-direction: column;
    padding: 0.98rem 1rem 1rem;
}

.portal-download-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.portal-download-meta-item {
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 16px;
    padding: 0.8rem 0.88rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 249, 252, 0.98) 100%);
}

.portal-download-meta-item span {
    display: block;
    color: var(--portal-subtle);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.28rem;
}

.portal-download-meta-item strong {
    display: block;
    color: var(--portal-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
}

.portal-download-file {
    word-break: break-all;
    font-size: 0.88rem;
}

.portal-download-note {
    line-height: 1.58;
}

        .display-5,
        .h1,
        .h2,
        .h3,
        .h4 {
            font-family: var(--portal-font-display);
            letter-spacing: 0.01em;
        }

        @keyframes portalHaloDrift {
            0%,
            100% {
                transform: translate3d(0, 0, 0) scale(1);
            }

            50% {
                transform: translate3d(-12px, 10px, 0) scale(1.06);
            }
        }

        @keyframes portalPageFadeIn {
            from {
                opacity: 0;
                transform: scale(0.997);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        @keyframes portalPageFadeOut {
            from {
                opacity: 1;
                transform: scale(1);
            }

            to {
                opacity: 0;
                transform: scale(0.9985);
            }
        }

        @keyframes portalSharedFadeOut {
            from {
                opacity: 1;
                transform: translateY(0);
            }

            to {
                opacity: 0.94;
                transform: translateY(-2px);
            }
        }

        @keyframes portalSharedFadeIn {
            from {
                opacity: 0.94;
                transform: translateY(-2px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes portalSharedHeroIn {
            from {
                opacity: 0.88;
                transform: translateY(8px) scale(0.996);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes portalSharedMetricsIn {
            from {
                opacity: 0.9;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .portal-hero::before,
            .portal-hero::after,
            .portal-list-item,
            .portal-info-card,
            .portal-focus-card,
            .portal-step-card,
            .portal-nav a {
                animation: none;
            }

            ::view-transition-old(root),
            ::view-transition-new(root),
            ::view-transition-old(portal-header),
            ::view-transition-new(portal-header),
            ::view-transition-old(portal-hero),
            ::view-transition-new(portal-hero),
            ::view-transition-old(portal-first-fold),
            ::view-transition-new(portal-first-fold) {
                animation: none;
            }
        }

@media (max-width: 768px) {
    .portal-header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.6rem;
    }

    .portal-header-badge {
        padding: 0.42rem 0.72rem;
        font-size: 0.8rem;
    }

    .portal-nav-surface {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.28rem;
        border-radius: 26px;
        box-shadow: 0 8px 18px rgba(15, 32, 53, 0.06);
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .portal-nav-surface::-webkit-scrollbar {
        display: none;
    }

    .portal-nav {
        flex-wrap: nowrap;
        width: max-content;
        gap: 0.35rem;
    }

    .portal-nav a {
        white-space: nowrap;
        padding: 0.52rem 0.82rem;
    }

    .portal-kv-grid {
        grid-template-columns: 1fr;
    }

    .portal-download-meta {
        grid-template-columns: 1fr;
    }

    .portal-step-grid {
        grid-template-columns: 1fr;
    }

    .portal-focus-grid {
        grid-template-columns: 1fr;
    }

    .portal-login-grid {
        grid-template-columns: 1fr;
    }

    .portal-tab-content .portal-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Tab Styles */
.portal-quick-heading {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.portal-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.portal-tab {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    border: 0;
    background: rgba(21, 87, 214, 0.08);
    color: var(--portal-primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

button.portal-section-badge.portal-tab {
    border: 0 !important;
    outline: 0;
    margin: 0;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.portal-tab:hover {
    color: var(--portal-primary-deep);
    background: rgba(21, 87, 214, 0.12);
    box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.08);
}

.portal-tab.active,
.portal-tab[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, var(--portal-primary) 0%, #0f7cf0 100%);
    box-shadow: 0 8px 18px rgba(21, 87, 214, 0.18);
}

.portal-tab:focus-visible {
    outline: 3px solid rgba(21, 87, 214, 0.18);
    outline-offset: 2px;
}

.portal-tab-content {
    margin-top: 1rem;
}

.portal-tab-content[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .portal-tabs {
        width: 100%;
    }

    .portal-tab {
        flex: 1 1 0;
        padding-inline: 0.75rem;
    }
}

/* Small Button */
.portal-btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
}

/* Card Hover Enhancement */
.portal-list-item:hover {
    transform: translateY(-2px) scale(1.005);
}

/* Project List Compact */
.portal-project-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    transition: background-color 0.2s ease;
}

.portal-project-row:hover {
    background: rgba(21, 87, 214, 0.04);
}

/* Hero Animation Speedup */
.portal-hero::before {
    animation-duration: 8s;
}

.portal-hero::after {
    animation-duration: 7s;
}

/* =========================================================================
   Portal Skills gallery — list page cards, detail hero, star buttons, tags
   ------------------------------------------------------------------------- */

/* Toolbar above the card grid: search + tags + sort tabs. Sits on a soft
   neutral panel so it stands out from the page background without competing
   with the card grid for attention. */
.portal-skills-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 252, 0.96) 100%);
    border: 1px solid var(--portal-border);
    box-shadow: var(--portal-shadow-soft);
    margin-bottom: 1.25rem;
}

.portal-project-table .table th,
.portal-project-table .table td {
    white-space: nowrap;
}

.portal-project-table .portal-project-name {
    min-width: 150px;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portal-skills-toolbar .portal-search {
    flex: 1 1 220px;
    min-width: 200px;
}

.portal-skills-toolbar .portal-search input,
.portal-skills-toolbar .portal-tag-input input {
    width: 100%;
    border: 1px solid var(--portal-border);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    background: #fff;
    font-size: 0.92rem;
    color: var(--portal-ink);
}

.portal-skills-toolbar .portal-search input:focus,
.portal-skills-toolbar .portal-tag-input input:focus {
    outline: 0;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(21, 87, 214, 0.12);
}

.portal-skills-toolbar .portal-tag-input {
    flex: 0 1 200px;
}

/* Sort tabs reuse the .portal-tab styles but tighter padding for the toolbar. */
.portal-sort-tabs {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: rgba(15, 32, 53, 0.05);
}

.portal-sort-tabs a {
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    color: var(--portal-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.portal-sort-tabs a:hover {
    color: var(--portal-ink);
}

.portal-sort-tabs a.active {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 87, 214, 0.22);
}

/* Responsive grid of skill cards. */
.portal-skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.1rem;
    margin-top: 0.25rem;
}

/* Each card is a small artifact of its own — gradient back, accent stripe at top,
   subtle hover lift. Inner content is flex-column so meta row sits at the bottom
   regardless of description length. */
.portal-skill-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 32, 53, 0.08);
    border-radius: 20px;
    padding: 1.15rem 1.15rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fc 100%);
    box-shadow: 0 8px 20px rgba(15, 32, 53, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.portal-skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(15, 32, 53, 0.12);
    text-decoration: none;
    color: inherit;
}

.portal-skill-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--portal-primary) 0%, var(--portal-accent) 100%);
}

.portal-skill-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.portal-skill-title {
    font-family: var(--portal-font-display);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--portal-ink);
    line-height: 1.35;
}

.portal-skill-version {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(21, 87, 214, 0.10);
    color: var(--portal-primary-deep);
    font-family: var(--portal-font-display);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.portal-skill-author {
    color: var(--portal-muted);
    font-size: 0.85rem;
}

.portal-skill-author .portal-skill-name {
    font-family: 'Cascadia Mono', 'Consolas', monospace;
    color: var(--portal-primary-deep);
    font-weight: 600;
}

.portal-skill-desc {
    color: var(--portal-ink);
    font-size: 0.92rem;
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portal-skill-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding-top: 0.6rem;
    margin-top: auto;
    border-top: 1px dashed rgba(15, 32, 53, 0.10);
    font-size: 0.85rem;
    color: var(--portal-muted);
}

.portal-skill-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.portal-skill-meta-left .meta-num {
    color: var(--portal-ink);
    font-weight: 700;
    font-family: var(--portal-font-display);
}

.portal-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.portal-skill-tag {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    background: var(--portal-accent-soft);
    color: var(--portal-accent);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.portal-skill-tag:hover {
    background: var(--portal-accent);
    color: #fff;
}

/* ==== Star icon — bigger + colored ==== */
/* Inline star in card meta rows. */
.portal-star {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #d97706;
    font-size: 1.25rem;
    line-height: 1;
}

.portal-star .star-num {
    font-family: var(--portal-font-display);
    color: var(--portal-ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.portal-download-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--portal-primary);
    font-size: 1.05rem;
    line-height: 1;
}

.portal-download-icon .star-num {
    font-family: var(--portal-font-display);
    color: var(--portal-ink);
    font-weight: 700;
    font-size: 0.95rem;
}

/* Big Star button on the detail page hero. */
.portal-star-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: 2px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.10);
    color: #b45309;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--portal-font-body);
}

.portal-star-btn:hover {
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
    color: #92400e;
}

.portal-star-btn .star-icon {
    font-size: 1.7rem;
    line-height: 1;
    display: inline-block;
    transform: translateY(-1px);
}

.portal-star-btn.is-set {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.32);
}

.portal-star-btn.is-set:hover {
    color: #fff;
    box-shadow: 0 14px 28px rgba(245, 158, 11, 0.42);
}

/* Detail page: meta row showing star/download/size with display font. */
.portal-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    align-items: center;
    color: var(--portal-muted);
    font-size: 0.95rem;
}

.portal-detail-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.portal-detail-meta-item .icon {
    font-size: 1.6rem;
    line-height: 1;
}

.portal-detail-meta-item .icon.star { color: #d97706; }
.portal-detail-meta-item .icon.dl { color: var(--portal-primary); }
.portal-detail-meta-item .icon.size { color: var(--portal-accent); }

.portal-detail-meta-item strong {
    color: var(--portal-ink);
    font-family: var(--portal-font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

.portal-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

/* SKILL.md preview block - dark themed code-ish block. */
.portal-md-preview {
    border-radius: 16px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    padding: 1.25rem 1.4rem;
    max-height: 520px;
    overflow: auto;
    font-size: 0.875rem;
    line-height: 1.65;
    white-space: pre-wrap;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 22px rgba(15, 32, 53, 0.18);
    font-family: 'Cascadia Mono', 'Consolas', 'Microsoft YaHei UI', monospace;
}

/* Empty state shown when no skills match. */
.portal-empty-state {
    padding: 3.5rem 1rem;
    text-align: center;
    color: var(--portal-muted);
}

.portal-empty-state .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* ==== Comments (Portal user view) ==== */
.portal-comment-form {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(21, 87, 214, 0.04);
    border: 1px solid rgba(21, 87, 214, 0.10);
    margin-bottom: 1rem;
}

.portal-comment-form textarea {
    width: 100%;
    border: 1px solid var(--portal-border);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    background: #fff;
    font-size: 0.94rem;
    color: var(--portal-ink);
    resize: vertical;
}

.portal-comment-form textarea:focus {
    outline: 0;
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 3px rgba(21, 87, 214, 0.12);
}

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

.portal-comment-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 32, 53, 0.08);
}

.portal-comment-item:last-child {
    border-bottom: none;
}

.portal-comment-replies {
    list-style: none;
    margin: 0.75rem 0 0 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid rgba(21, 87, 214, 0.18);
}

.portal-comment-replies .portal-comment-item {
    padding: 0.6rem 0;
}

.portal-comment-author {
    color: var(--portal-ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.portal-comment-meta {
    color: var(--portal-subtle);
    font-size: 0.8rem;
}

.portal-comment-body {
    color: var(--portal-ink);
    font-size: 0.94rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 0.35rem;
}

.portal-comment-tag {
    display: inline-block;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.portal-comment-tag.is-me {
    background: rgba(21, 87, 214, 0.12);
    color: var(--portal-primary-deep);
}

.portal-comment-tag.is-reply {
    background: rgba(15, 32, 53, 0.08);
    color: var(--portal-muted);
}

.portal-link-action {
    color: var(--portal-muted);
    font-size: 0.85rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.portal-link-action:hover { color: var(--portal-primary); }
.portal-link-action.danger:hover { color: #d63a3a; }

/* Pagination styled to match Portal vocabulary (Bootstrap default looks too generic). */
.portal-pagination {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(15, 32, 53, 0.05);
}

.portal-pagination a,
.portal-pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: var(--portal-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.portal-pagination a:hover {
    color: var(--portal-ink);
    background: rgba(255, 255, 255, 0.7);
}

.portal-pagination .is-active {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 87, 214, 0.22);
}

.portal-pagination .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

/* =========================================================================
   Deep-link launch button (custom easycodestudio:// protocol)
   ------------------------------------------------------------------------- */

/* Big install-in-app button on the detail page hero. Uses the same primary blue
   gradient as the rest of the Portal CTAs (sort tab active, pagination active,
   portal-btn-primary) so the design system stays coherent. The earlier accent
   green clashed with the green tag pills sitting right next to it on the same
   card — readers thought "another tag" instead of "main action".

   border: none kills the browser default <button> hairline. */
.portal-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.3rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-deep) 100%);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(21, 87, 214, 0.28);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.portal-launch-btn:hover,
.portal-launch-btn:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(21, 87, 214, 0.38);
    outline: none;
}

.portal-launch-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(21, 87, 214, 0.32);
}

.portal-launch-btn .rocket {
    font-size: 1.35rem;
    line-height: 1;
}

.portal-launch-btn[disabled] {
    cursor: progress;
    opacity: 0.75;
    transform: none;
    box-shadow: 0 6px 14px rgba(21, 87, 214, 0.22);
}

/* Quick-install pill that sits on each list-page card. Lower visual weight than
   the detail-page big button — users on the list page haven't committed to a
   skill yet — but still reads as the card's primary call to action.

   Browser default <button> renders a hairline border that clashes with the
   soft pill background; we kill it explicitly with `border: 0`. line-height: 1
   keeps the pill from growing taller than its tag-sibling. */
.portal-skill-quick-install {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(21, 87, 214, 0.14) 0%, rgba(21, 87, 214, 0.06) 100%);
    color: var(--portal-primary-deep);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    box-shadow:
        inset 0 0 0 1px rgba(21, 87, 214, 0.18),
        0 1px 2px rgba(15, 32, 53, 0.04);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.portal-skill-quick-install:hover,
.portal-skill-quick-install:focus-visible {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-deep) 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 1px transparent,
        0 6px 14px rgba(21, 87, 214, 0.32);
    outline: none;
}

.portal-skill-quick-install:active {
    transform: translateY(0);
    box-shadow:
        inset 0 0 0 1px transparent,
        0 2px 6px rgba(21, 87, 214, 0.22);
}

.portal-skill-quick-install[disabled] {
    cursor: progress;
    opacity: 0.7;
    transform: none;
    box-shadow: inset 0 0 0 1px rgba(21, 87, 214, 0.18);
}

/* Fallback modal shown if the protocol doesn't appear to be handled. */
.portal-launch-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 32, 53, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
}

.portal-launch-modal-backdrop.is-open {
    display: flex;
}

.portal-launch-modal {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 32px 72px rgba(15, 32, 53, 0.32);
    padding: 1.85rem 2rem;
    max-width: 480px;
    width: calc(100% - 2rem);
    color: var(--portal-ink);
}

.portal-launch-modal h3 {
    margin: 0 0 0.6rem;
    font-family: var(--portal-font-display);
    font-size: 1.35rem;
    font-weight: 700;
}

.portal-launch-modal p {
    margin: 0 0 1.15rem;
    color: var(--portal-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.portal-launch-modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.portal-launch-modal-actions a,
.portal-launch-modal-actions button {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
}

.portal-launch-modal-actions .primary {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-primary-deep) 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(21, 87, 214, 0.24);
}

.portal-launch-modal-actions .secondary {
    background: rgba(15, 32, 53, 0.06);
    color: var(--portal-ink);
}

/* ==========================================================================
   EasyPLC 2026 visual language
   Quiet, precise surfaces with a restrained industrial-tech accent.
   ========================================================================== */

::selection {
    color: #fff;
    background: rgba(0, 113, 227, 0.88);
}

html {
    background: var(--portal-canvas);
}

body {
    color: var(--portal-ink);
    background:
        radial-gradient(circle at 12% -4%, rgba(0, 113, 227, 0.11), transparent 28rem),
        radial-gradient(circle at 94% 8%, rgba(100, 210, 255, 0.10), transparent 24rem),
        linear-gradient(180deg, #fbfbfd 0%, var(--portal-canvas) 32rem, #f2f2f4 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.portal-header {
    background: rgba(250, 250, 252, 0.78);
    border-bottom-color: rgba(0, 0, 0, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
}

.portal-header-inner,
.portal-main {
    max-width: 1280px;
}

.portal-header-inner {
    min-height: 76px;
    padding-block: 0.7rem;
}

.portal-brand {
    gap: 0.75rem;
}

.portal-brand:hover {
    transform: none;
}

.portal-brand-logo-shell,
.portal-app-logo-shell {
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
}

.portal-brand-logo-shell {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.portal-brand:hover .portal-brand-logo-shell {
    transform: translateY(-1px) scale(1.015);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.portal-app-logo-shell {
    width: 58px;
    height: 58px;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.13);
}

.portal-app-logo-shell-sm {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.portal-brand-copy strong {
    color: #111113;
    font-size: 1.03rem;
    font-weight: 680;
    letter-spacing: -0.025em;
}

.portal-brand-copy span {
    margin-top: 0.05rem;
    color: var(--portal-subtle);
    font-size: 0.73rem;
    letter-spacing: 0.025em;
}

/* Code-native E logo family. */
.portal-logo-mark {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    isolation: isolate;
}

.portal-logo-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
}

.portal-logo-mark-plc {
    background:
        radial-gradient(circle at 78% 18%, rgba(100, 210, 255, 0.34), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f1f7ff 56%, #dcecff 100%);
}

.portal-logo-mark-plc::before {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 0 0 1px rgba(0, 113, 227, 0.11),
        inset 0 -10px 24px rgba(0, 113, 227, 0.055);
}

.portal-logo-mark-monitor {
    background:
        radial-gradient(circle at 76% 18%, rgba(55, 203, 255, 0.28), transparent 35%),
        linear-gradient(145deg, #fbfeff 0%, #edfaff 54%, #d9f2ff 100%);
}

.portal-logo-mark-monitor::before {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 0 0 1px rgba(8, 145, 178, 0.14),
        inset 0 -10px 24px rgba(8, 145, 178, 0.06);
}

.portal-logo-e {
    position: absolute;
    inset: 22% 22% 22% 24%;
    z-index: 1;
}

.portal-logo-e-stem,
.portal-logo-e-bar {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, #2997ff 0%, #0071e3 54%, #0057b8 100%);
    box-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), 0 3px 9px rgba(0, 113, 227, 0.18);
}

.portal-logo-e-stem {
    inset: 0 auto 0 0;
    width: 18%;
}

.portal-logo-e-bar {
    left: 0;
    width: 100%;
    height: 17%;
}

.portal-logo-e-bar-top {
    top: 0;
}

.portal-logo-e-bar-middle {
    top: 41.5%;
    width: 76%;
}

.portal-logo-e-bar-bottom {
    bottom: 0;
    width: 92%;
}

.portal-logo-mark-monitor .portal-logo-e-stem,
.portal-logo-mark-monitor .portal-logo-e-bar {
    background: linear-gradient(180deg, #38c7ef 0%, #0798d4 48%, #0071c7 100%);
    box-shadow: 0 3px 9px rgba(7, 152, 212, 0.18);
}

.portal-logo-signal {
    position: absolute;
    right: 13%;
    top: 17%;
    width: 8%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #2997ff;
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.12), 0 0 14px rgba(41, 151, 255, 0.48);
}

.portal-logo-monitor-pulse {
    position: absolute;
    right: 11%;
    bottom: 13%;
    width: 38%;
    height: 25%;
    z-index: 2;
}

.portal-logo-monitor-pulse::before,
.portal-logo-monitor-pulse::after,
.portal-logo-monitor-pulse span {
    content: "";
    position: absolute;
    display: block;
    height: 9%;
    min-height: 1px;
    border-radius: 999px;
    background: #008bc7;
    box-shadow: 0 2px 6px rgba(0, 139, 199, 0.2);
    transform-origin: left center;
}

.portal-logo-monitor-pulse::before {
    left: 0;
    top: 55%;
    width: 27%;
}

.portal-logo-monitor-pulse span {
    left: 23%;
    top: 54%;
    width: 31%;
    transform: rotate(-58deg);
}

.portal-logo-monitor-pulse::after {
    right: 0;
    top: 55%;
    width: 54%;
    transform: rotate(18deg);
}

.portal-logo-live-dot {
    position: absolute;
    right: 12%;
    top: 13%;
    width: 10%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12), 0 0 14px rgba(48, 209, 88, 0.54);
}

.portal-nav-surface {
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(0, 0, 0, 0.065);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.055);
}

.portal-nav a,
.portal-nav button {
    padding: 0.48rem 0.84rem;
    font-size: 0.88rem;
    font-weight: 560;
}

.portal-nav a::after {
    display: none;
}

.portal-nav a:hover,
.portal-nav button:hover,
.portal-nav button:focus-visible {
    color: var(--portal-ink);
    background: rgba(0, 0, 0, 0.045);
    transform: none;
}

.portal-nav a.active {
    color: #fff;
    background: var(--portal-primary);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.2);
}

.portal-header-badge {
    color: #424245;
    background: rgba(0, 0, 0, 0.045);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.045);
    font-weight: 560;
}

.portal-header-badge-dot {
    background: #30d158;
    box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12);
}

.portal-main {
    padding-top: 2.4rem;
}

.portal-card,
.portal-soft,
.portal-info-card,
.portal-stat-card,
.portal-list-item,
.portal-feature-card,
.portal-step-card,
.portal-focus-card,
.portal-download-meta-item,
.portal-skills-toolbar,
.portal-skill-card,
.portal-chart-shell {
    border-color: rgba(0, 0, 0, 0.075);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--portal-shadow-soft);
    backdrop-filter: saturate(145%) blur(18px);
    -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.portal-card {
    box-shadow: var(--portal-shadow);
}

.portal-card-accent::before,
.portal-info-card::before,
.portal-step-card::before,
.portal-skill-card::before,
.portal-feature-card::before {
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 113, 227, 0.88), rgba(100, 210, 255, 0.5), transparent 92%);
}

.portal-card-accent::after {
    background: radial-gradient(circle, rgba(0, 113, 227, 0.07), transparent 70%);
}

.portal-hero {
    min-height: 390px;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 4.4rem);
    border: 1px solid rgba(0, 113, 227, 0.10);
    border-radius: 38px;
    background:
        radial-gradient(circle at 76% 12%, rgba(41, 151, 255, 0.23), transparent 24rem),
        radial-gradient(circle at 94% 82%, rgba(100, 210, 255, 0.20), transparent 20rem),
        linear-gradient(135deg, #ffffff 0%, #f3f9ff 55%, #e8f5ff 100%);
    color: var(--portal-ink);
    box-shadow: 0 28px 70px rgba(0, 113, 227, 0.10);
}

.portal-hero::before {
    width: 460px;
    height: 460px;
    right: -120px;
    top: -230px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 68%);
    opacity: 0.78;
}

.portal-hero::after {
    width: 100%;
    height: 100%;
    inset: 0;
    border-radius: inherit;
    background-image: radial-gradient(rgba(0, 113, 227, 0.18) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 70%, #000 100%);
    opacity: 0.20;
    animation: none;
}

.portal-hero > * {
    position: relative;
    z-index: 1;
    width: 100%;
}

.portal-hero-eyebrow {
    margin-bottom: 1.05rem;
    color: var(--portal-primary);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
}

.portal-hero .display-5 {
    max-width: 760px;
    font-size: clamp(2.65rem, 5.4vw, 5rem);
    font-weight: 700 !important;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.portal-hero .fs-5 {
    color: #5a6472;
    font-size: clamp(1rem, 1.4vw, 1.24rem) !important;
    line-height: 1.55;
}

.hero-chip {
    padding: 0.34rem 0.72rem;
    border: 1px solid rgba(0, 113, 227, 0.10);
    background: rgba(255, 255, 255, 0.70);
    color: #0066cc;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.portal-hero .portal-kv-item,
.portal-hero .portal-soft {
    color: var(--portal-ink) !important;
    border-color: rgba(0, 113, 227, 0.10) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(0, 113, 227, 0.07);
    backdrop-filter: blur(18px);
}

.portal-hero .portal-kv-item span {
    color: var(--portal-muted);
}

.portal-hero .portal-kv-item strong {
    color: var(--portal-ink);
    font-size: 1.15rem;
}

.portal-hero .text-white-50,
.portal-hero .portal-note.text-white-50 {
    color: var(--portal-muted) !important;
}

.portal-hero .portal-btn-light {
    color: #fff;
    background: var(--portal-primary);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.20);
}

.portal-hero .portal-btn-light:hover,
.portal-hero .portal-btn-light:focus-visible {
    color: #fff;
    background: #0077ed;
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.26);
}

.portal-hero .portal-btn-outline {
    color: var(--portal-primary);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.12);
}

.portal-btn-primary,
.portal-btn-light,
.portal-btn-outline,
.portal-launch-btn {
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    font-weight: 590;
    letter-spacing: -0.01em;
}

.portal-btn-primary,
.portal-launch-btn {
    background: var(--portal-primary);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.22);
}

.portal-btn-primary:hover,
.portal-btn-primary:focus-visible,
.portal-launch-btn:hover,
.portal-launch-btn:focus-visible {
    background: #0077ed;
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.28);
}

.portal-btn-light {
    color: #1d1d1f;
    background: #f5f5f7;
    box-shadow: none;
}

.portal-btn-light:hover,
.portal-btn-light:focus-visible {
    color: #000;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.portal-btn-outline {
    color: var(--portal-primary);
    background: rgba(0, 113, 227, 0.08);
    box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.08);
}

.portal-pill,
.portal-section-badge,
.portal-glance-chip,
.portal-tab,
.portal-skill-version {
    color: #0066cc;
    background: rgba(0, 113, 227, 0.08);
}

.portal-section-badge {
    letter-spacing: 0.035em;
}

.portal-tab.active,
.portal-tab[aria-selected="true"],
.portal-sort-tabs a.active,
.portal-pagination .is-active,
.portal-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--portal-primary);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.20);
}

.portal-md-preview {
    color: #26374a;
    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
    border: 1px solid rgba(0, 113, 227, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 26px rgba(0, 113, 227, 0.07);
}

.portal-input,
.portal-skills-toolbar .portal-search input,
.portal-skills-toolbar .portal-tag-input input,
.portal-comment-form textarea {
    min-height: 46px;
    border-color: rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.portal-input:focus,
.portal-skills-toolbar .portal-search input:focus,
.portal-skills-toolbar .portal-tag-input input:focus,
.portal-comment-form textarea:focus {
    border-color: rgba(0, 113, 227, 0.54);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

.portal-list-item,
.portal-skill-card {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.portal-list-item:hover,
.portal-skill-card:hover {
    border-color: rgba(0, 113, 227, 0.16);
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.085);
}

.portal-table-wrap {
    border-color: rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.78);
}

.portal-table-wrap .table thead th {
    color: var(--portal-subtle);
    background: rgba(245, 245, 247, 0.82);
}

.portal-table-wrap .table tbody tr:hover {
    background: rgba(0, 113, 227, 0.035);
}

.portal-footer {
    padding-block: 2.4rem 2.8rem;
    color: var(--portal-subtle);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 991.98px) {
    .portal-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.8rem 1rem;
    }

    .portal-header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .portal-nav-surface {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .portal-nav-surface::-webkit-scrollbar {
        display: none;
    }

    .portal-nav {
        width: max-content;
        flex-wrap: nowrap;
    }
}

@media (max-width: 768px) {
    .portal-main {
        padding: 1rem 0.8rem 2.4rem;
    }

    .portal-brand-logo-shell {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .portal-header-badge {
        display: none;
    }

    .portal-hero {
        min-height: 0;
        padding: 1.55rem;
        border-radius: 28px;
    }

    .portal-hero .display-5 {
        font-size: clamp(2.25rem, 12vw, 3.4rem);
        line-height: 1.02;
    }

    .portal-card {
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-brand,
    .portal-brand-logo-shell,
    .portal-list-item,
    .portal-skill-card,
    .portal-btn-primary,
    .portal-btn-light,
    .portal-btn-outline {
        transition: none !important;
    }
}
