:root {
    --bg: #f7f8fa;
    --panel: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --primary: #0e7490;
    --primary-strong: #155e75;
    --primary-soft: #ecfeff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --gold: #b7791f;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    --ai-blue: #0e7490;
    --ai-cyan: #22d3ee;
    --ai-mint: #10b981;
    --ai-amber: #f59e0b;
    --glass: rgba(255, 255, 255, 0.74);
    --glow: 0 18px 60px rgba(37, 99, 235, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
}

button, input, textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-root {
    min-height: 100vh;
}

.loading-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: var(--muted);
}

.loading-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--line);
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn {
    height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.btn-primary {
    color: white;
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-secondary {
    border-color: var(--line);
}

.btn-ghost {
    color: var(--muted);
    background: transparent;
}

.btn-danger {
    color: white;
    background: var(--danger);
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ink);
}

.field span em,
.field span small {
    border-radius: 999px;
    padding: 2px 7px;
    font-style: normal;
    font-size: 11px;
    font-weight: 750;
}

.field span em {
    color: #155e75;
    background: var(--primary-soft);
}

.field span small {
    color: var(--muted);
    background: #f1f5f9;
}

.input, .textarea, .select {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 12px;
    background: white;
    color: var(--ink);
    outline: none;
}

.textarea {
    min-height: 92px;
    resize: vertical;
}

.input:focus, .textarea:focus, .select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.field.has-error .input,
.field.has-error .textarea,
.field.has-error .select {
    border-color: rgba(220, 38, 38, 0.42);
}

.field-error {
    color: var(--danger);
    font-size: 12px;
}

.badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.badge-warning {
    color: #92400e;
    background: #fef3c7;
}

.badge-success {
    color: #166534;
    background: #dcfce7;
}

.badge-danger {
    color: #991b1b;
    background: #fee2e2;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.employee-card,
.result-card,
.ip-card,
.package-card,
.choice {
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.employee-card:hover,
.result-card:hover,
.ip-card:hover,
.package-card:hover,
.choice:hover {
    border-color: var(--line-strong);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.home-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden auto;
    color: #102033;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.58) 0 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.58) 0 1px, transparent 1px),
        radial-gradient(circle at 44% 44%, rgba(20, 184, 166, 0.2), transparent 30%),
        radial-gradient(circle at 82% 52%, rgba(14, 116, 144, 0.12), transparent 26%),
        linear-gradient(135deg, #f7fcff 0%, #eafcff 54%, #fff8ed 100%);
    background-size: 22px 22px, 22px 22px, auto, auto, auto;
}

.home-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-page > *:not(.home-canvas) {
    position: relative;
    z-index: 1;
}

.home-rail {
    position: fixed;
    z-index: 6;
    left: 0;
    top: 0;
    bottom: 0;
    width: 74px;
    border-right: 1px solid rgba(14, 116, 144, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(18px);
}

.home-rail-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    background: #0e7490;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(14, 116, 144, 0.24);
}

.home-rail nav,
.home-rail-bottom {
    display: grid;
    gap: 14px;
}

.home-rail nav {
    margin-top: 48px;
}

.home-rail-bottom {
    margin-top: auto;
}

.home-rail a:not(.home-rail-logo) {
    width: 48px;
    min-height: 48px;
    border: 1px solid rgba(14, 116, 144, 0.08);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #38586a;
    background: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.home-rail a.active,
.home-rail a:hover {
    color: #0e7490;
    background: #e6fbff;
    box-shadow: 0 14px 34px rgba(14, 116, 144, 0.12);
}

.home-rail span {
    font-size: 19px;
    line-height: 1;
}

.home-rail b {
    font-size: 11px;
    line-height: 1;
}

.home-cta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-hero {
    width: 100%;
    min-height: 100vh;
    padding: 68px clamp(34px, 6vw, 96px) 72px 112px;
    display: grid;
    grid-template-columns: minmax(620px, 1.18fr) minmax(420px, 0.82fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px 34px;
}

.home-hero-copy {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    align-content: center;
    gap: 20px;
    justify-self: start;
    max-width: 560px;
}

.home-kicker {
    width: fit-content;
    min-height: 34px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-strong);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 750;
    box-shadow: 0 10px 26px rgba(14, 116, 144, 0.08);
}

.home-kicker i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 6px rgba(20, 184, 166, 0.12);
}

.home-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(48px, 4.7vw, 82px);
    line-height: 1.08;
    letter-spacing: 0;
    font-weight: 900;
}

.home-hero p {
    max-width: 660px;
    margin: 0;
    color: #50657a;
    font-size: 16px;
}

.home-visual {
    grid-column: 1;
    grid-row: 1;
    min-height: 640px;
    position: relative;
    align-self: stretch;
}

.fleet-core {
    position: absolute;
    left: 4%;
    right: -6%;
    top: 30%;
    height: 220px;
    clip-path: polygon(0 58%, 70% 16%, 100% 48%, 72% 68%, 20% 76%);
    background:
        radial-gradient(circle at 58% 48%, rgba(255, 255, 255, 0.96), transparent 10%),
        radial-gradient(circle at 58% 48%, rgba(34, 211, 238, 0.72), transparent 22%),
        linear-gradient(90deg, rgba(14, 116, 144, 0.08), rgba(103, 232, 249, 0.82), rgba(245, 158, 11, 0.28));
    filter: drop-shadow(0 34px 90px rgba(14, 116, 144, 0.2));
    animation: fleetFloat 7s ease-in-out infinite;
}

.fleet-core::before,
.fleet-core::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(14, 116, 144, 0.9) 0 1.2px, transparent 1.4px);
    background-size: 14px 12px;
    opacity: 0.55;
    mix-blend-mode: multiply;
}

.fleet-core::after {
    opacity: 0.28;
    transform: translateX(10px);
}

.orbit-ring {
    position: absolute;
    left: 10%;
    top: 15%;
    width: 720px;
    height: 520px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.ring-b {
    left: 0;
    top: 4%;
    width: 880px;
    height: 650px;
    opacity: 0.65;
}

.fleet-label,
.fleet-card {
    position: absolute;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(18px);
}

.fleet-label {
    right: 8%;
    top: 28%;
    padding: 9px 12px;
    color: var(--primary-strong);
    font-weight: 800;
}

.fleet-card {
    min-width: 150px;
    padding: 14px;
    display: grid;
    gap: 3px;
}

.fleet-card strong {
    font-size: 18px;
}

.fleet-card span {
    color: var(--muted);
}

.card-a {
    left: 30%;
    bottom: 15%;
}

.card-b {
    right: 18%;
    bottom: 23%;
}

.card-c {
    right: 2%;
    top: 55%;
}

.home-feature-strip {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 14px;
    overflow: hidden;
}

.home-feature-strip article {
    min-height: 96px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 4px;
    color: #102033;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(20px);
}

.home-feature-strip strong {
    font-size: 18px;
}

.home-feature-strip span {
    color: #557084;
}

@keyframes fleetFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
    50% { transform: translate3d(10px, -10px, 0) rotate(1deg); }
}

.home-band,
.home-flow,
.home-growth {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 22px;
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 8px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 18px 58px rgba(15, 23, 42, 0.07);
    backdrop-filter: blur(18px);
}

.home-section-title {
    margin-bottom: 18px;
}

.home-section-title span {
    color: var(--primary-strong);
    font-weight: 800;
}

.home-section-title h2,
.home-growth h2 {
    margin: 4px 0 0;
    font-size: 28px;
    letter-spacing: 0;
}

.home-employee-grid,
.home-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

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

.home-employee-card,
.home-flow-grid article {
    min-height: 154px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 8px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.72);
}

.home-employee-card span,
.home-flow-grid span {
    color: #0f766e;
    font-weight: 850;
}

.home-employee-card strong,
.home-flow-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 17px;
}

.home-employee-card p,
.home-flow-grid p,
.home-growth p {
    margin: 8px 0 0;
    color: #5b6f82;
}

.home-growth {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.home-growth div {
    max-width: 760px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
    background: #f7f8fb;
    color: var(--ink);
}

.hero-copy {
    padding: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    border-right: 1px solid var(--line);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.hero-copy::before {
    content: "";
    position: absolute;
    inset: auto -12% -24% 24%;
    height: 320px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 116, 144, 0.12), rgba(14, 116, 144, 0));
    pointer-events: none;
}

.hero-copy > * {
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    margin: 0;
    max-width: 620px;
    font-size: 46px;
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 620px;
    margin: 0;
    color: #475569;
    font-size: 16px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-points span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--primary-strong);
    background: #ffffff;
}

.hero-flow {
    width: min(560px, 100%);
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.hero-flow div {
    min-height: 82px;
    padding: 14px 12px;
    display: grid;
    align-content: center;
    gap: 4px;
    border-right: 1px solid var(--line);
}

.hero-flow div:last-child {
    border-right: 0;
}

.hero-flow strong {
    color: var(--primary);
    font-size: 12px;
}

.hero-flow span {
    font-weight: 700;
}

.login-panel-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    overflow: hidden;
    background: #07111f;
}

.login-panel-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.18), rgba(7, 17, 31, 0.72)),
        radial-gradient(circle at 50% 46%, rgba(34, 211, 238, 0.16), transparent 32%);
    pointer-events: none;
}

.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-orbit-label {
    position: absolute;
    z-index: 1;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.86);
    background: rgba(15, 23, 42, 0.44);
    backdrop-filter: blur(10px);
    font-size: 12px;
}

.orbit-a {
    left: 18%;
    top: 31%;
}

.orbit-b {
    right: 18%;
    top: 24%;
}

.orbit-c {
    left: 22%;
    bottom: 28%;
}

.login-panel {
    position: relative;
    z-index: 2;
    width: min(420px, calc(100vw - 40px));
    padding: 26px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.36);
    background: rgba(248,250,252,0.9);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(0,0,0,0.32);
    backdrop-filter: blur(18px);
}

.login-panel h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.login-panel p {
    margin: 0 0 20px;
    color: var(--muted);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid rgba(14, 116, 144, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
}

.auth-tab {
    height: 36px;
    border: 0;
    border-radius: 6px;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
}

.auth-tab.is-active {
    color: white;
    background: var(--primary);
    box-shadow: 0 6px 16px rgba(14, 116, 144, 0.2);
}

.login-form {
    display: grid;
    gap: 14px;
}

.auth-link {
    justify-self: start;
    border: 0;
    padding: 0;
    color: var(--primary);
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.button-link {
    cursor: pointer;
}

.auth-result {
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.72);
    color: var(--muted);
    word-break: break-all;
}

.auth-result a {
    color: var(--primary);
    font-weight: 700;
}

/* V2-02: auth login/register/password pages */
.auth-v2-page {
    grid-template-columns: minmax(480px, 0.95fr) minmax(540px, 1.05fr);
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 199, 232, 0.16), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(109, 92, 255, 0.16), transparent 30%),
        linear-gradient(135deg, #f6fbff 0%, #ffffff 50%, #edf6ff 100%);
}

.auth-v2-hero {
    border-right: 1px solid rgba(37, 99, 235, 0.10);
    background:
        linear-gradient(rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
        rgba(255, 255, 255, 0.48);
    background-size: 34px 34px, 34px 34px, auto;
}

.auth-v2-hero::before {
    inset: auto -12% -18% 18%;
    height: 360px;
    background: radial-gradient(circle, rgba(35, 103, 255, 0.14), rgba(34, 199, 232, 0.04) 46%, transparent 70%);
}

.auth-v2-brand {
    padding: 0;
    color: var(--v2-text, var(--ink));
}

.auth-v2-brand .brand-mark {
    background: var(--v2-gradient-primary);
    box-shadow: 0 12px 28px rgba(35, 103, 255, 0.24);
}

.auth-v2-kicker {
    width: fit-content;
    border: 1px solid rgba(35, 103, 255, 0.12);
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--v2-primary);
    background: rgba(35, 103, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.auth-v2-hero h1 {
    max-width: 680px;
    color: var(--v2-text, var(--ink));
    font-size: 52px;
}

.auth-v2-hero p {
    max-width: 650px;
    color: var(--v2-muted, var(--muted));
    font-size: 17px;
}

.auth-v2-metrics {
    max-width: 620px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.auth-v2-metrics div,
.auth-v2-preview {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--v2-shadow-soft);
    backdrop-filter: blur(16px);
}

.auth-v2-metrics div {
    min-height: 84px;
    padding: 16px;
    display: grid;
    align-content: center;
    gap: 4px;
}

.auth-v2-metrics strong {
    color: var(--v2-primary);
    font-size: 28px;
    line-height: 1;
}

.auth-v2-metrics span {
    color: var(--v2-muted, var(--muted));
    font-weight: 700;
}

.auth-v2-flow {
    border-color: var(--v2-border);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-soft);
}

.auth-v2-flow div {
    border-color: rgba(37, 99, 235, 0.10);
}

.auth-v2-flow strong {
    color: var(--v2-primary);
}

.auth-v2-preview {
    width: min(560px, 100%);
    padding: 18px;
}

.auth-v2-preview-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-v2-preview-head b,
.auth-v2-preview-head small {
    display: block;
}

.auth-v2-preview-head small {
    color: var(--v2-muted, var(--muted));
}

.auth-v2-preview-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    color: var(--v2-muted, var(--muted));
}

.auth-v2-preview-grid b {
    color: var(--v2-text, var(--ink));
}

