/* Owner studio and customer account: a calm work surface in the shop's colors.
   Layout concept: espresso sidebar like the shop's footer, white work cards on linen,
   state shown with pills and stripes. Single committed light look. */
:root {
  --espresso: #2a1d16;
  --espresso-2: #3d2a20;
  --kraft: #d9b88f;
  --kraft-soft: #efe2cf;
  --linen: #f6f1e9;
  --card: #ffffff;
  --line-warm: #e7ddcf;
  --muted-warm: #6d5a4c;
  --accent: #b2323b;
  --accent-deep: #8e2430;
  --accent-soft: #f6dfdc;
  --pine: #2f4c3e;
  --pine-soft: #e2ece5;
  --display: "Fraunces", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ink: var(--espresso);
  --line: var(--line-warm);
  --muted: var(--muted-warm);
  --paper: var(--linen);
  --side-w: 236px;
  color-scheme: light;
}
body.app { background: var(--linen); color: var(--espresso); }
.app h1, .app h2, .app h3 { text-wrap: balance; }
.app h1 { font-family: var(--display); font-weight: 560; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.015em; }
.app h2 { font-size: 18px; font-weight: 800; }
.app .btn.primary { background: var(--espresso); }
.app .btn.accent { background: var(--accent); color: #fff; }
.app .btn.accent:hover { background: var(--accent-deep); }
.app .btn.pine { background: var(--pine); color: #fff; }
.app :focus-visible { outline-color: var(--accent); }
.hand { font-family: var(--hand); font-weight: 600; }
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--bar-h)); }
.side { background: var(--espresso); color: #e9dccb; position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); overflow: auto; padding: 22px 14px 20px max(14px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.side .brand { display: flex; align-items: baseline; gap: 5px; color: #fff; text-decoration: none; padding: 0 8px; }
.side .brand b { font-family: var(--display); font-size: 21px; font-weight: 600; }
.side .brand span { font-family: var(--hand); color: var(--kraft); font-size: 20px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px; }
.side nav a svg { width: 19px; height: 19px; flex: 0 0 auto; opacity: .85; }
.side nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side nav a.on { background: var(--kraft-soft); color: var(--espresso); }
.side nav a .n { margin-left: auto; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; min-width: 22px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.side .grp { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a8917b; padding: 10px 10px 4px; }
.side .foot { margin-top: auto; font-size: 12px; color: #a8917b; padding: 0 8px; line-height: 1.5; }
.side .foot a { color: #e9dccb; }
.main { min-width: 0; padding: 26px max(16px, env(safe-area-inset-right, 0px)) 80px 30px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted-warm); max-width: 70ch; }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line-warm); border-radius: 14px; padding: 18px 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head small { color: var(--muted-warm); }
.cols2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols2 > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack { display: grid; gap: 16px; align-content: start; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line-warm); border-radius: 14px; padding: 14px 16px; }
.kpi small { display: block; color: var(--muted-warm); font-size: 12.5px; font-weight: 700; }
.kpi b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi span { font-size: 12.5px; color: var(--muted-warm); }
.kpi.alert { border-color: #e8c0bc; background: #fff8f7; }
.tag-est { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a5300; background: #fff3d6; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.tag-act { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); background: var(--pine-soft); padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.prio { display: grid; gap: 8px; }
.prio-item { display: grid; grid-template-columns: 6px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px 10px 0; border: 1px solid var(--line-warm); border-radius: 12px; background: #fff; overflow: hidden; }
.prio-item .stripe { align-self: stretch; background: var(--kraft); }
.prio-item.hot .stripe { background: var(--accent); }
.prio-item.ok .stripe { background: var(--pine); }
.prio-item img, .prio-item .ic { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--kraft-soft); display: grid; place-items: center; font-weight: 800; color: var(--espresso); }
.prio-item b { display: block; font-size: 14.5px; }
.prio-item span { font-size: 13px; color: var(--muted-warm); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: baseline; }
.feed li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--kraft); }
.feed time { color: var(--muted-warm); font-size: 12px; white-space: nowrap; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick a, .quick button { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line-warm); border-radius: 12px; background: #fff; text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.quick a:hover, .quick button:hover { border-color: var(--espresso); }
.quick svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }

/* Boards */
.board-wrap { overflow-x: auto; padding-bottom: 8px; margin: 0 -4px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; padding: 0 4px; min-width: min-content; }
.lane { background: #efe6da; border-radius: 14px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 240px; }
.lane.drop-on { outline: 2px dashed var(--accent); }
.lane-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 6px; font-weight: 800; font-size: 13.5px; }
.lane-head .n { background: #fff; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.ocard { background: #fff; border-radius: 11px; padding: 11px 12px; box-shadow: 0 1px 2px rgba(42, 29, 22, .08); display: grid; gap: 8px; cursor: pointer; border: 1px solid transparent; text-align: left; font: inherit; width: 100%; }
.ocard:hover { border-color: var(--kraft); }
.ocard[draggable="true"] { cursor: grab; }
.ocard .top { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; }
.ocard .top b { font-size: 14px; }
.ocard .thumbs { display: flex; gap: 4px; }
.ocard .thumbs img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.ocard .thumbs span { width: 34px; height: 34px; border-radius: 6px; background: var(--kraft-soft); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; }
.ocard .meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-warm); }
.ocard .next { border: 0; background: var(--kraft-soft); border-radius: 999px; padding: 4px 10px; font-weight: 800; font-size: 12px; cursor: pointer; color: var(--espresso); }
.ocard .next:hover { background: var(--espresso); color: #fff; }
.flag { font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-deep); }
.flag.ok { background: var(--pine-soft); color: var(--pine); }
.flag.plain { background: var(--kraft-soft); color: var(--espresso); }

