:root {
    --blue-900: #403060;
    --blue-800: #503080;
    --blue-700: #6a4a9b;
    --blue-500: #ffffff;
    --blue-200: #f1ecfa;
    --blue-100: #fbf9ff;
    --white: #ffffff;
    --ink: #342649;
    --muted: #725f7d;
    --line: rgba(64, 48, 96, 0.14);
    --shadow: 0 30px 70px rgba(64, 48, 96, 0.18);
    --surface-100: #ffffff;
    --surface-200: #f8f5fd;
    --surface-300: #f1ebfb;
    --line-strong: rgba(80, 48, 128, 0.22);
    --shadow-soft: rgba(64, 48, 96, 0.12);
    --shadow-strong: rgba(64, 48, 96, 0.16);
    --overlay-strong: rgba(52, 38, 73, 0.58);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 32%),
        radial-gradient(circle at bottom right, rgba(80, 48, 128, 0.18), transparent 28%),
        linear-gradient(135deg, #fcfbff 0%, #f7f4fd 55%, #e8def2 100%);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 32px;
}

.login-panel,
.insight-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card,
.insight-panel {
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-card {
    width: min(100%, 520px);
    padding: 34px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
}

.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.brand-logo {
    width: 124px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(80, 48, 128, 0.18));
}

.brand-copy h1,
.insight-header h2 {
    margin: 0;
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.03em;
}

.brand-copy h1 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.12;
    color: var(--blue-900);
}

.eyebrow {
    margin: 0 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.eyebrow.light {
    color: rgba(255, 255, 255, 0.74);
}

.subtitle,
.support-copy,
.insight-header p,
.flow-node p,
.chart-copy p {
    margin: 0;
    line-height: 1.65;
    color: var(--muted);
}

.subtitle {
    margin-top: 10px;
    max-width: 38ch;
    font-size: 0.95rem;
}

.login-notice {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--blue-100);
    border: 1px solid rgba(80, 48, 128, 0.18);
    color: var(--blue-900);
    font-size: 0.9rem;
}

.login-notice-success {
    background: #f5f2fb;
    border-color: rgba(106, 74, 155, 0.2);
}

.login-panel-stack {
    display: grid;
    gap: 12px;
}

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

.login-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blue-900);
}

.login-form input {
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--ink);
    background: #fdfefe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.login-form input::placeholder {
    color: #8a7898;
}

.login-form input:focus {
    outline: none;
    border-color: rgba(80, 48, 128, 0.55);
    box-shadow: 0 0 0 5px rgba(106, 74, 155, 0.14);
    transform: translateY(-1px);
}

.login-form button {
    margin-top: 10px;
    padding: 14px 18px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
    box-shadow: 0 20px 30px rgba(80, 48, 128, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-form button:hover,
.login-form button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 26px 34px rgba(80, 48, 128, 0.3);
    filter: brightness(1.02);
}

.login-helper-card {
    display: grid;
    gap: 14px;
    margin-top: 4px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(80, 48, 128, 0.12);
    background: linear-gradient(180deg, rgba(248, 245, 253, 0.9), rgba(255, 255, 255, 0.96));
}

.login-helper-header h2 {
    margin: 0;
    color: var(--blue-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: 1.25rem;
}

.login-helper-header .eyebrow {
    margin-bottom: 8px;
}

.login-helper-header .subtitle {
    margin-top: 8px;
    max-width: none;
    font-size: 0.92rem;
}

.login-link-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 2px;
}

.login-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--blue-700);
    background: rgba(106, 74, 155, 0.08);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.login-text-link:hover,
.login-text-link:focus-visible {
    transform: translateY(-1px);
    color: var(--blue-900);
    background: rgba(106, 74, 155, 0.14);
}

.support-copy {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(64, 48, 96, 0.08);
    font-size: 0.93rem;
}

.insight-panel {
    padding: 40px;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    color: var(--white);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 36%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(160deg, #5b3b90 0%, #7050a4 52%, #432c67 100%);
}

.insight-panel::before,
.insight-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.insight-panel::before {
    width: 220px;
    height: 220px;
    top: -40px;
    right: -70px;
}

.insight-panel::after {
    width: 180px;
    height: 180px;
    bottom: -70px;
    left: -50px;
}

.insight-header,
.workspace-scene {
    position: relative;
    z-index: 1;
}

.insight-header p,
.team-card p,
.brief-card p,
.status-row p,
.step-item p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.insight-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 12px;
}

