.sdt-shell {
    margin: 0;
    background: #f2f5f4;
    color: #18334b;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sdt-bar {
    display: flex;
    align-items: center;
    gap: clamp(28px, 5vw, 88px);
    padding: 12px clamp(24px, 2vw, 56px);
    min-height: 72px;
    background: #07528f;
    border-bottom: 5px solid #56bd70;
    color: white;
}
.sdt-logo { width: 200px; max-width: 42%; height: auto; }
.sdt-brand span, .sdt-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.sdt-brand span { color: #e1edf7; }
.sdt-brand strong { display: block; margin-top: 4px; font-size: 21px; font-weight: 500; }
.sdt-main {
    box-sizing: border-box;
    display: grid;
    align-items: center;
    min-height: calc(100vh - 101px);
    padding: 48px 24px;
}
.sdt-layout {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
    gap: clamp(36px, 8vw, 144px);
    align-items: center;
}
.sdt-intro h1 { color: #07528f; font-size: clamp(36px, 4vw, 50px); line-height: 1.19; font-weight: 500; letter-spacing: -.035em; margin: 0 0 18px; }
.sdt-intro p { max-width: 480px; margin: 0; font-size: 17px; line-height: 1.7; color: #536d82; }
.sdt-card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #dce5e3;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 12px 45px rgba(24, 51, 75, .08);
}
.sdt-label { color: #206c46; margin: 0 0 8px; }
.sdt-card h2 { color: #063b69; font-size: 25px; font-weight: 500; margin: 0 0 8px; }
.sdt-card p { margin: 0 0 16px; line-height: 1.5; }
.sdt-card .sdt-hint { color: #536d82; font-size: 14px; margin-bottom: 24px; }
.sdt-card label { display: block; color: #18334b; font-size: 14px; font-weight: 700; }
.sdt-card input:not([type="hidden"]):not([type="submit"]), .sdt-card select {
    box-sizing: border-box; display: block; width: 100%; min-height: 46px; margin-top: 8px;
    padding: 10px 12px; border: 1px solid #c9d7d6; border-radius: 7px; background: #fff; color: #18334b;
}
.sdt-card .login-submit { margin-bottom: 0; }
.sdt-card button, .sdt-card input[type="submit"] {
    border: 0; border-radius: 8px; background: #07528f; color: white; min-height: 44px;
    padding: 10px 17px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.sdt-card input[type="submit"] { width: 100%; margin-top: 6px; }
.sdt-card button { margin: 0 6px 10px 0; }
.sdt-card a { color: #07528f; }
.sdt-card :focus-visible { outline: 2px solid #07528f; outline-offset: 3px; }
@media (max-width: 720px) {
    .sdt-layout { grid-template-columns: 1fr; gap: 26px; max-width: 430px; }
    .sdt-main { min-height: auto; padding-top: 42px; }
    .sdt-card { padding: 24px; }
}


.sdt-name-field { margin-bottom: 16px; }
.sdt-card .sdt-suggestions {
    list-style: none;
    padding: 4px;
    margin: 4px 0 0;
    border: 1px solid #c9d7d6;
    border-radius: 7px;
    background: #fff;
}
.sdt-card .sdt-suggestions button {
    display: block;
    width: 100%;
    margin: 0;
    color: #18334b;
    background: transparent;
    text-align: left;
}
.sdt-card .sdt-suggestions button:hover,
.sdt-card .sdt-suggestions button:focus-visible { background: #e8f0fe; }
.sdt-card #sdt-search-status { margin: 5px 0 0; font-size: 13px; }
.sdt-card #sdt-search-status:empty { display: none; }

.sdt-dashboard .sdt-main { display: block; padding-block: 32px; }
.sdt-dashboard .sdt-layout { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.sdt-day-title { margin: 0; color: #07528f; font-size: clamp(28px, 4vw, 40px); }
.sdt-dashboard .sdt-card { border-top: 4px solid #07528f; }
.sdt-summary h2 { font-size: 21px; margin: 0 0 14px; }
.sdt-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); gap: 16px; }
.sdt-total { background: #fff; border: 1px solid #dce5e3; border-radius: 12px; padding: 20px; }
.sdt-total h3 { margin: 0 0 10px; font-size: 15px; }
.sdt-total strong { color: #07528f; font-size: 29px; }
.sdt-total p { margin: 8px 0 0; color: #425b70; font-size: 14px; }
.sdt-dashboard textarea { box-sizing: border-box; width: min(100%, 36rem); border: 1px solid #9baebc; border-radius: 8px; padding: 10px; font: inherit; }
.sdt-dashboard .sdt-layout { width: min(1440px, 100%); }
.sdt-dashboard label { display: block; margin: 12px 0; }
.sdt-dashboard select, .sdt-dashboard input[type=date], .sdt-dashboard input[type=datetime-local], .sdt-dashboard input[type=number] { max-width: 100%; display: block; font: inherit; }
.sdt-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.sdt-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.sdt-dashboard details { padding: 12px 0; border-top: 1px solid #dce5e3; }
.sdt-dashboard summary { cursor: pointer; font-weight: 650; }
.sdt-calendar-scroll { overflow: auto; }
.sdt-calendar { display: grid; grid-template-columns: 55px repeat(7, minmax(125px, 1fr)); min-width: 930px; }
.sdt-calendar article { border-right: 1px solid #c8d9e4; }
.sdt-calendar h3 { margin: 0; padding: 8px; background: #ecf3f8; font-size: 14px; }
.sdt-day-timeline { height: 768px; position: relative; background: repeating-linear-gradient(to bottom, #fff 0, #fff 31px, #dce5e3 31px, #dce5e3 32px); }
.sdt-presence { position: absolute; inset-inline: 4px; overflow: hidden; border-radius: 4px; background: #d9eaf8; color: #133858; font-size: 12px; text-align: center; }
.sdt-fields-compact { display: block; margin-bottom: 14px; } .sdt-dashboard [data-sdt-description][hidden] { display: none; } .sdt-current-task { color: #425b70; }
.sdt-calendar-task { position: absolute; inset-inline: 5px; min-height: 14px; padding-inline: 4px; background: #07528f; color: #fff; border-radius: 4px; font-size: 11px; text-decoration: none; z-index: 1; }
.sdt-calendar-task:hover, .sdt-calendar-task:focus-visible { z-index: 2; outline: 2px solid #56bd70; }
.sdt-task-tooltip { display: none; position: absolute; bottom: 100%; inset-inline: 0; min-width: 100%; overflow-wrap: anywhere; background: #18334b; color: #fff; border-radius: 4px; padding: 6px; }
.sdt-calendar-task:hover .sdt-task-tooltip, .sdt-calendar-task:focus-visible .sdt-task-tooltip { display: block; }
.sdt-idle { border: 1px solid #dce5e3; border-radius: 12px; padding: 24px; color: #18334b; }
.sdt-idle::backdrop { background: rgb(24 51 75 / 55%); }
.sdt-workflow-actions { margin-top: 20px; }
.sdt-workflow-dialog { box-sizing: border-box; width: min(680px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: clamp(16px, 4vw, 28px); background: #fff; color: #18334b; border: 1px solid #dce5e3; border-radius: 14px; }
.sdt-workflow-dialog::backdrop { background: rgb(24 51 75 / 55%); }
.sdt-workflow-dialog h2 { color: #07528f; margin: 0 0 16px; }
.sdt-workflow-dialog .sdt-dialog-cancel { background: #edf3f7; color: #18334b; }

.sdt-calendar .sdt-calendar-heading { box-sizing: border-box; height: 40px; display: flex; align-items: center; gap: 4px; padding: 5px; background: #ecf3f8; font-size: 13px; }
.sdt-calendar-heading small { font-weight: 400; }
.sdt-calendar-hours { position: sticky; left: 0; z-index: 3; background: #fff; border-right: 1px solid #c8d9e4; }
.sdt-calendar-hours .sdt-day-timeline span { position: absolute; inset-inline: 5px; font-size: 11px; color: #425b70; }
.sdt-card .sdt-calendar-task { color: #fff; box-sizing: border-box; min-height: 16px; line-height: 14px; padding: 1px 4px; }
.sdt-calendar-task-name, .sdt-calendar-task-hours { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sdt-calendar-task-short .sdt-calendar-task-hours { display: none; }

@media (max-width: 720px) {
    .sdt-dashboard .sdt-layout { grid-template-columns: minmax(0, 1fr); width: 100%; }
    .sdt-dashboard .sdt-card { min-width: 0; padding: 16px; overflow-wrap: anywhere; }
    .sdt-dashboard .sdt-fields { grid-template-columns: minmax(0, 1fr); }
    .sdt-dashboard select, .sdt-dashboard input, .sdt-dashboard textarea { box-sizing: border-box; width: 100%; min-height: 44px; font-size: 16px; }
    .sdt-dashboard button, .sdt-workflow-dialog button { min-height: 44px; }
    .sdt-calendar-scroll { max-width: 100%; overscroll-behavior-inline: contain; }
    .sdt-calendar { grid-template-columns: 44px repeat(7, minmax(130px, 1fr)); min-width: 954px; }
}

.sdt-session-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1rem;
}
.sdt-session-actions button {
    appearance: none;
    border: 1px solid #07548b;
    border-radius: .65rem;
    padding: .65rem 1rem;
    min-height: 44px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    background: #07548b;
    color: #fff;
}
.sdt-session-actions button[data-sdt-logout] {
    color: #07548b;
    background: #fff;
}
.sdt-session-actions button:hover { filter: brightness(.90); }
.sdt-session-actions button:focus-visible {
    outline: 3px solid #1684bf;
    outline-offset: 3px;
}
/* The weekly grid scrolls within its own region, without sizing the page. */
.sdt-shell .sdt-main,
.sdt-shell .sdt-layout,
.sdt-shell .sdt-layout > *,
.sdt-shell .sdt-fields > *,
.sdt-shell .sdt-totals > *,
.sdt-shell .sdt-brand {
    min-inline-size: 0;
}
.sdt-shell .sdt-calendar-scroll {
    box-sizing: border-box;
    inline-size: 100%;
    max-inline-size: 100%;
    contain: inline-size;
    overflow-x: auto;
}
.sdt-calendar-mobile-hint { display: none; }

@media (max-width: 720px) {
    .sdt-shell,
    .sdt-shell *,
    .sdt-shell *::before,
    .sdt-shell *::after { box-sizing: border-box; }

    .sdt-shell { overflow-wrap: anywhere; }
    .sdt-shell .sdt-bar {
        gap: 12px;
        min-height: 60px;
        padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
    }
    .sdt-shell .sdt-logo { width: min(140px, 38%); flex: 0 0 auto; }
    .sdt-shell .sdt-brand strong { font-size: clamp(16px, 5vw, 20px); }
    .sdt-shell .sdt-main {
        padding: 18px max(12px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }
    .sdt-shell .sdt-layout { grid-template-columns: minmax(0, 1fr); inline-size: 100%; gap: 14px; }
    .sdt-shell .sdt-intro h1,
    .sdt-shell .sdt-day-title { font-size: clamp(26px, 7vw, 34px); margin-bottom: 8px; }
    .sdt-shell .sdt-card { padding: 14px; max-inline-size: 100%; }
    .sdt-shell .sdt-card h2,
    .sdt-shell .sdt-workflow-dialog h2 { font-size: 21px; }
    .sdt-shell .sdt-card p { margin-bottom: 10px; }
    .sdt-shell .sdt-totals,
    .sdt-shell .sdt-fields { gap: 10px; }
    .sdt-shell .sdt-total { padding: 12px; }
    .sdt-shell .sdt-total strong { font-size: 25px; }
    .sdt-shell .sdt-actions,
    .sdt-shell .sdt-session-actions { gap: 8px; }
    .sdt-shell .sdt-actions > *,
    .sdt-shell .sdt-session-actions > * { min-inline-size: 0; max-inline-size: 100%; }
    .sdt-shell button,
    .sdt-shell .sdt-actions a {
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .sdt-shell .sdt-card button { margin-right: 0; }
    .sdt-shell input:not([type=hidden]):not([type=checkbox]):not([type=radio]),
    .sdt-shell select,
    .sdt-shell textarea {
        min-inline-size: 0;
        max-inline-size: 100%;
        font-size: 16px;
    }
    .sdt-shell .sdt-idle,
    .sdt-shell .sdt-workflow-dialog {
        inline-size: calc(100% - 24px);
        max-inline-size: 520px;
        max-block-size: calc(100% - 24px);
        margin: auto;
        padding: 16px;
        overflow: auto;
        overscroll-behavior: contain;
    }
    .sdt-calendar-mobile-hint { display: block; font-size: .875rem; }
}
@media (max-width: 480px) {
    .sdt-shell .sdt-totals { grid-template-columns: minmax(0, 1fr); }
    .sdt-shell .sdt-actions > form,
    .sdt-shell .sdt-actions > button,
    .sdt-shell .sdt-session-actions > button { flex: 1 1 100%; }
    .sdt-shell .sdt-actions > form > button,
    .sdt-shell .sdt-actions > button,
    .sdt-shell .sdt-session-actions > button { width: 100%; }
}