.auth-v2-panel-wrap {
    background:
        radial-gradient(circle at 48% 36%, rgba(34, 199, 232, 0.24), transparent 28%),
        radial-gradient(circle at 72% 70%, rgba(109, 92, 255, 0.16), transparent 32%),
        linear-gradient(135deg, #eef7ff 0%, #ffffff 54%, #f1f6ff 100%);
}

.auth-v2-panel-wrap::after {
    background:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.72;
}

.auth-v2-panel {
    width: min(472px, calc(100vw - 40px));
    padding: 30px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 30px 92px rgba(30, 64, 175, 0.16);
}

.auth-v2-panel-title {
    margin-bottom: 22px;
}

.auth-v2-panel-title span {
    color: var(--v2-primary);
    font-size: 12px;
    font-weight: 850;
}

.auth-v2-panel-title h2 {
    margin: 6px 0 8px;
    color: var(--v2-text, var(--ink));
    font-size: 26px;
}

.auth-v2-panel-title p {
    margin: 0;
    color: var(--v2-muted, var(--muted));
}

.auth-v2-panel .auth-tabs {
    border-color: rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.86);
}

.auth-v2-panel .auth-tab {
    height: 42px;
    border-radius: 10px;
}

.auth-v2-panel .auth-tab.is-active {
    background: var(--v2-gradient-primary);
    box-shadow: 0 12px 28px rgba(35, 103, 255, 0.22);
}

.auth-v2-panel .input {
    min-height: 46px;
    border-color: rgba(37, 99, 235, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
}

.auth-v2-panel .input:focus {
    border-color: rgba(35, 103, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(35, 103, 255, 0.11);
}

.auth-v2-actions {
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-v2-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v2-muted, var(--muted));
    font-size: 13px;
}

.auth-v2-check input {
    accent-color: var(--v2-primary);
}

.auth-v2-inline-note {
    border: 1px solid rgba(34, 199, 232, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--v2-muted, var(--muted));
    background: rgba(34, 199, 232, 0.08);
    font-size: 13px;
}

.auth-v2-submit {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: var(--v2-gradient-primary);
    box-shadow: 0 16px 34px rgba(35, 103, 255, 0.22);
}

.auth-v2-security-page .auth-v2-hero {
    justify-content: center;
}

.auth-v2-security-steps {
    max-width: 580px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-v2-security-steps div {
    min-height: 88px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    padding: 14px;
    display: grid;
    align-content: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--v2-shadow-soft);
}

.auth-v2-security-steps .is-active {
    border-color: rgba(35, 103, 255, 0.28);
    background: rgba(35, 103, 255, 0.10);
}

.auth-v2-security-steps strong {
    color: var(--v2-primary);
    font-size: 12px;
}

.auth-v2-security-steps span {
    font-weight: 760;
}

/* V2-02R: sliced implementation from auth-login-register-v2.jpg */
.auth-v2-sliced-page {
    position: relative;
    min-height: 100vh;
    grid-template-columns: minmax(760px, 1fr) minmax(560px, 0.68fr);
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 12%, rgba(87, 139, 255, 0.13), transparent 30%),
        radial-gradient(circle at 20% 72%, rgba(82, 216, 245, 0.10), transparent 34%),
        linear-gradient(135deg, #fbfdff 0%, #f7fbff 48%, #eef6ff 100%);
}

@media (min-width: 901px) {
    .auth-v2-sliced-page {
        height: 100vh;
    }
}

.auth-v2-sliced-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(120deg, rgba(143, 179, 255, 0.18) 0 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px);
    background-size: 260px 160px, 180px 140px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

.auth-v2-sliced-hero {
    min-height: 100vh;
    padding: clamp(30px, 4vh, 72px) 0 clamp(56px, 6vh, 88px) clamp(52px, 5vw, 116px);
    justify-content: flex-start;
    gap: 0;
    border: 0;
    background: transparent;
}

.auth-v2-sliced-hero::before {
    display: none;
}

.auth-v2-sliced-hero .auth-v2-brand {
    height: clamp(56px, 6.4vh, 74px);
    gap: 18px;
    font-size: 28px;
    font-weight: 850;
    color: #101a3a;
}

.auth-v2-sliced-hero .auth-v2-brand img {
    width: clamp(48px, 5.7vh, 62px);
    height: clamp(48px, 5.7vh, 62px);
    object-fit: contain;
}

.auth-v2-sliced-hero h1 {
    margin-top: clamp(42px, 6vh, 96px);
    max-width: min(760px, 43vw);
    color: #080f2d;
    font-size: clamp(34px, min(2.4vw, 5vh), 46px);
    line-height: 1.18;
    font-weight: 900;
}

.auth-v2-sliced-hero h1 span {
    color: #1877ff;
}

.auth-v2-sliced-hero p {
    margin-top: clamp(10px, 1.6vh, 18px);
    max-width: 760px;
    color: #7384aa;
    font-size: clamp(15px, 1.02vw, 20px);
    letter-spacing: 0;
}

.auth-v2-robot-stage {
    position: relative;
    width: min(42vw, 780px);
    max-width: calc(100vw - 920px);
    min-width: 680px;
    margin-top: clamp(12px, 2vh, 26px);
    margin-left: -20px;
    pointer-events: none;
}

.auth-v2-robot-img {
    display: block;
    width: min(36vw, 500px);
    margin: 0 auto;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 58%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
    mask-image: radial-gradient(ellipse at 50% 52%, #000 58%, rgba(0, 0, 0, 0.78) 76%, transparent 100%);
}

.auth-v2-float-card {
    position: absolute;
    border: 1px solid rgba(139, 199, 255, 0.34);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 4px;
    color: #24416f;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 18px 45px rgba(93, 144, 214, 0.12);
    backdrop-filter: blur(12px);
}

.auth-v2-float-card span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #2d7cff;
    background: rgba(48, 141, 255, 0.12);
    font-size: 13px;
    font-weight: 850;
}

.auth-v2-float-card b {
    color: #18315f;
    font-size: 16px;
}

.auth-v2-float-card small {
    color: #6b80a8;
    font-size: 12px;
}

.auth-v2-card-strategy {
    left: 0;
    top: 23%;
    width: 250px;
    min-height: 150px;
    grid-template-columns: 52px 1fr;
    align-items: center;
}

.auth-v2-card-strategy .auth-v2-avatar {
    grid-row: 1 / span 3;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(135deg, #1d7fff, #20d4e8);
}

.auth-v2-card-strategy em {
    width: fit-content;
    border-radius: 999px;
    padding: 3px 9px;
    color: #15b8aa;
    background: rgba(20, 220, 205, 0.12);
    font-style: normal;
    font-size: 12px;
}

.auth-v2-card-strategy i {
    grid-column: 1 / -1;
    height: 36px;
    border-radius: 8px;
    opacity: 0.55;
    background:
        linear-gradient(90deg, rgba(31, 126, 255, 0.18) 18%, transparent 18% 28%, rgba(31, 126, 255, 0.12) 28% 100%),
        repeating-linear-gradient(90deg, rgba(31, 126, 255, 0.25) 0 8px, transparent 8px 28px);
}

.auth-v2-card-content {
    right: 12%;
    top: 3%;
    width: 190px;
}

.auth-v2-card-convert {
    right: 0;
    top: 37%;
    width: 190px;
}

.auth-v2-card-memory {
    right: 2%;
    bottom: 16%;
    width: 190px;
}

.auth-v2-capabilities {
    position: absolute;
    left: clamp(92px, 7vw, 170px);
    right: auto;
    bottom: clamp(44px, 5.6vh, 74px);
    width: min(680px, 42vw);
    display: grid;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    gap: clamp(18px, 2.4vw, 54px);
    align-items: start;
}

.auth-v2-capabilities div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.auth-v2-cap-icon {
    width: clamp(48px, 5.6vh, 64px);
    height: clamp(48px, 5.6vh, 64px);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #1e78ff;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.55)),
        linear-gradient(135deg, rgba(40, 130, 255, 0.12), rgba(126, 80, 255, 0.12));
    box-shadow: 0 14px 35px rgba(64, 110, 200, 0.12);
    font-weight: 900;
}

.auth-v2-capabilities b {
    color: #15224a;
    font-size: 15px;
    font-weight: 850;
}

.auth-v2-capabilities small {
    color: #65779f;
    font-size: 12px;
    line-height: 1.35;
}

.auth-v2-sliced-panel-wrap {
    min-height: 100vh;
    place-items: center start;
    overflow: visible;
    margin-left: 18px;
    padding-left: 0;
    background: transparent;
}

.auth-v2-sliced-panel-wrap::after {
    display: none;
}

.auth-v2-sliced-panel {
    z-index: 3;
    width: min(470px, 27vw);
    min-width: 430px;
    height: min(690px, calc(100vh - 190px));
    min-height: 0;
    padding: clamp(22px, 3vh, 36px) 42px clamp(18px, 2.6vh, 30px);
    border: 1px solid rgba(195, 211, 241, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 80px rgba(56, 91, 150, 0.15);
    backdrop-filter: blur(20px);
}

.auth-v2-sliced-panel .auth-tabs {
    height: clamp(52px, 6.2vh, 66px);
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: clamp(16px, 3.2vh, 34px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #f3f7ff;
    box-shadow: inset 0 0 0 1px rgba(219, 229, 247, 0.6);
}

.auth-v2-sliced-panel .auth-tab {
    position: relative;
    height: clamp(52px, 6.2vh, 66px);
    border-radius: 18px;
    color: #65749b;
    background: transparent;
    font-size: 18px;
    font-weight: 850;
}

.auth-v2-sliced-panel .auth-tab.is-active {
    color: #0876ff;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 35px rgba(38, 88, 160, 0.08);
}

.auth-v2-sliced-panel .auth-tab.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: #1677ff;
    transform: translateX(-50%);
}

.auth-v2-sliced-panel .login-form {
    gap: clamp(14px, 1.9vh, 20px);
}

.auth-v2-sliced-panel .field {
    gap: 12px;
}

.auth-v2-sliced-panel .field span {
    color: #17244d;
    font-size: 14px;
    font-weight: 820;
}

.auth-v2-sliced-panel .input {
    min-height: clamp(46px, 5.2vh, 56px);
    border-color: #d8e3f4;
    border-radius: 16px;
    padding: 0 22px;
    color: #17244d;
    background: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.auth-v2-sliced-panel .input::placeholder {
    color: #a7b6d4;
}

.auth-v2-sliced-panel .input:focus {
    border-color: #8abaff;
    box-shadow: 0 0 0 4px rgba(35, 126, 255, 0.11);
}

.auth-v2-sliced-panel .auth-v2-actions {
    margin-top: 4px;
    flex-direction: row;
}

.auth-v2-sliced-panel .auth-v2-check,
.auth-v2-sliced-panel .auth-link {
    color: #6d7da6;
    font-size: 14px;
}

.auth-v2-sliced-panel .auth-link {
    color: #126fff;
}

.auth-v2-sliced-panel .auth-v2-check input {
    width: 24px;
    height: 24px;
}

.auth-v2-sliced-panel .auth-v2-submit {
    height: clamp(50px, 5.8vh, 62px);
    margin-top: clamp(4px, 1vh, 12px);
    border-radius: 16px;
    font-size: 19px;
    font-weight: 850;
    background: linear-gradient(105deg, #2688ff 0%, #2b76ff 45%, #7041ff 100%);
    box-shadow: 0 18px 36px rgba(63, 100, 255, 0.24);
}

.auth-v2-other-login {
    margin-top: clamp(14px, 2.8vh, 30px);
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: 16px;
    align-items: center;
    justify-items: center;
    color: #8795b8;
    font-size: 16px;
}

.auth-v2-other-login span {
    width: 100%;
    height: 1px;
    background: #e2e9f5;
}

.auth-v2-other-login button {
    width: clamp(44px, 5vh, 54px);
    height: clamp(44px, 5vh, 54px);
    margin-top: clamp(8px, 1.5vh, 16px);
    border: 1px solid #dce6f5;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.74);
}

.auth-v2-other-login button:first-of-type {
    grid-column: 2;
    justify-self: center;
}

.auth-v2-other-login button:last-of-type {
    grid-column: 3;
    justify-self: center;
}

.auth-v2-other-login img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.auth-v2-forgot-preview {
    position: absolute;
    z-index: 2;
    right: clamp(36px, 3.9vw, 98px);
    top: clamp(250px, 26.5vh, 410px);
    width: min(420px, 25.8vw);
    pointer-events: none;
}

.auth-v2-sliced-page .auth-v2-forgot-preview {
    display: none;
}

.auth-v2-forgot-preview img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 22px 48px rgba(56, 91, 150, 0.14));
}

.auth-v2-agreement {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(8px, 1.2vh, 18px);
    margin: 0;
    color: #2f65d8;
    text-align: center;
    font-size: 14px;
}

.shell {
    height: 100vh;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 72px minmax(0, 1fr);
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.6) 0 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.6) 0 1px, transparent 1px),
        radial-gradient(circle at 7% 10%, rgba(20, 184, 166, 0.14), transparent 24%),
        linear-gradient(135deg, #f7fbfc 0%, #edf9fb 100%);
    background-size: 22px 22px, 22px 22px, auto, auto;
}

.shell.is-collapsed {
    grid-template-columns: 104px minmax(0, 1fr);
}

.shell:not(.is-collapsed) {
    grid-template-columns: 272px minmax(0, 1fr);
}

.sidebar {
    grid-row: 1 / span 2;
    width: 70px;
    height: calc(100vh - 40px);
    min-height: 0;
    margin: 20px 0 20px 20px;
    box-sizing: border-box;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(18px);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.shell:not(.is-collapsed) .sidebar {
    width: 226px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    font-weight: 750;
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--primary);
}

.side-brand-row {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 10px;
}

.side-brand-row .brand {
    min-width: 0;
    width: 100%;
    color: inherit;
    text-decoration: none;
    justify-content: center;
    padding: 0;
}

.brand-text,
.nav-label,
.nav-caret,
.side-foot-btn b {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    width: 38px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--primary-strong);
    background: #fff;
    font-weight: 900;
}

