:root {
    --podio-950: #062f32;
    --podio-900: #073f43;
    --podio-800: #09585b;
    --podio-700: #0f7779;
    --podio-600: #168c89;
    --podio-500: #25a59d;
    --podio-300: #70d5bd;
    --podio-200: #a6efc1;
    --ink-950: #132425;
    --ink-700: #41595a;
    --ink-500: #718687;
    --surface: #f3f7f6;
    --line: #dbe7e4;
    --white: #fff;
    --danger: #c43f4c;
    --warning: #a4660a;
    --success: #13765c;
    --shadow: 0 14px 40px rgba(12, 70, 70, .10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--surface);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink-950);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.button {
    cursor: pointer;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .72rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

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

.button-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--podio-700), var(--podio-500));
    box-shadow: 0 8px 22px rgba(15, 119, 121, .23);
}

.button-secondary {
    color: var(--podio-800);
    background: #e9f6f2;
    border-color: #cce8df;
}

.button-ghost {
    color: var(--ink-700);
    background: var(--white);
    border-color: var(--line);
}

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

.button-small {
    min-height: 36px;
    padding: .48rem .75rem;
    font-size: .86rem;
}

.auth-shell {
    position: relative;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, .86fr) minmax(520px, 1.14fr);
    overflow: hidden;
}

.auth-brand {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 5rem);
    color: var(--white);
    background: linear-gradient(150deg, var(--podio-950), var(--podio-700) 62%, var(--podio-500));
    isolation: isolate;
}

.auth-brand::before,
.auth-brand::after,
.step-motif::before,
.step-motif::after {
    position: absolute;
    z-index: -1;
    display: block;
    content: "";
    background: rgba(255, 255, 255, .08);
    transform: skewY(-8deg);
}

.auth-brand::before {
    right: -5%;
    bottom: 16%;
    width: 56%;
    height: 54px;
    box-shadow:
        -54px -70px 0 rgba(255, 255, 255, .07),
        -108px -140px 0 rgba(255, 255, 255, .06),
        -162px -210px 0 rgba(255, 255, 255, .05);
}

.auth-brand::after {
    right: 12%;
    bottom: 10%;
    width: 3px;
    height: 260px;
    background: rgba(166, 239, 193, .7);
    transform: none;
}

.brand-wordmark {
    width: min(320px, 80%);
    padding: 1rem 1.2rem;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.auth-brand h1 {
    max-width: 700px;
    margin: 2rem 0 1rem;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.auth-brand p {
    max-width: 600px;
    color: rgba(255, 255, 255, .8);
    font-size: 1.08rem;
    line-height: 1.75;
}

.auth-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.auth-proof span {
    padding: .58rem .76rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    color: rgba(255, 255, 255, .86);
    background: rgba(2, 39, 42, .26);
    font-size: .82rem;
    font-weight: 700;
}

.auth-main {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 5rem);
    background:
        linear-gradient(145deg, rgba(166, 239, 193, .15), transparent 35%),
        var(--white);
}

.auth-card {
    width: min(620px, 100%);
}

.auth-card-wide {
    width: min(760px, 100%);
}

.eyebrow {
    margin: 0 0 .55rem;
    color: var(--podio-700);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.auth-card h2,
.page-heading h1 {
    margin: 0;
    letter-spacing: -.035em;
}

.auth-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.muted {
    color: var(--ink-500);
}

.form-stack {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

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

.field {
    display: grid;
    gap: .43rem;
}

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

.field label,
.label {
    color: var(--ink-700);
    font-size: .85rem;
    font-weight: 750;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: .72rem .84rem;
    color: var(--ink-950);
    border: 1px solid #ccdad7;
    border-radius: 12px;
    outline: 0;
    background: var(--white);
    transition: border .15s ease, box-shadow .15s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--podio-500);
    box-shadow: 0 0 0 4px rgba(37, 165, 157, .13);
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: var(--ink-700);
    font-size: .9rem;
    line-height: 1.5;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: .12rem;
    accent-color: var(--podio-700);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-actions .button {
    min-width: 150px;
}

.text-link {
    color: var(--podio-700);
    font-weight: 750;
}

.text-link:hover {
    text-decoration: underline;
}

.field-error,
.error-list {
    color: var(--danger);
    font-size: .82rem;
}

.error-list {
    padding: .85rem 1rem .85rem 2rem;
    border: 1px solid #f2c7cc;
    border-radius: 12px;
    background: #fff4f5;
}

.notice {
    padding: .88rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-700);
    background: var(--white);
}

.notice-success {
    border-color: #a8deca;
    color: #0d5e48;
    background: #edfbf5;
}

.notice-warning {
    border-color: #ecd7ae;
    color: #7d520e;
    background: #fff9ec;
}

.terms-box {
    max-height: 180px;
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-700);
    background: #f8fbfa;
    font-size: .86rem;
    line-height: 1.65;
    white-space: pre-line;
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 1rem;
    color: var(--white);
    background: linear-gradient(170deg, var(--podio-950), var(--podio-800));
    overflow-y: auto;
}

.sidebar-brand {
    display: block;
    margin-bottom: 1.4rem;
    padding: .7rem;
    border-radius: 14px;
    background: var(--white);
}

.sidebar-brand img {
    display: block;
    width: 100%;
}

.sidebar-context {
    margin-bottom: 1rem;
    padding: .75rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
}

.sidebar-context small {
    display: block;
    margin-bottom: .24rem;
    color: rgba(255, 255, 255, .57);
}

.sidebar-context strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-section {
    margin: 1rem .65rem .45rem;
    color: rgba(255, 255, 255, .45);
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    gap: .28rem;
}

.nav-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: .7rem;
    padding: .65rem .75rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: .9rem;
    font-weight: 680;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, .11);
}