.workspace-scene {
    display: grid;
    gap: 18px;
}

.corporate-scene {
    gap: 20px;
}

.insight-panel-visual {
    justify-content: center;
}

.corporate-scene-visual {
    width: 100%;
    align-self: stretch;
}

.office-stage {
    position: relative;
    display: grid;
    gap: 22px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(80, 48, 128, 0.14)),
        linear-gradient(165deg, #604095 0%, #523381 56%, #3d285f 100%);
    overflow: hidden;
}

.office-stage::before,
.office-stage::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.office-stage::before {
    width: 190px;
    height: 190px;
    top: -70px;
    right: -40px;
}

.office-stage::after {
    width: 140px;
    height: 140px;
    bottom: -48px;
    left: -26px;
}

.office-screen,
.corporate-metrics,
.office-team {
    position: relative;
    z-index: 1;
}

.office-screen {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(64, 48, 96, 0.34);
    backdrop-filter: blur(8px);
}

.office-screen-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    margin-top: 18px;
}

.screen-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 148px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.visual-badge {
    display: block;
    width: 144px;
    min-height: 14px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.24));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chart-bar {
    display: block;
    border-radius: 16px 16px 6px 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 236, 250, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.chart-bar:nth-child(1) {
    height: 42%;
}

.chart-bar:nth-child(2) {
    height: 68%;
}

.chart-bar:nth-child(3) {
    height: 88%;
}

.chart-bar:nth-child(4) {
    height: 58%;
}

.chart-bar:nth-child(5) {
    height: 76%;
}

.screen-summary {
    display: grid;
    gap: 14px;
}

.summary-panel {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-panel-visual {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 112px;
}

.summary-panel-compact {
    grid-template-columns: 58px 1fr;
    align-items: center;
}

.summary-panel strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.08rem;
}

.summary-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

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

.summary-stats span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px;
    border-radius: 18px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.summary-stats .visual-chip {
    min-height: 50px;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
}

.summary-stack {
    display: grid;
    gap: 10px;
}

.visual-line {
    display: block;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16));
}

.visual-line-strong {
    width: 84%;
}

.visual-line-short {
    width: 64%;
}

.visual-line-mini {
    width: 42%;
}

.visual-ring {
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.16);
    border-top-color: rgba(255, 255, 255, 0.92);
    border-right-color: rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.06);
}

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

.office-team-visual .worker-figure {
    gap: 0;
    min-height: 228px;
    align-content: end;
}

.worker-figure {
    --worker-main: #efe5fb;
    --worker-accent: #5d3d8f;
    --worker-skin: #e8b29a;
    position: relative;
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.worker-scene {
    position: relative;
    min-height: 146px;
}

.worker-chair {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 76px;
    height: 50px;
    transform: translateX(-50%);
    border-radius: 24px 24px 12px 12px;
    background: rgba(52, 38, 73, 0.36);
}

.worker-chair::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -22px;
    width: 4px;
    height: 22px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.34);
}

.worker-desk {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 118px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(234, 223, 196, 0.78));
}

.worker-desk::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: 8px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.worker-monitor {
    position: absolute;
    left: 50%;
    bottom: 48px;
    width: 48px;
    height: 34px;
    transform: translateX(-50%);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 223, 196, 0.76));
    box-shadow: inset 0 0 0 4px rgba(64, 48, 96, 0.34);
}

.worker-monitor::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 6px;
    height: 12px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.34);
}

.worker-paper {
    position: absolute;
    right: 18px;
    bottom: 30px;
    width: 28px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.76);
    transform: rotate(-10deg);
}

.worker-body {
    position: absolute;
    left: 50%;
    bottom: 34px;
    width: 74px;
    height: 98px;
    transform: translateX(-50%);
}

.worker-head {
    position: absolute;
    top: 0;
    left: 50%;
    width: 32px;
    height: 32px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff2e8 0%, var(--worker-skin) 62%, #bf846d 100%);
}

.worker-head::before {
    content: "";
    position: absolute;
    inset: 0 0 55% 0;
    border-radius: 50% 50% 42% 42%;
    background: rgba(64, 48, 96, 0.42);
}

