:root {
    --ink: #223d57;
    --ink-deep: #182f46;
    --ink-soft: #526a7e;
    --paper: #f7f3ec;
    --paper-deep: #ebe2d5;
    --surface: #fffdf9;
    --line: rgba(34, 61, 87, 0.13);
    --line-strong: rgba(34, 61, 87, 0.22);
    --accent: #e26c24;
    --accent-deep: #c45718;
    --blue-soft: #e3edf3;
    --sand: #e9d8c5;
    --white: #fffdf9;
    --radius-lg: 32px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --shadow-soft: 0 24px 70px -42px rgba(24, 47, 70, 0.42);
    --shadow-card: 0 18px 46px -30px rgba(24, 47, 70, 0.35);
    --font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Avenir Next", "Century Gothic", "Segoe UI", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page--login {
    background:
        radial-gradient(circle at 91% 8%, rgba(226, 108, 36, 0.25), transparent 27rem),
        radial-gradient(circle at 4% 76%, rgba(95, 128, 157, 0.2), transparent 31rem),
        linear-gradient(180deg, #faf7f1 0%, var(--paper) 55%, #f1e9df 100%);
}

.page--dashboard {
    background:
        radial-gradient(circle at 88% -8%, rgba(226, 108, 36, 0.18), transparent 28rem),
        linear-gradient(180deg, #f8f4ed 0%, #f2ece3 100%);
}

.page--error {
    background:
        radial-gradient(circle at 50% -20%, rgba(95, 128, 157, 0.22), transparent 35rem),
        var(--paper);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
}

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 14px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--white);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(226, 108, 36, 0.7);
    outline-offset: 3px;
}

/* Shared chrome */

.shell-header,
.app-bar__inner {
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
}

.shell-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 0 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: auto;
    height: 32px;
}

.header-caption {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.connection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 11px;
    border: 1px solid rgba(34, 61, 87, 0.09);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(227, 237, 243, 0.86);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.connection__dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #2f7e76;
    box-shadow: 0 0 0 4px rgba(47, 126, 118, 0.13);
}

.main {
    flex: 1;
    width: 100%;
}

.main--login {
    display: flex;
    align-items: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(1240px, calc(100% - 64px));
    margin: 0 auto;
    padding: 26px 0 30px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 12px;
}

.site-footer__security {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.site-footer .icon {
    width: 14px;
    height: 14px;
}

.site-footer__separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow__line {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

/* Login */

.login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
    gap: clamp(42px, 7vw, 104px);
    align-items: center;
    width: min(1240px, calc(100% - 96px));
    margin: 0 auto;
    padding: 54px 0 76px;
}

.login-story {
    max-width: 660px;
    animation: rise 600ms cubic-bezier(0.22, 0.8, 0.33, 1) both;
}

.login-story h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(50px, 5.7vw, 78px);
    font-weight: 600;
    letter-spacing: -0.058em;
    line-height: 0.99;
}

.login-story h1 em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.login-story__lede {
    max-width: 540px;
    margin: 26px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.68;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 540px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.55;
}

.feature-list strong {
    color: var(--ink);
    font-weight: 650;
}

.feature-list__icon {
    display: grid;
    width: 23px;
    height: 23px;
    flex: 0 0 auto;
    margin-top: 0;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(95, 128, 157, 0.23);
}

.feature-list__icon .icon {
    width: 13px;
    height: 13px;
}

.signal-card {
    position: relative;
    width: min(100%, 510px);
    margin-top: 42px;
    padding: 20px 22px 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    color: var(--paper);
    background:
        radial-gradient(circle at 101% -10%, rgba(226, 108, 36, 0.3), transparent 19rem),
        linear-gradient(135deg, #243f59 0%, #2b4866 70%, #345572 100%);
    box-shadow: 0 28px 60px -40px rgba(24, 47, 70, 0.7);
}

.signal-watermark {
    position: absolute;
    right: -42px;
    bottom: -72px;
    width: 230px;
    height: 230px;
    opacity: 0.075;
    pointer-events: none;
}

.signal-card__top,
.signal-card__footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.signal-card__top {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}

.signal-logo {
    width: auto;
    height: 24px;
}

.signal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(247, 243, 236, 0.68);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signal-status .connection__dot {
    background: #74b9aa;
    box-shadow: 0 0 0 4px rgba(116, 185, 170, 0.14);
}

.signal-card__body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 2px;
}