.nav-icon {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    border-radius: 7px;
    color: var(--podio-200);
    background: rgba(166, 239, 193, .10);
    font-size: .72rem;
    font-weight: 900;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem;
}

.avatar {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--podio-950);
    background: var(--podio-200);
    font-weight: 900;
}

.sidebar-user span {
    display: block;
    overflow: hidden;
    color: rgba(255, 255, 255, .6);
    font-size: .73rem;
    text-overflow: ellipsis;
}

.app-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem clamp(1rem, 3vw, 2.5rem);
    border-bottom: 1px solid rgba(215, 228, 225, .8);
    background: rgba(243, 247, 246, .92);
    backdrop-filter: blur(14px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.topbar-title strong {
    display: block;
}

.topbar-title span {
    color: var(--ink-500);
    font-size: .78rem;
}

.mobile-menu {
    display: none;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.content {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2.5rem);
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.page-heading p {
    max-width: 760px;
    margin: .45rem 0 0;
    color: var(--ink-500);
}

.page-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.metric-grid,
.product-grid {
    display: grid;
    gap: 1rem;
}

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

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(12, 70, 70, .045);
}

.card-pad {
    padding: 1.15rem;
}

.metric-card {
    position: relative;
    min-height: 138px;
    overflow: hidden;
    padding: 1.1rem;
}

.metric-card::after {
    position: absolute;
    right: -14px;
    bottom: 18px;
    width: 90px;
    height: 18px;
    content: "";
    background: rgba(37, 165, 157, .09);
    box-shadow:
        -18px -24px 0 rgba(37, 165, 157, .075),
        -36px -48px 0 rgba(37, 165, 157, .06);
    transform: skewY(-8deg);
}

.metric-label {
    color: var(--ink-500);
    font-size: .78rem;
    font-weight: 750;
}

.metric-value {
    display: block;
    margin-top: .45rem;
    font-size: 2rem;
    letter-spacing: -.04em;
}

.metric-note {
    margin-top: .28rem;
    color: var(--success);
    font-size: .76rem;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
    gap: 1rem;
    margin-top: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--line);
}

.section-title h2 {
    margin: 0;
    font-size: 1.03rem;
}

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

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

.data-table th,
.data-table td {
    padding: .82rem 1rem;
    border-bottom: 1px solid #edf2f0;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--ink-500);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.data-table td {
    color: var(--ink-700);
    font-size: .86rem;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.empty-state {
    padding: 2rem;
    color: var(--ink-500);
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .32rem .55rem;
    border-radius: 999px;
    color: var(--ink-700);
    background: #edf3f2;
    font-size: .7rem;
    font-weight: 820;
}

.badge-success {
    color: #0c684e;
    background: #dff7ed;
}

.badge-warning {
    color: #8b590c;
    background: #fff1d4;
}

.badge-danger {
    color: #a52f3b;
    background: #fde4e7;
}

.product-card {
    position: relative;
    display: flex;
    min-height: 245px;
    flex-direction: column;
    overflow: hidden;
    padding: 1.2rem;
}

.product-card::after {
    position: absolute;
    right: -22px;
    bottom: -5px;
    width: 130px;
    height: 24px;
    content: "";
    background: rgba(15, 119, 121, .06);
    box-shadow:
        -28px -34px 0 rgba(15, 119, 121, .055),
        -56px -68px 0 rgba(15, 119, 121, .045);
    transform: skewY(-8deg);
}

.product-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: var(--podio-800);
    background: linear-gradient(145deg, var(--podio-200), #e9fbf1);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-card h3 {
    margin: 1rem 0 .42rem;
    font-size: 1.08rem;
}

.product-card p {
    margin: 0 0 1rem;
    color: var(--ink-500);
    font-size: .86rem;
    line-height: 1.55;
}

.product-card .button {
    z-index: 1;
    align-self: flex-start;
    margin-top: auto;
}

.activity-list {
    display: grid;
    gap: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: .7rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid #edf2f0;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    margin-top: .38rem;
    border-radius: 2px;
    background: var(--podio-500);
}

.activity-item p {
    margin: 0;
    color: var(--ink-700);
    font-size: .82rem;
}

.activity-item time {
    color: var(--ink-500);
    font-size: .7rem;
}

.nav-link small {
    margin-left: auto;
    color: rgba(255, 255, 255, .5);
    font-size: .62rem;
    font-weight: 750;
}

.nav-link-disabled {
    cursor: not-allowed;
    opacity: .62;
}

.nav-link-disabled:hover {
    color: rgba(255, 255, 255, .72);
    background: transparent;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 1rem;
}

.filter-grid-four {
    grid-template-columns: 1.3fr 1.4fr 1fr 1fr auto;
}

.section-grid-wide {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .6fr);
}

.section-title-pad {
    padding: 1rem 1.1rem 0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
    transition: border-color .15s ease, transform .15s ease;
}

.quick-action:hover {
    border-color: var(--podio-300);
    transform: translateY(-2px);
}

.quick-action div {
    display: grid;
    gap: .2rem;
}

.quick-action span:last-child {
    color: var(--ink-500);
    font-size: .76rem;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin: 0;
    padding: .85rem 1rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.choice-group legend {
    padding: 0 .35rem;
    color: var(--ink-700);
    font-size: .8rem;
    font-weight: 800;
}

.choice-group.compact {
    padding: .55rem .7rem .7rem;
}

.choice-group.compact .check-row {
    font-size: .72rem;
}

.stack-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.inline-edit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px auto;
    align-items: end;
    gap: .6rem;
}

