/* studio/catalog.css: the new look ("studio") of Products & Services, Recurring Invoices and Tags (ui/items.js, ui/recurring.js, ui/tags.js). Every rule starts
   with html[data-ui="studio"] and copies the Classic selector of public/css/catalog.css verbatim, inside the same media block (SPEC 2026-11-03 section 3).
   Classic's :root block there (the purple, two shadows) cannot be restated in a studio file, so every rule that reads one of its names is overridden here
   instead. Values: panel/01-ux-architect.md sections 4 and 5 (no pills, no bubbles, no cards around lists, flat step sections), panel/02-visual-system.md
   section 5 (the sheet in the stage-black frame). Every colour and size is a token of studio/tokens.css; never a transition or animation shorthand (only
   transition-property); every Classic phone or desktop variant touched is restated inside its own media block. .ti-help stays as primitives.css leaves it
   (tests/simple-mode-purchases.browser.test.mjs:156 waits for it). Slice 2B (build/21-sales.md). */

/* ---- the three lists: tabs at the left on the hairline, the count a bare mono figure after the word, the filter count line 13px; the row icons are
   36px square quiet buttons in the page's ink ---- */
html[data-ui="studio"] .cat-tabs{justify-content:flex-start;padding-top:16px}
html[data-ui="studio"] .cg-count{min-width:0;height:auto;padding:0;margin-left:8px;border-radius:0;background:none;color:inherit;font-family:var(--font-num);font-size:inherit;font-weight:400;line-height:inherit}
html[data-ui="studio"] .seg button[aria-selected=true] .cg-count{background:none;color:inherit}
@media (max-width:520px){html[data-ui="studio"] .cg-count{margin-left:8px}}
html[data-ui="studio"] .cat-filterline{font-size:var(--type-xs)}
html[data-ui="studio"] .cat-filterline .cg-count{background:none;color:var(--text-secondary)}
html[data-ui="studio"] .cg-ib{width:var(--control-s);height:var(--control-s);border-radius:var(--radius-xs);color:var(--text-primary);transition-property:background-color,transform}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .cg-ib:hover{background:var(--bg-raised)}}
@media (max-width:959px){
  html[data-ui="studio"] .table.cg-ps td.act .cg-ias{margin-right:-8px}
  html[data-ui="studio"] .table.cg-tg td.act .cg-ias{margin-right:-8px}
}

/* ---- the Due now strip keeps its panel, in the panel grey with the rule as its edge ---- */
html[data-ui="studio"] .panel.due{background:var(--bg-panel);border-color:var(--divider)}

/* ---- the empty Recurring Invoices page: the label a plain 13px secondary line, the headline in Lato ---- */
html[data-ui="studio"] .rec-kicker{letter-spacing:0;text-transform:none;color:var(--text-secondary)}
html[data-ui="studio"] .rec-hero h1{font-family:var(--font-ui);line-height:36px}

/* ---- the plain forms (Products & Services, Tags): the panel's own 24px, the help lines hidden (read by a screen reader), the buttons 8px apart ---- */
html[data-ui="studio"] .cg-form{gap:16px;padding:24px}
html[data-ui="studio"] .cg-help{display:none}
html[data-ui="studio"] .cg-form .cg-actions{gap:8px}

/* ---- the recurring invoice form: no shadow; the business bar a 13px label on a rule, no fill, no chevron; the schedule card a section on a rule; the
   "New" mark a plain word; the overview flat on the page ---- */