.worker-torso {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58px;
    height: 58px;
    transform: translateX(-50%);
    border-radius: 24px 24px 14px 14px;
    background: linear-gradient(180deg, var(--worker-main), var(--worker-accent));
}

.worker-body::before,
.worker-body::after {
    content: "";
    position: absolute;
    top: 34px;
    width: 18px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--worker-main), var(--worker-accent));
}

.worker-body::before {
    left: 2px;
    transform: rotate(18deg);
}

.worker-body::after {
    right: 2px;
    transform: rotate(-18deg);
}

.worker-figure-lead {
    --worker-main: #f5eefb;
    --worker-accent: #6a4a9b;
    --worker-skin: #efc0a9;
}

.worker-figure-compliance {
    --worker-main: #f4effb;
    --worker-accent: #7d5ca9;
    --worker-skin: #dca88f;
}

.worker-figure-manager {
    --worker-main: #eadff3;
    --worker-accent: #694176;
    --worker-skin: #e8bea7;
}

.worker-halo {
    display: block;
    justify-self: center;
    width: 58px;
    height: 8px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.worker-label {
    display: grid;
    gap: 4px;
    text-align: center;
}

.worker-label strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
}

.worker-label span {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

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

.metric-tile {
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.metric-tile-visual {
    display: grid;
    gap: 16px;
    align-content: center;
    min-height: 150px;
}

.metric-icon {
    position: relative;
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.metric-icon::before,
.metric-icon::after {
    content: "";
    position: absolute;
}

.metric-icon-bars::before {
    left: 14px;
    bottom: 14px;
    width: 8px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        12px -10px 0 0 rgba(255, 255, 255, 0.82),
        24px -4px 0 0 rgba(255, 255, 255, 0.72);
}

.metric-icon-flow::before {
    left: 14px;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        18px 7px 0 0 rgba(255, 255, 255, 0.76),
        0 18px 0 0 rgba(255, 255, 255, 0.68);
}

.metric-icon-flow::after {
    left: 18px;
    top: 23px;
    width: 22px;
    height: 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.62);
    border-bottom: 2px solid rgba(255, 255, 255, 0.62);
    transform: rotate(-28deg);
}

.metric-icon-shield::before {
    left: 16px;
    top: 12px;
    width: 26px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    clip-path: polygon(50% 0%, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0% 18%);
}

.metric-icon-shield::after {
    left: 24px;
    top: 23px;
    width: 12px;
    height: 7px;
    border-left: 3px solid rgba(82, 51, 129, 0.92);
    border-bottom: 3px solid rgba(82, 51, 129, 0.92);
    transform: rotate(-45deg);
}

.metric-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.16));
}

.metric-line-strong {
    width: 78%;
}

.metric-line-short {
    width: 58%;
}

.metric-line-mini {
    width: 36%;
}

.metric-tile strong {
    display: block;
    margin: 12px 0 8px;
    color: var(--white);
    font-size: 1.08rem;
}

.metric-tile p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.meeting-card,
.board-card,
.brief-card,
.team-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

.meeting-card {
    padding: 24px;
    border-radius: 28px;
    display: grid;
    gap: 20px;
}

.meeting-top,
.brief-stats,
.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.meeting-badge,
.board-tag,
.brief-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.meeting-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
}

.team-stack {
    display: grid;
    gap: 12px;
}

.team-card {
    padding: 16px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
}

.avatar {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(234, 223, 196, 0.76));
    overflow: hidden;
}

.avatar::before,
.avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-900);
    opacity: 0.88;
}