.signal-orbit {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    flex: 0 0 auto;
    place-items: center;
}

.signal-orbit__ring {
    position: absolute;
    border-radius: 50%;
}

.signal-orbit__ring--outer {
    inset: 0;
    border: 1px dashed rgba(247, 243, 236, 0.28);
    animation: spin 26s linear infinite;
}

.signal-orbit__ring--inner {
    inset: 12px;
    border: 1px solid rgba(247, 243, 236, 0.12);
    background: rgba(255, 253, 249, 0.06);
}

.signal-orbit__core {
    z-index: 1;
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--accent);
    box-shadow: 0 10px 20px -12px rgba(24, 47, 70, 0.9);
}

.signal-orbit__core .icon {
    width: 22px;
    height: 22px;
}

.signal-copy__title {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.signal-copy__text {
    max-width: 290px;
    margin: 0;
    color: rgba(247, 243, 236, 0.66);
    font-size: 12.5px;
    line-height: 1.55;
}

.signal-card__footer {
    padding-top: 14px;
    border-top: 1px solid rgba(247, 243, 236, 0.14);
    color: rgba(247, 243, 236, 0.66);
    font-size: 10.5px;
    font-weight: 550;
}

.signal-card__footer span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.signal-card__footer .icon {
    width: 13px;
    height: 13px;
}

.login-action {
    width: 100%;
    max-width: 452px;
    justify-self: end;
    animation: rise 600ms 100ms cubic-bezier(0.22, 0.8, 0.33, 1) both;
}

.signin-card {
    position: relative;
    padding: 42px;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(160deg, rgba(255, 255, 252, 0.96), rgba(255, 252, 246, 0.99));
    box-shadow:
        0 36px 90px -50px rgba(24, 47, 70, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.signin-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 36px;
    left: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 108, 36, 0.8), transparent);
}

.signin-card__mark {
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
}

.signin-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.signin-card__lede {
    margin: 15px 0 26px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

.microsoft-button {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 60px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 15px;
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 16px 30px -20px rgba(24, 47, 70, 0.85);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.microsoft-button:hover {
    background: var(--ink-deep);
    box-shadow: 0 20px 34px -20px rgba(24, 47, 70, 0.9);
    transform: translateY(-1px);
}

.microsoft-button:active {
    transform: translateY(0);
}

.microsoft-button .ms-logo {
    width: 20px;
    height: 20px;
}

.microsoft-button .icon {
    width: 18px;
    height: 18px;
    margin-left: auto;
    opacity: 0.7;
    transition: transform 160ms ease;
}

.microsoft-button:hover .icon {
    transform: translateX(3px);
}

.passkey-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 13px 0 0;
    padding: 10px 11px;
    border: 1px solid rgba(34, 61, 87, 0.08);
    border-radius: 11px;
    color: var(--ink-soft);
    background: rgba(227, 237, 243, 0.7);
    font-size: 11px;
    line-height: 1.55;
}

.passkey-hint .icon {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: #2f7e76;
}

.passkey-hint strong {
    color: var(--ink);
    font-weight: 650;
}

.signin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
    color: #60788a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.signin-divider::before,
.signin-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.mini-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 12.5px;
}

.mini-trust .icon {
    width: 15px;
    height: 15px;
    color: #2f7e76;
}

.login-help {
    margin: 22px 10px 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.login-help span {
    display: block;
    color: #617888;
}

/* Dashboard */

.app-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(34, 61, 87, 0.1);
    background: rgba(247, 243, 236, 0.84);
    backdrop-filter: blur(18px);
}

.app-bar__inner {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.app-bar__account {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-bar__email {
    max-width: 280px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

.signout-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--ink);
    background: rgba(255, 253, 248, 0.6);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.signout-button:hover {
    border-color: var(--line-strong);
    background: var(--surface);
}

.signout-button .icon {
    width: 16px;
    height: 16px;
}

.main--dashboard {
    width: min(1240px, calc(100% - 96px));
    margin: 0 auto;
    padding: 48px 0 66px;
}

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 44px;
    margin-bottom: 36px;
}

.dashboard-intro h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(46px, 5.2vw, 70px);
    font-weight: 600;
    letter-spacing: -0.056em;
    line-height: 1;
}

