:root {
    color-scheme: light;
    --page-bg: #fdfcf9;
    --button-bg: #eadfce;
    --button-bg-hover: #dfcfb7;
    --button-border: #c8bfb0;
    --button-border-hover: #b6a58e;
    --button-shadow: 0 1px 1px rgba(28, 25, 21, .14);
    --button-shadow-hover: 0 1px 2px rgba(28, 25, 21, .17);
    --me-color: #1d4ed8;
    --me-bg: #e8f0fe;
    --me-border: #a9c1ef;
    --link-color: #a35a17;
    --link-hover-color: #c2410c;
    --chat-bg: #ece3d2;
    --chat-dot: rgba(109, 59, 18, .055);
    --chat-bubble: #fffdf9;
    --private-bg: #f4f3f0;
    --private-text: #5e5a54;
    --admin-bg: #eef1f8;
    --admin-text: #3b4a63;
    --admin-border: #b9c4da;
    --admin-accent: #2563eb;
    --send-bg: #2f9e44;
    --send-bg-hover: #278a3a;
    --widget-shadow: 0 1px 2px rgba(28, 25, 21, .06), 0 2px 6px rgba(28, 25, 21, .04);
    --widget-log-bg: #edf2f6;
    --widget-log-accent: #45617a;
    --widget-log-title: #2f4354;
    --widget-danger-bg: #fdeee9;
    --widget-danger-accent: #8a2410;
    --widget-danger-title: #8a2410;
}
html { background: var(--page-bg); overflow-y: scroll; scrollbar-gutter: stable; }
body { margin: 0; font: 14px/1.35 system-ui, sans-serif; background: var(--page-bg); color: #1c1915; overflow-wrap: break-word; }
.top { display: flex; gap: .75rem; align-items: center; padding: .4rem .6rem; background: #1c1915; color: #f4f1ea; position: relative; }
.top a { color: inherit; text-decoration: none; }
.top nav { display: flex; gap: .8rem; }
.main-nav a { display: inline-flex; align-items: center; gap: .3rem; }
.nav-icon { width: 1rem; height: 1rem; flex: 0 0 auto; opacity: .7; }
.brand { font-weight: 700; margin-right: .4rem; }
.top.is-dev { padding-right: 1.65rem; }
.dev-ribbon { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; width: 1.15rem; background: #b4462f; color: #fff; pointer-events: none; }
.dev-ribbon span { writing-mode: vertical-rl; text-orientation: upright; font-size: .55rem; font-weight: 700; letter-spacing: .1em; line-height: 1; }
.shop-header.is-dev .shop-header-inner { padding-right: 2.65rem; }
.find { position: relative; flex: 1 1 auto; max-width: 28rem; margin-left: auto; }
.find input, .filters input, .filters select { width: 100%; font: inherit; padding: .25rem .4rem; border: 1px solid #c8bfb0; background: #fff; }
.find .virtual-dropdown-field { display: flex; align-items: stretch; }
.find .virtual-dropdown-field .virtual-dropdown-control { flex: 1 1 auto; width: auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* The action slot holds the admin toggle. It stretches to the field so the
   button inside fills the input's full height instead of its icon height. */
.find .virtual-dropdown-field .virtual-dropdown-action { display: flex; align-items: stretch; }
.find-admin-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 1.9rem; padding: 0; border: 1px solid #c8bfb0; border-left: 0; border-radius: 0 .2rem .2rem 0; background: #fff; color: #8a7d6b; cursor: pointer; }
.find-admin-toggle:hover { border-color: var(--admin-border); background: var(--admin-bg); color: var(--admin-text); }
.find-admin-toggle.is-active { border-color: var(--admin-border); background: var(--admin-bg); color: var(--admin-text); }
.find-admin-icon { width: 1rem; height: 1rem; }
.find-admin-toggle.is-active .find-admin-icon { color: var(--admin-accent); }
.find-admin-toggle.is-active .find-admin-icon path { fill: currentColor; }
.find.is-admin-search .virtual-dropdown-control { border-color: var(--admin-border); background: var(--admin-bg); color: var(--admin-text); }
.find.is-admin-search .virtual-dropdown-control::placeholder { color: #7c88a0; }
.find.is-admin-search .virtual-dropdown-control:focus { outline-color: var(--admin-border); }
.find.is-admin-search .virtual-dropdown-status { background: var(--admin-bg); color: var(--admin-text); border-bottom-color: var(--admin-border); }
.admin-search-word { color: var(--admin-accent); font-weight: 700; }
.filters button { font: inherit; border: 1px solid var(--button-border); background: var(--button-bg); color: #2c261f; padding: .2rem .45rem; box-shadow: var(--button-shadow); cursor: pointer; }
main { padding: .5rem .6rem 2rem; }
h1 { font-size: 1.55rem; font-weight: 600; margin: .2rem 0 .4rem; }
h2 { font-size: 1.05rem; font-weight: 700; color: #5e564c; 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: #d97706; cursor: pointer; text-decoration: none; }
.bookmark-button:hover { color: #b45309; }
.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: var(--link-color); }
a:hover,
a:focus-visible { color: var(--link-hover-color); }
.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; }
.book-card-cover { display: flex; justify-content: center; }
.book-card img { display: block; width: auto; max-width: 100%; max-height: 10rem; height: auto; object-fit: contain; }
.book-card-title { color: inherit; }
.book-card-recipes { margin-top: .15rem; font-size: .86rem; }
main img { max-width: 100%; height: auto; }
.book-detail { display: flex; gap: 1rem; align-items: flex-start; margin: .4rem 0 1rem; }
.book-detail-cover { flex: 0 0 9rem; max-width: 9rem; }
.book-detail-cover img { display: block; width: 100%; max-width: 100%; height: auto; }
.book-detail-body { flex: 1 1 auto; min-width: 0; }
.book-detail-body h1 { margin-top: 0; }
.book-detail-body p { margin: .35rem 0; }
.book-buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .4rem 0 .6rem; }
.book-buy-row .book-buy-link { font-weight: 650; }
.book-buy-note { font-size: .85rem; }
.book-summary a { font-weight: 600; }
.book-admin-title { display: flex; flex-direction: column; gap: .1rem; }
.book-admin-subtitle { font-size: .8rem; }
.book-admin-cover { margin: 0 0 .8rem; }
.book-admin-cover img { display: block; width: auto; max-width: 8rem; height: auto; }
.affiliate-link { margin: 0 0 .55rem; overflow-wrap: anywhere; }
.affiliate-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.affiliate-link-actions .button-link,
.affiliate-widget .widget-body > .button-link { padding: .12rem .45rem; font-size: .8rem; }
.book-sections { padding-left: 0; margin: .4rem 0 1rem; }
.book-sections li { display: flex; flex-wrap: wrap; gap: .4rem; margin: .15rem 0; }
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; }
thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: inset 0 -1px 0 #e2d9cc; }
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; }
.filters label.cell { font-weight: 600; }
.filters label.cell input, .filters label.cell select { font-weight: 400; }
.grid { margin: .9rem 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(var(--bulma-grid-column-min), 100%), 1fr)); }
.grid.is-auto-fill { grid-template-columns: repeat(auto-fill, minmax(min(var(--bulma-grid-column-min), 100%), 1fr)); }
@media (min-width: 761px) {
    main { padding: 1rem 1.5rem 2.5rem; }
    .grid { gap: 1.25rem; margin: 1.25rem 0 1.5rem; }
}
.detail-layout { display: block; }
.detail-heading { min-width: 0; }
.detail-heading > .page-heading { margin-bottom: 0; }
.detail-main { min-width: 0; }
.detail-aside { min-width: 0; margin-top: 1.25rem; }
@media (min-width: 1024px) {
    .detail-layout.has-aside {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem);
        gap: 1.5rem;
        align-items: start;
    }
    .detail-layout.has-aside.has-heading { row-gap: 1.25rem; }
    .detail-layout.has-aside > .detail-heading { grid-column: 1 / -1; }
    /* The first block in each column starts on the same line under the heading. */
    .detail-layout.has-aside > .detail-main > :first-child { margin-top: 0; }
    .detail-aside { margin-top: 0; position: sticky; top: .75rem; }
    /* The recipe editor's Save widget has a stronger shadow and needs more air
       between the form column and the right pane than other detail pages. */
    .detail-layout.recipe-editor-layout.has-aside { column-gap: 3rem; }
}
/* Detail widgets: a tinted block with the icon and title inside, no border,
   one shared barely visible shadow, and compact controls. */
.widget { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "icon title action helper" "body body body body"; align-items: center; row-gap: .45rem; box-sizing: border-box; min-width: 0; padding: .65rem .8rem .7rem; border: 0; border-radius: .8rem; box-shadow: var(--widget-shadow); color: #1c1915; }
.widget-icon { grid-area: icon; display: block; width: 1rem; height: 1rem; flex: 0 0 auto; color: var(--widget-accent, #6d3b12); }
.widget-title { grid-area: title; margin: 0 0 0 .4rem; padding: 0; border: 0; background: none; color: var(--widget-title-color, #3a2a1b); font-size: .9rem; font-weight: 700; letter-spacing: .02em; line-height: 1.2; }
.widget-action { grid-area: action; justify-self: end; margin-left: .5rem; }
.widget-helper { grid-area: helper; justify-self: end; margin-left: .5rem; color: #8a7d6b; font-size: .7rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.widget-body { grid-area: body; min-width: 0; align-self: stretch; }
.widget-body > :first-child { margin-top: 0; }
.widget-body > :last-child { margin-bottom: 0; }
/* A widget without a body, such as the collapsed mobile comment panel, has no
   second grid row to separate. Without this, the body row gap and the extra
   bottom padding would leave the one-line content sitting high in the box. */
.widget--no-body { grid-template-areas: "icon title action helper"; row-gap: 0; padding-top: .65rem; padding-bottom: .65rem; }
.widget--comments { --widget-accent: #6d3b12; --widget-title-color: #3a2a1b; background-color: var(--chat-bg); background-image: radial-gradient(circle at 25% 25%, var(--chat-dot) 0 1.2px, transparent 1.6px); background-size: 26px 26px; }
.widget--log { --widget-accent: var(--widget-log-accent); --widget-title-color: var(--widget-log-title); background: var(--widget-log-bg); }
.widget--danger { --widget-accent: var(--widget-danger-accent); --widget-title-color: var(--widget-danger-title); background: var(--widget-danger-bg); }
.widget--formula { --widget-accent: #6d3b12; --widget-title-color: #4b2a10; background: #f7f1e7; }
.widget .widget-body > .button-link,
.widget .widget-body > .inline > .button-link,
.widget .widget-body > button,
.widget .widget-action .button-link { padding: .12rem .45rem; font-size: .8rem; }
.detail-section { margin: 1.25rem 0 1.5rem; }
.detail-section > h2 { margin: 0 0 .35rem; color: #3a2a1b; font-size: 1.05rem; }
.detail-table { display: grid; grid-template-columns: minmax(4.5rem, max-content) minmax(0, 1fr); column-gap: 1.5rem; row-gap: .32rem; margin: .35rem 0 .6rem; }
.detail-table dt,
.detail-table dd { min-width: 0; margin: 0; }
.detail-table dt { color: #5e564c; }
.detail-table dd { text-align: left; }
.detail-table dd.multiline { white-space: pre-wrap; }
.detail-placeholder { color: #8a7d6b; font-style: italic; }
.detail-value-action { display: inline-flex; flex-wrap: wrap; gap: .45rem; align-items: baseline; }
.detail-users { display: inline-flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; }
.original { font-style: italic; }
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 var(--button-border); background: var(--button-bg); color: #2c261f; padding: .2rem .45rem; box-shadow: var(--button-shadow); 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; border-radius: 0; }
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: var(--link-color); }
li.citation details.context summary:hover { color: var(--link-hover-color); }
li.citation details.context p { margin: .55rem 0 0; padding: .6rem .8rem; background: #fff; border-left: 3px solid #c9b79a; }
.table-wrap { max-width: 100%; }
.table-wrap table { margin: .4rem 0 1rem; }
.order-lines-table { width: auto; max-width: 100%; }
.table-empty { 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, .calc-starter { font: inherit; font-size: .78rem; border: 1px solid var(--button-border); background: var(--button-bg); color: #2c261f; padding: .12rem .42rem; box-shadow: var(--button-shadow); cursor: pointer; }
.calc-reset:hover, .calc-starter:hover { background: var(--button-bg-hover); border-color: var(--button-border-hover); color: #1c1915; box-shadow: var(--button-shadow-hover); }
.calc-table.is-wizard-active { outline: 2px solid #d9a441; outline-offset: .3rem; }
.calc-table.is-wizard-active .table-wrap { --glow-rgb: 217, 164, 65; --starter-glow-blur: 12px; --starter-glow-alpha: .55; border-radius: .4rem; animation: starter-glow 1.6s ease-in-out infinite; }
.calc-wizard-mark { color: #6d3b12; font-size: .72rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.calc-table.is-wizard-active tr.is-wizard-selectable { cursor: pointer; }
.calc-table.is-wizard-active tr.is-wizard-selectable:hover td { border-top: 1px dashed #6d3b12; border-bottom: 1px dashed #6d3b12; }
.calc-table.is-wizard-active tr.is-wizard-selectable:hover td:first-child { border-left: 1px dashed #6d3b12; }
.calc-table.is-wizard-active tr.is-wizard-selectable:hover td:last-child { border-right: 1px dashed #6d3b12; }
tr.wizard-row-flour td { background: #fffbeb; }
tr.wizard-row-flour td:first-child { box-shadow: inset 3px 0 0 #a16207; }
tr.wizard-row-water td { background: #f0f9ff; }
tr.wizard-row-water td:first-child { box-shadow: inset 3px 0 0 #0369a1; }
tr.wizard-row-dough td { background: #f0fdf4; }
tr.wizard-row-dough td:first-child { box-shadow: inset 3px 0 0 #15803d; }
.starter-wizard-progress { margin: 0 0 .2rem; color: #8a8176; font-size: .8rem; }
.starter-wizard-question { margin: 0 0 .65rem; color: #4a443c; font-weight: 650; }
.starter-wizard-steps { list-style: none; margin: 0 0 .9rem; padding: 0; display: block; }
.starter-wizard-steps li { margin: 0; }
.starter-wizard-step { color: #8a8176; font-size: .9rem; line-height: 1.35; }
.starter-wizard-step.is-flour { --wizard-step-color: #a16207; }
.starter-wizard-step.is-water { --wizard-step-color: #0369a1; }
.starter-wizard-step.is-dough { --wizard-step-color: #15803d; }
.starter-wizard-step.is-current { color: #8a8176; font-weight: 650; }
.starter-wizard-step.is-selected { color: var(--wizard-step-color); font-weight: 650; }
.starter-wizard-step.is-current .starter-wizard-marker { color: var(--wizard-step-color); animation: starter-wizard-arrow 1.4s ease-in-out infinite; }
.starter-wizard-step.is-selected .starter-wizard-marker { color: var(--wizard-step-color); }
.starter-wizard-marker { display: inline-block; width: 1rem; margin-right: .15rem; text-align: center; font-weight: 700; }
.starter-wizard-step-number { display: inline-block; min-width: 1.1rem; font-variant-numeric: tabular-nums; }
.starter-wizard-actions { margin-top: .65rem; }
.starter-wizard-cancel { margin-right: auto; }
.starter-wizard-actions button:disabled { opacity: .45; cursor: default; }
@keyframes starter-wizard-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
    .starter-wizard-step.is-current .starter-wizard-marker { animation: none; }
}
@media (max-width: 760px) {
    /* Two steps up on a phone so body copy and the smallest labels stay
       readable. The rem scale grows with the root; the body stays at 18 px. */
    html { font-size: 125%; }
    body { font-size: 18px; line-height: 1.45; }
    .calc-table.is-wizard-active tr.is-wizard-selectable:hover td,
    .calc-table.is-wizard-active tr.is-wizard-selectable:hover td:first-child,
    .calc-table.is-wizard-active tr.is-wizard-selectable:hover td:last-child { border: 0; }
    .calc-table.is-wizard-active tr.is-wizard-selectable:hover { border: 1px dashed #6d3b12; }
}
.account-dialog.starter-wizard-dialog { position: fixed; inset: auto 1rem 1rem auto; width: min(24rem, calc(100vw - 2rem)); height: auto; max-height: min(32rem, calc(100dvh - 2rem)); margin: 0; z-index: 100; }
@media (max-width: 600px) {
    .account-dialog.starter-wizard-dialog { inset: auto .5rem .5rem .5rem; width: auto; height: auto; max-height: min(22rem, calc(100dvh - 1rem)); border: 1px solid #e2d9cc; border-radius: .5rem; }
}
.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; font-variant-numeric: tabular-nums; }
.calc-total td { border-top: 2px solid #1c1915; border-bottom: 0; background: #efe6d8; font-weight: 700; }

.starter { --starter-glow-blur: 12px; --starter-glow-alpha: .55; --starter-ink: #3d342b; --starter-arc-col: 3.6rem; }
.starter-coefficients-frame { display: grid; grid-template-columns: var(--starter-arc-col) minmax(0, 1fr); column-gap: .05rem; max-width: 44rem; margin: 0 auto 1.1rem; }
.starter-coefficients { grid-column: 2; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .2rem .55rem; color: #5f4d38; }
.starter-coefficient { display: inline-flex; align-items: baseline; gap: .3rem; margin: -.1rem -.3rem; padding: .1rem .3rem; border-radius: .3rem; font-size: .82rem; line-height: 1.2; cursor: pointer; }
.starter-coefficient-fixed { --glow-rgb: 245, 158, 11; --substance-ink: #62451f; cursor: pointer; }
.starter-coefficient-fixed:focus-visible { outline: 2px solid #8a6a45; outline-offset: 2px; }
.starter-coefficient-static-number { color: var(--substance-ink); font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.starter-coefficient-label { position: relative; font-weight: 650; line-height: 1.2; }
.starter-coefficient-label .starter-busy-slot { position: absolute; top: 50%; left: 100%; margin-left: .1rem; transform: translateY(-50%); }
.starter-coefficient-fixed .starter-coefficient-label { color: var(--substance-ink); font-size: .84rem; line-height: 1.2; }
.starter-coefficient-separator { color: #a99a89; font-size: .82rem; }
.starter-coefficient-control { position: relative; display: inline-flex; align-items: baseline; gap: .1rem; }
.starter-coefficient-input { width: 3.5ch; padding: 0; border: 0; border-bottom: 1px dashed rgba(80, 60, 35, .45); border-radius: .15rem .15rem 0 0; background: transparent; color: inherit; font: inherit; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; cursor: text; }
.starter-coefficient-input:hover, .starter-coefficient-input:focus { border-bottom-color: currentColor; outline: none; background: rgba(255, 255, 255, .6); }
.starter-coefficient-f .starter-coefficient-label,
.starter-coefficient-f .starter-coefficient-input,
.starter-coefficient-w .starter-coefficient-label,
.starter-coefficient-w .starter-coefficient-input { color: var(--substance-ink); }
.starter-coefficient-f .starter-coefficient-input,
.starter-coefficient-w .starter-coefficient-input { border-bottom-color: var(--substance-ink); }
.starter-coefficient .starter-coefficient-input.is-invalid { color: #b91c1c; border-bottom-color: #b91c1c; }
.starter-coefficient-f { --glow-rgb: 253, 224, 71; --substance-ink: #806028; }
.starter-coefficient-w { --glow-rgb: 14, 165, 233; --substance-ink: #215b72; }
.starter-coefficient.is-glowing { background: rgba(var(--glow-rgb), .18); animation: starter-tint-pulse 2.2s ease-in-out infinite; }
.starter-coefficient.is-glowing .starter-coefficient-input { background: transparent; }
.starter-scene {
    display: grid;
    grid-template-columns: var(--starter-arc-col) minmax(0, 1fr);
    column-gap: .05rem;
    max-width: 44rem;
    margin: 0 auto;
}
.starter-scene-arc { position: relative; z-index: 3; min-height: 100%; }
.starter-reuse-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.starter-reuse-path { fill: none; stroke: #8a6a45; stroke-width: 1; stroke-linecap: round; opacity: .7; vector-effect: non-scaling-stroke; }
.starter-reuse-head { fill: #8a6a45; }
.starter-scene-body { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.starter-bowl-block { display: block; }
.starter-bowl-shell { min-width: 0; }
.starter-bowl-heading { margin: 0 0 .25rem; text-align: center; }
.starter-bowl-heading h2 { margin: 0; color: var(--starter-ink); font-size: 1.1rem; font-weight: 700; }
.starter-gap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 2.6rem; margin: .55rem 0 .35rem; }
.starter-gap-loss { position: absolute; left: calc(50% + 12rem); top: 44%; transform: translateY(-50%); }
.starter-hourglass { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; color: #7c8794; }
.starter-hourglass svg { display: block; width: 2.4rem; height: auto; }
.starter-hourglass-label { position: absolute; right: 100%; top: 50%; margin-right: .4rem; transform: translateY(-50%); color: #8a8176; font-size: .62rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.starter-hourglass-wood { fill: #b98a52; stroke: #8a6337; stroke-width: 1; }
.starter-hourglass-shaft { fill: none; stroke: #b98a52; stroke-width: 1.5; stroke-linecap: round; opacity: .5; }
.starter-hourglass-arrow { fill: #8a6337; stroke: #6b4a29; stroke-width: 1; }
.starter-hourglass-glass { fill: rgba(235, 244, 248, .55); stroke: #7c8794; stroke-width: 1.6; }
.starter-hourglass-sand { fill: #d9b66a; }
.starter-hourglass-stream { stroke: #c9a24e; stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 1.5 2.5; }
.starter-hourglass-shine { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.4; stroke-linecap: round; }
.starter-bowl { position: relative; width: min(100%, 22rem); margin: 0 auto; }
.starter-bowl-body {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.62;
    border: 2px solid rgba(120, 128, 138, .5);
    border-top-width: 1px;
    border-radius: 10% 10% 40% 40% / 6% 6% 82% 82%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .22) 55%, rgba(224, 233, 238, .3)),
        linear-gradient(115deg, rgba(255, 255, 255, .55), transparent 40%);
    box-shadow:
        inset 0 10px 18px rgba(255, 255, 255, .55),
        inset 0 -14px 24px rgba(97, 112, 124, .08),
        0 10px 22px rgba(126, 100, 67, .1);
}
.starter-bowl-shine { position: absolute; top: 4%; bottom: 36%; left: 5%; z-index: 2; width: 26%; border-left: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; transform: skewX(-7deg); pointer-events: none; opacity: .8; }
.starter-bowl-shine::after { content: ''; position: absolute; top: 12%; left: .35rem; width: .22rem; height: 55%; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.starter-bowl-fill { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.starter-layer { position: relative; display: flex; width: 100%; min-height: 0; align-items: center; justify-content: center; }
.starter-layer + .starter-layer { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.starter-layer-water { background-color: #d8edf7; background-image: repeating-linear-gradient(174deg, rgba(255, 255, 255, .42) 0 1.5px, transparent 1.5px 11px), radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .55) 0 2px, transparent 2.6px), radial-gradient(circle at 72% 62%, rgba(255, 255, 255, .45) 0 1.4px, transparent 2px), linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(80, 150, 180, .08)); background-size: auto, 34px 29px, 47px 41px, auto; }
.starter-layer-water::after { content: ''; position: absolute; top: -3px; right: 4%; left: 4%; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(80, 140, 160, .18); }
.starter-layer-flour { background-color: #f8f0df; background-image: radial-gradient(circle at 18% 30%, rgba(150, 112, 55, .22) 0 1px, transparent 1.5px), radial-gradient(circle at 63% 70%, rgba(130, 95, 45, .18) 0 1.2px, transparent 1.7px), radial-gradient(circle at 84% 24%, rgba(170, 135, 80, .16) 0 .9px, transparent 1.4px), repeating-linear-gradient(28deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 9px); background-size: 13px 15px, 19px 17px, 23px 21px, auto; }
.starter-layer-starter, .starter-layer-next, .starter-layer-dough { background-color: #e7d1a9; background-image: radial-gradient(circle at 22% 32%, rgba(122, 82, 32, .22) 0 2.6px, transparent 3.2px), radial-gradient(circle at 67% 63%, rgba(122, 82, 32, .18) 0 1.8px, transparent 2.4px), radial-gradient(circle at 43% 78%, rgba(255, 255, 255, .4) 0 1.2px, transparent 1.8px), radial-gradient(circle at 82% 22%, rgba(150, 105, 45, .16) 0 2px, transparent 2.6px), linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(120, 80, 30, .05)); background-size: 41px 37px, 29px 31px, 23px 27px, 53px 47px, auto; }
.starter-layer-dough { z-index: 2; border-bottom: 2px solid rgba(255, 255, 255, .62); border-radius: 0 0 50% 50% / 0 0 12px 12px; box-shadow: 0 4px 6px rgba(120, 80, 30, .14); }
.starter-layer-dough .starter-weight-name { color: #15803d; }
.starter-layer-next .starter-weight-name { color: #62451f; }
.starter-layer-water .starter-weight-name { color: #215b72; }
.starter-layer-flour .starter-weight-name { color: #806028; }
.starter-layer-starter .starter-weight-name { color: #62451f; }
.starter-layer-starter .starter-busy-slot { flex-basis: .6rem; width: .6rem; }
.starter-weight-row { position: relative; z-index: 2; display: flex; max-width: 96%; align-items: center; justify-content: center; gap: .3rem; padding: 0 .3rem; color: #4a3b2a; white-space: nowrap; cursor: pointer; }
.starter-weight-name { color: #5f4d38; font-size: .72rem; font-weight: 650; letter-spacing: .02em; }
.starter-weight-name-short { display: none; }
.starter-weight-control { position: relative; display: inline-flex; align-items: baseline; gap: .3rem; }
.starter-weight-input { width: 5ch; padding: 0; border: 0; border-bottom: 1px dashed rgba(80, 60, 35, .45); border-radius: .15rem .15rem 0 0; background: transparent; color: inherit; font: inherit; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; cursor: text; }
.starter-weight-input:hover, .starter-weight-input:focus { border-bottom-color: currentColor; outline: none; background: rgba(255, 255, 255, .6); }
.starter-weight-unit { color: #6d5a43; font-size: .76rem; font-weight: 700; }
.starter-weight-static { color: #4a3b2a; font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.starter-layer .starter-weight-row { color: var(--substance-ink, #4a3b2a); }
.starter-layer .starter-weight-input { color: var(--substance-ink, inherit); border-bottom-color: var(--substance-ink, rgba(80, 60, 35, .45)); }
.starter-layer .starter-weight-unit,
.starter-layer .starter-weight-static { color: var(--substance-ink, #6d5a43); }
.starter-layer .starter-weight-input.is-invalid { color: #b91c1c; border-bottom-color: #b91c1c; }
.starter-weight-row.is-focusable { cursor: pointer; border-radius: .2rem; }
.starter-weight-row.is-focusable:focus { outline: none; }
.starter-busy-slot { display: inline-flex; flex: 0 0 .8rem; width: .8rem; height: .8rem; align-items: center; justify-content: center; align-self: center; }
.starter-inline-spinner { position: static; width: .68rem; height: .68rem; margin: 0; border-width: 1.5px; }
.starter-loss { position: relative; display: flex; flex-direction: column; align-items: center; gap: .02rem; padding: .1rem .05rem; color: #dc2626; }
.starter-loss-title { margin: 0; color: #dc2626; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.starter-spoon { display: block; width: 3.5rem; height: auto; margin: .05rem 0 -.1rem; filter: drop-shadow(0 2px 2px rgba(80, 60, 40, .12)); }
.starter-spoon-metal { fill: none; stroke: #8f99a3; stroke-width: 3; stroke-linecap: round; }
.starter-spoon-bowl { fill: #edf1f4; stroke: #8f99a3; stroke-width: 2; }
.starter-spoon-smear { fill: #e7d1a9; stroke: #b99254; stroke-width: .8; }
.starter-spoon-bubble { fill: #b99254; opacity: .55; }
.starter-spoon-drip { fill: none; stroke: #c9a86a; stroke-width: 3; stroke-linecap: round; }
.starter-spoon-shine { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2; stroke-linecap: round; }
.starter-loss-control { position: relative; display: inline-flex; align-items: baseline; gap: .2rem; }
.starter-loss-input { width: 3.4ch; padding: 0; border: 0; border-bottom: 1px dashed #dc2626; background: transparent; color: #dc2626; font: inherit; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.starter-loss-control-grams { margin-top: .05rem; }
.starter-loss-input-grams { width: 2.6ch; font-size: .95rem; }
.starter-loss-input:hover, .starter-loss-input:focus { border-bottom-color: currentColor; outline: none; background: rgba(255, 255, 255, .55); }
.starter-loss-input.is-invalid { color: #b91c1c; border-bottom-color: #b91c1c; }
.starter-loss-unit { color: #dc2626; font-size: .8rem; font-weight: 700; }
.starter-loss-grams { color: #dc2626; font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.starter-loss-hint { max-width: 5.8rem; color: #ef4444; font-size: .6rem; line-height: 1.12; text-align: center; }
.starter-layer-starter { --glow-rgb: 245, 158, 11; --substance-ink: #62451f; }
.starter-layer-flour { --glow-rgb: 253, 224, 71; --substance-ink: #806028; }
.starter-layer-water { --glow-rgb: 14, 165, 233; --substance-ink: #215b72; }
.starter-layer-dough { --glow-rgb: 34, 197, 94; --substance-ink: #15803d; }
.starter-layer-next { --glow-rgb: 245, 158, 11; --substance-ink: #62451f; }
.starter-loss { --glow-rgb: 220, 38, 38; }
.starter-layer.is-glowing { z-index: 3; }
.starter-layer.is-glowing::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(var(--glow-rgb), .18); animation: starter-tint-pulse 2.2s ease-in-out infinite; pointer-events: none; }
.starter-loss.is-glowing { border-radius: .5rem; background: rgba(var(--glow-rgb), .18); animation: starter-tint-pulse 2.2s ease-in-out infinite; }
@keyframes starter-tint-pulse {
    0%, 100% { background: rgba(var(--glow-rgb), .12); }
    50% { background: rgba(var(--glow-rgb), .32); }
}
@keyframes starter-glow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(var(--glow-rgb), 0)); }
    50% { filter: drop-shadow(0 0 var(--starter-glow-blur) rgba(var(--glow-rgb), var(--starter-glow-alpha))); }
}
.starter-formula { margin: 0; }
.starter-formula-head { display: flex; align-items: center; gap: .75rem; }
.starter-formula-text { margin: 0; padding: 1rem 0 0; background: none; font: .95rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #1c1915; }
.starter-formula-block { margin: 0; }
.starter-formula-block + .starter-formula-block { margin-top: .4rem; }
.starter-formula-line { display: block; margin: 0 -.2rem; padding: 0 .2rem; border-radius: .2rem; }
.starter-formula-line.is-focusable { cursor: pointer; }
.starter-formula-line.is-focusable:focus { outline: none; }
.starter-formula-ratio-number { display: inline-block; padding: .04rem .15rem; border-radius: .2rem; cursor: pointer; }
.starter-formula-ratio-number:focus { outline: none; }
.starter-formula-ratio-number.is-glowing { animation: starter-formula-tint 2.2s ease-in-out infinite; }
.starter-formula-block .starter-formula-line:first-child { color: #4b2a10; font-weight: 700; }
.starter-formula-line.is-glowing { animation: starter-formula-tint 2.2s ease-in-out infinite; }
.starter-formula-line.glow-starter, .starter-formula-ratio-number.glow-starter { --formula-glow-rgb: 245, 158, 11; }
.starter-formula-line.glow-flour, .starter-formula-ratio-number.glow-flour { --formula-glow-rgb: 253, 224, 71; }
.starter-formula-line.glow-water, .starter-formula-ratio-number.glow-water { --formula-glow-rgb: 14, 165, 233; }
.starter-formula-line.glow-dough, .starter-formula-ratio-number.glow-dough { --formula-glow-rgb: 34, 197, 94; }
.starter-formula-line.glow-next, .starter-formula-ratio-number.glow-next { --formula-glow-rgb: 245, 158, 11; }
@keyframes starter-formula-tint {
    0%, 100% { background: rgba(var(--formula-glow-rgb), .10); }
    50% { background: rgba(var(--formula-glow-rgb), .28); }
}
@media (max-width: 760px) {
    .starter { --starter-arc-col: 2.6rem; }
    .starter-gap { flex-direction: column; gap: .2rem; min-height: 0; }
    .starter-gap-loss { position: static; transform: none; }
    .starter-bowl-heading h2 { font-size: 1.05rem; }
    .starter-loss-title { font-size: .72rem; }
    .starter-spoon { width: 3rem; }
    .starter-loss-hint { max-width: 5.4rem; font-size: .6rem; }
}
@media (max-width: 480px) {
    .starter { --starter-arc-col: 1.8rem; }
    .starter-coefficients { gap: .2rem .45rem; }
    .starter-coefficient { font-size: .7rem; }
    .starter-weight-row { gap: .22rem; padding: 0 .2rem; }
    .starter-weight-name { font-size: .62rem; }
    .starter-weight-name.has-short .starter-weight-name-full { display: none; }
    .starter-weight-name.has-short .starter-weight-name-short { display: inline; }
    .starter-weight-input { width: 4.5ch; font-size: .82rem; }
    .starter-weight-static { font-size: .82rem; }
    .starter-weight-unit { font-size: .68rem; }
    .starter-spoon { width: 2.5rem; }
    .starter-loss-hint { max-width: 4.2rem; font-size: .58rem; }
    .starter-loss-grams { font-size: .72rem; }
}
@media print {
    .starter-page-heading .page-heading-hint { display: none; }
}

/* Accounts, businesses, clients, and the shared comment thread. */
.main-nav { align-items: center; flex-wrap: wrap; }
.user-menu,
.business-menu,
.tools-menu { position: relative; }
.user-menu summary,
.user-menu-trigger,
.business-menu-trigger,
.tools-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: inherit; font: inherit; cursor: pointer; }
.user-menu-trigger:hover,
.user-menu-trigger[aria-expanded="true"],
.business-menu-trigger:hover,
.business-menu-trigger[aria-expanded="true"],
.tools-menu-trigger:hover,
.tools-menu-trigger[aria-expanded="true"] { background: rgba(255, 255, 255, .1); color: #f4f1ea; }
.user-menu-trigger:focus-visible,
.business-menu-trigger:focus-visible,
.tools-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; }
.business-menu-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.business-menu-icon,
.tools-menu-icon { width: .95rem; height: .95rem; flex: 0 0 auto; color: #cfc5b8; }
.business-menu-trigger:hover .business-menu-icon,
.business-menu-trigger[aria-expanded="true"] .business-menu-icon,
.tools-menu-trigger:hover .tools-menu-icon,
.tools-menu-trigger[aria-expanded="true"] .tools-menu-icon { color: #f4f1ea; }
.user-menu summary svg,
.user-menu-chevron,
.business-menu-chevron,
.tools-menu-chevron { width: .72rem; height: .72rem; transition: transform .15s ease; }
.user-menu-chevron.is-open,
.business-menu-chevron.is-open,
.tools-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); }
.business-menu-panel,
.tools-menu-panel { right: auto; left: 0; min-width: 9rem; }
.business-menu-panel .user-menu-section { margin-top: .2rem; padding-top: .2rem; border-top: 1px solid #ece3d6; }
.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 .api-form { margin: 0; }
.user-menu-icon { width: .95rem; height: .95rem; flex: 0 0 auto; color: #8a7d6b; }
.user-menu-panel a:hover .user-menu-icon,
.user-menu-panel button:hover .user-menu-icon { color: #6d3b12; }
.user-menu-business.is-current button { font-weight: 600; outline: 1px dashed #b9aa95; outline-offset: -3px; }
.user-menu-business.is-current button:focus-visible { outline: 2px solid #b9aa95; outline-offset: -2px; }
.user-menu-business-name { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.user-menu-profile-summary { align-items: flex-start; }
.user-menu-profile-summary .user-menu-icon { margin-top: .1rem; }
.user-menu-item-text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.user-menu-timezone { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; color: #8a7d6b; font-size: .68rem; font-weight: 400; line-height: 1.2; }
.user-menu-panel a:hover .user-menu-timezone { 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,
    .business-menu-chevron,
    .tools-menu-chevron { transition: none; }
    .user-menu-panel a,
    .user-menu-panel button { transition: none; }
}
.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; }
.badge.is-me { border-color: var(--me-border); background: var(--me-bg); color: var(--me-color); }
.notice { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border: 1px solid #ddd3c4; border-radius: .35rem; background: #fbf8f3; color: #4a443c; font-size: .82rem; line-height: 1.45; }
.notice-body { min-width: 0; overflow-wrap: anywhere; }
.notice-body p { margin: 0; }
.notice-body p + p { margin-top: .25rem; }
.notice-icon { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; }
.notice.is-warning { border-color: #e0b84a; background: #fdf3d1; color: #5c4408; }
.notice.is-warning .notice-icon { color: #9a6700; }
.notice.is-success { border-color: #b7d7c1; background: #f0f9f3; color: #14532d; }
.notice.is-danger { border-color: #e2b8b0; background: #fbf1ef; color: #8a2410; }
.payid-helper-notice { margin-top: .6rem; }
.payid-helper-notice .notice-body { white-space: pre-wrap; }
.page-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.page-heading h1 { margin: 0; }
.page-heading h1.has-icon { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.page-heading-hint { display: inline-flex; align-items: center; }
.page-heading-action { display: inline-flex; align-items: center; margin-left: 1.5rem; }
.page-heading-action .button-link { padding: .12rem .45rem; font-size: .8rem; display: inline-flex; align-items: center; gap: .2rem; }
.starter-page-heading { position: relative; justify-content: center; padding-left: clamp(4.05rem, calc(8vw + .8rem), 6.3rem); }
.starter-page-heading .page-heading-hint { margin-left: .8rem; }
.starter-page-heading .page-heading-action { position: absolute; right: 0; top: 50%; margin-left: 0; transform: translateY(-50%); }
@media (max-width: 640px) {
    .starter-page-heading { flex-direction: column; padding-left: 0; padding-right: 0; }
    .starter-page-heading .page-heading-hint { margin-left: 0; }
    .starter-page-heading .page-heading-action { position: static; width: 100%; justify-content: center; margin-top: .35rem; transform: none; }
}
.starter-detail .detail-heading { margin-bottom: .6rem; }
@media (min-width: 1024px) {
    .detail-layout.starter-detail.has-aside.has-heading { row-gap: 1.75rem; }
    .starter-detail .detail-heading { margin-bottom: 0; }
    .starter-page-heading { padding-left: 6rem; padding-right: calc(21rem + 1.5rem); }
}
.page-action-icon { width: .9rem; height: .9rem; flex: 0 0 auto; }
.page-title-icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: inherit; opacity: .65; }
.page-title-avatar { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; font-size: .78rem; }
.page-title-suffix { color: #8a7d6b; font-size: .72em; font-weight: 500; letter-spacing: 0; }
.business-title { display: flex; align-items: center; gap: .45rem; }
.business-title-icon { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; color: inherit; opacity: .65; }
.business-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .4rem; }
.business-title-row .business-title { margin: 0; }
.business-title-edit { flex: 0 0 auto; }
.info-hint { position: relative; display: inline-block; }
.info-hint summary,
.info-hint-trigger { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; 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); }
.info-hint-line { display: block; }
.info-hint-line + .info-hint-line { margin-top: .4rem; }
/* A Form's generic button rule would otherwise turn the round InfoHint
   trigger into a normal button. Keep the standard trigger inside a form. */
.account-form .info-hint-trigger,
.account-form .info-hint-trigger:hover { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid #b9aa95; border-radius: 50%; background: #fff; box-shadow: none; color: #6d3b12; }
.account-form .info-hint-trigger { font-weight: 700; line-height: 1; }
.account-form .info-hint-trigger:hover { border-color: #8a7d6b; }
.account-form .info-hint-trigger:focus-visible { outline: 2px solid var(--link-hover-color); outline-offset: 2px; }
.multiline { white-space: pre-wrap; }
.account-dialog { width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid #e2d9cc; border-radius: 4px; background: #fff; color: #1c1915; box-shadow: 0 16px 50px rgba(28, 25, 21, .25); overflow: hidden; }
.account-dialog[open] { display: flex; flex-direction: column; }
.account-dialog::backdrop { background: rgba(28, 25, 21, .45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid #e5e0d8; background: #fbf8f3; }
.dialog-head h2 { margin: 0; padding-right: .5rem; color: #4a443c; font-size: 1.1rem; font-weight: 700; }
.dialog-close { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border: 0; border-radius: .3rem; background: none; color: #5e564c; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.dialog-close:hover,
.dialog-close:focus-visible { background: #efe6d8; color: #1c1915; }
.dialog-body { min-height: 0; padding: 1rem 1.25rem 1.25rem; overflow-y: auto; overflow-x: hidden; }
.dialog-body p { margin: 0 0 .5rem; }
.account-dialog .account-form { max-width: none; margin-bottom: 0; gap: .5rem; }
.account-dialog .dialog-note { margin: 0 0 .7rem; color: #5e564c; font-size: .85rem; }
.account-dialog .dialog-note strong { color: #1c1915; }
.dialog-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; margin-top: .75rem; padding-top: .5rem; background: #fff; }
.dialog-actions .button-primary { background: #3f7350; border-color: #315d41; color: #fff; }
.dialog-actions .button-primary:hover { background: #315d41; border-color: #274c35; color: #fff; }
.dialog-actions .dialog-secondary { background: #f1f1ef; border-color: #d8d4cd; color: #2c261f; }
.dialog-actions .dialog-secondary:hover { background: #e6e4df; border-color: #c9c4bb; color: #1c1915; }
.dialog-actions .button-danger { background: #bf5742; border-color: #a84835; color: #fff; }
.dialog-actions .button-danger:hover { background: #a84835; border-color: #923a2b; color: #fff; }
.dialog-hint { color: inherit; font-size: .78em; font-weight: 400; opacity: .72; }
.user-name { display: inline-flex; align-items: center; gap: .35rem; }
.user-identity { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.user-avatar { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; }
.user-identity-name { overflow-wrap: anywhere; }
.user-online-dot { position: absolute; right: -.15rem; bottom: -.05rem; width: .5rem; height: .5rem; box-sizing: border-box; border: 1.5px solid #fff; border-radius: 50%; }
.user-online-dot.is-online { background: #22a447; }
.user-online-dot.is-offline { background: #b3aea5; }
.user-icon.is-me { color: var(--me-color); }
.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: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .dialog-body { flex: 1 1 auto; }
}
.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 > .muted,
.account-form > .field-help,
.field-help { margin: -.3rem 0 .1rem; color: #8a7d6b; font-size: .72rem; font-style: italic; line-height: 1.35; }
.account-form label.checkbox-toggle { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .45rem; margin: .1rem 0 .55rem; font-weight: 650; text-align: left; }
.shipping-methods-form label.checkbox-toggle { margin-bottom: 0; }
.shipping-methods-form > .field-help { margin-top: -.3rem; }
.checkbox-toggle input { flex: 0 0 auto; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .2rem; }
.field-caption { text-align: left; font-weight: 600; line-height: 1.35; }
.field-hint { display: inline-block; margin-left: .3rem; vertical-align: middle; line-height: 1; }
/* The inline field hint stays smaller than the caption's line box, so a caption
   with a hint keeps the same height as one without and the controls below the
   captions line up. */
.field-hint .info-hint-trigger { width: 1rem; height: 1rem; font-size: .64rem; }
.field-required { margin-left: .12rem; color: #b4462f; font-weight: 700; }
.field-optional { margin-left: .25rem; color: #8a7d6b; font-size: .72rem; font-weight: 400; font-style: normal; }
.form-field { display: flex; flex-direction: column; gap: .15rem; color: #5e564c; font-size: .8rem; }
.form-field > input,
.form-field > textarea,
.form-field > select { width: 100%; max-width: 100%; box-sizing: border-box; font: inherit; padding: .3rem .45rem; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; }
.account-form input, .account-form textarea, .account-form select, .client-filters input, .client-filters select, .inline-action-form input { font: inherit; max-width: 100%; box-sizing: border-box; padding: .3rem .45rem; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; }
.account-form textarea { resize: vertical; }
.account-form button, .client-filters button, .inline-action-form button, .button-link { font: inherit; border: 1px solid var(--button-border); background: var(--button-bg); color: #2c261f; padding: .3rem .6rem; box-shadow: var(--button-shadow); cursor: pointer; text-decoration: none; display: inline-block; }
.account-form button:hover, .client-filters button:hover, .inline-action-form button:hover, .button-link:hover { background: var(--button-bg-hover); border-color: var(--button-border-hover); color: #1c1915; box-shadow: var(--button-shadow-hover); }
.filters button:hover, .fact-filters button:hover { background: var(--button-bg-hover); border-color: var(--button-border-hover); box-shadow: var(--button-shadow-hover); }
.account-form-card, .dashboard-card { background: #fff; border: 1px solid #e2d9cc; padding: .7rem .9rem; }
.dashboard-card > h2 { margin: -.7rem -.9rem .7rem; padding: .5rem .9rem; border-bottom: 1px solid #e2d9cc; background: #f7f2e9; color: #3a2a1b; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: -.7rem -.9rem .7rem; padding: .4rem .9rem; border-bottom: 1px solid #e2d9cc; background: #f7f2e9; color: #3a2a1b; }
.card-heading h2 { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.card-title-with-icon { display: inline-flex; align-items: center; gap: .4rem; }
.card-title-with-icon > svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.card-title-with-icon .bookmark-icon { width: 1rem; height: 1rem; color: #d97706; }
.card-title-with-icon .info-hint-trigger { width: 1rem; height: 1rem; font-size: .64rem; }
.card-action { flex: 0 0 auto; }
.stat-list { display: flex; flex-direction: column; gap: .4rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.stat-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-bottom: .35rem; border-bottom: 1px solid #f0e8db; }
.stat-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.stat-list strong { font-variant-numeric: tabular-nums; }
.admin-order-total { margin: .1rem 0 .6rem; }
.admin-order-total strong { color: #3a2a1b; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.order-stat-list .badge { font-size: .64rem; }
.domain-list { display: flex; flex-direction: column; gap: .35rem; margin: .1rem 0 0; padding: 0; list-style: none; }
.domain-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-bottom: .35rem; border-bottom: 1px solid #f0e8db; }
.domain-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.domain-list code { overflow-wrap: anywhere; }
.domain-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
.domain-name .badge.is-current { border-color: #9bc7a7; background: #e8f3ec; color: #1d6b35; }
.slug-token { border-radius: .2rem; }
.slug-token.is-pulsing { animation: slug-token-glow 1.2s ease-in-out infinite; }
@keyframes slug-token-glow {
    0%, 100% { background: #fbf8f3; box-shadow: 0 0 0 rgba(217, 164, 65, 0); }
    50% { background: #ffe9b8; box-shadow: 0 0 10px rgba(217, 164, 65, .6); }
}
@media (prefers-reduced-motion: reduce) {
    .slug-token.is-pulsing { animation: none; }
}
.business-links a { overflow-wrap: anywhere; }
.table-actions { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; }
.table-actions .inline-form { margin: 0; }
.button-small { font-size: .8rem; padding: .12rem .4rem; }

/* Inline copy control and marked copiable text. The copy button rests as one
   icon; its hint is display:none until hover, focus, or the copied state, so a
   heading or table cell still reads as its own value. */
button.copy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: .2rem;
    background: none;
    box-shadow: none;
    color: #8a7d6b;
    font: inherit;
    line-height: 0;
    vertical-align: middle;
    cursor: pointer;
}
button.copy-button:hover:not(:disabled) { background: #f1e9db; color: #6d3b12; }
button.copy-button:focus-visible { outline: 2px solid #6d3b12; outline-offset: 1px; }
button.copy-button:disabled { opacity: .4; cursor: default; }
button.copy-button.is-copied { color: #1d6b35; }
button.copy-button.is-failed { color: #8a2410; }
button.copy-button.has-label { width: auto; height: 1.55rem; gap: .3rem; padding: 0 .5rem; border: 1px solid var(--button-border); border-radius: .25rem; background: var(--button-bg); box-shadow: var(--button-shadow); color: #2c261f; font-size: .8rem; line-height: 1; }
button.copy-button.has-label:hover:not(:disabled) { border-color: var(--button-border-hover); background: var(--button-bg-hover); color: #1c1915; box-shadow: var(--button-shadow-hover); }
button.copy-button.has-label.is-copied { color: #1d6b35; }
.copy-button-icon { display: block; width: .95rem; height: .95rem; }
.copy-button-label { white-space: nowrap; }
button.copy-button::after {
    content: attr(data-hint);
    display: none;
    position: absolute;
    bottom: calc(100% + .35rem);
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    padding: .08rem .4rem;
    border-radius: .2rem;
    background: #1c1915;
    color: #fff;
    font: 400 .7rem/1.4 system-ui, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(28, 25, 21, .2);
}
button.copy-button:hover::after,
button.copy-button:focus-visible::after,
button.copy-button.is-copied::after,
button.copy-button.is-failed::after { display: inline-block; }
.copy-button-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.copiable-text {
    display: inline-flex;
    align-items: center;
    gap: .1rem;
    max-width: 100%;
    vertical-align: middle;
}
.copiable-text-value {
    min-width: 0;
    padding: .08rem .32rem;
    border: 1px solid #e0d6c7;
    border-radius: .2rem;
    background: #fbf8f3;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.copiable-text .copiable-text-value code { margin: 0; padding: 0; border: 0; background: none; }
.copiable-text.is-multiline .copiable-text-value { white-space: pre-wrap; }
.page-heading h1 .copiable-text-value { padding: .04rem .3rem; font-size: .8em; }
.starter-formula-head .copy-button { margin-left: auto; }

/* Telegram bots: one green/grey state dot and one compact action row. */
.bot-status { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; font-weight: 650; }
.bot-status-dot { width: .55rem; height: .55rem; flex: 0 0 auto; border-radius: 50%; background: #b3aea5; }
.bot-status.is-on .bot-status-dot { background: #22a447; }
.bot-status-label { line-height: 1; }
.bot-status-detail { display: block; margin-top: .18rem; color: #5e564c; font-size: .76rem; font-weight: 400; }
.bot-status-reason { display: block; margin-top: .1rem; }
.bot-name { display: block; font-weight: 650; }
.bot-name a { font-weight: 650; }
.bot-telegram { display: block; font-size: .78rem; }
.bot-token { white-space: nowrap; font-size: .8rem; }
.bot-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
.bot-actions .bot-inline-form { margin: 0; }
.bot-when { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .6rem 0; padding: 0; border: 0; }
.bot-when legend { padding: 0; margin-bottom: .2rem; }
.bot-when-option { display: inline-flex; align-items: center; gap: .3rem; }
.badge.is-public { margin-left: .35rem; border-color: #c7b28d; background: #efe4cf; color: #6d3b12; }
.bot-chat-summary { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; font-size: .8rem; }
.bot-chat-chip { display: block; max-width: 18rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-chat-see-all { display: block; white-space: nowrap; font-size: .78rem; }
.telegram-bot-row-highlight > td { background: #fdf1cf; }
.telegram-bot-row-highlight > td:first-child { box-shadow: inset 3px 0 0 #c9852b; }
.bot-permissions { font-size: .8rem; }
.telegram-detail-grid { margin-bottom: 1rem; }
.telegram-public-form { margin: .6rem 0 0; }
.telegram-block { margin-top: 1.2rem; }
.telegram-block > .card-heading { margin-bottom: .6rem; }
.telegram-block-heading-actions { display: inline-flex; align-items: center; gap: .7rem; margin-left: auto; }
.telegram-block-search { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.telegram-block-search input { max-width: 22rem; }
.telegram-block-pagination { margin: .45rem 0 0; font-size: .82rem; }
.telegram-link-cta { margin-top: .8rem; }
.telegram-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .8rem; }
.telegram-link-code { margin-top: .8rem; padding: .8rem 1rem; border: 1px solid #d8cbb7; border-radius: 4px; background: #faf5eb; }
.telegram-link-code-value { margin: .3rem 0 .5rem; }
.telegram-link-code-value code { font-size: 1.25rem; letter-spacing: .12em; font-weight: 700; }
.telegram-link-status-form { margin: .8rem 0 0; }
.telegram-link-wizard .telegram-link-help { margin: .8rem 0 0; }
.telegram-event-info { background: #eef3f7; color: #35566d; }
.telegram-event-warning { background: #f7ecd3; color: #7a5210; }
.telegram-event-error { background: #f7deda; color: #8f2f25; }

.notification-type + .notification-type { margin-top: 1.1rem; }
.notification-type-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: .45rem; }
.notification-type-heading h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.notification-type-heading .button-link { margin-left: auto; }
.notification-list { list-style: none; margin: 0; padding: 0; }
.notification-row { padding: .65rem 0; border-top: 1px solid #ece3d5; }
.notification-row:first-child { border-top: 0; }
.notification-row-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .8rem; }
.notification-target { line-height: 1.35; }
.notification-target .muted { font-size: .82rem; }
.notification-reason { margin: .3rem 0 0; color: #6a5d4d; font-size: .84rem; }
.notification-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .45rem; }
.notification-config-form .field-help { margin-top: -.2rem; }
.notification-refresh-status { display: flex; align-items: center; gap: .4rem; }
.notification-config-dialog:has(.virtual-dropdown.is-open) { overflow: visible; }
.notification-config-dialog:has(.virtual-dropdown.is-open) .dialog-body { overflow: visible; }
.client-user-row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; }
.client-users .client-user-row { align-items: center; }
.client-user-telegram { font-size: .8rem; line-height: 1.2; }
.dashboard-card > .muted { margin: .2rem 0 .7rem; }
.dashboard-card .plain-list,
.dashboard-card .comment-history { margin: .15rem 0 0; }
.dashboard-card .plain-list li { padding: .4rem 0; }
.member-list .badge { margin-left: 0; }
.member-name { min-width: 0; overflow-wrap: anywhere; }
.member-marks { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem; margin-left: auto; }
.member-marks .badge { flex: 0 0 auto; }
.compact-form { gap: .35rem; margin: .5rem 0; }
.compact-form input { max-width: 22rem; }
.inline-action-form { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .7rem 0 0; }
.inline-action-form input { flex: 1 1 12rem; max-width: 22rem; font-size: .85rem; padding: .2rem .4rem; }
.inline-action-form button { font-size: .85rem; padding: .2rem .5rem; }
.manage-products { margin: .6rem 0 0; }
.manage-clients { margin: .2rem 0 .5rem; }
.manage-field { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .25rem 0; line-height: 1.4; }
.manage-label { flex: 0 0 auto; color: #5e564c; }
.manage-field code { padding: .05rem .25rem; border: 1px solid #e5dccd; border-radius: .2rem; background: #fbf8f3; font-size: .78rem; overflow-wrap: anywhere; }
.manage-field .image-icon-button { flex: 0 0 auto; align-self: center; }
.manage-shop-help { margin: .15rem 0 .3rem; }
.manage-shop-link { overflow-wrap: anywhere; font-size: .82rem; }
.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; inset: 1.5rem auto auto 50%; z-index: 1000; display: flex; flex-direction: column; gap: .45rem; width: min(30rem, calc(100vw - 1.5rem)); margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; transform: translateX(-50%); pointer-events: none; }
@media (min-width: 761px) {
    .toast-stack { inset: 5.25rem auto auto 50%; }
}
.dialog-toaster { top: 5.25rem; }
body:has(dialog[open]) .page-toaster { display: none; }
.toast { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; 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; animation: toast-in .26s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes toast-in {
    from { opacity: 0; transform: translateY(calc(-100% - 6rem)) scale(.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .toast { animation: none; }
}
.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: var(--link-color); }
.link-button { font: inherit; border: 0; background: none; color: var(--link-color); padding: 0; cursor: pointer; text-decoration: underline; }
.link-button:hover,
.link-button:focus-visible { color: var(--link-hover-color); }
.link-button.danger { color: #8a2410; }
.button-link.danger { background: #f1dfd8; color: #8a2410; border-color: #d8b9ad; }
.button-link.danger:hover { background: #ecd2c8; border-color: #c89c8c; color: #7a1d0c; }

/* The one control that started an API call keeps its size: the label stays in
   layout but is transparent, and an absolutely positioned spinner paints over
   it. The rest of the call group only disables itself and sets aria-busy. */
.is-busy {
    position: relative;
    color: transparent !important;
}
.is-busy > svg {
    opacity: 0;
}
.is-busy::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: .8rem;
    height: .8rem;
    margin: -.4rem 0 0 -.4rem;
    border: 2px solid #6d3b12;
    border-right-color: transparent;
    border-radius: 50%;
    animation: virtual-dropdown-spin .7s linear infinite;
    pointer-events: none;
}
.button-primary.is-busy::after,
.button-danger.is-busy::after {
    border-color: #ffffff;
    border-right-color: transparent;
}
.control-spinner {
    position: absolute;
    top: 50%;
    right: .45rem;
    width: .75rem;
    height: .75rem;
    margin-top: -.375rem;
    border: 2px solid #d8cec0;
    border-top-color: #6d3b12;
    border-radius: 50%;
    animation: virtual-dropdown-spin .7s linear infinite;
    pointer-events: none;
}
.calc-cell,
.starter-control {
    position: relative;
}
@media (prefers-reduced-motion: reduce) {
    .is-busy::after,
    .control-spinner {
        animation: none;
    }
}
td.actions { white-space: nowrap; }
.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-panel { min-width: 0; }
.comment-panel.widget { grid-template-rows: auto minmax(0, 1fr); }
.comment-panel .widget-body { display: flex; flex-direction: column; min-height: 0; }
.comment-panel .comment-thread { display: flex; flex: 1 1 auto; min-height: 0; }
.comment-panel .comment-thread-inner { flex: 1 1 auto; max-height: none; min-height: 0; padding: 0; border-radius: 0; background: none; }
.comment-panel-trigger { width: 100%; color: #4a443c; font: inherit; text-align: left; cursor: pointer; }
.comment-panel-trigger:hover { color: #1c1915; filter: brightness(.985); }
.comment-panel-trigger:focus-visible,
.composer-action:focus-visible,
.composer-send:focus-visible,
.comment-icon-button:focus-visible { outline: 2px solid #6d3b12; outline-offset: 2px; }
.comment-thread { min-width: 0; }
.comment-thread-inner { display: flex; max-height: 50dvh; min-height: 8rem; box-sizing: border-box; flex-direction: column; padding: .55rem; border-radius: .9rem; background-color: var(--chat-bg); background-image: radial-gradient(circle at 25% 25%, var(--chat-dot) 0 1.2px, transparent 1.6px), radial-gradient(circle at 75% 75%, var(--chat-dot) 0 1px, transparent 1.4px); background-size: 26px 26px, 34px 34px; }
.comment-composer { flex: 0 0 auto; margin: 0 0 .45rem; }
.message-composer { display: flex; flex-direction: column; gap: .15rem; box-sizing: border-box; padding: .42rem .45rem .38rem .75rem; border-radius: 1.35rem; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 2px rgba(28, 25, 21, .14); }
.message-composer:focus-within { box-shadow: 0 0 0 2px rgba(109, 59, 18, .16), 0 1px 2px rgba(28, 25, 21, .14); }
.message-composer-input { display: block; width: 100%; min-height: 1.45em; margin: 0; padding: 0 .35rem 0 0; border: 0; outline: 0; background: transparent; color: #1c1915; font: inherit; line-height: 1.4; resize: none; overflow-y: hidden; }
.message-composer-input::placeholder { color: #9a9083; }
.message-composer-input:disabled { opacity: .6; }
.composer-actions { display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: .3rem; padding: 0 .05rem 0 .2rem; }
.composer-action { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: #f1e9db; color: #6d3b12; cursor: pointer; }
.composer-action:hover,
.composer-action.is-active { background: #e5d9c5; color: #4a2a0e; }
.composer-action-icon { width: 1rem; height: 1rem; }
.composer-time { position: relative; display: inline-flex; }
.composer-time-panel { position: absolute; right: 0; bottom: calc(100% + .45rem); z-index: 95; min-width: 14rem; box-sizing: border-box; padding: .5rem .6rem; border: 1px solid #d8cec0; border-radius: .5rem; background: #fffdfa; box-shadow: 0 12px 32px rgba(28, 25, 21, .22); }
.comment-edit-dialog .composer-time-panel { top: calc(100% + .45rem); bottom: auto; }
.comment-edit-dialog .virtual-dropdown.is-drop-up .virtual-dropdown-panel { top: calc(100% + .45rem); bottom: auto; border-top: 1px solid #d8cec0; border-bottom: 0; border-radius: .2rem; box-shadow: 0 12px 32px rgba(28, 25, 21, .22); }
.comment-edit-dialog:has(.virtual-dropdown.is-open) .dialog-body,
.comment-edit-dialog:has(.composer-time-panel) .dialog-body { overflow: visible; }
.comment-edit-dialog:has(.virtual-dropdown.is-open),
.comment-edit-dialog:has(.composer-time-panel) { overflow: visible; }
.composer-time-field { display: flex; flex-direction: column; gap: .25rem; color: #5e564c; font-size: .7rem; }
.composer-time-field input { font: inherit; font-size: .8rem; padding: .25rem .35rem; border: 1px solid #c8bfb0; border-radius: .25rem; background: #fff; color: #1c1915; }
.virtual-dropdown.composer-visibility { width: auto; flex: 0 0 auto; }
.composer-visibility .virtual-dropdown-trigger { width: auto; height: 1.9rem; padding: 0 .5rem 0 .4rem; border: 0; border-radius: 1rem; background: #f1e9db; color: #6d3b12; font-size: .72rem; }
.composer-visibility .virtual-dropdown-trigger:hover,
.composer-visibility .virtual-dropdown-trigger.is-open { background: #e5d9c5; color: #4a2a0e; }
.composer-visibility .virtual-dropdown-trigger .virtual-dropdown-icon { width: .9rem; height: .9rem; margin-top: 0; }
.composer-visibility .virtual-dropdown-panel { left: auto; right: 0; }
.composer-send { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; padding: 0; border: 0; border-radius: 50%; background: var(--send-bg); color: #fff; box-shadow: 0 1px 2px rgba(28, 25, 21, .18); cursor: pointer; transition: background-color .12s ease; }
.composer-send:hover:not(:disabled) { background: var(--send-bg-hover); }
.composer-send:disabled { opacity: .55; cursor: wait; }
.composer-send-icon { width: .95rem; height: .95rem; margin-left: -.08rem; }
.comment-list { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; gap: .35rem; list-style: none; margin: .1rem 0 0; padding: .05rem .1rem .1rem; overflow-y: auto; overscroll-behavior: contain; }
.comment-list-empty { padding: .35rem .2rem; font-size: .8rem; }
.comment-item { display: flex; flex-direction: column; align-items: flex-start; }
.comment-item.is-mine { align-items: flex-end; }
.comment-entity-row { position: relative; z-index: 1; display: flex; align-items: center; max-width: 92%; margin: 0 0 -.55rem .55rem; }
.comment-item.is-mine .comment-entity-row { justify-content: flex-end; margin: 0 .55rem -.55rem 0; }
.comment-entity { display: inline-flex; align-items: center; max-width: 100%; box-sizing: border-box; padding: .12rem .5rem; border: 1px solid #dcc3a2; border-radius: .45rem; background: #fbf2e5; color: #6d3b12; box-shadow: 0 1px 2px rgba(28, 25, 21, .14); font-size: .7rem; font-weight: 700; line-height: 1.3; letter-spacing: .005em; }
.comment-entity-link { display: inline-flex; align-items: center; gap: .28rem; min-width: 0; max-width: 100%; color: inherit; text-decoration: none; }
a.comment-entity-link:hover,
a.comment-entity-link:focus-visible { color: #8a2410; text-decoration: underline; }
.comment-entity-icon { display: block; flex: 0 0 auto; width: .8rem; height: .8rem; opacity: .8; }
.comment-entity-text { min-width: 0; overflow-wrap: anywhere; }
.comment-bubble { position: relative; max-width: 88%; box-sizing: border-box; padding: .36rem .56rem; border-radius: .6rem .6rem .6rem .18rem; background: var(--chat-bubble); color: #1c1915; box-shadow: 0 1px 0 rgba(28, 25, 21, .08); font-size: .82rem; line-height: 1.35; }
.comment-item.has-entity .comment-bubble { padding-top: .62rem; }
.comment-item.is-mine .comment-bubble { border-bottom-right-radius: .18rem; border-bottom-left-radius: .6rem; background: var(--me-bg); color: #173a6a; }
.comment-item.is-private .comment-bubble { background: var(--private-bg); color: var(--private-text); }
.comment-item.is-admin .comment-bubble { background: var(--admin-bg); color: var(--admin-text); border: 1px solid var(--admin-border); }
.comment-body { position: relative; overflow-wrap: anywhere; }
.comment-body.is-private,
.comment-body.is-admin { padding-right: 1.85rem; }
.comment-private-watermark { position: absolute; top: .18rem; right: .25rem; display: inline-flex; align-items: center; justify-content: center; color: #aaa69e; opacity: .8; pointer-events: none; }
.comment-admin-watermark { position: absolute; top: .18rem; right: .25rem; display: inline-flex; align-items: center; justify-content: center; color: #7f8ca6; opacity: .9; pointer-events: none; }
.comment-private-watermark-icon { display: block; width: 1.2rem; height: 1.2rem; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .3rem; margin: .13rem .15rem .08rem; color: #8a8176; font-size: .64rem; line-height: 1.3; }
.comment-item.is-mine .comment-meta { justify-content: flex-end; }
.comment-author { color: #5e564c; font-weight: 700; }
.comment-item.is-mine .comment-author { color: var(--me-color); }
.comment-item.is-mine.is-private .comment-author { color: #5e564c; }
.comment-item.is-mine.is-admin .comment-author { color: var(--admin-text); }
.comment-time { color: #8a8176; font-variant-numeric: tabular-nums; }
.comment-actions { display: inline-flex; gap: .02rem; margin-left: .05rem; }
.comment-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; padding: 0; border: 0; border-radius: .2rem; background: none; color: #8a8176; cursor: pointer; }
.comment-icon-button:hover:not(:disabled) { background: rgba(255, 255, 255, .65); color: #6d3b12; }
.comment-icon-button.danger:hover:not(:disabled) { color: #8a2410; }
.comment-icon-button:disabled { opacity: .45; cursor: wait; }
.comment-action-icon { width: .75rem; height: .75rem; }
.comment-history { display: flex; flex-direction: column; gap: .8rem; list-style: none; margin: .4rem 0; padding-left: 0; }
.comment-history-item { padding: .45rem .55rem; border: 0; border-radius: .5rem; background: rgba(255, 255, 255, .65); }
.comment-history-item.has-entity { padding-top: .55rem; }
.comment-history-item.has-entity .comment-entity-row { max-width: 100%; margin: 0 0 .3rem; }
.comment-history-item.is-private { background: var(--private-bg); color: var(--private-text); }
.comment-history-item.is-admin { background: var(--admin-bg); color: var(--admin-text); }
.comment-history-body { margin: 0; }
.comment-history-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .22rem .35rem; margin-top: .15rem; color: #8a8176; font-size: .64rem; }
.comment-history-meta strong { color: #5e564c; }
.comment-history-meta a { color: var(--link-color); }
.comment-history-meta a:hover,
.comment-history-meta a:focus-visible { color: var(--link-hover-color); }
@media (min-width: 1024px) {
    .comment-panel.widget { max-height: 50dvh; }
}
@media (max-width: 1023px) {
    .comment-panel-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
    .comment-panel-dialog > .dialog-body { display: flex; flex: 1 1 auto; min-height: 0; padding: 0; overflow: hidden; }
    .comment-panel-dialog > .dialog-body > .comment-thread { display: flex; flex: 1 1 auto; width: 100%; min-height: 0; }
    .comment-panel-dialog > .dialog-body > .comment-thread > .comment-thread-inner { flex: 1 1 auto; max-height: none; min-height: 0; box-sizing: border-box; padding: .55rem; border-radius: 0; }
    .comment-panel-dialog .virtual-dropdown.is-drop-up .virtual-dropdown-panel { top: calc(100% + .45rem); bottom: auto; border-top: 1px solid #d8cec0; border-bottom: 0; border-radius: .2rem; box-shadow: 0 12px 32px rgba(28, 25, 21, .22); }
    .comment-panel-dialog .composer-time-panel { top: calc(100% + .45rem); bottom: auto; }
}
@media (max-width: 760px) {
    .top { flex-wrap: wrap; gap: .25rem .5rem; padding: .25rem .45rem; font-size: 17px; }
    .main-nav { flex: 1; gap: .45rem; }
    .main-nav a { gap: .25rem; }
    .user-menu-trigger,
    .business-menu-trigger,
    .tools-menu-trigger { gap: .3rem; padding: .1rem .25rem .1rem .18rem; }
    .user-menu-avatar { width: 1.1rem; height: 1.1rem; font-size: .58rem; }
    .user-menu-name { display: none; }
    .business-menu-name { max-width: 6ch; }
    .user-menu-chevron,
    .business-menu-chevron,
    .tools-menu-chevron { width: .62rem; height: .62rem; }
    .find { flex-basis: 100%; max-width: none; margin-left: 0; }
    .find input { padding: .25rem .4rem; }
    /* Keep the brand, menus, and account on one compact line; the search
       takes the next line. A long business name may wrap the account menu
       to its own right-aligned row, but the search stays below. */
    .top:has(.user-menu) .main-nav { flex: 0 1 auto; }
    .top:has(.user-menu) .user-menu { margin-left: auto; }
    .account-form { max-width: none; }
    table { display: block; background: transparent; }
    .order-lines-table { width: 100%; }
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    tbody, tfoot { display: block; }
    tbody tr, tfoot tr { display: block; margin: 0 0 .7rem; padding: .4rem .55rem; background: #fff; border: 1px solid #e2d9cc; }
    tbody td, tfoot td { display: grid; grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr); gap: .5rem; align-items: baseline; border: 0; padding: .2rem 0; text-align: left; }
    tbody td::before, tfoot td::before { content: attr(data-label); color: #5e564c; font-size: .72rem; letter-spacing: .02em; text-transform: uppercase; }
    tbody td.num, tfoot td.num { text-align: right; }
    tbody td.num::before, tfoot td.num::before { text-align: left; }
    tbody td[colspan] { display: block; }
    tbody td[colspan]::before { content: none; }
    tbody td:empty, tfoot td:empty { display: none; }
    td.actions { white-space: normal; }
    .calc-cell { min-width: 0; }
    .formula td:nth-child(2), .formula th:nth-child(2) { width: auto; }
    .calculator-bar { align-items: flex-start; }
    .calc-input { width: 100%; box-sizing: border-box; }
    /* The recipe calculator is one unboxed vertical flow on a phone. The
       generic table cards above stay for every other table. */
    .calc-table tbody tr,
    .calc-table tfoot tr { display: block; margin: 0; padding: .35rem 0; border: 0; background: transparent; }
    .calc-table tbody td,
    .calc-table tfoot td,
    .calc-table tbody td.num,
    .calc-table tfoot td.num { display: block; padding: .12rem 0; border: 0; text-align: left; }
    .calc-table tbody td::before,
    .calc-table tfoot td::before { display: block; margin-bottom: .06rem; color: #8a7d6b; font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
    .calc-table tbody td[data-label="Ingredient"],
    .calc-table tfoot td[data-label="Ingredient"] { font-weight: 700; }
    .calc-table tbody td.bp,
    .calc-table tfoot td.bp { font-weight: 400; }
    .calc-table .calc-total td { padding-top: .2rem; border-top: 0; background: transparent; }
    .calc-table .calc-input { width: 100%; max-width: 12rem; text-align: left; }
    .calc-table .calc-original { text-align: left; }
}

/* Virtual dropdown: predefined lists, live search, and the global header search. */
.virtual-dropdown { position: relative; width: 100%; min-width: 0; }
.virtual-dropdown-control { width: 100%; box-sizing: border-box; font: inherit; padding: .25rem .4rem; border: 1px solid #c8bfb0; border-radius: .2rem; background: #fff; color: #1c1915; }
.virtual-dropdown-control:focus { outline: 2px solid #6d3b12; outline-offset: 1px; }
.virtual-dropdown.is-open .virtual-dropdown-control { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.virtual-dropdown-trigger { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: .35rem; padding: .25rem .4rem; border: 1px solid #c8bfb0; border-radius: .2rem; background: #fff; color: #1c1915; font: inherit; text-align: left; cursor: pointer; }
/* A trigger in a form field uses the same vertical padding as the text inputs,
   so Shape and Leaven are exactly as tall as Recipe Name, Author, and the other
   details inputs. */
.form-field .virtual-dropdown-trigger { padding-top: .3rem; padding-bottom: .3rem; }
.virtual-dropdown-trigger:hover { border-color: var(--button-border-hover); background: #fbf8f3; }
.virtual-dropdown-trigger:focus-visible { outline: 2px solid #6d3b12; outline-offset: 1px; }
.virtual-dropdown-trigger:disabled { opacity: .55; cursor: wait; }
.virtual-dropdown-trigger-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.virtual-dropdown-trigger-chevron { width: .72rem; height: .72rem; flex: 0 0 auto; color: #8a7d6b; transition: transform .15s ease; }
.virtual-dropdown-trigger-chevron.is-open { transform: rotate(180deg); }
.virtual-dropdown-panel { position: absolute; z-index: 80; top: 100%; left: 0; right: 0; min-width: min(22rem, calc(100vw - 1rem)); background: #fffdfa; color: #1c1915; border: 1px solid #d8cec0; border-top: 0; border-radius: 0 0 .2rem .2rem; box-shadow: 0 12px 32px rgba(28, 25, 21, .24); overflow: hidden; }
.virtual-dropdown.is-drop-up .virtual-dropdown-panel { top: auto; bottom: 100%; border-top: 1px solid #d8cec0; border-bottom: 0; border-radius: .2rem .2rem 0 0; box-shadow: 0 -12px 32px rgba(28, 25, 21, .18); }
.virtual-dropdown.is-trigger .virtual-dropdown-panel { min-width: min(18rem, calc(100vw - 1rem)); }
.find .virtual-dropdown-panel { left: auto; right: 0; min-width: min(34rem, calc(100vw - 1rem)); }
.virtual-dropdown-option.is-visibility .virtual-dropdown-icon { margin-top: .05rem; color: #6d3b12; }
.virtual-dropdown-option.is-visibility .virtual-dropdown-sub { color: #8a7d6b; }
.virtual-dropdown-status { display: flex; align-items: center; gap: .4rem; padding: .35rem .55rem; border-bottom: 1px solid #ece3d6; background: #fbf8f3; color: #5e564c; font-size: .76rem; line-height: 1.3; }
.virtual-dropdown-status:empty { display: none; }
.virtual-dropdown-list { overflow-y: auto; overscroll-behavior: contain; }
.virtual-dropdown-rows { position: relative; }
.virtual-dropdown-option { position: absolute; left: 0; right: 0; box-sizing: border-box; display: flex; align-items: flex-start; gap: .45rem; padding: .35rem .55rem; color: inherit; font: inherit; line-height: 1.25; text-align: left; cursor: pointer; }
.virtual-dropdown-option:hover,
.virtual-dropdown-option.is-active { background: #f0e7d8; }
.virtual-dropdown-option.is-selected { background: #f7f2e9; }
.virtual-dropdown-option.is-selected.is-active { background: #efe2cc; }
.virtual-dropdown-option.is-admin-result { border-left: 3px solid var(--admin-border); background: var(--admin-bg); color: var(--admin-text); padding-left: calc(.55rem - 3px); }
.virtual-dropdown-option.is-admin-result:hover,
.virtual-dropdown-option.is-admin-result.is-active { background: #e2e7f2; }
.virtual-dropdown-option.is-admin-result.is-selected { background: #e7ecf6; }
.virtual-dropdown-option.is-admin-result .virtual-dropdown-icon { color: var(--admin-text); }
.virtual-dropdown-option.is-admin-result .virtual-dropdown-sub,
.virtual-dropdown-option.is-admin-result .virtual-dropdown-trailing { color: #6f7d94; }
.virtual-dropdown-admin-tag { display: inline-block; padding: 0 .35rem; border: 1px solid var(--admin-border); border-radius: 1rem; background: #fff; color: var(--admin-text); font-size: .66rem; letter-spacing: .03em; text-transform: uppercase; }
.virtual-dropdown-icon { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; margin-top: .08rem; color: #8a7d6b; }
.virtual-dropdown-option.is-recipe .virtual-dropdown-icon { color: #9a5a2f; }
.virtual-dropdown-option.is-book .virtual-dropdown-icon { color: #6d3b12; }
.virtual-dropdown-option.is-fact .virtual-dropdown-icon { color: #a16207; }
.virtual-dropdown-option.is-client .virtual-dropdown-icon { color: #0369a1; }
.virtual-dropdown-option.is-business .virtual-dropdown-icon { color: #15803d; }
.virtual-dropdown-option.is-user .virtual-dropdown-icon { color: #6b7280; }
.virtual-dropdown-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: .06rem; min-width: 0; }
.virtual-dropdown-label { overflow-wrap: anywhere; }
.virtual-dropdown-sub { color: #8a7d6b; font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
.virtual-dropdown-trailing { flex: 0 0 auto; margin-top: .05rem; color: #8a7d6b; font-size: .76rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.virtual-dropdown-topic { padding: 0 .35rem; border: 1px solid #d3c2a9; border-radius: 1rem; background: #efe6d8; color: #6d3b12; font-size: .68rem; letter-spacing: .03em; text-transform: uppercase; }
.virtual-dropdown-selected-mark { display: inline-flex; flex: 0 0 auto; margin-top: .08rem; color: #15803d; }
.virtual-dropdown-check { width: .95rem; height: .95rem; }
.virtual-dropdown-empty { display: flex; align-items: center; justify-content: center; padding: .8rem; color: #8a7d6b; font-size: .84rem; text-align: center; }
.virtual-dropdown-spinner { width: .85rem; height: .85rem; flex: 0 0 auto; border: 2px solid #d8cec0; border-top-color: #6d3b12; border-radius: 50%; animation: virtual-dropdown-spin .7s linear infinite; }
@keyframes virtual-dropdown-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .virtual-dropdown-spinner { animation: none; }
}
@media (max-width: 760px) {
    .virtual-dropdown-panel,
    .find .virtual-dropdown-panel { min-width: 0; }
    /* The header search takes the full header width on mobile, so its results
       panel matches the input instead of shrinking to the widest result. */
    .find .virtual-dropdown-panel { left: 0; right: 0; }
}

/* 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; }
.dash-nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: .2rem; }
.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(min(20rem, 100%), 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; }
.gallery-preview .top { margin: -.6rem 0 .6rem; }
.gallery-preview .gallery-grid { grid-template-columns: 1fr; }

/* Currency picker and money display. The symbol chip is the dropdown icon. */
.currency-icon { display: inline-flex; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 50%; font-size: .68rem; font-weight: 700; line-height: 1; }
.currency-icon.is-fiat { background: #efe6d8; color: #6d3b12; }
.currency-icon.is-crypto { background: #e5efe7; color: #15803d; }
.virtual-dropdown-option.is-currency .virtual-dropdown-sub { font-variant-numeric: tabular-nums; }
.virtual-dropdown-option.is-currency .virtual-dropdown-trailing { font-variant-numeric: tabular-nums; }
.currency-dialog:has(.virtual-dropdown.is-open) { overflow: visible; }
.currency-dialog:has(.virtual-dropdown.is-open) .dialog-body { overflow: visible; }
.client-assign-dialog:has(.virtual-dropdown.is-open) { overflow: visible; }
.client-assign-dialog:has(.virtual-dropdown.is-open) .dialog-body { overflow: visible; }
.currency-dialog:has(.virtual-dropdown.is-open) .dialog-head { border-top-left-radius: 3px; border-top-right-radius: 3px; }
.order-number { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.order-filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .4rem 0 .8rem; }
.order-filter { display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .45rem; border: 1px solid #d3c2a9; border-radius: 1rem; background: #fff; color: #5e564c; font-size: .78rem; cursor: pointer; }
.order-filter:has(input:checked) { border-color: #8a5a2b; background: #f4ebdc; color: #4a341e; }
.order-filter input { margin: 0; accent-color: #6d3b12; }
.order-status.is-placed { border-color: #d3c2a9; background: #efe6d8; color: #6d3b12; }
.order-status.is-paid { border-color: #b9d3c2; background: #e5efe7; color: #1f5a38; }
.order-status.is-fulfilled { border-color: #afc8de; background: #e6eef6; color: #1d4e82; }
.order-status.is-cancelled { border-color: #ef4444; background: #fee2e2; color: #b91c1c; }
.order-status.is-refunded { border-color: #cbbfda; background: #eee8f5; color: #5b4178; }
.order-client { display: block; margin-top: .1rem; font-size: .72rem; }
.client-detail-main { min-width: 0; }
.client-order-stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.client-contact { display: flex; flex-direction: column; gap: .05rem; }
.client-contact-line { min-width: 0; overflow-wrap: anywhere; }
.client-last-order { display: flex; flex-direction: column; gap: .05rem; }
.client-last-order-date { font-size: .76rem; }
.open-order-list { display: flex; flex-direction: column; gap: .45rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.open-orders-actions { display: inline-flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.open-order-row { display: flex; flex-direction: column; gap: .12rem; padding-bottom: .4rem; border-bottom: 1px solid #e9ddc9; }
.open-order-row:last-child { padding-bottom: 0; border-bottom: 0; }
.open-order-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; min-width: 0; }
.open-order-head .order-number { min-width: 0; }
.open-order-total { flex: 0 0 auto; font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.open-order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .72rem; }
.open-order-meta .badge { font-size: .6rem; }
.manage-currency { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: .2rem 0; line-height: 1.4; }
.manage-currency .info-hint { display: inline-flex; align-items: center; }
.manage-currency .info-hint-trigger { width: .95rem; height: .95rem; font-size: .62rem; }
.favicon-card { grid-column: 1 / -1; }
.favicon-help { margin: .15rem 0 .55rem; font-size: .8rem; }
.favicon-layout { min-width: 0; }
.favicon-upload { min-width: 0; }
@media (min-width: 1024px) {
    .favicon-layout.has-results { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 2rem; align-items: center; }
    .favicon-layout.has-results .favicon-results { margin-top: 0; padding-top: 0; border-top: 0; }
}
.favicon-results { min-width: 0; margin-top: .7rem; padding-top: .6rem; border-top: 1px solid #e2d9cc; }
.favicon-pending { margin: 0; font-size: .8rem; }
.favicon-error { color: #8a2410; }
.favicon-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.25rem, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.favicon-variant { display: flex; align-items: flex-start; gap: .4rem; min-width: 0; padding: .35rem; border: 1px solid #d9e5d7; border-radius: .35rem; background: rgba(255, 255, 255, .66); }
.favicon-preview { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; padding: 0; overflow: hidden; border: 0; border-radius: .25rem; background: #fff; cursor: zoom-in; }
.favicon-preview:focus-visible { outline: 2px solid #6d3b12; outline-offset: 1px; }
.favicon-preview img { display: block; width: auto; height: auto; max-width: 2rem; max-height: 2rem; }
.favicon-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.favicon-size { font-size: .78rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.favicon-use { color: #5e564c; font-size: .72rem; }
.favicon-formats { color: #8a7d6b; font-size: .68rem; }
.account-dialog.favicon-view-dialog { width: calc(100vw - 2rem); max-width: calc(100vw - 2rem); height: calc(100dvh - 2rem); max-height: calc(100dvh - 2rem); margin: auto; }
.favicon-view-dialog .dialog-body { display: flex; flex-direction: column; gap: .5rem; min-height: 0; padding-top: .5rem; }
.favicon-view { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 0; max-width: 100%; overflow: hidden; }
.favicon-view-image { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.favicon-view-dialog .favicon-view-meta { flex: 0 0 auto; margin: 0; text-align: center; font-size: .78rem; }
.autoload-list { min-width: 0; }
.autoload-sentinel { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2rem; margin: .5rem 0 1rem; color: #8a7d6b; font-size: .82rem; }
.autoload-hint { visibility: hidden; }
.autoload-end { margin: .4rem 0 1rem; font-size: .78rem; }

/* Products, price input, and the reusable image collection manager. */
.table-sort { color: #5e564c; text-decoration: none; white-space: nowrap; }
.table-sort:hover, .table-sort:focus-visible { color: #6d3b12; text-decoration: underline; }
.table-sort.is-active { color: #3a2a1b; }
.table-sort-arrow { display: inline-block; min-width: .7rem; }
.product-slug { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.product-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin: .2rem 0 .4rem; }
.product-title-row h1 { margin: 0; }
.price-input { display: flex; align-items: stretch; width: 100%; max-width: 18rem; box-sizing: border-box; border: 1px solid #c8bfb0; background: #fff; }
.price-input:focus-within { outline: 2px solid #6d3b12; outline-offset: 1px; }
.price-input-symbol { display: flex; align-items: center; flex: 0 0 auto; padding: 0 .5rem; border-right: 1px solid #e2d9cc; background: #f7f2e9; color: #5e564c; font-variant-numeric: tabular-nums; }
.price-input input { flex: 1 1 auto; min-width: 0; width: 100%; box-sizing: border-box; padding: .3rem .45rem; border: 0; background: transparent; color: #1c1915; font: inherit; }
.price-input input:focus { outline: 0; }
.image-manager { --image-tile-min: 12.5rem; --image-tile-max: 1fr; position: relative; }
.image-manager.is-tile-small { --image-tile-min: 8.5rem; --image-tile-max: 10rem; }
.image-manager.is-tile-large { --image-tile-min: 16rem; --image-tile-max: 22rem; }
.image-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--image-tile-min), var(--image-tile-max))); gap: .6rem; list-style: none; margin: .4rem 0 .8rem; padding: 0; }
.image-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid #e2d9cc; background: #fff; }
.image-card.is-dragging { opacity: .35; }
.image-card.is-drop-target { border-color: #6d3b12; box-shadow: 0 0 0 2px #6d3b12; }
.image-drop-label { position: absolute; top: .35rem; left: .35rem; z-index: 2; padding: .15rem .45rem; border-radius: .2rem; background: #6d3b12; color: #fff; font-size: .68rem; font-weight: 650; }
.image-card-preview { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #f7f2e9; }
.image-card-preview.is-draggable { cursor: grab; }
.image-manager.is-dragging .image-card-preview.is-draggable { cursor: grabbing; }
.image-card-preview img { display: block; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.image-card-body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .4rem .5rem; }
.image-card-name { font-weight: 650; overflow-wrap: anywhere; }
.image-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: #8a7d6b; font-size: .72rem; }
.image-main-badge { padding: .12rem .55rem; border-color: #6d3b12; background: #6d3b12; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.image-card-actions { display: flex; align-items: center; gap: .15rem; padding: 0 .35rem .35rem; }
.image-drag { display: inline-flex; align-items: center; margin-right: auto; color: #8a7d6b; cursor: grab; }
.image-drag-icon { width: 1rem; height: 1rem; }
.image-single-spacer { margin-right: auto; }
.image-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: .2rem; background: none; color: #8a7d6b; cursor: pointer; }
.image-icon-button:hover:not(:disabled) { background: #f1e9db; color: #6d3b12; }
.image-icon-button.danger:hover:not(:disabled) { color: #8a2410; }
.image-icon-button:focus-visible { outline: 2px solid #6d3b12; outline-offset: 1px; }
.image-icon-button:disabled { opacity: .45; cursor: wait; }
.image-action-icon { width: .85rem; height: .85rem; }
.image-drop-overlay { position: absolute; inset: -.25rem; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: 1rem; border: 2px dashed #6d3b12; border-radius: .35rem; background: rgba(251, 248, 243, .95); color: #3a2a1b; text-align: center; pointer-events: none; }
.image-drop-icon { width: 1.7rem; height: 1.7rem; color: #6d3b12; }
.image-drop-title { font-size: 1rem; font-weight: 700; }
.image-drop-meta { color: #8a7d6b; font-size: .78rem; }
.image-add { position: relative; display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.image-add-button { display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; width: 100%; box-sizing: border-box; padding: 0; overflow: hidden; border: 2px dashed #c8bfb0; border-radius: .25rem; background: #fbf8f3; color: #6d3b12; font: inherit; text-align: center; cursor: pointer; }
.image-add-button:hover:not(:disabled) { border-color: #8a7d6b; background: #f7f2e9; }
.image-add-button:focus-visible { outline: 2px solid #6d3b12; outline-offset: 2px; }
.image-add-button:disabled { cursor: default; }
.image-add-preview { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f7f2e9; }
.image-add-plus { font-size: 2.4rem; font-weight: 300; line-height: 1; }
.image-add-body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; padding: .45rem .5rem .55rem; }
.image-add-label { font-weight: 650; }
.image-add-hint { color: #8a7d6b; font-size: .72rem; }
/* The profile limits sit inside the dashed add tile, so the grid has no separate
   limits line above it. The text is small but stays readable at the default
   medium tile width. */
.image-add-limits { color: #6b6053; font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.image-add-web { display: flex; align-items: center; justify-content: center; gap: .3rem; width: 100%; box-sizing: border-box; padding: .28rem .4rem; border: 1px solid #d8cec0; border-radius: .25rem; background: #fff; color: #5e564c; font: inherit; font-size: .75rem; cursor: pointer; }
.image-add-web:hover:not(:disabled) { border-color: #8a7d6b; background: #f7f2e9; color: #6d3b12; }
.image-add-web:focus-visible { outline: 2px solid #6d3b12; outline-offset: 2px; }
.image-add-web:disabled { cursor: default; }
.image-add-web-icon { width: .85rem; height: .85rem; }
.image-pick-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.image-pending { background: #fbf8f3; }
.image-pending .image-card-preview {
    cursor: default;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #ded7ca 25%, transparent 25%, transparent 75%, #ded7ca 75%),
        linear-gradient(45deg, #ded7ca 25%, transparent 25%, transparent 75%, #ded7ca 75%);
    background-size: 1rem 1rem;
    background-position: 0 0, .5rem .5rem;
}
.image-draft-badge { position: absolute; top: .35rem; left: .35rem; z-index: 2; padding: .12rem .45rem; border: 1px solid #8a7d6b; border-radius: .2rem; background: rgba(255, 255, 255, .94); color: #5e564c; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.image-pending-label { margin-right: auto; color: #5e564c; font-size: .72rem; font-weight: 650; }
.image-pending-name { display: flex; flex-direction: column; gap: .1rem; color: #5e564c; font-size: .72rem; }
.image-pending-name .muted { font-weight: 600; }
.image-pending-name input { box-sizing: border-box; width: 100%; font: inherit; padding: .2rem .35rem; border: 1px solid #c8bfb0; background: #fff; color: #1c1915; }
.image-pending-original { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; color: #8a7d6b; font-size: .72rem; }
.image-pending-original s { overflow-wrap: anywhere; }
.image-pending-meta { color: #8a7d6b; font-size: .72rem; }
.image-upload-actions { display: flex; justify-content: flex-end; margin-top: .4rem; }
.image-manager.is-single .image-upload-actions { display: grid; justify-content: start; grid-template-columns: repeat(auto-fill, minmax(var(--image-tile-min), var(--image-tile-max))); gap: .6rem; }
.image-manager.is-single .image-upload-actions > button { grid-column: 1; justify-self: center; }
.image-upload-spinner { display: inline-block; width: .75rem; height: .75rem; margin-right: .25rem; vertical-align: -.1rem; border: 2px solid #d8cec0; border-top-color: #6d3b12; border-radius: 50%; animation: virtual-dropdown-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) {
    .image-upload-spinner { animation: none; }
}
@media (max-width: 760px) {
    .image-manager:not(.is-tile-small) .image-list { grid-template-columns: 1fr; }
}
.virtual-dropdown-option.is-product .virtual-dropdown-icon { color: #8a5a2b; }

/* The read-only image gallery: a fixed main frame over a thumbnail grid. */
.image-gallery { min-width: 0; }
.image-gallery-main { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid #e5dccd; border-radius: .35rem; background: #fff; touch-action: pan-y; }
.image-gallery-main-image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-gallery-counter { position: absolute; top: .45rem; right: .45rem; display: none; padding: .1rem .45rem; border-radius: 999px; background: rgba(28, 25, 21, .74); color: #fff; font-size: .72rem; font-variant-numeric: tabular-nums; }
.image-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: .4rem; margin-top: .5rem; }
.image-gallery-thumb { display: block; aspect-ratio: 1; padding: 0; overflow: hidden; border: 2px solid #e5dccd; border-radius: .25rem; background: #f7f2e9; cursor: pointer; }
.image-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-gallery-thumb:hover { border-color: #c8a06a; }
.image-gallery-thumb:focus-visible { outline: 2px solid #6d3b12; outline-offset: 1px; }
.image-gallery-thumb.is-active { border-color: #6d3b12; box-shadow: 0 0 0 1px #6d3b12; }
@media (max-width: 900px) {
    .image-gallery-counter { display: inline-flex; align-items: center; }
}

/* Product detail aside: the compact log and the low-priority danger zone. */
.product-aside-stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.product-log-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin: .1rem 0; font-size: .78rem; }
.product-log-row .muted { flex: 0 0 auto; }

/* Public shop. The storefront is a separate public surface: its own header,
   product cards, and a narrow cart strip. The staff site keeps its existing
   layout and has no cart. */
.shop-header { position: sticky; top: 0; z-index: 20; background: rgba(253, 252, 249, .96); border-bottom: 1px solid #e5dccd; backdrop-filter: blur(6px); }
.shop-header-inner { display: flex; align-items: center; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: .65rem 1rem; }
.shop-brand { flex: 0 0 auto; color: #3b2a18; font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.shop-brand:hover { color: var(--link-hover-color); }
.shop-brand + .shop-nav-menu { margin-left: .5rem; }
.shop-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .35rem; margin-left: auto; font-size: .86rem; }
.shop-nav > a { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border-radius: .35rem; color: var(--link-color); text-decoration: none; }
.shop-user-menu { position: relative; }
.shop-user-menu-trigger { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem; border: 0; border-radius: .35rem; background: none; color: #3b2a18; font: inherit; cursor: pointer; }
.shop-nav > a:hover,
.shop-user-menu-trigger:hover,
.shop-user-menu-trigger[aria-expanded="true"] { background: #f0e7d8; color: var(--link-hover-color); text-decoration: none; }
.shop-user-menu-trigger:focus-visible { outline: 2px solid var(--link-hover-color); outline-offset: 2px; }
.shop-user-menu-chevron { width: .72rem; height: .72rem; flex: 0 0 auto; transition: transform .15s ease; }
.shop-user-menu-chevron.is-open { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    .shop-user-menu-chevron { transition: none; }
}
.shop-cart-link { font-weight: 650; }
.shop-cart-icon { width: 1rem; height: 1rem; }
.shop-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: #e3d3ba; color: #6d3b12; font-size: .68rem; font-weight: 700; }
.shop-main { max-width: 1200px; margin: 0 auto; padding: 1.4rem 1rem 3rem; }
.shop-with-strip { display: grid; grid-template-columns: minmax(0, 1fr) 216px; gap: 1.4rem; align-items: start; }
.shop-with-strip:not(:has(.shop-cart-strip)) { grid-template-columns: minmax(0, 1fr); }
.shop-content { min-width: 0; }
.shop-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.shop-product-card { display: flex; flex-direction: column; gap: .35rem; padding: .75rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(60, 45, 25, .05); }
.shop-product-card:hover { border-color: #c8bfb0; box-shadow: 0 3px 10px rgba(60, 45, 25, .09); }
.shop-product-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .25rem; background: #f7f2e9; }
.shop-product-image.is-placeholder { display: flex; align-items: center; justify-content: center; color: #c8bfb0; }
.shop-product-image.is-placeholder svg { width: 2.4rem; height: 2.4rem; }
.shop-product-name { color: #3b2a18; font-weight: 650; }
.shop-product-price { color: #6d3b12; font-variant-numeric: tabular-nums; }
.shop-product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.shop-product-info { min-width: 0; }
.shop-product-info .shop-description { margin: 0; }
.shop-product-info .shop-price { margin: .9rem 0 0; }
@media (min-width: 901px) {
    .shop-product-layout.has-gallery { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.4rem; }
    .shop-product-layout.has-gallery .shop-product-gallery { grid-column: 1; grid-row: 1; }
    .shop-product-layout.has-gallery .shop-product-info { grid-column: 2; grid-row: 1; }
}
.shop-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; font-size: 1rem; font-weight: 400; }
.shop-price-label { color: #8a7d6b; font-size: .78rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.shop-price-value { color: #6d3b12; font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-description { max-width: 65ch; white-space: pre-line; line-height: 1.55; }
.shop-description-rich { white-space: normal; }
.shop-description-rich .rich-row { margin-bottom: 1rem; }
.shop-description-rich .rich-row:last-child { margin-bottom: 0; }
.shop-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin-top: 1rem; padding: .7rem .8rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; }
.shop-add-form .shop-qty-field { display: inline-flex; flex-direction: row; align-items: center; gap: .45rem; margin: 0; color: #5e564c; font-size: .8rem; }
.shop-add-form .field-caption { flex: 0 0 auto; }
.shop-add-form input[type="number"] { width: 4.5rem; height: 2rem; box-sizing: border-box; padding: .25rem .4rem; border: 1px solid #c8bfb0; border-radius: .25rem; background: #fff; color: #1c1915; font: inherit; line-height: 1.35; }
.shop-add-form .button-link { display: inline-flex; align-items: center; justify-content: center; height: 2rem; box-sizing: border-box; padding: 0 .8rem; }
/* The flying copy of the add block: out of the layout, above the page, and
   immune to the pointer and to focus. */
.shop-cart-flight { position: fixed; z-index: 900; box-sizing: border-box; margin: 0; box-shadow: 0 10px 26px rgba(60, 45, 25, .2); pointer-events: none; will-change: transform, opacity; }
.shop-cart-flight input, .shop-cart-flight button { pointer-events: none; }
.shop-in-cart { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .65rem .8rem; border: 1px solid #b7d7c1; border-radius: .4rem; background: #f0f9f3; color: #14532d; }
.shop-in-cart-icon { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 999px; background: #dff0df; color: #1d6b35; }
.shop-in-cart-cart { width: 1.2rem; height: 1.2rem; }
.shop-in-cart-check { position: absolute; top: -.1rem; right: -.1rem; display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border-radius: 999px; background: #2f9e44; color: #fff; box-shadow: 0 0 0 2px #f0f9f3; }
.shop-in-cart-check svg { width: .65rem; height: .65rem; }
.shop-in-cart-title { font-size: .86rem; }
.shop-in-cart-remove { flex: 0 0 auto; margin-left: auto; }
.shop-not-for-sale { padding: 1rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; color: #5e564c; }
.shop-cart-strip { position: sticky; top: 4.2rem; display: flex; flex-direction: column; gap: .55rem; padding: .7rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; box-shadow: 0 2px 8px rgba(60, 45, 25, .06); }
.shop-cart-strip.is-empty { opacity: .9; }
.shop-cart-strip-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .45rem; border-bottom: 1px solid #f0e8db; }
.shop-cart-strip-title { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; }
.shop-cart-total { color: #6d3b12; font-variant-numeric: tabular-nums; }
.shop-cart-lines { display: flex; flex-direction: column; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.shop-cart-line { display: flex; flex-direction: column; gap: .3rem; padding: .4rem; border: 1px solid transparent; border-radius: .3rem; animation: shop-cart-line-in .3s ease-out both; }
/* A line that mounts after an add arrives with the flight instead of popping. */
@keyframes shop-cart-line-in {
    from { opacity: 0; transform: translateY(-.35rem); }
    to { opacity: 1; transform: none; }
}
.shop-cart-line.is-current { border-color: #b7d7c1; background: #f0f9f3; }
.shop-cart-line.is-unavailable { background: #fbf1ef; }
.shop-cart-line-link { display: flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; }
a.shop-cart-line-link:hover .shop-cart-line-title { color: var(--link-hover-color); text-decoration: underline; }
.shop-cart-thumb { width: 2.2rem; height: 2.2rem; flex: 0 0 2.2rem; border-radius: .2rem; object-fit: cover; background: #f7f2e9; }
.shop-cart-thumb.is-placeholder { display: block; }
.shop-cart-line-text { display: flex; flex-direction: column; min-width: 0; }
.shop-cart-line-title { overflow: hidden; font-size: .78rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.shop-cart-line-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; color: #8a7d6b; font-size: .72rem; }
.shop-cart-controls { display: flex; align-items: center; justify-content: flex-end; gap: .15rem; }
.account-form .shop-icon-button,
.shop-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 1.65rem; height: 1.65rem; box-sizing: border-box; padding: 0; border: 1px solid #d8cec0; border-radius: .2rem; background: #fff; color: #5c4a37; font-size: 0; line-height: 0; cursor: pointer; }
.account-form .shop-icon-button svg,
.shop-icon-button svg { display: block; flex: 0 0 auto; width: .85rem; height: .85rem; }
.shop-icon-button:hover:not(:disabled) { background: #f7f2e9; color: #6d3b12; }
.shop-icon-button.danger:hover:not(:disabled) { color: #8a2410; }
.shop-icon-button:disabled { opacity: .4; cursor: default; }
.shop-qty { min-width: 1.3rem; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; }
.shop-cart-strip-link { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; font-size: .85rem; font-weight: 650; }
.shop-cart-empty { margin: .2rem 0; color: #8a7d6b; font-size: .8rem; text-align: center; }
@media (prefers-reduced-motion: reduce) {
    .shop-cart-line { animation: none; }
}
.shop-warning-mark { padding: .05rem .3rem; border-radius: .2rem; background: #f8dcd5; color: #8a2410; font-size: .66rem; font-weight: 650; }
.shop-warning-mark.is-changed { background: #f8edc9; color: #7a5a0a; }
.shop-cart-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.1rem; align-items: start; }
.shop-checkout-card, .shop-account-card { padding: .9rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; }
.shop-cart-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .8rem; }
.shop-checkout-card h2, .shop-account-card h2, .shop-order-summary h2, .shop-order-lines-card h2 { margin-top: 0; font-size: 1.05rem; }
.shop-cart-total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid #f0e8db; font-size: 1rem; }
.shop-cart-total-line strong { color: #6d3b12; font-variant-numeric: tabular-nums; }
.shop-checkout-blocked { padding: .5rem .6rem; border-radius: .3rem; background: #f8edc9; color: #7a5a0a; font-size: .8rem; }
.shop-order-form .form-field { margin-bottom: .55rem; }
.shop-name-row, .shop-contact-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.shop-contact-field { min-width: 0; }
.shop-address-field { min-width: 0; }
@media (min-width: 761px) {
    .shop-name-row, .shop-contact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.shop-pickup-instruction { display: block; padding: .35rem .45rem; border: 1px solid #e5dccd; border-radius: .2rem; background: #fbf8f3; color: #5e564c; font-size: .82rem; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.shop-payment-choice, .shop-shipping-choice { margin: .7rem 0 1rem; padding: .6rem .7rem; border: 1px solid #e5dccd; border-radius: .3rem; }
.shop-payment-choice legend, .shop-shipping-choice legend { padding: 0 .3rem; color: #8a7d6b; font-size: .76rem; }
.shop-payment-choice .shop-payment-option, .shop-shipping-choice .shop-payment-option { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: .6rem; padding: .4rem .6rem; border-radius: .3rem; text-align: left; cursor: pointer; }
.shop-payment-option + .shop-payment-option { margin-top: .2rem; }
.shop-payment-option:hover { background: #fbf8f3; }
.shop-payment-option input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: #6d3b12; }
@media (max-width: 760px) {
    .shop-payment-choice, .shop-shipping-choice { padding: .75rem .7rem; }
    .shop-payment-choice .shop-payment-option, .shop-shipping-choice .shop-payment-option { min-height: 2.2rem; padding: .5rem .7rem; gap: .7rem; }
    .shop-payment-option + .shop-payment-option { margin-top: .3rem; }
    .shop-payment-option input { width: 1.3rem; height: 1.3rem; }
}
.shop-order-form .field-help { margin: .15rem 0 .1rem; }
.payment-details { display: flex; flex-direction: column; gap: .15rem; }
.payid-instructions { margin: .35rem 0 0; color: #5e564c; font-size: .82rem; }
.payid-instructions p { margin: .18rem 0; }
.payid-instructions-label { font-weight: 650; }
.payid-instructions code { margin: 0 .3rem; padding: .1rem .3rem; border: 1px solid #d8cec0; border-radius: .2rem; background: #fbf8f3; overflow-wrap: anywhere; }
.shop-signed-in-note { width: 100%; max-width: 30rem; box-sizing: border-box; margin-top: .8rem; padding: .6rem .7rem; border: 1px solid #e5dccd; border-radius: .3rem; background: #fbf8f3; font-size: .82rem; }
.shop-signed-in-note p { margin: .2rem 0; }
.shop-signed-in-note .shop-order-user { display: inline; font-size: 0; white-space: nowrap; }
.shop-signed-in-note .shop-order-user .user-avatar { font-size: .82rem; vertical-align: -0.125em; }
.shop-signed-in-note .shop-order-user .user-icon { width: .9rem; height: .9rem; }
.shop-signed-in-note .shop-order-user .user-identity-name { margin-left: .2rem; font-size: .82rem; font-weight: 650; }
.shop-account-card { margin-top: 0; }
.shop-account-or { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: #8a7d6b; font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; }
.shop-account-or::before, .shop-account-or::after { content: ""; flex: 1 1 auto; border-top: 1px solid #e5dccd; }
.shop-account-card.is-compact { min-inline-size: 0; margin: 0; padding: .55rem .8rem .85rem; }
.shop-account-legend { padding: 0 .4rem; color: #3a2a1b; font-size: .82rem; font-weight: 650; }
.shop-account-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.shop-account-tab { min-height: 2.75rem; padding: .5rem .6rem; border: 1px solid var(--button-border); border-radius: .35rem; background: #f7f2e9; color: #4a3a28; font: inherit; font-weight: 650; cursor: pointer; }
.shop-account-tab:hover { background: var(--button-bg-hover); border-color: var(--button-border-hover); }
.shop-account-tab.is-active { border-color: #b6a58e; background: var(--button-bg); color: #3b2a18; box-shadow: inset 0 -3px 0 #6d3b12; }
.shop-account-tab:focus-visible { outline: 2px solid #6d3b12; outline-offset: 2px; }
.shop-account-panel { margin-top: .55rem; }
.shop-account-panel .account-form { margin: 0; }
.shop-cart-mobile-review { margin-top: .9rem; }
.shop-cart-mobile-review .shop-cart-strip { position: static; top: auto; box-shadow: none; }
.shop-cart-notice { width: 100%; max-width: 30rem; box-sizing: border-box; margin-top: .8rem; }
@media (max-width: 900px) {
    /* The stacked cart uses one page inset instead of a page inset plus a
       card border and card padding. Section cards lose their frame; the
       account fieldset keeps only the top rule its legend breaks. */
    .shop-cart-main > .shop-checkout-card {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    .shop-cart-main .shop-account-card.is-compact {
        margin: 0;
        padding: .35rem 0 0;
        border: 0;
        border-top: 1px solid #e5dccd;
        border-radius: 0;
        background: transparent;
    }
    .shop-cart-main .shop-account-legend { padding: 0 .5rem 0 0; }
    .shop-cart-mobile-review .shop-cart-strip {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }
    /* The payment button sits closer to the notice than to the cart above it,
       so the buyer reads the cart, pays, then meets the identity note. */
    .shop-cart-main .shop-order-form { margin-bottom: 0; }
    .shop-cart-mobile-review { margin-bottom: .4rem; }
    .shop-cart-notice,
    .shop-signed-in-note { margin-top: .6rem; }
}
.shop-order-warning { display: flex; gap: .8rem; margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid #e0b84a; border-radius: .4rem; background: #fdf3d1; color: #5c4408; }
.shop-order-warning h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.shop-order-warning p { margin: .25rem 0; }
.shop-order-warning-icon { width: 1.4rem; height: 1.4rem; flex: 0 0 1.4rem; }
.shop-order-link { overflow-wrap: anywhere; }
.shop-order-password code { padding: .1rem .3rem; border: 1px solid #d8cec0; border-radius: .2rem; background: #fff; font-size: .82rem; }
.shop-password-form { max-width: 25rem; margin-top: .6rem; }
.shop-order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.shop-order-summary, .shop-order-lines-card { padding: .9rem; border: 1px solid #e5dccd; border-radius: .4rem; background: #fff; }
.shop-order-lines { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0; padding: 0; list-style: none; }
.shop-order-line { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-bottom: .45rem; border-bottom: 1px solid #f0e8db; }
.shop-order-line:last-child { border-bottom: 0; }
.shop-order-line-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.shop-order-line-title { font-weight: 650; }
button.shop-order-line-title { padding: 0; border: 0; background: none; color: var(--link-color); font: inherit; font-weight: 650; text-align: left; text-decoration: underline; cursor: pointer; }
button.shop-order-line-title:hover,
button.shop-order-line-title:focus-visible { color: var(--link-hover-color); }
.badge.is-on-sale { border-color: #9bc7a7; background: #dff0df; color: #245f24; }
.badge.is-off-sale { border-color: #d8d3ca; background: #eee9e1; color: #6b6258; }
.product-availability { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; padding-bottom: .55rem; border-bottom: 1px solid #f0e8db; }
@media (max-width: 900px) {
    .shop-with-strip, .shop-cart-main, .shop-order-grid { grid-template-columns: 1fr; }
    .shop-cart-strip { position: static; order: 2; }
    .shop-header-inner { flex-wrap: wrap; }
    .shop-nav { margin-left: auto; }
}

.worker-name { display: flex; flex-direction: column; gap: .05rem; }
.worker-name .muted { font-size: .78rem; }
.worker-error { max-width: 24rem; overflow-wrap: anywhere; font-size: .82rem; }

@media (max-width: 760px) {
    .dev-ribbon { width: 1.05rem; }
    .dev-ribbon span { font-size: .48rem; }
    .top.is-dev { padding-right: 1.45rem; }
    .shop-header.is-dev .shop-header-inner { padding-right: 2.05rem; }
    .shop-header-inner { padding: .45rem .6rem; gap: .5rem; }
    .shop-brand { font-size: 1.05rem; }
    .shop-nav { font-size: .82rem; }
}

/* Content pages and the block content schema. */
.page-status-label { border-color: #d5d0c7; background: #f1efea; color: #6b6258; }
.page-status-label.is-published { border-color: #9bc7a7; background: #dff0df; color: #245f24; }
.page-status-dot { width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 50%; background: #b3aea5; }
.page-status-dot.is-published { background: #22a447; }
.page-title-cell { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.page-open-button:disabled { cursor: default; }
.content-page { max-width: none; margin: 0; padding: 0; }
.shop-content.content-page { max-width: none; }
.content-page-body { line-height: 1.62; }
.page-title-icon-preview { width: 1.9rem; height: 1.9rem; opacity: .55; }
.page-heading h1.is-preview { color: #6b6258; }
.content-page-heading-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; line-height: 1; }
.page-publishing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .35rem; }
.page-publishing-actions .inline-form,
.page-publishing-actions .inline { display: inline-flex; align-items: center; margin: 0; }
.content-page-preview { padding: .2rem 0; }
.content-page-slug-help { margin: .1rem 0 .5rem; }
.content-page-slug-help p { margin: .2rem 0; }
.slug-preview { display: inline-block; border-bottom: 1px dashed #8a7d6b; color: #6d3b12; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; overflow-wrap: anywhere; }
.page-aside-stack { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }

.rich-content { --content-row-gap: 1.35rem; --content-column-gap: 1.35rem; --content-block-gap: .85rem; }
.rich-row { display: grid; gap: var(--content-column-gap); margin: 0 0 var(--content-row-gap); align-items: start; }
.rich-row:last-child { margin-bottom: 0; }
.rich-row[data-layout="1"] { grid-template-columns: minmax(0, 1fr); }
.rich-row[data-layout="1-1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rich-row[data-layout="1-2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.rich-row[data-layout="2-1"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.rich-row[data-layout="1-1-1"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rich-row[data-layout="1-2-1"] { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.rich-row[data-layout="2-1-1"] { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
.rich-row[data-layout="1-1-2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.rich-column { display: flex; flex-direction: column; gap: var(--content-block-gap); min-width: 0; }
.rich-block { margin: 0; }
.rich-block--text { line-height: 1.62; }
.rich-block--text p { margin: 0 0 .75em; }
.rich-block--text p:last-child { margin-bottom: 0; }
.rich-block--text strong, .rich-block--text b { font-weight: 700; }
.rich-block--text em, .rich-block--text i { font-style: italic; }
.rich-uppercase { text-transform: uppercase; }
.rich-block--image img { display: block; max-width: 100%; height: auto; border-radius: .4rem; }

@media (max-width: 960px) {
    .rich-row[data-layout="1-1-1"],
    .rich-row[data-layout="1-2-1"],
    .rich-row[data-layout="2-1-1"],
    .rich-row[data-layout="1-1-2"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .rich-row[data-layout="1-1-1"] > .rich-column:nth-child(3),
    .rich-row[data-layout="1-2-1"] > .rich-column:nth-child(3),
    .rich-row[data-layout="2-1-1"] > .rich-column:nth-child(3),
    .rich-row[data-layout="1-1-2"] > .rich-column:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .rich-row { grid-template-columns: minmax(0, 1fr) !important; }
    .rich-row > .rich-column { grid-column: auto !important; }
}

/* The reusable content editor. */
.content-editor { border: 1px solid #e5dccd; border-radius: .5rem; background: #fff; overflow: hidden; }
.content-editor-toolbar { display: flex; flex-wrap: wrap; gap: .45rem .8rem; padding: .55rem .65rem; border-bottom: 1px solid #f0e8db; background: #fbf8f2; }
.content-editor-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.content-editor-button { font: inherit; font-size: .78rem; padding: .2rem .5rem; border: 1px solid var(--button-border); border-radius: .3rem; background: var(--button-bg); color: #2c261f; cursor: pointer; }
.content-editor-button:hover:not(:disabled) { background: var(--button-bg-hover); border-color: var(--button-border-hover); }
.content-editor-button:disabled { opacity: .45; cursor: default; }
.content-editor-layout { display: inline-flex; align-items: center; gap: .3rem; color: #6b6258; font-size: .78rem; }
.content-editor-layout select { font: inherit; font-size: .78rem; padding: .15rem .3rem; border: 1px solid var(--button-border); border-radius: .25rem; background: #fff; }
.content-editor-file { display: none; }
.content-editor-status:empty { display: none; }
.content-editor-canvas { min-height: 3.5rem; padding: 1rem; }
.content-editor-canvas:has(.rich-content:not(:empty)) { min-height: 14rem; }
.content-editor-canvas .rich-content:empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 3rem; }
.content-editor-canvas .rich-content:empty::before { content: "Empty Content"; color: #a89e90; font-weight: 700; letter-spacing: .04em; }
.content-editor-canvas .rich-content:empty[data-empty-hint]::after { content: attr(data-empty-hint); max-width: 28rem; color: #8a7d6b; font-size: .8rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; text-align: center; }
.content-editor-canvas .rich-row { padding: .35rem; border: 1px dashed transparent; border-radius: .35rem; }
.content-editor-canvas .rich-row.is-selected { border-color: #d8c8b0; background: #fffdf8; }
.content-editor-canvas .rich-block.is-selected { outline: 1px solid #c99a5b; outline-offset: 2px; }
.content-editor-canvas .rich-block--text:focus { outline: 1px solid #d8c8b0; outline-offset: 2px; }
.content-editor-canvas .rich-block--image { cursor: pointer; }
.content-editor-canvas .rich-block--image.is-selected img { outline: 2px solid #c99a5b; outline-offset: 2px; }
.content-editor-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid #f0e8db; }
.content-editor-actions { display: inline-flex; flex-wrap: wrap; gap: .4rem; }
.content-editor-actions .button-link.button-primary,
.content-page-details .button-link.button-primary { border-color: #315d41; background: #3f7350; color: #fff; }
.content-editor-actions .button-link.button-primary:hover:not(:disabled),
.content-page-details .button-link.button-primary:hover:not(:disabled) { border-color: #274c35; background: #315d41; color: #fff; }
.content-editor-actions .button-link.button-danger { border-color: #a84835; background: #bf5742; color: #fff; }
.content-editor-actions .button-link.button-danger:hover:not(:disabled) { border-color: #923a2b; background: #a84835; color: #fff; }
.content-editor-actions .button-link:disabled,
.content-editor-actions .button-link:disabled:hover,
.content-page-details .button-link:disabled,
.content-page-details .button-link:disabled:hover { border-color: #e3dbcf; background: #f3efe7; color: #a89e90; box-shadow: none; cursor: default; }
.content-editor-dirty { color: #8a5a00; font-size: .8rem; }
.content-editor-loading, .content-editor-error { margin: 0; padding: .8rem 1rem; }
.content-editor-error { color: #8a2410; }

/* Menus: the dashboard positions, the editor's ordered button rows, and the
   public shop header dropdown and footer sections. */
.menu-positions { display: flex; flex-direction: column; gap: .1rem; }
.menu-position-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .6rem; padding: .45rem 0; border-bottom: 1px solid #f0e8db; }
.menu-position-row:last-child { border-bottom: 0; }
.menu-position-name { min-width: 4.25rem; color: #3b2a18; font-weight: 650; }
.menu-position-state { flex: 1 1 8rem; min-width: 0; color: #5e564c; font-size: .84rem; }
.menu-position-state.is-empty { color: #8a7d6b; font-style: italic; }
.menu-position-actions { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.menu-position-actions .inline { margin: 0; }
.menu-editor-empty-state { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: .8rem 0 .2rem; }
.menu-editor-empty { margin: 0; color: #a89e90; font-weight: 650; letter-spacing: .03em; text-align: center; }
.menu-editor-add-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.menu-editor-add-actions.is-below { margin-top: 1rem; }
.menu-editor-list { display: flex; flex-direction: column; gap: .65rem; }
.menu-editor-row { position: relative; min-width: 0; padding: .6rem .7rem; border: 1px solid #e5dccd; border-radius: .45rem; background: #fff; }
.menu-editor-row.is-dragging { opacity: .5; }
.menu-editor-row.is-drop-before::before,
.menu-editor-row.is-drop-after::after { content: ''; position: absolute; z-index: 2; left: 0; right: 0; height: .18rem; border-radius: 999px; background: #3f7350; pointer-events: none; }
.menu-editor-row.is-drop-before::before { top: -.38rem; }
.menu-editor-row.is-drop-after::after { bottom: -.38rem; }
.menu-editor-row-head { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; margin-bottom: .35rem; min-width: 0; cursor: grab; }
.menu-editor-row-head:active { cursor: grabbing; }
.menu-editor-row.is-group .menu-editor-row-head { margin-bottom: 0; }
.menu-editor-row-type { display: inline-flex; flex: 1 1 auto; align-items: center; gap: .35rem; min-width: 0; color: #2c261f; font-size: .8rem; font-weight: 650; }
.menu-editor-row-type-label { min-width: 0; overflow-wrap: anywhere; }
.menu-icon.menu-type-icon { flex: 0 0 auto; width: 1rem; height: 1rem; color: #8a7d6b; }
.menu-editor-row-controls { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .1rem; margin-left: auto; cursor: default; }
.menu-editor .image-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem; padding: 0; border: 0; border-radius: .2rem; background: none; box-shadow: none; color: #8a7d6b; cursor: default; }
.menu-editor .image-icon-button:hover:not(:disabled) { background: #f1e9db; color: #6d3b12; }
.menu-editor .image-icon-button.danger:hover:not(:disabled) { color: #8a2410; }
.menu-editor .image-icon-button:disabled { opacity: .4; cursor: default; }
.menu-editor-row-controls svg { display: block; width: .9rem; height: .9rem; }
.menu-move-icon.is-up { transform: rotate(180deg); }
.menu-editor-row-body { display: flex; flex-direction: column; gap: .08rem; min-width: 0; }
.menu-editor-row-target { color: #6b6258; font-size: .8rem; overflow-wrap: anywhere; }
.menu-editor-row-target a { color: var(--link-color); overflow-wrap: anywhere; }
.menu-editor-row-target a:hover { color: var(--link-hover-color); }
.menu-editor-children { position: relative; display: flex; flex-direction: column; gap: .45rem; min-width: 0; margin-left: .9rem; padding-left: .8rem; border-left: 2px solid #e5dccd; }
.menu-editor-children.is-drop-target { border-left-color: #3f7350; }
.menu-editor-children.is-root-drop-after::after { content: ''; position: absolute; z-index: 2; right: 0; bottom: -.38rem; left: 0; height: .18rem; border-radius: 999px; background: #3f7350; pointer-events: none; }
.menu-editor-group-drop, .menu-editor-root-drop { padding: .45rem .6rem; border: 1px dashed #d8cec0; border-radius: .35rem; color: #8a7d6b; font-size: .78rem; text-align: center; }
.menu-editor-group-drop.is-empty { background: #fff; }
.menu-editor-children.is-drop-target .menu-editor-group-drop,
.menu-editor-group-drop.is-drop-target,
.menu-editor-root-drop.is-drop-target { border-color: #3f7350; background: #eaf3ec; color: #315d41; }
.menu-editor-root-drop { margin-top: .55rem; }
.menu-editor .button-small { font-size: .8rem; padding: .12rem .4rem; }
.menu-button-dialog:has(.virtual-dropdown.is-open) { overflow: visible; }
.menu-button-dialog:has(.virtual-dropdown.is-open) .dialog-body { overflow: visible; }
.menu-button-dialog .virtual-dropdown { width: 100%; }
.menu-editor-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid #f0e8db; }
.menu-editor-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.menu-editor-actions .button-link.button-primary { border-color: #315d41; background: #3f7350; color: #fff; }
.menu-editor-actions .button-link.button-primary:hover:not(:disabled) { border-color: #274c35; background: #315d41; color: #fff; }
.menu-editor-actions .button-link.button-danger { border-color: #a84835; background: #bf5742; color: #fff; }
.menu-editor-actions .button-link.button-danger:hover:not(:disabled) { border-color: #923a2b; background: #a84835; color: #fff; }
.menu-editor-actions .button-link:disabled,
.menu-editor-actions .button-link:disabled:hover { border-color: #e3dbcf; background: #f3efe7; color: #a89e90; box-shadow: none; cursor: default; }
.menu-editor-dirty { color: #8a5a00; font-size: .8rem; }

.shop-nav-menu { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .35rem; }
.shop-nav-menu > a,
.shop-nav-group-trigger { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .55rem; border: 0; border-radius: .35rem; background: none; color: var(--link-color); font: inherit; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.shop-nav-menu > a:hover,
.shop-nav-group-trigger:hover,
.shop-nav-group-trigger[aria-expanded="true"] { background: #f0e7d8; color: var(--link-hover-color); }
.shop-nav-menu > a:focus-visible,
.shop-nav-group-trigger:focus-visible { outline: 2px solid var(--link-hover-color); outline-offset: 2px; }
.shop-nav-group { position: relative; }
.shop-nav-chevron { width: .72rem; height: .72rem; flex: 0 0 auto; transition: transform .15s ease; }
.shop-nav-chevron.is-open { transform: rotate(180deg); }
.shop-nav-panel { position: absolute; z-index: 30; top: calc(100% + .25rem); left: 0; display: flex; flex-direction: column; min-width: 12rem; max-width: min(20rem, calc(100vw - 2rem)); padding: .3rem; border: 1px solid #d8cec0; border-radius: .35rem; background: #fffdfa; box-shadow: 0 12px 32px rgba(28, 25, 21, .2); }
.shop-nav-panel a { display: block; padding: .35rem .5rem; border-radius: .25rem; color: var(--link-color); text-decoration: none; overflow-wrap: anywhere; }
.shop-nav-panel a:hover { background: #f0e7d8; color: var(--link-hover-color); }
.shop-nav-panel a:focus-visible { outline: 2px solid var(--link-hover-color); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .shop-nav-chevron { transition: none; }
}
.shop-footer { margin-top: 2.2rem; border-top: 1px solid #e5dccd; background: #f7f2e9; }
.shop-footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 1.2rem 2rem; max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 2rem; align-items: start; }
.shop-footer-section { min-width: 0; }
.shop-footer-heading { margin: 0 0 .45rem; color: #3b2a18; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.shop-footer-links { display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.shop-footer-links a { color: #5e564c; font-size: .86rem; text-decoration: none; overflow-wrap: anywhere; }
.shop-footer-links a:hover { color: var(--link-hover-color); text-decoration: underline; }
.shop-footer-links a:focus-visible { outline: 2px solid var(--link-hover-color); outline-offset: 2px; }
@media (max-width: 760px) {
    .menu-editor-row { padding: .5rem .5rem; }
    .menu-editor-row-type { gap: .25rem; font-size: .74rem; }
    .menu-icon.menu-type-icon { width: .9rem; height: .9rem; }
    .menu-editor-row-controls { gap: .02rem; }
    .menu-editor .image-icon-button { width: 1.35rem; height: 1.35rem; }
    .menu-editor-children { margin-left: .2rem; padding-left: .55rem; }
    .menu-editor-footer { align-items: flex-start; }
    .menu-editor-actions { width: 100%; }
    .menu-position-name { min-width: 0; }
    .menu-position-actions { width: 100%; margin-left: 0; }
    .shop-nav-panel { min-width: min(14rem, calc(100vw - 1.2rem)); }
}

/* User-created recipes */
.widget--warning { --widget-accent: #9a3d13; --widget-title-color: #6d2a0b; background: #fff0e7; }
.widget--save { --widget-accent: #2f6f45; --widget-title-color: #245237; background: #edf7ef; }
.widget--publish { --widget-accent: #6d3b12; --widget-title-color: #4b2a10; background: var(--widget-log-bg, #f5efe5); }
.page-heading-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.recipe-owner-badge { display: inline-block; margin-left: .4rem; padding: .05rem .35rem; border-radius: .3rem; background: #ede4d6; color: #6d3b12; font-size: .68rem; font-weight: 700; letter-spacing: .02em; vertical-align: .08em; }
.recipe-private-badge { display: inline-block; margin-left: .35rem; padding: .05rem .35rem; border-radius: .3rem; background: #f1e7dc; color: #7c5a3b; font-size: .68rem; font-weight: 700; letter-spacing: .02em; vertical-align: .08em; }
.recipe-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin: 0 0 .4rem; color: #5e564c; font-size: .9rem; }
.recipe-status.is-public { background: #e3f1e5; color: #2f6f45; }
.recipe-status.is-private { background: #f1e7dc; color: #7c5a3b; }
.recipe-source-note { margin: .2rem 0 .8rem; font-size: .85rem; }
.recipe-prose { margin: .8rem 0 1rem; }
.recipe-outro { margin-top: 1.4rem; }
.recipe-gallery { margin: 1rem 0 1.4rem; }
.recipe-all-ingredients { margin-top: 1.4rem; }
.recipe-stage-content { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #e8dfd2; }
.recipe-editor-account { margin: -.3rem 0 .8rem; }
.recipe-details,
.recipe-content-card,
.recipe-gallery-card,
.recipe-stage-editor { margin-bottom: 1rem; }
.recipe-gallery-card { margin-bottom: 1.4rem; }
.recipe-content-card > h2,
.recipe-gallery-card > h2 { margin-bottom: .6rem; }
/* The name, author, and detail fields share one three-column track so the
   author's left edge lands exactly on the third field column. */
.recipe-name-author-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: .8rem; }
.recipe-name-author-row > .form-field:first-child { grid-column: span 2; }
.recipe-details-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* The four editor section headings share the warm accent brown, so each block
   starts with a distinct coloured heading instead of default dark text. */
.recipe-content-card > h2,
.recipe-gallery-card > h2,
.recipe-stages-heading h2 { color: #6d3b12; font-weight: 700; letter-spacing: .01em; }
.recipe-stages { margin: 1.4rem 0 1rem; }
.recipe-stages-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.recipe-stages-heading h2 { margin: 0; }
/* A stage block matches the content editors: a white surface, the same warm
   hairline border, and one thin sand accent edge for separation. There is no
   drop shadow, so it reads as another editor surface rather than a raised card. */
.recipe-stage-editor { padding: .85rem .95rem 1rem calc(.95rem - 2px); border: 1px solid #e5dccd; border-left: 3px solid #d9c3a3; border-radius: .5rem; background: #fff; box-shadow: none; }
.recipe-stage-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .65rem; }
.recipe-stage-heading h3 { min-width: 0; margin: 0; color: #6d3b12; font-size: 1.25rem; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.recipe-stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .35rem; }
.recipe-stage-actions .image-icon-button svg,
.recipe-row-actions .image-icon-button svg { display: block; width: .9rem; height: .9rem; }
.recipe-row-actions .image-icon-button { width: 1.35rem; height: 1.35rem; }
.recipe-ingredient-wrap { margin-top: .55rem; }
.recipe-ingredient-editor { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .84rem; }
.recipe-ingredient-editor th:nth-child(1),
.recipe-ingredient-editor td:nth-child(1) { width: 32%; }
.recipe-ingredient-editor th:nth-child(2),
.recipe-ingredient-editor td:nth-child(2) { width: 12%; }
.recipe-ingredient-editor th:nth-child(3),
.recipe-ingredient-editor td:nth-child(3) { width: 14%; }
.recipe-ingredient-editor th:nth-child(4),
.recipe-ingredient-editor td:nth-child(4) { width: 11%; }
.recipe-ingredient-editor th:nth-child(5),
.recipe-ingredient-editor td:nth-child(5) { width: 11%; }
.recipe-ingredient-editor th:nth-child(6),
.recipe-ingredient-editor td:nth-child(6) { width: 8%; }
.recipe-ingredient-editor th:nth-child(7),
.recipe-ingredient-editor td:nth-child(7) { width: 12%; }
.recipe-ingredient-editor th { padding: .25rem .3rem; border-bottom: 1px solid #ded4c6; color: #6b6053; font-size: .72rem; text-align: left; white-space: nowrap; }
.recipe-ingredient-editor th.num { text-align: right; }
.recipe-ingredient-heading { display: inline-flex; align-items: center; gap: .25rem; }
.recipe-ingredient-editor .recipe-ingredient-add { width: 1.25rem; height: 1.25rem; }
.recipe-ingredient-editor .recipe-ingredient-add svg { display: block; width: .8rem; height: .8rem; }
.recipe-ingredient-editor td { padding: .22rem .28rem; border-bottom: 0; vertical-align: middle; }
.recipe-ingredient-editor td.num { text-align: right; }
.recipe-ingredient-editor input[type="text"],
.recipe-ingredient-editor input:not([type]),
.recipe-ingredient-editor .virtual-dropdown-control { width: 100%; min-width: 5.5rem; box-sizing: border-box; padding: .28rem .35rem; border: 1px solid #d9cfc1; border-radius: .3rem; background: #fff; font: inherit; }
.recipe-ingredient-editor .virtual-dropdown-control { min-width: 0; }
.recipe-ingredient-editor td.num input { min-width: 4.5rem; text-align: right; }
.recipe-ingredient-editor input[type="radio"] { width: 1rem; height: 1rem; accent-color: #6d3b12; }
.recipe-row-actions { display: inline-flex; align-items: center; gap: .15rem; white-space: nowrap; }
.recipe-row-actions .link-button { padding: .1rem .2rem; font-size: .78rem; }
.recipe-stage-content-editor { margin-top: .55rem; }
.recipe-save-widget,
.recipe-publish-widget { margin-bottom: .75rem; }
/* The Save widget keeps the green tint but gains a stronger, greener shadow and
   a thin border so it reads above the page background. */
.recipe-save-widget { border: 1px solid #c7dccb; box-shadow: 0 1px 2px rgba(36, 82, 55, .12), 0 8px 20px rgba(36, 82, 55, .2); }
.recipe-save-status { display: flex; align-items: center; gap: .4rem; margin: .1rem 0 .4rem; }
.recipe-dirty { color: #9a3d13; font-weight: 700; }
.recipe-saved { color: #2f6f45; font-weight: 700; }
.recipe-save-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .6rem; }
.recipe-save-actions .button-link.button-primary { border-color: #315d41; background: #3f7350; color: #fff; }
.recipe-save-actions .button-link.button-primary:hover:not(:disabled) { border-color: #274c35; background: #315d41; color: #fff; }
.recipe-save-actions .button-link.button-danger { border-color: #a84835; background: #bf5742; color: #fff; }
.recipe-save-actions .button-link.button-danger:hover:not(:disabled) { border-color: #923a2b; background: #a84835; color: #fff; }
.recipe-save-actions .button-link:disabled,
.recipe-save-actions .button-link:disabled:hover { border-color: #e3dbcf; background: #f3efe7; color: #a89e90; box-shadow: none; cursor: default; }
.recipe-public-link { margin: .5rem 0; overflow-wrap: anywhere; }
.recipe-warning-lead { margin: 0 0 .35rem; color: #6d2a0b; }
.recipe-inline-auth { margin-top: .6rem; }
.recipe-auth-tabs { display: flex; gap: .35rem; margin-bottom: .45rem; }
.recipe-auth-tabs .button-link { padding: .15rem .45rem; border: 1px solid #e0cfbd; border-radius: .35rem; background: #fffaf3; font-size: .8rem; }
.recipe-auth-tabs .button-link.is-active { background: #f3e2d3; border-color: #caa27f; color: #6d3b12; }
.recipe-auth-submit { margin-top: .45rem; }
.detail-value { display: inline-block; padding: .2rem 0; color: #3a2a1b; }
@media (max-width: 900px) {
    .recipe-stage-heading { align-items: flex-start; flex-direction: column; }
    .recipe-stage-actions { width: 100%; }
}
@media (max-width: 760px) {
    .recipe-ingredient-editor thead { display: block; }
    .recipe-ingredient-editor thead tr { display: flex; align-items: center; }
    .recipe-ingredient-editor thead th { display: none; }
    .recipe-ingredient-editor thead th.recipe-ingredient-head { display: flex; position: static; margin-bottom: .35rem; padding: 0 0 .15rem; border-bottom: 1px solid #ded4c6; box-shadow: none; }
    .recipe-ingredient-editor,
    .recipe-ingredient-editor tbody,
    .recipe-ingredient-editor tr,
    .recipe-ingredient-editor td { display: block; width: 100%; }
    .recipe-name-author-row { grid-template-columns: 1fr; gap: .55rem; }
    .recipe-name-author-row > .form-field:first-child { grid-column: auto; }
    .recipe-details-fields { grid-template-columns: 1fr; }
    .recipe-ingredient-editor tr { margin-bottom: .5rem; padding: .35rem 0; border: 0; background: transparent; }
    .recipe-ingredient-editor tr:last-child { margin-bottom: 0; }
    .recipe-ingredient-editor td { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: .4rem; padding: .18rem 0; border: 0; }
    .recipe-ingredient-editor td:nth-child(n) { width: 100%; }
    .recipe-ingredient-editor td::before { content: attr(data-label); color: #7b6d5d; font-size: .72rem; font-weight: 600; }
    .recipe-ingredient-editor td.num { text-align: left; }
    .recipe-ingredient-editor input[type="text"],
    .recipe-ingredient-editor input:not([type]) { min-width: 0; }
}