.inline-edit select {
    min-height: 44px;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.member-list {
    display: grid;
}

.member-row {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}

.member-row:last-child {
    border-bottom: 0;
}

.member-identity {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.member-identity div {
    display: grid;
    gap: .2rem;
}

.member-identity span:last-child {
    color: var(--ink-500);
    font-size: .76rem;
}

.member-form {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) 110px minmax(200px, 1.25fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: .7rem;
}

.legal-document {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafdfc;
}

.legal-document summary {
    padding: .85rem 1rem;
    color: var(--ink-700);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 800;
}

.legal-document .terms-box {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
}

.check-list {
    display: grid;
    gap: .7rem;
    margin: 1.5rem 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.check-item div {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.check-item span:last-child {
    overflow-wrap: anywhere;
    color: var(--ink-500);
    font-size: .74rem;
}

.certificate-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 10% 10%, rgba(166, 239, 193, .25), transparent 32%),
        var(--surface);
}

.certificate {
    width: min(920px, 100%);
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid #cfe3df;
    border-radius: 28px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.certificate-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
}

.certificate-header img {
    width: min(260px, 55%);
}

.certificate h1 {
    margin: 0;
    color: var(--podio-900);
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -.05em;
}

.certificate-lead {
    max-width: 720px;
    color: var(--ink-700);
    font-size: 1.08rem;
    line-height: 1.7;
}

.certificate-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.certificate-data div {
    padding: 1rem;
    border-radius: 12px;
    background: var(--surface);
}

.certificate-data dt {
    color: var(--ink-500);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.certificate-data dd {
    margin: .35rem 0 0;
    color: var(--ink-950);
    font-weight: 750;
}

.certificate-data .hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .78rem;
}

.certificate-note {
    margin-top: 2rem;
    color: var(--ink-500);
    font-size: .78rem;
    line-height: 1.6;
}

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

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

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

    .quick-actions,
    .member-row {
        grid-template-columns: 1fr;
    }

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

    .member-form .choice-group {
        grid-column: span 2;
    }
}

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

    .auth-brand {
        display: none;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        z-index: 100;
        left: 0;
        width: min(310px, 88vw);
        transform: translateX(-105%);
        transition: transform .2s ease;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    body.menu-open::after {
        position: fixed;
        z-index: 90;
        inset: 0;
        content: "";
        background: rgba(4, 35, 37, .48);
    }

    .mobile-menu {
        display: inline-grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: var(--white);
    }
}

@media (max-width: 620px) {
    .auth-main {
        align-items: start;
        padding: 1.4rem;
    }

    .form-grid,
    .metric-grid,
    .product-grid,
    .filter-grid,
    .filter-grid-four,
    .member-form,
    .inline-edit,
    .certificate-data {
        grid-template-columns: 1fr;
    }

    .member-form .choice-group {
        grid-column: auto;
    }

    .form-actions,
    .page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions .button span {
        display: none;
    }
}

@media print {
    .certificate-page {
        display: block;
        padding: 0;
        background: var(--white);
    }

    .certificate {
        width: 100%;
        border: 0;
        box-shadow: none;
    }

    .print-hide {
        display: none;
    }
}

/* Stage 2/3 interface and approved hybrid navigation */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-shell {
    grid-template-columns: minmax(340px, .78fr) minmax(500px, 1.22fr);
    overflow: visible;
}

.auth-brand {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 100vh;
    padding: clamp(2.2rem, 4vw, 4rem);
}

.auth-brand-content {
    max-width: 560px;
}

.brand-wordmark-frame {
    position: relative;
    display: block;
    width: 232px;
    height: 92px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(2, 30, 32, .18);
}

.brand-wordmark {
    position: absolute;
    top: -132px;
    left: -51px;
    width: 338px;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-brand h1 {
    max-width: 560px;
    margin-top: 2.4rem;
    font-size: clamp(2.3rem, 4vw, 4rem);
}

.auth-main {
    min-height: 100vh;
    padding: clamp(2rem, 4vw, 4rem);
}

.auth-card {
    width: min(500px, 100%);
}

.auth-card-wide {
    width: min(720px, 100%);
}

.auth-registration .auth-main {
    align-items: start;
    padding-top: clamp(2.5rem, 5vw, 5rem);
    padding-bottom: clamp(2.5rem, 5vw, 5rem);
}

.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.onboarding-steps li {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .55rem;
    padding: .72rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink-500);
    background: #f8fbfa;
    font-size: .76rem;
}

.onboarding-steps li span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 8px;
    background: #e7efed;
    font-size: .72rem;
}

.onboarding-steps li.active {
    color: var(--podio-800);
    border-color: #b9e3d8;
    background: #ecf9f5;
}

.onboarding-steps li.active span {
    color: var(--white);
    background: var(--podio-700);
}

.form-stack {
    gap: 1.2rem;
}

.legal-document {
    overflow: hidden;
}

dialog {
    width: min(680px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 30px 90px rgba(6, 47, 50, .28);
}

dialog::backdrop {
    background: rgba(5, 34, 36, .58);
    backdrop-filter: blur(3px);
}

.modal-card {
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.2rem);
}

.app-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 76px 256px minmax(0, 1fr);
    background: var(--surface);
}

.module-rail {
    position: sticky;
    z-index: 80;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    padding: 1rem .65rem;
    color: var(--white);
    background: linear-gradient(180deg, #052f32, #064b4e 58%, #073f43);
    box-shadow: 8px 0 30px rgba(6, 47, 50, .10);
}

.rail-top,
.rail-bottom {
    display: grid;
    width: 100%;
    place-items: center;
}

.rail-brand {
    display: grid;
    width: 48px;
    height: 48px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.rail-brand img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
}

.rail-mobile-toggle {
    display: none;
}

.rail-nav {
    display: grid;
    width: 100%;
    gap: .58rem;
    margin-top: 2rem;
}

.rail-link {
    position: relative;
    display: grid;
    width: 54px;
    height: 48px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 255, 255, .68);
    transition: .18s ease;
}

