:root {
    --navy-950: #241138;
    --navy-900: #4a2870;
    --navy-800: #633694;
    --teal-700: #7d57c8;
    --teal-500: #b694f5;
    --sand-100: #f7f2ff;
    --sand-200: #eee4ff;
    --white: #ffffff;
    --ink: #2f2140;
    --muted: #766889;
    --line: rgba(74, 40, 112, 0.12);
    --shadow: 0 30px 70px rgba(74, 40, 112, 0.16);
    --soft-shadow: 0 18px 32px rgba(74, 40, 112, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

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(182, 148, 245, 0.28), transparent 28%),
        radial-gradient(circle at bottom right, rgba(125, 87, 200, 0.16), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #f8f3ff 44%, #efe5ff 100%);
}

.page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
    gap: 28px;
    padding: 28px;
}

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

.login-card,
.visual-card {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.login-card {
    max-width: 400px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-align: center;
}

.brand-logo {
    width: 108px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(74, 40, 112, 0.18));
}

.brand-copy h1 {
    margin: 0;
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    letter-spacing: 0.02em;
    font-size: clamp(1.22rem, 2.4vw, 1.6rem);
    line-height: 1.18;
    color: var(--navy-900);
}

.credential-box {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(125, 87, 200, 0.14);
    background: linear-gradient(180deg, rgba(247, 242, 255, 0.92), rgba(255, 255, 255, 0.98));
}

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

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

.login-form input:focus {
    outline: none;
    border-color: rgba(125, 87, 200, 0.5);
    box-shadow: 0 0 0 5px rgba(182, 148, 245, 0.18);
    transform: translateY(-1px);
}

.login-actions {
    display: block;
    margin-top: 4px;
}

.login-actions button {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--navy-900));
    box-shadow: 0 16px 26px rgba(74, 40, 112, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-actions button:hover,
.login-actions button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px rgba(74, 40, 112, 0.24);
    filter: brightness(1.02);
}