/* Tables and lists */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-warm); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--line-warm); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-warm); vertical-align: middle; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .neg { color: #a3261f; font-weight: 800; }
.tbl .pos { color: var(--pine); font-weight: 800; }
.plist { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: 22px 28px 58px minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) 96px auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line-warm); border-radius: 12px; padding: 8px 12px; }
.prow.dragging { opacity: .5; }
.prow.over { border-color: var(--accent); box-shadow: 0 -3px 0 var(--accent); }
.prow img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; background: var(--kraft-soft); }
.prow .t b { display: block; font-size: 14.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prow .t span { font-size: 12.5px; color: var(--muted-warm); }
.prow .money b { display: block; font-variant-numeric: tabular-nums; }
.prow .money span { font-size: 12.5px; color: var(--muted-warm); }
.prow .stockin { width: 72px; padding: 7px 8px; border: 1.5px solid var(--line-warm); border-radius: 8px; font: inherit; font-weight: 700; text-align: center; }
.prow .acts { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; }
.grip { cursor: grab; color: #b9a690; display: grid; place-items: center; background: none; border: 0; padding: 0; }
.grip svg { width: 16px; height: 22px; }
.icon-b { border: 1px solid var(--line-warm); background: #fff; border-radius: 8px; padding: 6px 9px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.icon-b:hover { border-color: var(--espresso); }
.icon-b.danger { color: #a3261f; }
.filters-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filters-row input[type="search"], .filters-row select { font: inherit; font-size: 14px; padding: 9px 12px; border: 1.5px solid var(--line-warm); border-radius: 9px; background: #fff; }
.filters-row input[type="search"] { min-width: 220px; flex: 1; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--espresso); color: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; font-size: 14px; }
.bulkbar .icon-b { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.seg { display: inline-flex; background: #efe6da; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--muted-warm); }
.seg button.on { background: #fff; color: var(--espresso); box-shadow: 0 1px 2px rgba(42, 29, 22, .15); }
.seg button.on.live { background: var(--pine); color: #fff; }
.seg button.on.hidden { background: #fff3d6; color: #7a5300; }
.seg button.on.archived { background: #e9e4dd; color: #5c5148; }

/* Category manager */
.catgroup + .catgroup { margin-top: 18px; }
.catgroup h3 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-warm); font-weight: 800; margin: 0 0 8px; display: flex; gap: 10px; align-items: baseline; }
.catgroup h3 small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.crow { display: grid; grid-template-columns: 22px 54px minmax(0, 1.6fr) minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line-warm); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.crow.is-hidden { background: #fffcf4; }
.crow.is-archived { background: #f4f1ec; opacity: .85; }
.crow .cover { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 0; padding: 0; cursor: pointer; position: relative; background: var(--kraft-soft); }
.crow .cover img { width: 100%; height: 100%; object-fit: cover; }
.crow .cover::after { content: "Change"; position: absolute; inset: 0; background: rgba(42, 29, 22, .55); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.crow .cover:hover::after, .crow .cover:focus-visible::after { opacity: 1; }
.crow .nm input { font: inherit; font-weight: 800; font-size: 15px; border: 1.5px solid transparent; border-radius: 7px; padding: 4px 6px; width: 100%; background: transparent; }
.crow .nm input:hover { border-color: var(--line-warm); }
.crow .nm input:focus { border-color: var(--espresso); outline: none; background: #fff; }
.crow .nm span { font-size: 12.5px; color: var(--muted-warm); padding-left: 7px; }
.crow .sched { font-size: 12.5px; color: var(--muted-warm); }
.crow .sched b { color: var(--espresso); }
.menu-preview { background: var(--espresso); color: #f3e7d8; border-radius: 14px; padding: 14px; }
.menu-preview .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.menu-preview .tabs span { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.menu-preview .panel { background: #fffdf9; color: var(--espresso); border-radius: 10px; padding: 12px; margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: center; font-size: 12px; font-weight: 700; }
.menu-preview .panel img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.seasons label { cursor: pointer; border: 2px solid var(--line-warm); border-radius: 12px; overflow: hidden; background: #fff; display: grid; font-size: 13px; font-weight: 800; }
.seasons input { position: absolute; opacity: 0; }
.seasons img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.seasons span { padding: 6px 8px; }
.seasons label:has(input:checked) { border-color: var(--accent); }
.seasons label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.ed-sec { display: grid; gap: 12px; align-content: start; }
.ed-sec + .ed-sec { margin-top: 0; }
.ed-box { border: 1px solid var(--line-warm); border-radius: 12px; padding: 14px; display: grid; gap: 12px; background: #fff; }
.ed-box h3 { font-size: 14px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .field .lbl { font-weight: 700; font-size: 13px; }
.field input, .field textarea, .field select { font: inherit; font-size: 14.5px; padding: 9px 11px; border-radius: 9px; border: 1.5px solid var(--line-warm); background: #fff; color: var(--espresso); width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--espresso); }
.field small { color: var(--muted-warm); font-size: 12px; }
.field .err { color: #a3261f; font-size: 12.5px; font-weight: 700; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.money-in { position: relative; }
.money-in::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted-warm); font-weight: 700; }
.money-in input { padding-left: 22px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.photo { position: relative; width: 92px; }
.photo img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; border: 2px solid transparent; }
.photo:first-child img { border-color: var(--accent); }
.photo .pa { display: flex; justify-content: space-between; margin-top: 3px; }
.photo .pa button { border: 0; background: #f0e8dd; border-radius: 6px; font-size: 12px; padding: 2px 7px; cursor: pointer; }
.photo .main-l { position: absolute; left: 4px; top: 4px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }
.addph { display: flex; gap: 8px; flex-wrap: wrap; }
.addph label { cursor: pointer; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chipset label { cursor: pointer; }
.chipset input { position: absolute; opacity: 0; }
.chipset span { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1.5px solid var(--line-warm); font-size: 13px; font-weight: 700; background: #fff; }
.chipset input:checked + span { background: var(--espresso); color: #fff; border-color: var(--espresso); }
.chipset input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chipset .off { opacity: .55; }
.econ { background: var(--espresso); color: #f3e7d8; border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.econ .r { display: flex; justify-content: space-between; gap: 10px; }
.econ .r.tot { border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 8px; margin-top: 2px; font-size: 16px; font-weight: 800; color: #fff; }
.econ .bad { color: #ffb4ab; }
.econ .good { color: #b9e3c6; }
.econ small { color: #cdb9a3; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.switch input { width: 38px; height: 22px; appearance: none; -webkit-appearance: none; background: #d9cbb9; border-radius: 11px; position: relative; cursor: pointer; transition: background .15s; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked { background: var(--pine); }
.switch input:checked::after { left: 19px; }
.helper { background: var(--kraft-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.preview-box { border: 1px dashed var(--kraft); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 80px 1fr; gap: 12px; align-items: center; background: #fffdf9; }
.preview-box img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }

/* Chart */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 180px; padding-top: 10px; }
.bars .b { display: grid; gap: 4px; justify-items: center; align-content: end; height: 100%; font-size: 12px; color: var(--muted-warm); font-variant-numeric: tabular-nums; }
.bars .col { width: 100%; max-width: 64px; display: grid; align-content: end; height: 140px; position: relative; }
.bars .rev { background: var(--kraft); border-radius: 6px 6px 0 0; width: 100%; }
.bars .pro { background: var(--pine); border-radius: 6px 6px 0 0; width: 56%; position: absolute; bottom: 0; left: 22%; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted-warm); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ladder { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.ladder .r { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-warm); font-size: 14px; }
.ladder .r.sub { color: var(--muted-warm); }
.ladder .r.tot { font-weight: 800; font-size: 16px; border-bottom: 0; border-top: 2px solid var(--espresso); }

/* Threads, proofs, files */
.thread { display: grid; gap: 8px; max-height: 300px; overflow: auto; padding: 4px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; background: #f1e9df; }
.msg.owner { justify-self: end; background: var(--espresso); color: #fff; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.reply { display: flex; gap: 8px; }
.reply input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border-radius: 999px; border: 1.5px solid var(--line-warm); }
.filegrid { display: flex; gap: 8px; flex-wrap: wrap; }
.filegrid figure { margin: 0; width: 120px; }
.filegrid img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; }
.filegrid figcaption { font-size: 11.5px; color: var(--muted-warm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps-line { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 2px; }
.steps-line span { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #efe6da; color: var(--muted-warm); }
.steps-line span.done { background: var(--pine-soft); color: var(--pine); }
.steps-line span.cur { background: var(--accent); color: #fff; }
.slip { border: 1px solid var(--line-warm); border-radius: 10px; padding: 14px; background: #fffdf9; font-size: 13.5px; }
.slip h4 { font-family: var(--display); font-size: 18px; margin: 0 0 6px; }
.checklist { display: grid; gap: 6px; }
.checklist label { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }

/* Mobile bottom bar */
.tabbar { display: none; }
@media (max-width: 960px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols2, .editor { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 22px 50px minmax(0, 1fr) auto; grid-template-areas: "c i t a" "c i m s"; row-gap: 4px; }
  .prow .grip { display: none; }
  .prow > .ck { grid-area: c; }
  .prow > img { grid-area: i; width: 50px; height: 50px; }
  .prow > .t { grid-area: t; }
  .prow > .money.price-c { grid-area: m; }
  .prow > .money.profit-c { display: none; }
  .prow > .stockc { grid-area: s; }
  .prow > .acts { grid-area: a; }
  .crow { grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "cv nm acts" "cv st st" "cv sc sc"; row-gap: 6px; }
  .crow .grip { display: none; }
  .crow .cover { grid-area: cv; }
  .crow .nm { grid-area: nm; }
  .crow .stc { grid-area: st; }
  .crow .sched { grid-area: sc; }
  .crow .acts { grid-area: acts; }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 110px max(16px, env(safe-area-inset-left, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: var(--espresso); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; color: #d9c7b2; text-decoration: none; font-size: 10.5px; font-weight: 700; background: none; border: 0; padding: 4px 0; cursor: pointer; position: relative; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .on { color: #fff; }
  .tabbar .n { position: absolute; top: 0; right: calc(50% - 20px); background: var(--accent); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .quick { grid-template-columns: 1fr; }
  .prio-item { grid-template-columns: 6px 40px minmax(0, 1fr); }
  .prio-item > .btn { grid-column: 2 / -1; justify-self: start; margin-left: 0; }
  .menu-preview .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-auto-columns: minmax(240px, 80vw); }
}
@media (max-width: 460px) {
  .row2 { grid-template-columns: 1fr; }
  .filters-row input[type="search"] { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .app *, .app *::before, .app *::after { transition: none !important; animation: none !important; } }
.chipset label, .seasons label { position: relative; }
.chipset input, .seasons input { left: 0; top: 0; width: 1px; height: 1px; margin: 0; }
.side .brand b { font-size: 19px; white-space: nowrap; }
@media (max-width: 960px) {
  .prow { grid-template-columns: 22px 50px minmax(0, 1fr) auto; grid-template-areas: "c i t t" "c i m s" "a a a a"; }
  .prow > .acts { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .filters-row input[type="search"] { flex: 1 1 100%; min-width: 0; }
}
.crow { grid-template-columns: 18px 54px minmax(0, 1fr) auto auto; }
.crow .nm span .sched { padding: 0; }
@media (max-width: 960px) {
  .crow { grid-template-columns: 54px minmax(0, 1fr) auto; grid-template-areas: "cv nm acts" "cv st st"; }
}
@media (max-width: 960px) {
  .crow { grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "cv nm" "st st" "acts acts"; }
  .crow .acts { justify-content: flex-start !important; }
}
.ed-sec, .ed-box, .editor > * { min-width: 0; }
@media (max-width: 760px) { .shell { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .editor, .cols2 { grid-template-columns: minmax(0, 1fr); } }
.ed-box { grid-template-columns: minmax(0, 1fr); }
