/*
 * Producer workspace refresh
 * A quiet, field-notes inspired workspace: neutral paper, a restrained green
 * for progress, and amber reserved for attention. It deliberately replaces the
 * previous black interface while retaining every operational template.
 */

:root {
  --canvas: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #edf2ed;
  --ink: #183129;
  --muted: #607269;
  --line: #d7e1da;
  --brand: #197a59;
  --brand-dark: #105c42;
  --brand-soft: #dff3e8;
  --warn: #9b581e;
  --warn-soft: #fff3df;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(25, 52, 41, .07);
  --display: "Trebuchet MS", "Aptos Display", system-ui, sans-serif;
  --body: "Aptos", "Segoe UI", system-ui, sans-serif;
}

.site-header__actions { display: flex; align-items: center; gap: 13px; }
.header-link--muted { color: var(--muted); }
.header-link--action { min-height: 38px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); }

/* Signup and access explain the two roles without making a dense form page. */
.auth-layout { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; padding: 10px 0 30px; }
.auth-layout__intro { padding: 9px 2px; }
.auth-layout__intro h1 { max-width: 20ch; font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.12; }
.auth-layout__intro > p:not(.eyebrow) { max-width: 38rem; font-size: 1.04rem; }
.auth-steps { display: grid; gap: 10px; margin: 25px 0 0; padding: 0; list-style: none; color: var(--ink); font-size: .9rem; font-weight: 700; }
.auth-steps li { display: flex; align-items: center; gap: 10px; }
.auth-steps span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: .75rem; }
.auth-card { max-width: none; margin: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.auth-card__heading { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.auth-card__heading h2 { margin: 0 0 5px; font-size: 1.18rem; }
.auth-card__heading p { margin: 0; font-size: .88rem; }
.field-group label { margin-top: 17px; }
.auth-card button { width: 100%; margin-top: 24px; }
.auth-card__footnote { margin: 17px 0 0; text-align: center; font-size: .86rem; }
.auth-card__footnote a { font-weight: 800; }

.auth-flow { max-width: 580px; margin: 8px auto 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.auth-flow h1 { font-size: clamp(1.6rem, 4vw, 2.15rem); line-height: 1.15; }
.auth-flow__context { margin-bottom: 17px; }
.auth-flow__lead { font-size: 1rem; }
.auth-flow__expiry { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; width: min(100%, 420px); margin: 18px 0 -2px; padding: 13px 14px; border-left: 3px solid var(--brand); background: var(--surface-soft); }
.auth-flow__expiry > span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.auth-flow__expiry-time { color: var(--ink); font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-align: right; }
.auth-flow__expiry p { grid-column: 1 / -1; margin: 7px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.auth-flow__expiry.is-expired { border-left-color: var(--warn); background: #fff5ee; }
.auth-flow__expiry.is-expired .auth-flow__expiry-time { color: var(--warn); }
.auth-flow form { max-width: none; margin-top: 23px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.auth-flow .auth-flow__resend { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.auth-flow .auth-flow__resend p { margin: 0; font-size: .84rem; }
.auth-flow .auth-flow__resend .button { width: auto; min-height: 40px; margin: 0; padding: 0 13px; }
.auth-flow__switch { border-left-color: var(--brand); background: var(--surface-soft); }

.auth-flow--code input[name=code] { width: 100%; max-width: none; }
.auth-flow--code form:first-of-type { width: min(100%, 420px); }
.auth-flow--code .auth-flow__resend { width: min(100%, 420px); display: grid; grid-template-columns: minmax(0, 1fr) auto; justify-content: initial; }

/* Code confirmation stays a single, calm reading rail on desktop. The notice,
   task and recovery action share an edge instead of competing for page width. */
@media (min-width: 720px) {
  .auth-verification-page { width: min(calc(100% - 64px), 560px); padding: 44px 0 72px; }
  .auth-verification-page > .message { margin: 0 0 22px; }
  .auth-verification-page .auth-flow { max-width: none; margin: 0; padding: 32px 34px 30px; }
  .auth-verification-page .auth-flow--code form:first-of-type,
  .auth-verification-page .auth-flow--code .auth-flow__resend { width: 100%; }
}

@media (max-width: 719px) {
  .auth-flow--code form:first-of-type, .auth-flow--code .auth-flow__resend { width: 100%; }
  .auth-flow--code .auth-flow__resend { grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .auth-flow--code .auth-flow__resend .button { width: 100%; }
}

/* The operational views are intentionally light, readable and low-noise. */
.app-shell--producer {
  --canvas: #f5f6f2;
  --surface: #fff;
  --surface-soft: #edf2ed;
  --ink: #183129;
  --muted: #607269;
  --line: #d7e1da;
  --brand: #197a59;
  --brand-dark: #105c42;
  --brand-soft: #dff3e8;
  --warn: #9b581e;
  --warn-soft: #fff3df;
  min-height: 100dvh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}
.producer-shell { min-height: 100dvh; background: var(--canvas); }
.app-shell--producer .container { width: min(100% - 32px, 1080px); margin: 0 auto; padding: 18px 0 calc(132px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.app-shell--producer h1, .app-shell--producer h2, .app-shell--producer h3 { color: var(--ink); font-family: var(--display); }
.app-shell--producer p { color: var(--muted); }
.app-shell--producer a { color: var(--brand-dark); }
.app-shell--producer .button, .app-shell--producer button { min-height: 46px; border-color: var(--brand); border-radius: 11px; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 750; box-shadow: none; }
.app-shell--producer .button:hover, .app-shell--producer button:hover { background: var(--brand-dark); }
.app-shell--producer .button--light, .app-shell--producer .button--quiet { border-color: var(--line); background: var(--surface); color: var(--ink); }
.app-shell--producer .button--light:hover, .app-shell--producer .button--quiet:hover { background: var(--surface-soft); color: var(--ink); }
/* Secondary = navigation or alternative path next to the screen's single primary CTA. */
.app-shell--producer .button--secondary { border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); background: var(--surface); color: var(--brand-dark); }
.app-shell--producer .button--secondary:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.app-shell--producer .button--danger { border-color: #b54d42; background: #b54d42; color: #fff; }
.app-shell--producer .button--danger:hover { background: #8f382e; }
/* Destructive action listed next to routine ones: readable, but not louder than the primary. */
.app-shell--producer .button--danger-quiet { border-color: color-mix(in srgb, #b54d42 38%, var(--line)); background: var(--surface); color: #9c3a30; }
.app-shell--producer .button--danger-quiet:hover { border-color: #b54d42; background: #fbeeec; color: #8f382e; }

/* Forms. app.css draws every <form> as a card and producer.css pushes a form's last
   button 18px down. Inside the workspace a class-less form is only a wrapper for an
   inline action (sell, pause, notify, filter), so it carries no chrome of its own and a
   single-button form sits on the same baseline as its sibling links. Styled forms keep
   their own class. */
.app-shell--producer main form:not([class]) { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-shell--producer main form:not([class]):not(:has(> :is(input:not([type="hidden"]), select, textarea, label, fieldset, div, p))) > button { margin-top: 0; }
.app-shell--producer .message { border-color: #ead2a8; border-left-color: var(--warn); background: var(--warn-soft); color: #663914; }
.app-shell--producer .message.error { border-color: #e2b6b0; border-left-color: #ae493e; background: #fff0ee; color: #772f29; }

.workspace-header { min-height: 66px; padding: 8px max(16px, calc((100vw - 1080px) / 2)); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--canvas) 90%, transparent); }
.workspace-back { min-height: 44px; color: var(--ink); font-weight: 750; }
.workspace-back .icon { color: var(--brand); }
.producer-menu>summary { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.producer-menu>summary:hover { background: var(--surface-soft); }
.producer-menu__panel { top: 48px; width: 238px; padding: 8px; border-color: var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 16px 38px rgba(22, 48, 38, .16); }
.producer-menu__panel>a { min-height: 42px; border-radius: 8px; color: var(--ink); }
.producer-menu__panel>a:hover { background: var(--surface-soft); }
.app-shell--producer .producer-menu__panel form { border-top-color: var(--line); }
.app-shell--producer .producer-menu__panel button { min-height: 42px; color: var(--ink); background: transparent; }

.app-shell--producer .subscription-panel { min-height: auto; margin: 0 0 18px; padding: 17px; border: 1px solid #cde5d7; border-radius: 15px; background: #edf8f1; }
.app-shell--producer .subscription-panel--blocked { border-color: #ecd4ad; background: #fff5e7; }
.app-shell--producer .subscription-panel h2 { color: var(--ink); font-family: var(--body); font-size: .84rem; }
.app-shell--producer .subscription-panel strong { margin: 13px 0 5px; color: var(--ink); font-size: 1.03rem; }
.app-shell--producer .subscription-panel p { color: #466256; font-size: .84rem; }
.subscription-panel__coverage { display: flex; gap: 6px; margin: 12px 0 0 !important; padding-top: 11px; border-top: 1px solid rgba(76, 122, 94, .18); color: #315c46 !important; font-size: .76rem !important; font-weight: 750; }
.subscription-panel__coverage span { color: #597264; font-weight: 650; }
.subscription-page__header { align-items: end; margin-bottom: 18px; }
.subscription-page__header .page-header__copy > p:last-child { max-width: 620px; }
.subscription-overview { display: grid; gap: 22px; margin: 0 0 34px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.subscription-overview--blocked { border-color: #e5c49b; border-top-color: var(--warn); background: #fffdf9; }
.subscription-overview__lead h2 { margin: 13px 0 8px; font-size: clamp(1.55rem, 7vw, 2.25rem); line-height: 1.08; }
.subscription-overview__lead p { max-width: 620px; margin: 0; line-height: 1.55; }
.subscription-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border-radius: 99px; background: #e7ece8; color: #385047; font-size: .72rem; font-weight: 850; }
.subscription-state--positive { background: var(--brand-soft); color: var(--brand-dark); }
.subscription-state--warning { background: var(--warn-soft); color: #7a4517; }
.subscription-overview__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.subscription-overview__facts div { min-width: 0; padding: 13px 10px 10px 0; border-bottom: 1px solid var(--line); }
.subscription-overview__facts div:nth-child(even) { padding-left: 10px; border-left: 1px solid var(--line); }
.subscription-overview__facts dt, .subscription-history dt { color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.subscription-overview__facts dd { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: .86rem; font-weight: 760; line-height: 1.35; }
.subscription-choices, .subscription-confirm { margin: 0 0 30px; }
.subscription-overview__notice { max-width: 620px; margin: 14px 0 0 !important; }
.subscription-overview__actions { margin-top: 16px; gap: 10px; }
.subscription-inline-form { max-width: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.subscription-disclosure { margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subscription-disclosure > summary { min-height: 52px; display: flex; align-items: center; color: var(--brand-dark); font-weight: 780; cursor: pointer; }
.subscription-disclosure[open] > summary { margin-bottom: 6px; }
.subscription-disclosure .subscription-plan-grid, .subscription-disclosure .subscription-history, .subscription-disclosure .subscription-legal-policy { margin-bottom: 18px; }
.subscription-confirm h2 { margin: 4px 0 16px; font-size: clamp(1.3rem, 5vw, 1.7rem); }
.subscription-confirm__form { max-width: 720px; margin-top: 18px; }
.subscription-confirm__form .action-stack { margin-top: 4px; }
.subscription-page .section-heading { max-width: 680px; margin-bottom: 17px; }
.subscription-page .section-heading h2 { margin-bottom: 5px; font-size: 1.3rem; }
.subscription-action { display: grid; gap: 17px; margin: 0 0 22px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.subscription-action--attention { border-left-color: var(--warn); background: var(--warn-soft); }
.subscription-action h2 { margin: 3px 0 6px; font-size: 1.08rem; }
.subscription-action p:last-child { margin: 0; font-size: .84rem; line-height: 1.5; }
.subscription-action form { margin: 0; padding: 0; border: 0; box-shadow: none; }
.subscription-cancel { margin: 0 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subscription-cancel summary { min-height: 52px; display: flex; align-items: center; color: #8a3f37; font-weight: 780; cursor: pointer; }
.subscription-cancel > div { padding: 0 0 20px; }
.subscription-cancel h2 { margin: 0 0 5px; font-size: 1.05rem; }
.subscription-cancel form { max-width: 560px; margin: 15px 0 0; padding: 0; border: 0; box-shadow: none; }
.subscription-cancel__confirmation { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; margin: 0 0 14px; color: var(--ink); font-size: .84rem; line-height: 1.45; }
.subscription-cancel__confirmation input { width: 20px; height: 20px; margin: 1px 0 0; }
.subscription-plan-grid { display: grid; gap: 0; }
.subscription-plan-card { display: grid; gap: 20px; min-height: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.subscription-plan-card--current { border-color: #86c5a4; border-top: 3px solid var(--brand); }
.subscription-plan-card--requested { border-color: #e5c280; border-top: 3px solid #b57a26; }
.subscription-plan-card__top { display: flex; justify-content: space-between; gap: 8px; }
.subscription-plan-card__top span { padding: 3px 8px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-size: .7rem; font-weight: 800; }
.subscription-plan-card--requested .subscription-plan-card__top span { background: #fff1d6; color: #805716; }
.subscription-plan-card__price { margin: 10px 0 5px; color: var(--ink); font-size: 1.55rem; font-weight: 850; letter-spacing: -.05em; }
.subscription-plan-card__price small { margin-left: 5px; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: 0; }
.subscription-plan-card__note { min-height: 38px; color: #315c46 !important; font-size: .82rem; font-weight: 700; }
.subscription-plan-card form { margin-top: auto; padding: 0; border: 0; box-shadow: none; }
.subscription-plan-card button { width: auto; max-width: 100%; }
.subscription-plan-grid--compact { gap: 12px; }
.subscription-plan-grid--compact .subscription-plan-card { gap: 6px; align-content: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.subscription-plan-grid--compact .subscription-plan-card--current { border-color: #86c5a4; border-top: 3px solid var(--brand); }
.subscription-plan-grid--compact .subscription-plan-card--requested { border-color: #e5c280; border-top: 3px solid #b57a26; }
.subscription-plan-grid--compact .subscription-plan-card__price { margin: 4px 0 0; }
.subscription-plan-grid--compact .subscription-plan-card__note { min-height: 0; margin: 0 0 8px; }
.subscription-plan-grid--compact .subscription-plan-card :is(.button, button) { width: 100%; }
.subscription-plan-card button:disabled { border-color: var(--line); background: #edf1ee; color: #627169; cursor: default; }
.subscription-consent { margin: 14px 0; padding: 13px; border: 1px solid #d6dfd9; border-radius: 11px; background: var(--surface-soft); }
.subscription-consent > strong { display: block; margin-bottom: 9px; color: var(--ink); font-size: .82rem; }
.subscription-consent label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; margin: 0; color: #354c41; font-size: .77rem; font-weight: 620; line-height: 1.5; cursor: pointer; }
.subscription-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); }
.subscription-consent small { display: block; margin: 9px 0 0 31px; color: var(--muted); font-size: .69rem; }
.subscription-consent label + label { margin-top: 10px; }
.subscription-consent__payer { display: grid; gap: 5px; margin: 12px 0 0 31px; }
.subscription-consent .subscription-consent__payer label { display: block; cursor: auto; }
.subscription-consent .subscription-consent__payer input { width: 100%; max-width: 360px; height: auto; margin: 0; }
.subscription-legal-policy { padding-top: 24px; border-top: 1px solid var(--line); }
.subscription-legal-policy > p { max-width: 760px; margin: 0 0 18px; font-size: .84rem; line-height: 1.6; }
.subscription-legal-policy dl { display: grid; margin: 0; border-top: 1px solid var(--line); }
.subscription-legal-policy dl > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.subscription-legal-policy dt { color: var(--ink); font-size: .8rem; font-weight: 820; }
.subscription-legal-policy dd { margin: 4px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.5; }
.subscription-history { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.subscription-history__item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.subscription-history__item time { color: var(--ink); font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.subscription-history__item time span { display: block; margin-top: 2px; color: var(--muted); font-weight: 650; }
.subscription-history__item > div { position: relative; padding-left: 15px; }
.subscription-history__item > div::before { position: absolute; top: 4px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #8fa198; content: ""; }
.subscription-history__item--positive > div::before { background: var(--brand); }
.subscription-history__item--warning > div::before { background: var(--warn); }
.subscription-history__item strong { color: var(--ink); font-size: .88rem; }
.subscription-history__item p { margin: 4px 0 0; font-size: .78rem; line-height: 1.45; }
.subscription-history__item dl { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 10px 0 0; }
.subscription-history__item dl div { min-width: 100px; }
.subscription-history__item dd { margin: 3px 0 0; color: var(--ink); font-size: .77rem; font-weight: 730; }
.subscription-security-note { margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .78rem; }
@media (min-width: 720px) {
  .subscription-overview { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; gap: 32px; }
  .subscription-action { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .subscription-plan-grid { grid-template-columns: 1fr; }
  .subscription-plan-grid--compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .subscription-plan-card { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); column-gap: 32px; }
  .subscription-plan-grid--compact .subscription-plan-card { grid-template-columns: 1fr; }
  .subscription-legal-policy dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subscription-legal-policy dl > div { padding: 14px 18px 14px 0; }
  .subscription-legal-policy dl > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
  .subscription-history__item { grid-template-columns: 100px minmax(0, 1fr); gap: 22px; }
}
.app-shell--producer .status { padding: 4px 9px; background: #e7ece8; color: #385047; font-size: .71rem; font-weight: 800; }
.app-shell--producer .status--positive { background: #ccefd9; color: #0b6644; }
.app-shell--producer .status--warning { background: #f9e5c6; color: #86501d; }

.app-shell--producer .section-title h2 { font-family: var(--body); font-size: 1rem; }
.app-shell--producer .section-title>span { color: var(--muted); }
.attention-row { min-height: 70px; padding: 11px 7px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); }
a.attention-row:hover { background: transparent; color: var(--brand-dark); }
.attention-row__icon--amber { background: var(--warn-soft); color: var(--warn); }
.attention-row__icon--green { background: var(--brand-soft); color: var(--brand); }
.attention-row__icon--mint { background: #e7f6ef; color: #23785a; }
.attention-row__icon--blue { background: #eaf2f4; color: #396d78; }
.attention-row--urgent { border-left: 3px solid #d97732; background: #fffaf4; }
.attention-row--clear { background: #f7fbf8; }
.attention-row__copy strong { color: var(--ink); }
.attention-row__copy small { color: var(--muted); }
.attention-row>.icon { color: var(--muted); }
.app-shell--producer .page-header { flex-wrap: wrap; align-items: flex-end; margin: 5px 0 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
/* The copy keeps ~22rem before an action may sit beside it. Without a basis, the copy
   (min-width: 0) was crushed to zero width by a full-width or long action button and its
   text spilled under the button between 431px and ~1100px. Now the action wraps instead. */
.app-shell--producer .page-header__copy { flex: 1 1 22rem; }
.app-shell--producer .page-header h1, .app-shell--producer .form-page h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
.app-shell--producer .page-header .button { flex: 0 0 auto; }
/* Page headers already end with a divider; a flat section (top-border style) placed right
   after one must not draw a second line 24px below it. Card-style sections are unaffected. */
.page-header + :is(.subscription-overview, .offer-stock) { border-top-color: transparent; padding-top: 4px; }
.app-shell--producer .list-stack { gap: 12px; }
.app-shell--producer .list-card { border-color: var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.app-shell--producer .list-card:hover { border-color: #a2c8b2; background: #fbfdfb; }
.app-shell--producer .list-card__meta { color: var(--muted); }
.app-shell--producer .empty-state { border-color: #b9d4c2; background: #f4faf5; }
.app-shell--producer .detail-metrics div { background: var(--surface-soft); }
.app-shell--producer .reservation-card details, .app-shell--producer .offer-controls details { border-color: var(--line); background: #f8faf8; }
.app-shell--producer .offer-controls summary { color: var(--ink); }
.app-shell--producer .filter-tabs a { border-color: var(--line); background: var(--surface); color: var(--muted); }
.app-shell--producer .filter-tabs a[aria-current=page] { border-color: #9fcbb1; background: var(--brand-soft); color: var(--brand-dark); }
.app-shell--producer form { border-color: var(--line); background: var(--surface); }
.app-shell--producer label { color: var(--ink); }
.app-shell--producer input, .app-shell--producer select, .app-shell--producer textarea { border-color: #bdcec4; background: #fff; color: var(--ink); }
.app-shell--producer .offer-field__help { border-left-color: #83b79a; background: #f0f7f2; color: #426353; }
.app-shell--producer .offer-form__guide { border-color: #b7d6c1; background: #f3faf5; color: #284d3b; }
.app-shell--producer .offer-form__guide summary, .app-shell--producer .offer-field--choices>legend, .app-shell--producer .offer-form__section>legend { color: var(--ink); }
.app-shell--producer .offer-form__note { border-left-color: #8db69d; background: #f3f8f4; color: #466454; }

/* Audit history is a chronological workbench: filters narrow the evidence,
   then one quiet row can expand without turning the screen into a card wall. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.audit-history-page { display: grid; gap: 17px; max-width: none; }
.audit-history__header { margin-bottom: 0 !important; }
.audit-history__header .page-header__copy > p:not(.eyebrow) { max-width: 48rem; }
.audit-history__count { flex: 0 0 auto; margin: 0; padding: 8px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted) !important; font-size: .78rem; font-variant-numeric: tabular-nums; }
.audit-history__count strong { color: var(--ink); }
.audit-history__filters, .audit-history__records { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.audit-history__filters { padding: 17px; }
.audit-history__filter-intro { margin-bottom: 14px; }
.audit-history__filter-intro .eyebrow, .audit-history__records-heading .eyebrow { margin: 0 0 4px; color: var(--brand); font-size: .66rem; }
.audit-history__filter-intro h2, .audit-history__records-heading h2 { margin: 0; color: var(--ink); font-family: var(--body); font-size: 1.08rem; }
.audit-history__filters form { display: grid; width: 100%; max-width: none; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.audit-history__filter-fields { display: grid; gap: 10px; }
.audit-history__filter-fields > div { display: grid; min-width: 0; gap: 5px; }
.audit-history__filter-fields label { margin: 0; color: var(--ink); font-size: .78rem; font-weight: 800; }
.audit-history__filter-fields input, .audit-history__filter-fields select { width: 100%; min-width: 0; margin: 0; font-size: .86rem; }
.audit-history__filter-fields .errorlist { margin: 0; color: #9c342b; font-size: .74rem; }
.audit-history__filter-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.audit-history__filter-actions > * { flex: 1 1 148px; justify-content: center; }
.audit-history__records { overflow: hidden; }
.audit-history__records-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.audit-history__records-heading > p { max-width: 25rem; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: right; }
.audit-history__table-wrap { overflow-x: auto; }
.audit-history__table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .86rem; }
.audit-history__table th { padding: 11px 15px; border-bottom: 1px solid var(--line); background: #f7faf7; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.audit-history__table td { padding: 14px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.audit-history__table tr:last-child td { border-bottom: 0; }
.audit-history__table tbody tr { transition: background .16s ease; }
.audit-history__table tbody tr:hover { background: #fbfdfb; }
.audit-history__table time { display: grid; gap: 2px; min-width: 87px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 750; }
.audit-history__table time span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.audit-history__table td > strong { display: block; min-width: 168px; line-height: 1.35; }
.audit-history__entity { color: var(--muted); font-size: .8rem; }
.audit-history__table .status { white-space: nowrap; }
.audit-history__details-cell { min-width: 138px; padding-top: 9px !important; padding-bottom: 9px !important; }
.audit-history__details-cell details { border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.audit-history__details-cell summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 0 9px; color: var(--brand-dark); cursor: pointer; font-size: .76rem; font-weight: 800; list-style: none; }
.audit-history__details-cell summary::-webkit-details-marker { display: none; }
.audit-history__details-cell summary span { font-size: 1.1rem; line-height: 1; transition: transform .16s ease; }
.audit-history__details-cell details[open] summary { border-bottom: 1px solid #ccdbd1; }
.audit-history__details-cell details[open] summary span { transform: rotate(90deg); }
.audit-history__change-list { min-width: min(100%, 315px); padding: 10px; }
.audit-history__change-list dl { display: grid; gap: 9px; margin: 0; }
.audit-history__change-list dl div { display: grid; gap: 3px; }
.audit-history__change-list dt { color: var(--muted); font-size: .7rem; font-weight: 750; }
.audit-history__change-list dd { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; color: var(--ink); font-size: .76rem; line-height: 1.35; }
.audit-history__change-list dd span { color: var(--muted); text-decoration: line-through; }
.audit-history__change-list dd b { color: var(--brand); }
.audit-history__change-list dd strong { font-weight: 800; }
.audit-history__change-list > p { margin: 0; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.audit-history__pagination { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 17px; border-top: 1px solid var(--line); }
.audit-history__pagination .button { min-width: 100px; min-height: 39px; justify-content: center; font-size: .8rem; }
.audit-history__pagination > span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.audit-history__empty { margin: 17px; }

@media (min-width: 720px) {
  .audit-history__filters { padding: 24px 0; }
  .audit-history__filter-fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.25fr) repeat(2, minmax(124px, .8fr)); align-items: end; }
  .audit-history__filter-actions { justify-content: flex-end; }
  .audit-history__filter-actions > * { flex: 0 0 auto; min-width: 138px; }
  .audit-history__records-heading { padding: 0 0 16px; }
}

@media (max-width: 719px) {
  .audit-history__header { align-items: flex-start !important; }
  .audit-history__records-heading { align-items: flex-start; flex-direction: column; }
  .audit-history__records-heading > p { text-align: left; }
  .audit-history__table-wrap { overflow: visible; }
  .audit-history__table, .audit-history__table tbody, .audit-history__table tr, .audit-history__table td { display: block; width: 100%; }
  .audit-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .audit-history__table tbody { display: grid; gap: 0; padding: 0; }
  .audit-history__table tr { overflow: hidden; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .audit-history__table td { display: grid; grid-template-columns: minmax(84px, .72fr) minmax(0, 1.28fr); gap: 9px; padding: 9px 11px; border-bottom: 1px solid #e2e9e4; }
  .audit-history__table td::before { content: attr(data-label); color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .audit-history__table td > strong { min-width: 0; }
  .audit-history__details-cell { display: block !important; padding: 8px !important; border-bottom: 0 !important; }
  .audit-history__details-cell::before { display: none; }
  .audit-history__details-cell details { width: 100%; }
  .audit-history__change-list { min-width: 0; }
  .audit-history__pagination { flex-wrap: wrap; }
  .audit-history__pagination .button { flex: 1 1 120px; }
  .audit-history__pagination > span { flex-basis: 100%; order: -1; }
}

/* Commercial history keeps the producer focused on customers and outcomes.
   The technical audit trail remains an internal record, not a workspace view. */
.commercial-history-page { display: grid; gap: 24px; max-width: none; }
.commercial-history__header { align-items: end; margin-bottom: 0 !important; }
.commercial-history__header .page-header__copy > p:not(.eyebrow) { max-width: 48rem; }
.commercial-history__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.commercial-history__summary > div { display: grid; min-height: 116px; gap: 4px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.commercial-history__summary span, .commercial-history__summary small { color: var(--muted); font-size: .72rem; line-height: 1.35; }
.commercial-history__summary span { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.commercial-history__summary strong { color: var(--ink); font-size: clamp(1.3rem, 2.5vw, 1.85rem); font-variant-numeric: tabular-nums; letter-spacing: -.035em; line-height: 1.15; }
.commercial-history__summary small { margin-top: auto; }
.commercial-history__filters, .commercial-history__records { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.commercial-history__filter-intro { margin-bottom: 14px; }
.commercial-history__filter-intro .eyebrow, .commercial-history__records-heading .eyebrow { margin: 0 0 4px; color: var(--brand); font-size: .66rem; }
.commercial-history__filter-intro h2, .commercial-history__records-heading h2 { margin: 0; color: var(--ink); font-family: var(--body); font-size: 1.08rem; }
.commercial-history__filters form { display: grid; width: 100%; max-width: none; gap: 12px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.commercial-history__filter-fields { display: grid; gap: 10px; }
.commercial-history__filter-fields > div { display: grid; min-width: 0; gap: 5px; }
.commercial-history__filter-fields label { margin: 0; color: var(--ink); font-size: .78rem; font-weight: 800; }
.commercial-history__filter-fields input, .commercial-history__filter-fields select { width: 100%; min-width: 0; margin: 0; font-size: .86rem; }
.commercial-history__filter-fields .errorlist { margin: 0; color: #9c342b; font-size: .74rem; }
.commercial-history__filter-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.commercial-history__filter-actions > * { flex: 1 1 148px; justify-content: center; }
/* The table needs ~880px; the records area (not the viewport) decides when rows stack,
   so "Ver pedido" never hides behind a horizontal scroll next to the sidebar. */
.commercial-history__records { overflow: hidden; container: commercial-records / inline-size; }
.commercial-history__records-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.commercial-history__records-heading > p { max-width: 29rem; margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: right; }
.commercial-history__table-wrap { position: relative; overflow-x: auto; }
.commercial-history__table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: .86rem; }
.commercial-history__table th { padding: 11px 15px; border-bottom: 1px solid var(--line); background: #f7faf7; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.commercial-history__table td { padding: 14px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.commercial-history__table tr:last-child td { border-bottom: 0; }
.commercial-history__table tbody tr { transition: background .16s ease; }
.commercial-history__table tbody tr:hover { background: #fbfdfb; }
.commercial-history__table time { display: grid; gap: 2px; min-width: 87px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 750; }
.commercial-history__table time span, .commercial-history__table small, .commercial-history__order, .commercial-history__quantity, .commercial-history__value-note { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; font-weight: 600; line-height: 1.35; }
.commercial-history__table td > strong { display: block; min-width: 128px; line-height: 1.35; }
.commercial-history__table .status { width: fit-content; white-space: nowrap; }
.commercial-history__action { width: 1%; white-space: nowrap; }
.commercial-history__action .button { min-height: 38px; font-size: .78rem; }
.commercial-history__pagination { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); }
.commercial-history__pagination .button { min-width: 100px; min-height: 39px; justify-content: center; font-size: .8rem; }
.commercial-history__pagination > span { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; text-align: center; }
.commercial-history__empty { margin: 17px 0 0; }

@media (min-width: 720px) {
  .commercial-history__summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .commercial-history__filter-fields { grid-template-columns: minmax(0, 1.65fr) minmax(150px, 1fr) repeat(2, minmax(124px, .8fr)); align-items: end; }
  .commercial-history__filter-actions { justify-content: flex-end; }
  .commercial-history__filter-actions > * { flex: 0 0 auto; min-width: 138px; }
}

@media (max-width: 719px) {
  .commercial-history__header { align-items: flex-start !important; }
  .commercial-history__header .button { width: 100%; justify-content: center; }
  .commercial-history__records-heading { align-items: flex-start; flex-direction: column; }
  .commercial-history__records-heading > p { text-align: left; }
  .commercial-history__pagination { flex-wrap: wrap; }
  .commercial-history__pagination .button { flex: 1 1 120px; }
  .commercial-history__pagination > span { flex-basis: 100%; order: -1; }
}

@container commercial-records (max-width: 879px) {
  .commercial-history__table-wrap { overflow: visible; }
  .commercial-history__table, .commercial-history__table tbody, .commercial-history__table tr, .commercial-history__table td { display: block; width: 100%; }
  .commercial-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .commercial-history__table tbody { display: grid; gap: 0; padding: 0; }
  .commercial-history__table tr { overflow: hidden; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
  .commercial-history__table td { display: grid; grid-template-columns: minmax(90px, .72fr) minmax(0, 1.28fr); gap: 3px 9px; align-content: start; padding: 9px 11px; border-bottom: 1px solid #e2e9e4; }
  .commercial-history__table td::before { content: attr(data-label); grid-row: 1 / span 2; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  /* Value + its secondary line stay together under the value column. */
  .commercial-history__table td > * { grid-column: 2; margin-top: 0; }
  .commercial-history__table td > strong { min-width: 0; }
  .commercial-history__action { display: block !important; padding: 11px !important; border-bottom: 0 !important; }
  .commercial-history__action::before { display: none; }
  .commercial-history__action .button { width: 100%; justify-content: center; }
}

/* Mid widths: two label/value columns per record instead of one tall list. */
@container commercial-records (min-width: 560px) and (max-width: 879px) {
  .commercial-history__table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .commercial-history__table td { border-bottom: 0; }
  .commercial-history__action { grid-column: 1 / -1; }
  .commercial-history__action .button { width: auto; }
}

/* Offer detail: availability and the public link come before the lower-frequency
   management controls, so the page supports the daily producer routine. */
.offer-detail { display: grid; gap: 17px; max-width: 960px; }
.offer-detail__header { display: grid; gap: 12px; padding: 4px 0 17px; border-bottom: 1px solid var(--line); }
.offer-detail__header .eyebrow { margin: 0 0 6px; }
.offer-detail__title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.offer-detail__title-row h1 { margin: 0; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; }
.offer-detail__intro { max-width: 49rem; margin: 9px 0 0; font-size: .94rem; line-height: 1.5; }
.offer-detail__updated { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }

.offer-media-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; align-items: center; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.offer-media-card img, .offer-media-card__empty { display: grid; width: 92px; height: 92px; place-items: center; border-radius: 12px; object-fit: cover; background: #e3f3e9; color: var(--brand-dark); font-size: 2rem; font-weight: 900; }
.offer-media-card .eyebrow { margin: 0 0 5px; }
.offer-media-card h2 { margin: 0; font-family: var(--body); font-size: 1.04rem; }
.offer-media-card p:not(.eyebrow) { margin: 6px 0 12px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.offer-media-card .button { min-height: 38px; }


.offer-balance { display: grid; overflow: hidden; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.offer-balance__available { padding: 4px 24px 20px 0; background: transparent; }
.offer-balance__available .eyebrow { margin: 0 0 8px; color: var(--muted); }
.offer-balance__available strong { display: block; color: var(--ink); font-family: var(--display); font-size: clamp(2rem, 9vw, 3.15rem); line-height: .95; letter-spacing: -.04em; }
.offer-balance__available strong small { color: var(--muted); font-family: var(--body); font-size: .42em; letter-spacing: 0; }
.offer-balance__available > span { display: block; margin-top: 8px; color: var(--ink); font-size: .83rem; }
.offer-balance__metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; }
.offer-balance__metrics div { min-width: 0; padding: 15px 10px; border-right: 1px solid var(--line); }
.offer-balance__metrics div:last-child { border-right: 0; }
.offer-balance__metrics dt { color: var(--muted); font-size: .68rem; font-weight: 800; line-height: 1.2; }
.offer-balance__metrics dd { margin: 7px 0 0; color: var(--ink); font-size: .88rem; font-weight: 850; line-height: 1.25; }

.offer-detail__grid { display: grid; gap: 13px; }
.offer-info-card { min-width: 0; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.offer-info-card .eyebrow { margin: 0 0 6px; }
.offer-info-card h2 { margin: 0; font-family: var(--body); font-size: 1.03rem; }
.offer-info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 15px 0 0; }
.offer-info-list div { padding: 11px 9px 10px 0; border-top: 1px solid var(--line); }
.offer-info-list div:nth-child(odd) { padding-right: 10px; }
.offer-info-list dt { color: var(--muted); font-size: .72rem; }
.offer-info-list dd { margin: 3px 0 0; color: var(--ink); font-size: .88rem; font-weight: 800; line-height: 1.35; }
.offer-info-list dd span { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.offer-deadline { margin-top: 15px; padding: 12px; border-left: 3px solid var(--brand); border-radius: 0 9px 9px 0; background: #f0f8f3; }
.offer-deadline--overdue { border-left-color: var(--warn); background: var(--warn-soft); }
.offer-deadline span { display: block; color: var(--muted); font-size: .72rem; }
.offer-deadline strong { display: block; margin-top: 4px; color: var(--ink); font-size: .92rem; }
.offer-deadline p { margin: 7px 0 0; font-size: .77rem; line-height: 1.45; }
.offer-fulfillment-list { display: grid; gap: 11px; margin: 15px 0 0; padding: 0; list-style: none; }
.offer-fulfillment-list li { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 9px; align-items: start; }
.offer-fulfillment-list__mark { display: grid; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 900; place-items: center; }
.offer-fulfillment-list strong, .offer-fulfillment-list small { display: block; }
.offer-fulfillment-list strong { color: var(--ink); font-size: .85rem; }
.offer-fulfillment-list small { margin-top: 2px; color: var(--muted); font-size: .76rem; line-height: 1.4; white-space: pre-line; }

.offer-next-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.offer-next-step__number { display: grid; width: 31px; height: 31px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.1rem; font-weight: 850; place-items: center; }
.offer-next-step .eyebrow { margin: 1px 0 5px; color: var(--brand-dark); }
.offer-next-step h2 { margin: 0; font-family: var(--body); font-size: 1rem; }
.offer-next-step p:last-child { margin: 5px 0 0; font-size: .84rem; line-height: 1.48; }

/* Offer list: each row exposes the decision data before the management action. */
.offer-limit-notice { max-width: 720px; }

.offer-operation-card { display: grid; gap: 14px; padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.offer-operation-card .eyebrow { margin: 0 0 5px; }
.offer-operation-card h2 { margin: 0; font-family: var(--body); font-size: 1rem; }
.offer-controls { display: grid; gap: 9px; }
.offer-controls > form { padding: 0; border: 0; background: transparent; }
.offer-controls > form button { width: 100%; }
.offer-controls details { margin: 0; border: 1px solid var(--line); border-radius: 11px; background: #f8faf8; }
.offer-controls summary { min-height: 47px; padding: 13px 14px; font-size: .88rem; font-weight: 800; cursor: pointer; }
.offer-controls details[open] summary { border-bottom: 1px solid var(--line); }
.offer-controls details form { display: grid; gap: 10px; margin: 0; padding: 14px; border: 0; background: transparent; }
.offer-controls details form label { margin: 0; font-size: .82rem; }
.offer-controls details form input, .offer-controls details form textarea { margin: 0; }
.offer-control-help { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.offer-controls .danger-zone { border-color: #e5c3bd; background: #fff8f7; }
.offer-controls .danger-zone summary { color: #8e3d34; }
.offer-controls__schedule { border-color: #c4d9cb !important; background: #f2f8f4 !important; }
.offer-controls__schedule summary { color: var(--brand-dark) !important; }
.offer-control-current { margin: 0; color: var(--brand-dark); font-size: .78rem; font-weight: 750; }
.offer-control-error { margin: 0; color: #9a392f; font-size: .78rem; font-weight: 750; }


/* On a phone, the manual WhatsApp hand-off belongs beside the stable link,
   before the optional message editor. The author can still tailor copy before
   opening the target app, but never has to hunt below a textarea to share. */
@media (min-width: 640px) {
  .offer-detail__header { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .offer-detail__updated { text-align: right; }
  .offer-balance { grid-template-columns: minmax(240px, .9fr) minmax(0, 1.35fr); }
  .offer-balance__metrics { align-items: stretch; }
  .offer-balance__metrics div { display: flex; flex-direction: column; justify-content: center; padding: 16px; }
  .offer-operation-card { grid-template-columns: minmax(155px, .43fr) minmax(0, 1fr); align-items: start; }
}

@media (min-width: 820px) {
  .offer-detail { gap: 20px; }
  .offer-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .offer-info-list { grid-template-columns: 1fr; }
  .offer-info-list div, .offer-info-list div:nth-child(odd) { padding-right: 0; }
}

/* Searchable select: search belongs to the opened options panel, never as a
   separate field. The native select stays only as the submitted form value. */
.select-combobox { position: relative; min-width: 0; margin: 0 0 2px; font-family: var(--body); }
.select-combobox__current { display: block; width: 100%; min-height: 48px; margin: 0 !important; padding: 11px 48px 11px 13px !important; overflow: hidden; border: 1px solid #9eb9a9 !important; border-radius: 10px !important; background: #fff !important; color: var(--ink) !important; font: inherit !important; font-size: .94rem !important; line-height: 1.3; text-align: left; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 1px 0 rgba(20,70,45,.03); cursor: pointer; }
.select-combobox__current.is-placeholder { color: #77877d !important; }
.select-combobox.is-disabled .select-combobox__current { border-color: #d5ded9 !important; background: #f4f6f4 !important; color: #87948c !important; cursor: not-allowed; }
.select-combobox.is-disabled .select-combobox__trigger { color: #87948c; cursor: not-allowed; }
/* Doubled class: must beat `.app-shell--producer button`, which paints every button green. */
.select-combobox .select-combobox__trigger { position: absolute; z-index: 2; top: 1px; right: 1px; display: grid; width: 46px; min-height: 0; height: 46px; padding: 0; border: 0; border-radius: 0 9px 9px 0; background: transparent; color: var(--brand-dark); box-shadow: none; cursor: pointer; place-items: center; }
.select-combobox .select-combobox__trigger:hover { background: transparent; box-shadow: none; }
.select-combobox__trigger span { width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.select-combobox.is-open .select-combobox__current { border-color: var(--brand) !important; border-radius: 10px 10px 0 0 !important; outline: 3px solid rgba(25,122,89,.16); outline-offset: 0; }
.select-combobox.is-open .select-combobox__trigger span { transform: translateY(2px) rotate(225deg); }
.select-combobox__current:focus-visible, .select-combobox__trigger:focus-visible, .select-combobox__search input:focus-visible, .select-combobox__option button:focus-visible { outline: 3px solid rgba(25,122,89,.26); outline-offset: 2px; }
.select-combobox__panel { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; left: 0; overflow: hidden; border: 1px solid #c9d9cf; border-radius: 11px; background: #fff; box-shadow: 0 14px 28px rgba(12,43,30,.16); }
.select-combobox__search { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin: 8px; padding: 0 9px 0 35px; border: 1px solid #bfd4c7; border-radius: 8px; background: #fbfdfb; }
.select-combobox__search::before { position: absolute; top: 50%; left: 12px; width: 11px; height: 11px; border: 1.8px solid var(--brand-dark); border-radius: 50%; content: ""; transform: translateY(-58%); }
.select-combobox__search::after { position: absolute; left: 23px; bottom: 10px; width: 6px; height: 1.8px; border-radius: 2px; background: var(--brand-dark); content: ""; transform: rotate(45deg); }
.select-combobox__search input { min-width: 0; min-height: 38px !important; margin: 0 !important; padding: 8px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--ink) !important; font: inherit !important; font-size: .9rem !important; box-shadow: none !important; }
.select-combobox__search input:focus { outline: 0 !important; }
.select-combobox__count { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.select-combobox__list { max-height: min(280px, 42vh); margin: 0 !important; padding: 0 7px 7px !important; overflow-y: auto; list-style: none; }
.select-combobox__option { margin: 0; padding: 0; }
.select-combobox__option button { display: flex; width: 100%; min-height: 40px; padding: 9px 32px 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.select-combobox__option button:hover, .select-combobox__option.is-highlighted button { background: #edf7f0; }
.select-combobox__option.is-selected button { position: relative; background: #e0f3e7; color: #075f43; font-weight: 800; }
.select-combobox__option.is-selected button::after { position: absolute; top: 50%; right: 12px; width: 8px; height: 4px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; content: ""; transform: translateY(-70%) rotate(-45deg); }
.select-combobox__empty { padding: 14px 10px; color: var(--muted); font-size: .88rem; text-align: center; }
.select-combobox__native { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; opacity: 0 !important; pointer-events: none !important; white-space: nowrap !important; }



@media (min-width: 680px) {
  .app-shell--producer { font-size: 16px; }
  .auth-layout { grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); align-items: start; padding-top: 45px; }
  .auth-layout__intro { padding: 28px 25px 28px 0; }
.auth-card { padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
}

@media (min-width: 1000px) {
  .app-shell--producer .subscription-panel { margin: 0 0 24px; }
  .app-shell--producer .list-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-shell--producer .list-stack .list-card:first-child:last-child { grid-column: auto; }
}

@media (max-width: 430px) {
  .site-header__inner, .container { width: min(100% - 24px, 1120px); }
  .auth-card, .auth-flow { padding: 18px; }
}

/* Phone and small-tablet widths: the header action always sits below the copy, full width. */
@media (max-width: 679px) {
  .app-shell--producer .page-header { align-items: stretch; flex-direction: column; }
  .app-shell--producer .page-header__copy { flex: 0 0 auto; width: 100%; }
  .app-shell--producer .page-header .button { width: 100%; }
}

/* Campos de formulário compartilhados. O catálogo tem estilos próprios em
   catalog_list.css e catalog_editor.css. */
.field-note, .field-help { margin: 5px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.field-group { display: grid; gap: 7px; }
.field-group label { color: var(--ink); font-weight: 750; }
.field-optional { color: var(--muted); font-weight: 500; font-size: .85rem; }
.offer-catalog-start__steps > li > span { display: grid; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 850; place-items: center; }

/* Business profile: identity and habitual service setup stay together without
   turning the daily menu into a settings directory. */
.business-operation-card { position: relative; display: grid; align-content: start; gap: 9px; min-height: 278px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.business-operation-card__marker { position: absolute; top: 15px; right: 16px; color: #9ab5a5; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.business-operation-card .eyebrow { margin: 0; color: var(--brand); }
.business-operation-card h3 { max-width: 18ch; margin: 0; font-size: 1.12rem; line-height: 1.13; }
.business-operation-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.business-operation-card dl { display: flex; gap: 20px; margin: auto 0 0; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.business-operation-card dl div { display: grid; gap: 1px; }
.business-operation-card dt { color: var(--ink); font-family: var(--display); font-size: 1.38rem; font-weight: 900; }
.business-operation-card dd { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.business-operation-card .button { width: 100%; justify-content: center; }
.business-operation-card--route { background: #f0f8f3; border-color: #b9d8c4; }
.business-operation-card__note { padding-left: 9px; border-left: 2px solid #7ead91; }

.business-public-header__inner a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 9px; align-items: center; }
.business-public-header__logo { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.storefront-heading--business { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 13px; }
.storefront-heading--business > div { min-width: 0; }
.storefront-heading__logo { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); object-fit: cover; }
.storefront-heading__location, .storefront-heading__contact { margin-top: 7px !important; color: var(--muted); font-size: .85rem; }
.storefront-heading__contact { color: var(--ink); font-weight: 700; }

/* The profile is intentionally closer to a public business card than a settings
   screen: identity first, configuration only when the producer asks to edit. */
.business-operation-card { min-height: 0; padding: 16px; border-radius: 15px; }
.business-operation-card h3 { max-width: none; }
.business-operation-card dl { margin-top: 8px; }
.business-operation-card--route { background: #f0f8f3; }

/* Cartão público do negócio (profile-passport), usado pela vitrine pública. */

.profile-passport { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 24px 0; border: 0; border-top: 2px solid var(--brand); border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; }
.profile-passport__topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); font-size: .68rem; font-weight: 850; letter-spacing: .1em; }
.profile-passport__status { padding: 4px 8px; border: 1px solid rgba(216, 244, 224, .28); border-radius: 999px; color: var(--ink); font-size: .65rem; letter-spacing: .04em; }
.profile-passport__identity { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 13px; }
.profile-passport__avatar-wrap { width: 70px; height: 70px; padding: 3px; border: 1px solid rgba(229, 250, 235, .42); border-radius: 20px; background: var(--surface-soft); }
.profile-passport__avatar { display: grid; width: 100%; height: 100%; overflow: hidden; place-items: center; border-radius: 16px; background: var(--surface-soft); color: var(--ink); font-family: var(--display); font-size: 1.75rem; font-weight: 900; object-fit: cover; }
.profile-passport h2 { margin: 0; color: var(--ink); font-size: 1.48rem; line-height: 1.08; overflow-wrap: anywhere; }
.profile-passport__location { margin: 5px 0 0; color: var(--muted); font-size: .82rem; }
.profile-passport__description { min-height: 3.15em; margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.54; }
.profile-passport__contact { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid rgba(224, 244, 230, .18); border-bottom: 1px solid rgba(224, 244, 230, .18); }
.profile-passport__contact span { color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.profile-passport__contact strong { color: var(--ink); font-size: .85rem; overflow-wrap: anywhere; }
.profile-passport__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0; }
.profile-passport__facts div { min-width: 0; padding-right: 7px; border-right: 1px solid rgba(224, 244, 230, .18); }
.profile-passport__facts div:last-child { border-right: 0; }
.profile-passport__facts dt { color: var(--ink); font-family: var(--display); font-size: 1.45rem; font-weight: 900; }
.profile-passport__facts dd { margin: 3px 0 0; color: var(--ink); font-size: .67rem; line-height: 1.3; overflow-wrap: anywhere; }
.profile-passport__privacy { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.42; }

/* The grid gap sets the rhythm; app.css's label margin-top would add a second, uneven gap. */


@media (min-width: 980px) {
  .profile-passport { position: sticky; top: 18px; }
}

/* Delivery planner: an operational route, based only on details manually agreed with clients. */
/* The empty route is the list's only item; the section divider below already closes it. */



/* Offer editor groups decisions in their commercial order instead of one long generic form. */
.offer-catalog-start { display: grid; gap: 28px; width: min(100%, 960px); padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.offer-catalog-start__lead { display: grid; align-content: start; gap: 23px; }
.offer-catalog-start__intro .eyebrow { margin: 0 0 6px; }
.offer-catalog-start__intro h2 { margin: 0; color: var(--ink); font-size: clamp(1.38rem, 3vw, 1.8rem); }
.offer-catalog-start__intro p:last-child { max-width: 58ch; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.offer-catalog-start__steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.offer-catalog-start__steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.offer-catalog-start__steps strong { color: var(--ink); font-size: .94rem; }
.offer-catalog-start__steps p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.offer-catalog-start__actions { display: grid; gap: 10px; }
.offer-catalog-start__actions .button { width: 100%; justify-content: center; }
.offer-fulfillment-start { display: grid; gap: 28px; width: min(100%, 1040px); padding: 24px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.offer-fulfillment-start__intro .eyebrow { margin: 0 0 6px; }
.offer-fulfillment-start__intro h2 { margin: 0; color: var(--ink); font-size: clamp(1.38rem, 3vw, 1.8rem); }
.offer-fulfillment-start__intro p:last-child { max-width: 60ch; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.offer-fulfillment-start__choices { display: grid; gap: 12px; }
.offer-fulfillment-start__choices > section { display: grid; gap: 12px; padding: 20px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.offer-fulfillment-start__choices .eyebrow { margin: 0; color: var(--brand); }
.offer-fulfillment-start__choices h3 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.offer-fulfillment-start__choices p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.48; }
.offer-fulfillment-start__choices .button { justify-self: start; margin-top: 5px; }

/* Links de mapa do local combinado na reserva privada. */
.pickup-map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }


@media (min-width: 680px) {

  .offer-catalog-start__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .offer-catalog-start__steps > li { grid-template-columns: auto minmax(0, 1fr); padding: 0 15px; border: 0; border-right: 1px solid var(--line); }
  .offer-catalog-start__steps > li:first-child { padding-left: 0; }
  .offer-catalog-start__steps > li:last-child { padding-right: 0; border-right: 0; }
  .offer-catalog-start__actions { grid-template-columns: auto auto; justify-content: start; }
  .offer-catalog-start__actions .button { width: auto; }
  .offer-fulfillment-start__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  /* The empty state becomes a launchpad on desktop: the next decision stays
     on the left while the real sequence remains visible as a vertical path. */
  .offer-catalog-start { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; width: 100%; }
  .offer-catalog-start__lead { align-content: center; }
  .offer-catalog-start__intro h2 { max-width: 16ch; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.08; }
  .offer-catalog-start__intro p:last-child { max-width: 42ch; font-size: .96rem; }
  .offer-catalog-start__steps { grid-template-columns: minmax(0, 1fr); align-content: center; border: 0; border-left: 1px solid var(--line); }
  .offer-catalog-start__steps > li, .offer-catalog-start__steps > li:first-child, .offer-catalog-start__steps > li:last-child { grid-template-columns: 31px minmax(0, 1fr); gap: 14px; padding: 17px 0 17px 28px; border: 0; border-bottom: 1px solid var(--line); }
  .offer-catalog-start__steps > li:last-child { border-bottom: 0; }
  .offer-catalog-start__steps > li > span { width: 29px; height: 29px; flex-basis: 29px; font-size: .78rem; }
  .offer-catalog-start__steps strong { font-size: 1rem; }
  .offer-catalog-start__steps p { max-width: 48ch; font-size: .86rem; }
  .offer-catalog-start--inactive { display: block; width: min(100%, 820px); min-height: 0; }
  .offer-catalog-start--inactive .offer-catalog-start__lead { max-width: 580px; }
  .offer-fulfillment-start { width: min(100%, 1040px); grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: stretch; gap: clamp(34px, 6vw, 72px); }
  .offer-fulfillment-start__intro { align-self: center; }
  .offer-fulfillment-start__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