.side-collapse {
    flex: 0 0 auto;
}

.nav {
    display: grid;
    gap: 10px;
    min-height: 0;
    overflow: auto;
    padding: 2px 0;
}

.nav button,
.side-foot-btn {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.38);
    text-align: left;
    font-weight: 700;
}

.nav button.active,
.nav button:hover,
.side-foot-btn:hover {
    color: var(--primary-strong);
    background: var(--primary-soft);
}

.nav-icon,
.side-foot-btn span {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--primary-strong);
    background: rgba(236, 254, 255, 0.82);
    font-weight: 850;
}

.shell:not(.is-collapsed) .nav button,
.shell:not(.is-collapsed) .side-foot-btn {
    justify-content: flex-start;
    padding: 0 10px;
}

.shell:not(.is-collapsed) .side-brand-row {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
}

.shell:not(.is-collapsed) .side-brand-row .brand {
    justify-content: flex-start;
    padding: 0;
}

.nav-group {
    display: grid;
    gap: 3px;
}

.nav-group-trigger {
    position: relative;
}

.nav-caret {
    margin-left: auto;
    transition: transform 140ms ease;
}

.nav-group.is-open .nav-caret {
    transform: rotate(180deg);
}

.nav-children {
    display: none;
    padding: 0 0 3px 40px;
    gap: 3px;
}

.nav-group.is-open .nav-children {
    display: grid;
}

.nav-child {
    min-height: 34px !important;
    padding-left: 8px !important;
    font-size: 13px;
}

.nav-child .nav-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    color: transparent;
    background: #cbd5e1;
}

.sidebar-foot {
    margin-top: auto;
    display: grid;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.shell.is-collapsed .brand-text,
.shell.is-collapsed .nav-label,
.shell.is-collapsed .nav-caret,
.shell.is-collapsed .side-foot-btn b {
    display: none;
}

.shell.is-collapsed .brand {
    justify-content: center;
    padding: 0;
}

.shell.is-collapsed .side-brand-row {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.shell.is-collapsed .nav button,
.shell.is-collapsed .side-foot-btn {
    justify-content: center;
    padding: 0;
}

.shell.is-collapsed .nav-children {
    display: none;
}

.shell.is-collapsed .nav {
    gap: 6px;
    overflow: visible;
}

.topbar {
    grid-column: 2;
    margin: 20px 20px 0 8px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.82);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.ip-switcher {
    min-width: 260px;
}

.ip-control {
    min-width: min(520px, 54vw);
    display: grid;
    grid-template-columns: auto minmax(180px, 280px) auto auto;
    align-items: center;
    gap: 8px;
}

.ip-control label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ip-control small {
    color: var(--muted);
    white-space: nowrap;
}

.ip-create-btn {
    height: 36px;
    padding: 0 12px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.message-btn {
    position: relative;
}

.message-btn span {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--danger);
    font-size: 11px;
}

.content {
    grid-column: 2;
    min-height: 0;
    padding: 20px 20px 24px 8px;
    overflow: auto;
}

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.page-head h1 {
    margin: 0;
    font-size: 24px;
    line-height: 32px;
}

.page-head p {
    margin: 4px 0 0;
    color: var(--muted);
}

.announcement-strip {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.announcement-strip article {
    min-height: 72px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.announcement-strip span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 750;
}

.announcement-strip strong {
    display: block;
    margin: 2px 0;
}

.announcement-strip p {
    margin: 0;
    color: var(--muted);
}

.workspace-hero {
    min-height: 220px;
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(14,116,144,0.24);
    border-radius: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 22px;
    align-items: stretch;
    background:
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, 0.22), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f0fdfa 46%, #f8fafc 100%);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.workspace-title {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 12px;
}

.workspace-title h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.workspace-title p {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 15px;
}

.workspace-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.workspace-hero-meta span {
    min-height: 28px;
    border: 1px solid rgba(14,116,144,0.16);
    border-radius: 999px;
    padding: 5px 10px;
    color: #155e75;
    background: rgba(255,255,255,0.68);
    font-size: 12px;
    font-weight: 700;
}

.workspace-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.workspace-focus {
    width: min(100%, 720px);
    border: 1px solid rgba(14,116,144,0.22);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: rgba(255,255,255,0.78);
}

.workspace-focus span,
.workspace-focus p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.workspace-focus strong {
    color: var(--primary-strong);
    font-size: 17px;
}

.workspace-score {
    border: 1px solid rgba(14,116,144,0.18);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    text-align: center;
    background: rgba(255,255,255,0.72);
}

.workspace-score span,
.workspace-score small {
    color: var(--muted);
}

.workspace-score strong {
    color: var(--primary-strong);
    font-size: 54px;
    line-height: 1;
}

.workspace-score small {
    max-width: 180px;
}

.score-mini {
    min-width: 140px;
    border: 1px solid rgba(14,116,144,0.14);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
}

.score-mini b {
    color: var(--primary-strong);
}

.workspace-top-grid,
.workspace-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
}

.section-gap {
    margin-top: 16px;
}

.muted-note {
    color: var(--muted);
}

.points-balance {
    margin: 0;
    font-size: 32px;
    font-weight: 750;
}

.points-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.16), transparent 30%),
        linear-gradient(135deg, #ffffff, rgba(236, 254, 255, 0.72));
}

.points-hero .points-balance {
    margin: 8px 0;
    font-size: 52px;
}

.points-summary-grid,
.package-metrics {
    display: grid;
    gap: 10px;
}

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

.points-summary-grid div,
.package-metrics div {
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.points-summary-grid span,
.points-summary-grid strong,
.package-metrics span,
.package-metrics strong {
    display: block;
}

.points-summary-grid span,
.package-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.points-summary-grid strong,
.package-metrics strong {
    margin-top: 5px;
    font-size: 16px;
}

.recharge-notice {
    margin-bottom: 16px;
    border-color: rgba(22, 163, 74, 0.26);
    background: rgba(240, 253, 244, 0.78);
}

.recharge-notice strong,
.recharge-notice span {
    display: block;
}

.recharge-notice span {
    margin-top: 5px;
    color: #166534;
}

.points-next-action,
.point-rule-card {
    min-height: 100%;
}

.package-points {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    background: var(--primary-soft);
}

.package-points strong {
    font-size: 24px;
}

.package-points span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 750;
}

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

.transaction-list {
    display: grid;
    gap: 8px;
}

.transaction-item {
    min-height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.transaction-item.income {
    border-color: rgba(22, 163, 74, 0.2);
}

.transaction-item.expense {
    border-color: rgba(245, 158, 11, 0.22);
}

.transaction-item div:last-child {
    text-align: right;
}

.transaction-item strong,
.transaction-item span {
    display: block;
}

.transaction-item span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title h2 {
    margin: 0 0 4px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.section {
    padding: 18px;
}

.section h2 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 28px;
}

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

.meta-item {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.meta-item small {
    display: block;
    color: var(--muted);
}

.meta-item strong {
    display: block;
    margin-top: 3px;
}

.growth-list {
    display: grid;
    gap: 12px;
}

.growth-item {
    display: grid;
    gap: 8px;
}

.growth-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 220ms ease;
}

.next-card {
    padding: 20px;
    border-color: rgba(14,116,144,0.35);
    background:
        radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
}

.next-card h2 {
    margin: 0 0 10px;
}

.next-reason {
    border-left: 3px solid var(--primary);
    padding: 8px 10px;
    color: #155e75;
    background: rgba(236, 254, 255, 0.72);
    border-radius: 0 8px 8px 0;
    font-size: 13px;
}

.next-impact {
    border: 1px solid rgba(14,116,144,0.16);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 3px;
    background: #fff;
}

.next-impact span {
    color: var(--muted);
    font-size: 12px;
}

.next-impact strong {
    color: var(--primary-strong);
}

.workspace-path {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.path-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.path-steps article {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
    background: #f8fafc;
}

.path-steps article.active {
    border-color: rgba(14,116,144,0.28);
    background: var(--primary-soft);
}

.path-steps span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: white;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.path-steps strong,
.path-steps p {
    margin: 0;
}

.path-steps p {
    color: var(--muted);
    font-size: 13px;
}

.weakest-card {
    margin-top: 12px;
    border: 1px solid rgba(245,158,11,0.24);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 4px;
    background: rgba(255,251,235,0.78);
}

.weakest-card span,
.weakest-card p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
}

.weakest-card strong {
    color: #78350f;
}

.growth-explain {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.growth-explain div {
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 8px;
    padding: 10px;
    background: rgba(236, 254, 255, 0.42);
}

.growth-explain strong,
.growth-explain span {
    display: block;
}

.growth-explain span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.readiness-item {
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 12px;
    background: #fff;
}

.readiness-item.ready {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(240, 253, 244, 0.72);
}

.readiness-item div {
    display: grid;
    gap: 3px;
}

.readiness-item span {
    color: var(--muted);
    font-size: 13px;
}

.employee-card, .result-card, .ip-card, .package-card {
    padding: 16px;
    display: grid;
    gap: 12px;
}

.employee-team-hero {
    border: 1px solid rgba(14,116,144,0.24);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    background:
        radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.16), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
}

.employee-team-hero h2 {
    margin: 8px 0;
    font-size: 24px;
}

.employee-team-hero p {
    margin: 0;
    color: var(--muted);
}

.employee-team-hero aside {
    border: 1px solid rgba(14,116,144,0.16);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.78);
}

.employee-team-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.employee-compare {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.employee-compare-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.employee-compare-grid article {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    align-content: start;
    gap: 6px;
    background: #f8fafc;
}

.employee-compare-grid article.active {
    border-color: rgba(14,116,144,0.32);
    background: var(--primary-soft);
}

.employee-compare-grid strong,
.employee-compare-grid span {
    display: block;
}

.employee-compare-grid span {
    color: var(--muted);
    font-size: 12px;
}

.employee-card header,
.result-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.employee-card h3,
.result-card h3,
.ip-card h3 {
    margin: 0;
    font-size: 16px;
}

.employee-card p,
.result-card p,
.ip-card p {
    margin: 0;
    color: var(--muted);
}

.employee-fit,
.employee-output {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 3px;
    background: #f8fafc;
}

.employee-fit strong,
.employee-output strong {
    color: var(--text);
    font-size: 13px;
}

.employee-fit span,
.employee-output span,
.employee-card-footer small {
    color: var(--muted);
    font-size: 13px;
}

.employee-card-footer {
    display: grid;
    gap: 8px;
}

.assignment-entry-bridge {
    margin: 14px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.assignment-entry-bridge div {
    border: 1px solid rgba(14,116,144,0.16);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(236,254,255,0.48);
}

.assignment-entry-bridge span {
    color: var(--muted);
    font-size: 12px;
}

.assignment-entry-bridge strong {
    color: #155e75;
    font-size: 13px;
}

.assignment-form-assist {
    margin: 14px 0;
    border: 1px solid rgba(14,116,144,0.18);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    background: #f8fafc;
}

.assignment-form-assist > div:first-child {
    display: grid;
    gap: 4px;
}

.assignment-form-assist span,
.assignment-form-assist p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.assignment-form-assist strong {
    color: var(--primary-strong);
}

.quick-fill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: center;
}

.results-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 94% 12%, rgba(34, 211, 238, 0.14), transparent 30%),
        #fff;
}

.results-overview h2 {
    margin: 8px 0 6px;
}

.results-overview p {
    margin: 0;
    color: var(--muted);
}

.result-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.result-summary-grid div,
.result-card-metrics div {
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.result-summary-grid span,
.result-summary-grid strong,
.result-card-metrics span,
.result-card-metrics strong {
    display: block;
}

.result-summary-grid span,
.result-card-metrics span {
    color: var(--muted);
    font-size: 12px;
}

.result-summary-grid strong,
.result-card-metrics strong {
    margin-top: 5px;
    font-size: 18px;
}

.result-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.assignment-visit-panel {
    margin-bottom: 14px;
}

.assignment-visit-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.assignment-visit-list {
    display: grid;
    gap: 10px;
}

.assignment-visit-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 10px;
    background: #fff;
}

.assignment-visit-card.active {
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(255, 251, 235, 0.56);
}

.assignment-visit-card.failed {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.62);
}

.assignment-visit-card.succeeded {
    border-color: rgba(22, 163, 74, 0.2);
    background: rgba(240, 253, 244, 0.62);
}

.assignment-visit-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.assignment-visit-card h3,
.assignment-visit-card p {
    margin: 0;
}

.assignment-visit-card h3 {
    margin-top: 6px;
    font-size: 16px;
}

.assignment-visit-card p,
.assignment-visit-card small {
    color: var(--muted);
}

.assignment-visit-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.assignment-visit-meta div {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.76);
}

.assignment-visit-meta span,
.assignment-visit-meta strong {
    display: block;
}

.assignment-visit-meta span {
    color: var(--muted);
    font-size: 12px;
}

.assignment-visit-meta strong {
    margin-top: 4px;
    font-size: 13px;
}

.assignment-visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.results-grid {
    align-items: stretch;
}

.result-card {
    align-content: start;
}