.rail-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.rail-link.active {
    color: var(--white);
    border-color: rgba(166, 239, 193, .28);
    background: linear-gradient(145deg, rgba(37, 165, 157, .92), rgba(15, 119, 121, .88));
    box-shadow: 0 9px 22px rgba(2, 28, 30, .22);
}

.rail-link.active::before {
    position: absolute;
    left: -10px;
    width: 3px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    content: "";
    background: var(--podio-200);
}

.rail-icon {
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1;
}

.rail-count {
    position: absolute;
    top: -5px;
    right: -4px;
    display: grid;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    place-items: center;
    border: 2px solid #064448;
    border-radius: 999px;
    color: var(--podio-950);
    background: var(--podio-200);
    font-size: .63rem;
    font-weight: 900;
}

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

.rail-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    color: var(--podio-950);
    background: var(--podio-200);
    font-size: .75rem;
    font-weight: 900;
}

.module-panel {
    position: sticky;
    z-index: 70;
    top: 0;
    display: flex;
    height: 100vh;
    min-width: 0;
    flex-direction: column;
    padding: 1.25rem 1rem 1rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    overflow-y: auto;
}

.module-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .35rem .4rem 1.15rem;
}

.module-panel-head > div {
    display: grid;
    min-width: 0;
    gap: .2rem;
}

.module-panel-head strong {
    font-size: 1.25rem;
    letter-spacing: -.03em;
}

.module-panel-head small {
    color: var(--ink-500);
    font-size: .72rem;
}

