/* Shared storefront, owner workspace, Finance, and entry-page typography. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');
:root {
  --body: 'DM Sans', Arial, sans-serif;
  --heading: 'Fraunces', Georgia, serif;
  --ui-text: 16px;
  --ui-small: 14px;
  --ui-title: clamp(30px, 3vw, 38px);
  --ui-section: clamp(23px, 2.1vw, 27px);
}
body { font-family: var(--body); font-size: var(--ui-text); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--heading); }
.btn, .shop-tool, .shop-browse button { font-size: 15px; line-height: 1.35; }
.desk-layout .btn,.finance-shell .btn { min-height:44px; border-radius:12px; padding:10px 18px; font-size:15px; line-height:1.25; font-weight:700; }
.desk-layout .btn.small,.finance-shell .btn.small { min-height:42px; padding:9px 14px; }
.eyebrow { font-size: 12px; line-height: 1.4; }

/* The craft desk and Finance should read as one owner workspace. */
.desk-layout, .finance-layout { color: var(--ink); }
.desk-layout .desk-main { max-width: 1240px; min-width: 0; }
.desk-layout .desk-top h1, .finance-header h1 {
  font-size: var(--ui-title);
  letter-spacing: -.025em;
  line-height: 1.15;
}
.desk-layout .panel h2, .finance-view h2 { font-size: var(--ui-section); line-height: 1.2; }
.desk-layout .panel, .finance-panel, .finance-view:not([hidden]):not(#dashboard), .finance-filter-panel {
  border-radius: 18px;
}
.desk-layout .panel p, .desk-layout .notice, .finance-view > p,
.finance-setup-card p, .finance-subtitle { font-size: 15px; line-height: 1.55; }
.desk-layout .field label, .desk-layout .panel label,
.finance-shell label { font-size: 15px; line-height: 1.45; }
.desk-layout .panel small, .finance-shell small { line-height: 1.45; }
.desk-layout .sidebar .nav-group summary,
.desk-layout .sidebar .nav-group button,
.desk-layout .sidebar .nav-group .desk-nav-link,
.finance-owner-nav summary,
.finance-sidebar nav a { font-size: 15px; line-height: 1.4; }
.desk-layout .sidebar .nav-group button,
.desk-layout .sidebar .nav-group .desk-nav-link { min-height: 44px; }
.owner-nav-icon { display:block; width:18px; height:18px; flex:0 0 18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.product-tax-panel { margin:22px 0; padding:20px; border:1px solid color-mix(in srgb, var(--primary) 22%, white); border-radius:18px; background:color-mix(in srgb, var(--primary) 4%, white); }
.product-tax-panel h3 { margin:0 0 8px; font-size:1.22rem; line-height:1.25; }
.product-tax-panel p { line-height:1.5; }
.product-tax-panel .field[hidden] { display:none; }
.product-tax-breakdown { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 18px; margin:16px 0; }
.product-tax-breakdown > div { display:flex; justify-content:space-between; gap:8px; padding:9px 0; border-bottom:1px solid #ddd; font-size:.92rem; }
.product-tax-breakdown strong { white-space:nowrap; }
.address-suggestions { position:relative; z-index:20; max-height:225px; overflow-y:auto; background:white; border-radius:12px; box-shadow:0 8px 25px #221a331f; }
.address-suggestion { display:block; width:100%; padding:12px; background:white; border:0; border-bottom:1px solid #ece8ef; text-align:left; color:var(--ink); font:inherit; cursor:pointer; }
.address-suggestion:hover,.address-suggestion:focus-visible { background:#f3e9f9; }
.required-marker { color:#a52b4b; font-weight:700; }
.required-help { grid-column:1/-1; margin:0 0 12px; color:#64596a; font-size:.88rem; }
@media(max-width:640px) { .product-tax-panel { padding:16px; } .product-tax-breakdown { grid-template-columns:minmax(0,1fr); } }
.finance-owner-nav details a { display:flex; align-items:center; gap:10px; }
.desk-layout .sidebar .nav-group button,
.desk-layout .sidebar .nav-group .desk-nav-link { gap:10px; }
.desk-layout .sidebar .nav-group button.active { background: color-mix(in srgb, var(--primary) 12%, white); }
.desk-layout .sidebar .nav-group .desk-nav-link:hover,
.desk-layout .sidebar .nav-group .desk-nav-link:focus-visible { background: color-mix(in srgb, var(--primary) 10%, white); }
.desk-layout .desk-version { font-size: 13px; }
.sandbox { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.inventory-item dt, .metrics-caption, .responsive-table td::before,
.report-chart-range { font-size: 13px; line-height: 1.4; }
.log-entry, .log-entry small, .report-bar-row { font-size: 14px; line-height: 1.5; }

/* Finance follows the published brand, including its logo and heading style. */
.finance-sidebar-head strong { font-family: var(--heading); }
.finance-brand-logo { display: block; width: 42px; height: 42px; object-fit: contain; flex: none; }
.finance-monogram { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, white); }
.finance-header .eyebrow, .finance-section-heading a,
.finance-more-filters summary, .finance-footnotes summary { color: var(--primary); }
.finance-sidebar nav a[aria-current=page] {
  background: color-mix(in srgb, var(--primary) 13%, white);
  color: var(--primary);
}
.finance-sidebar nav a:hover, .finance-sidebar nav a:focus-visible,
.finance-sidebar-foot a:hover, .finance-owner-nav summary:hover,
.finance-owner-nav summary:focus-visible { background: color-mix(in srgb, var(--primary) 9%, white); color: var(--primary); }
.finance-kpi[data-emphasis=profit] { background: color-mix(in srgb, var(--primary) 9%, white); border-color: color-mix(in srgb, var(--primary) 18%, white); }
.finance-kpi[data-emphasis=profit] b, .finance-chart-bar { color: var(--primary); }
.finance-chart-bar { background: var(--primary); color: white; }
.finance-shell label, .finance-shell input, .finance-shell select,
.finance-shell textarea, .finance-shell button { font-size: 15px; }
.finance-beta { font-size: 14px; line-height: 1.4; }
.finance-menu { flex: none; white-space: nowrap; line-height: 1.2; }

/* Invitation and owner sign-in use the same typographic hierarchy. */
.entry-brand, .entry-intro h1, .entry-card h2 { font-family: var(--heading); }
.entry-card h2 { font-size: var(--ui-section); }
.entry-card .field label { font-size: 15px; }
.entry-card .muted, .entry-card .acknowledgment { font-size: 15px; }
.entry-card button { font-family: var(--body); }

/* Product labels should remain readable in the two-column phone catalog. */
.product-info .eyebrow, .product .tag { font-size: 12px; line-height: 1.35; }

@media (max-width: 760px) {
  .finance-header { flex-direction: column; align-items: stretch; gap: 18px; }
  .finance-menu { align-self: flex-end; margin: 0; min-width: 100px; }
  .finance-header > div { min-width: 0; }
  .finance-shell { padding: 20px 14px 56px; }
  .finance-filter-primary label { min-width: 0; }
  .finance-filter-primary button { min-height: 48px; }
  .entry-header { gap: 12px; }
}
@media (max-width: 700px) {
  .desk-layout .desk-main { padding: 20px 14px; }
  .desk-layout .desk-top h1, .finance-header h1 { font-size: 32px; }
  .desk-layout .panel h2, .finance-view h2 { font-size: 24px; }
  .desk-layout .sidebar .nav-group summary,
  .desk-layout .sidebar .nav-group button,
  .desk-layout .sidebar .nav-group .desk-nav-link { font-size: 16px; }
  .desk-layout .desk-mobile-bar { min-height: 64px; }
  .desk-layout .desk-mobile-bar strong { font-size: 17px; line-height: 1.3; }
  .desk-layout .desk-mobile-bar button { white-space: nowrap; }
  .sandbox { padding: 8px 14px; }
  .entry-layout { padding: 28px 14px; }
}