.credential-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.forgot-link {
    color: var(--teal-700);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover,
.forgot-link:focus-visible {
    text-decoration: underline;
}

.credential-notice {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(125, 87, 200, 0.14);
    color: var(--navy-900);
    background: rgba(182, 148, 245, 0.12);
    font-size: 0.88rem;
    line-height: 1.5;
}

.credential-notice strong {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.credential-notice-error {
    border-color: rgba(164, 55, 85, 0.16);
    color: #8d2444;
    background: rgba(255, 239, 244, 0.94);
}

.dashboard-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-shell-simple {
    width: 100%;
    max-width: 760px;
    padding: 28px;
}

.dashboard-card-simple {
    padding: 34px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.dashboard-logo-simple {
    width: 110px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(74, 40, 112, 0.18));
}

.dashboard-kicker {
    margin: 18px 0 10px;
    color: var(--teal-700);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dashboard-card-simple h1 {
    margin: 0;
    color: var(--navy-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.15;
}

.dashboard-copy {
    max-width: 42ch;
    margin: 16px auto 0;
    color: var(--muted);
    line-height: 1.7;
}

.dashboard-actions-simple {
    margin-top: 24px;
}

.dashboard-button-simple {
    min-width: 180px;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--navy-900));
    box-shadow: 0 16px 26px rgba(74, 40, 112, 0.2);
    cursor: pointer;
}

.visual-card {
    position: relative;
    min-height: 760px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(182, 148, 245, 0.22), transparent 26%),
        linear-gradient(155deg, #633694 0%, #4a2870 58%, #241138 100%);
    color: var(--white);
}

.office-scene {
    position: relative;
    min-height: 560px;
    height: 100%;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.scene-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
}

.scene-glow-one {
    top: 54px;
    right: 84px;
    width: 120px;
    height: 120px;
    background: rgba(182, 148, 245, 0.24);
}

.scene-glow-two {
    left: 54px;
    bottom: 120px;
    width: 150px;
    height: 150px;
    background: rgba(125, 87, 200, 0.2);
}

.board-panel {
    position: absolute;
    top: 38px;
    left: 38px;
    right: 38px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.board-badge {
    width: 86px;
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.board-dots {
    display: flex;
    gap: 6px;
}

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

.board-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    margin-top: 18px;
}

.chart-card,
.summary-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.chart-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 120px;
}

.chart-bar {
    width: 18%;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(180deg, #d8c2ff, #9e76e6);
}

.chart-bar-a {
    height: 42px;
}

.chart-bar-b {
    height: 86px;
}

.chart-bar-c {
    height: 64px;
}

.chart-bar-d {
    height: 104px;
}

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

.summary-line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.summary-line.strong {
    width: 82%;
}

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

.summary-pills {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.summary-pills span {
    width: 42%;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.team-workspace {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 124px;
    height: 240px;
}

.desk-surface {
    position: absolute;
    left: 56px;
    right: 56px;
    bottom: 42px;
    height: 26px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #e7d8ff);
}

.desk-shadow {
    position: absolute;
    left: 84px;
    right: 84px;
    bottom: 16px;
    height: 20px;
    border-radius: 999px;
    background: rgba(6, 16, 26, 0.28);
    filter: blur(8px);
}

.worker {
    position: absolute;
    bottom: 62px;
    width: 130px;
    height: 170px;
}

.worker-head,
.worker-body,
.worker-arm,
.worker-laptop {
    position: absolute;
    display: block;
}

.worker-head {
    top: 0;
    left: 44px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f0c7a5;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.06);
}

.worker-body {
    top: 34px;
    left: 26px;
    width: 78px;
    height: 92px;
    border-radius: 26px 26px 18px 18px;
}

.worker-arm {
    top: 88px;
    left: 68px;
    width: 54px;
    height: 14px;
    border-radius: 999px;
    transform: rotate(-14deg);
    background: #f0c7a5;
}

.worker-laptop {
    bottom: 28px;
    right: 0;
    width: 56px;
    height: 36px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #dde7ec, #b8c8d1);
    transform: skew(-10deg);
}

.worker-left {
    left: 88px;
}

.worker-left .worker-body {
    background: linear-gradient(180deg, #9b6be8, #6f42bb);
}

.worker-left .worker-head::before {
    content: "";
    position: absolute;
    inset: 2px 4px 24px;
    border-radius: 16px 16px 10px 10px;
    background: #203140;
}

.worker-center {
    left: 50%;
    width: 150px;
    height: 188px;
    transform: translateX(-50%);
}

.worker-center .worker-head {
    left: 54px;
    width: 46px;
    height: 46px;
}

.worker-center .worker-body {
    top: 38px;
    left: 32px;
    width: 90px;
    height: 104px;
    background: linear-gradient(180deg, #d0b6ff, #8d63da);
}

.worker-center .worker-arm {
    top: 98px;
    left: 82px;
}

.worker-center .worker-head::before {
    content: "";
    position: absolute;
    inset: 0 3px 24px;
    border-radius: 16px 16px 12px 12px;
    background: #2c1f1f;
}

.worker-right {
    right: 92px;
}

.worker-right .worker-body {
    background: linear-gradient(180deg, #c194ff, #8451d3);
}

.worker-right .worker-head::before {
    content: "";
    position: absolute;
    inset: 1px 5px 25px;
    border-radius: 16px 16px 12px 12px;
    background: #3b2d24;
}

.status-strip {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.status-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

.status-line {
    display: block;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.status-line-strong {
    width: 88%;
}

.status-line-short {
    width: 54%;
}

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

    .login-card,
    .visual-card {
        max-width: 100%;
    }

    .dashboard-shell-simple {
        max-width: 100%;
    }
}

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

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

    .login-card,
    .visual-card {
        padding: 22px 20px;
    }

    .visual-card {
        min-height: auto;
    }

    .dashboard-card-simple {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .board-grid,
    .status-strip {
        grid-template-columns: 1fr;
    }

    .office-scene {
        min-height: 760px;
    }

    .desk-surface {
        left: 24px;
        right: 24px;
    }

    .worker-left {
        left: 16px;
    }

    .worker-right {
        right: 16px;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        width: 96px;
    }

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

    .board-panel {
        top: 20px;
        left: 20px;
        right: 20px;
    }

    .office-scene {
        display: grid;
        align-content: start;
        min-height: 920px;
    }

    .team-workspace {
        left: 0;
        right: 0;
        bottom: 170px;
        height: 280px;
    }

    .worker {
        width: 112px;
        transform: none;
    }

    .worker-center {
        left: calc(50% - 56px);
    }

    .worker-center .worker-head {
        left: 36px;
    }

    .worker-center .worker-body {
        left: 18px;
    }

    .worker-center .worker-arm {
        left: 64px;
    }

    .worker-left {
        left: 12px;
    }

    .worker-right {
        right: 12px;
    }

    .status-strip {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

.app-page {
    display: block;
    min-height: 100vh;
}

.dashboard-shell {
    min-height: 100vh;
    padding: 18px;
    display: grid;
    gap: 18px;
    align-content: start;
}

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

.dashboard-topbar {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, #5c3291, #3a1b5b);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 12px;
}

.dashboard-logo {
    width: 46px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(36, 17, 56, 0.3));
}

.dashboard-brand-copy {
    min-width: 0;
}

.dashboard-brand-copy h1 {
    margin: 0;
    color: var(--white);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    line-height: 1;
    letter-spacing: 0.08em;
}

.dashboard-tabs-shell {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.dashboard-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: stretch;
}

.dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: auto;
    min-width: 118px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 800;
    color: #3f235f;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.dashboard-tab:hover,
.dashboard-tab:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(36, 17, 56, 0.16);
}

.dashboard-tab.is-active {
    color: var(--white);
    background: linear-gradient(135deg, #a678ff, #6f42bb);
    border-color: transparent;
}

.dashboard-signout-form {
    margin: 0;
}

.dashboard-tab-signout {
    cursor: pointer;
    font: inherit;
    color: var(--white);
    background: linear-gradient(135deg, #7d57c8, #4a2870);
}

.dashboard-stage {
    display: grid;
    gap: 18px;
}

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

.stage-card-slot,
.stage-table-slot {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.stage-card-slot {
    min-height: 152px;
}

.stage-table-slot {
    padding: 18px;
    min-height: 440px;
}

.stage-stat-card {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 255, 0.9));
}

.stage-stat-card span {
    color: var(--teal-700);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stage-stat-card strong {
    color: var(--navy-900);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.stage-table-scroll {
    overflow-x: auto;
}

.stage-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1060px;
}

.stage-data-table th,
.stage-data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(74, 40, 112, 0.08);
    vertical-align: top;
}

.stage-data-table th {
    color: var(--teal-700);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stage-data-table td {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.55;
}

.stage-table-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(164, 55, 85, 0.16);
    color: #8d2444;
    background: rgba(255, 239, 244, 0.94);
    font-weight: 700;
    line-height: 1.5;
}

.stage-feedback-notice {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
    line-height: 1.5;
    box-shadow: var(--soft-shadow);
}

.stage-feedback-success {
    border: 1px solid rgba(34, 125, 90, 0.16);
    color: #216248;
    background: rgba(233, 248, 239, 0.94);
}

.stage-feedback-error {
    border: 1px solid rgba(164, 55, 85, 0.16);
    color: #8d2444;
    background: rgba(255, 239, 244, 0.94);
}

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

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

.stage-inline-form {
    margin: 0;
}

.stage-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.stage-action-button:hover,
.stage-action-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(74, 40, 112, 0.14);
    filter: brightness(1.01);
}

.stage-action-button.is-view {
    color: var(--navy-900);
    border-color: rgba(74, 40, 112, 0.12);
    background: rgba(247, 242, 255, 0.96);
}

.stage-action-button.is-edit {
    color: var(--white);
    background: linear-gradient(135deg, #8b63d7, #5a3294);
}

.stage-action-button.is-delete {
    color: #8d2444;
    border-color: rgba(164, 55, 85, 0.14);
    background: rgba(255, 239, 244, 0.94);
}

.has-modal {
    overflow: hidden;
}

.request-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(36, 17, 56, 0.5);
    backdrop-filter: blur(10px);
}

.request-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    padding: 24px;
    overflow-y: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 255, 0.94));
    box-shadow: 0 30px 80px rgba(36, 17, 56, 0.24);
}

.request-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.request-modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--navy-900);
    background: rgba(182, 148, 245, 0.18);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-modal-header h2 {
    margin: 0;
    color: var(--navy-900);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.12;
}

.request-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy-900);
    background: rgba(247, 242, 255, 0.94);
    border: 1px solid rgba(74, 40, 112, 0.1);
}

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

.request-detail-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(74, 40, 112, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.request-detail-card span,
.request-edit-field span {
    color: var(--teal-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.request-detail-card strong {
    color: var(--navy-900);
    font-size: 1rem;
    line-height: 1.5;
}

.request-detail-card-wide,
.request-edit-field-wide {
    grid-column: 1 / -1;
}

.request-edit-form {
    display: grid;
    gap: 18px;
}

.request-edit-field {
    display: grid;
    gap: 8px;
}

.request-edit-field input,
.request-edit-field select,
.request-edit-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(74, 40, 112, 0.12);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-edit-field textarea {
    min-height: 120px;
    resize: vertical;
}

.request-edit-field input:focus,
.request-edit-field select:focus,
.request-edit-field textarea:focus {
    outline: none;
    border-color: rgba(125, 87, 200, 0.5);
    box-shadow: 0 0 0 5px rgba(182, 148, 245, 0.18);
}

.request-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.workspace-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, rgba(102, 61, 161, 0.98), rgba(61, 29, 100, 0.98));
    box-shadow: var(--shadow);
}

.workspace-banner-copy h2 {
    margin: 0;
    color: var(--white);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1.12;
}

.workspace-banner-copy p {
    max-width: 54ch;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.workspace-banner-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-banner-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-width: 280px;
}

.workspace-banner-stat {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
}

.workspace-banner-stat span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-banner-stat strong {
    display: block;
    margin-top: 10px;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.2;
}

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

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

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

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(182, 148, 245, 0.14);
    color: var(--navy-900);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-grid,
.dashboard-two-column,
.profile-grid,
.request-form-grid {
    display: grid;
    gap: 18px;
}

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

.dashboard-two-column {
    grid-template-columns: 1.5fr 0.9fr;
}

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

.dashboard-card-panel,
.summary-card-panel,
.request-form-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(74, 40, 112, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 242, 255, 0.9));
}

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

.summary-card-panel span,
.profile-label {
    color: var(--teal-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-card-panel strong,
.profile-card strong {
    color: var(--navy-900);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.08;
}

.summary-card-panel small {
    color: var(--muted);
    font-size: 0.85rem;
}

.summary-card-primary {
    background: linear-gradient(160deg, #6f42bb, #4a2870);
    border-color: transparent;
}

.summary-card-primary span,
.summary-card-primary strong,
.summary-card-primary small {
    color: var(--white);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-heading-wide {
    flex-wrap: wrap;
}

.panel-count-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--navy-900);
    background: rgba(182, 148, 245, 0.18);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-link,
.mini-action-link {
    color: var(--teal-700);
    font-weight: 700;
    text-decoration: none;
}

.panel-link:hover,
.panel-link:focus-visible,
.mini-action-link:hover,
.mini-action-link:focus-visible {
    text-decoration: underline;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(74, 40, 112, 0.08);
    font-size: 0.86rem;
    vertical-align: top;
}

.data-table th {
    color: var(--teal-700);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.data-table td {
    color: var(--ink);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-pending {
    color: #8a5a05;
    background: #fff3db;
}

.status-approved {
    color: #1f6f48;
    background: #e9f8ef;
}

.status-in-review {
    color: #5d34a1;
    background: #efe7ff;
}

.status-completed {
    color: #1c5f6e;
    background: #e8f7fb;
}

.status-delivered {
    color: #1c5f6e;
    background: #e8f7fb;
}

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

.progress-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(182, 148, 245, 0.08);
    border: 1px solid rgba(74, 40, 112, 0.08);
}

.progress-item span {
    color: var(--muted);
    font-weight: 700;
}

.progress-item strong {
    color: var(--navy-900);
    font-size: 1rem;
}

.request-form-card {
    display: grid;
    gap: 18px;
}

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

.request-form-field {
    display: grid;
    gap: 8px;
}

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

.request-form-field label {
    color: var(--navy-900);
    font-size: 0.88rem;
    font-weight: 700;
}

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

.request-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.request-form-field input:focus,
.request-form-field select:focus,
.request-form-field textarea:focus {
    outline: none;
    border-color: rgba(125, 87, 200, 0.5);
    box-shadow: 0 0 0 5px rgba(182, 148, 245, 0.18);
}

.request-form-field small {
    color: #8d2444;
    font-weight: 700;
}

.request-form-actions {
    display: flex;
    justify-content: flex-start;
}

.report-panel {
    display: grid;
    gap: 20px;
}

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

.report-search-field {
    display: grid;
    gap: 8px;
}

.report-search-field span {
    color: var(--navy-900);
    font-size: 0.88rem;
    font-weight: 700;
}

.report-search-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
}

.report-search-field input:focus {
    outline: none;
    border-color: rgba(125, 87, 200, 0.5);
    box-shadow: 0 0 0 5px rgba(182, 148, 245, 0.18);
}

.report-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.report-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-900);
    border: 1px solid rgba(74, 40, 112, 0.12);
    background: rgba(247, 242, 255, 0.96);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-action-link:hover,
.report-action-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(36, 17, 56, 0.12);
}

.report-action-link.is-secondary {
    color: var(--white);
    border-color: transparent;
    background: linear-gradient(135deg, #8b63d7, #5a3294);
}

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

.request-submit-button,
.dashboard-button-simple {
    min-height: 48px;
    padding: 12px 20px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--teal-700), var(--navy-900));
    box-shadow: 0 16px 26px rgba(74, 40, 112, 0.2);
    cursor: pointer;
}

.section-status-message {
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(125, 87, 200, 0.14);
    background: rgba(182, 148, 245, 0.12);
    color: var(--navy-900);
    font-weight: 700;
}

.section-status-error {
    border-color: rgba(164, 55, 85, 0.16);
    background: rgba(255, 239, 244, 0.94);
    color: #8d2444;
}

.profile-card {
    display: grid;
    gap: 10px;
}

.profile-note-card {
    padding: 22px;
}

.dashboard-actions-simple {
    margin-top: 20px;
}

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

    .report-metric-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-grid,
    .dashboard-two-column {
        grid-template-columns: 1fr;
    }

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

    .workspace-banner-meta {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 1080px) {
    .dashboard-topbar {
        align-items: flex-start;
    }

    .dashboard-tabs {
        justify-content: flex-end;
    }
}

@media (max-width: 820px) {
    .dashboard-shell {
        padding: 16px;
    }

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

    .workspace-banner {
        border-radius: 22px;
        padding: 20px;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .dashboard-tabs-shell {
        margin-left: 0;
    }

    .tab-panel,
    .dashboard-card-panel,
    .summary-card-panel,
    .request-form-card,
    .stage-card-slot,
    .stage-table-slot {
        border-radius: 22px;
    }

    .tab-panel {
        padding: 20px;
    }

    .request-form-grid,
    .report-metric-grid,
    .summary-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .request-detail-grid,
    .request-edit-grid {
        grid-template-columns: 1fr;
    }

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

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

    .request-modal {
        padding: 20px;
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .dashboard-shell {
        padding: 12px;
    }

    .workspace-banner-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        border-radius: 22px;
        padding: 10px;
    }

    .dashboard-brand {
        padding: 8px;
    }

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

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

    .tab-panel {
        padding: 18px;
    }

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

    .request-modal-backdrop {
        padding: 12px;
    }

    .request-modal-header {
        flex-direction: column;
        align-items: stretch;
    }

    .request-edit-actions,
    .stage-table-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-toolbar-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stage-inline-form,
    .stage-action-button,
    .request-modal-close,
    .report-action-link,
    .request-submit-button {
        width: 100%;
    }
}

.status-active {
    color: #1f6f48;
    background: #e9f8ef;
}

.status-inactive {
    color: #8d2444;
    background: rgba(255, 239, 244, 0.94);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.profile-access-stack {
    display: grid;
    gap: 18px;
}

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

.profile-summary-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(74, 40, 112, 0.08);
    background: rgba(247, 242, 255, 0.84);
}

.profile-summary-card span {
    color: var(--teal-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-summary-card strong {
    color: var(--navy-900);
    font-size: 1rem;
    line-height: 1.5;
}

.user-access-current {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .profile-summary-grid {
        grid-template-columns: 1fr;
    }
}