.module-kicker {
    color: var(--podio-700);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.panel-close {
    display: none;
}

.organization-card {
    display: grid;
    gap: .25rem;
    margin-bottom: 1.2rem;
    padding: .9rem;
    border: 1px solid #cfe4df;
    border-radius: 14px;
    background: linear-gradient(145deg, #f3fbf8, #edf6f3);
}

.organization-card > span {
    color: var(--ink-500);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.organization-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.organization-card select {
    width: 100%;
    margin-top: .45rem;
    padding: .5rem .55rem;
    border: 1px solid #c8dcd7;
    border-radius: 9px;
    background: var(--white);
    font-size: .75rem;
}

.context-nav {
    display: grid;
    gap: .25rem;
}

.context-label {
    margin: .85rem .65rem .35rem;
    color: #8aa09f;
    font-size: .63rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.context-link {
    position: relative;
    display: grid;
    gap: .14rem;
    padding: .72rem .75rem;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--ink-700);
}

.context-link span {
    font-size: .84rem;
    font-weight: 760;
}

.context-link small {
    color: var(--ink-500);
    font-size: .67rem;
}

.context-link:hover {
    border-color: var(--line);
    background: #f8fbfa;
}

.context-link.active {
    color: var(--podio-800);
    border-color: #cee8e1;
    background: linear-gradient(135deg, #eef9f6, #e3f3ee);
}

.context-link.active::before {
    position: absolute;
    left: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 3px;
    content: "";
    background: var(--podio-600);
}

.context-link-primary {
    margin-top: .55rem;
    color: var(--white);
    border-color: var(--podio-700);
    background: linear-gradient(135deg, var(--podio-700), var(--podio-500));
}

.context-link-primary small {
    color: rgba(255, 255, 255, .72);
}

.context-link-primary:hover {
    color: var(--white);
    border-color: var(--podio-600);
    background: linear-gradient(135deg, var(--podio-800), var(--podio-600));
}

.module-panel-footer {
    display: grid;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.panel-user {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
    padding: .3rem;
}

.panel-user > div {
    display: grid;
    min-width: 0;
}

.panel-user strong,
.panel-user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-user strong {
    font-size: .8rem;
}

.panel-user span {
    color: var(--ink-500);
    font-size: .65rem;
}

.context-signout {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .75rem;
    border: 0;
    border-radius: 10px;
    color: var(--ink-500);
    background: transparent;
    font-size: .76rem;
}

.context-signout:hover {
    color: var(--danger);
    background: #fff4f5;
}

.app-main {
    min-width: 0;
}

.topbar {
    min-height: 70px;
    padding: .75rem clamp(1rem, 2.5vw, 2rem);
    background: rgba(243, 247, 246, .88);
}

.topbar-actions {
    position: relative;
}

.notification-menu {
    position: relative;
}

.notification-menu > summary {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink-700);
    background: var(--white);
    cursor: pointer;
    list-style: none;
}

.notification-menu > summary::-webkit-details-marker {
    display: none;
}

.notification-menu > summary b {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid var(--surface);
    border-radius: 999px;
    color: var(--white);
    background: var(--danger);
    font-size: .58rem;
}

.notification-popover {
    position: absolute;
    z-index: 120;
    top: calc(100% + .65rem);
    right: 0;
    width: min(380px, calc(100vw - 2rem));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 22px 60px rgba(8, 49, 51, .18);
}

.notification-popover header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
}

.notification-popover header a {
    color: var(--podio-700);
    font-size: .72rem;
    font-weight: 800;
}

.notification-item {
    display: grid;
    width: 100%;
    gap: .2rem;
    padding: .8rem 1rem;
    border: 0;
    border-bottom: 1px solid #edf2f0;
    color: var(--ink-700);
    background: var(--white);
    text-align: left;
}

.notification-item.unread {
    background: #eff9f6;
}

.notification-item span {
    color: var(--ink-500);
    font-size: .72rem;
}

.notification-empty {
    margin: 0;
    padding: 1rem;
    color: var(--ink-500);
    text-align: center;
}

.content {
    width: min(1680px, 100%);
    padding: clamp(1.15rem, 2.6vw, 2.4rem);
}

.content > .notice,
.content > .error-list {
    margin-bottom: 1.25rem;
}

.section-grid-comfort,
.workspace-forms {
    gap: 1.5rem;
}

.workspace-section {
    margin-top: 1.6rem;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.section-heading h2,
.section-title h2,
.form-panel-head h2 {
    margin: 0;
}

.section-heading .eyebrow,
.section-title .eyebrow,
.form-panel-head .eyebrow {
    margin-bottom: .25rem;
}

.card {
    border-color: #d8e5e2;
    box-shadow: 0 10px 30px rgba(12, 70, 70, .055);
}

.filter-card {
    margin: 1.25rem 0 1.6rem;
    padding: 1rem;
}

.form-panel {
    padding: clamp(1.15rem, 2.5vw, 1.6rem);
}

.form-panel-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.form-panel-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--podio-800);
    background: linear-gradient(145deg, var(--podio-200), #eaf9f4);
    font-size: 1rem;
    font-weight: 900;
}

.form-choice-grid,
.member-permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-actions-end {
    justify-content: flex-end;
}

.form-section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fafdfc;
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.form-section-title > span {
    display: grid;
    min-width: 34px;
    height: 34px;
    padding: 0 .45rem;
    place-items: center;
    border-radius: 10px;
    color: var(--podio-800);
    background: #ddf2eb;
    font-size: .72rem;
    font-weight: 900;
}

.form-section-title > div {
    display: grid;
}

.form-section-title small {
    color: var(--ink-500);
}

.profile-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.3rem;
    padding: 1rem 1.2rem;
}

.profile-progress-step {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.profile-progress-step > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    color: var(--ink-500);
    background: #edf3f2;
    font-weight: 900;
}

.profile-progress-step > div {
    display: grid;
}

.profile-progress-step small {
    color: var(--ink-500);
    font-size: .7rem;
}

.profile-progress-step.complete > span,
.profile-progress-step.active > span {
    color: var(--white);
    background: var(--podio-700);
}

.profile-progress-line {
    height: 1px;
    flex: 1;
    background: var(--line);
}

.onboarding-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1.15rem 1.3rem;
    border: 1px solid #e9d19b;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff9ec, #fffdf7);
}

.onboarding-callout > div {
    display: grid;
    gap: .2rem;
}

.onboarding-callout p {
    margin: 0;
    color: var(--ink-500);
}

.member-directory {
    margin-top: 1.6rem;
    overflow: hidden;
}

.member-directory-head {
    align-items: center;
    padding: 1.25rem 1.35rem;
}

.member-directory-head p {
    margin: .35rem 0 0;
    color: var(--ink-500);
    font-size: .82rem;
}

.member-count {
    display: grid;
    min-width: 80px;
    padding: .6rem .8rem;
    border-radius: 12px;
    color: var(--ink-500);
    background: var(--surface);
    text-align: center;
    font-size: .68rem;
}

.member-count strong {
    color: var(--podio-800);
    font-size: 1.2rem;
}

.member-list {
    display: grid;
    gap: .8rem;
    padding: 1rem;
    background: #f7faf9;
}

.member-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.member-card[open] {
    border-color: #b6ddd4;
    box-shadow: 0 12px 30px rgba(12, 70, 70, .08);
}

.member-card > summary,
.member-card-static {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(220px, auto) auto;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
    padding: .85rem 1rem;
    cursor: pointer;
    list-style: none;
}

.member-card > summary::-webkit-details-marker {
    display: none;
}

.member-card-identity {
    display: grid;
    min-width: 0;
    gap: .18rem;
}

.member-card-identity strong,
.member-card-identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-card-identity span {
    color: var(--ink-500);
    font-size: .76rem;
}

.member-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.member-card-action {
    color: var(--podio-700);
    font-size: .74rem;
    font-weight: 800;
}

.member-card[open] .member-card-action b {
    display: inline-block;
    transform: rotate(180deg);
}

.member-card-body {
    padding: 1.2rem;
    border-top: 1px solid var(--line);
    background: #fbfdfc;
}

.member-editor {
    display: grid;
    gap: 1.15rem;
}

.member-editor-basics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 1rem;
}

.member-editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.team-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px auto;
    align-items: end;
    gap: .65rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafdfc;
}

.team-card select {
    min-height: 44px;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}

.metric-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kanban-board {
    display: grid;
    grid-auto-columns: minmax(280px, 1fr);
    grid-auto-flow: column;
    gap: 1rem;
    padding-bottom: .7rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
}

.crm-board {
    grid-auto-columns: minmax(286px, 1fr);
}

.project-board {
    grid-auto-columns: minmax(310px, 1fr);
}

.kanban-column {
    align-self: start;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-top: 3px solid var(--stage-color);
    border-radius: 15px;
    background: #f5f9f8;
    scroll-snap-align: start;
}

.kanban-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem .9rem;
    border-bottom: 1px solid var(--line);
}

.kanban-column-head > div {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.kanban-column-head > span {
    display: grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    color: var(--ink-500);
    background: var(--white);
    font-size: .7rem;
    font-weight: 850;
}

.stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--stage-color);
}

.kanban-stack {
    display: grid;
    gap: .75rem;
    padding: .75rem;
}

.kanban-card {
    display: grid;
    gap: .65rem;
    padding: .9rem;
    border: 1px solid #dce7e5;
    border-radius: 13px;
    background: var(--white);
    box-shadow: 0 5px 14px rgba(12, 70, 70, .045);
}

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