.avatar::before {
    top: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.avatar::after {
    bottom: 6px;
    width: 30px;
    height: 20px;
    border-radius: 16px 16px 8px 8px;
}

.avatar-one {
    background: linear-gradient(180deg, #ffffff, #f1ecfa);
}

.avatar-two {
    background: linear-gradient(180deg, #fbf8f1, #e5d8f3);
}

.avatar-three {
    background: linear-gradient(180deg, #ffffff, #f0ebfb);
}

.team-card strong,
.brief-card strong,
.board-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--white);
}

.brief-card {
    padding: 18px;
    border-radius: 22px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.brief-kicker {
    background: rgba(80, 48, 128, 0.38);
}

.brief-stats {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.brief-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.progress-track span {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(241, 236, 250, 0.82));
}

.procurement-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.board-card {
    padding: 22px;
    border-radius: 24px;
    display: grid;
    gap: 16px;
}

.status-row {
    align-items: flex-start;
}

.status-count {
    min-width: 62px;
    height: 62px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

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

.step-item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.step-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

body.dashboard-page {
    background: #ffffff;
}

.dashboard-shell {
    min-height: 100vh;
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 20px;
}

.dashboard-card,
.tab-panel {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.dashboard-topbar {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    background: #503080;
    border: 1px solid rgba(64, 48, 96, 0.18);
    border-radius: 26px;
    box-shadow: 0 24px 44px rgba(64, 48, 96, 0.22);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    justify-self: start;
    max-width: 300px;
    padding: 8px 12px 8px 6px;
    border-radius: 18px;
    background: transparent;
}

.dashboard-brand-copy {
    display: block;
    max-width: 210px;
}

.dashboard-logo {
    width: 46px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(64, 48, 96, 0.2));
}

.dashboard-brand h1,
.dashboard-card h2 {
    margin: 0;
    color: var(--blue-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

.dashboard-brand h1 {
    color: var(--white);
    font-size: clamp(0.75rem, 1.08vw, 0.98rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
}

.dashboard-subtitle,
.dashboard-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.dashboard-tabs-shell {
    flex: 1;
    min-width: 0;
    padding: 7px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.dashboard-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    white-space: nowrap;
    color: var(--blue-900);
    background: var(--surface-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-800);
    background: var(--blue-100);
}

.dashboard-tab:hover,
.dashboard-tab:focus-visible,
.settings-subtab:hover,
.settings-subtab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px var(--shadow-soft);
}

.dashboard-tab.is-active,
.settings-subtab.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    border-color: transparent;
}

.dashboard-signout-form {
    margin: 0;
    display: block;
    width: 100%;
}

.dashboard-tab-signout {
    cursor: pointer;
    font: inherit;
    color: var(--white);
    background: linear-gradient(135deg, #6a4a9b, #403060);
}

.tab-panel {
    padding: 28px;
    display: grid;
    gap: 22px;
}

.dashboard-metrics-panel {
    padding: 0;
    gap: 44px;
    margin-top: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard-metrics-panel .metrics-stage {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tab-panel-header h2 {
    margin: 0;
    color: var(--blue-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
}

.tab-panel-header p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.tab-grid {
    display: grid;
    gap: 20px;
}

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

.tab-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-card {
    padding: 24px;
}

.dashboard-card-primary {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.2), transparent 38%),
        linear-gradient(155deg, #5c3d90 0%, #7a5aab 100%);
    border-color: rgba(255, 255, 255, 0.18);
}

.dashboard-card-primary h2,
.dashboard-card-primary p,
.dashboard-card-primary .dashboard-pill {
    color: var(--white);
}

.dashboard-card-primary .dashboard-pill {
    background: rgba(255, 255, 255, 0.18);
}

.metrics-stage {
    display: grid;
    gap: 10px;
    padding: 14px 16px 16px;
}

.metrics-stage-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.metrics-stage-header h2 {
    margin: 0;
    color: var(--blue-900);
}

.metrics-stage-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.metric-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.metric-control {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-200);
    color: var(--blue-900);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.metric-control:hover,
.metric-control:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px var(--shadow-soft);
}

.metric-control:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.metric-carousel-shell {
    overflow: hidden;
    margin-top: -6px;
}

.metric-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 42px) / 4);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.metric-carousel-track::-webkit-scrollbar {
    display: none;
}

.metric-data-card {
    min-height: 154px;
    padding: 18px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(241, 236, 250, 0.92)),
        linear-gradient(160deg, #ffffff 0%, #f3eefc 100%);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-data-card:hover,
.metric-data-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px var(--shadow-strong);
}

.metric-data-card.is-active {
    border-color: rgba(80, 48, 128, 0.38);
    box-shadow: 0 18px 30px rgba(64, 48, 96, 0.14);
}

.metric-data-card:nth-child(4n + 1) {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(160deg, #503080 0%, #6a4a9b 100%);
    border-color: rgba(255, 255, 255, 0.14);
}

.metric-data-card:nth-child(4n + 1) .metric-card-label,
.metric-data-card:nth-child(4n + 1) .metric-card-value {
    color: var(--white);
}

.metric-card-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--blue-900);
}

.metric-card-value {
    display: block;
    margin-top: 18px;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1;
    color: var(--blue-900);
}

.supplier-table-card {
    padding: 0;
    overflow: hidden;
}

.supplier-status-message {
    margin: 18px 18px 0;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 0.9rem;
    font-weight: 700;
}

.section-status-message {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--blue-100);
    color: var(--blue-900);
    font-size: 0.9rem;
    font-weight: 700;
}

.table-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0;
    flex-wrap: wrap;
}

.table-filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-900);
    background: var(--surface-200);
    border: 1px solid var(--line);
}