.result-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.result-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.result-card-actions .btn {
    flex: 1 1 118px;
}

.results-v2-head {
    min-height: 116px;
    padding: 18px 22px;
    margin-bottom: 16px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.9));
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.results-v2-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 6px 10px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 999px;
    color: #0e7490;
    background: rgba(236, 254, 255, 0.86);
    font-size: 12px;
    font-weight: 900;
}

.results-v2-overview {
    border-color: rgba(14, 116, 144, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at 96% 10%, rgba(129, 140, 248, 0.16), transparent 28%);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.results-v2-summary-grid div {
    min-height: 78px;
    border-color: rgba(14, 116, 144, 0.16);
    background: linear-gradient(180deg, rgba(236, 254, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.results-v2-lanes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}

.results-v2-lanes article {
    min-height: 92px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    display: grid;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
}

.results-v2-lanes span {
    color: #0e7490;
    font-size: 12px;
    font-weight: 900;
}

.results-v2-lanes strong {
    color: #0b1b3d;
    font-size: 15px;
}

.results-v2-lanes small {
    color: var(--muted);
    line-height: 1.45;
}

.results-v2-toolbar {
    position: sticky;
    top: 8px;
    z-index: 2;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.results-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.result-v2-card {
    min-height: 276px;
    padding: 18px;
    border-color: rgba(14, 116, 144, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 30%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.result-v2-card header {
    align-items: flex-start;
}

.result-v2-card header h3 {
    margin-top: 8px;
    line-height: 1.35;
}

.result-v2-metrics div {
    border-color: rgba(14, 116, 144, 0.14);
    background: rgba(236, 254, 255, 0.58);
}

.result-v2-actions .btn {
    min-height: 42px;
    border-radius: 12px;
}

.results-v2-visits {
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1180px) {
    .results-v2-lanes,
    .results-v2-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .results-v2-head,
    .results-v2-overview,
    .results-v2-visits {
        border-radius: 16px;
    }

    .results-v2-lanes,
    .results-v2-grid {
        grid-template-columns: 1fr;
    }

    .results-v2-toolbar {
        position: static;
    }
}

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

.onboarding {
    min-height: 100vh;
    padding: 30px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    background:
        linear-gradient(180deg, rgba(236, 254, 255, 0.58), rgba(248, 250, 252, 0) 34%),
        #f7f8fa;
}

.onboarding-top {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.onboarding-progress {
    width: min(640px, 62vw);
    display: grid;
    gap: 10px;
}

.draft-status {
    min-width: 94px;
    text-align: right;
    color: var(--muted);
    font-size: 12px;
}

.steps {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.step-dot {
    min-height: 32px;
    border-radius: 8px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 650;
}

.step-dot b {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f1f5f9;
    font-size: 11px;
}

.step-dot.active {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.step-dot.active b {
    color: var(--primary);
    background: #ffffff;
}

.step-dot.done {
    color: var(--primary-strong);
    background: var(--primary-soft);
    border-color: rgba(14, 116, 144, 0.24);
}

.progress-line {
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.progress-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width 220ms ease;
}

.onboarding-body {
    max-width: 1160px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 700px) 360px;
    gap: 24px;
    align-items: start;
}

.wizard-panel, .preview-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow);
}

.wizard-panel {
    padding: 28px;
}

.wizard-context {
    margin-bottom: 18px;
    border: 1px solid rgba(14,116,144,0.14);
    border-radius: 8px;
    padding: 12px 14px;
    display: grid;
    gap: 4px;
    background: rgba(236, 254, 255, 0.55);
}

.wizard-context span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 750;
}

.wizard-context strong {
    font-size: 16px;
}

.wizard-context p {
    margin: 0;
    color: var(--muted);
}

.preview-panel {
    padding: 22px;
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.preview-panel::before {
    content: "";
    position: absolute;
    inset: -24% -18% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0));
    pointer-events: none;
}

.wizard-panel h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.wizard-panel > p {
    margin: 0 0 22px;
    color: var(--muted);
}

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

.choice {
    min-height: 84px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    background: white;
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice strong {
    display: block;
    margin-bottom: 4px;
}

.choice span {
    color: var(--muted);
    font-size: 13px;
}

.choice.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.08);
}

.wizard-extra {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.wizard-actions {
    margin-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.preview-core {
    height: 160px;
    position: relative;
    display: grid;
    place-items: center;
}

.preview-panel h2 {
    position: relative;
    margin: 10px 0 8px;
    font-size: 20px;
}

.preview-subtitle {
    position: relative;
    margin: 0 0 16px;
    color: var(--muted);
}

.core-orbit {
    position: absolute;
    border: 1px solid rgba(14,116,144,0.22);
    border-radius: 50%;
    animation: orbit 12s linear infinite;
}

.core-orbit.one { width: 132px; height: 132px; }
.core-orbit.two { width: 96px; height: 96px; animation-duration: 9s; }

.core-dot {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff, #22d3ee 36%, #0e7490 76%);
    box-shadow: 0 0 28px rgba(14,116,144,0.26);
}

@keyframes orbit {
    to { transform: rotate(360deg); }
}

.preview-list {
    position: relative;
    display: grid;
    gap: 10px;
}

.preview-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.preview-list span {
    color: var(--muted);
}

.preview-readiness {
    position: relative;
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.preview-readiness div {
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    align-content: center;
    gap: 4px;
    background: #f8fafc;
}

.preview-readiness strong {
    color: var(--primary-strong);
    font-size: 18px;
}

.preview-readiness span {
    color: var(--muted);
    font-size: 12px;
}

.preview-decision {
    position: relative;
    margin-top: 14px;
    border: 1px solid rgba(14,116,144,0.18);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 5px;
    background: rgba(236, 254, 255, 0.62);
}

.preview-decision span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 750;
}

.preview-decision p {
    margin: 0;
    color: var(--muted);
}

.assignment-layout, .result-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
}

.assignment-brief {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.72), rgba(255, 255, 255, 0.94));
}

.assignment-brief h2 {
    margin: 8px 0 6px;
    font-size: 20px;
}

.assignment-brief p {
    margin: 0;
    color: var(--muted);
}

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

.assignment-deliverables div {
    min-height: 82px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.assignment-deliverables strong,
.assignment-deliverables span {
    display: block;
}

.assignment-deliverables strong {
    margin-bottom: 5px;
}

.assignment-deliverables span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.material-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
}

.material-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

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

.material-guide div {
    min-height: 78px;
    padding: 12px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 8px;
    background: #f8fafc;
}

.material-guide strong,
.material-guide span {
    display: block;
}

.material-guide span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.material-notice,
.selected-materials {
    padding: 12px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    background: var(--primary-soft);
}

.material-notice.success {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(240, 253, 244, 0.78);
}

.material-notice.error {
    border-color: rgba(220, 38, 38, 0.22);
    background: #fef2f2;
}

.material-notice strong,
.material-notice span,
.selected-materials strong {
    display: block;
}

.material-notice span,
.selected-materials .tag-row {
    margin-top: 6px;
}

.material-notice span {
    color: var(--muted);
    font-size: 13px;
}

.box-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.box-head h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.box-head p {
    margin: 0;
    color: var(--muted);
}

.material-upload {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 150px;
    gap: 10px;
    align-items: center;
}

.material-upload input[name="description"],
.material-upload input[type="file"],
.material-upload .btn {
    grid-column: 1 / -1;
}

.material-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.material-list {
    display: grid;
    gap: 8px;
}

.material-item {
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff;
}

.material-item.active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.material-item span {
    display: grid;
    gap: 2px;
}

.material-item small {
    color: var(--muted);
}

.material-item em {
    color: #475569;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.material-library {
    display: grid;
    gap: 16px;
}

.material-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.material-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.material-summary article,
.material-library-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 30px rgba(47, 98, 180, .05);
}

.material-summary article {
    padding: 16px 18px;
    display: grid;
    gap: 6px;
}

.material-summary span { color: var(--muted); font-size: 13px; }
.material-summary strong { color: #0b1b3d; font-size: 26px; }
.material-library-panel { padding: 20px; display: grid; gap: 14px; }

.material-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.material-card {
    position: relative;
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, #f8fbff);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.material-card.active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.material-file-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #2563eb; background: #eaf2ff; }
.material-file-icon.type-image { color: #0891b2; background: #e7fbff; }
.material-file-icon.type-text { color: #7c3aed; background: #f2ebff; }
.material-card-body { min-width: 0; display: grid; gap: 5px; }
.material-card-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.material-card-body small, .material-card-body p { color: var(--muted); }
.material-card-body p { margin: 0; font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.material-card-select { grid-column: 1 / -1; display: flex; gap: 7px; align-items: center; color: #31598d; font-size: 12px; }
.material-delete { position: absolute; right: 12px; bottom: 12px; border: 0; background: transparent; color: #94a3b8; cursor: pointer; }
.material-delete:hover { color: #dc2626; }
.material-library-empty { grid-column: 1 / -1; padding: 30px; text-align: center; }

@media (max-width: 1100px) {
    .material-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .material-library-head { align-items: flex-start; flex-direction: column; }
    .material-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .material-library-grid { grid-template-columns: 1fr; }
}

.sticky-side {
    position: sticky;
    top: 88px;
    align-self: start;
    display: grid;
    gap: 16px;
}

.cost-guard {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.cost-guard div {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 8px;
    background: #f8fafc;
}

.cost-guard span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.cost-guard p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.55;
}

.result-sections {
    display: grid;
    gap: 12px;
}

.result-report {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(14, 116, 144, 0.2);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff, rgba(236, 254, 255, 0.72));
}

.result-report h2 {
    margin: 8px 0 6px;
    font-size: 22px;
}

.result-report p {
    margin: 0;
    color: var(--muted);
}

.result-report-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.result-report-grid div {
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.result-report-grid span,
.result-report-grid strong {
    display: block;
}

.result-report-grid span {
    color: var(--muted);
    font-size: 12px;
}

.result-report-grid strong {
    margin-top: 4px;
    font-size: 15px;
}

.result-section {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.result-section h3 {
    margin: 0 0 8px;
}

.result-section-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.result-section-head .btn {
    height: 32px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
}

.result-section p {
    margin: 0;
    color: #334155;
}

.result-action-guide {
    background: #fbfdff;
}

.result-action-states {
    display: grid;
    gap: 8px;
}

.result-action-states div,
.share-safety div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.result-action-states div.enabled {
    border-color: rgba(14, 116, 144, 0.22);
    background: var(--primary-soft);
}

.result-action-states strong,
.result-action-states span,
.share-safety strong,
.share-safety span {
    display: block;
}

.result-action-states span,
.share-safety span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.result-growth-impact {
    background: linear-gradient(135deg, #ffffff, rgba(240, 253, 244, 0.72));
}

.growth-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.growth-impact-grid div,
.growth-delta-list div,
.memory-write-list article {
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.growth-impact-grid span,
.growth-impact-grid strong,
.growth-delta-list span,
.growth-delta-list strong,
.memory-write-list strong,
.memory-write-list span {
    display: block;
}

.growth-impact-grid span,
.growth-delta-list span,
.memory-write-list span {
    color: var(--muted);
    font-size: 12px;
}

.growth-impact-grid strong,
.growth-delta-list strong,
.memory-write-list strong {
    margin-top: 4px;
    font-size: 13px;
}

.growth-delta-list,
.memory-write-list {
    display: grid;
    gap: 8px;
}

.growth-delta-list {
    margin-top: 10px;
}

.growth-delta-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.growth-delta-list strong {
    color: #166534;
    font-size: 16px;
}

.growth-events-card {
    background: linear-gradient(135deg, #ffffff, rgba(236, 254, 255, 0.72));
}

.growth-event-list {
    display: grid;
    gap: 10px;
}

.growth-event-item {
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.growth-event-item header,
.growth-event-meta,
.growth-event-deltas,
.growth-event-memories,
.growth-event-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.growth-event-item header {
    justify-content: space-between;
    margin-bottom: 8px;
}

.growth-event-item strong,
.growth-event-item span,
.growth-event-item small,
.growth-event-item p {
    display: block;
}

.growth-event-item p,
.growth-event-item small,
.growth-event-meta {
    color: var(--muted);
    font-size: 12px;
}

.growth-event-deltas,
.growth-event-memories {
    margin-top: 8px;
}

.growth-event-deltas span,
.growth-event-memories span {
    border-radius: 6px;
    padding: 4px 7px;
    font-size: 12px;
    background: var(--primary-soft);
    color: var(--primary-strong);
}

.growth-event-memories span {
    color: #166534;
    background: #dcfce7;
}

.growth-event-inline {
    margin-top: 10px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 8px;
    padding: 10px;
    background: rgba(236, 254, 255, 0.56);
}

.growth-event-inline span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 700;
}

.growth-event-inline p {
    width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.purchase-reason-card {
    background: linear-gradient(135deg, #ffffff, rgba(239, 246, 255, 0.72));
}

.purchase-reason-summary {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.purchase-reason-summary span {
    color: var(--muted);
    font-size: 12px;
}

.purchase-reason-highlights,
.purchase-reason-chain,
.purchase-memory-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.purchase-reason-highlights div,
.purchase-reason-chain article,
.purchase-memory-list article {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.purchase-reason-highlights span,
.purchase-reason-chain span,
.purchase-reason-chain small,
.purchase-memory-list span,
.purchase-memory-list p {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.purchase-reason-highlights strong,
.purchase-memory-list strong {
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.purchase-reason-chain article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.purchase-reason-chain article.ready {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(240, 253, 244, 0.72);
}

.purchase-reason-chain small {
    white-space: nowrap;
}

.purchase-reason-next {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.04);
}

.purchase-reason-next span,
.purchase-reason-next p {
    color: var(--muted);
    font-size: 12px;
}

.purchase-reason-next p {
    margin: 0;
}

.result-purchase-impact {
    background: linear-gradient(135deg, #ffffff, rgba(239, 246, 255, 0.72));
}

.purchase-memory-list p {
    margin: 6px 0 0;
}

.processing-panel {
    max-width: 760px;
    margin: 0 auto;
}

.processing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.processing-panel h1 {
    margin: 10px 0 8px;
}

.processing-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.processing-trust div {
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 8px;
    background: #f8fafc;
}

.processing-trust strong,
.processing-trust span {
    display: block;
}

.processing-trust span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.processing-status-card,
.processing-recovery {
    margin-top: 14px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    padding: 14px;
    display: grid;
    gap: 10px;
    background: rgba(236, 254, 255, 0.5);
}

.processing-status-card.success {
    border-color: rgba(22, 163, 74, 0.24);
    background: rgba(240, 253, 244, 0.72);
}

.processing-status-card.danger,
.processing-recovery {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(254, 242, 242, 0.72);
}

.processing-recovery.soft {
    border-color: rgba(14, 116, 144, 0.16);
    background: #f8fafc;
}

.processing-status-card span,
.processing-recovery span {
    color: var(--muted);
    font-size: 12px;
}

.processing-status-card strong,
.processing-recovery strong {
    display: block;
    color: var(--ink);
}

.processing-status-card p,
.processing-recovery p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.processing-recovery ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    list-style: none;
}

.processing-recovery li {
    border: 1px solid rgba(220, 38, 38, 0.16);
    border-radius: 8px;
    padding: 10px;
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.72);
}

.processing-recovery li span {
    line-height: 1.55;
}

.processing-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.processing-steps div {
    min-height: 82px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.processing-steps div.active {
    border-color: rgba(14, 116, 144, 0.32);
    background: var(--primary-soft);
}

.processing-steps span {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 8px;
    color: white;
    background: var(--primary);
    font-size: 12px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.confirm-cost-hero {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 8px;
    background: var(--primary-soft);
}

.confirm-cost-hero span {
    color: var(--primary-strong);
    font-size: 12px;
    font-weight: 800;
}

.confirm-cost-hero strong {
    font-size: 28px;
}

.confirm-cost-hero p {
    margin: 0;
    color: var(--muted);
}

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

.confirm-flow div {
    min-height: 72px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.confirm-flow span {
    display: block;
    font-weight: 800;
}

.confirm-flow p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.share-safety {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.version-list {
    display: grid;
    gap: 8px;
}

.version-item {
    width: 100%;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.version-item:hover,
.version-item.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.version-item span {
    font-weight: 700;
}

.version-item small {
    color: var(--muted);
    line-height: 1.45;
}

.empty-state {
    min-height: 180px;
    align-content: center;
    justify-items: start;
    border-style: dashed;
    background: #fbfdff;
}

.empty-state p,
.empty-note {
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    border-radius: 8px;
    padding: 12px 14px;
    color: white;
    background: var(--ink);
    box-shadow: 0 14px 40px rgba(15,23,42,0.18);
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(15,23,42,0.28);
}

.drawer {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 45;
    width: min(420px, 100vw);
    padding: 18px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 16px;
    background: white;
    box-shadow: -18px 0 48px rgba(15,23,42,0.16);
}

.drawer header,
.modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer h2,
.modal h2 {
    margin: 0;
    font-size: 20px;
}

.drawer-list {
    overflow: auto;
    display: grid;
    align-content: start;
    gap: 10px;
}

.message-summary,
.ticket-overview,
.ticket-context,
.ticket-submit-guide,
.ticket-next-action {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.message-summary {
    display: grid;
    gap: 8px;
}

.message-summary div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.message-summary strong {
    font-size: 24px;
}

.message-summary p,
.ticket-context p,
.ticket-submit-guide span,
.ticket-next-action span {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.message-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 8px;
    background: #fff;
}

.message-item.unread {
    border-color: rgba(14,116,144,0.36);
    background: var(--primary-soft);
}

.message-item h3,
.message-item p {
    margin: 0;
}

.message-item p,
.message-item small {
    color: var(--muted);
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-line,
.ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ticket-head h3 {
    margin: 8px 0 0;
}

.ticket-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 120px)) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.ticket-overview div {
    display: grid;
    gap: 2px;
}

.ticket-overview strong {
    font-size: 22px;
}

.ticket-overview p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.ticket-context,
.ticket-submit-guide,
.ticket-next-action {
    display: grid;
    gap: 6px;
}

.ticket-notice {
    border: 1px solid rgba(217,119,6,0.24);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(254,243,199,0.56);
    display: grid;
    gap: 4px;
}

.ticket-notice.success {
    border-color: rgba(5,150,105,0.22);
    background: rgba(220,252,231,0.72);
}

.ticket-notice span {
    color: var(--muted);
    font-size: 13px;
}

.ticket-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.ticket-progress span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 8px;
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

.ticket-progress span.active {
    border-color: rgba(14,116,144,0.24);
    color: var(--primary);
    background: var(--primary-soft);
}

.ticket-reply {
    border: 1px solid rgba(14,116,144,0.18);
    border-radius: 8px;
    padding: 12px;
    background: var(--primary-soft);
    display: grid;
    gap: 6px;
}

.ticket-reply strong,
.ticket-reply p {
    margin: 0;
}

.ticket-reply p {
    color: var(--text);
}

.ticket-detail-button { width: 100%; margin-top: 12px; }
.ticket-detail-drawer { width: min(620px, calc(100vw - 24px)); }
.ticket-detail-drawer > header h2 { margin-top: 8px; }
.ticket-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket-detail-meta span { padding: 6px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 12px; }
.ticket-timeline { overflow: auto; display: grid; gap: 12px; padding: 6px 2px; }
.ticket-timeline-item { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; background: #fff; }
.ticket-timeline-item.staff { border-color: rgba(37, 99, 235, .2); background: #f3f7ff; }
.ticket-timeline-item > div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-timeline-item time { color: var(--muted); font-size: 12px; }
.ticket-timeline-item p { margin: 0; white-space: pre-wrap; line-height: 1.65; }
.ticket-reply-form { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 12px; }
.ticket-reply-form textarea { min-height: 110px; resize: vertical; }

.modal {
    position: fixed;
    z-index: 46;
    left: 50%;
    top: 50%;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    transform: translate(-50%, -50%);
    padding: 20px;
    overflow: auto;
    display: grid;
    gap: 16px;
}

.share-page {
    min-height: 100vh;
    padding: 24px;
    background: var(--bg);
}

.share-head {
    max-width: 1180px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.share-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
}

.share-layout h1 {
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 34px;
}

.mobile-tab {
    display: none;
}

@media (max-width: 900px) {
    .home-rail {
        width: 58px;
        padding: 12px 6px;
    }

    .home-rail a:not(.home-rail-logo) {
        width: 42px;
        min-height: 42px;
    }

    .home-rail b {
        display: none;
    }

    .home-hero {
        min-height: auto;
        padding: 28px 14px 24px 72px;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 18px;
    }

    .home-hero-copy,
    .home-visual,
    .home-feature-strip {
        grid-column: 1;
        grid-row: auto;
    }

    .home-hero h1 {
        font-size: 36px;
    }

    .home-visual {
        min-height: 320px;
    }

    .fleet-core {
        left: -12%;
        right: -4%;
        top: 26%;
        height: 150px;
    }

    .orbit-ring {
        left: -40%;
        width: 520px;
        height: 340px;
    }

    .ring-b {
        width: 620px;
        height: 440px;
    }

    .fleet-card {
        min-width: 128px;
        padding: 12px;
    }

    .fleet-label {
        right: 0;
        top: 4%;
    }

    .card-c {
        right: 0;
        top: 55%;
    }

    .home-feature-strip {
        grid-template-columns: 1fr;
    }

    .home-band,
    .home-flow,
    .home-growth {
        width: calc(100% - 84px);
        margin-left: 72px;
        padding: 18px;
    }

    .home-employee-grid,
    .home-flow-grid {
        grid-template-columns: 1fr;
    }

    .home-growth {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-page {
        grid-template-columns: 1fr;
    }

    .auth-v2-page {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: auto;
        padding: 40px 24px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .auth-v2-hero {
        gap: 18px;
        padding: 34px 20px;
    }

    .auth-v2-hero h1 {
        font-size: 34px;
    }

    .auth-v2-hero p {
        font-size: 15px;
    }

    .auth-v2-metrics,
    .auth-v2-security-steps {
        grid-template-columns: 1fr;
    }

    .auth-v2-flow {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .auth-v2-flow div {
        min-height: 68px;
        padding: 10px 8px;
    }

    .login-panel-wrap {
        min-height: 52vh;
        padding: 28px 0;
    }

    .auth-v2-panel-wrap {
        min-height: auto;
        padding: 26px 0 34px;
    }

    .auth-v2-panel {
        width: calc(100vw - 32px);
        padding: 22px;
        border-radius: 18px;
    }

    .auth-v2-sliced-page {
        min-height: 100vh;
        display: block;
        overflow: auto;
    }

    .auth-v2-sliced-page::before,
    .auth-v2-forgot-preview,
    .auth-v2-agreement {
        display: none;
    }

    .auth-v2-sliced-hero {
        min-height: auto;
        padding: 28px 18px 0;
        border-bottom: 0;
    }

    .auth-v2-sliced-hero .auth-v2-brand {
        height: auto;
        font-size: 21px;
    }

    .auth-v2-sliced-hero .auth-v2-brand img {
        width: 44px;
        height: 44px;
    }

    .auth-v2-sliced-hero h1 {
        margin-top: 28px;
        font-size: 34px;
    }

    .auth-v2-robot-stage {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 20px 0 0;
    }

    .auth-v2-capabilities {
        position: static;
        margin-top: 16px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .auth-v2-cap-icon {
        width: 64px;
        height: 64px;
    }

    .auth-v2-float-card {
        display: none;
    }

    .auth-v2-sliced-panel-wrap {
        min-height: auto;
        display: grid;
        place-items: center;
        padding: 24px 16px 34px;
    }

    .auth-v2-sliced-panel {
        width: 100%;
        min-width: 0;
        min-height: auto;
        padding: 24px;
    }

    .auth-v2-sliced-panel .auth-tabs {
        height: 58px;
        margin-bottom: 28px;
    }

    .auth-v2-sliced-panel .auth-tab {
        height: 58px;
        font-size: 18px;
    }

    .auth-v2-sliced-panel .login-form {
        gap: 18px;
    }

    .auth-v2-sliced-panel .field span,
    .auth-v2-sliced-panel .auth-v2-check,
    .auth-v2-sliced-panel .auth-link {
        font-size: 15px;
    }

    .auth-v2-sliced-panel .input {
        min-height: 54px;
        padding: 0 16px;
        font-size: 16px;
    }

    .auth-v2-sliced-panel .auth-v2-submit {
        height: 56px;
        font-size: 18px;
    }

    .auth-v2-other-login {
        margin-top: 28px;
    }

    .auth-v2-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-orbit-label {
        display: none;
    }

    .shell {
        grid-template-columns: 1fr;
        grid-template-rows: 58px minmax(0, 1fr) 58px;
    }

    .sidebar {
        display: none;
    }

    .topbar, .content {
        grid-column: 1;
    }

    .content {
        padding: 16px;
        padding-bottom: 76px;
    }

    .mobile-tab {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 58px;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        border-top: 1px solid var(--line);
        background: white;
        z-index: 20;
    }

    .mobile-tab button {
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 12px;
    }

    .mobile-tab button.active {
        color: var(--primary);
        font-weight: 700;
    }

    .grid-2,
    .grid-3,
    .assignment-layout,
    .result-layout,
    .onboarding-body,
    .assignment-deliverables,
    .points-hero,
    .points-summary-grid,
    .results-overview,
    .result-summary-grid,
    .result-report-grid,
    .processing-trust,
    .share-safety,
    .material-guide,
    .ticket-overview,
    .path-steps,
    .employee-team-hero,
    .employee-compare-grid,
    .assignment-entry-bridge,
    .assignment-form-assist,
    .growth-explain,
    .growth-impact-grid,
    .assignment-visit-meta,
    .processing-recovery ul,
    .package-metrics {
        grid-template-columns: 1fr;
    }

    .processing-steps {
        grid-template-columns: 1fr 1fr;
    }

    .confirm-flow {
        grid-template-columns: 1fr;
    }

    .announcement-strip,
    .workspace-hero,
    .workspace-top-grid,
    .workspace-command-grid,
    .readiness-grid {
        grid-template-columns: 1fr;
    }

    .workspace-hero {
        padding: 18px;
        min-height: 0;
        gap: 14px;
    }

    .workspace-title h1 {
        font-size: 26px;
    }

    .workspace-title {
        gap: 10px;
    }

    .workspace-score {
        padding: 14px;
        grid-template-columns: 1fr auto;
        justify-items: start;
        text-align: left;
    }

    .workspace-score strong {
        font-size: 42px;
        grid-row: span 2;
    }

    .workspace-score small {
        max-width: none;
    }

    .score-mini {
        grid-column: 1 / -1;
        width: 100%;
    }

    .material-upload,
    .share-layout {
        grid-template-columns: 1fr;
    }

    .box-head,
    .share-head {
        flex-direction: column;
        align-items: stretch;
    }

    .preview-panel {
        order: -1;
        position: static;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .onboarding {
        padding: 20px 16px;
    }

    .onboarding-top {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }

    .onboarding-progress {
        width: 100%;
    }

    .steps {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .step-dot {
        flex: 0 0 auto;
    }

    .wizard-panel,
    .preview-panel {
        padding: 18px;
    }

    .wizard-panel h1 {
        font-size: 24px;
    }

    .preview-core {
        height: 120px;
    }

    .preview-readiness {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 0 12px;
        gap: 8px;
    }

    .ip-control {
        min-width: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }

    .ip-control label,
    .ip-control small {
        display: none;
    }

    .ip-create-btn {
        min-width: 68px;
    }

    .ip-switcher {
        min-width: 0;
        width: min(180px, 44vw);
    }

    .top-actions {
        gap: 6px;
        min-width: 0;
    }

    .top-actions .btn {
        min-width: 40px;
        padding: 0 10px;
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .hero-copy h1 {
        font-size: 30px;
    }

    .hero-points span {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-flow {
        grid-template-columns: 1fr;
    }

    .hero-flow div {
        min-height: 48px;
        grid-template-columns: 42px 1fr;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hero-flow div:last-child {
        border-bottom: 0;
    }

    .top-actions .badge {
        display: none;
    }

    .top-actions .btn {
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .message-btn span {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* UI-04: 登录后 AI 智能指挥舱视觉系统 */
.ui-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

.ui-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shell {
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.055) 0 1px, transparent 1px),
        linear-gradient(0deg, rgba(14, 165, 233, 0.05) 0 1px, transparent 1px),
        radial-gradient(circle at 11% 10%, rgba(6, 182, 212, 0.18), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(16, 185, 129, 0.16), transparent 26%),
        linear-gradient(135deg, #f8fbff 0%, #eef8fb 48%, #f8fafc 100%);
    background-size: 24px 24px, 24px 24px, auto, auto, auto;
}

.sidebar {
    border-color: rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 72px rgba(15, 23, 42, 0.12);
}

.brand-mark {
    color: white;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-cyan));
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.24);
}

.brand-mark .ui-icon {
    width: 19px;
    height: 19px;
}

.nav button,
.side-foot-btn {
    position: relative;
    min-height: 38px;
    background: transparent;
}

.nav button::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
}

.nav button.active::before,
.nav button:hover::before {
    background: linear-gradient(180deg, var(--ai-blue), var(--ai-cyan));
}

.nav-icon,
.side-foot-btn span {
    color: #1d4ed8;
    background: rgba(239, 246, 255, 0.9);
}

.nav-icon .ui-icon {
    width: 17px;
    height: 17px;
}

.command-topbar {
    min-height: 64px;
    margin: 14px 22px 0 0;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.command-ip-control {
    grid-template-columns: auto minmax(180px, 280px) auto auto;
    align-items: center;
}

.topbar-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.78);
}

.command-ip-control label {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.command-ip-control .select {
    min-height: 28px;
    border: 0;
    padding: 0;
    background: transparent;
    font-weight: 800;
}

.top-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, auto));
    gap: 8px;
    margin-left: auto;
}

.top-status-strip div {
    min-height: 44px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    padding: 7px 10px;
    background: rgba(248, 250, 252, 0.76);
}

.top-status-strip span,
.top-status-strip strong {
    display: block;
}

.top-status-strip span {
    color: var(--muted);
    font-size: 11px;
}

.top-status-strip strong {
    margin-top: 1px;
    font-size: 13px;
}

.content {
    padding: 18px 22px 28px 0;
}

.ai-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
}

.command-core,
.command-next,
.command-panel,
.command-flow {
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    background: var(--glass);
    box-shadow: var(--glow);
    backdrop-filter: blur(18px);
}

.command-core {
    position: relative;
    min-height: 342px;
    padding: 26px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    overflow: hidden;
}

.command-core::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 66%);
    pointer-events: none;
}

.core-orbit {
    position: relative;
    width: 270px;
    height: 270px;
    align-self: center;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.16);
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.96) 0 37%, transparent 38%),
        conic-gradient(from -90deg, rgba(37, 99, 235, 0.82) calc(var(--score) * 1%), rgba(226, 232, 240, 0.9) 0);
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.68), 0 24px 60px rgba(37, 99, 235, 0.14);
}

.core-orbit::after {
    content: "";
    position: absolute;
    inset: 32px;
    border: 1px dashed rgba(37, 99, 235, 0.22);
    border-radius: 50%;
    animation: ui04Orbit 18s linear infinite;
}

.core-pulse {
    position: absolute;
    inset: 74px;
    z-index: 2;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(37, 99, 235, 0.14);
    animation: ui04Pulse 3.6s ease-in-out infinite;
}

.core-pulse .ui-icon {
    width: 24px;
    height: 24px;
}

.core-pulse strong {
    color: var(--ink);
    font-size: 42px;
    line-height: 1;
}

.core-pulse span {
    color: var(--muted);
    font-size: 12px;
}

.core-orbit > i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin: -21px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(calc(var(--i) * 60deg)) translate(132px) rotate(calc(var(--i) * -60deg));
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.1);
}

.core-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 13px;
}

.core-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: 34px;
    line-height: 1.15;
}

.core-copy > p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 15px;
}

.command-focus {
    border-color: rgba(37, 99, 235, 0.14);
    background: rgba(239, 246, 255, 0.66);
}

.command-next {
    padding: 20px;
    display: grid;
    align-content: start;
    gap: 12px;
}

.next-employee-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--ai-blue), var(--ai-cyan));
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.22);
}

.next-employee-badge .ui-icon {
    width: 28px;
    height: 28px;
}

.command-next h2 {
    margin: 0;
    font-size: 24px;
}

.command-next p {
    margin: 0;
    color: #475569;
}

.energy-bar,
.dimension-line {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(226, 232, 240, 0.9);
}

.energy-bar span,
.dimension-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ai-blue), var(--ai-cyan), var(--ai-mint));
}

.command-flow {
    min-height: 92px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.command-flow-head {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.command-flow-head strong {
    color: var(--ink);
}

.command-flow article {
    position: relative;
    min-height: 70px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    padding: 11px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.command-flow article span {
    width: 26px;
    height: 26px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 850;
}

.command-flow article.active {
    border-color: rgba(37, 99, 235, 0.38);
    background: rgba(239, 246, 255, 0.92);
}

.command-flow strong,
.command-flow p {
    display: block;
    margin: 0;
}

.command-flow p {
    color: var(--muted);
    font-size: 12px;
}

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

.command-panel.card,
.purchase-reason-card,
.growth-events-card {
    border-radius: 18px;
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.07);
}

.section-title h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dimension-grid {
    display: grid;
    gap: 10px;
}

.command-growth-explain {
    margin-top: 12px;
}

.dimension-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 88px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.74);
}

.dimension-item .btn {
    height: 32px;
}

.dimension-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.82);
}

.dimension-item strong,
.dimension-item span {
    display: block;
}

.dimension-item span {
    color: var(--muted);
    font-size: 12px;
}

.dimension-line {
    grid-column: 2 / -1;
}

.dimension-item.ready .dimension-icon {
    color: #047857;
    background: rgba(209, 250, 229, 0.84);
}

.dimension-item.needs-work .dimension-icon {
    color: #b45309;
    background: rgba(254, 243, 199, 0.82);
}

.purchase-reason-chain article.ready {
    background: rgba(240, 253, 250, 0.82);
}

.readiness-item {
    border-radius: 14px;
}

.employee-card {
    border-radius: 16px;
}

@keyframes ui04Orbit {
    to { transform: rotate(360deg); }
}

@keyframes ui04Pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.025); }
}

@media (max-width: 1180px) {
    .ai-command,
    .command-core,
    .command-grid {
        grid-template-columns: 1fr;
    }

    .core-orbit {
        justify-self: center;
    }

    .command-flow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .top-status-strip {
        display: none;
    }
}

@media (max-width: 760px) {
    .command-topbar {
        margin: 10px 10px 0;
    }

    .content {
        padding: 12px 10px 84px;
    }

    .command-core {
        padding: 18px;
    }

    .core-orbit {
        width: 220px;
        height: 220px;
    }

    .core-pulse {
        inset: 58px;
    }

    .core-orbit > i {
        width: 34px;
        height: 34px;
        margin: -17px;
        transform: rotate(calc(var(--i) * 60deg)) translate(106px) rotate(calc(var(--i) * -60deg));
    }

    .core-copy h1 {
        font-size: 28px;
    }

    .command-flow {
        grid-template-columns: 1fr;
    }

    .dimension-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dimension-item .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .dimension-line {
        grid-column: 1 / -1;
    }
}

/* UI-04B-ref: 按参考图重排工作台，色调沿用首页浅青蓝 */
.dashboard-hero,
.business-flow,
.conversion-chain,
.ai-team-strip {
    border: 1px solid rgba(14, 116, 144, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.dashboard-heading {
    min-height: 56px;
    padding: 4px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
}

.dashboard-heading p {
    margin: 4px 0 0;
    color: var(--muted);
}

.dashboard-hero {
    padding: 14px;
}

.status-board {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.score-card,
.status-metrics {
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

.score-card {
    padding: 12px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 8px;
}

.score-ring {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 59%),
        conic-gradient(from -90deg, #0e7490 calc(var(--score) * 1%), rgba(226, 232, 240, 0.92) 0);
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.72);
}

.score-ring strong,
.score-ring span,
.score-ring em {
    display: block;
    font-style: normal;
    line-height: 1.1;
}

.score-ring strong {
    font-size: 34px;
}

.score-ring span {
    color: var(--muted);
    font-size: 12px;
}

.score-ring em {
    margin-top: 5px;
    border-radius: 999px;
    padding: 3px 8px;
    color: #0e7490;
    background: #e4fbff;
    font-size: 11px;
    font-weight: 800;
}

.score-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.status-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.status-metrics article {
    min-height: 128px;
    padding: 22px 16px;
    display: grid;
    align-content: center;
    gap: 9px;
    border-right: 1px solid rgba(14, 116, 144, 0.1);
}

.status-metrics article:last-child {
    border-right: 0;
}

.status-metrics span,
.status-metrics small {
    color: var(--muted);
    font-size: 12px;
}

.status-metrics strong {
    font-size: 24px;
}

.status-metrics small {
    color: #059669;
    font-weight: 800;
}


.business-flow {
    padding: 16px;
}

.business-flow .section-title,
.conversion-chain .section-title,
.ai-team-strip .section-title {
    margin-bottom: 12px;
}

.flow-arc {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding-top: 34px;
}

.flow-arc::before {
    content: "";
    position: absolute;
    left: 54px;
    right: 54px;
    top: 14px;
    height: 42px;
    border-top: 2px solid rgba(14, 116, 144, 0.28);
    border-radius: 50% 50% 0 0;
}

.flow-arc article {
    position: relative;
    z-index: 1;
    min-height: 182px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    align-content: start;
    gap: 9px;
    background: rgba(255, 255, 255, 0.82);
}

.flow-arc article > span {
    position: absolute;
    left: 18px;
    top: -30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0e7490;
    background: #dff8ff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(14, 116, 144, 0.14);
}

.flow-arc article.active {
    border-color: rgba(14, 116, 144, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(228,251,255,0.78));
}

.flow-arc small {
    color: #0e7490;
    font-weight: 800;
}

.flow-arc strong,
.flow-arc p {
    display: block;
    margin: 0;
}

.flow-arc p {
    color: var(--muted);
    font-size: 12px;
}

.flow-arc .btn {
    margin-top: 6px;
    height: 34px;
}

.conversion-chain,
.ai-team-strip {
    padding: 16px;
}

.chain-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.chain-row article {
    min-height: 76px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.8);
}

.chain-row article i {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #0e7490;
    background: #e4fbff;
}

.chain-row article.ready i {
    color: #047857;
    background: #dcfce7;
}

.chain-row strong,
.chain-row span {
    display: block;
}

.chain-row span {
    color: var(--muted);
    font-size: 12px;
}

.team-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
}

.compact-employee,
.team-add {
    min-height: 168px;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
}

.compact-employee.recommended {
    border-color: rgba(14, 116, 144, 0.28);
    box-shadow: 0 16px 38px rgba(14, 116, 144, 0.1);
}

.employee-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #0e7490;
    background: linear-gradient(135deg, #e4fbff, #ffffff);
}

.employee-avatar .ui-icon {
    width: 30px;
    height: 30px;
}

.compact-employee strong,
.compact-employee span,
.compact-employee small {
    display: block;
}

.compact-employee span,
.compact-employee small,
.team-add p {
    color: var(--muted);
    font-size: 12px;
}

.compact-employee .btn {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.team-add {
    justify-content: center;
    align-content: center;
}

.team-add span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0e7490;
    background: #e4fbff;
    font-size: 28px;
}

/* UI-05A: 恢复工作台首屏大指数转盘，不再隐藏真实 AI 指挥舱 */
.ai-command.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.command-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-radius: 999px;
    padding: 5px 10px;
    color: #0e7490;
    background: rgba(236, 254, 255, 0.82);
    font-size: 12px;
    font-weight: 850;
}

.command-status-strip {
    width: 100%;
    margin-left: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-rank-note {
    font-size: 12px;
}

@media (max-width: 1180px) {
    .ai-command.dashboard-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1320px) {
    .status-board {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .flow-arc,
    .chain-row,
    .team-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .status-board,
    .status-metrics,
    .flow-arc,
    .chain-row,
    .team-row {
        grid-template-columns: 1fr;
    }

    .flow-arc::before {
        display: none;
    }

    .flow-arc article > span {
        position: static;
    }
}


/* UI-04C: keep original memory business content, restyle only */
.workspace-command-grid {
    align-items: start;
}

.purchase-reason-card,
.growth-events-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 116, 144, 0.12);
    background:
        radial-gradient(circle at 92% 10%, rgba(125, 211, 252, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(236,254,255,0.76));
}

.purchase-reason-card::before,
.growth-events-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #22d3ee, #0e7490);
}

.purchase-reason-card > *,
.growth-events-card > * {
    position: relative;
}

.purchase-reason-card .section-title,
.growth-events-card .section-title {
    align-items: flex-start;
}

.purchase-reason-card .section-title h2 .ui-icon,
.growth-events-card .section-title h2 .ui-icon {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    padding: 8px;
    color: #0e7490;
    background: #e4fbff;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.12);
}

.purchase-reason-summary {
    border-color: rgba(14, 116, 144, 0.13);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

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

.purchase-reason-highlights div,
.purchase-reason-chain article,
.growth-event-item {
    border-color: rgba(14, 116, 144, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.purchase-reason-chain article {
    min-height: 62px;
}

.purchase-reason-chain article.ready {
    border-color: rgba(5, 150, 105, 0.22);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(220,252,231,0.68));
}

.purchase-reason-next {
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(228,251,255,0.82), rgba(255,255,255,0.88));
}

.growth-event-list {
    gap: 12px;
}

.growth-event-item {
    padding: 14px;
}

.growth-event-item header .badge {
    background: #e4fbff;
    color: #0e7490;
}

.growth-event-deltas span,
.growth-event-memories span {
    border-radius: 999px;
    background: #e4fbff;
    color: #0e7490;
}

.growth-event-memories span {
    background: #dcfce7;
    color: #047857;
}

.status-metrics small {
    color: #0e7490;
}

@media (max-width: 760px) {
    .purchase-reason-highlights {
        grid-template-columns: 1fr;
    }
}


/* UI-05: reference dashboard visual depth and linked workflow */
.ai-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    color: #0e7490;
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,0.96), transparent 28%),
        linear-gradient(145deg, #dff8ff, #ffffff 48%, #ccfbf1);
    box-shadow: 0 14px 30px rgba(14, 116, 144, 0.14), inset 0 0 0 1px rgba(255,255,255,0.84);
    overflow: hidden;
}

.ai-avatar::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 15px;
    border: 1px solid rgba(14, 116, 144, 0.18);
}

.ai-avatar i {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
}

.ai-avatar b {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.ai-avatar .ui-icon {
    width: 26px;
    height: 26px;
}

.ai-avatar-flow-active,
.ai-avatar-employee,
.employee-card.recommended .ai-avatar {
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,0.98), transparent 28%),
        linear-gradient(145deg, #a7f3d0, #e0f2fe 52%, #ffffff);
}

.readiness-strip-panel {
    border: 1px solid rgba(14, 116, 144, 0.12);
    background:
        radial-gradient(circle at 8% 10%, rgba(34, 211, 238, 0.13), transparent 25%),
        rgba(255, 255, 255, 0.82);
}

.readiness-grid-horizontal,
.dimension-grid-horizontal,
.purchase-reason-chain,
.employee-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.readiness-grid-horizontal .readiness-item {
    min-height: 164px;
    padding: 14px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 10px;
    border: 1px solid rgba(14, 116, 144, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045);
}

.readiness-item > i {
    font-style: normal;
}

.business-flow {
    position: relative;
    overflow: hidden;
}

.business-flow::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 68%);
    pointer-events: none;
}