.kanban-card h3 {
    font-size: .93rem;
}

.kanban-card p {
    color: var(--ink-500);
    font-size: .76rem;
    line-height: 1.5;
}

.kanban-card-top,
.task-card-footer,
.lead-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    color: var(--ink-500);
    font-size: .68rem;
}

.kanban-card-top > strong {
    color: var(--ink-700);
}

.kanban-empty {
    padding: 1.4rem .7rem;
    color: var(--ink-500);
    text-align: center;
    font-size: .75rem;
}

.card-actions {
    border-top: 1px solid var(--line);
    padding-top: .55rem;
}

.card-actions summary {
    color: var(--podio-700);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
}

.compact-form {
    gap: .7rem;
    margin-top: .75rem;
}

.compact-form .field input,
.compact-form .field select,
.compact-form .field textarea {
    min-height: 40px;
    padding: .55rem .65rem;
    border-radius: 9px;
    font-size: .75rem;
}

.subform-divider,
.separated-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
    padding: 1rem;
}

.contact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.contact-card > div {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.contact-card span,
.contact-card small {
    color: var(--ink-500);
    font-size: .7rem;
}

.contact-card-links {
    justify-items: end;
    font-size: .72rem;
}

.project-card-grid,
.approval-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.project-card,
.approval-card {
    display: flex;
    min-height: 290px;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.project-card:hover,
.approval-card:hover {
    border-color: #afd8cf;
    box-shadow: 0 16px 38px rgba(12, 70, 70, .10);
    transform: translateY(-3px);
}

.project-card > header,
.project-card > footer,
.approval-card > header,
.approval-card > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.project-card h2,
.approval-card h2 {
    margin: 0 0 .4rem;
    font-size: 1.08rem;
}

.project-card p,
.approval-card p {
    margin: 0;
    color: var(--ink-500);
    font-size: .78rem;
    line-height: 1.55;
}

.project-card > footer,
.approval-card > footer {
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    color: var(--ink-500);
    font-size: .67rem;
}

.project-status,
.priority,
.workflow-badge,
.task-status {
    display: inline-flex;
    align-items: center;
    padding: .32rem .58rem;
    border-radius: 999px;
    color: var(--ink-700);
    background: #edf3f2;
    font-size: .66rem;
    font-weight: 850;
    text-transform: capitalize;
}

.status-active,
.workflow-final_approved,
.workflow-published,
.priority-low {
    color: #0d684f;
    background: #dff7ed;
}

.status-planning,
.workflow-production,
.workflow-internal_review,
.priority-normal {
    color: #176a71;
    background: #dff2f1;
}

.status-paused,
.workflow-client_review,
.workflow-changes_requested,
.priority-high {
    color: #8b590c;
    background: #fff1d4;
}

.status-cancelled,
.priority-urgent {
    color: #a52f3b;
    background: #fde4e7;
}

.project-progress,
.project-overview-progress {
    display: grid;
    gap: .5rem;
}

.project-progress > div,
.project-overview-progress > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink-500);
    font-size: .7rem;
}

.project-progress > span,
.project-overview-progress > span,
.progress-inline > span {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efed;
}

.project-progress i,
.project-overview-progress i,
.progress-inline i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--podio-700), var(--podio-300));
}

.project-overview {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(120px, .6fr));
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
}

.project-overview-stat {
    display: grid;
    gap: .22rem;
    padding-left: 1rem;
    border-left: 1px solid var(--line);
}

.project-overview-stat span {
    color: var(--ink-500);
    font-size: .66rem;
}

.project-overview-stat strong {
    overflow: hidden;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-drawer {
    margin-top: 1.25rem;
    overflow: hidden;
}

.action-drawer > summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.action-drawer > summary::-webkit-details-marker {
    display: none;
}

.action-drawer > summary > span:nth-child(2) {
    display: grid;
}

.action-drawer > summary small {
    color: var(--ink-500);
}

.action-drawer-body {
    padding: 1.2rem;
    border-top: 1px solid var(--line);
    background: #fbfdfc;
}

.assignee-stack {
    display: flex;
    min-height: 28px;
    align-items: center;
}

.mini-avatar {
    display: grid;
    width: 28px;
    height: 28px;
    margin-left: -5px;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 9px;
    color: var(--podio-950);
    background: var(--podio-200);
    font-size: .58rem;
    font-weight: 900;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.task-checklists {
    display: grid;
    gap: .6rem;
    padding-top: .6rem;
    border-top: 1px solid var(--line);
}

.task-checklist {
    display: grid;
    gap: .42rem;
}

.task-checklist > strong {
    font-size: .72rem;
}

.task-checklist .check-row {
    font-size: .7rem;
}

.completed-text {
    color: var(--ink-500);
    text-decoration: line-through;
}

.comment-list,
.file-list {
    display: grid;
    gap: .75rem;
}

.comment-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .7rem;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafdfc;
}

.comment-item > div {
    min-width: 0;
}

.comment-item header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}

.comment-item time {
    color: var(--ink-500);
    font-size: .65rem;
}

.comment-item p {
    margin: .45rem 0;
    color: var(--ink-700);
    font-size: .78rem;
    line-height: 1.55;
    white-space: pre-line;
}

.file-item,
.attachment-card,
.preview-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafdfc;
}

.file-item:hover,
.attachment-card:hover,
.preview-link:hover {
    border-color: var(--podio-300);
    background: #f1faf7;
}

.file-item > span,
.attachment-card > span,
.preview-link > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--podio-800);
    background: #dff2ed;
}

.file-item > div,
.attachment-card > div,
.preview-link > div {
    display: grid;
    min-width: 0;
}