.dashboard-intro h1 em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.dashboard-intro__lede {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.65;
}

.member-card {
    position: relative;
    display: flex;
    width: 238px;
    flex: 0 0 auto;
    flex-direction: column;
    padding: 23px 25px;
    overflow: hidden;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: 22px;
    color: var(--ink);
    background:
        radial-gradient(circle at 102% -12%, rgba(226, 108, 36, 0.22), transparent 62%),
        linear-gradient(145deg, #f3e9dc 0%, #ecddca 100%);
    box-shadow: 0 22px 44px -32px rgba(24, 47, 70, 0.5);
}

.member-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -46px;
    width: 114px;
    height: 114px;
    border: 1px solid rgba(34, 61, 87, 0.14);
    border-radius: 50%;
}

.member-card__label {
    margin-bottom: 4px;
    color: #756456;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.member-card__date {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.member-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    color: #6d5b4c;
    font-size: 10.5px;
    font-weight: 600;
}

.member-card__verified .icon {
    width: 13px;
    height: 13px;
    color: var(--accent);
}

.identity-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 38px;
    min-height: 214px;
    padding: 38px 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    color: var(--paper);
    background:
        radial-gradient(circle at 84% 8%, rgba(226, 108, 36, 0.25), transparent 19rem),
        linear-gradient(118deg, #243f59 0%, #2b4866 64%, #355675 100%);
    box-shadow: 0 34px 80px -48px rgba(24, 47, 70, 0.72);
}

.identity-card::before {
    content: "";
    position: absolute;
    right: 14%;
    bottom: -170px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(247, 243, 236, 0.08);
    border-radius: 50%;
}

.identity-card__main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.avatar {
    display: grid;
    width: 94px;
    height: 94px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background:
        linear-gradient(140deg, #f4e4d2 0%, #e9c8a6 48%, #d5e3ec 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.45),
        0 14px 30px -18px rgba(0, 0, 0, 0.55);
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.avatar--xl {
    width: 112px;
    height: 112px;
    font-size: 40px;
}

.identity-card__copy {
    min-width: 0;
}

.identity-card .eyebrow {
    margin-bottom: 8px;
    color: rgba(247, 243, 236, 0.68);
}

.identity-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: clamp(32px, 3.5vw, 46px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.identity-card__role {
    margin: 8px 0 17px;
    color: rgba(247, 243, 236, 0.7);
    font-size: 13.5px;
}

.identity-card__role span {
    padding: 0 4px;
    color: var(--sand);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(247, 243, 236, 0.15);
    border-radius: 999px;
    color: rgba(247, 243, 236, 0.82);
    background: rgba(247, 243, 236, 0.06);
    font-size: 10.5px;
    font-weight: 650;
}

.badge--verified {
    border-color: rgba(255, 186, 145, 0.3);
    color: #ffd7bd;
    background: rgba(226, 108, 36, 0.14);
}

.badge .icon {
    width: 13px;
    height: 13px;
}

.identity-card__seal {
    position: relative;
    z-index: 1;
    display: grid;
    width: 150px;
    height: 150px;
    flex: 0 0 auto;
    place-items: center;
    opacity: 0.9;
}

.identity-card__seal img {
    width: 132px;
    height: 132px;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.2));
}

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

.panel {
    padding: 29px 30px 24px;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow-card);
}

.panel__header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.panel__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(34, 61, 87, 0.06);
    border-radius: 13px;
    color: var(--ink);
    background: var(--blue-soft);
}

.panel__icon .icon {
    width: 20px;
    height: 20px;
}

.panel:nth-child(2) .panel__icon {
    color: var(--accent-deep);
    background: #f6e5d8;
}

.panel:nth-child(3) .panel__icon {
    color: #2f7e76;
    background: #e3efec;
}

.panel:nth-child(4) .panel__icon {
    background: #ece7dd;
}

.panel__kicker {
    margin: 0 0 1px;
    color: #617888;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.detail-list {
    margin: 0;
}

.detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 22px;
    padding: 11px 0;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
}

.detail-row dt {
    flex: 0 0 auto;
    color: #617888;
    font-size: 11px;
    font-weight: 600;
}

