/* Additions to the approved prototype's design system (css/base.css, copied unchanged) for the real screens:
   forms, switches with a "saving" state, the day sheet and its print layout, the calculator, hours, and the calendar on a phone. */
html, body { height: 100%; }
body { display: flex; flex-direction: column; height: 100dvh; background: var(--ground); }
.device { min-height: 0; }
a { color: inherit; }
a.btn { text-decoration: none; }
.hide { display: none !important; }
.printonly { display: none; }
.mut { color: var(--muted); }
.attn { color: var(--bad); font-weight: 600; }
.t17 { font-size: 17px; font-weight: 600; line-height: 1.25; }
.grow1 { flex: 1; min-width: 0; }
.measure { max-width: 680px; display: flex; flex-direction: column; }
.full { width: 100%; }
.scroll { overflow-x: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.inline { min-height: 0; padding: 0; display: inline; }
.btn.inv { background: none; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn.who { min-height: 0; padding: 0; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.acts { align-items: center; }
.asof { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; flex: 0 0 auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.banner > div { flex: 1; min-width: 0; }
.banner svg { flex: 0 0 auto; margin-top: 1px; }
.dash b { font-weight: 600; }

/* sign-in */
.signin { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; overflow-y: auto; }
.signin .card { width: 100%; max-width: 400px; }
.signin img { width: 120px; height: 120px; object-fit: contain; align-self: center; }
.signin h1 { font-family: var(--display); font-weight: 400; font-size: 28px; margin: 0; text-align: center; }
.in.code { font-size: 26px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }

/* status pill and service rows */
button.statpill, button.card.status { font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.card.status { width: 100%; }
.statpill .btn, .card.status .btn { pointer-events: none; }
.alertcard { border-color: #E9B4B4; background: #FFF8F8; }
.row.plain { padding: 0; min-height: 0; }
.row.svc.sub { padding-left: 34px; background: #FBF9F6; }
.row .status .led { display: block; }
button.row { font: inherit; color: inherit; cursor: pointer; }
.swwrap { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.swwrap .switch { margin-left: 0; }
.swl { font-size: 13px; font-weight: 600; min-width: 44px; text-align: right; }
.swl.on { color: var(--ok); } .swl.off { color: var(--muted); } .swl.busy { color: var(--warn); }
.switch[aria-busy="true"] { opacity: .55; animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* forms */
.lab { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
.lab span { font-weight: 400; color: var(--muted); }
.line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.line .in { flex: 1 1 200px; }
select.in { appearance: auto; padding: 10px 12px; }
.money { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); width: 132px; padding-left: 12px; }
.money::before { content: '$'; color: var(--muted); font-weight: 600; }
.money input { border: 0; background: none; width: 100%; padding: 11px 10px 11px 6px; font-size: 16px; outline: 0; font-variant-numeric: tabular-nums; min-width: 0; }
.money:focus-within { border-color: var(--ink); }
.pctbox { display: flex; gap: 8px; align-items: center; max-width: 160px; }
.pair { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6px; }
.filters.wrap { flex-wrap: wrap; overflow: visible; }
.tick { width: 22px; height: 22px; accent-color: var(--ink); }
.set { padding: 14px; border-top: 1px solid var(--line); }
.set:first-child { border-top: 0; }
.set .line { margin-top: 8px; }
.set .swwrap { margin-left: 0; }

/* folds */
.folds { display: flex; flex-direction: column; gap: 10px; }
.fold { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.fold + .fold { margin-top: 0; }
#hours .fold { margin-bottom: 10px; }
.fold summary { list-style: none; cursor: pointer; padding: 14px 40px 14px 14px; display: flex; flex-direction: column; gap: 2px; position: relative; min-height: 56px; justify-content: center; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--hair); border-bottom: 2px solid var(--hair); transform: translateY(-70%) rotate(45deg); }
.fold[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fold summary b { font-weight: 600; }
.fold summary span { font-size: 13px; color: var(--muted); }
.in-fold { padding: 0 14px 14px; }
.in-fold .setcard .set { padding-left: 0; padding-right: 0; }

/* menu items */
.mi { padding: 14px 0; border-top: 1px solid var(--line); }
.mi:first-child { border-top: 0; padding-top: 4px; }
.mi .name { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mi .name b { font-weight: 600; flex: 1 1 180px; }
.mi .name select.in { width: auto; flex: 0 0 auto; padding: 8px 10px; font-size: 16px; }   /* 16px: under that, an iPhone zooms the page when it is tapped */
.mi .name input.in { flex: 1 1 200px; }
.mi.soldout .name b, .mi.hidden .name b { color: var(--muted); }
.mi .per { font-weight: 400; color: var(--muted); }
.mi .prices { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 10px; }
.mi .prices label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.mi .derived { font-size: 12px; color: var(--muted); margin-top: 4px; }
.mi .acts .btn.link { min-height: 32px; font-size: 14px; }
.addbox { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pt.tight th, .pt.tight td { padding: 9px 8px; }
.pt.tight td:first-child, .pt.tight th:first-child { padding-left: 0; }
.pt tr.skipped { color: var(--muted); }
.pt td.eyebrow { padding-top: 14px; }

/* money on Home */
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.nums.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nums b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nums span { font-size: 12px; color: var(--muted); }
.lead1 .craw { color: var(--brand-ink); }
.planned { border-style: dashed; background: transparent; }

/* calculator */
.calc .note { margin-top: 6px; }
.big1 { font-size: 19px; }
.rule1 { font-size: 24px; line-height: 1.2; }
.crow .body small { white-space: normal; }
.cline { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr) 40px; gap: 6px; align-items: center; margin-bottom: 8px; }
.cline .wide2 { grid-column: span 2; }
.cline .money { width: auto; }
.cline .u { font-size: 14px; color: var(--muted); }
.cline .x { border: 0; background: none; font-size: 22px; line-height: 1; min-height: 40px; color: var(--muted); border-radius: 8px; }
.pout { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--ground); border: 1px solid var(--line); }
.pout .big b { font-size: 26px; letter-spacing: -.02em; } .pout .big span { margin-left: 8px; color: var(--muted); font-size: 14px; }
.line2 { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.sub { margin: 6px 0; padding: 6px 0; border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.ruled { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.meter { position: relative; height: 10px; border-radius: 5px; background: #E4DED6; margin-top: 8px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--ok); }
.meter.short i { background: var(--bad); }
.meter u { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* hours */
.hrow { padding: 10px 0; border-top: 1px solid var(--line); }
.hrow .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hrow .dayn { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hrow .dayn .btn.link { min-height: 28px; font-size: 13px; font-weight: 500; }
.hrow .times { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.hrow .times select { flex: 1; min-width: 0; }

/* day sheet */
.kt { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 8px; }
.kt b { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.entry { padding: 12px 0; border-top: 1px solid var(--line); }
.entry:first-of-type { border-top: 0; }
.entry .t { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.entry .t b { font-size: 16px; } .entry .t > span:not(.chip) { color: var(--muted); font-size: 13px; }
.entry ul { margin: 6px 0 0; padding-left: 20px; }
.dtitle { font-size: 24px; margin: 4px 0; }

/* calendar */
.ev1.wait { background: var(--warn-soft); color: var(--warn); }
.calnav .btn { min-width: 44px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.month .dow { padding: 8px 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.month .cell { font: inherit; color: inherit; text-align: left; background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 58px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; cursor: pointer; position: relative; }
.month .cell:nth-child(7n) { border-right: 0; }
.month .cell .n { font: 600 13px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-2); padding: 3px 0; }
.month .cell.out .n { color: var(--hair); }
.month .cell.today .n { color: #fff; background: var(--brand); border-radius: 10px; padding: 4px 7px; }
.month .cell.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.month .cell .ev1, .month .cell .morev { display: none; }
.month .cell .ev1.closed { display: block; width: 100%; height: 5px; padding: 0; border-radius: 3px; }
.month .cell .ev1.closed span { display: none; }
.dotn { min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.dotn.w { background: var(--warn); }
.morev { font-size: 11px; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd { font: inherit; color: var(--ink-2); border: 1px solid var(--line); background: var(--paper); border-radius: 12px; min-height: 84px; padding: 8px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; cursor: pointer; }
.wd b { font-size: 19px; color: var(--ink); letter-spacing: -.02em; }
.wd i { font-style: normal; min-height: 14px; font-weight: 700; color: var(--ink); }
.wd i.w { color: var(--warn); font-size: 10px; }
.wd.today b { color: var(--brand-ink); }
.wd.off { background: repeating-linear-gradient(135deg, #EDE8E2 0 6px, #F7F4F0 6px 12px); }
.wd[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.wd[aria-pressed="true"] b, .wd[aria-pressed="true"] i { color: #fff; }
.agenda .dn { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.evbtn { font: inherit; color: inherit; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; display: block; width: 100%; }

/* toast: one place, kinds by colour */
.toast.ok { background: var(--ok); }
.toast.wait .spin { flex: none; }
.toast.bad { background: #6E0B0B; }
.toast button { text-decoration: none; font-weight: 600; font-size: 13px; opacity: .9; }
.sheet .btn { width: 100%; }
.sheet .yrow { display: flex; align-items: center; justify-content: space-between; }
.sheet .yrow .btn { width: auto; }
.sheet .mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.caltitle { border: 0; background: none; padding: 0; color: inherit; font-family: inherit; cursor: pointer; min-height: 40px; text-align: left; }
.caltitle span { color: var(--muted); }
.scrim { position: fixed; }
.toast { position: fixed; }

@container app (min-width: 860px) {
  .month .cell { align-items: stretch; min-height: 112px; padding: 8px; }
  .month .cell .n { align-self: flex-start; }
  .month .dow { text-align: left; padding: 10px; font-size: 11px; }
  .month .cell .ev1 { display: flex; }
  .month .cell .morev { display: block; }
  .month .cell .ev1.closed { height: auto; padding: 4px 7px; }
  .month .cell .ev1.closed span { display: inline; }
  .dotn { display: none; }
  .wd { min-height: 96px; font-size: 12px; }
  .rail .grp + button { margin-top: 0; }
}
@media (max-width: 380px) { .nums b { font-size: 18px; } .money { width: 112px; } .cols { grid-template-columns: 1fr; } }

@media print {
  html, body { height: auto; display: block; background: #fff; }
  .device, .app, .view { display: block !important; overflow: visible !important; height: auto !important; background: #fff; }
  body * { visibility: hidden; }
  .daysheet, .daysheet * { visibility: visible; }
  .daysheet { position: absolute; left: 0; top: 0; width: 100%; padding: 0 8px; }
  .daysheet .card { border: 0; padding: 0 0 8px; margin: 0 0 10px; border-bottom: 1px solid #999; border-radius: 0; }
  .noprint, .tabbar, .rail, .toast, .scrim { display: none !important; }
  .printonly { display: block; }
}

/* fixes after seeing the screens */
#money .seg { display: flex; align-self: stretch; }
#money .seg button { flex: 1 1 0; padding: 0 6px; font-size: 13px; }
@container app (min-width: 860px) {
  .month .cell .ev1 span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
}
.pad > .lead + .card, .pad > .lead + .grid { margin-top: 12px; }

/* The Dooey House (read-only, from OwnerRez) */
.hage { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.hage.old { color: var(--warn); font-weight: 600; }
.hage .ico { width: 14px; height: 14px; }
.hcard { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; }
.hcard .kv { font-size: 14px; }
.row.stay .trail { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.row.stay .trail small, .hmonth .trail small { font-size: 11px; color: var(--muted); }
.hmonth .trail { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.hmonth .meter { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.hmonth .meter i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.hday .kv { font-size: 14px; padding: 5px 0; }
.legend .hage { margin-left: 4px; }
/* calendar: with the House filter each night is tinted by its state; with all services only reserved nights get a quiet mark */
.month .cell.hf.h-reserved { background: #F1EDE8; }
.month .cell.hf.h-open { background: var(--brand-soft); }
.month .cell.hf.h-blocked, .month .cell.hf.h-closed { background: repeating-linear-gradient(135deg, #EDE8E2 0 6px, #F7F4F0 6px 12px); }
.month .cell.h-reserved:not(.hf)::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 3px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.month .cell .ev1.stay { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wd .hw { font-size: 10px; font-weight: 700; color: var(--ink-2); }
.wd.h-reserved { box-shadow: inset 0 0 0 1.5px var(--ink); }
.wd.h-open { background: var(--brand-soft); }
.wd[aria-pressed="true"].h-open, .wd[aria-pressed="true"].h-reserved { background: var(--ink); }
.wd[aria-pressed="true"] .hw { color: #fff; }
@container app (min-width: 860px) {
  .month .cell.hf.h-reserved, .month .cell.hf.h-open, .month .cell.hf.h-blocked, .month .cell.hf.h-closed { background: none; }
  .month .cell.h-reserved:not(.hf)::after { display: none; }
}

/* installed as an app */
.signin img.siklogo { width: 200px; height: auto; align-self: center; }
@media (display-mode: standalone) { body { overscroll-behavior-y: none; } } /* no rubber-band pull that looks like a page reload */

/* from the parity audit */
.asofrow { font-size: 12px; color: var(--muted); margin-bottom: -10px; min-height: 16px; }
.asofrow:empty { display: none; }
.tabbar .dot.off { background: var(--warn); left: calc(50% + 6px); padding: 0 5px; white-space: nowrap; }
.rowwrap { display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); }
.rowwrap:first-child, .day + .rowwrap { border-top: 0; }
.rowwrap > .row { border-top: 0; flex: 1 1 100%; min-width: 0; }
.rowwrap .rowact { flex: 1 1 100%; padding: 0 14px 12px 78px; display: flex; gap: 8px; }   /* phone: the button sits under the order, lined up with its name */
.rowwrap .rowact .btn { min-width: 132px; }
@container app (min-width: 860px) {
  .rowwrap { flex-wrap: nowrap; }
  .rowwrap > .row { flex: 1 1 auto; }
  .rowwrap .rowact { flex: 0 0 auto; padding: 0 12px 0 0; }
  .rowwrap .rowact .btn { min-width: 0; }
}

/* one order or request, in full */
.od { display: flex; flex-direction: column; gap: 16px; }
.od .oblock > .eyebrow, .decbox > .eyebrow { display: block; margin-bottom: 6px; }
.od .who { font-size: 18px; font-weight: 600; line-height: 1.3; }
.od a.ln { display: block; color: var(--brand-ink); padding: 5px 0; overflow-wrap: anywhere; font-weight: 600; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.row3 .btn { padding: 0 6px; }
.olines { width: 100%; border-collapse: collapse; }
.olines td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.olines tr:first-child td { border-top: 0; }
.olines .q { white-space: nowrap; padding-right: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.olines .p { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.olines .sub, .olines .nt { font-size: 13px; color: var(--muted); }
.olines .craw td { color: var(--brand-ink); }
.operson { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.operson:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ototals { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line-2); }
.otot { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.otot.big { font-weight: 700; font-size: 17px; }
.dl { margin: 0; }
.dl > div { padding: 8px 0; border-top: 1px solid var(--line); }
.dl > div:first-child { border-top: 0; padding-top: 0; }
.dl dt { font-size: 12px; color: var(--muted); }
.dl dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.decbox { border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.card .decbox { background: var(--ground); }
.decbox .btn { width: 100%; }
.effects { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }
.effects li { margin: 3px 0; }
.banner ul { margin: 6px 0 0; padding-left: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brand); }
.od .oblock { display: flex; flex-direction: column; gap: 8px; }
.od .oblock > .eyebrow { margin-bottom: 0; }
.od .oblock .row3 { margin-top: 2px; }
.od .oblock .ototals, .od .oblock .kt { margin-top: 0; }
@container app (min-width: 860px) {
  /* beside the list: a long order scrolls inside its own panel, so its last line can always be reached */
  .od.sticky { max-height: calc(100vh - 130px); overflow-y: auto; overscroll-behavior: contain; }
}

/* the invoice or quote a crawfish buyer uploaded (owners and managers only) */
.leaddoc { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
small.leaddoc { display: block; }
.sheet .docview { max-height: 62vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sheet .docview img { display: block; width: 100%; height: auto; }

/* ── Grow: Marketing Activity (read-only figures from ActiveCampaign) ── */
.narrow-f { display: block; margin: -2px 0 10px; }
@container app (min-width: 860px) { .narrow-f { display: none; } }
#grownote:not(.warn) { background: #F1EDE8; color: var(--ink-2); }
.h3row { margin: 20px 0 8px; } .h3row h3 { font: 600 15px/1.2 var(--ui); margin: 0; }
.mhero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mhero > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mnum { font-family: var(--display); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--ground); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chart { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cread { font-size: 13px; color: var(--ink-2); } .cread b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 132px; }
.barcol { flex: 1 1 0; min-width: 0; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; border-radius: 6px; cursor: pointer; }
.barcol .track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line-2); }
.barcol i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--hair); }
.barcol.on i { background: var(--ink); }
.barcol .lab { font-size: 11px; color: var(--muted); line-height: 1; }
.barcol.on .lab { color: var(--ink); font-weight: 700; }
.barcol:focus-visible, .plot .pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cfoot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.plot { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 120px; }
.plot .yax { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; line-height: 1; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; margin: -5px 0; }
.plot .pin { position: relative; touch-action: pan-y; border-radius: 4px; cursor: crosshair; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot polyline { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .cross { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--ink-2); pointer-events: none; }
.chart + .chart { margin-top: 6px; }
.plot + .cfoot { padding-left: 0; }
.ctable summary { font-size: 13px; font-weight: 600; color: var(--brand-ink); cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.ctable table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ctable th { text-align: left; font-weight: 500; color: var(--ink-2); } .ctable td { text-align: right; font-variant-numeric: tabular-nums; }
.ctable tr > * { padding: 5px 0; border-top: 1px solid var(--line); }
.period { display: grid; gap: 10px; } .period > div { display: flex; flex-direction: column; gap: 2px; } .period .was { color: var(--muted); }
.period b { font-variant-numeric: tabular-nums; }
.mrow .trail { flex-direction: row; align-items: center; gap: 8px; }
.mstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mstats > div { background: var(--ground); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.mstats b { font-size: 17px; font-variant-numeric: tabular-nums; } .mstats small { line-height: 1.2; }
.mailview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.mailview iframe { display: block; width: 100%; height: 42vh; border: 0; }
.mpad { padding: 14px 16px; } .mpad.top { border-top: 1px solid var(--line); }
.stack6 { display: flex; flex-direction: column; gap: 6px; }

/* Promote something (promote.js): the owners' form and list, and the Kindler work queue */
.pmore > summary { font-size: 14px; font-weight: 600; color: var(--brand-ink); cursor: pointer; min-height: 40px; display: flex; align-items: center; list-style: none; gap: 6px; }
.pmore > summary::-webkit-details-marker { display: none; }
.pmore > summary::before { content: '+'; font-weight: 700; width: 14px; text-align: center; }
.pmore[open] > summary::before { content: '−'; }
.pmore > .stack, .pmore > .card { margin-top: 8px; }
.pmore.card { margin-top: 12px; }
.pq { border-left: 4px solid var(--warn); margin-bottom: 12px; }
.pq .pqq { font-size: 17px; line-height: 1.4; margin: 0; }
.pstate { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0; }
.pstate span:last-child { flex: 1; min-width: 0; }
.copy { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 15px; line-height: 1.45; background: var(--ground); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0; }
.psent { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.sheet h4 { margin: 14px 0 6px; font-size: 15px; }
.pbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.pbtns .btn { flex: 0 1 auto; }
.pmat { margin-bottom: 12px; }
.pmat ul, #kp-plan ul { margin: 4px 0 0; padding-left: 18px; }
.pflag .btn { margin-top: 8px; }
.knext { color: var(--ink); margin: 0; }
small.knext { display: block; }
#kp-detail > .btn { margin-bottom: 12px; }
#kp-detail .card + .card, #kp-detail section + section { margin-top: 12px; }
#kp-detail .line { align-items: flex-end; }
#kp-detail .line .f .in { flex: 0 0 auto; }
#kp-next .line .f { flex: 1 1 160px; }
#kp-research .line .f { flex: 1 1 140px; }
#kp-detail .bar .grow1 > *, .pq .bar .grow1 > * { display: block; }
#kp-detail .bar { align-items: flex-start; }
#kp-detail > .btn { width: auto; display: inline-flex; }
#kp-plan p, #kp-next p { margin: 0; }

/* Vendors & Resources (vendors.js) */
.vhead { margin-bottom: 14px; }
.vhead .lead { margin: 0; }
.vbody .acts .btn { flex: 0 1 auto; }
.vbody .btn.sm svg { width: 16px; height: 16px; margin-right: 6px; }
.vnotes { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.vacct { font-variant-numeric: tabular-nums; }
.vsvc { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); }
.vsvc:first-of-type { border-top: 0; }
.vsvc .btn.inline { color: var(--muted); font-size: 13px; text-decoration: underline; flex: 0 0 auto; }
.vnote { align-items: flex-end; margin-top: 6px; }
.vnote .f { flex: 1 1 150px; }
.vnote .f .in, #vendform .line .f .in { flex: 0 0 auto; }
#vendform .line { align-items: flex-end; }
#vendform .line .f { flex: 1 1 160px; }
#vendform { margin-top: 4px; }
#vendnopass { display: flex; gap: 6px; align-items: center; color: var(--warn); font-weight: 600; }
.vsvc .btn.inline { border: 0; background: none; border-radius: 0; }

/* Weather on Home */
.wxstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wxd { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font-variant-numeric: tabular-nums; min-width: 0; }
.wxd small { font-size: 11px; font-weight: 600; color: var(--muted); }
.wxd b { font-size: 15px; }
.wxd span { font-size: 12px; color: var(--muted); }
.wxd em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 3px; }
.wxd.wet { background: var(--warn-soft); border-color: var(--warn); }
.wxd.wet em { color: var(--warn); }
.wxalert { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--ink); font-size: 14px; }
.wxalert .i { color: var(--warn); flex: 0 0 auto; margin-top: 2px; }
.wxalert.sev { background: var(--bad-soft); }
.wxalert.sev .i, .wxalert.sev b { color: var(--bad); }
.wxtouch { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wxtouch .eyebrow { padding: 10px 12px 2px; }
.wxkey { margin: 0; }
#wxhome .fold { border: 0; }

/* Growth opportunities */
.oppmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
/* An opportunity's detail (D63): where each fact came from, and how far along it is */
.oppbasis { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.oppsteps { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.oppsteps li { font-size: 13px; line-height: 1.25; padding-top: 10px; border-top: 4px solid var(--line-2); color: var(--muted); }
.oppsteps li.done { border-top-color: var(--hair); color: var(--ink-2); }
.oppsteps li.now { border-top-color: var(--ink); color: var(--ink); font-weight: 700; }
.calrow { cursor: default; }
/* The weekly summary (D65): three separate figures, then short lists */
.wktiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 6px; }
.wktile { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wktile b { font-size: 22px; line-height: 1.15; overflow-wrap: anywhere; }
.wktile small { color: var(--muted); }
@media (max-width: 560px) { .wktiles { grid-template-columns: 1fr; } }
.wklist { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.wknote { border-left: 4px solid var(--line-2); padding-left: 12px; color: var(--ink-2); }
.kwopen { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.kwrow + .kwrow { border-top: 1px solid var(--line); }
/* supplier invoices (D64) */
.invchg { display: grid; gap: 4px; width: 100%; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.invchg + .invchg { border-top: 1px solid var(--line); padding-top: 12px; }
.invchg small { display: block; font-size: 13px; line-height: 1.4; }
.invchg-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.invchg small { color: var(--ink-2); }
.invchg .invaff { color: var(--ink); }
.invst { display: block; margin-top: 6px; }
/* supplier invoices: slim notices instead of yellow boxes, and one compact row per line of a document (D74) */
.tip { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); padding: 2px 0 2px 10px; border-left: 3px solid var(--warn); }
.tip b { color: var(--ink); font-weight: 600; }
.invrev { display: grid; gap: 8px; }
.invrev + .invrev, .invrev + .invsaid { margin-top: 10px; }
.btn.sm { min-height: 44px; padding: 8px 14px; font-size: 14px; flex: 0 1 auto; }
.fold.slim summary { min-height: 40px; padding: 8px 36px 8px 12px; font-size: 14px; }
.invls { list-style: none; margin: 2px 0 0; padding: 0; }
.invls li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.invls li:first-child { border-top: 0; }
.invls .a { min-width: 0; flex: 1; }
.invls .a b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.invls .a small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.invls .t { flex: 0 0 auto; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.invls .chip { font-size: 11px; padding: 3px 6px; vertical-align: 1px; }
#invhead .sm { font-weight: 400; color: var(--muted); margin-left: 6px; }
#invfind { margin-bottom: 4px; }
/* price histories (D75): a product or an earlier change is one compact row that opens the product's history */
.invpr { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.invls li > .invpr { flex: 1; }
.invhist li { padding: 9px 0; }
.invhist .a b { font-size: 15px; }
#invpnow { margin: 6px 0 0; }
.invlink { margin: 0; padding: 6px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
#invphead .sm { font-weight: 400; color: var(--muted); margin-left: 6px; }
#invearlier, #invmore, #invprodall { align-self: flex-start; }


#growopps .row { align-items: flex-start; }
#growopps .row .badge { margin-top: 2px; }

/* Revenue & Savings Tracker */
.trfigs { display: grid; grid-template-columns: 1fr; gap: 10px; text-align: left; }
.trfig { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; min-width: 0; padding-left: 12px; border-left: 2px solid var(--line-2); }
.trfig .eyebrow { flex: 1 0 100%; }
.trfig .m.lg { font-size: 24px; }
.trhead { display: flex; gap: 12px; align-items: center; }
.trhead > div { display: flex; flex-direction: column; gap: 2px; }
.trsave { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.trrules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
#trview .col.g5 { gap: 16px; }
.ksrow .acts { margin-top: 8px; }


/* Customers (D56) */
.cufilters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 10px 0 12px; scrollbar-width: none; }
.cufilters::-webkit-scrollbar { display: none; }
.cuf { flex: 0 0 auto; min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cuf[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
#cuview .lead { margin-bottom: 10px; }
#culist .row .trail { flex: 0 0 auto; }
#cumore { margin-top: 10px; width: 100%; }
.cuname { margin: 0; font-size: 22px; line-height: 1.2; }
.cukv { display: grid; gap: 0; }
.cukv .kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.cukv .kv > :first-child { color: var(--muted); flex: 0 0 auto; }
.cukv .kv > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.cufigs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-bottom: 10px; }
.cufig { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-left: 12px; border-left: 2px solid var(--line-2); }
.cufig .m.lg { font-size: 20px; overflow-wrap: anywhere; }
.linkrow { display: block; width: 100%; margin: 6px 0 0; padding: 6px 0; border: 0; background: none; font: inherit; color: var(--brand-ink); font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; }
#cupage .grid { align-items: start; }

/* Audience & Reach (D57) */
.audrow { cursor: default; }
.audrow .trail { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.audrow .trail small { font-size: 12px; color: var(--muted); }
.audrow .body small { white-space: normal; }
.audsum { display: flex; flex-direction: column; gap: 4px; margin: 12px 2px 4px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.audsum small { color: var(--muted); }
#audience .fold { margin-top: 12px; }

/* Ask Dooey (D58): the button on every screen, and the conversation */
.askfab { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 20; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 6px 18px rgba(28, 28, 28, .28); }
.askfab .i { width: 22px; height: 22px; stroke: #fff; }
.askfab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.app:has(~ .askfab) .view > .pad:last-child { padding-bottom: 84px; }
.askpad { gap: 14px; min-height: calc(100% - 66px); }
.askintro h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; }
.askintro p { margin: 0; color: var(--ink-2); }
.asksug { display: flex; flex-direction: column; gap: 8px; }
.asksug .row { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); min-height: 50px; text-align: left; font: inherit; }
.asksug .row[disabled] { opacity: .6; }
.asksug .row .body { white-space: normal; font-weight: 600; }
.asktalk { display: flex; flex-direction: column; gap: 10px; }
.askq { display: flex; justify-content: flex-end; }
.askq span { max-width: 86%; background: var(--ink); color: #fff; border-radius: 16px 16px 4px 16px; padding: 10px 14px; font-weight: 500; overflow-wrap: anywhere; }
.aska { overflow: hidden; }
.aska .askbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.aska .askbody p { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.aska.withheld .askbody { color: var(--ink-2); }
.aska#askwait { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.asknote { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.askpart { padding: 12px 16px; border-top: 1px solid var(--line); }
.askpart ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.askpart.est { background: var(--ground); }
.askpart.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.askread ul { font-size: 13px; color: var(--muted); list-style: none; padding-left: 0; }
.askread li b { color: var(--warn); font-weight: 600; }
.askbar { position: sticky; bottom: 0; display: flex; gap: 8px; margin-top: auto; padding: 10px 0 6px; background: var(--ground); box-shadow: 0 -10px 12px -6px var(--ground); }
.askbar .in { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; }
.askbar .btn { min-width: 76px; min-height: 48px; }
.askfoot { margin: 0; }
@container app (min-width: 860px) {
  .askfab { position: fixed; right: 28px; bottom: 28px; }
  .app:has(~ .askfab) .view > .pad:last-child { padding-bottom: 28px; }
  .askpad { max-width: 760px; }
}
@media print { .askfab { display: none !important; } }
