/*
 * Administration of Cooklify (ADM-02), in the look of the website
 * (web/assets/styles/app.css): same tokens, same fonts, same "sticker"
 * cards. Every color is a token below, none is written in a rule. Fonts are
 * served from here (no call to Google Fonts), all under the SIL Open Font
 * License (see web/assets/fonts/README.md).
 */

@font-face {
    font-family: "Fredoka";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/fredoka-600-latin.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: "Fredoka";
    font-weight: 600;
    font-display: swap;
    src: url("fonts/fredoka-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Fredoka";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/fredoka-700-latin.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: "Fredoka";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/fredoka-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/nunito-400-latin.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: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("fonts/nunito-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Nunito";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/nunito-700-latin.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: "Nunito";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/nunito-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("fonts/nunito-800-latin.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: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("fonts/nunito-800-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/caveat-700-latin.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: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url("fonts/caveat-700-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --terracotta: #C85A3C;
    --terracotta-dark: #A63A24;
    --terracotta-deep: #7A2716;
    --terracotta-soft: #FBE7DF;
    --sage: #8FAA88;
    --forest: #3D5E48;
    --mint: #DCEFD9;
    --card: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #55555C;
    --border: #E3E7EE;
    --error: #B42318;
    --error-soft: #FDECEA;
    --cream: #FFF6EE;
    --sun: #F5A04B;
    --sun-soft: #FFE6C7;
    --marker: #FFD27A;
    --ink: #2B2321;

    --radius-card: 22px;
    --radius-pill: 999px;
    --sticker: 4px 4px 0 var(--ink);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
    --font-hand: "Caveat", "Segoe Print", cursive;
    --sidebar: 250px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--terracotta-dark);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

h2 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid var(--terracotta);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    z-index: 10;
    padding: 8px 16px;
    background: var(--card);
    border-radius: var(--radius-pill);
}

.muted {
    color: var(--text-secondary);
}

/* "COOKLIFY" above the title of every page, as in the app. */
.overline {
    margin: 0 0 4px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--terracotta);
}

/* A handwritten note above the titles, as on the website. */
.eyebrow {
    display: inline-block;
    margin: 0 0 6px;
    font-family: var(--font-hand);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--terracotta);
    transform: rotate(-2deg);
}

/* ------------------------------------------------------------ layout */

.admin {
    display: grid;
    min-height: 100vh;
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
    padding: 16px;
    background: var(--card);
    border-bottom: 2px solid var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--terracotta);
}

.brand img {
    border-radius: 12px;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand__tag {
    display: block;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.nav a:hover {
    background: var(--sun-soft);
}

.nav a[aria-current="page"] {
    border-color: var(--ink);
    background: var(--terracotta-dark);
    color: var(--card);
}

.sidebar__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.9rem;
}

.content {
    width: 100%;
    max-width: 1100px;
    padding: 24px 16px 48px;
}

.page-header {
    margin-bottom: 24px;
}

/* ------------------------------------------------------------ components */

.card {
    padding: 24px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-card);
    background: var(--card);
    box-shadow: var(--sticker);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 28px;
    border: 2px solid var(--terracotta-deep);
    border-radius: var(--radius-pill);
    background: var(--terracotta-dark);
    color: var(--card);
    box-shadow: 0 4px 0 var(--terracotta-deep);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--terracotta-deep);
}

.button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 var(--terracotta-deep);
}

.button--wide {
    width: 100%;
}

.link-button {
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: none;
    color: var(--terracotta-dark);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-weight: 700;
}

.field input {
    min-height: 50px;
    padding: 10px 14px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font: inherit;
    color: var(--text-primary);
    background: var(--card);
}

.field input:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px var(--terracotta-soft);
    outline: none;
}

.field__hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alert {
    margin: 0;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.alert--error {
    background: var(--error-soft);
    color: var(--error);
}

.alert--info {
    background: var(--mint);
    color: var(--forest);
}

.button--small {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 0.95rem;
}

.button--outline {
    background: var(--card);
    color: var(--terracotta-dark);
}

.button--forest {
    border-color: var(--ink);
    background: var(--forest);
    box-shadow: 0 4px 0 var(--ink);
}

.button--forest:hover {
    box-shadow: 0 6px 0 var(--ink);
}

.button--icon {
    min-width: 44px;
    padding: 8px 12px;
}

.field select,
.field textarea {
    min-height: 50px;
    padding: 10px 14px;
    border: 2px solid var(--ink);
    border-radius: 14px;
    font: inherit;
    color: var(--text-primary);
    background: var(--card);
}

.field textarea {
    resize: vertical;
    line-height: 1.5;
}

.field select:focus,
.field textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px var(--terracotta-soft);
    outline: none;
}