.detail-row dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 13px;
    font-weight: 550;
    text-align: right;
}

.detail-row dd.is-empty {
    color: #617888;
    font-weight: 450;
}

.detail-row--stack {
    display: block;
}

.detail-row--stack dt {
    margin-bottom: 5px;
}

.detail-row--stack dd {
    text-align: left;
}

.detail-row code {
    display: block;
    padding: 8px 10px;
    border: 1px solid rgba(34, 61, 87, 0.08);
    border-radius: 8px;
    color: #36536b;
    background: #f2ece2;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10.5px;
    font-weight: 400;
    line-height: 1.5;
}

.panel code {
    user-select: all;
}

.panel__note {
    margin: 14px 0 0;
    padding-top: 13px;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
    color: #617888;
    font-size: 10.5px;
    line-height: 1.55;
}

.signout-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 22px;
    padding: 24px 28px;
    border: 1px solid rgba(34, 61, 87, 0.11);
    border-radius: 22px;
    background:
        linear-gradient(100deg, rgba(228, 237, 243, 0.86), rgba(247, 243, 236, 0.96));
}

.signout-banner__copy {
    display: flex;
    align-items: center;
    gap: 16px;
}

.signout-banner__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--accent-deep);
    background: rgba(255, 253, 249, 0.76);
}

.signout-banner__icon .icon {
    width: 19px;
    height: 19px;
}

.signout-banner h2 {
    margin: 0 0 2px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.signout-banner p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
}

.signout-banner form {
    margin: 0;
    flex: 0 0 auto;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button-primary {
    padding: 12px 18px;
    color: var(--white);
    background: var(--ink);
}

.button-primary:hover {
    background: var(--ink-deep);
    transform: translateY(-1px);
}

.button-secondary {
    padding: 11px 15px;
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--surface);
    white-space: nowrap;
}

.button-secondary:hover {
    border-color: rgba(34, 61, 87, 0.4);
    background: #fff;
}

.button-primary .icon,
.button-secondary .icon {
    width: 16px;
    height: 16px;
}

/* Error */

.main--error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 72px;
}

.error-shell {
    width: min(580px, 100%);
}

.error-card {
    padding: 50px 48px;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: var(--radius-lg);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow-soft);
    text-align: center;
    animation: rise 500ms cubic-bezier(0.22, 0.8, 0.33, 1) both;
}

.error-card__icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: rgba(226, 108, 36, 0.09);
}

.error-card__icon .icon {
    width: 29px;
    height: 29px;
}

.error-card .eyebrow {
    justify-content: center;
    margin-bottom: 12px;
}

.error-card h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.error-card__message {
    max-width: 400px;
    margin: 17px auto 26px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.65;
}

.error-card__hint {
    margin: 22px 0 0;
    color: #617888;
    font-size: 11px;
}


/* Application workspace */

.page--employee,
.page--my_hours,
.page--admin_queue,
.page--admin_reports,
.page--admin_patients {
    background:
        radial-gradient(circle at 90% -5%, rgba(226, 108, 36, 0.14), transparent 28rem),
        linear-gradient(180deg, #f8f4ed 0%, #f2ece3 100%);
}

.main--employee,
.main--my_hours,
.main--admin_queue,
.main--admin_reports,
.main--admin_patients {
    width: min(1240px, calc(100% - 96px));
    margin: 0 auto;
    padding: 44px 0 68px;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-nav__link {
    padding: 7px 11px;
    border-radius: 9px;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease, background 150ms ease;
}

.app-nav__link:hover {
    color: var(--ink);
    background: rgba(255, 253, 249, 0.65);
}

.app-nav__link.is-active {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 4px 14px -10px rgba(24, 47, 70, 0.45);
}

.flash-wrap {
    width: min(1240px, calc(100% - 96px));
    margin: 22px auto -8px;
}

.flash {
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 550;
}

.flash--success {
    border-color: rgba(47, 126, 118, 0.24);
    color: #1d645e;
    background: #e5f1ee;
}

.flash--warning {
    border-color: rgba(196, 87, 24, 0.24);
    color: #8b4415;
    background: #f8eadf;
}

.flash--error {
    border-color: rgba(181, 49, 43, 0.22);
    color: #8f312c;
    background: #f8e8e6;
}

.workspace-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 42px;
    margin-bottom: 30px;
}

.workspace-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 5vw, 66px);
    font-weight: 600;
    letter-spacing: -0.058em;
    line-height: 1;
}

