:root {
    --color-ink: #102027;
    --color-text: #102027;
    --color-muted: #5d6f76;
    --color-line: #d9e7e4;
    --color-page: #f6faf9;
    --color-surface: #ffffff;
    --color-teal: #0f9f8d;
    --color-teal-dark: #087969;
    --color-blue: #2777c9;
    --color-mint: #dff8ee;
    --color-coral: #f47c62;
    --shadow-soft: 0 18px 45px rgba(16, 32, 39, 0.12);
    --shadow-card: 0 12px 32px rgba(16, 32, 39, 0.09);
    --radius-card: 8px;
    --content-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-page);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(246, 250, 249, 0.94);
    border-bottom: 1px solid rgba(217, 231, 228, 0.9);
    backdrop-filter: blur(16px);
}

.brand-link,
.site-nav,
.header-actions,
.footer-links,
.footer-copy {
    display: flex;
    align-items: center;
}

.brand-link {
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(15, 159, 141, 0.25);
}

.brand-name {
    font-size: 1.12rem;
}

.site-nav {
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 4px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 231, 228, 0.82);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(16, 32, 39, 0.05);
}

.nav-link,
.text-link,
.footer-links a {
    color: var(--color-teal-dark);
    font-weight: 700;
    text-decoration: none;
}

.nav-link {
    color: var(--color-muted);
    white-space: nowrap;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 0.95rem;
}

.nav-link.is-active {
    color: var(--color-teal-dark);
    background: var(--color-mint);
}

.nav-link:hover,
.text-link:hover,
.footer-links a:hover {
    color: var(--color-blue);
}

.header-actions,
.hero-actions {
    gap: 12px;
}

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

.header-logout {
    margin: 0;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.9rem;
}

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

.button-text {
    color: var(--color-muted);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    cursor: pointer;
}

.button-text:hover {
    color: var(--color-teal-dark);
    background: rgba(15, 159, 141, 0.08);
}

.button-primary {
    color: #ffffff;
    background: var(--color-teal);
    box-shadow: 0 12px 28px rgba(15, 159, 141, 0.22);
}

.button-primary:hover {
    background: var(--color-teal-dark);
}

.button:disabled,
.button.is-syncing {
    cursor: wait;
    transform: none;
    opacity: 0.78;
}

.button.is-syncing {
    border-color: rgba(15, 159, 141, 0.38);
    background: linear-gradient(135deg, var(--color-teal-dark), var(--color-blue));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(39, 119, 201, 0.18);
}

.button-ghost {
    color: var(--color-teal-dark);
    background: #ffffff;
    border-color: var(--color-line);
}

.button-light {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.88);
}

.button-large {
    min-height: 50px;
    padding-inline: 24px;
}

.hero-section {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    padding: clamp(80px, 12vw, 132px) clamp(20px, 6vw, 80px) clamp(72px, 9vw, 104px);
    color: #ffffff;
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.82), rgba(9, 38, 45, 0.48)),
            url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1800&q=85");
    background-size: cover;
    background-position: center;
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    background: var(--color-page);
    clip-path: polygon(0 58%, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(740px, 100%);
}