.flow-linked {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    padding: 42px 8px 4px;
}

.flow-linked::before {
    left: 7%;
    right: 7%;
    top: 68px;
    height: 0;
    border-top: 2px dashed rgba(14, 116, 144, 0.26);
    border-radius: 0;
}

.flow-linked article {
    min-height: 206px;
    padding: 18px 14px 16px;
    justify-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.11), transparent 46%),
        rgba(255, 255, 255, 0.86);
}

.flow-linked article > span {
    left: 50%;
    top: -18px;
    transform: translateX(-50%);
    z-index: 3;
}

.flow-node-avatar {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    font-style: normal;
}

.flow-node-avatar::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 24px;
    border: 1px solid rgba(14, 116, 144, 0.10);
    background: rgba(255, 255, 255, 0.52);
    z-index: -1;
}

.dimension-radar-panel {
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.13), transparent 32%),
        rgba(255, 255, 255, 0.82);
}

.dimension-grid-horizontal .dimension-item {
    min-height: 188px;
    padding: 14px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: start;
    border-color: rgba(14, 116, 144, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.045);
}

.dimension-grid-horizontal .dimension-icon {
    width: 56px;
    height: 56px;
    background: transparent;
}

.dimension-grid-horizontal .dimension-line {
    width: 100%;
    grid-column: 1;
}

