:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    color: #213649;
    background: #f3f7f8;
}

* {
    box-sizing: border-box;
}

body.staff-shell {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(31, 143, 151, 0.11), transparent 30%),
        #f3f7f8;
}

.staff-nav {
    position: sticky;
    z-index: 20;
    top: 0;
    border-bottom: 1px solid #dce8ea;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(33, 67, 82, 0.06);
    backdrop-filter: blur(10px);
}

.staff-nav__inner {
    display: flex;
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    align-items: center;
    gap: 30px;
}

.staff-nav__brand {
    display: grid;
    color: #173f50;
    line-height: 1.2;
    text-decoration: none;
}

.staff-nav__eyebrow {
    color: #19848b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.staff-nav__brand strong {
    margin-top: 4px;
    font-size: 16px;
}

.staff-nav__links {
    display: flex;
    flex: 1;
    gap: 8px;
}

.staff-nav__links a,
.staff-nav__portal-link {
    padding: 9px 12px;
    border-radius: 10px;
    color: #526b78;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.staff-nav__links a:hover,
.staff-nav__portal-link:hover {
    color: #176e76;
    background: #edf7f7;
}

.staff-nav__account {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #405b68;
    font-size: 13px;
    font-weight: 700;
}

.staff-nav__account form {
    margin: 0;
}

.staff-nav__account button {
    padding: 8px 12px;
    border: 1px solid #d5e3e5;
    border-radius: 10px;
    color: #566d78;
    background: #fff;
    font-size: 12px;
}

.staff-nav__portal-link {
    margin-left: auto;
}

.staff-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 64px;
}

.staff-login {
    display: grid;
    min-height: calc(100vh - 174px);
    place-items: center;
}

.staff-login__card {
    width: min(100%, 540px);
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid #dbe7e9;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(30, 74, 92, 0.12);
}

.staff-login__eyebrow,
.staff-dashboard__eyebrow {
    margin: 0 0 8px;
    color: #1c858c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.staff-login h1,
.staff-dashboard h1 {
    margin: 0;
    color: #173b4d;
    font-size: clamp(24px, 4vw, 34px);
}

.staff-login__lead,
.staff-dashboard__lead {
    margin: 10px 0 0;
    color: #6b7f89;
    font-size: 14px;
    line-height: 1.75;
}

.staff-form {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.staff-form label {
    display: block;
    margin-bottom: 7px;
    color: #345565;
    font-size: 13px;
    font-weight: 700;
}

.staff-form input[type="email"],
.staff-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cbdcdf;
    border-radius: 11px;
    font-size: 15px;
}

.staff-form input:focus {
    border-color: #318f96;
    outline: 3px solid rgba(49, 143, 150, 0.14);
}

.staff-form__remember {
    display: flex !important;
    margin: 0 !important;
    align-items: center;
    gap: 8px;
    color: #607681 !important;
    font-weight: 500 !important;
}

.staff-primary-button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #1c8b91, #196a82);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(27, 118, 130, 0.22);
}

.staff-error {
    margin-top: 6px;
    color: #b33a3a;
    font-size: 12px;
}

.staff-dashboard__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.staff-dashboard__clinic {
    padding: 9px 14px;
    border: 1px solid #d9e7e9;
    border-radius: 999px;
    color: #536c78;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

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

.staff-metric,
.staff-panel {
    border: 1px solid #dce8ea;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(38, 76, 91, 0.07);
}

.staff-metric {
    min-height: 148px;
    padding: 22px;
}

.staff-metric__label {
    color: #738892;
    font-size: 12px;
    font-weight: 700;
}

.staff-metric strong {
    display: block;
    margin-top: 14px;
    color: #183e50;
    font-size: 25px;
    line-height: 1.35;
}

.staff-metric small {
    display: block;
    margin-top: 7px;
    color: #768b94;
}

.staff-dashboard__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 18px;
    margin-top: 18px;
}

.staff-panel {
    padding: 24px;
}

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

.staff-panel h2 {
    margin: 0;
    color: #244a5b;
    font-size: 18px;
}

.staff-panel__link {
    color: #1b7c83;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.staff-shift-list,
.staff-action-list,
.staff-pattern-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.staff-shift-list li,
.staff-pattern-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #f5f9fa;
}

.staff-shift-list time {
    color: #315364;
    font-weight: 800;
}

.staff-shift-list span,
.staff-pattern-list span {
    color: #647c87;
    font-size: 13px;
}

.staff-action-list a {
    display: flex;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #dbe7e9;
    border-radius: 13px;
    align-items: center;
    justify-content: space-between;
    color: #355767;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.staff-action-list a:hover {
    border-color: #87bdc1;
    background: #f1f8f8;
}

.staff-empty {
    padding: 22px;
    border-radius: 14px;
    color: #6a808a;
    background: #f5f9fa;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 820px) {
    .staff-nav__links {
        display: none;
    }

    .staff-nav__account span {
        display: none;
    }

    .staff-metrics,
    .staff-dashboard__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .staff-nav__inner,
    .staff-main {
        width: min(100% - 24px, 1180px);
    }

    .staff-main {
        padding-top: 24px;
    }

    .staff-dashboard__header {
        align-items: start;
        flex-direction: column;
    }

    .staff-nav__brand strong {
        font-size: 14px;
    }
}
