@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-400-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-condensed-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-condensed-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
    font-family: "IBM Plex Sans Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    --ink: #000;
    --paper: #fff;
    --muted: #555;
    --faint: #999;
    --stripe: #efefef;
    --button: #e9e9e9;
    --button-hover: #dcdcdc;
    --button-pressed: #c4c4c4;
    --primary: #555;
    --primary-hover: #444;
    --primary-pressed: #333;
    --thumb: #a8a8a8;
    --thumb-active: #7a7a7a;
    --alert: #b00020;
    --alert-tint: #fbe9eb;
    --alert-tint-hover: #f6d5d9;
    --alert-tint-pressed: #eebfc5;
    --column-width: 44rem;
}

html {
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 106.25%;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    overflow-wrap: break-word;
}

h1, h2 {
    line-height: 1.25;
    margin: 2rem 0 1rem;
    font-weight: 600;
    text-wrap: balance;
}

th {
    font-weight: 600;
}

p, li {
    text-wrap: pretty;
}

h1 {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

h2 {
    font-size: 1.3rem;
}

p, ul {
    margin: 0 0 1rem;
}

li + li {
    margin-top: 0.25rem;
}

.condensed {
    font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.menu-bar {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 0 0.5rem 0 1rem;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
}

.menu-bar strong {
    padding: 0.2rem 0;
}

.menu-bar .brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-bar .brand img {
    height: 1.25em;
}

.menu-bar nav {
    display: flex;
}

.menu-bar a {
    padding: 0.2rem 0.75rem;
    color: var(--ink);
    text-decoration: none;
}

.menu-bar a:hover {
    text-decoration: underline;
}

.menu-bar a.active {
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
}

.menu-bar a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.menu-bar a.active:focus-visible {
    outline-color: var(--paper);
}

.breadcrumb {
    --point: 0.6rem;
    display: flex;
}

.breadcrumb a:first-child:not(:only-child) {
    padding-right: calc(0.75rem + var(--point));
    clip-path: polygon(0 0, calc(100% - var(--point)) 0, 100% 50%, calc(100% - var(--point)) 100%, 0 100%);
}

.breadcrumb a + a {
    margin-left: calc(0.15rem - var(--point));
    padding-left: calc(0.75rem + var(--point));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--point) 50%);
}

.breadcrumb a.ancestor {
    background: var(--stripe);
    box-shadow: inset 1px 0 0 var(--ink);
}

.page {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--column-width);
    margin: 0 auto;
    padding: 1.25rem 1rem 4rem;
}

.column {
    box-sizing: border-box;
    max-width: var(--column-width);
    margin: 0 auto;
    padding: 0 1rem;
}

body:has(.fill-viewport) {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body:has(.fill-viewport) .page {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.fill-viewport {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

textarea, button, input {
    font: inherit;
}

textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    resize: none;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: inset 1px 1px 0 var(--button-pressed);
}

textarea::placeholder {
    color: var(--muted);
}

textarea:focus {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

textarea:disabled {
    border-color: var(--faint);
    background: var(--stripe);
    box-shadow: none;
}

button {
    padding: 0.25rem 1rem;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: var(--button);
    color: var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
}

@media (hover: hover) {
    button:hover:not(:disabled) {
        background: var(--button-hover);
    }
}

button:active:not(:disabled) {
    transform: translate(2px, 2px);
    box-shadow: none;
    background: var(--button-pressed);
}

button.primary {
    background: var(--primary);
    color: var(--paper);
}

@media (hover: hover) {
    button.primary:hover:not(:disabled) {
        background: var(--primary-hover);
    }
}

button.primary:active:not(:disabled) {
    background: var(--primary-pressed);
}

button.destructive {
    border-color: var(--alert);
    background: var(--alert-tint);
    color: var(--alert);
    box-shadow: 2px 2px 0 var(--alert);
}

@media (hover: hover) {
    button.destructive:hover:not(:disabled) {
        background: var(--alert-tint-hover);
    }
}

button.destructive:active:not(:disabled) {
    background: var(--alert-tint-pressed);
}

button:disabled {
    border-color: var(--faint);
    background: var(--paper);
    color: var(--faint);
    box-shadow: none;
    cursor: default;
}

button:focus-visible,
dialog button:focus {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

button + button {
    margin-left: 0.5rem;
}

.failure {
    color: var(--alert);
}

.notice {
    color: var(--muted);
}

.loading::before {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.5em;
    vertical-align: -0.1em;
    border: 2px solid;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .loading::before {
        animation: none;
    }
}

.typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 1em;
    margin-left: 0.06em;
    vertical-align: -0.1em;
    background: currentColor;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

th, td {
    padding: 0.5rem 1rem 0.5rem 0;
    text-align: left;
    vertical-align: top;
}

table.striped tbody tr:nth-child(even) {
    background: var(--stripe);
}

.tabs {
    display: flex;
    gap: 0.25rem;
    padding-left: 0.75rem;
}

.tabs button {
    position: relative;
    z-index: 0;
    top: 1px;
    margin: 0;
    padding: 0.3rem 0.9rem;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: none;
}

.tabs button + button {
    margin-left: 0;
}

.tabs button[aria-selected="true"],
.tabs button[aria-selected="true"]:hover,
.tabs button[aria-selected="true"]:active {
    z-index: 2;
    background: var(--paper);
    font-weight: 600;
}

.tabs button:active:not(:disabled) {
    transform: none;
}

.tab-count {
    margin-left: 0.45rem;
    font-size: 0.85em;
    font-weight: 400;
    color: var(--muted);
}

.tab-panel {
    position: relative;
    z-index: 1;
    margin: 0 2px 1rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 2px 2px 0 var(--ink);
}

.tab-panel > :last-child {
    margin-bottom: 0;
}

dialog {
    max-width: min(36rem, calc(100vw - 2rem));
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
}

dialog.fixed-width {
    width: min(36rem, calc(100vw - 2rem));
}

dialog h2 {
    margin-top: 0;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.dialog-actions button + button {
    margin-left: 0;
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 10;
    box-sizing: border-box;
    width: min(24rem, calc(100vw - 2rem));
    padding: 0.75rem 1rem;
    border: 1px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    background: var(--paper);
    font-size: 0.88rem;
    line-height: 1.4;
}

.toast p,
.toast ul {
    margin: 0 0 0.5rem;
}

.toast progress {
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 0.9rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--ink);
    background: var(--paper);
}

.toast progress::-webkit-progress-bar {
    background: var(--paper);
}

.toast progress::-webkit-progress-value {
    background: var(--ink);
}

.toast progress::-moz-progress-bar {
    background: var(--ink);
}

.toast > :last-child {
    margin-bottom: 0;
}

.drop-zone {
    position: relative;
    display: block;
    margin-block: 1rem;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--ink);
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.dragging-over {
    background: var(--stripe);
}

.drop-zone.dragging-over {
    border-style: solid;
}

.drop-zone:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.drop-zone-prompt {
    text-decoration: underline;
}

.drop-zone input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone:has(input:disabled) {
    border-color: var(--faint);
    background: var(--paper);
    color: var(--faint);
    cursor: default;
}

.drop-zone input:disabled {
    cursor: default;
}
