:root {
    color-scheme: light;
    --ink: #18221c;
    --muted: #5e6a63;
    --paper: #f7f4ec;
    --line: #c9cec7;
    --signal: #b7422a;
    --deep: #173c31;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--deep);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

header {
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
}

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

.identity {
    text-decoration: none;
    color: var(--ink);
    font-family: Georgia, serif;
    font-size: 1.2rem;
    letter-spacing: .01em;
}

.identity small {
    display: block;
    color: var(--muted);
    font: 700 .68rem/1.2 system-ui, sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

main {
    padding: 52px 0 80px;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 .7em;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    max-width: 16ch;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
    font-size: 1.35rem;
}

.eyebrow {
    color: var(--signal);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.lede {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 66ch;
}

.panel {
    background: #fffdf8;
    border: 1px solid var(--line);
    padding: clamp(22px, 4vw, 42px);
    margin: 28px 0;
}

.login {
    width: min(620px, 100%);
    margin: 6vh auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .04em;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #9fa8a1;
    border-radius: 0;
    background: white;
    color: var(--ink);
    padding: 11px 12px;
    font: inherit;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    padding: 0;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button,
.button {
    appearance: none;
    display: inline-block;
    border: 1px solid var(--deep);
    border-radius: 0;
    background: var(--deep);
    color: white;
    padding: 11px 17px;
    font: 750 .9rem/1.2 system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
}

button.secondary,
.button.secondary {
    background: transparent;
    color: var(--deep);
}

button.danger {
    background: #8c2f20;
    border-color: #8c2f20;
}

.button.google {
    width: 100%;
    text-align: center;
    background: white;
    color: var(--ink);
    border-color: #879089;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--muted);
    font-size: .8rem;
}

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

.notice {
    border-left: 4px solid var(--signal);
    background: #fff7ec;
    padding: 12px 16px;
    margin: 18px 0;
}

.notice.success {
    border-color: #267259;
    background: #eef8f3;
}

.meta {
    color: var(--muted);
    font-size: .86rem;
}

.brand {
    border-top: 4px solid var(--deep);
}

.brand-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
}

.question {
    border-top: 1px solid var(--line);
    padding-top: 24px;
    margin-top: 30px;
}

.monitor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.monitor-actions form {
    margin: 0;
}

.monitor-actions button {
    padding: 8px 12px;
    font-size: .78rem;
}

.member-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto auto;
    gap: 10px;
    align-items: center;
    margin: 10px 0;
}

.member-row select {
    margin: 0;
}

.state {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid var(--line);
    color: var(--muted);
    font: 700 .68rem/1.4 system-ui, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.edit-monitor {
    margin: 16px 0;
    border: 1px solid var(--line);
    padding: 12px 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: .9rem;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

.response {
    border-left: 2px solid var(--line);
    margin: 14px 0;
    padding: 2px 0 2px 14px;
}

.response p {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.account {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--muted);
    font-size: .82rem;
}

.account form {
    margin: 0;
}

.account button {
    padding: 7px 10px;
    font-size: .75rem;
}

.empty {
    padding: 36px 0;
    color: var(--muted);
}

.secret {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    background: #f0eee7;
    border: 1px solid var(--line);
    user-select: all;
}

@media (max-width: 720px) {
    .member-row {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .wide {
        grid-column: auto;
    }

    .topbar,
    .brand-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    table {
        display: block;
        overflow-x: auto;
    }
}