.clear-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--blue-900);
    background: var(--surface-100);
    border: 1px solid var(--line);
}

.data-table-shell {
    display: grid;
    gap: 18px;
}

.supplier-table-card .data-table-shell {
    padding: 0 0 18px;
}

.supplier-table-card .data-table-toolbar,
.supplier-table-card .data-table-footer {
    padding: 0 18px;
}

.data-table-toolbar,
.data-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.data-table-length,
.data-table-search {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--blue-900);
    font-size: 0.9rem;
    font-weight: 700;
}

.data-table-length span,
.data-table-search span {
    white-space: nowrap;
}

.data-table-search {
    margin-left: auto;
    flex: 1 1 280px;
    justify-content: flex-end;
}

.data-table-select,
.data-table-input {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
    background: #ffffff;
}

.data-table-select {
    min-width: 82px;
    padding: 0 12px;
}

.data-table-input {
    width: min(100%, 320px);
    flex: 0 1 320px;
    padding: 0 14px;
}

.data-table-info {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.data-table-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.data-table-page-button {
    min-width: 40px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--blue-900);
    background: var(--surface-100);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.data-table-page-button:hover,
.data-table-page-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px var(--shadow-soft);
}

.data-table-page-button.is-active {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    border-color: transparent;
    box-shadow: none;
}

.data-table-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    transform: none;
    box-shadow: none;
}

.placeholder-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.placeholder-list div {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--blue-900);
    background: var(--surface-200);
    border: 1px solid var(--line);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.field-preview {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-100);
}

.field-preview span {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.field-preview strong {
    display: block;
    margin-top: 10px;
    color: var(--blue-900);
    font-size: 0.98rem;
}

.table-card {
    padding: 18px;
}

.table-wrap {
    overflow-x: auto;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
}

.responsive-data-table {
    min-width: 0;
    table-layout: fixed;
}

.preview-table th,
.preview-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(64, 48, 96, 0.08);
}

.preview-table th {
    font-size: 0.72rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--surface-200);
    white-space: normal;
}

.preview-table td {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    vertical-align: top;
    font-size: 0.76rem;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
}

.supplier-data-table td:first-child,
.supplier-data-table th:first-child {
    width: 4%;
    text-align: center;
}

.supplier-summary-table td:first-child,
.supplier-summary-table th:first-child {
    width: 5%;
    text-align: center;
}

.supplier-data-table th:nth-child(2),
.supplier-data-table td:nth-child(2) {
    width: 13%;
}

.supplier-data-table th:nth-child(3),
.supplier-data-table td:nth-child(3) {
    width: 14%;
}

.supplier-data-table th:nth-child(4),
.supplier-data-table td:nth-child(4) {
    width: 9%;
}

.supplier-data-table th:nth-child(5),
.supplier-data-table td:nth-child(5) {
    width: 13%;
}

.supplier-data-table th:nth-child(6),
.supplier-data-table td:nth-child(6) {
    width: 11%;
}

.supplier-data-table th:nth-child(7),
.supplier-data-table td:nth-child(7) {
    width: 11%;
}

.supplier-data-table th:nth-child(8),
.supplier-data-table td:nth-child(8) {
    width: 14%;
}

.supplier-data-table th:nth-child(9),
.supplier-data-table td:nth-child(9) {
    width: 11%;
}

.supplier-summary-table th:nth-child(2),
.supplier-summary-table td:nth-child(2) {
    width: 18%;
}

.supplier-summary-table th:nth-child(3),
.supplier-summary-table td:nth-child(3) {
    width: 14%;
}

.supplier-summary-table th:nth-child(4),
.supplier-summary-table td:nth-child(4) {
    width: 11%;
}

.supplier-summary-table th:nth-child(5),
.supplier-summary-table td:nth-child(5) {
    width: 13%;
}