.eyebrow,
.card-kicker {
    margin: 0 0 10px;
    color: var(--color-teal);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-section .eyebrow {
    color: #98f1df;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-copy {
    max-width: 660px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
}

.section {
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
    padding: 74px 0;
}

.section-muted {
    width: 100%;
    padding-inline: max(20px, calc((100% - var(--content-width)) / 2));
    background: #ecf6f4;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.audience-grid,
.company-grid,
.review-grid {
    display: grid;
    gap: 18px;
}

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

.audience-card,
.company-card,
.review-card,
.empty-state {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.audience-card {
    padding: clamp(24px, 4vw, 36px);
}

.audience-card-accent {
    border-color: rgba(39, 119, 201, 0.24);
    background: linear-gradient(180deg, #ffffff, #eff8ff);
}

.audience-card h3,
.company-card h3,
.empty-state h3 {
    margin: 0 0 12px;
    font-size: 1.35rem;
}

.audience-card p,
.company-card p,
.empty-state p,
.site-footer p {
    margin: 0;
    color: var(--color-muted);
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    color: var(--color-ink);
    font-weight: 700;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 10px;
    height: 10px;
    background: var(--color-coral);
    border-radius: 50%;
}

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

.company-card {
    min-height: 170px;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 20px;
}

.company-logo {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    background: var(--color-blue);
    border-radius: 8px;
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 28px;
}

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

.review-card {
    margin: 0;
    padding: 24px;
}

.review-card blockquote {
    margin: 0 0 18px;
    font-size: 1.04rem;
}

.review-card figcaption {
    color: var(--color-muted);
    font-weight: 800;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px clamp(20px, 6vw, 80px);
    background: #102027;
    color: #ffffff;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 900;
    text-decoration: none;
}

.site-footer p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    gap: 16px;
}

.footer-links a {
    color: #98f1df;
}

.footer-copy {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.auth-page {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: center;
    margin: 0 auto;
    padding: 72px 0;
}

.auth-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 24px;
    align-items: stretch;
}

.auth-copy,
.auth-card {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.auth-copy {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 560px;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 5vw, 48px);
    color: #ffffff;
    background-image:
            linear-gradient(180deg, rgba(9, 38, 45, 0.2), rgba(9, 38, 45, 0.82)),
            url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=85");
    background-position: center;
    background-size: cover;
}

.auth-copy .eyebrow {
    color: #98f1df;
}

.auth-copy h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.auth-copy p {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4vw, 38px);
    background: var(--color-surface);
}

.auth-copy-register {
    background-image:
            linear-gradient(180deg, rgba(9, 38, 45, 0.18), rgba(9, 38, 45, 0.82)),
            url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1200&q=85");
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.auth-card-header p,
.auth-switch {
    color: var(--color-muted);
}

.auth-card-header p {
    margin: 10px 0 0;
}

.alert {
    padding: 13px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.alert-error {
    color: #8a271a;
    background: #fff0ed;
    border: 1px solid #ffd0c6;
}

.alert-success {
    color: #116653;
    background: #e8f8f2;
    border: 1px solid #b9eadb;
}

.alert-info {
    color: #155b72;
    background: #eaf7fb;
    border: 1px solid #bde7f2;
}

.form-alert[hidden] {
    display: none;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.role-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.role-fieldset legend {
    margin-bottom: 8px;
    color: var(--color-ink);
    font-weight: 800;
}

.role-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    background: #eef7f5;
    border: 1px solid var(--color-line);
    border-radius: 8px;
}

.role-option {
    position: relative;
    min-width: 0;
}

.role-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-option span {
    display: grid;
    min-height: 76px;
    align-content: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.role-option strong,
.role-option small {
    overflow-wrap: anywhere;
}

.role-option strong {
    color: var(--color-ink);
}

.role-option small {
    font-size: 0.82rem;
    font-weight: 700;
}

.role-option input:checked + span {
    color: var(--color-teal-dark);
    background: #ffffff;
    border-color: rgba(15, 159, 141, 0.28);
    box-shadow: 0 10px 22px rgba(16, 32, 39, 0.08);
}

.role-option input:focus-visible + span {
    outline: 3px solid rgba(15, 159, 141, 0.22);
    outline-offset: 2px;
}

.form-field {
    display: grid;
    gap: 8px;
    color: var(--color-ink);
    font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--color-ink);
    background: #f8fbfa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form-field textarea {
    min-height: 142px;
    padding-block: 12px;
    resize: vertical;
}

.form-field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-teal-dark) 50%), linear-gradient(135deg, var(--color-teal-dark) 50%, transparent 50%);
    background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(15, 159, 141, 0.13);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid,
.role-option input.is-invalid + span {
    border-color: #f2a092;
    background: #fff8f6;
}

.form-field input.is-valid,
.form-field select.is-valid,
.form-field textarea.is-valid,
.role-option input.is-valid:checked + span {
    border-color: rgba(15, 159, 141, 0.34);
}

.field-message {
    min-height: 18px;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.field-message-error {
    color: #a83b2c;
}

.field-message-success {
    color: var(--color-teal-dark);
}

.form-link {
    justify-self: end;
    margin-top: -6px;
    color: var(--color-teal-dark);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.form-link:hover {
    color: var(--color-teal);
}

.button-full {
    width: 100%;
    min-height: 50px;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.button-full:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.auth-switch {
    margin: 20px 0 0;
    text-align: center;
}

.resend-form,
.resend-option {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-line);
}

.resend-form p,
.resend-option p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 700;
    text-align: center;
}

.resend-option {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.text-button {
    padding: 0;
    color: var(--color-teal-dark);
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}

.text-button:hover {
    color: var(--color-blue);
}

.resend-email-field {
    text-align: left;
}

.dashboard-page {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 56px 0 78px;
}

.dashboard-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: clamp(28px, 5vw, 46px);
    color: #ffffff;
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.88), rgba(9, 38, 45, 0.48)),
            url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?auto=format&fit=crop&w=1600&q=85");
    background-position: center;
    background-size: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.dashboard-hero .eyebrow {
    color: #98f1df;
}

.dashboard-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.dashboard-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.04rem;
}

.dashboard-hero form {
    flex: 0 0 auto;
}

.dashboard-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 30px 0 18px;
}

