@font-face {
    font-family: "Mona Sans";
    src: url("mona-sans.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    font-family: "Mona Sans", Arial, sans-serif;
    font-size: 15px;
    color: #242733;
    background: #f4f4f4;
    --ink: #242733;
    --blue: #1641a8;
    --muted: #5f6470;
    --line: #d9dade;
    --canvas: #f1f1f2;
    --gutter: clamp(14px, 2.8vw, 62px);
    font-optical-sizing: auto;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 2px solid #2759d0;
    outline-offset: 3px;
}
.skip-link {
    position: fixed;
    z-index: 20;
    top: 12px;
    left: 12px;
    padding: 8px 12px;
    background: white;
    transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.app {
    display: grid;
    grid-template-columns: clamp(200px, 13vw, 250px) minmax(0, 1fr);
    min-height: calc(100svh - 2 * var(--gutter));
    margin: var(--gutter);
    background: white;
}
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
    position: sticky;
    top: 0;
    max-height: 100svh;
    padding: 11px 12px 18px;
    overflow-y: auto;
}
.brand {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    padding: 0 3px;
    text-decoration: none;
    font-weight: 550;
    overflow-wrap: anywhere;
}
.brandmark {
    display: grid;
    width: 41px;
    aspect-ratio: 1;
    flex: none;
    place-items: center;
    border: 1px solid #d4d5d9;
    border-radius: 9px;
    background: #f3f3f4;
    color: #525764;
    font-size: 16px;
    font-weight: 650;
}
.nav { display: grid; gap: 4px; }
.nav-label {
    padding: 0 10px 3px;
    color: var(--muted);
    font-size: 12px;
}
.nav-divider { margin: 6px 9px; border-top: 1px solid #ededf0; }
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #444854;
    font-size: 14px;
    text-decoration: none;
}
.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-item .icon { color: #6b707c; }
.nav-item:hover { background: #f7f7f8; border-color: #e7e7ea; }
.nav-item[aria-current="page"] {
    border-color: #c6d1ec;
    background: #fdfdff;
    color: var(--blue);
    box-shadow: 0 2px 5px #1d294318, 0 1px 1px #1d29430c;
    font-weight: 620;
}
.nav-item[aria-current="page"] .icon { color: var(--blue); }
.nav-item:active { transform: translateY(1px); }
.session-user {
    display: grid;
    gap: 6px;
    margin-top: 3px;
    padding: 10px 8px 0;
    border-top: 1px solid #ededf0;
    color: var(--muted);
    font-size: 12px;
}
.session-user span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.session-user form { margin: 0; padding: 0; }

.shell {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--canvas);
    box-shadow: -9px 0 15px -11px #23262e6e, -1px 0 0 #2f343319;
}
.topbar {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(57px, 4.15vw, 70px);
    border-bottom: 1px solid var(--line);
    background: white;
}
.wordmark { display: block; width: clamp(142px, 10.5vw, 180px); height: auto; }
.nav-toggle { display: none; }
.main {
    display: flex;
    flex: 1;
    min-width: 0;
    padding: clamp(20px, 2.75vw, 58px) clamp(23px, 5.8vw, 124px) clamp(20px, 3.7vw, 78px);
}
.surface {
    width: 100%;
    min-width: 0;
    padding: clamp(20px, 3vw, 48px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
}

h1, h2, h3 { color: var(--ink); }
h1 { margin: 0 0 16px; font-size: clamp(24px, 2vw, 32px); font-weight: 650; letter-spacing: -.028em; }
h2 { margin: 27px 0 12px; font-size: 18px; font-weight: 650; }
h3 { margin: 25px 0 8px; font-size: 15px; font-weight: 650; }
p { line-height: 1.55; }
p, dl, ul { overflow-wrap: anywhere; }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 4px 0 13px; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
.surface form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 13px 0; }
.surface label { display: grid; gap: 6px; font-size: 13px; font-weight: 550; }
input, select, button { font: inherit; }
input, select {
    min-width: 0;
    max-width: 100%;
    height: 37px;
    padding: 0 9px;
    border: 1px solid #cdd0d6;
    border-radius: 6px;
    background: white;
    color: var(--ink);
}
button {
    min-height: 37px;
    padding: 7px 12px;
    border: 1px solid #c7d1e8;
    border-radius: 6px;
    background: #f5f7fc;
    color: #173c95;
    font-weight: 620;
    cursor: pointer;
}
button:hover { background: #eaf0ff; }
.sign-out { min-height: 26px; padding: 0; border: 0; background: transparent; font-size: 12px; }
.surface .sign-in { display: grid; align-items: start; gap: 15px; max-width: 330px; margin: 0; }
.sign-in label { font-size: 14px; }
.sign-in input { height: 41px; }
.sign-in button { justify-self: start; min-width: 85px; }
.notice { color: #8a2b2b; margin: 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
td, th { padding: 10px 12px; text-align: left; border-bottom: 1px solid #e6e7eb; overflow-wrap: anywhere; }
th { background: #f7f7f9; font-weight: 620; }

@media (max-width: 760px) {
    .app { display: flex; flex-direction: column; margin: 0; min-height: 100svh; }
    .sidebar { position: static; width: 100%; max-height: none; }
    .has-navigation-toggle .sidebar {
        display: none;
        position: fixed;
        top: 57px;
        bottom: 0;
        z-index: 4;
        width: min(245px, 90vw);
        overflow-y: auto;
        background: white;
        box-shadow: 7px 0 20px #222a4430;
    }
    .has-navigation-toggle .sidebar.is-open { display: flex; }
    .has-navigation-toggle .nav-toggle {
        display: grid;
        place-items: center;
        position: absolute;
        left: 12px;
        width: 37px;
        padding: 0;
        border-color: transparent;
        background: transparent;
    }
    .shell { flex: 1; box-shadow: none; }
    .main { padding: 14px; }
    .surface { padding: 18px; }
    .table-wrap table { min-width: 485px; }
}

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; margin-top: 24px; }
.card { border: 1px solid #e2e4ea; border-radius: 8px; padding: 17px; }
.card h2 { margin-top: 0; }
.card p { color: var(--muted); }
.switch-mark { margin-left: auto; color: var(--muted); }