.supplier-summary-table th:nth-child(6),
.supplier-summary-table td:nth-child(6) {
    width: 11%;
}

.supplier-summary-table th:nth-child(7),
.supplier-summary-table td:nth-child(7) {
    width: 13%;
}

.supplier-summary-table th:nth-child(8),
.supplier-summary-table td:nth-child(8) {
    width: 15%;
}

.ppa-detail {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ppa-detail span {
    display: block;
    line-height: 1.35;
}

.ppa-detail strong {
    color: var(--blue-900);
}

.table-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-action-form {
    margin: 0;
}

.table-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--blue-900);
    background: var(--surface-100);
    cursor: pointer;
}

.table-action-view {
    background: var(--surface-200);
}

.table-action-edit {
    background: #eef7ed;
    color: #21643b;
    border-color: rgba(33, 100, 59, 0.14);
}

.table-action-delete {
    background: #fff0f0;
    color: #8c2432;
    border-color: rgba(140, 36, 50, 0.14);
}

.empty-table-state {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.empty-table-state::before {
    content: none;
}

body.has-modal-open {
    overflow: hidden;
}

.supplier-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 32px 20px;
    overflow-y: auto;
    background: var(--overlay-strong);
    backdrop-filter: blur(6px);
}

.supplier-modal-card {
    width: min(1040px, 100%);
    margin: auto 0;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 32px 70px rgba(64, 48, 96, 0.24);
}

.supplier-modal-content {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

.supplier-modal-copy {
    margin: 12px 0 0;
    max-width: 52ch;
    color: var(--muted);
    line-height: 1.65;
}

.supplier-detail-card {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.detail-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.detail-card-header h2 {
    margin: 0;
    color: var(--blue-900);
}

.detail-close-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    color: var(--blue-900);
    background: var(--surface-200);
    border: 1px solid var(--line);
}

.detail-close-secondary {
    background: #f8f6fc;
}

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

.supplier-detail-item,
.supplier-form-field {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-100);
}

.supplier-detail-item span,
.supplier-form-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.supplier-detail-item strong {
    display: block;
    color: var(--blue-900);
    line-height: 1.55;
}

.supplier-form-field-wide {
    grid-column: 1 / -1;
}

.supplier-form-field input,
.supplier-form-field textarea,
.supplier-form-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #ffffff;
}

.supplier-form-field textarea {
    resize: vertical;
}

.supplier-form-field small {
    display: block;
    margin-top: 8px;
    color: #a3323f;
    font-weight: 700;
}

.supplier-form-general-error {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(163, 50, 63, 0.14);
    background: #fff2f3;
    color: #a3323f;
    font-weight: 700;
}

.supplier-edit-form {
    display: grid;
    gap: 20px;
}

.supplier-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.supplier-save-button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    cursor: pointer;
}

.settings-subtabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.settings-subtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 700;
    color: var(--blue-900);
    background: var(--surface-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.access-summary-grid {
    align-items: stretch;
}

.access-summary-card {
    display: grid;
    gap: 18px;
}

.access-session-card {
    align-content: start;
}

.access-session-header {
    display: grid;
    gap: 12px;
    align-content: start;
}

.access-session-header .dashboard-pill {
    margin-bottom: 0;
    width: fit-content;
}

.access-session-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.access-session-copy {
    margin: 0;
}

.access-session-username {
    font-weight: 800;
    color: var(--blue-900);
}

.access-stat-list,
.access-role-list,
.access-badge-list,
.access-cell-stack {
    display: grid;
    gap: 12px;
}

.access-stat-item,
.access-role-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-200);
}

.access-stat-item span,
.access-role-heading strong,
.access-table-title {
    display: block;
}