.dashboard-toolbar h2,
.dashboard-card h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-card,
.summary-card,
.admin-company-row {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.dashboard-card {
    display: grid;
    gap: 16px;
    max-width: 760px;
    padding: clamp(26px, 5vw, 42px);
}

.dashboard-card-accent {
    background: linear-gradient(180deg, #ffffff, #eff8ff);
    border-color: rgba(39, 119, 201, 0.24);
}

.profile-onboarding-card {
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 246, 0.96)),
            radial-gradient(circle at 8% 12%, rgba(15, 159, 141, 0.16), transparent 32%);
}

.profile-onboarding-card h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-card p:not(.eyebrow),
.summary-card p,
.admin-company-info p {
    margin: 0;
    color: var(--color-muted);
}

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

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

.dashboard-actions-grid {
    margin: 6px 0 34px;
}

.compact-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
}

.quick-link-card {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 156px;
    align-content: start;
    padding: 20px 48px 20px 20px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.quick-link-card::after {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--color-teal-dark);
    background: #eef8f6;
    border: 1px solid rgba(15, 159, 141, 0.18);
    border-radius: 8px;
    content: "→";
    font-weight: 900;
}

.quick-link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 159, 141, 0.34);
    box-shadow: 0 16px 32px rgba(16, 32, 39, 0.1);
}

.quick-link-card span {
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    color: var(--color-teal-dark);
    background: #eef8f6;
    border: 1px solid rgba(15, 159, 141, 0.18);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.quick-link-card strong {
    font-size: 1.16rem;
    line-height: 1.18;
}

.quick-link-card p {
    margin: 0;
    color: var(--color-muted);
}

.quick-link-primary {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 248, 246, 0.96)),
            radial-gradient(circle at 92% 18%, rgba(39, 119, 201, 0.14), transparent 28%);
    border-color: rgba(15, 159, 141, 0.2);
}

.quick-link-disabled {
    color: var(--color-muted);
    background: #f6f8f7;
    box-shadow: none;
}

.quick-link-disabled::after {
    color: #8ca0a6;
    background: #eef2f1;
    border-color: var(--color-line);
    content: "·";
}

.quick-link-disabled:hover {
    transform: none;
    border-color: var(--color-line);
    box-shadow: none;
}

.summary-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 180px;
    padding: 20px;
}

.summary-card h3,
.admin-company-info h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.2;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.status-pill {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    color: var(--color-teal-dark);
    background: #eef8f6;
    border: 1px solid rgba(15, 159, 141, 0.18);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 900;
}

.status-ok {
    color: #116653;
    background: #e8f8f2;
    border-color: #b9eadb;
}