.workspace-head h1 em {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

.workspace-head--compact h1 {
    font-size: clamp(40px, 4.5vw, 58px);
}

.workspace-head__lede {
    max-width: 620px;
    margin: 17px 0 0;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

.today-card {
    position: relative;
    display: flex;
    width: 226px;
    flex: 0 0 auto;
    flex-direction: column;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: 21px;
    color: var(--ink);
    background:
        radial-gradient(circle at 105% -15%, rgba(226, 108, 36, 0.22), transparent 60%),
        linear-gradient(145deg, #f3e9dc 0%, #ecddca 100%);
    box-shadow: 0 22px 44px -34px rgba(24, 47, 70, 0.46);
}

.today-card--blue {
    background:
        radial-gradient(circle at 105% -15%, rgba(95, 128, 157, 0.2), transparent 60%),
        linear-gradient(145deg, #e7eff5 0%, #dbe8f1 100%);
}

.today-card__label {
    margin-bottom: 3px;
    color: #756456;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.today-card--blue .today-card__label {
    color: #5e7384;
}

.today-card__value {
    font-family: var(--font-display);
    font-size: 31px;
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.today-card__note {
    margin-top: 9px;
    color: #766758;
    font-size: 10.5px;
}

.today-card--blue .today-card__note {
    color: #617888;
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid rgba(196, 87, 24, 0.2);
    border-radius: 14px;
    color: #8b4415;
    background: #f8eadf;
    font-size: 12px;
    line-height: 1.55;
}

.notice .icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.notice strong {
    color: #6f3710;
}

.notice code {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.notice--inline {
    margin: 0 0 18px;
}

/* Timer */

.timer-card {
    position: relative;
    margin-bottom: 20px;
    padding: 31px 34px;
    overflow: hidden;
    border: 1px solid rgba(34, 61, 87, 0.11);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.timer-card--active {
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--paper);
    background:
        radial-gradient(circle at 88% 0%, rgba(226, 108, 36, 0.3), transparent 22rem),
        linear-gradient(120deg, #243f59 0%, #2b4866 65%, #355675 100%);
    box-shadow: 0 32px 70px -46px rgba(24, 47, 70, 0.7);
}

.timer-card--active::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -105px;
    width: 300px;
    height: 300px;
    background: url("/static/brand/curaserve-mark.png") center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.timer-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}

.timer-state {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.timer-state__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff8b4c;
    box-shadow: 0 0 0 0 rgba(255, 139, 76, 0.5);
    animation: timer-pulse 2s infinite;
}

.timer-card__since {
    color: rgba(247, 243, 236, 0.62);
    font-size: 11px;
}

.timer-card__main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0;
}

.timer-card__patient .eyebrow {
    margin-bottom: 7px;
    color: rgba(247, 243, 236, 0.56);
}

.timer-card__patient h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.timer-card__number {
    margin: 7px 0 0;
    color: rgba(247, 243, 236, 0.62);
    font-size: 12px;
}

.timer-clock {
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.timer-card__actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 19px;
    border-top: 1px solid rgba(247, 243, 236, 0.14);
}

.timer-card__actions p {
    max-width: 350px;
    margin: 0;
    color: rgba(247, 243, 236, 0.58);
    font-size: 10.5px;
    line-height: 1.55;
    text-align: right;
}

.timer-card__actions form {
    margin: 0;
}

.button-primary--light {
    min-height: 48px;
    padding: 0 19px;
    background: var(--accent);
    box-shadow: 0 15px 28px -18px rgba(0, 0, 0, 0.55);
}

.button-primary--light:hover {
    background: var(--accent-deep);
}

.timer-card__intro {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.timer-card__intro .panel__icon {
    margin-top: 2px;
}

.timer-card__intro .eyebrow {
    margin-bottom: 5px;
}

.timer-card__intro h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.timer-card__intro p:not(.eyebrow) {
    margin: 6px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.start-form {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.start-form .field {
    flex: 1;
}

.timer-card__hint {
    margin: 15px 0 0;
    color: #617888;
    font-size: 10.5px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.workspace-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel--flush {
    padding-bottom: 8px;
}

.panel--soft {
    background:
        linear-gradient(145deg, rgba(227, 237, 243, 0.75), rgba(255, 253, 249, 0.95));
}

.panel__header--spread {
    justify-content: space-between;
}

.panel__heading {
    display: flex;
    align-items: center;
    gap: 13px;
}

.panel__note--top {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-deep);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.text-link .icon {
    width: 14px;
    height: 14px;
}

.text-link:hover {
    color: var(--accent);
}

.patient-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.patient-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
}

.patient-list li:first-child {
    border-top: 0;
}

.patient-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--blue);
}

.patient-list span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.patient-list strong {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
}

.patient-list small {
    color: #617888;
    font-size: 10px;
}

.empty-note {
    padding: 17px 0 8px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
}

.empty-note strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
}

/* Tables */

.table-wrap {
    overflow-x: auto;
    margin: 0 -30px;
    padding: 0 30px;
}

.panel--flush .table-wrap {
    border-top: 1px solid rgba(34, 61, 87, 0.08);
}

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 12px;
}

.data-table th {
    padding: 11px 12px;
    color: #617888;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 13px 12px;
    border-top: 1px solid rgba(34, 61, 87, 0.075);
    color: var(--ink-soft);
    vertical-align: top;
}

.data-table td strong {
    color: var(--ink);
    font-weight: 600;
}

.data-table .align-right {
    text-align: right;
}

.data-table--report td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.table-sub {
    display: block;
    margin-top: 2px;
    color: #7b8d98;
    font-size: 9.5px;
    font-weight: 450;
}

.status,
.review-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 650;
    white-space: nowrap;
}

.status--active {
    color: #9a4a10;
    background: #f8e6d8;
}

.status--completed,
.status--patient-active {
    color: #226d65;
    background: #e2f0ed;
}

.status--auto_stopped {
    color: #8b4415;
    background: #f7e3d4;
}

.status--patient-archived {
    color: #667783;
    background: #eef1f2;
}

.review-status--open {
    color: #8b4415;
    background: #f7e3d4;
}

.review-status--in_behandeling {
    color: #355f86;
    background: #e4edf5;
}

.review-status--afgehandeld {
    color: #226d65;
    background: #e2f0ed;
}

.period-total {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

/* Forms */

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field > span {
    color: #617888;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid rgba(34, 61, 87, 0.16);
    border-radius: 10px;
    color: var(--ink);
    background: #fffdf9;
    font: inherit;
    font-size: 12.5px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(226, 108, 36, 0.65);
    box-shadow: 0 0 0 3px rgba(226, 108, 36, 0.1);
}

.field--inline {
    flex: 0 0 auto;
    min-width: 135px;
}

.filter-bar,
.report-filter {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid rgba(34, 61, 87, 0.1);
    border-radius: 15px;
    background: rgba(255, 253, 249, 0.8);
}

.report-filter .field--inline:first-child {
    min-width: 150px;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

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

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ink-soft);
    font-size: 11.5px;
    line-height: 1.5;
}

.checkbox-field input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.button-secondary--full {
    width: 100%;
}

.button-quiet {
    padding: 5px 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--accent-deep);
    background: transparent;
    font-size: 10.5px;
    font-weight: 650;
    cursor: pointer;
}

.button-quiet:hover {
    border-color: rgba(196, 87, 24, 0.2);
    background: #f8eadf;
}

.button-quiet--danger {
    color: #a53933;
}

.button-quiet--danger:hover {
    border-color: rgba(165, 57, 51, 0.2);
    background: #f8e8e6;
}

.profile-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 34px;
    align-items: start;
}

.whatsapp-panel {
    margin-top: 20px;
}

.inline-code {
    padding: 3px 6px;
    border-radius: 5px;
    background: #f2ece2;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.muted {
    color: #7b8d98;
}

/* Review queue */

.review-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.review-card {
    padding: 25px 28px;
    border: 1px solid rgba(34, 61, 87, 0.11);
    border-radius: 23px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.review-card--system {
    border-color: rgba(226, 108, 36, 0.22);
}

.review-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(34, 61, 87, 0.08);
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.badge--neutral {
    border-color: rgba(34, 61, 87, 0.08);
    color: var(--ink-soft);
    background: #f4f0e8;
}

.review-card__created {
    color: #7b8d98;
    font-size: 10px;
    white-space: nowrap;
}

.review-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.85fr);
    gap: 28px;
    padding: 19px 0;
}