.access-stat-item span {
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.access-stat-item strong {
    color: var(--blue-900);
    font-size: 1.35rem;
    line-height: 1;
}

.access-role-item p {
    margin-top: 8px;
}

.access-role-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.access-role-count,
.access-role-chip,
.access-status-chip,
.access-badge,
.access-inline-note {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.access-role-count,
.access-badge,
.access-inline-note {
    color: var(--blue-900);
    background: var(--surface-100);
}

.access-role-chip {
    color: var(--blue-900);
    background: rgba(106, 74, 155, 0.12);
}

.access-status-chip.is-active {
    color: #155741;
    border-color: rgba(21, 87, 65, 0.16);
    background: #ebf8f2;
}

.access-status-chip.is-inactive {
    color: #8a4f08;
    border-color: rgba(138, 79, 8, 0.16);
    background: #fff4e6;
}

.access-badge-list {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.access-form-card,
.access-user-table-card {
    overflow: hidden;
}

.access-user-table-card .table-wrap {
    margin-top: 8px;
}

.access-user-table {
    table-layout: fixed;
}

.access-user-table col.access-user-col-name {
    width: 18%;
}

.access-user-table col.access-user-col-username {
    width: 12%;
}

.access-user-table col.access-user-col-role {
    width: 10%;
}

.access-user-table col.access-user-col-status {
    width: 10%;
}

.access-user-table col.access-user-col-updated {
    width: 14%;
}

.access-user-table col.access-user-col-scope {
    width: 22%;
}

.access-user-table col.access-user-col-action {
    width: 14%;
}

.access-user-table th,
.access-user-table td {
    vertical-align: top;
}

.access-user-table th:nth-child(2),
.access-user-table td:nth-child(2),
.access-user-table th:nth-child(5),
.access-user-table td:nth-child(5) {
    white-space: nowrap;
}

.access-user-table th:nth-child(3),
.access-user-table td:nth-child(3),
.access-user-table th:nth-child(4),
.access-user-table td:nth-child(4) {
    text-align: center;
}

.access-user-table td:nth-child(3) .access-role-chip,
.access-user-table td:nth-child(4) .access-status-chip {
    justify-content: center;
}

.access-user-table td:last-child .table-actions {
    align-items: flex-start;
    gap: 8px;
}

.access-cell-stack {
    gap: 8px;
}

.access-table-title {
    color: var(--blue-900);
    line-height: 1.45;
}

.access-inline-note {
    width: fit-content;
    max-width: 100%;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-200);
}

.access-toggle-button {
    color: var(--blue-900);
    background: rgba(106, 74, 155, 0.12);
}

.user-settings-workspace {
    align-items: start;
}

.user-settings-card {
    display: grid;
    gap: 18px;
}

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

.settings-meta-item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-200);
}

.settings-meta-item span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-700);
}

.settings-meta-item strong {
    color: var(--blue-900);
    line-height: 1.45;
}

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

.settings-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-200);
    cursor: pointer;
}

.settings-checkbox input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--blue-800);
}

.settings-checkbox-copy {
    display: grid;
    gap: 4px;
}

.settings-checkbox-copy strong {
    color: var(--blue-900);
}

.settings-checkbox-copy span {
    color: var(--muted);
    line-height: 1.6;
}

.reports-panel {
    padding-top: 18px;
}

.report-export-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 24px;
    border: 1px solid rgba(64, 48, 96, 0.12);
    background: #ffffff;
}

.report-export-title-block h2 {
    margin: 0;
    color: var(--blue-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    letter-spacing: 0.08em;
}

.report-export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.report-export-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 800;
    color: var(--blue-900);
    background: var(--surface-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.report-export-tab:hover,
.report-export-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px var(--shadow-soft);
}

.report-export-tab-primary {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quick-report-banner {
    display: grid;
    gap: 16px;
    padding: 22px 24px;
}

.quick-report-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.quick-report-copy h2 {
    margin: 8px 0 0;
    color: var(--blue-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.quick-report-search {
    display: block;
}

.quick-report-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    font: inherit;
    font-size: 0.96rem;
    color: var(--ink);
    background: var(--surface-100);
}

.quick-report-search input:focus {
    outline: none;
    border-color: rgba(80, 48, 128, 0.5);
    box-shadow: 0 0 0 5px rgba(106, 74, 155, 0.12);
}

.quick-report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.quick-report-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    font: inherit;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-report-button:hover,
.quick-report-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px var(--shadow-soft);
}

.quick-report-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-report-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--blue-900);
    background: var(--surface-200);
}

.report-table-card {
    padding: 0;
    overflow: hidden;
}

.report-table-card .data-table-shell {
    padding: 0 0 18px;
}

.report-table-card .data-table-toolbar,
.report-table-card .data-table-footer {
    padding: 0 18px;
}