.status-warn {
    color: #8a5d0b;
    background: #fff7dc;
    border-color: #f4dfa1;
}

.status-muted {
    color: var(--color-muted);
    background: #f2f6f5;
    border-color: var(--color-line);
}

.admin-company-list {
    display: grid;
    gap: 14px;
}

.admin-company-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
}

.admin-company-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

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

.status-page {
    width: min(760px, calc(100% - 40px));
    min-height: calc(100vh - 74px);
    display: grid;
    place-items: center;
    margin: 0 auto;
    padding: 72px 0;
}

.status-card {
    width: 100%;
    padding: clamp(32px, 7vw, 56px);
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.status-mark {
    display: inline-grid;
    width: 72px;
    height: 72px;
    place-items: center;
    margin-bottom: 18px;
    color: #ffffff;
    background: var(--color-teal);
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 900;
}

.status-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1;
    letter-spacing: 0;
}

.status-card p:not(.eyebrow) {
    max-width: 520px;
    margin: 18px auto 28px;
    color: var(--color-muted);
    font-size: 1.08rem;
}

.status-actions {
    justify-content: center;
}

.profile-page {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 56px 0 78px;
}

.profile-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 46px);
    color: #ffffff;
    background-position: center;
    background-size: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.profile-hero-student {
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.88), rgba(9, 38, 45, 0.42)),
            url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=85");
}

.profile-hero-company {
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.88), rgba(9, 38, 45, 0.42)),
            url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=85");
}

.profile-hero .eyebrow {
    color: #98f1df;
}

.profile-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.profile-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.04rem;
}

.profile-hero-actions,
.profile-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-hero-actions {
    flex: 0 0 auto;
    justify-content: end;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.profile-card,
.profile-panel,
.profile-form-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.profile-card {
    display: grid;
    gap: 16px;
    padding: 24px;
}

.profile-card-accent {
    background: linear-gradient(180deg, #ffffff, #eef8f6);
    border-color: rgba(15, 159, 141, 0.2);
}

.profile-avatar {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(15, 159, 141, 0.2);
}

.profile-card h2,
.profile-panel h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: 0;
}

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

.profile-panel {
    padding: clamp(22px, 4vw, 32px);
}

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

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

.profile-details div {
    min-width: 0;
    padding: 14px;
    background: #f8fbfa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
}

.profile-details dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 900;
}

.profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.profile-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.04rem;
}

.compact-empty {
    box-shadow: none;
}

.profile-form-panel {
    max-width: 820px;
    padding: clamp(24px, 5vw, 38px);
}

.profile-form {
    gap: 18px;
}

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

.profile-password-page .auth-copy {
    background-image:
            linear-gradient(180deg, rgba(9, 38, 45, 0.18), rgba(9, 38, 45, 0.82)),
            url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=85");
}

.work-page {
    width: min(var(--content-width), calc(100% - 40px));
    min-height: calc(100vh - 74px);
    margin: 0 auto;
    padding: 56px 0 78px;
}

.work-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: clamp(28px, 5vw, 46px);
    color: #ffffff;
    background-position: center;
    background-size: cover;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.work-hero-student {
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.88), rgba(9, 38, 45, 0.42)),
            url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1600&q=85");
}

.work-hero-company {
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.88), rgba(9, 38, 45, 0.42)),
            url("https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=1600&q=85");
}

.work-hero .eyebrow {
    color: #98f1df;
}

.work-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.work-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.04rem;
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 28px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

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

.work-card,
.detail-panel {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
}

.work-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 230px;
    padding: 20px;
}

.work-card-main {
    display: grid;
    gap: 8px;
}

.work-card h3,
.detail-panel h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.18;
}

.work-card p,
.muted-text {
    margin: 0;
    color: var(--color-muted);
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-chip {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    color: var(--color-muted);
    background: #f2f7f6;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
}

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

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

.student-person-card {
    display: grid;
    gap: 18px;
    min-height: 188px;
    padding: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.student-card-top {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.student-avatar {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 159, 141, 0.18);
}

.student-person-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.14;
}

.student-person-card p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.student-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    align-self: end;
}