.review-card__patient .eyebrow {
    margin-bottom: 6px;
}

.review-card__patient h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.045em;
}

.review-card__employee {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 11.5px;
}

.review-facts {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(34, 61, 87, 0.08);
    border-radius: 10px;
    background: #faf7f1;
}

.review-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 11px;
    border-top: 1px solid rgba(34, 61, 87, 0.07);
}

.review-facts > div:first-child {
    border-top: 0;
}

.review-facts dt {
    color: #617888;
    font-size: 10px;
}

.review-facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.review-note {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    color: var(--ink-soft);
    background: #faf3eb;
    font-size: 12px;
    line-height: 1.6;
}

.review-note span {
    display: block;
    margin-bottom: 3px;
    color: #8b6a53;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.review-note--system {
    border-left-color: var(--blue);
    background: #f1f5f8;
    font-style: italic;
}

.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
}

.review-actions p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.correction-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
}

.correction-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.35fr);
    gap: 12px;
}

.review-claimed-note {
    margin: 0 0 4px;
    padding: 10px 12px;
    border: 1px solid rgba(95, 128, 157, 0.18);
    border-radius: 9px;
    color: #4e6d86;
    background: #eff5f9;
    font-size: 10.5px;
    line-height: 1.55;
}

.review-claimed {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-top: 15px;
    border-top: 1px solid rgba(34, 61, 87, 0.08);
    color: var(--ink-soft);
    font-size: 11px;
}