.dimension-grid-horizontal .dimension-item .btn {
    width: 100%;
    margin-top: auto;
}

.ip-memory-row {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 16px;
    align-items: stretch;
}

.meta-list-visual {
    gap: 12px;
}

.meta-list-visual .meta-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    border: 1px solid rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.meta-list-visual .meta-item i {
    grid-row: 1 / 3;
    font-style: normal;
}

.meta-list-visual .ai-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
}

.purchase-reason-card {
    padding: 18px;
}

.purchase-reason-card .purchase-reason-summary {
    margin-bottom: 14px;
}

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

.purchase-reason-chain {
    margin-top: 14px;
}

.purchase-reason-chain article {
    min-height: 178px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: start;
    gap: 10px;
    padding: 14px;
}

.purchase-reason-chain article > i {
    font-style: normal;
}

.purchase-reason-chain small {
    align-self: end;
    border-radius: 999px;
    padding: 4px 8px;
    background: #e4fbff;
    color: #0e7490;
    font-weight: 800;
}

.employee-picker-panel {
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.13), transparent 32%),
        rgba(255, 255, 255, 0.82);
}

.employee-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.employee-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(14, 116, 144, 0.11);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.employee-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 74px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.employee-head {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.employee-portrait .ai-avatar {
    width: 62px;
    height: 62px;
    border-radius: 22px;
}

.employee-card.recommended {
    border-color: rgba(14, 116, 144, 0.28);
    box-shadow: 0 18px 42px rgba(14, 116, 144, 0.12);
}

.compact-employee .employee-avatar {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 30% 24%, rgba(255,255,255,0.98), transparent 28%),
        linear-gradient(145deg, #dff8ff, #ffffff 48%, #ccfbf1);
    box-shadow: 0 14px 30px rgba(14, 116, 144, 0.13);
}

@media (max-width: 1480px) {
    .readiness-grid-horizontal,
    .dimension-grid-horizontal,
    .purchase-reason-chain {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .employee-picker-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .ip-memory-row {
        grid-template-columns: 1fr;
    }

    .flow-linked {
        grid-template-columns: 1fr;
        padding-top: 12px;
    }

    .flow-linked::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .readiness-grid-horizontal,
    .dimension-grid-horizontal,
    .purchase-reason-highlights,
    .purchase-reason-chain,
    .employee-picker-grid {
        grid-template-columns: 1fr;
    }
}


/* UI-05B: 恢复 AI 指挥舱左侧旧版行动文案区 */
.command-hero-meta {
    margin-top: 2px;
}

.command-hero-actions .btn {
    min-height: 36px;
}

.command-hero-focus {
    width: min(100%, 760px);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}


/* UI-05C: 工作台三处版块排版收口 */
.readiness-grid-horizontal .readiness-item {
    justify-items: center;
    align-content: space-between;
    text-align: center;
}

.readiness-grid-horizontal .readiness-item > i {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    font-style: normal;
}

.readiness-grid-horizontal .readiness-item > div {
    justify-items: center;
    text-align: center;
}

.readiness-grid-horizontal .readiness-item strong,
.readiness-grid-horizontal .readiness-item span {
    text-align: center;
}

.readiness-grid-horizontal .readiness-item .btn {
    justify-self: center;
    min-width: 104px;
}

.flow-linked article {
    grid-template-rows: auto auto auto minmax(46px, auto) 1fr auto;
    align-content: stretch;
}

.flow-linked article .btn {
    align-self: end;
    justify-self: center;
    width: min(100%, 132px);
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 12px;
    white-space: nowrap;
}

.flow-linked article p {
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dimension-grid-horizontal {
    grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
    align-items: stretch;
}

.dimension-grid-horizontal .dimension-item {
    min-width: 0;
    min-height: 186px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    justify-items: center;
    align-content: stretch;
    text-align: center;
    gap: 12px;
    overflow: hidden;
}

.dimension-grid-horizontal .dimension-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.dimension-grid-horizontal .dimension-icon .ai-avatar {
    width: 64px;
    height: 64px;
}

.dimension-grid-horizontal .dimension-copy {
    min-width: 0;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 4px;
}

.dimension-grid-horizontal .dimension-copy strong,
.dimension-grid-horizontal .dimension-copy span {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.dimension-grid-horizontal .dimension-line {
    align-self: end;
    width: 100%;
    grid-column: 1;
}

.dimension-grid-horizontal .dimension-item .btn {
    align-self: end;
    justify-self: stretch;
    width: 100%;
    min-height: 34px;
}

@media (max-width: 760px) {
    .flow-linked article .btn,
    .readiness-grid-horizontal .readiness-item .btn {
        width: 100%;
    }
}


/* UI-05E: 成长维度雷达铺满整行，取消两栏挤压和内部滚动 */
.dimension-radar-panel.workspace-command-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dimension-radar-panel .section-title,
.dimension-radar-panel .dimension-grid-horizontal,
.dimension-radar-panel .command-growth-explain {
    grid-column: 1 / -1;
}

.dimension-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
    padding-bottom: 0;
    align-items: stretch;
}

.dimension-grid-horizontal .dimension-item {
    min-width: 0;
    min-height: 168px;
    padding: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
    justify-items: center;
    align-content: stretch;
    text-align: center;
    gap: 9px;
}

.dimension-grid-horizontal .dimension-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.dimension-grid-horizontal .dimension-icon .ai-avatar {
    width: 56px;
    height: 56px;
}

.dimension-grid-horizontal .dimension-copy {
    min-width: 0;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 4px;
}

.dimension-grid-horizontal .dimension-copy strong,
.dimension-grid-horizontal .dimension-copy span {
    max-width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.dimension-grid-horizontal .dimension-copy strong {
    font-size: 14px;
    line-height: 1.25;
}

.dimension-grid-horizontal .dimension-copy span {
    font-size: 12px;
    line-height: 1.35;
}

.dimension-grid-horizontal .dimension-line {
    align-self: end;
    width: 100%;
    grid-column: 1;
}

.dimension-grid-horizontal .dimension-item .btn {
    align-self: end;
    justify-self: stretch;
    width: 100%;
    min-height: 32px;
    padding-inline: 10px;
}

@media (max-width: 1480px) {
    .dimension-grid-horizontal {
        grid-template-columns: repeat(6, minmax(118px, 1fr));
        gap: 10px;
    }

    .dimension-grid-horizontal .dimension-item {
        padding: 10px;
    }
}

@media (max-width: 980px) {
    .dimension-grid-horizontal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dimension-grid-horizontal {
        grid-template-columns: 1fr;
    }
}


/* UI-06A: AI 员工页与任务填写页浅色 AI 指挥舱视觉统一 */
.ui06-team-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border-color: rgba(14, 116, 144, 0.16);
    padding: 22px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.14), transparent 30%),
        radial-gradient(circle at 92% 8%, rgba(16, 185, 129, 0.13), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(236,254,255,0.82));
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.ui06-team-hero::after {
    content: "";
    position: absolute;
    inset: auto 28px 22px 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 116, 144, 0.2), transparent);
    pointer-events: none;
}

