:root { color-scheme: light dark; }

* { box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 2rem 1rem;
    background: #f4f5f7;
    color: #1c1e21;
}

main {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

h1 { margin: 0 0 .25rem; font-size: 1.4rem; }

.muted { color: #65676b; margin: .25rem 0 1.25rem; font-size: .92rem; }

label { display: block; font-weight: 600; margin: .9rem 0 .3rem; font-size: .9rem; }

input[type="text"],
input[type="password"],
select {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid #8a8f98;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #1c1e21;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: #6b7280;
}

input[type="text"]:focus,
input[type="password"]:focus,
select:focus {
    outline: 2px solid #1b74e4;
    outline-offset: 1px;
    border-color: #1b74e4;
}

button {
    margin-top: 1.1rem;
    padding: .6rem 1.2rem;
    border: 0;
    border-radius: 8px;
    background: #1b74e4;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

button:hover { background: #1760c4; }

button.link { background: none; color: #1b74e4; padding: 0; margin: 0; font-size: .9rem; }

.topbar { display: flex; align-items: baseline; justify-content: space-between; }

.topbar .logout { margin: 0; }

.notice { padding: .7rem .9rem; border-radius: 8px; margin: 0 0 1rem; font-size: .92rem; }

.notice--error { background: #ffeaea; color: #b3261e; }

.notice--info { background: #e8f0fe; color: #1b4d91; }

.table-wrap { overflow-x: auto; margin-top: 1rem; }

table { border-collapse: collapse; width: 100%; font-size: .85rem; }

th, td {
    text-align: left;
    padding: .5rem .6rem;
    border-bottom: 1px solid #e4e6eb;
    white-space: nowrap;
}

th { background: #f0f2f5; position: sticky; top: 0; }

.section-divider { border: 0; border-top: 1px solid #e4e6eb; margin: 2rem 0 1.25rem; }

h2 { font-size: 1.15rem; margin: 0 0 .25rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.btn-row button { margin-top: 0; }

button.danger { background: #d93025; }

button.danger:hover { background: #b3261e; }

.wh-overview { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }

.wh-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 6.5rem;
    padding: .6rem .8rem;
    background: #f0f2f5;
    border-radius: 8px;
}

.wh-count strong { font-size: 1.25rem; }

.wh-count span { font-size: .75rem; color: #65676b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.wh-viewer { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; }

.wh-viewer select { width: auto; min-width: 12rem; }

.wh-viewer label { margin-top: 0; }

.wh-viewer button { margin-top: 0; }