.student-skill-note {
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.detail-panel {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 32px);
}

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

.inline-toolbar {
    margin: 0;
}

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

.resource-list {
    margin: 18px 0;
}

.resource-manager {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.resource-panel,
.resource-add-panel {
    height: 100%;
}

.resource-add-panel {
    position: sticky;
    top: 96px;
}

.resource-add-panel h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.resource-row {
    align-items: flex-start;
    padding: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.resource-row span {
    overflow-wrap: anywhere;
}

.resource-row form {
    flex: 0 0 auto;
    margin: 0;
}

.skill-row {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    background: #f8fbfa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    text-decoration: none;
}

.skill-row span {
    font-weight: 800;
}

.skill-row strong {
    color: var(--color-teal-dark);
}

.skill-row-link:hover {
    border-color: rgba(15, 159, 141, 0.34);
    box-shadow: 0 8px 18px rgba(16, 32, 39, 0.08);
}

.student-profile-layout {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.student-profile-card {
    position: sticky;
    top: 96px;
}

.student-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.student-skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #f8fbfa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
}

.student-skill-main {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.student-skill-main > span {
    font-weight: 900;
}

.student-skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: end;
}

.student-skill-meta strong {
    color: var(--color-teal-dark);
}

.level-meter {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.level-meter span {
    height: 9px;
    background: #e8efed;
    border-radius: 999px;
}

.level-meter span.is-active {
    background: var(--color-teal);
}

.wide-form-panel {
    max-width: none;
}

.skill-picker {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
}

.skill-picker legend {
    padding: 0 8px;
    font-weight: 900;
}

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

.skill-picker-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 76px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: #f8fbfa;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font-weight: 800;
}

.skill-picker-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-teal);
}

.skill-picker-item input[type="number"] {
    width: 76px;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
}

.skill-actions-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin: 0 0 22px;
    padding: 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.skill-actions-panel input[type="hidden"] {
    display: none;
}

.github-sync-result {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #ffffff, #eef8f6);
    border: 1px solid rgba(15, 159, 141, 0.2);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.github-sync-result span {
    display: grid;
    min-width: 56px;
    height: 56px;
    place-items: center;
    color: #ffffff;
    background: var(--color-teal);
    border-radius: 8px;
    font-size: 1.8rem;
    font-weight: 900;
}

.github-sync-result p {
    margin: 0;
    color: var(--color-muted);
    font-weight: 800;
}

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

.roadmap-list {
    margin-top: 18px;
}

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

.chat-page {
    position: relative;
}

.chat-hero {
    color: #ffffff;
    background-image:
            linear-gradient(90deg, rgba(9, 38, 45, 0.82), rgba(9, 38, 45, 0.5)),
            url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1600&q=85");
    background-size: cover;
    background-position: center;
}

.chat-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    color: var(--color-text);
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 249, 0.96));
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.chat-preview:hover {
    border-color: rgba(15, 159, 141, 0.34);
    box-shadow: 0 14px 28px rgba(16, 32, 39, 0.09);
}

.chat-preview strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.chat-preview p {
    max-width: 760px;
    margin: 0;
    overflow: hidden;
    color: var(--color-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-preview span {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.chat-avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-teal), var(--color-blue));
    border-radius: 8px;
    font-weight: 900;
}

.chat-panel {
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.chat-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--color-line);
    background: linear-gradient(135deg, #ffffff, #f3faf8);
}

.chat-topbar strong,
.chat-topbar span {
    display: block;
}

.chat-topbar span {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.chat-closed-alert {
    margin: 14px;
}

.chat-application-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    background:
            linear-gradient(135deg, #ffffff, #f4fbf9);
    border-bottom: 1px solid var(--color-line);
}

.chat-application-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    background: var(--color-teal);
    border-radius: 8px;
    font-weight: 900;
}

.chat-application-info {
    min-width: 0;
}

.chat-application-info h2 {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: 0;
}

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