.ui06-team-hero h2 {
    font-size: 30px;
    letter-spacing: 0;
}

.ui06-team-hero aside {
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.62);
}

.ui06-team-hero .employee-team-actions .btn {
    min-height: 38px;
}

.employee-compare {
    border-color: rgba(14, 116, 144, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.employee-compare-grid article {
    border-color: rgba(14, 116, 144, 0.1);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.76);
}

.employee-compare-grid article.active {
    border-color: rgba(14, 116, 144, 0.26);
    background: linear-gradient(135deg, rgba(236,254,255,0.9), rgba(255,255,255,0.82));
}

.ui06-employee-grid {
    align-items: stretch;
}

.ui06-employee-grid .employee-card {
    position: relative;
    overflow: hidden;
    min-height: 304px;
    border-color: rgba(14, 116, 144, 0.11);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 10%, rgba(34, 211, 238, 0.11), transparent 30%),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.ui06-employee-grid .employee-card.recommended {
    border-color: rgba(14, 116, 144, 0.28);
    box-shadow: 0 18px 48px rgba(14, 116, 144, 0.11);
}

.ui06-employee-grid .employee-head {
    align-items: center;
}

.ui06-employee-grid .employee-portrait {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
}

.ui06-employee-grid .employee-fit,
.ui06-employee-grid .employee-output {
    border: 1px solid rgba(14, 116, 144, 0.09);
    border-radius: 14px;
    padding: 10px;
    background: rgba(248, 250, 252, 0.72);
}

.ui06-employee-grid .employee-card-footer {
    margin-top: auto;
}

.ui06-assignment-layout {
    align-items: start;
}

.ui06-assignment-main,
.ui06-task-summary {
    border-color: rgba(14, 116, 144, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.ui06-assignment-brief {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 18px;
    background:
        radial-gradient(circle at 90% 0%, rgba(34, 211, 238, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(236,254,255,0.88), rgba(255,255,255,0.94));
}

.ui06-assignment-brief .tag-row .badge,
.quick-fill-row .btn {
    min-height: 32px;
}

.assignment-deliverables div,
.assignment-entry-bridge div {
    border-radius: 14px;
    border-color: rgba(14, 116, 144, 0.12);
    background: rgba(255, 255, 255, 0.74);
}

.assignment-form-assist {
    border-radius: 18px;
    background:
        radial-gradient(circle at 94% 20%, rgba(16, 185, 129, 0.10), transparent 30%),
        rgba(248, 250, 252, 0.82);
}

.ui06-task-summary {
    position: sticky;
    top: 86px;
}

.ui06-task-summary h2 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui06-task-summary h2::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14);
}

.ui06-task-summary .preview-list div {
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.76);
}

.ui06-task-summary .btn {
    width: 100%;
    min-height: 42px;
}

@media (max-width: 980px) {
    .ui06-team-hero,
    .ui06-assignment-layout {
        grid-template-columns: 1fr;
    }

    .ui06-task-summary {
        position: static;
    }
}


/* UI-07A: 接入生产 UI PNG 素材并按全图规范收口 */
.shell {
    background-image: url('/images/ui/backgrounds/app-soft-grid.png');
    background-size: cover;
    background-attachment: fixed;
}

.nav-png-wrap,
.metric-png-wrap,
.flow-png-wrap,
.reason-png-wrap {
    display: inline-grid;
    place-items: center;
    position: relative;
}

.nav-png-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.nav-svg-fallback {
    display: none;
}

.topbar-png-icon,
.btn-png-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.topbar-icon .ui-icon,
.message-btn > .ui-icon,
.top-actions .btn > .ui-icon {
    display: none;
}

.metric-png-icon,
.flow-png-icon,
.reason-png-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(37, 99, 235, 0.12));
}