.review-claimed .icon {
    width: 17px;
    height: 17px;
    color: var(--blue);
}

/* Admin patient page */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    color: #226d65;
    background: #e2f0ed;
}

.empty-state__icon .icon {
    width: 25px;
    height: 25px;
}

.empty-state h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.empty-state p {
    margin: 7px 0 17px;
    color: var(--ink-soft);
    font-size: 12.5px;
}

@keyframes timer-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 139, 76, 0.45); }
    70% { box-shadow: 0 0 0 9px rgba(255, 139, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 139, 76, 0); }
}

/* Motion */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive */

@media (max-width: 1040px) {
    .login-grid {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
        gap: 48px;
        width: min(100% - 64px, 1240px);
    }

    .login-story h1 {
        font-size: clamp(48px, 6vw, 66px);
    }

    .signin-card {
        padding: 34px;
    }

    .dashboard-intro h1 {
        font-size: clamp(46px, 5.8vw, 64px);
    }
}

@media (max-width: 880px) {
    .login-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 42px;
        padding: 36px 0 60px;
    }

    .login-story {
        max-width: 680px;
    }

    .login-story h1 {
        font-size: clamp(52px, 10vw, 72px);
    }

    .signal-card {
        display: none;
    }

    .login-action {
        max-width: 560px;
        justify-self: start;
    }

    .main--dashboard {
        padding-top: 34px;
    }

    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .member-card {
        width: 100%;
        max-width: 330px;
    }

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

    .identity-card__seal {
        width: 104px;
        height: 104px;
    }

    .identity-card__seal img {
        width: 94px;
        height: 94px;
    }

    .app-bar__email {
        display: none;
    }

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