.field__error {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--error);
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 700;
}

.check input {
    width: 20px;
    height: 20px;
    accent-color: var(--terracotta-dark);
}

.stack {
    display: grid;
    gap: 14px;
    align-content: start;
}

.stack > * {
    margin: 0;
}

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

.actions form {
    margin: 0;
}

.note {
    padding: 12px 16px;
    border: 2px dashed var(--sun);
    border-radius: 14px;
    background: var(--sun-soft);
}

.empty {
    text-align: center;
}

.page-header__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.page-header__row h1 {
    margin: 0;
}

.flash {
    margin-bottom: 16px;
}

/* ------------------------------------------------------------ recipes */

.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
}

.field--grow {
    flex: 1 1 220px;
}

.recipe-list,
.report-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.recipe-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    background: var(--card);
}

.recipe-row__text {
    display: grid;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.recipe-row__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.recipe-row__title:hover {
    color: var(--terracotta-dark);
    text-decoration: underline;
}

.thumb {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
}

.thumb--empty {
    display: block;
    background: var(--sun-soft);
}

.rank {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--sun-soft);
    font-family: var(--font-display);
    font-weight: 700;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    background: var(--cream);
    font-size: 0.8rem;
    font-weight: 800;
}

.badge--community {
    border-color: var(--forest);
    background: var(--mint);
    color: var(--forest);
}

.badge--featured {
    background: var(--marker);
}

.badge--danger {
    border-color: var(--error);
    background: var(--error-soft);
    color: var(--error);
}

.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.detail {
    display: grid;
    gap: 20px;
    align-items: start;
}

.detail__side {
    display: grid;
    gap: 20px;
}

.detail__photo {
    width: 100%;
    max-height: 360px;
    border-radius: 16px;
    object-fit: cover;
}

.detail h2 {
    margin: 8px 0 0;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.facts li {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--sun-soft);
    font-weight: 700;
}

.ingredients,
.steps {
    display: grid;
    gap: 6px;
    padding-left: 22px;
}

.facts-list {
    display: grid;
    gap: 10px;
}

.facts-list dt {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.facts-list dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.card--alert {
    border-color: var(--error);
    box-shadow: 4px 4px 0 var(--error);
}

.reports {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.reports li {
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--terracotta-soft);
    overflow-wrap: anywhere;
}

.reports p {
    margin: 4px 0 0;
}

/* A decision asked twice, without script: the summary unfolds the real button. */
.confirm summary {
    list-style: none;
}

.confirm summary::-webkit-details-marker {
    display: none;
}

.confirm[open] summary {
    opacity: 0.6;
}

.confirm__panel {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 12px 14px;
    border: 2px solid var(--error);
    border-radius: 14px;
    background: var(--error-soft);
}

.confirm__panel p {
    margin: 0;
    font-weight: 700;
    color: var(--error);
}

.form-grid {
    display: grid;
    gap: 16px;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    display: grid;
    gap: 2px;
    padding: 14px;
    border: 2px solid var(--ink);
    border-radius: 16px;
    background: var(--sun-soft);
}

.tile dt {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tile dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ------------------------------------------------------------ users, messages */

.nav__count {
    margin-left: 8px;
    min-width: 24px;
    padding: 0 7px;
    border-radius: var(--radius-pill);
    background: var(--marker);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
    text-align: center;
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    color: var(--forest);
    font-family: var(--font-display);
    font-weight: 700;
}

.link-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 18px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-pill);
    background: var(--card);
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: none;
}

.tab[aria-current="page"] {
    background: var(--terracotta-dark);
    color: var(--card);
}

.message--unread {
    border-color: var(--terracotta-dark);
    box-shadow: 4px 4px 0 var(--terracotta-dark);
}