html[data-ui="studio"] .rec-form{gap:24px;padding:24px;box-shadow:none}
html[data-ui="studio"] .rec-bar{min-height:var(--control-s);padding:12px 0 0;border:0;border-top:1px solid var(--divider);border-radius:0;background:none;color:var(--text-secondary);font-size:var(--type-xs);line-height:18px;transition-property:none}
html[data-ui="studio"] .rec-bar .icon{display:inline-block;color:var(--text-tertiary)}   /* the bar opens and closes the block: its chevron stays, quiet (review R) */
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .rec-bar:hover{background:none}}
html[data-ui="studio"] input.rec-title{min-height:var(--control);font-weight:400}
html[data-ui="studio"] .rec-biz .biz-logo{width:fit-content;padding:8px;background:#fff;border-radius:var(--radius-xs)}   /* the logo spot's thumbnail on white: a dark wordmark would vanish on the dark bar; as wide as the picture, Remove logo under it */
html[data-ui="studio"] .rec-biz .biz-logo .p-logo{object-position:left center}   /* a wide picture sits on the centre line of its white swatch, not at its top (the pinned .p-logo is left top) */
html[data-ui="studio"] .rec-card{padding:24px 0 0;border:0;border-top:1px solid var(--divider);border-radius:0}
html[data-ui="studio"] .cg-new{height:auto;padding:0;border-radius:0;background:none;color:var(--text-secondary)}
html[data-ui="studio"] .rec-over{gap:16px 24px;padding:0;border:0;border-radius:0;background:none}

/* ---- the customer box: the well with the rule as its edge and the 8px corners, the words in the page's ink ---- */
html[data-ui="studio"] .cp-box{border-color:var(--divider);border-radius:var(--radius-xs)}
html[data-ui="studio"] .cp-add{border-radius:var(--radius-xs);color:var(--text-primary);transition-property:background-color,transform}
html[data-ui="studio"] .cp-opt{border-radius:var(--radius-xs)}
html[data-ui="studio"] .cp-opt.on{background:var(--bg-raised)}
html[data-ui="studio"] .cp-create{color:var(--text-primary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .cp-add:hover{background:var(--bg-panel-2)}html[data-ui="studio"] .cp-opt:hover{background:var(--bg-panel-2)}html[data-ui="studio"] .cp-opt.on:hover{background:var(--bg-raised)}}

/* ---- the tag field: the well with the rule as its edge, chips with the 8px corners in the regular weight, the list raised with the one shadow ---- */
html[data-ui="studio"] .ti-field{border-color:var(--divider);border-radius:var(--radius-xs);transition-property:none}
html[data-ui="studio"] .ti-chip{border-radius:var(--radius-xs);background:var(--bg-panel-2);font-weight:400}
html[data-ui="studio"] .ti-x{color:var(--text-primary)}
html[data-ui="studio"] .ti-count{font-family:var(--font-num)}
html[data-ui="studio"] .ti-list{border-color:var(--divider);border-radius:var(--radius-xs);background:var(--bg-panel-2);box-shadow:var(--shadow-raised)}
html[data-ui="studio"] .ti-opt{border-radius:var(--radius-xs)}
html[data-ui="studio"] .ti-opt.on{background:var(--bg-raised)}
html[data-ui="studio"] .ti-opt.new{color:var(--text-primary)}
@media (hover:hover) and (pointer:fine){html[data-ui="studio"] .ti-opt:hover{background:var(--bg-raised)}html[data-ui="studio"] .ti-opt.on:hover{background:var(--bg-raised)}}

/* ---- the template page: the three steps as flat sections on hairlines (no circles, no line), the sheet in the display frame ---- */
html[data-ui="studio"] .rec-tl{gap:0}
html[data-ui="studio"] .rec-step{grid-template-columns:minmax(0,1fr);gap:0}
html[data-ui="studio"] .rec-step:not(:last-child)::before{content:none}
html[data-ui="studio"] .rec-step-n{display:none}
html[data-ui="studio"] .rec-step-b{padding:24px 0;border:0;border-top:1px solid var(--divider);border-radius:0;background:none;box-shadow:none}
html[data-ui="studio"] .rec-step.later .rec-step-b{background:none;box-shadow:none;color:var(--text-secondary)}
html[data-ui="studio"] .rec-step-b h2{font-size:var(--type-l);line-height:28px}   /* a step is a section: the one section head, 18 over 28 (review R) */
/* The required mark is a mark, not a problem: the secondary ink, never the flag red (brand section 6; review R). */
html[data-ui="studio"] .cg-req{color:var(--text-secondary)}
html[data-ui="studio"] .rec-prev{justify-items:center;padding:40px;border-radius:var(--radius);background:var(--stage)}
@media (max-width:959px){html[data-ui="studio"] .rec-prev{padding:16px;border-radius:0}}
html[data-ui="studio"] .rec-acts{gap:8px}