.chat-application-actions form {
    margin: 0;
}

.chat-messages {
    display: grid;
    max-height: 58vh;
    min-height: 420px;
    gap: 12px;
    align-content: end;
    overflow-y: auto;
    padding: 18px;
    background:
            linear-gradient(180deg, rgba(246, 251, 250, 0.96), rgba(238, 248, 246, 0.96)),
            url("https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1400&q=70");
    background-size: cover;
    background-position: center;
}

.chat-message {
    justify-self: start;
    max-width: min(620px, 86%);
    padding: 11px 13px;
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 32, 39, 0.08);
}

.chat-message.is-mine {
    justify-self: end;
    color: #ffffff;
    background: var(--color-teal-dark);
    border-color: transparent;
}

.chat-message p {
    margin: 0;
    line-height: 1.45;
}

.chat-message span {
    display: block;
    margin-top: 6px;
    color: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.72;
}

.chat-message.is-mine span {
    text-align: right;
}

.chat-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid var(--color-line);
}

.chat-form textarea {
    width: 100%;
    min-height: 54px;
    max-height: 180px;
    resize: none;
    padding: 12px 14px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    font: inherit;
}

.chat-form textarea:focus {
    outline: none;
    border-color: rgba(15, 159, 141, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 159, 141, 0.12);
}

@media (max-width: 840px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .site-nav {
        display: flex;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .header-actions {
        justify-self: end;
    }

    .audience-grid,
    .company-grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .section-heading-row,
    .site-footer,
    .dashboard-hero,
    .dashboard-toolbar,
    .profile-hero,
    .work-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-grid,
    .quick-link-grid,
    .work-grid,
    .student-list-grid,
    .skill-picker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-company-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .admin-company-actions {
        grid-column: 1 / -1;
        justify-content: start;
    }

    .profile-layout,
    .student-profile-layout,
    .profile-details,
    .detail-layout,
    .resource-manager,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .student-profile-card {
        position: static;
    }

    .resource-add-panel {
        position: static;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-copy {
        min-height: 420px;
    }

    .chat-preview,
    .chat-application-card,
    .chat-form,
    .skill-actions-panel {
        grid-template-columns: 1fr;
    }

    .chat-application-actions {
        justify-content: start;
    }
}

@media (max-width: 560px) {
    .site-header {
        gap: 14px;
        padding-inline: 16px;
    }

    .brand-name {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .button {
        min-height: 38px;
        padding-inline: 12px;
        font-size: 0.9rem;
    }

    .hero-section {
        min-height: 680px;
        padding-inline: 18px;
    }

    .section {
        width: min(100% - 32px, var(--content-width));
        padding: 54px 0;
    }

    .section-muted {
        width: 100%;
        padding-inline: 16px;
    }

    .auth-page {
        width: min(100% - 32px, var(--content-width));
        padding: 42px 0;
    }

    .dashboard-page {
        width: min(100% - 32px, var(--content-width));
        padding: 36px 0 56px;
    }

    .profile-page {
        width: min(100% - 32px, var(--content-width));
        padding: 36px 0 56px;
    }

    .work-page {
        width: min(100% - 32px, var(--content-width));
        padding: 36px 0 56px;
    }

    .dashboard-hero,
    .profile-hero,
    .work-hero {
        padding: 26px;
    }

    .summary-grid,
    .quick-link-grid,
    .admin-company-row,
    .form-grid,
    .work-grid,
    .student-list-grid,
    .skill-picker-grid,
    .compact-details {
        grid-template-columns: 1fr;
    }

    .student-skill-row {
        grid-template-columns: 1fr;
    }

    .student-skill-meta {
        justify-content: start;
    }

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

    .onboarding-actions {
        grid-column: auto;
    }

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

    .skill-picker-item input[type="number"] {
        grid-column: 1 / -1;
        width: 100%;
    }

    .admin-company-actions,
    .admin-company-actions form {
        width: 100%;
    }

    .auth-copy {
        min-height: 360px;
    }
}