@media (max-width: 1080px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .login-card,
    .insight-panel {
        width: 100%;
    }

    .meeting-grid,
    .procurement-board,
    .office-screen-grid,
    .corporate-metrics,
    .tab-grid-three,
    .tab-grid-two,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .access-session-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-tabs {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-tabs-shell {
        width: 100%;
    }

    .metric-carousel-track {
        grid-auto-columns: calc((100% - 12px) / 2);
        gap: 12px;
    }

    .report-export-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-export-actions {
        justify-content: flex-start;
    }

    .quick-report-form {
        grid-template-columns: 1fr;
    }

    .settings-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .quick-report-actions {
        justify-content: flex-start;
    }

    .data-table-toolbar,
    .data-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-table-search {
        margin-left: 0;
        justify-content: flex-start;
        width: 100%;
    }

    .data-table-input {
        width: 100%;
        flex: 1 1 auto;
    }

    .supplier-table-card {
        padding: 14px;
    }

    .supplier-table-card .data-table-shell {
        padding-bottom: 0;
    }

    .supplier-table-card .data-table-toolbar,
    .supplier-table-card .data-table-footer {
        padding: 0;
    }

    .responsive-data-table,
    .responsive-data-table thead,
    .responsive-data-table tbody,
    .responsive-data-table tr,
    .responsive-data-table td {
        display: block;
        width: 100%;
    }

    .responsive-data-table thead {
        display: none;
    }

    .responsive-data-table tbody {
        display: grid;
        gap: 14px;
    }

    .responsive-data-table tr {
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #ffffff;
    }

    .responsive-data-table td {
        display: grid;
        grid-template-columns: minmax(150px, 180px) 1fr;
        gap: 12px;
        padding: 0;
        border: 0;
        background: transparent;
        text-align: left;
        width: 100%;
    }

    .responsive-data-table td + td {
        margin-top: 12px;
    }

    .responsive-data-table td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--blue-700);
    }

    .responsive-data-table td:first-child {
        text-align: left;
    }

    .table-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .table-action-button {
        width: auto;
        min-width: 92px;
    }

    .supplier-detail-grid,
    .supplier-form-grid {
        grid-template-columns: 1fr;
    }

    .supplier-modal {
        padding: 22px 14px;
    }

    .supplier-modal-card {
        border-radius: 24px;
    }

    .supplier-modal-content {
        max-height: calc(100vh - 44px);
    }

    .table-filter-summary {
        padding: 14px 14px 0;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 18px;
        gap: 18px;
    }

    .login-card,
    .insight-panel {
        border-radius: 24px;
    }

    .login-card,
    .insight-panel {
        padding: 28px 22px;
    }

    .brand-block {
        align-items: flex-start;
    }

    .brand-logo {
        width: 108px;
    }

    .office-stage {
        padding: 18px;
        border-radius: 24px;
    }

    .office-team,
    .corporate-metrics,
    .summary-stats {
        grid-template-columns: 1fr;
    }

    .worker-figure,
    .metric-tile,
    .office-screen {
        border-radius: 20px;
    }

    .dashboard-shell {
        padding: 0 18px 18px;
    }

    .dashboard-card,
    .tab-panel {
        border-radius: 22px;
    }

    .dashboard-topbar {
        padding: 10px 12px;
    }

    .dashboard-brand {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        gap: 8px;
    }

    .dashboard-logo {
        width: 42px;
    }

    .dashboard-tabs-shell {
        padding: 6px;
    }

    .tab-panel {
        padding: 18px;
    }

    .report-export-actions {
        width: 100%;
    }

    .report-export-tab {
        width: 100%;
    }

    .quick-report-button {
        width: 100%;
    }

    .dashboard-metrics-panel {
        padding: 0;
    }

    .dashboard-tabs {
        grid-template-columns: 1fr;
    }

    .dashboard-tab,
    .settings-subtab {
        width: 100%;
    }

    .dashboard-signout-form {
        width: 100%;
    }

    .metrics-stage-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .metric-carousel-track {
        grid-auto-columns: 100%;
    }

    .responsive-data-table tr {
        padding: 14px;
    }

    .responsive-data-table td {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .supplier-modal {
        padding: 14px 10px;
    }

    .supplier-modal-card {
        border-radius: 22px;
    }

    .supplier-modal-content {
        max-height: calc(100vh - 28px);
    }

    .detail-card-header,
    .supplier-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-close-link,
    .supplier-save-button {
        width: 100%;
    }

    .table-filter-summary {
        padding: 12px 12px 0;
    }
}
