:root {
    --pnp-purple: #2563eb;
    --pnp-dark-purple: #1d4ed8;
    --pnp-teal: #087f75;
    --pnp-bg-light: #f4f7fb;
    --pnp-text-dark: #192b43;
    --pnp-text-gray: #64748b;
    --accent: #2563eb;
    --navy: #10233f;
    --line: #e2e8f0;
    --surface: #ffffff;
    --fluent-shadow: 0 4px 20px rgb(19 43 77 / 4%);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: #2563eb;
    --bs-link-hover-color: #1d4ed8;
    --bs-body-color: #192b43;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--pnp-bg-light);
    color: var(--pnp-text-dark);
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: .9375rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: var(--navy); font-weight: 650; line-height: 1.4; }
h2 { font-size: 1.6rem; }
a { text-underline-offset: .2em; }
button, input, select, textarea, a { scroll-margin-top: 7rem; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.app-main { flex: 1; padding-top: 2rem; padding-bottom: 3rem; min-width: 0; }
.app-main:focus { outline: none; }
.eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .16em; color: var(--pnp-text-gray); margin: 0 0 .65rem; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1100; background: white; padding: .6rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: .5rem; }

.app-navbar { background: white; border-bottom: 1px solid var(--line); padding: 1rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; margin-right: 1.5rem; padding: 0; color: var(--navy); }
.navbar-brand:hover { color: var(--navy); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #7de3da; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; gap: .1rem; }
.brand-copy strong { font-size: 1.05rem; font-weight: 750; letter-spacing: .02em; }
.brand-copy small { color: var(--pnp-text-gray); font-size: .55rem; font-weight: 650; letter-spacing: .15em; }
.navbar-nav { gap: .3rem; }
.navbar-nav .nav-link { padding: .55rem .85rem; color: #53647b; border-radius: .5rem; font-size: .9rem; font-weight: 550; white-space: nowrap; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { background: #edf3ff; color: #1d4ed8; }
.navbar-toggler { border-color: var(--line); padding: .4rem; }
.nav-login, .account-button { margin-left: .75rem; }
.account-button { display: flex; align-items: center; gap: .7rem; max-width: 210px; font-size: .8rem; }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.training-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem; background: linear-gradient(120deg, #10213b, #163352); border: 1px solid #223d5d; border-radius: 20px; color: #d3deed; }
.training-hero::before { content: ''; position: absolute; width: 480px; height: 480px; right: -200px; top: -220px; border: 1px solid rgb(112 220 213 / 12%); border-radius: 50%; box-shadow: 0 0 0 70px rgb(112 220 213 / 3%), 0 0 0 140px rgb(112 220 213 / 2%); pointer-events: none; }
.hero-copy, .flow-preview { position: relative; min-width: 0; }
.hero-eyebrow { color: #83d9d3; display: flex; align-items: center; gap: .6rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #54d6bf; flex-shrink: 0; }
.training-hero h1 { font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.4; letter-spacing: -.025em; color: white; margin: 1.2rem 0; font-weight: 750; }
.hero-description { max-width: 470px; color: #b6c8dd; font-size: .95rem; line-height: 1.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-actions .btn { font-size: .9rem; padding: .8rem 1.25rem; }
.hero-actions .btn-primary span { margin-left: .4rem; }
.btn-hero-secondary { --bs-btn-color: #e0eaf8; --bs-btn-border-color: #536880; --bs-btn-hover-color: white; --bs-btn-hover-bg: #294462; --bs-btn-hover-border-color: #7589a1; }
.hero-features { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.8rem; font-size: .74rem; color: #afc2d7; }
.hero-features span::before { content: ''; display: inline-block; height: 4px; width: 4px; margin-right: .4rem; vertical-align: middle; border-radius: 50%; background: #75c9c4; }
.flow-preview { background: rgb(9 26 47 / 60%); border: 1px solid #36506e; border-radius: 14px; box-shadow: 0 20px 50px rgb(0 0 0 / 12%); }
.flow-preview-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .9rem 1.1rem; border-bottom: 1px solid #2b435f; color: #b7c9df; font-size: .7rem; }
.window-dots { display: flex; gap: 4px; }
.window-dots i { width: 5px; height: 5px; background: #607995; border-radius: 50%; }
.flow-label { font-size: .58rem; letter-spacing: .12em; color: #89abae; }
.flow-steps { list-style: none; margin: 0; padding: .35rem 1.2rem; }
.flow-steps li { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 0; }
.flow-steps li:not(:last-child)::after { content: ''; position: absolute; width: 1px; height: 19px; background: #38536f; left: 16px; bottom: -9px; }
.flow-number { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; color: #9ce5df; border: 1px solid #365b73; background: #173a50; font-size: .7rem; font-weight: 650; }
.flow-steps strong { display: block; font-size: .85rem; color: #e5eef9; font-weight: 550; }
.flow-steps small { display: block; color: #97acc4; font-size: .68rem; margin-top: .15rem; }
.flow-type { margin-left: auto; font-size: .6rem; letter-spacing: .02em; color: #92adc9; }
.flow-preview-footer { display: flex; align-items: center; gap: .5rem; padding: .75rem 1.2rem; background: rgb(40 77 94 / 20%); border-top: 1px solid #2b435f; font-size: .65rem; color: #abc2d7; border-radius: 0 0 14px 14px; }

.practice-section, .learning-section { margin-top: 3rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2 { font-size: 1.4rem; margin: 0; }
.section-heading p:last-child { color: var(--pnp-text-gray); font-size: .85rem; margin-bottom: .15rem; }
.section-heading .eyebrow { font-size: .62rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--fluent-shadow); margin-bottom: 1.25rem; }
.card:hover { border-color: #ccd7e5; }
.card-body { padding: 1.5rem; }
.card-header { border-bottom-color: var(--line); padding: 1rem 1.5rem; font-weight: 600; }
.card-header:first-child { border-radius: 11px 11px 0 0; }
.card-footer { padding: 1rem 1.5rem; border-color: var(--line); }
.card-title { color: var(--navy); font-weight: 650; }
.card-subtitle { color: var(--pnp-teal); font-size: .78rem; font-weight: 600; }
.row > [class*="col-"] > .card.h-100 { margin-bottom: 0; }
.practice-card { padding: 1.65rem; display: flex; flex-direction: column; box-shadow: none; }
.practice-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1.6rem; }
.practice-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #edf3ff; color: #3260b7; font-size: .9rem; font-weight: 650; }
.practice-card-top .eyebrow { font-size: .55rem; letter-spacing: .08em; margin: 0; }
.practice-card h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.practice-card > p { font-size: .86rem; color: var(--pnp-text-gray); }
.practice-card .practice-skills { font-size: .71rem; margin-top: auto; padding-top: .8rem; padding-bottom: 1.2rem; border-bottom: 1px solid #edf1f7; }
.practice-link { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; font-weight: 650; text-decoration: none; }
.ecosystem-details { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 1.2rem 1.5rem; }
.ecosystem-details summary { font-weight: 600; cursor: pointer; color: #334860; }
.ecosystem-details summary > span { font-size: .75rem; font-weight: 400; color: var(--pnp-text-gray); margin-left: .75rem; }

.btn { --bs-btn-border-radius: .5rem; --bs-btn-font-weight: 600; font-size: .875rem; }
.btn:not(.btn-sm):not(.btn-lg) { --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1rem; }
.btn-primary { --bs-btn-bg: #2563eb; --bs-btn-border-color: #2563eb; --bs-btn-hover-bg: #1d4ed8; --bs-btn-hover-border-color: #1d4ed8; --bs-btn-active-bg: #1e40af; --bs-btn-active-border-color: #1e40af; --bs-btn-disabled-bg: #2563eb; --bs-btn-disabled-border-color: #2563eb; }
.btn-outline-primary { --bs-btn-color: #2563eb; --bs-btn-border-color: #bbcdf4; --bs-btn-hover-bg: #edf3ff; --bs-btn-hover-color: #1d4ed8; --bs-btn-hover-border-color: #2563eb; --bs-btn-active-bg: #2563eb; --bs-btn-active-border-color: #2563eb; }
.btn-outline-secondary { --bs-btn-color: #53647b; --bs-btn-border-color: #d5deea; --bs-btn-hover-bg: #edf2f7; --bs-btn-hover-color: #243b56; --bs-btn-hover-border-color: #b7c5d6; }
.form-control, .form-select { border-color: #d5deea; border-radius: .5rem; font-size: .9rem; min-height: 2.65rem; }
.form-control:focus, .form-select:focus { border-color: #739ff3; box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
.form-control::placeholder { color: #8a98ab; }
.form-label, .training label { color: #475b73; font-size: .84rem; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.table { --bs-table-color: #334860; --bs-table-border-color: #e6ecf3; --bs-table-hover-bg: #f4f7fc; font-size: .85rem; }
.table > :not(caption) > * > * { padding: .8rem .85rem; }
.table thead { --bs-table-bg: #f3f6fb; --bs-table-color: #53647b; font-size: .76rem; }
.table th { font-weight: 600; }
.table a { font-weight: 550; text-decoration: none; }
.table td input[type="checkbox"], .table th input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }
.alert { border-radius: 9px; font-size: .88rem; padding: .85rem 1.1rem; }
.pagination { --bs-pagination-active-bg: #2563eb; --bs-pagination-active-border-color: #2563eb; --bs-pagination-border-color: #dbe3ee; }

.workspace-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.workspace-header h1 { font-size: 1.75rem; margin-bottom: .4rem; }
.workspace-header p:last-child { color: var(--pnp-text-gray); margin: 0; font-size: .85rem; }
.workspace-account { display: flex; align-items: center; gap: .65rem; padding: .65rem 1rem; background: #ebf4f3; border: 1px solid #d6e8e4; border-radius: 10px; min-width: 0; max-width: 35%; }
.workspace-account strong { display: block; font-size: .8rem; color: #275b54; overflow-wrap: anywhere; }
.workspace-account small { display: block; font-size: .7rem; color: #50756e; }
.workspace-account .status-dot { background: #168273; }
.workspace-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: .6rem; background: #eaf0f7; border: 1px solid #e0e7f0; border-radius: 12px; margin-bottom: 1.25rem; }
.workspace-tab { color: #53647b; font-size: .83rem; font-weight: 550; padding: .6rem .9rem; text-decoration: none; border: 1px solid transparent; border-radius: 8px; }
.workspace-tab:hover { color: #1d4ed8; background: #f6f9ff; }
.workspace-tab.active { background: white; border-color: #dbe5f1; box-shadow: 0 2px 4px rgb(19 43 77 / 3%); color: #1d4ed8; }
.workspace-content { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1.75rem; min-width: 0; }
.workspace-content > h2:first-of-type { font-size: 1.4rem; margin-bottom: 1rem; }
.workspace-content > p { color: var(--pnp-text-gray); font-size: .875rem; }
.training td { vertical-align: middle; overflow-wrap: anywhere; }
.training .table-responsive { max-height: 65vh; margin-bottom: 1.25rem; border-radius: 8px; }
.training thead { position: sticky; top: 0; z-index: 1; }
.training .table-responsive .table { margin-bottom: 0; min-width: 680px; }
.training .card { box-shadow: none; background: #fbfcfe; }
.training .card > .btn { align-self: flex-start; }
.training .card .form-control, .training .card .form-select { background-color: white; }
.training #export-form > .d-flex { padding: .85rem; background: #f6f8fc; border: 1px solid #e6ecf3; border-radius: 9px; }
.training #result-summary { margin: 1.25rem 0; }
.training #batch-results { min-width: 750px; }
.training #order-detail { table-layout: fixed; }
.training #order-detail th { width: 100px; background: #f7f9fc; }
.training #query-result { overflow-wrap: anywhere; }

.auth-shell { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; margin: 1rem auto; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: var(--fluent-shadow); }
.auth-intro { padding: 3rem; background: linear-gradient(140deg, #10233f, #193e57); color: #b6c8dd; }
.auth-intro h2 { font-size: 2rem; color: white; line-height: 1.5; margin: 1.4rem 0; }
.auth-intro > p:not(.eyebrow) { font-size: .88rem; line-height: 1.9; }
.auth-benefits { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.auth-benefits li { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.auth-benefits li > span { font-size: .65rem; color: #9ad9d3; border: 1px solid #44677c; padding: .3rem .4rem; border-radius: 6px; }
.auth-benefits strong { display: block; color: #e1edf9; font-size: .85rem; font-weight: 550; }
.auth-benefits small { display: block; font-size: .72rem; color: #a3bacf; }
.auth-panel { padding: 3rem; min-width: 0; align-self: center; }
.auth-panel h1 { font-size: 1.65rem; margin: .75rem 0; }
.auth-description { color: var(--pnp-text-gray); font-size: .85rem; margin-bottom: 1.75rem; }
.auth-form { display: flex; flex-direction: column; }
.auth-form .btn { margin-top: .6rem; }
.auth-switch { text-align: center; font-size: .82rem; margin: 1.5rem 0; }
.auth-switch a { text-decoration: none; }
.auth-note { font-size: .72rem; color: var(--pnp-text-gray); border-top: 1px solid var(--line); padding-top: 1.25rem; margin-bottom: 0; }

.page-intro { margin-bottom: 2rem; }
.page-intro h1 { font-size: 1.9rem; margin-bottom: .75rem; }
.page-intro p:not(.eyebrow) { color: var(--pnp-text-gray); max-width: 750px; }
.module-card { padding: 1.5rem; display: flex; flex-direction: column; }
.module-card .module-label { font-size: .65rem; letter-spacing: .08em; color: var(--pnp-teal); margin: 1.2rem 0 .4rem; }
.module-card .card-title { font-size: 1.1rem; }
.module-card .card-text { color: var(--pnp-text-gray); font-size: .86rem; margin-bottom: 1.5rem; }
.module-card .btn { margin-top: auto; align-self: flex-start; }
.module-banner { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.5rem; background: #eaf1fd; border: 1px solid #d5e2f8; border-radius: 12px; }
.module-banner h2 { font-size: 1rem; margin-bottom: .4rem; }
.module-banner p { margin: 0; font-size: .83rem; color: #536783; }
.app-footer { margin-top: auto; padding: 1.75rem 0; border-top: 1px solid var(--line); background: white; font-size: .75rem; color: var(--pnp-text-gray); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { font-size: .63rem; font-weight: 750; letter-spacing: .15em; color: #3a526e; margin-bottom: .35rem; }
.footer-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: #53647b; text-decoration: none; }
.text-purple { color: var(--pnp-purple); }
.border-purple { border-color: var(--pnp-purple); }
.ms-Icon { display: inline-block; font-style: normal; }
.ms-Icon::before { content: "\25c6"; }
.ms-Icon--Robot::before { content: "\2699"; }
.ms-Icon--Play::before { content: "\25b6"; }
.ms-Icon--Lightbulb::before { content: "\2600"; }
.ms-Icon--ChevronRight::before { content: "\203a"; }
.ms-Icon--HeartFill::before { content: "\2665"; }

@media (max-width: 1199.98px) {
    .training-hero { padding: 2.5rem; gap: 2rem; }
    .navbar-nav .nav-link { padding-left: .65rem; padding-right: .65rem; }
}
@media (max-width: 991.98px) {
    .navbar-collapse { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); }
    .navbar-nav { gap: .4rem; }
    .nav-login, .account-button { margin-left: 0; margin-top: .25rem; }
    .training-hero { grid-template-columns: 1fr; }
    .hero-description { max-width: 600px; }
    .flow-preview { max-width: 100%; }
    .hero-copy { max-width: 650px; }
    .auth-intro, .auth-panel { padding: 2rem; }
    .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
    .practice-card { padding: 1.3rem; }
}
@media (max-width: 767.98px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-intro { padding: 1.75rem; }
    .auth-intro h2 { font-size: 1.6rem; margin: .75rem 0; }
    .auth-intro h2 br { display: none; }
    .auth-benefits { display: none; }
    .auth-panel { padding: 1.75rem; }
    .workspace-header { align-items: flex-start; }
    .workspace-header h1 { font-size: 1.4rem; }
    .workspace-account { max-width: 40%; padding: .5rem .7rem; }
    .workspace-account small { font-size: .6rem; }
    .workspace-content { padding: 1.25rem; }
    .workspace-tab { font-size: .8rem; padding: .5rem .7rem; }
    .practice-card-top { margin-bottom: 1rem; }
}
@media (max-width: 575.98px) {
    .app-navbar { padding: .8rem 0; }
    .app-main { padding-top: 1.25rem; padding-bottom: 2rem; }
    .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
    .brand-copy strong { font-size: .9rem; }
    .brand-copy small { font-size: .49rem; letter-spacing: .1em; }
    .navbar-brand { gap: .6rem; margin-right: .5rem; }
    .training-hero { padding: 1.5rem; border-radius: 14px; gap: 1.75rem; }
    .training-hero h1 { font-size: 1.9rem; }
    .hero-description { font-size: .85rem; }
    .hero-actions { flex-direction: column; }
    .hero-features { font-size: .65rem; gap: .5rem .8rem; }
    .flow-steps { padding-left: .85rem; padding-right: .85rem; }
    .flow-steps li { gap: .65rem; }
    .flow-steps strong { font-size: .78rem; }
    .flow-steps small { font-size: .62rem; }
    .flow-type { display: none; }
    .flow-preview-header { padding-left: .85rem; padding-right: .85rem; font-size: .65rem; }
    .practice-section, .learning-section { margin-top: 2rem; }
    .ecosystem-details { padding: 1rem; }
    .ecosystem-details summary > span { display: block; margin-left: 1.1rem; }
    .workspace-header { flex-direction: column; }
    .workspace-account { max-width: 100%; }
    .workspace-content { padding: 1rem; }
    .workspace-nav { gap: .15rem; padding: .4rem; }
    .workspace-tab { padding: .5rem .6rem; }
    .training #export-form > .d-flex { padding: .65rem; }
    .training #export-scope { max-width: 100%; }
    .training #query-result { table-layout: fixed; font-size: .68rem; }
    .training #query-result th, .training #query-result td { padding: .45rem .25rem; }
    .training #query-submit { flex-shrink: 0; }
    .training #query-code { min-width: 0; flex: 1; }
    .training #query-code + .btn { padding-left: .75rem; padding-right: .75rem; }
    .footer-links { gap: .5rem; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
