:root { color-scheme: light; }
html { background: #f4f1ea; }
body { margin: 0; font: 14px/1.35 system-ui, sans-serif; background: #f4f1ea; color: #1c1915; }
.top { display: flex; gap: .75rem; align-items: center; padding: .4rem .6rem; background: #1c1915; color: #f4f1ea; }
.top a { color: inherit; text-decoration: none; }
.top nav { display: flex; gap: .8rem; }
.brand { font-weight: 700; margin-right: .4rem; }
.find { flex: 1; }
.find input, .filters input, .filters select { width: 100%; font: inherit; padding: .25rem .4rem; border: 1px solid #c8bfb0; background: #fff; }
.filters button { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .2rem .45rem; cursor: pointer; }
main { padding: .5rem .6rem 2rem; }
h1 { font-size: 1.35rem; margin: .2rem 0 .4rem; }
h2 { font-size: 1rem; margin: 1rem 0 .3rem; }
.recipe-title { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: .2rem 0 .4rem; }
.recipe-title h1 { margin: 0; }
.bookmark-toggle { display: inline-flex; margin: 0; }
.bookmark-button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: .15rem; border: 0; background: transparent; color: #c2410c; cursor: pointer; text-decoration: none; }
.bookmark-button:hover { color: #9a3412; }
.bookmark-button:focus-visible { outline: 2px solid #6d3b12; outline-offset: 2px; border-radius: .2rem; }
.bookmark-icon { display: block; width: 1.55rem; height: 1.55rem; }
a { color: #6d3b12; }
.muted, .note { color: #5e564c; }
.lead { max-width: 70rem; margin: 0 0 1rem; }
.stat { background: #fff; border: 1px solid #e2d9cc; padding: .6rem; }
.book-card { display: flex; flex-direction: column; gap: .2rem; background: #fff; border: 1px solid #e2d9cc; padding: .4rem; color: inherit; }
.cover, .book-card img, main img { max-width: 280px; height: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: .4rem 0 1rem; }
th, td { border-bottom: 1px solid #e2d9cc; padding: .28rem .4rem; text-align: left; vertical-align: top; }
th { font-size: .75rem; letter-spacing: .02em; text-transform: uppercase; color: #5e564c; }
table th.num,
table td.num { text-align: right; font-variant-numeric: tabular-nums; }
table td.additions { max-width: 26rem; }
.bp { font-weight: 650; }
.formula td:nth-child(2), .formula th:nth-child(2) { width: 8rem; }
.filters { margin: .4rem 0 .8rem; }
.filters .cell { display: flex; flex-direction: column; gap: .15rem; font-size: .75rem; }
.grid { margin: .9rem 0 1rem; }
.meta { margin: .9rem 0 1rem; }
.meta .cell { display: flex; align-items: baseline; gap: 1.5rem; background: #fff; border: 1px solid #e2d9cc; padding: .5rem .7rem; }
.meta .cell .muted { flex: 0 0 auto; }
.original { font-style: italic; }
.crumbs { margin: 0; }
ul.facts { padding-left: 1rem; }
ul.facts li { margin: .3rem 0; }
.fact-line { display: block; }
.fact-detail { max-width: 70rem; color: #5e564c; font-size: .86rem; }
.fact-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0 .8rem; }
.fact-filters input { flex: 1 1 18rem; }
.fact-filters select { width: auto; }
.fact-filters input, .fact-filters select { font: inherit; padding: .25rem .4rem; border: 1px solid #c8bfb0; background: #fff; }
.fact-filters button { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .2rem .45rem; cursor: pointer; }
.figures { display: flex; flex-wrap: wrap; gap: .6rem; margin: .6rem 0 1rem; }
.figures figure { margin: 0; max-width: 280px; background: #fff; border: 1px solid #e2d9cc; padding: .35rem; }
.figures img { display: block; max-width: 100%; height: auto; margin: 0 0 .25rem; }
.figures figcaption { font-size: .8rem; color: #5e564c; }
.fact-tag {
    display: inline-block;
    margin-left: .75rem;
    padding: .05rem .5rem;
    border: 1px solid #d3c2a9;
    border-radius: 1rem;
    background: #efe6d8;
    color: #6d3b12;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: .06rem;
}
mark { background: #ffd76a; color: inherit; padding: 0 .1em; border-radius: .15rem; }
ul.citations { list-style: none; padding-left: 0; margin: .6rem 0; max-width: 70rem; }
li.citation { margin: 0 0 1.1rem; }
li.citation details.context { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #ddd2c1; }
li.citation details.context summary { cursor: pointer; color: #6d3b12; }
li.citation details.context p { margin: .55rem 0 0; padding: .6rem .8rem; background: #fff; border-left: 3px solid #c9b79a; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap table { margin: .4rem 0 1rem; }
ol { padding-inline-start: 1.6rem; margin: .25rem 0 .8rem; }
ol li { margin: .35rem 0; }
.calculator-note { margin: .3rem 0 .6rem; }
.calc-table { margin: 0 0 1.1rem; }
.calculator-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .5rem 0 .6rem; }
.calc-reset { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .2rem .55rem; cursor: pointer; }
.calc-reset:hover { background: #e8ddcd; border-color: #b9aa95; color: #1c1915; }
.calc-scale { color: #5e564c; }
.calc-input { width: 7rem; text-align: right; font: inherit; font-variant-numeric: tabular-nums; padding: .15rem .3rem; border: 1px solid #c8bfb0; background: #fff; }
.calc-input:focus { outline: 2px solid #6d3b12; outline-offset: 1px; }
.calc-input.is-reference { border-color: #b8860b; background: #fff4d6; box-shadow: inset 0 0 0 1px #d9a441; }
.calc-input.is-pending, .calc-scale.is-pending { color: #8a8176; font-style: italic; }
.calc-cell { min-width: 8.5rem; }
.calc-original { display: block; font-size: .68rem; line-height: 1.2; color: #8a8176; font-weight: 400; }
.calc-total td { border-top: 2px solid #1c1915; border-bottom: 0; background: #efe6d8; font-weight: 700; }

.starter-inputs .cell { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; background: #fff; border: 1px solid #e2d9cc; padding: .6rem .8rem; }
.starter-icon-cell { display: flex; align-items: center; justify-content: center; align-self: stretch; }
.starter-icon-cell .starter-icon { width: 3rem; height: 3rem; }
.starter-field-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.starter-label { font-weight: 650; }
.starter-icon { display: block; flex: 0 0 auto; }
.starter-control { display: flex; align-items: baseline; gap: .35rem; min-width: 0; }
.starter-control input { flex: 1 1 auto; width: 100%; min-width: 0; font: inherit; font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; padding: .3rem .45rem; border: 1px solid #c8bfb0; background: #fff; }
.starter-unit { color: var(--starter-color); font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.starter-control input:focus { outline: 2px solid #6d3b12; outline-offset: 1px; }
.starter-help { font-size: .78rem; }
.starter-control input.is-invalid { color: #dc2626; border-color: #dc2626; }
.starter-control input.is-invalid:focus { outline-color: #dc2626; }
.starter-control input.is-invalid ~ .starter-unit { color: #dc2626; }
.starter-field-d { --starter-color: #15803d; background: #f0fdf4; border-color: #86efac; }
.starter-field-k { --starter-color: #b45309; }
.starter-field-l { --starter-color: #b91c1c; }
.starter-field-d .starter-label, .starter-field-k .starter-label, .starter-field-l .starter-label { color: var(--starter-color); }
.starter-field-d .starter-icon, .starter-field-k .starter-icon, .starter-field-l .starter-icon { color: var(--starter-color); }
.starter-field-d input, .starter-field-k input, .starter-field-l input { color: var(--starter-color); }
.starter-field-d input { border-color: var(--starter-color); }
.starter-field-d input:focus { outline-color: var(--starter-color); }
.starter-field-d, .starter-box-d { --glow-rgb: 21, 128, 61; }
.starter-field-k, .starter-box-flour, .starter-box-water { --glow-rgb: 180, 83, 9; }
.starter-field-l, .starter-box-loss { --glow-rgb: 185, 28, 28; }
.starter-field.is-glowing { background: rgba(var(--glow-rgb), 0.10); animation: starter-glow 1.6s ease-in-out infinite; }
.starter-box.is-glowing rect { fill: rgba(var(--glow-rgb), 0.10); animation: starter-box-glow 1.6s ease-in-out infinite; }
@keyframes starter-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--glow-rgb), 0); }
    50% { box-shadow: 0 0 14px 4px rgba(var(--glow-rgb), 0.45); }
}
@keyframes starter-box-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(var(--glow-rgb), 0)); }
    50% { filter: drop-shadow(0 0 6px rgba(var(--glow-rgb), 0.55)); }
}
.starter-diagrams { margin: .8rem 0; }
.starter-diagram { display: block; width: 100%; height: auto; margin: 0 auto; }
.starter-diagram-wide { max-width: 840px; }
.starter-diagram-narrow { display: none; max-width: 480px; }
.starter-diagram text { font-family: system-ui, sans-serif; fill: #1c1915; }
.starter-diagram .starter-box rect { stroke-width: 1.25; }
.starter-box-grey rect { fill: #fff; stroke: #6b7280; }
.starter-box-grey text { fill: #6b7280; }
.starter-box-grey .starter-box-icon { color: #6b7280; }
.starter-box-d rect { fill: #fff; stroke: #15803d; }
.starter-box-d text { fill: #15803d; }
.starter-box-d .starter-box-icon { color: #15803d; }
.starter-box-d .starter-box-title { font-size: 13px; }
.starter-box-flour rect { fill: #fff; stroke: #b45309; }
.starter-box-flour text { fill: #b45309; }
.starter-box-water rect { fill: #fff; stroke: #b45309; }
.starter-box-water text { fill: #b45309; }
.starter-box-loss rect { fill: #fff; stroke: #b91c1c; }
.starter-box-loss text { fill: #b91c1c; }
.starter-box-title { font-size: 14px; font-weight: 650; }
.starter-box-subtitle { font-size: 11px; }
.starter-box-value { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.starter-arrow-line { fill: none; stroke: #6b7280; stroke-width: 1.5; }
.starter-arrow-add { fill: none; stroke: #6b7280; stroke-width: 1.5; stroke-dasharray: 6 5; }
.starter-arrow-cycle { fill: none; stroke: #6b7280; stroke-width: 1.5; stroke-dasharray: 7 5; }
.starter-arrow-loss { fill: none; stroke: #6b7280; stroke-width: 1.5; stroke-dasharray: 6 5; }
.starter-plus { font-size: 22px; font-weight: 750; }
.starter-diagram .starter-plus { fill: #6b7280; }
.starter-diagram .starter-cycle-label { fill: #6b7280; font-size: 11px; font-weight: 650; }
.starter-diagram .is-pending { fill: #8a8176; font-style: italic; }
.starter-d-wrap { display: flex; align-items: center; justify-content: flex-start; gap: .35rem; width: 100%; height: 100%; }
.starter-d-input { width: 3ch; padding: 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; color: #15803d; font: inherit; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; }
.starter-d-input:hover, .starter-d-input:focus { border-bottom-color: currentColor; outline: none; }
.starter-d-input.is-invalid { color: #dc2626; border-bottom-color: #dc2626; }
.starter-d-input.is-invalid + .starter-d-unit { color: #dc2626; }
.starter-d-unit { color: #15803d; font-size: 19px; font-weight: 700; }
.starter-diagram .is-invalid-value { fill: #dc2626; }
.starter-formula { margin: 1.2rem 0 .5rem; padding: .8rem 1rem; border: 1px solid #e2d9cc; border-radius: .6rem; background: #fff; }
.starter-formula-head { display: flex; align-items: center; gap: .75rem; }
.starter-formula-head h2 { margin: 0; font-size: 1rem; }
.starter-copy { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .2rem .55rem; cursor: pointer; }
.starter-copy:hover { background: #e8ddcd; border-color: #b9aa95; color: #1c1915; }
.starter-formula-text { margin: .6rem 0 0; padding: 0; white-space: pre-wrap; font: .95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1c1915; }
.starter-copy-status { margin-left: auto; min-height: 1.1em; color: #14532d; font-size: .8rem; }
.starter-diagram-narrow .starter-box-title { font-size: 15px; }
.starter-diagram-narrow .starter-box-d .starter-box-title { font-size: 13px; }
.starter-diagram-narrow .starter-box-subtitle { font-size: 12px; }
.starter-diagram-narrow .starter-box-value { font-size: 20px; }
.starter-diagram-narrow .starter-d-input, .starter-diagram-narrow .starter-d-unit { font-size: 20px; }
.starter-diagram-narrow .starter-plus { font-size: 24px; }
.starter-diagram-narrow .starter-cycle-label { font-size: 12px; }
@media (max-width: 760px) {
    .starter-diagram-wide { display: none; }
    .starter-diagram-narrow { display: block; }
}

/* Accounts, businesses, clients, and the shared comment thread. */
.main-nav { align-items: center; flex-wrap: wrap; }
.user-menu { position: relative; }
.user-menu summary,
.user-menu-trigger { display: inline-flex; align-items: center; gap: .4rem; list-style: none; border: 0; border-radius: .35rem; background: none; padding: .2rem .35rem .2rem .25rem; color: #d8cfc2; font: inherit; cursor: pointer; }
.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #f4f1ea; }
.user-menu-trigger:focus-visible { outline: 2px solid #d8cfc2; outline-offset: 2px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-avatar { display: inline-flex; align-items: center; justify-content: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #6d3b12; color: #f4f1ea; font-size: .68rem; font-weight: 700; line-height: 1; }
.user-menu-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu summary svg,
.user-menu-chevron { width: .72rem; height: .72rem; transition: transform .15s ease; }
.user-menu-chevron.is-open { transform: rotate(180deg); }
.user-menu-panel { --user-menu-inline: .7rem; position: absolute; right: 0; top: calc(100% + .45rem); z-index: 20; min-width: 12rem; max-width: calc(100vw - 1rem); padding: .35rem; background: #fffdfa; color: #1c1915; border: 1px solid #d8cec0; border-radius: .5rem; box-shadow: 0 12px 32px rgba(28, 25, 21, .24); }
.user-menu-section + .user-menu-section { margin-top: .2rem; padding-top: .2rem; border-top: 1px solid #ece3d6; }
.user-menu-label { display: block; padding: .35rem var(--user-menu-inline) .15rem; color: #8a7d6b; font-size: .63rem; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.user-menu-panel a,
.user-menu-panel button { display: flex; align-items: center; gap: .55rem; width: 100%; box-sizing: border-box; padding: .42rem var(--user-menu-inline); border: 0; border-radius: .35rem; background: none; color: #2c261f; font: inherit; line-height: 1.25; text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.user-menu-panel a:hover,
.user-menu-panel button:hover { background: #f0e7d8; color: #5b300e; }
.user-menu-panel a:focus-visible,
.user-menu-panel button:focus-visible { outline: 2px solid #b9aa95; outline-offset: -2px; background: #f0e7d8; }
.user-menu-panel form { margin: 0; }
.user-menu-icon { width: .95rem; height: .95rem; flex: 0 0 auto; color: #8a7d6b; }
.user-menu-panel a:hover .user-menu-icon { color: #6d3b12; }
.user-menu-logout { margin-top: .25rem; padding-top: .25rem; border-top: 1px solid #ece3d6; }
.user-menu-logout button { color: #7a3b22; }
.user-menu-logout .user-menu-icon { color: #9a5a3f; }
@media (prefers-reduced-motion: reduce) {
    .user-menu-chevron { transition: none; }
    .user-menu-panel a,
    .user-menu-panel button { transition: none; }
}
.subnav { display: flex; flex-wrap: wrap; gap: .7rem; align-items: baseline; padding: .3rem .6rem; background: #efe6d8; border-bottom: 1px solid #e2d9cc; }
.subnav a { color: #6d3b12; }
.badge { display: inline-block; padding: .05rem .45rem; border: 1px solid #d3c2a9; border-radius: 1rem; background: #efe6d8; color: #6d3b12; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; vertical-align: .06rem; }
.page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.page-heading h1 { margin: 0; }
.info-hint { position: relative; display: inline-block; }
.info-hint summary,
.info-hint-trigger { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border: 1px solid #b9aa95; border-radius: 50%; background: #fff; color: #6d3b12; font: inherit; font-size: .72rem; font-weight: 700; line-height: 1; padding: 0; list-style: none; cursor: pointer; }
.info-hint summary::-webkit-details-marker { display: none; }
.info-hint > p { position: absolute; z-index: 30; top: 1.5rem; left: 0; width: min(22rem, calc(100vw - 2rem)); margin: 0; padding: .6rem .75rem; background: #1c1915; color: #f4f1ea; border-radius: .35rem; box-shadow: 0 8px 24px rgba(28, 25, 21, .2); }
.multiline { white-space: pre-wrap; }
.account-dialog { width: 28rem; max-width: calc(100vw - 2rem); padding: 1rem 1.1rem; border: 1px solid #e2d9cc; border-radius: .5rem; background: #fff; color: #1c1915; box-shadow: 0 16px 50px rgba(28, 25, 21, .25); }
.account-dialog::backdrop { background: rgba(28, 25, 21, .45); }
.account-dialog h2 { margin-top: 0; }
.account-dialog .account-form { max-width: none; margin-bottom: 0; gap: .6rem; }
.account-dialog .dialog-note { margin: 0 0 .7rem; color: #5e564c; font-size: .85rem; }
.account-dialog .dialog-note strong { color: #1c1915; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .35rem; }
.user-name { display: inline-flex; align-items: center; gap: .35rem; }
.user-icon { width: 1rem; height: 1rem; flex: 0 0 auto; }
.user-icon.is-user { color: #5e564c; }
.user-icon.is-admin { color: #2563eb; }
.user-icon.is-suspended { color: #9ca3af; }
td.businesses { max-width: 18rem; }
@media (max-width: 600px) {
    .account-dialog { width: calc(100vw - 1rem); }
}
.account-form { display: flex; flex-direction: column; gap: .5rem; max-width: 30rem; margin: .8rem 0 1.2rem; }
.account-form label { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; color: #5e564c; }
.account-form input, .account-form textarea, .account-form select, .client-filters input, .client-filters select { font: inherit; padding: .3rem .45rem; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; }
.account-form textarea { resize: vertical; }
.account-form button, .client-filters button, .button-link { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .3rem .6rem; cursor: pointer; text-decoration: none; display: inline-block; }
.account-form button:hover, .client-filters button:hover, .button-link:hover { background: #e8ddcd; border-color: #b9aa95; color: #1c1915; }
.filters button:hover, .fact-filters button:hover { background: #e8ddcd; border-color: #b9aa95; }
.account-form-card, .dashboard-card, .manage-box { background: #fff; border: 1px solid #e2d9cc; padding: .7rem .9rem; }
.profile-card h2 { margin: 0 0 .55rem; padding-bottom: .35rem; border-bottom: 1px solid #e9dfd1; color: #3a2a1b; font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
.compact-form { gap: .35rem; margin: .5rem 0; }
.compact-form input { max-width: 22rem; }
.form-error { color: #8a2410; margin: .2rem 0 .6rem; }
label.has-error input,
label.has-error textarea,
label.has-error select { border-color: #c26a55; }
.toast-stack { position: fixed; top: .75rem; left: 50%; z-index: 1000; display: flex; flex-direction: column; gap: .45rem; width: min(30rem, calc(100vw - 1.5rem)); transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: .6rem; padding: .55rem .7rem; border: 1px solid #d8cec0; border-radius: .45rem; background: #fff; color: #1c1915; box-shadow: 0 10px 28px rgba(28, 25, 21, .22); line-height: 1.35; pointer-events: auto; }
.toast-message { flex: 1; overflow-wrap: anywhere; }
.toast-dismiss { flex: 0 0 auto; padding: 0 .1rem; border: 0; background: none; color: inherit; font: inherit; font-size: 1.1rem; line-height: 1; opacity: .6; cursor: pointer; }
.toast-dismiss:hover,
.toast-dismiss:focus-visible { opacity: 1; }
.toast-success { border-color: #b7d7c1; background: #f0f9f3; color: #14532d; }
.toast-error { border-color: #e4b9ae; background: #fff4f1; color: #8a2410; }
.toast-warning { border-color: #e8d39b; background: #fffaf0; color: #7a4b00; }
.toast-info { border-color: #c9d4e0; background: #f4f8fc; color: #26445f; }
.inline-form { display: inline; margin: 0 0 0 .5rem; }
.inline-form:first-child { margin-left: 0; }
.inline-details { display: inline-block; margin-left: .5rem; }
.inline-details summary { cursor: pointer; color: #6d3b12; }
.link-button { font: inherit; border: 0; background: none; color: #6d3b12; padding: 0; cursor: pointer; text-decoration: underline; }
.link-button.danger { color: #8a2410; }
td.actions { white-space: nowrap; }
.reset-password-button { margin-left: .5rem; }
.plain-list { list-style: none; padding-left: 0; margin: .4rem 0; }
.plain-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; padding: .25rem 0; border-bottom: 1px solid #eee6da; }
.member-list li { justify-content: space-between; }
.client-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .5rem 0 .8rem; }
.client-filters input { flex: 1 1 20rem; }
.client-filters select { width: auto; }
.comment-thread { margin: .8rem 0 1.2rem; }
.comment-thread-inner { background: #fff; border: 1px solid #e2d9cc; padding: .7rem .9rem; }
.comment-form, .comment-edit-form { display: flex; flex-direction: column; gap: .45rem; margin: 0 0 .8rem; padding-bottom: .7rem; border-bottom: 1px solid #eee6da; }
.comment-edit-form { padding: .6rem; background: #faf7f1; border: 1px solid #e2d9cc; }
.comment-form-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.comment-form label, .comment-edit-form label { display: flex; flex-direction: column; gap: .15rem; font-size: .78rem; color: #5e564c; }
.comment-form input, .comment-form textarea, .comment-form select, .comment-edit-form input, .comment-edit-form textarea { font: inherit; padding: .25rem .4rem; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; }
.comment-form textarea, .comment-edit-form textarea { resize: vertical; }
.comment-form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.comment-form-actions button { font: inherit; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; padding: .25rem .55rem; cursor: pointer; }
.comment-form-actions button:hover:not(:disabled) { background: #e8ddcd; border-color: #b9aa95; color: #1c1915; }
.comment-form-actions button:disabled { opacity: .6; cursor: wait; }
.comment-list { list-style: none; padding-left: 0; margin: .5rem 0 0; }
.comment-item { padding: .5rem 0; border-bottom: 1px solid #eee6da; }
.comment-item:last-child { border-bottom: 0; }
.comment-meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; font-size: .8rem; color: #5e564c; }
.comment-body { margin: .25rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-actions { display: flex; gap: .6rem; }
.comment-history { list-style: none; padding-left: 0; margin: .4rem 0; }
.comment-history-item { padding: .35rem 0; border-bottom: 1px solid #eee6da; }
.comment-history-item:last-child { border-bottom: 0; }
.comment-history-meta { font-size: .8rem; color: #5e564c; }
.comment-history-body { margin: .2rem 0 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .top { flex-wrap: wrap; }
    .main-nav { flex: 1; }
    .user-menu { margin-left: auto; }
    .find { flex-basis: 100%; }
    .account-form { max-width: none; }
}

/* Team dashboards */
.dashboards-top { display: flex; flex-wrap: wrap; gap: .8rem; align-items: baseline; padding: .6rem .8rem; background: #1c1915; color: #f4f1ea; }
.dashboards-top a { color: inherit; text-decoration: none; }
.dashboards-top .brand { font-weight: 700; }
.dash-nav { display: flex; gap: .8rem; }
.dash-nav a { color: #d8cfc2; }
.dashboards-main { padding: .8rem 1rem 3rem; }
.plain-list li .muted { margin-left: .35rem; }
.gallery-group { margin: 1.2rem 0 2rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: .8rem; align-items: start; }
.gallery-card { background: #fff; border: 1px solid #e2d9cc; padding: .7rem .8rem; min-width: 0; }
.gallery-card.is-wide { grid-column: 1 / -1; }
.gallery-card h3 { margin: 0 0 .2rem; font-size: .95rem; }
.gallery-card p { margin: .2rem 0 .6rem; font-size: .8rem; }
.gallery-preview { padding: .6rem 0 0; border-top: 1px solid #eee6da; overflow-x: auto; }
.gallery-preview .top { margin: -.6rem 0 .6rem; }
.gallery-preview .gallery-grid { grid-template-columns: 1fr; }