.file-item strong,
.attachment-card strong,
.preview-link strong,
.file-item small,
.attachment-card small,
.preview-link small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item small,
.attachment-card small,
.preview-link small {
    color: var(--ink-500);
    font-size: .66rem;
}

.timeline {
    display: grid;
    padding: 1rem 1.2rem;
}

.timeline-item,
.decision-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: .7rem;
    padding: .65rem 0;
}

.timeline-item:not(:last-child)::after,
.decision-timeline article:not(:last-child)::after {
    position: absolute;
    top: 22px;
    bottom: -9px;
    left: 4px;
    width: 1px;
    content: "";
    background: var(--line);
}

.timeline-dot {
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: .25rem;
    border: 2px solid var(--white);
    border-radius: 50%;
    background: var(--podio-500);
    box-shadow: 0 0 0 2px #bce3da;
}

.timeline-item p,
.decision-timeline p {
    margin: .2rem 0 0;
    color: var(--ink-500);
    font-size: .7rem;
}

.calendar-nav {
    display: flex;
    gap: .5rem;
}

.calendar-board {
    overflow: hidden;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.calendar-weekdays {
    color: var(--ink-500);
    background: #edf4f2;
    font-size: .68rem;
    font-weight: 850;
    text-align: center;
}

.calendar-weekdays span {
    padding: .7rem;
}

.calendar-grid {
    overflow-x: auto;
}

.calendar-day {
    min-height: 145px;
    padding: .55rem;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--white);
}

.calendar-day.today {
    background: #eff9f6;
    box-shadow: inset 0 3px 0 var(--podio-500);
}

.muted-day {
    background: #f7faf9;
}

.calendar-events {
    display: grid;
    gap: .35rem;
    margin-top: .45rem;
}

.calendar-event {
    display: grid;
    gap: .08rem;
    padding: .42rem;
    border-left: 3px solid var(--podio-500);
    border-radius: 7px;
    background: #edf7f4;
    font-size: .62rem;
}

.calendar-event b,
.calendar-event small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event small {
    color: var(--ink-500);
}

.approval-card-action {
    border-color: #e8c982;
    box-shadow: 0 12px 34px rgba(164, 102, 10, .09);
}

.approval-type-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: var(--podio-800);
    background: linear-gradient(145deg, var(--podio-200), #e8f8f2);
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.approval-card-version {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .2rem .7rem;
    padding: .75rem;
    border-radius: 12px;
    background: var(--surface);
}

.approval-card-version > span,
.approval-card-version > small {
    color: var(--ink-500);
    font-size: .67rem;
}

.approval-card-version > strong {
    grid-row: span 2;
    color: var(--podio-800);
    font-size: 1.4rem;
}

.approval-tabs {
    display: flex;
    gap: .4rem;
    margin: 1.3rem 0;
    overflow-x: auto;
}

.approval-tabs a {
    flex: 0 0 auto;
    padding: .65rem .85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink-500);
    background: var(--white);
    font-size: .74rem;
    font-weight: 800;
}

.approval-tabs a.active {
    color: var(--white);
    border-color: var(--podio-700);
    background: var(--podio-700);
}

.approval-flow {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem;
    overflow-x: auto;
}

.approval-flow > i {
    min-width: 20px;
    height: 1px;
    flex: 1;
    background: var(--line);
}

.approval-flow-step {
    display: flex;
    min-width: max-content;
    align-items: center;
    gap: .5rem;
    color: var(--ink-500);
    font-size: .7rem;
}

.approval-flow-step > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: #e9efee;
    font-weight: 900;
}

.approval-flow-step.complete,
.approval-flow-step.active {
    color: var(--podio-800);
}

.approval-flow-step.complete > span,
.approval-flow-step.active > span {
    color: var(--white);
    background: var(--podio-700);
}

.approval-flow-step.active > span {
    box-shadow: 0 0 0 4px rgba(37, 165, 157, .15);
}

.publication-gate {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-top: 1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: 14px;
}

.publication-gate > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    font-weight: 900;
}

.publication-gate > div {
    display: grid;
    gap: .15rem;
}

.publication-gate p {
    margin: 0;
    font-size: .76rem;
}

.publication-gate.blocked {
    color: #9b3340;
    border-color: #efc5ca;
    background: #fff5f6;
}

.publication-gate.blocked > span {
    background: #fde0e4;
}

.publication-gate.approved,
.publication-gate.published {
    color: #0c684e;
    border-color: #b4dfd0;
    background: #effbf6;
}

.publication-gate.approved > span,
.publication-gate.published > span {
    background: #d9f3e9;
}

.workflow-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
}

.workflow-actions h2,
.workflow-actions p {
    margin: 0;
}

.workflow-actions p {
    color: var(--ink-500);
    font-size: .75rem;
}

.decision-panel {
    margin-top: 1rem;
    border-color: #e4c276;
    background: linear-gradient(135deg, #fffefb, #fffaf0);
}

.decision-confirmation {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid #ead8ae;
    border-radius: 12px;
    color: var(--ink-700);
    background: var(--white);
    font-size: .78rem;
    line-height: 1.5;
}

.decision-confirmation input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--podio-700);
}

.decision-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

.approval-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
    gap: 1rem;
    margin-top: 1rem;
}

.version-viewer,
.delivery-context {
    overflow: hidden;
}

.version-content {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
}

.version-summary,
.deliverable-content {
    display: grid;
    gap: .45rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fafdfc;
}