@media (max-width: 640px) {
    .shell-header,
    .app-bar__inner,
    .site-footer {
        width: calc(100% - 40px);
    }

    .shell-header {
        padding-top: 24px;
    }

    .header-caption {
        display: none;
    }

    .brand-logo {
        height: 28px;
    }

    .login-grid {
        width: calc(100% - 40px);
        padding: 28px 0 46px;
    }

    .login-story h1 {
        font-size: clamp(44px, 13vw, 58px);
    }

    .login-story__lede {
        margin-top: 20px;
        font-size: 15px;
    }

    .feature-list {
        margin-top: 26px;
    }

    .signin-card {
        padding: 28px 22px;
        border-radius: 26px;
    }

    .signin-card h2 {
        font-size: 30px;
    }

    .login-help {
        margin-top: 18px;
    }

    .app-bar__inner {
        min-height: 66px;
    }

    .app-bar__account {
        gap: 8px;
    }

    .connection {
        display: none;
    }

    .signout-button span {
        display: none;
    }

    .signout-button {
        padding: 9px;
    }

    .main--dashboard {
        width: calc(100% - 40px);
        padding: 30px 0 48px;
    }

    .dashboard-intro {
        margin-bottom: 28px;
    }

    .dashboard-intro h1 {
        font-size: clamp(42px, 12vw, 56px);
    }

    .identity-card {
        min-height: 0;
        padding: 28px 24px;
        border-radius: 26px;
    }

    .identity-card__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .avatar--xl {
        width: 88px;
        height: 88px;
        font-size: 32px;
    }

    .identity-card h2 {
        font-size: 34px;
    }

    .identity-card__seal {
        display: none;
    }

    .panel {
        padding: 24px 21px 19px;
        border-radius: 20px;
    }

    .detail-row {
        gap: 16px;
    }

    .detail-row dd {
        font-size: 12.5px;
    }

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

    .signout-banner__copy {
        align-items: flex-start;
    }

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

    .signout-banner .button-secondary {
        width: 100%;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 8px 10px;
        padding-bottom: 24px;
        text-align: center;
    }

    .error-card {
        padding: 40px 24px;
        border-radius: 26px;
    }
}

@media (max-width: 1080px) {
    .app-nav__link {
        padding: 7px 9px;
        font-size: 12px;
    }

    .workspace-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.75fr);
    }
}

@media (max-width: 920px) {
    .app-bar__inner {
        flex-wrap: wrap;
        gap: 8px 18px;
        padding: 10px 0;
    }

    .app-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

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

    .app-bar__account {
        margin-left: auto;
    }

    .workspace-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .today-card {
        width: 100%;
        max-width: 330px;
    }

    .workspace-grid,
    .admin-grid,
    .profile-split {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .timer-card__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .timer-clock {
        text-align: left;
    }

    .timer-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .timer-card__actions p {
        text-align: left;
    }

    .review-card__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .review-card__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .main--employee,
    .main--my_hours,
    .main--admin_queue,
    .main--admin_reports,
    .main--admin_patients {
        padding-top: 32px;
    }
}

@media (max-width: 640px) {
    .main--employee,
    .main--my_hours,
    .main--admin_queue,
    .main--admin_reports,
    .main--admin_patients {
        width: calc(100% - 40px);
        padding: 28px 0 48px;
    }

    .flash-wrap {
        width: calc(100% - 40px);
        margin-top: 16px;
    }

    .app-bar__inner {
        min-height: 0;
    }

    .workspace-head {
        margin-bottom: 24px;
    }

    .workspace-head h1,
    .workspace-head--compact h1 {
        font-size: clamp(40px, 12vw, 52px);
    }

    .timer-card {
        padding: 24px 21px;
        border-radius: 25px;
    }

    .timer-card--active {
        padding-bottom: 22px;
    }

    .timer-card__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .timer-card__patient h2 {
        font-size: 36px;
    }

    .timer-clock {
        font-size: 56px;
    }

    .start-form {
        align-items: stretch;
        flex-direction: column;
    }

    .start-form .button-primary {
        width: 100%;
    }

    .workspace-side {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel--flush {
        padding-left: 21px;
        padding-right: 21px;
    }

    .table-wrap {
        margin-left: -21px;
        margin-right: -21px;
        padding-left: 21px;
        padding-right: 21px;
    }

    .data-table {
        min-width: 620px;
    }

    .review-card {
        padding: 21px;
        border-radius: 20px;
    }

    .review-card__patient h2 {
        font-size: 26px;
    }

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

    .correction-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .filter-bar,
    .report-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-bar .field--inline,
    .report-filter .field--inline {
        width: 100%;
    }

    .filter-bar .button-secondary,
    .report-filter .button-secondary {
        width: 100%;
    }

    .profile-split {
        gap: 8px;
    }

    .period-total {
        font-size: 19px;
    }

    .panel__header--spread {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }
}

@media (max-width: 420px) {
    .app-nav__link {
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .timer-clock {
        font-size: 48px;
    }
}