.metric-svg-fallback,
.flow-svg-fallback,
.reason-svg-fallback {
    display: none;
}

.readiness-grid-horizontal .readiness-item,
.dimension-grid-horizontal .dimension-item,
.purchase-reason-chain article,
.flow-linked article {
    border-color: rgba(37, 99, 235, 0.10);
    background:
        radial-gradient(circle at 88% 8%, rgba(34, 211, 238, 0.10), transparent 30%),
        rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.055);
}

.business-flow,
.dimension-radar-panel,
.readiness-strip-panel,
.purchase-reason-card,
.ai-team-strip,
.employee-compare,
.ui06-team-hero,
.ui06-assignment-main,
.ui06-task-summary {
    border-radius: 20px;
    border-color: rgba(37, 99, 235, 0.10);
    background:
        radial-gradient(circle at 92% 8%, rgba(34, 211, 238, 0.12), transparent 30%),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.065);
}

.flow-linked::before {
    border-top-color: rgba(37, 99, 235, 0.22);
}

.flow-linked article.active,
.dimension-grid-horizontal .dimension-item.needs-work,
.purchase-reason-chain article:not(.ready) {
    background:
        radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.11), transparent 42%),
        rgba(255, 255, 255, 0.9);
}

.purchase-reason-card::after {
    content: "";
    position: absolute;
    right: 28px;
    top: 22px;
    width: 168px;
    height: 112px;
    background: url('/images/ui/illustrations/purchase-library.png') center / contain no-repeat;
    opacity: 0.78;
    pointer-events: none;
}

.purchase-reason-card .section-title,
.purchase-reason-summary,
.purchase-reason-highlights,
.purchase-reason-chain,
.purchase-reason-next {
    position: relative;
    z-index: 1;
}

.dimension-radar-panel::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 16px;
    width: 136px;
    height: 86px;
    background: url('/images/ui/illustrations/growth-chart.png') center / contain no-repeat;
    opacity: 0.46;
    pointer-events: none;
}

.dimension-radar-panel {
    position: relative;
    overflow: hidden;
}

.section-title h2 .ui-icon {
    color: #2563eb;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB, #4F46E5);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.20);
}

.btn-secondary,
.btn-ghost {
    border-color: rgba(37, 99, 235, 0.13);
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
    .purchase-reason-card::after,
    .dimension-radar-panel::after {
        display: none;
    }
}

/* V2-01: 前端 UI V2 基础框架 */
:root {
    --v2-bg: #f5f9ff;
    --v2-bg-2: #eef6ff;
    --v2-surface: rgba(255, 255, 255, 0.88);
    --v2-surface-strong: #ffffff;
    --v2-border: rgba(37, 99, 235, 0.12);
    --v2-border-strong: rgba(37, 99, 235, 0.22);
    --v2-text: #07122f;
    --v2-muted: #607198;
    --v2-primary: #2367ff;
    --v2-primary-2: #6d5cff;
    --v2-cyan: #22c7e8;
    --v2-success: #24c58f;
    --v2-warning: #f59e0b;
    --v2-danger: #ef4444;
    --v2-radius-xl: 24px;
    --v2-radius-lg: 18px;
    --v2-shadow-card: 0 24px 72px rgba(30, 64, 175, 0.08);
    --v2-shadow-soft: 0 14px 42px rgba(15, 23, 42, 0.055);
    --v2-gradient-primary: linear-gradient(135deg, var(--v2-primary), var(--v2-primary-2));
}

.ui-v2-shell {
    color: var(--v2-text);
    background:
        radial-gradient(circle at 84% 5%, rgba(109, 92, 255, 0.10), transparent 25%),
        radial-gradient(circle at 15% 18%, rgba(34, 199, 232, 0.10), transparent 26%),
        linear-gradient(135deg, var(--v2-bg) 0%, #ffffff 48%, var(--v2-bg-2) 100%);
}

.ui-v2-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 85%);
}

.ui-v2-sidebar {
    border-radius: var(--v2-radius-xl);
    border-color: var(--v2-border);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--v2-shadow-card);
}

.ui-v2-topbar {
    border: 1px solid var(--v2-border);
    border-radius: 0 0 0 var(--v2-radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 50px rgba(30, 64, 175, 0.055);
    backdrop-filter: blur(18px);
}

.ui-v2-content {
    position: relative;
    z-index: 1;
}

.ui-v2-shell .btn-primary {
    border: 0;
    color: #fff;
    background: var(--v2-gradient-primary);
    box-shadow: 0 14px 30px rgba(35, 103, 255, 0.22);
}

.ui-v2-shell .btn-secondary,
.ui-v2-shell .btn-ghost {
    border-color: rgba(37, 99, 235, 0.14);
    background: rgba(255, 255, 255, 0.78);
}

.ui-v2-shell .nav button.active,
.ui-v2-shell .nav button:hover,
.ui-v2-shell .side-foot-btn:hover {
    color: var(--v2-primary);
    background: linear-gradient(135deg, rgba(35, 103, 255, 0.12), rgba(34, 199, 232, 0.08));
}

.ui-v2-shell .nav-icon,
.ui-v2-shell .side-foot-btn span,
.ui-v2-status-icon {
    border-radius: 14px;
    color: var(--v2-primary);
    background: linear-gradient(135deg, rgba(35, 103, 255, 0.12), rgba(34, 199, 232, 0.10));
}

.ui-v2-card,
.ui-v2-surface {
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-xl);
    background: var(--v2-surface);
    box-shadow: var(--v2-shadow-card);
    backdrop-filter: blur(18px);
}

.ui-v2-chip,
.ui-v2-status-pill {
    min-height: 28px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 999px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--v2-primary);
    background: rgba(35, 103, 255, 0.08);
    font-size: 12px;
    font-weight: 750;
}

.ui-v2-flow-line {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    align-items: stretch;
    gap: 18px;
}

.ui-v2-flow-node {
    position: relative;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--v2-shadow-soft);
}

.ui-v2-flow-node:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 4px);
    width: 10px;
    border-top: 2px dashed rgba(35, 103, 255, 0.35);
}

.ui-v2-reference-note {
    display: none;
}

@media (max-width: 900px) {
    .ui-v2-shell {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    .ui-v2-sidebar {
        display: none;
    }

    .ui-v2-topbar {
        border-radius: 0;
    }

    .ui-v2-flow-line {
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }

    .ui-v2-flow-node::after {
        display: none;
    }
}

/* R2-01: assignment create V2 command page */
.assignment-v2-page { display: grid; gap: 18px; }

.assignment-v2-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 28px;
    background: radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.20), transparent 30%), radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.12), transparent 28%), linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 254, 255, 0.82));
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.assignment-v2-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -90px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 34px solid rgba(34, 211, 238, 0.10);
}

.assignment-v2-hero-main,
.assignment-v2-employee-card { position: relative; z-index: 1; }

.assignment-v2-kicker {
    display: inline-flex;
    width: max-content;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    background: rgba(236, 254, 255, 0.92);
}

.assignment-v2-hero h1 {
    max-width: 840px;
    margin: 0;
    color: #071938;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.assignment-v2-hero p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #31598d;
    line-height: 1.75;
}

.assignment-v2-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.assignment-v2-tags span {
    padding: 8px 12px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 999px;
    color: #155e75;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
}

.assignment-v2-employee-card {
    display: grid;
    gap: 10px;
    align-content: center;
    padding: 20px;
    border: 1px solid rgba(14, 116, 144, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.assignment-v2-employee-card span,
.assignment-v2-employee-card small { color: var(--muted); font-size: 12px; }
.assignment-v2-employee-card strong { color: #071938; font-size: 26px; }
.assignment-v2-employee-card p { margin: 0; color: #31598d; font-size: 13px; }

.assignment-v2-employee-card div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(14, 116, 144, 0.12);
}

.assignment-v2-employee-card b { color: #0e7490; font-size: 22px; }

.assignment-v2-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.assignment-v2-flow::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 25px;
    height: 2px;
    background: linear-gradient(90deg, rgba(14, 116, 144, 0.20), rgba(37, 99, 235, 0.20));
}

.assignment-v2-flow article {
    position: relative;
    z-index: 1;
    min-height: 94px;
    padding: 12px;
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 18px;
    display: grid;
    gap: 9px;
    justify-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.04);
}

.assignment-v2-flow article > span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #31598d;
    font-size: 12px;
    font-weight: 900;
    background: #eaf2ff;
}

.assignment-v2-flow article.active > span,
.assignment-v2-flow article.done > span {
    color: #fff;
    background: linear-gradient(135deg, #0e7490, #2563eb);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.14);
}

.assignment-v2-flow article.warning > span { color: #92400e; background: #fef3c7; }
.assignment-v2-flow strong,
.assignment-v2-flow small { display: block; }
.assignment-v2-flow strong { color: #0b1b3d; font-size: 13px; }
.assignment-v2-flow small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.assignment-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.assignment-v2-main { display: grid; gap: 16px; min-width: 0; }

.assignment-v2-card,
.assignment-v2-summary {
    border: 1px solid rgba(14, 116, 144, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.055);
}

.assignment-v2-card { padding: 20px; }

.assignment-v2-section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.assignment-v2-section-head h2 {
    margin: 8px 0 5px;
    color: #071938;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.assignment-v2-section-head p { margin: 0; color: var(--muted); line-height: 1.65; }

.assignment-v2-progress-pill {
    min-width: 72px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #0e7490;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    background: rgba(236, 254, 255, 0.86);
}

.assignment-v2-deliverables { margin-top: 0; }

.assignment-v2-deliverables div {
    min-height: 104px;
    border-radius: 18px;
    background: radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.10), transparent 34%), rgba(248, 250, 252, 0.92);
}

.assignment-v2-form-card .assignment-form-assist { margin: 0 0 16px; }
.assignment-v2-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assignment-v2-form-grid textarea { min-height: 116px; }
.assignment-v2-material-card .material-box { margin: 0; padding: 0; border-top: 0; }
.assignment-v2-side { min-width: 0; }

.assignment-v2-summary {
    position: sticky;
    top: 86px;
    overflow: hidden;
}

.assignment-v2-summary::before {
    content: "";
    display: block;
    height: 5px;
    margin: -20px -20px 16px;
    background: linear-gradient(90deg, #22d3ee, #2563eb, #10b981);
}

.assignment-v2-summary-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.assignment-v2-summary-head span { color: var(--muted); font-size: 13px; font-weight: 800; }

.assignment-v2-summary-head strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #0e7490;
    font-size: 12px;
    background: rgba(236, 254, 255, 0.88);
}

.assignment-v2-guard { margin-top: 14px; }
.assignment-v2-summary .btn { width: 100%; min-height: 46px; border-radius: 14px; }

@media (max-width: 1180px) {
    .assignment-v2-layout,
    .assignment-v2-hero { grid-template-columns: 1fr; }
    .assignment-v2-summary { position: static; }
}

@media (max-width: 980px) {
    .assignment-v2-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .assignment-v2-flow::before { display: none; }
    .assignment-v2-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .assignment-v2-hero,
    .assignment-v2-card { padding: 16px; border-radius: 20px; }
    .assignment-v2-flow { grid-template-columns: 1fr; }
    .assignment-v2-flow article {
        grid-template-columns: 32px minmax(0, 1fr);
        justify-items: start;
        text-align: left;
        min-height: auto;
    }
    .assignment-v2-section-head { flex-direction: column; }
    .assignment-v2-employee-card div { align-items: flex-start; flex-direction: column; }
}