.message__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.message__subject {
    margin-left: 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.message__text {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* A notification as the phone shows it. */
.push-preview {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 20px;
    background: var(--sun-soft);
    box-shadow: 0 6px 18px rgba(28, 28, 30, 0.12);
}

.push-preview img {
    flex: none;
    border-radius: 10px;
}

.push-preview p {
    margin: 0;
    overflow-wrap: anywhere;
}

.push-preview__app {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.push-preview__title {
    font-weight: 800;
}

/* ------------------------------------------------------------ dashboard */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Accounts: the hero figure, two meters, two facts. */
.accounts {
    display: grid;
    gap: 24px;
    margin-bottom: 20px;
}

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

.accounts p {
    margin: 0;
}

.hero-figure {
    font-family: var(--font);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.05;
}

.accounts__meters {
    display: grid;
    gap: 18px;
}

.meter {
    display: grid;
    gap: 6px;
}

.meter__label {
    font-weight: 700;
}

.meter__bar {
    display: block;
    width: 100%;
    height: 14px;
}

.meter__track {
    fill: var(--terracotta-soft);
}

.meter__fill {
    fill: var(--terracotta);
}

.meter__detail {
    font-size: 0.9rem;
}

.accounts__facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.accounts__facts dt {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.accounts__facts dd {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

/* Columns, one per day. One hue: the brand's; text stays in text colors. */
.charts {
    display: grid;
    gap: 20px;
}

.chart {
    display: grid;
    gap: 12px;
    margin: 0;
}

.chart__head {
    display: grid;
    gap: 2px;
}

.chart__head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.chart__head p {
    margin: 0;
}

.chart__total {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.chart__total span {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.delta {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.delta--up {
    color: var(--forest);
}

.delta--down {
    color: var(--error);
}

.delta__period {
    font-weight: 400;
    color: var(--text-secondary);
}

.chart svg {
    width: 100%;
    height: auto;
}

.chart__grid {
    stroke: var(--border);
    stroke-width: 1;
}

.chart__grid--base {
    stroke: var(--text-secondary);
}

/* In units of the viewBox (600 wide), drawn about 75 % on a card. */
.chart__tick {
    font-size: 17px;
    fill: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.chart__label {
    font-size: 18px;
    font-weight: 800;
    fill: var(--text-primary);
}

.chart__empty {
    font-size: 19px;
    fill: var(--text-secondary);
}

.chart__hit {
    fill: transparent;
}

.chart__bar {
    fill: var(--terracotta);
}

.chart__day:hover .chart__hit {
    fill: var(--terracotta-soft);
}

.chart__day:hover .chart__bar {
    fill: var(--terracotta-dark);
}

.chart__table summary {
    font-weight: 700;
    color: var(--terracotta-dark);
    cursor: pointer;
}

.stats {
    padding: 8px 0;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 20px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.table th[scope="row"],
.table thead th:first-child {
    text-align: left;
}

.table thead th {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.table td {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.table__section th {
    padding-top: 18px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--terracotta-dark);
    border-bottom: 2px solid var(--ink);
}

.table__hint {
    display: block;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.stats {
    margin-top: 20px;
}

.stats__title {
    margin: 12px 20px 4px;
    font-size: 1.2rem;
}

.stats__empty {
    margin: 8px 20px 16px;
}

.unpriced {
    margin-left: 2px;
    color: var(--error);
    cursor: help;
}

.tile .tile__note {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.journal td,
.journal th {
    text-align: left;
}

.journal td {
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.table--compact {
    margin-top: 8px;
}

.table--compact th,
.table--compact td {
    padding: 4px 8px;
    font-size: 0.95rem;
}

/* ------------------------------------------------------------ sign-in */

.guest {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.guest__box {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 440px;
}

.guest__brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.guest__brand img {
    border-radius: 22px;
}

.form {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1100px) {
    .detail {
        grid-template-columns: 1.5fr 1fr;
    }

    .charts {
        grid-template-columns: repeat(2, 1fr);
    }

    .accounts {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 40px;
    }
}

@media (min-width: 900px) {
    .admin {
        grid-template-columns: var(--sidebar) 1fr;
    }

    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        grid-template-rows: auto 1fr auto;
        padding: 24px 16px;
        border-bottom: 0;
        border-right: 2px solid var(--ink);
    }

    .nav {
        flex-direction: column;
    }

    .sidebar__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .content {
        padding: 40px 40px 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