.version-summary p,
.deliverable-content div {
    margin: 0;
    color: var(--ink-700);
    font-size: .84rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.attachment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.version-hash {
    display: grid;
    gap: .3rem;
    padding: .7rem;
    border-radius: 10px;
    background: #edf3f2;
}

.version-hash span {
    color: var(--ink-500);
    font-size: .65rem;
}

.version-hash code,
.decision-timeline code {
    overflow-wrap: anywhere;
    color: var(--ink-700);
    font-size: .67rem;
}

.delivery-context dl {
    display: grid;
    margin: 0;
    padding: 1rem;
}

.delivery-context dl > div {
    display: grid;
    gap: .22rem;
    padding: .72rem 0;
    border-bottom: 1px solid var(--line);
}

.delivery-context dl > div:last-child {
    border-bottom: 0;
}

.delivery-context dt {
    color: var(--ink-500);
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.delivery-context dd {
    margin: 0;
    color: var(--ink-700);
    font-size: .8rem;
    font-weight: 700;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.compare-grid article {
    background: #fffafa;
}

.compare-grid article.current {
    background: #f5fcf9;
}

.compare-grid article > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
}

.compare-grid article > div {
    padding: 1rem;
}

.compare-grid p,
.compare-grid pre {
    color: var(--ink-700);
    font: inherit;
    font-size: .78rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.version-form-block {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #c8e4dc;
    border-radius: 15px;
    background: #f4fbf8;
}

.decision-timeline {
    display: grid;
    padding: 1rem;
}

.decision-timeline blockquote {
    margin: .45rem 0;
    padding: .55rem .7rem;
    border-left: 3px solid var(--podio-300);
    color: var(--ink-700);
    background: #f8fbfa;
    font-size: .72rem;
}

.certificate-links {
    display: grid;
    gap: .5rem;
    padding: 0 1rem 1rem;
}

.version-history {
    display: grid;
}

.version-history article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(100px, auto);
    align-items: center;
    gap: .8rem;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line);
}

.version-history article:last-child {
    border-bottom: 0;
}

.version-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--podio-800);
    background: #dff2ed;
    font-size: .72rem;
    font-weight: 900;
}

.version-history article > div {
    min-width: 0;
}

.version-history p {
    margin: .2rem 0 0;
    color: var(--ink-500);
    font-size: .68rem;
}

.version-history code {
    overflow: hidden;
    color: var(--ink-500);
    font-size: .65rem;
    text-overflow: ellipsis;
}

.project-list-item,
.approval-list-item {
    display: grid;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.project-list-item {
    grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr);
}

.approval-list-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.project-list-item > div:first-child,
.approval-list-item > div {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

.project-list-item span,
.approval-list-item span {
    color: var(--ink-500);
    font-size: .7rem;
}

.progress-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: .5rem;
}

.progress-inline b {
    color: var(--podio-700);
    font-size: .7rem;
}

.notification-page-list {
    overflow: hidden;
}

.notification-page-item {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.2rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-700);
    background: var(--white);
    text-align: left;
}

.notification-page-item.unread {
    background: #eef9f6;
}

.notification-page-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 11px;
    color: var(--podio-800);
    background: #dff2ed;
}

.notification-page-item > span:nth-child(2) {
    display: grid;
    gap: .15rem;
}

.notification-page-item span,
.notification-page-item small {
    color: var(--ink-500);
    font-size: .72rem;
}

.certificate-logo-frame {
    position: relative;
    width: 220px;
    height: 88px;
    overflow: hidden;
    border-radius: 12px;
}

.certificate-logo-frame img {
    position: absolute;
    top: -126px;
    left: -49px;
    width: 324px;
    max-width: none;
}

.approval-certificate .certificate-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-danger {
    color: var(--danger) !important;
}

@media (max-width: 1320px) {
    .metric-grid-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-card-grid,
    .approval-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .project-overview-progress {
        grid-column: 1 / -1;
    }
}

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

    .module-rail,
    .module-panel {
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-110%);
        transition: transform .2s ease;
    }

    .module-rail {
        left: 0;
    }

    .module-panel {
        left: 76px;
        width: min(280px, calc(100vw - 76px));
        transform: translateX(calc(-110% - 76px));
    }

    body.menu-open .module-rail,
    body.menu-open .module-panel {
        transform: translateX(0);
    }

    body.menu-open::after {
        position: fixed;
        z-index: 60;
        inset: 0;
        content: "";
        background: rgba(4, 35, 37, .52);
    }

    .panel-close,
    .mobile-menu {
        display: inline-grid;
    }

    .panel-close {
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 9px;
        background: var(--white);
        font-size: 1.2rem;
    }

    .section-grid,
    .approval-workspace {
        grid-template-columns: 1fr;
    }

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

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

    .auth-brand {
        display: none;
    }

    .auth-main,
    .auth-registration .auth-main {
        align-items: start;
        padding: 1.35rem;
    }

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

    .metric-grid-five,
    .project-card-grid,
    .approval-card-grid,
    .contact-grid,
    .form-choice-grid,
    .member-permission-grid,
    .attachment-grid,
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .member-card > summary,
    .member-card-static {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .member-card-meta,
    .member-card-action {
        grid-column: 2;
        justify-content: flex-start;
    }

    .member-editor-basics {
        grid-template-columns: 1fr;
    }

    .member-editor-actions,
    .onboarding-callout,
    .workflow-actions,
    .decision-actions,
    .calendar-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .team-card {
        grid-template-columns: 1fr;
    }

    .project-overview {
        grid-template-columns: 1fr;
    }

    .project-overview-stat {
        padding: .65rem 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .version-history article {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .version-history code {
        grid-column: 2 / -1;
    }

    .project-list-item {
        grid-template-columns: 1fr;
    }

    .approval-flow {
        align-items: flex-start;
    }

    .approval-flow > i {
        flex: 0 0 20px;
        margin-top: 14px;
    }

    .approval-certificate .certificate-data {
        grid-template-columns: 1fr;
    }
}
