/* assistant.css */
.asst-fab {
  position: fixed; right: var(--s-4); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 32;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em;
  color: var(--zw-on-navy); background: linear-gradient(140deg, var(--zw-navy-hi) 0%, var(--zw-navy-lo) 100%);
  box-shadow: 0 0 0 1px rgba(227, 178, 60, .35), 0 10px 26px rgba(20, 27, 51, .32), inset 0 1px 0 var(--zw-navy-fill-2);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) var(--ease-out), opacity var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.asst-fab:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(227, 178, 60, .6), 0 14px 32px rgba(20, 27, 51, .36), inset 0 1px 0 var(--zw-navy-fill-2); }
.asst-fab:active { transform: scale(.96); }
.asst-fab:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 3px; }
.asst-fab__icon { width: 24px; height: 24px; color: var(--zw-gold-hi); position: relative; z-index: 1; }
.asst-fab__glow { position: absolute; inset: -3px; border-radius: inherit; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(227, 178, 60, 0), rgba(227, 178, 60, .55), rgba(227, 178, 60, 0) 40%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: asst-spin 6s linear infinite; opacity: .9; }
.asst-fab__label, .asst-fab__kbd { display: none; position: relative; z-index: 1; }
.asst-fab__kbd { font: 600 11px/1 var(--font-sans); padding: 4px 6px; border-radius: 6px; background: var(--zw-navy-fill-2); color: var(--zw-on-navy-2); }
.asst-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.9); }
@keyframes asst-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .asst-fab__glow { animation: none; } }
@media (max-width: 899px) {
  body:has(.form-actions) .asst-fab, body:has(.pos__charge) .asst-fab, body:has(.shop-cartbar) .asst-fab { bottom: calc(148px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
}
@media (min-width: 900px) {
  .asst-fab { right: var(--s-8); bottom: var(--s-8); width: auto; height: 50px; padding: 0 var(--s-4) 0 var(--s-3); }
  .asst-fab__icon { width: 22px; height: 22px; }
  .asst-fab__label { display: inline; }
  .asst-fab__kbd { display: inline-block; }
}
@media print { .asst-fab, .asst, .asst-backdrop { display: none !important; } }
.asst-backdrop { position: fixed; inset: 0; z-index: 54; background: var(--zw-scrim); animation: fade-in var(--t-med) var(--ease-out); }
.asst-backdrop[hidden], .asst[hidden] { display: none !important; }
.asst {
  position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: min(92vh, 92dvh); display: flex; flex-direction: column;
  background: var(--c-bg); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -12px 40px rgba(22, 23, 28, .18);
  padding-bottom: env(safe-area-inset-bottom); animation: asst-up var(--t-med) var(--ease-out); overflow: hidden;
}
@keyframes asst-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes asst-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .asst { left: auto; top: 0; right: 0; bottom: 0; height: auto; width: 440px; border-radius: var(--r-lg) 0 0 var(--r-lg);
    box-shadow: -1px 0 0 var(--c-border), -20px 0 48px rgba(22, 23, 28, .14); animation-name: asst-in; }
  .asst-backdrop { background: var(--zw-scrim); }
}
@media (prefers-reduced-motion: reduce) { .asst, .asst-backdrop { animation: none; } }
.asst__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface), var(--c-bg)); flex: none; }
.asst__head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--c-border); }
@media (min-width: 900px) { .asst__head::before { display: none; } }
.asst__mark { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--zw-navy-hi), var(--zw-navy-lo)); color: var(--zw-gold-hi); box-shadow: 0 0 0 1px rgba(227, 178, 60, .35); }
.asst__mark .icon { width: 20px; height: 20px; }
.asst__titles { display: flex; flex-direction: column; min-width: 0; }
.asst__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); letter-spacing: 0; line-height: 1.1; }
.asst__sub { font-size: var(--fs-xs); color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst__icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: var(--c-text-2); cursor: pointer; text-decoration: none; }
.asst__icon-btn:hover { background: var(--c-surface-2); color: var(--c-text); }
.asst__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.asst-skeleton { padding: var(--s-5) var(--s-4); display: grid; gap: var(--s-3); }
.asst-skeleton span { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--c-surface-2), var(--c-surface), var(--c-surface-2)); background-size: 200% 100%; animation: asst-shimmer 1.2s linear infinite; }
.asst-skeleton span:nth-child(2) { width: 70%; } .asst-skeleton span:nth-child(3) { width: 45%; }
@keyframes asst-shimmer { to { background-position: -200% 0; } }
.asst-tabs { display: flex; gap: var(--s-1); padding: var(--s-2) var(--s-3) 0; flex: none; }
.asst-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--c-text-2); font: inherit; font-size: var(--fs-sm); font-weight: 650; cursor: pointer; }
.asst-tab[aria-selected="true"] { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-1); }
.asst-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.asst-pane[hidden] { display: none; }
.asst-thread { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-4) var(--s-3); display: flex; flex-direction: column; gap: var(--s-4); scroll-behavior: smooth; }
.asst-hello__hi { margin: 0; font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.15; }
.asst-hello__q { margin: 4px 0 0; color: var(--c-text-2); }
.asst-sec { display: flex; flex-direction: column; gap: var(--s-2); }
.asst-sec[hidden] { display: none; }
.asst-sec__title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); }
.asst-sec__title .icon { color: var(--c-gold-ink); }
.asst-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.asst-chips[hidden] { display: none; }
.asst-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: var(--r-pill); cursor: pointer; text-align: left;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text); font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.3;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.asst-chip:hover { border-color: var(--c-gold); background: var(--c-gold-soft); }
.asst-chip:active { transform: scale(.98); }
.asst-chip--ghost { background: transparent; color: var(--c-text-2); font-weight: 550; }
.asst-chips--list { flex-direction: column; gap: 0; border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-1); overflow: hidden; }
.asst-chip--row { width: 100%; justify-content: space-between; border: 0; border-radius: 0; min-height: 46px; padding: 10px 14px; background: transparent; }
.asst-chip--row + .asst-chip--row { border-top: 1px solid var(--c-hairline); }
.asst-chip--row:hover { background: var(--c-surface-2); }
.asst-chip--row .icon { color: var(--c-text-3); flex: none; }
.asst-cats { display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 calc(-1 * var(--s-4)); padding-inline: var(--s-4); }
.asst-cats::-webkit-scrollbar { display: none; }
.asst-cat { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--c-border);
  background: transparent; color: var(--c-text-2); font: inherit; font-size: var(--fs-xs); font-weight: 650; cursor: pointer; white-space: nowrap; }
.asst-cat[aria-selected="true"] { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.asst-cat__n { font-size: 11px; opacity: .7; }
.asst-ask { flex: none; display: flex; align-items: center; gap: 6px; margin: 0 var(--s-3) 0; padding: 6px 6px 6px var(--s-4); border-radius: var(--r-pill);
  background: var(--c-surface); box-shadow: 0 0 0 1px var(--c-border), 0 6px 18px rgba(22, 23, 28, .06); }
.asst-ask:focus-within { box-shadow: 0 0 0 2px var(--c-accent), 0 6px 18px rgba(22, 23, 28, .08); }
.asst-ask__input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--c-text); font: inherit; font-size: var(--fs-md); min-height: 40px; }
.asst-ask__input::placeholder { color: var(--c-text-3); }
.asst-ask__btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; }
.asst-ask__btn[hidden] { display: none; }
.asst-ask__mic { background: transparent; color: var(--c-text-2); }
.asst-ask__mic:hover { background: var(--c-surface-2); color: var(--c-text); }
.asst-ask__mic.is-listening { background: var(--c-danger-soft); color: var(--c-danger); animation: asst-pulse 1.2s ease-in-out infinite; }
@keyframes asst-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-danger) 18%, transparent); } }
.asst-ask__send { background: var(--c-accent); color: var(--c-on-accent); }
.asst-ask__send:hover { background: var(--c-accent-hover); }
.asst-ask__send[aria-busy="true"] { opacity: .6; }
.asst-foot { flex: none; display: flex; align-items: flex-start; gap: 6px; margin: var(--s-2) var(--s-4) var(--s-3); font-size: 12px; line-height: 1.4; color: var(--c-text-3); }
.asst-foot .icon { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--c-gold-ink); }
.asst-steps { margin: 0; padding-left: 1.3em; color: var(--c-text-2); font-size: var(--fs-sm); display: grid; gap: 4px; }
.asst-q { align-self: flex-end; max-width: 86%; padding: 9px 14px; border-radius: 18px 18px 4px 18px; background: var(--c-accent); color: var(--c-on-accent);
  font-size: var(--fs-sm); font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; animation: fade-in var(--t-fast); }
.asst-thinking { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 18px; background: var(--c-surface); box-shadow: var(--shadow-1);
  color: var(--c-text-2); font-size: var(--fs-sm); align-self: flex-start; }
.asst-dots { display: inline-flex; gap: 3px; } .asst-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); animation: asst-dot 1s infinite; }
.asst-dots i:nth-child(2) { animation-delay: .15s; } .asst-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes asst-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.asst-card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface);
  box-shadow: var(--shadow-1); animation: asst-up var(--t-med) var(--ease-out); min-width: 0; }
.asst-card--page { box-shadow: var(--shadow-1); }
.asst-card__top { display: flex; align-items: flex-start; gap: var(--s-2); }
.asst-card__title { margin: 0; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; flex: 1; min-width: 0; }
.asst-card__period { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--c-text-3); }
.asst-badge { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700;
  background: var(--c-gold-soft); color: var(--c-text); white-space: nowrap; }
.asst-badge .icon { width: 12px; height: 12px; color: var(--c-gold-ink); }
.asst-badge--ai { background: var(--c-accent-soft); color: var(--c-accent); }
.asst-card__value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-family: var(--font-num); font-variant-numeric: tabular-nums;
  font-size: var(--fs-3xl); font-weight: 750; line-height: 1.05; letter-spacing: -0.02em; color: var(--c-text); overflow-wrap: anywhere; }
.asst-card__value--text { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-2xl); letter-spacing: 0; }
.asst-card__value--good { color: var(--c-ok); } .asst-card__value--bad { color: var(--c-danger); } .asst-card__value--warn { color: var(--c-warn); }
.asst-card__caption { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 650; color: var(--c-text-2); letter-spacing: 0; }
.asst-delta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--fs-sm); color: var(--c-text-2); }
.asst-delta__pill { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); font-weight: 750; font-variant-numeric: tabular-nums; }
.asst-delta__pill .icon { width: 14px; height: 14px; }
.asst-delta--good .asst-delta__pill { background: var(--c-ok-soft); color: var(--c-ok); }
.asst-delta--bad .asst-delta__pill { background: var(--c-danger-soft); color: var(--c-danger); }
.asst-delta--flat .asst-delta__pill { background: var(--c-surface-2); color: var(--c-text-2); }
.asst-card__text { margin: 0; line-height: 1.5; }
.asst-spark { display: block; width: 100%; height: 64px; }
.asst-spark rect { fill: color-mix(in srgb, var(--c-accent) 26%, transparent); }
.asst-spark rect.is-hl { fill: var(--c-accent); }
.asst-spark rect.is-neg { fill: color-mix(in srgb, var(--c-danger) 45%, transparent); }
.asst-spark rect.is-neg.is-hl { fill: var(--c-danger); }
.asst-spark line { stroke: var(--c-border); stroke-width: .4; }
.asst-spark-labels { display: flex; justify-content: space-between; margin-top: -6px; font-size: 11px; color: var(--c-text-3); }
.asst-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.asst-pair__item { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); color: var(--c-text-2); }
.asst-pair__bar { height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--c-accent) 22%, transparent); }
.asst-pair__item.is-hl .asst-pair__bar { background: var(--c-accent); }
.asst-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s-2); margin: 0; }
.asst-stats div { padding: 8px 10px; border-radius: var(--r-sm); background: var(--c-surface-2); min-width: 0; }
.asst-stats dt { font-size: 12px; color: var(--c-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asst-stats dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.asst-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.asst-list__title { margin: 0 0 2px; font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .05em; }
.asst-list li + li { border-top: 1px solid var(--c-hairline); }
.asst-row { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-3); align-items: center; padding: 8px 2px; color: var(--c-text); text-decoration: none; position: relative; }
a.asst-row:hover .asst-row__label { color: var(--c-accent); text-decoration: underline; }
.asst-row__label { font-size: var(--fs-sm); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asst-row__value { font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.asst-row__sub { grid-column: 1 / -1; font-size: 12px; color: var(--c-text-3); }
.asst-row__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--c-surface-2); overflow: hidden; }
.asst-row__bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c-gold), color-mix(in srgb, var(--c-gold) 55%, var(--c-accent))); }
.asst-row--warn .asst-row__value { color: var(--c-warn); } .asst-row--bad .asst-row__value { color: var(--c-danger); }
.asst-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--c-hairline); }
.asst-link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 650; text-decoration: none; }
.asst-link:hover { text-decoration: underline; }
.asst-link .icon { width: 14px; height: 14px; }
.asst-follow { display: flex; flex-wrap: wrap; gap: 6px; }
.asst-follow .asst-chip { min-height: 32px; padding: 4px 12px; font-size: var(--fs-xs); }
.asst-card__note { margin: 0; font-size: 12px; color: var(--c-text-3); }
.asst-ai-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 42px; padding: 0 16px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--zw-on-navy); background: linear-gradient(140deg, var(--zw-navy-hi), var(--zw-navy-lo)); box-shadow: 0 0 0 1px rgba(227, 178, 60, .4); }
.asst-ai-btn .icon { color: var(--zw-gold-hi); }
.asst-ai-btn small { font-weight: 550; opacity: .75; }
.ask-page { display: grid; gap: var(--s-5); max-width: 760px; }
.ask-page .asst-ask { margin: 0; }
.ask-page .asst-cats { margin: 0; padding-inline: 0; }

/* core.css */
:root {

  --t-sale: #0F766E;     --t-sale-soft: #E3F3F0;
  --t-purchase: #A1580B; --t-purchase-soft: #FBEFDF;
  --t-money: #3B4FA8;    --t-money-soft: #E8EBFA;
  --t-party: #7A3E9D;    --t-party-soft: #F3E9F8;
  --t-item: #0E6E92;     --t-item-soft: #E2F1F7;
  --t-report: #8A5A13;   --t-report-soft: #F6EEDF;
  --t-in: #1B7950;       --t-in-soft: #E6F4EC;
  --t-out: #B2453B;      --t-out-soft: #FBEAE8;
  --t-ai: #6D4BD8;       --t-ai-soft: #EFEAFD;

  --sb-bg: #091A33;
  --sb-bg-2: #0E2548;
  --sb-text: #C9D2E3;
  --sb-text-strong: #F6F1E7;
  --sb-muted: #8E9BB3;
  --sb-hover: rgba(246, 241, 231, .06);
  --sb-active: rgba(227, 178, 60, .14);
  --sb-line: rgba(246, 241, 231, .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --t-sale: #4FC7B5; --t-sale-soft: #12302C; --t-purchase: #E3A35A; --t-purchase-soft: #33240F; --t-money: #8EA2F2; --t-money-soft: #1B2142;
    --t-party: #C79BE3; --t-party-soft: #2C1D37; --t-item: #6CC3E3; --t-item-soft: #10293A; --t-report: #E3B23C; --t-report-soft: #2D271A;
    --t-in: #4CC38A; --t-in-soft: #173326; --t-out: #F07167; --t-out-soft: #3B1C1A; --t-ai: #B19CFF; --t-ai-soft: #251E44;
    --sb-bg: #071328; --sb-bg-2: #0B1D3A;
  }
}
:root[data-theme="dark"] {
  --t-sale: #4FC7B5; --t-sale-soft: #12302C; --t-purchase: #E3A35A; --t-purchase-soft: #33240F; --t-money: #8EA2F2; --t-money-soft: #1B2142;
  --t-party: #C79BE3; --t-party-soft: #2C1D37; --t-item: #6CC3E3; --t-item-soft: #10293A; --t-report: #E3B23C; --t-report-soft: #2D271A;
  --t-in: #4CC38A; --t-in-soft: #173326; --t-out: #F07167; --t-out-soft: #3B1C1A; --t-ai: #B19CFF; --t-ai-soft: #251E44;
  --sb-bg: #071328; --sb-bg-2: #0B1D3A;
}
.tint-sale, .tint-sales { color: var(--t-sale); background: var(--t-sale-soft); }
.tint-purchase { color: var(--t-purchase); background: var(--t-purchase-soft); }
.tint-cash_bank, .tint-money { color: var(--t-money); background: var(--t-money-soft); }
.tint-party, .tint-parties { color: var(--t-party); background: var(--t-party-soft); }
.tint-item, .tint-items, .tint-stock_group { color: var(--t-item); background: var(--t-item-soft); }
.tint-reports, .tint-gst, .tint-accounting { color: var(--t-report); background: var(--t-report-soft); }
.tint-in { color: var(--t-in); background: var(--t-in-soft); }
.tint-out { color: var(--t-out); background: var(--t-out-soft); }
.tint-ai { color: var(--t-ai); background: var(--t-ai-soft); }
.tint-others, .tint-settings, .tint-utilities, .tint-home, .tint-none, .tint-projects, .tint-amc { color: var(--c-text-2); background: var(--c-surface-2); }
.btn--icon { padding: 0; width: 44px; min-height: 44px; justify-content: center; }
.btn--round { border-radius: 50%; }
.relative { position: relative; }
kbd { font-family: var(--font-sans); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--c-surface-2); color: var(--c-text-2);
  box-shadow: inset 0 -1px 0 var(--c-border); white-space: nowrap; }
@media (min-width: 900px) {
  .sidebar {
    width: 264px; padding: var(--s-4) var(--s-3) var(--s-3); gap: 0; border-right: 0; color: var(--sb-text);
    background: var(--zw-navy-grad);
    scrollbar-width: thin; scrollbar-color: var(--zw-navy-line) transparent;
  }
  .sidebar__top { padding: 0 var(--s-1) var(--s-3); border-bottom: 1px solid var(--sb-line); margin-bottom: var(--s-3); }
  .sidebar .brandmark { color: var(--sb-text-strong); text-decoration: none; padding: var(--s-1) var(--s-2) var(--s-4); display: flex; }
  .sidebar .brandmark__dot { box-shadow: 0 0 0 1px rgba(227, 178, 60, .28), 0 6px 16px rgba(0, 0, 0, .35); }
  .org-switch { display: flex; align-items: center; gap: var(--s-3); padding: 8px 10px 8px 8px; border-radius: var(--r-md); text-decoration: none;
    color: var(--sb-text-strong); background: var(--zw-navy-fill); box-shadow: inset 0 0 0 1px var(--sb-line); transition: background var(--t-fast) var(--ease-out); }
  .org-switch:hover { background: var(--zw-navy-fill-2); }
  .org-switch .avatar { background: linear-gradient(135deg, var(--zw-gold), var(--zw-gold-lo)); color: var(--zw-ink-on-gold); border-radius: 10px; }
  .org-switch__text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
  .org-switch__name { font-weight: 700; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .org-switch__hint { font-size: 12px; color: var(--sb-muted); }
  .org-switch .icon { color: var(--sb-muted); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar .nav-item, .sidebar a.nav-item {
    display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 40px; padding: 0 var(--s-3); border: 0; background: none;
    border-radius: var(--r-sm); color: var(--sb-text); text-decoration: none; font: inherit; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; text-align: left;
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
  }
  .sidebar .nav-item .icon { width: 20px; height: 20px; color: var(--sb-muted); transition: color var(--t-fast) var(--ease-out); }
  .sidebar .nav-item:hover, .sidebar a.nav-item:hover { background: var(--sb-hover); color: var(--sb-text-strong); }
  .sidebar .nav-item:hover .icon { color: var(--sb-text-strong); }
  .nav-item__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sidebar a.nav-item[aria-current="page"], .nav-row.is-active > .nav-item { background: var(--sb-active); color: var(--sb-text-strong); box-shadow: inset 3px 0 0 var(--c-gold); }
  .sidebar a.nav-item[aria-current="page"] .icon { color: var(--zw-gold); }
  .nav-row, .nav-sub { position: relative; display: flex; align-items: center; }
  .nav-row > .nav-item { flex: 1; }
  .nav-sub__add { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; color: var(--sb-muted); opacity: 0; transition: opacity var(--t-fast), background var(--t-fast), color var(--t-fast); }
  .nav-row:hover .nav-sub__add, .nav-sub:hover .nav-sub__add, .nav-sub__add:focus-visible { opacity: 1; }
  .nav-sub__add:hover { background: rgba(227, 178, 60, .18); color: var(--zw-gold-hi); }
  .nav-group__chev { margin-left: auto; width: 16px !important; height: 16px !important; transition: transform var(--t-med) var(--ease-out); }
  .nav-group.is-open .nav-group__chev { transform: rotate(180deg); }
  .nav-group.is-open > .nav-group__toggle { color: var(--sb-text-strong); }
  .nav-group.is-open > .nav-group__toggle .icon:first-child { color: var(--zw-gold); }
  .nav-group__items { overflow: hidden; max-height: 0; transition: max-height 260ms var(--ease-out); }
  .nav-group.is-open .nav-group__items { max-height: 640px; }
  .nav-sub__link { flex: 1; display: block; min-height: 34px; line-height: 34px; padding: 0 36px 0 44px; border-radius: var(--r-sm); color: var(--sb-text); text-decoration: none;
    font-size: var(--fs-sm); font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
  .nav-sub__link::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: var(--sb-line); }
  .nav-sub__link:hover { background: var(--sb-hover); color: var(--sb-text-strong); }
  .nav-sub.is-active .nav-sub__link { background: var(--sb-active); color: var(--sb-text-strong); font-weight: 650; }
  .nav-sub.is-active .nav-sub__link::before { background: var(--zw-gold); width: 2px; left: 21px; }
  .sidebar__foot { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--sb-line); }
  .sidebar :focus-visible { outline-color: var(--zw-gold); }
  .sidebar__section { display: none; }
}
.topbar { gap: var(--s-2); }
.omni-trigger { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text-2); font: inherit; font-size: var(--fs-sm); flex: 0 1 auto; min-width: 44px; }
.omni-trigger:hover { box-shadow: inset 0 0 0 1px var(--c-text-3); color: var(--c-text); }
.omni-trigger .icon { width: 18px; height: 18px; }
.omni-trigger__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  .omni-trigger { width: min(460px, 38vw); justify-content: flex-start; padding: 0 8px 0 16px; }
  .omni-trigger__kbd { margin-left: auto; }
  .topbar { padding: var(--s-3) var(--s-8); border-bottom: 1px solid var(--c-hairline); }
}
.btn--sale, .btn--purchase { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); gap: 6px; }
:root { --btn-purchase-ink: var(--c-ink); }
:root[data-theme="dark"] { --btn-purchase-ink: var(--c-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-purchase-ink: var(--c-text); } }
.btn--sale { background: var(--c-accent); color: var(--c-on-accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(20, 21, 26, .16); }
.btn--sale:hover { background: var(--c-accent-hover); }
.btn--purchase { background: transparent; color: var(--btn-purchase-ink); box-shadow: inset 0 0 0 1.5px var(--btn-purchase-ink); }
.btn--purchase:hover { background: color-mix(in srgb, var(--btn-purchase-ink) 7%, transparent); }
.create-menu { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: var(--s-2) var(--s-4); width: max-content; max-width: 92vw; padding: var(--s-4); right: 0; }
.create-menu__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); padding: 0 var(--s-3) var(--s-2); }
.create-menu a { min-height: 40px; font-size: var(--fs-sm); font-weight: 600; }
.create-menu a .icon { color: var(--c-text-3); }
.create-menu a:hover .icon { color: var(--c-accent); }
.create-menu__kbd { margin-left: auto; opacity: .75; }
@media (min-width: 900px) {
  .relative:has(> .create-menu) { position: static; }
  .create-menu { right: var(--s-4); top: calc(100% - var(--s-1)); max-width: calc(100% - 2 * var(--s-4)); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .create-menu, .create-menu--solar { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 96px); overflow-y: auto; }
}
dialog { color: var(--c-text); }
dialog::backdrop { background: var(--zw-scrim); backdrop-filter: blur(2px); }
.omni { padding: 0; border: 0; background: transparent; width: min(680px, calc(100vw - 24px)); max-width: none; margin: 8vh auto auto; overflow: visible; }
.omni__box { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden;
  animation: pop-in var(--t-med) var(--ease-out); display: flex; flex-direction: column; max-height: min(640px, 80vh); }
.omni__bar { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); }
.omni__bar > .icon { color: var(--c-text-3); }
.omni__input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: var(--fs-lg); color: var(--c-text); min-height: 44px; outline: none; }
.omni__input::-webkit-search-cancel-button { display: none; }
.omni__results { overflow-y: auto; padding: var(--s-2); flex: 1; min-height: 120px; }
.omni__results[aria-busy="true"] { opacity: .7; }
.omni__group + .omni__group { margin-top: var(--s-2); }
.omni__gtitle { font-size: var(--fs-xs); font-weight: 800; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .07em; padding: var(--s-2) var(--s-3) var(--s-1); }
.omni__item { display: flex; align-items: center; gap: var(--s-3); padding: 8px var(--s-3); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; min-height: 52px; }
.omni__item.is-sel { background: var(--c-surface-2); box-shadow: inset 2px 0 0 var(--c-gold); }
.omni__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.omni__icon .icon { width: 19px; height: 19px; }
.omni__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.omni__title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni__sub { font-size: var(--fs-xs); color: var(--c-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni__amt { font-weight: 700; font-size: var(--fs-sm); }
.omni__item mark { background: color-mix(in srgb, var(--c-gold) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.omni__item--ai .omni__title { color: var(--t-ai); }
.omni__empty { text-align: center; padding: var(--s-8) var(--s-4) var(--s-4); color: var(--c-text-2); }
.omni__empty .icon { color: var(--c-text-3); margin-bottom: var(--s-2); }
.omni__foot { padding: var(--s-2) var(--s-4); border-top: 1px solid var(--c-border); background: var(--c-surface-2); }
.omni__esc { cursor: default; }
@media (max-width: 640px) {
  .omni { margin: 0; width: 100vw; height: 100dvh; max-height: none; }
  .omni__box { border-radius: 0; height: 100dvh; max-height: none; }
  .omni__foot { display: none; }
}
.shortcuts { border: 0; padding: 0; background: transparent; width: min(460px, calc(100vw - 24px)); }
.shortcuts__box { background: var(--c-surface); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-2); }
.shortcuts__list { margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.shortcuts__list div { display: flex; align-items: center; gap: var(--s-3); }
.shortcuts__list dt { width: 84px; }
.shortcuts__list dd { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); }
.create-sheet { border: 0; padding: 0; background: transparent; width: 100vw; max-width: none; margin: auto 0 0; }
.create-sheet__box { background: var(--c-surface); border-radius: 22px 22px 0 0; padding: var(--s-3) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom)); animation: sheet-up var(--t-med) var(--ease-out);
  max-height: 86dvh; overflow-y: auto; }
.create-sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--c-border); margin: 0 auto var(--s-3); }
.create-sheet__title { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-3); margin: var(--s-4) 0 var(--s-2); }
.create-sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.create-sheet__tile { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 650; color: var(--c-text); text-decoration: none;
  padding: var(--s-2) 2px; border-radius: var(--r-md); background: transparent !important; line-height: 1.25; }
.create-sheet__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 16px; background: var(--c-surface-2); }
.create-sheet__tile.tint-sale .create-sheet__icon { background: var(--t-sale-soft); color: var(--t-sale); }
.create-sheet__tile.tint-purchase .create-sheet__icon { background: var(--t-purchase-soft); color: var(--t-purchase); }
.create-sheet__tile.tint-others .create-sheet__icon { background: var(--t-money-soft); color: var(--t-money); }
@media (min-width: 900px) { .create-sheet { width: 520px; margin: auto; } .create-sheet__box { border-radius: var(--r-lg); } }
.bottomnav { align-items: center; }
.bottomnav__fab { flex: none; width: 54px; height: 54px; margin: -22px 6px 0; border: 0; border-radius: 18px; cursor: pointer; color: var(--zw-on-navy);
  background: linear-gradient(145deg, var(--zw-navy-hi) 0%, var(--zw-navy-lo) 100%); box-shadow: 0 8px 20px rgba(9, 26, 51, .32), inset 0 1px 0 var(--zw-navy-fill);
  display: inline-flex; align-items: center; justify-content: center; transition: transform var(--t-fast) var(--ease-out); }
.bottomnav__fab:active { transform: scale(.94); }
.bottomnav__fab .icon { width: 26px; height: 26px; stroke-width: 2.2; }
:root[data-theme="dark"] .bottomnav__fab { background: linear-gradient(145deg, var(--zw-gold-hi), var(--zw-gold-lo)); color: var(--zw-ink-on-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bottomnav__fab { background: linear-gradient(145deg, var(--zw-gold-hi), var(--zw-gold-lo)); color: var(--zw-ink-on-gold); } }
@media (prefers-reduced-motion: reduce) {
  .nav-group__items, .nav-group__chev, .omni__box, .create-sheet__box { transition: none !important; animation: none !important; }
}
@media (min-width: 900px) {
  .btn.hide-mobile { display: inline-flex; }
  .relative.hide-mobile { display: inline-block; }
}
.combo { position: relative; display: block; min-width: 0; }
.combo__native { position: absolute !important; opacity: 0 !important; pointer-events: none !important; width: 1px !important; height: 1px !important; min-width: 0 !important; left: 0; bottom: 0; }
.combo__input { width: 100%; padding-right: 40px !important; text-overflow: ellipsis; cursor: text; }
.combo__input:not(:focus) { cursor: pointer; }
.combo__chev { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--c-text-3);
  display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); cursor: pointer; }
.combo.is-open .combo__chev .icon { transform: rotate(180deg); }
.combo__list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); min-width: 240px; max-height: 300px; overflow-y: auto; background: var(--c-surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; animation: pop-in var(--t-fast) var(--ease-out); }
.combo--up .combo__list { top: auto; bottom: calc(100% + 6px); }
.combo__opt { padding: 9px 12px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo__opt.is-active { background: var(--c-surface-2); }
.combo__opt[aria-selected="true"] { font-weight: 750; color: var(--c-accent); }
.combo__opt--none { color: var(--c-text-3); }
.combo__opt mark { background: color-mix(in srgb, var(--c-gold) 30%, transparent); color: inherit; border-radius: 3px; }
.combo__group { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-3); padding: 10px 12px 4px; }
.combo__empty, .combo__more { padding: 10px 12px; color: var(--c-text-2); font-size: var(--fs-sm); }
.combo__add { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 10px 12px; border: 0; border-top: 1px solid var(--c-border); background: none; color: var(--c-accent);
  font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; border-radius: 0 0 var(--r-sm) var(--r-sm); text-align: left; position: sticky; bottom: -6px; background: var(--c-surface); }
.combo__add:hover, .combo__add.is-active { background: var(--c-surface-2); }
.sg__list { right: auto; max-height: 300px; }
.combo__add { top: -6px; bottom: auto; margin: 0 0 4px; border-top: 0; border-bottom: 1px solid var(--c-border); border-radius: var(--r-sm) var(--r-sm) 0 0; z-index: 1; }
form.is-live [type="submit"].btn--ghost:has(.icon) { }
form[aria-busy="true"] .input[name="q"] { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c-gold) 18%, transparent), transparent); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.quickadd { border: 0; padding: 0; background: transparent; width: min(760px, calc(100vw - 16px)); max-width: none; height: min(86vh, 900px); }
.quickadd__box { background: var(--c-bg); border-radius: var(--r-lg); box-shadow: var(--shadow-2); height: 100%; display: flex; flex-direction: column; overflow: hidden; animation: pop-in var(--t-med) var(--ease-out); }
.quickadd__bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5); background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.quickadd__frame { flex: 1; width: 100%; border: 0; background: var(--c-bg); }
@media (max-width: 640px) { .quickadd { width: 100vw; height: 100dvh; margin: 0; } .quickadd__box { border-radius: 0; } }
body.is-embed .content { padding: var(--s-4) var(--s-5) var(--s-8); max-width: none; }
body.is-embed .page-head .back { display: none; }
.grid-3 { display: grid; gap: var(--s-3) var(--s-4); }
.grid-addr { display: grid; gap: var(--s-3) var(--s-4); }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-addr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.7fr); } }
.grid-3 .field, .grid-addr .field, .grid-2 .field { margin-bottom: 0; }
@media (min-width: 900px) {
  .form-compact .input { min-height: 44px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
  .form-compact .input--big { min-height: 52px; font-size: var(--fs-lg); }
  .form-compact .card { padding: var(--s-5) var(--s-6); }
  .form-compact .field__label { font-size: var(--fs-sm); margin-bottom: 4px; }
}
.req { color: var(--c-danger); font-weight: 700; }
summary.disclosure { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; cursor: pointer; list-style: none; flex-wrap: wrap; }
summary.disclosure::-webkit-details-marker { display: none; }
summary.disclosure::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--c-text-3); border-bottom: 2px solid var(--c-text-3); transform: rotate(45deg); margin-left: auto; transition: transform var(--t-fast); }
details[open] > summary.disclosure::after { transform: rotate(-135deg); }
summary.disclosure .icon { color: var(--c-gold-ink); }
summary.disclosure .muted { font-weight: 500; width: 100%; padding-left: 26px; }
@media (min-width: 720px) { summary.disclosure .muted { width: auto; padding-left: var(--s-2); } }
.input.is-filled { animation: filled 1.2s var(--ease-out); }
@keyframes filled { 0% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-gold) 35%, transparent); } 100% { box-shadow: none; } }
.role-pick { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-gold-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 35%, transparent); }
.role-pick__head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.role-pick__label { font-weight: 750; }
.role-pick__hint { color: var(--c-text-2); }
.role-pick__seg { background: var(--c-surface); align-self: flex-start; }
.role-pick__seg label { gap: 6px; }
.role-pick--attn { animation: attn 1.8s var(--ease-out) 2; }
@keyframes attn { 0%, 100% { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 35%, transparent); } 50% { box-shadow: inset 0 0 0 2px var(--c-gold), 0 0 0 6px color-mix(in srgb, var(--c-gold) 18%, transparent); } }
.gstin-box { padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); }
.gstin-box__row { display: flex; gap: var(--s-2); align-items: stretch; }
.gstin-box__input { flex: 1; min-width: 0; font-family: var(--font-num); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.gstin-box__status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: var(--s-2); color: var(--c-text-2); }
.gstin-box__status.is-ok .icon { color: var(--c-ok); }
.gstin-box__status.is-warn, .gstin-box__status .is-warn { color: var(--c-warn); }
.gstin-box__status.is-busy { opacity: .75; }
@media (prefers-reduced-motion: reduce) { .role-pick--attn, .input.is-filled { animation: none; } }
.embed-done { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-3); font-weight: 650; }
.embed-done .tick svg { fill: none; }
.contact-bar { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-4); }
.contact-bar__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-border); color: var(--c-text); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); }
.contact-bar__btn:hover { background: var(--c-surface-2); }
.contact-bar__btn .icon { width: 18px; height: 18px; color: var(--c-text-2); }
.contact-bar__btn--wa .icon, .btn--wa .icon { color: var(--c-ok); }
.btn--wa { background: var(--c-ok-soft); color: var(--c-ok); }
.btn--wa:hover { background: color-mix(in srgb, var(--c-ok) 16%, var(--c-surface)); }
.saved-banner { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4); box-shadow: var(--shadow-1), inset 3px 0 0 var(--c-ok); }
.saved-banner__tick .icon { width: 32px; height: 32px; color: var(--c-ok); }
.saved-banner__body { display: flex; flex-direction: column; flex: 1; min-width: 200px; }
.roundoff { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.roundoff__box { font-weight: 650; }
.roundoff__typed { max-width: 240px; margin: 0; }
[data-ro-row][hidden] { display: none !important; }
.type-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); }
@media (min-width: 900px) { .type-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-pick input { position: absolute; opacity: 0; pointer-events: none; }
.type-pick__opt { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border);
  cursor: pointer; transition: box-shadow var(--t-fast), background var(--t-fast); min-height: 64px; }
.type-pick__opt:hover { background: var(--c-surface-2); }
.type-pick input:checked + .type-pick__opt { box-shadow: inset 0 0 0 2px var(--c-gold); background: var(--c-gold-soft); }
.type-pick input:focus-visible + .type-pick__opt { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.type-pick input:disabled + .type-pick__opt { opacity: .45; cursor: not-allowed; }
.type-pick__icon { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: var(--t-item-soft); color: var(--t-item); flex: none; }
.type-pick__text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.type-pick__text strong { font-size: var(--fs-sm); }
.type-pick__text .small { font-size: 12px; }
.tabs-chips { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.tabs-chips input { position: absolute; opacity: 0; pointer-events: none; }
.tabs-chips input:checked + .chip { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.tabs-chips input:focus-visible + .chip { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.pick-list { display: flex; flex-direction: column; gap: var(--s-2); }
.pick-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-1); cursor: pointer; flex-wrap: wrap; }
.pick-row.is-on { box-shadow: var(--shadow-1), inset 3px 0 0 var(--c-ok); }
.pick-row.is-have { opacity: .6; cursor: default; }
.pick-row > input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--c-accent); }
.pick-row__main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.pick-row__name { font-weight: 700; }
.pick-row__prices { display: flex; gap: var(--s-2); }
.pick-row__prices .prefix-field { width: 120px; }
.pick-row[hidden] { display: none; }
body.is-embed .page-head { display: none; }
body.is-embed .form-actions { bottom: 0 !important; background: var(--c-bg); padding: var(--s-3) 0; }
.twostep-badge { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: var(--t-ok-soft, var(--c-ok-soft)); color: var(--c-ok); margin-bottom: var(--s-4); }
.prompt-card { max-width: 560px; margin: var(--s-8) auto; text-align: left; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-8); }
.prompt-card__art { width: 72px; height: 72px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--zw-ink-on-gold);
  background: linear-gradient(135deg, var(--zw-gold-hi), var(--zw-gold-lo)); box-shadow: 0 10px 30px rgba(184, 138, 18, .25); }
.prompt-card__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.4rem); margin: 0; }
.prompt-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.prompt-card__list li { display: flex; gap: var(--s-2); align-items: flex-start; }
.prompt-card__list .icon { color: var(--c-ok); margin-top: 2px; }
.prompt-card__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; margin-top: var(--s-2); }
.btn--link { background: none; color: var(--c-text-2); text-decoration: underline; padding: 0 var(--s-3); }
.eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gold-ink); }
.terms-note { text-align: center; margin: var(--s-2) 0 0; }
.org-row { gap: var(--s-3); }
.org-row.is-current { box-shadow: inset 3px 0 0 var(--c-gold); }
.menu a.menu__danger { color: var(--c-danger); }
.btn--danger { background: var(--c-danger); color: var(--c-on-accent); }
.btn--danger:hover { background: color-mix(in srgb, var(--c-danger) 88%, var(--c-text)); }
.danger-card { box-shadow: var(--shadow-1), inset 3px 0 0 var(--c-danger); max-width: 640px; }
.danger-card__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; background: var(--c-danger-soft); color: var(--c-danger); }
.danger-card__list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--c-text-2); }
ol.steps { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s-2); }
ol.steps li { padding-left: 4px; }
code.copyable { cursor: copy; background: var(--c-surface-2); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.doc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--c-border); margin: 0 0 var(--s-4); overflow-x: auto; scrollbar-width: none; }
.doc-tab { padding: 10px 14px; color: var(--c-text-2); text-decoration: none; font-weight: 650; font-size: var(--fs-sm); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.doc-tab:hover { color: var(--c-text); }
.doc-tab.is-on { color: var(--c-text); border-bottom-color: var(--c-gold); }
.list-filters { margin-bottom: var(--s-4); }
.list-filters > * + * { margin-top: var(--s-3); }
.period-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.period-bar input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.period-bar .chip { min-height: 32px; font-size: 13px; }
.period-bar input:checked + .chip { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-accent); }
.period-bar input:focus-visible + .chip { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.period-bar__dates { display: inline-flex; align-items: center; gap: 6px; }
.period-bar__dates .input { min-height: 36px; width: auto; padding: 4px 10px; }
.period-bar__dates[hidden] { display: none; }
.sum-cards { display: flex; align-items: stretch; gap: var(--s-2); margin-bottom: var(--s-4); flex-wrap: wrap; }
.sum-card { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 2px; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); text-decoration: none; color: var(--c-text); }
.sum-card__label { font-size: var(--fs-xs); font-weight: 700; color: var(--c-text-2); }
.sum-card__value { font-size: var(--fs-xl); font-weight: 780; letter-spacing: -.01em; }
.sum-card--paid { background: var(--t-in-soft); } .sum-card--paid .sum-card__value { color: var(--t-in); }
.sum-card--due { background: var(--t-purchase-soft); } .sum-card--due .sum-card__value { color: var(--t-purchase); }
.sum-card--total { background: var(--t-money-soft); } .sum-card--total .sum-card__value { color: var(--t-money); }
a.sum-card--due:hover { box-shadow: inset 0 0 0 1px var(--t-purchase); }
.sum-cards__op { align-self: center; font-weight: 800; color: var(--c-text-3); font-size: var(--fs-lg); }
@media (max-width: 640px) { .sum-cards__op { display: none; } .sum-card { min-width: calc(50% - 8px); } .sum-card--total { min-width: 100%; } }
.list-count { margin: 0 0 var(--s-3); }
.is-app { -webkit-tap-highlight-color: transparent; }
.is-app body { overscroll-behavior-y: none; }
.is-app .btn, .is-app .quick__tile, .is-app .list__item, .is-app .tile, .is-app nav, .is-app .chip, .is-app .badge, .is-app summary { -webkit-user-select: none; user-select: none; }
.is-app .btn:active, .is-app .quick__tile:active, .is-app .list__item:active, .is-app .tile:active, .is-app .feed__row:active { transform: scale(.985); transition: transform 80ms; }
.is-app .dash-search kbd, .is-app .dash-ai__ask kbd, .is-app .asst-fab__kbd { display: none !important; }

/* templates.css */
@property --ivd-fs { syntax: "<length>"; inherits: true; initial-value: 12px; }
.ivd { --ivd-fs: 1em; }
.ivd { position: relative; box-sizing: border-box; min-width: 0; max-width: 100%; background: var(--zw-paper); color: var(--zw-paper-ink); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 28px 30px; overflow: hidden; text-align: left; }
.ivd table { border-collapse: collapse; }
.ivd td { box-sizing: border-box; }
.ivd .ivd-logo { display: block; object-fit: contain; }
.ivd .ivd-ctr .ivd-logo, .ivd .ivd-ctr > .ivd-logo { margin: 0 auto; }
.ivd .ivd-r .ivd-logo { margin-left: auto; }
.ivd .ivd-logocell { width: 1%; padding-right: 12px !important; }
.ivd .ivd-meta td { white-space: nowrap; }
.ivd .ivd-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.ivd .ivd-qr svg { display: block; width: 100px; height: 100px; }
.ivd .ivd-sigimg { display: inline-block; object-fit: contain; }
.ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 60px); max-width: none; margin: -28px -30px 12px; }
.ivd--head-band .ivd-band { padding: 22px 30px !important; }
.ivd-stamp { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg); font-size: 64px; font-weight: 900; color: color-mix(in srgb, var(--zw-paper-due) 16%, transparent); border: 6px solid color-mix(in srgb, var(--zw-paper-due) 16%, transparent); padding: 0 24px; pointer-events: none; text-transform: uppercase; z-index: 1; }
.ivd-stamp--draft { color: color-mix(in srgb, var(--zw-paper-muted) 16%, transparent); border-color: color-mix(in srgb, var(--zw-paper-muted) 16%, transparent); }
@media (max-width: 640px) {
  .ivd { padding: 16px; }
  .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 32px); margin: -16px -16px 12px; }
  .ivd--head-band .ivd-band { padding: 16px !important; }
  .ivd-stamp { font-size: 40px; }
}
@media print {
  .ivd { border: 0; border-radius: 0; padding: 0; overflow: visible; }
  .ivd.ivd--head-band > .ivd-head.ivd-t { width: 100%; margin: 0 0 12px; }
  .ivd--head-band .ivd-band { padding: 14px 16px !important; }
  .ivd, .ivd * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ivd .ivd-scroll { overflow: visible; }
}
.print-sheet--a4 .ivd, .print-sheet--a4l .ivd, .print-sheet--a5 .ivd { box-shadow: var(--shadow-2); }
.print-sheet--a4 .ivd { width: 210mm; max-width: 100%; min-height: 200mm; }
.print-sheet--a4l .ivd { width: 297mm; max-width: 100%; }
.print-sheet--a5 .ivd { width: 148mm; max-width: 100%; font-size: 7.4pt; padding: 18px; }
.print-sheet--a5 .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 36px); margin: -18px -18px 10px; }
@media print {
  .print-sheet--a4 .ivd, .print-sheet--a4l .ivd, .print-sheet--a5 .ivd { width: auto; min-height: 0; box-shadow: none; padding: 0; }
  .print-sheet--a5 .ivd.ivd--head-band > .ivd-head.ivd-t { width: 100%; margin: 0 0 10px; }
}
.roll--large { font-size: 14px; }
.print-sheet--t58 .roll--large { font-size: 12px; }
.roll__hdr { font-weight: 700; }
.roll__tax { display: flex; justify-content: space-between; gap: 6px; font-size: .85em; }
.ivd { container-type: inline-size; }
@container (max-width: 600px) {
  .ivd-stack { display: block; width: auto !important; }
  .ivd-head .ivd-stack + .ivd-stack, .ivd-parties .ivd-stack + .ivd-stack { padding-top: 8px; }
  .ivd-head .ivd-r, .ivd-head .ivd-r .ivd-title { text-align: left; }
  .ivd-meta { float: none; margin-left: 0; }
  .ivd-meta .ivd-mk, .ivd-meta .ivd-mv { text-align: left; }
  .ivd-lines { min-width: 540px; }
  .ivd-signrow .ivd-sign { text-align: left; padding-top: 12px; }
  .ivd-foot-t .ivd-stack + .ivd-stack { padding-top: 10px; }
}
.pill--info { background: var(--c-info-soft); color: var(--c-info); }
.alert--info { background: var(--c-info-soft); color: var(--c-info); margin: 0; }
.content:has(.tpl-studio) { max-width: 1440px; }
.tpl-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--c-surface-2); border-radius: var(--r-pill); margin: 0 0 var(--s-5); max-width: 100%; }
.tpl-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 var(--s-4); border-radius: var(--r-pill); color: var(--c-text-2); font-weight: 650; font-size: var(--fs-sm); text-decoration: none; white-space: nowrap; }
.tpl-tab[aria-current="page"] { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-1); }
.tpl-tab:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tpl-studio { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); grid-template-areas: "pick" "stage" "opts"; align-items: start; }
.tpl-studio--thermal { grid-template-areas: "stage" "opts"; }
.tpl-pick { grid-area: pick; min-width: 0; }
.tpl-stage { grid-area: stage; min-width: 0; }
.tpl-opts { grid-area: opts; min-width: 0; }
.tpl-studio fieldset.card { border: 0; margin: 0; }
.tpl-studio .card + .card { margin-top: 0; }
@media (min-width: 1080px) {
  .tpl-studio { grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); grid-template-areas: "pick stage" "opts stage"; }
  .tpl-studio--thermal { grid-template-areas: "opts stage"; }
  .tpl-stage { position: sticky; top: var(--s-4); align-self: start; max-height: calc(100vh - 2 * var(--s-4)); overflow: auto; }
}
@media (max-width: 640px) { .tpl-studio .card { padding: var(--s-4); } }
.tpl-legend, .tpl-h2 { float: left; width: 100%; padding: 0; margin: 0 0 var(--s-1); font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; color: var(--c-text); }
.tpl-legend + *, .tpl-sec-head + * { clear: both; }
.tpl-sec-head { display: grid; gap: 2px; margin-bottom: var(--s-3); }
.tpl-sec-head .tpl-h2 { float: none; margin: 0; }
.tpl-studio .input--sm { min-height: 38px; padding: 4px 32px 4px 10px; font-size: var(--fs-sm); width: auto; max-width: 100%; }
@media (max-width: 640px) { .tpl-studio .input--sm { font-size: var(--fs-md); } }
.tpl-gallery { display: grid; gap: var(--s-4) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.tpl-thumb { position: relative; min-width: 0; }
.tpl-thumb__pick { display: grid; gap: 4px; cursor: pointer; }
.tpl-thumb__pick input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-thumb__paper { position: relative; display: block; aspect-ratio: 210 / 297; overflow: hidden; background: var(--zw-paper); border-radius: 6px; box-shadow: 0 0 0 1px var(--c-border), 0 1px 2px rgba(22, 23, 28, .06); transition: box-shadow var(--t-fast) ease-out, transform var(--t-fast) ease-out; }
.tpl-thumb--land .tpl-thumb__paper { aspect-ratio: 297 / 210; }
.tpl-thumb__scale { position: absolute; top: 0; left: 0; width: 794px; transform-origin: top left; transform: scale(.15); pointer-events: none; }
.tpl-thumb__scale .ivd { border: 0 !important; border-radius: 0 !important; padding: 28px 30px !important; min-height: 1123px; }
.tpl-thumb--land .tpl-thumb__scale .ivd { min-height: 794px; }
.tpl-thumb__scale .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 60px); margin: -28px -30px 12px; }
.tpl-thumb__pick:hover .tpl-thumb__paper { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--c-border), var(--shadow-2); }
.tpl-thumb__pick input:checked + .tpl-thumb__paper { box-shadow: 0 0 0 2px var(--c-accent), 0 0 0 6px var(--c-accent-soft); }
.tpl-thumb__pick input:checked + .tpl-thumb__paper::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.tpl-thumb__pick input:focus-visible + .tpl-thumb__paper { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.tpl-thumb__pick input:disabled + .tpl-thumb__paper { cursor: default; }
.tpl-thumb__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-weight: 650; font-size: var(--fs-sm); line-height: 1.25; }
.tpl-thumb__name .badge { height: 18px; font-size: 11px; margin: 0; }
.tpl-thumb__sub { font-size: 12px; line-height: 1.3; color: var(--c-text-3); }
.tpl-thumb__edit { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-2); }
.tpl-thumb--new { display: grid; gap: 4px; align-content: start; color: inherit; text-decoration: none; }
.tpl-thumb__paper--new { display: grid; place-items: center; background: transparent; box-shadow: none; border: 1.5px dashed var(--c-border); color: var(--c-accent); }
.tpl-thumb__paper--new .icon { width: 28px; height: 28px; }
.tpl-thumb--new:hover .tpl-thumb__paper--new { border-color: var(--c-accent); background: var(--c-accent-soft); }
@media (max-width: 640px) {
  .tpl-gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 104px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 4px 10px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
  .tpl-thumb { scroll-snap-align: start; }
}
.tpl-stage { background: var(--c-surface-2); border-radius: var(--r-lg); padding: var(--s-4); box-shadow: inset 0 0 0 1px var(--c-hairline); }
.tpl-stage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.tpl-as { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-text-2); min-width: 0; }
.tpl-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-2); }
.tpl-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); }
.tpl-studio.is-loading .tpl-live__dot { background: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-soft); animation: tpl-pulse .9s ease-in-out infinite; }
@keyframes tpl-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tpl-studio.is-loading .tpl-live__dot { animation: none; } }
.tpl-btn-sm { min-height: 38px; padding: 0 var(--s-3); font-size: var(--fs-sm); }
.tpl-viewport { position: relative; overflow: hidden; }
.tpl-paper { width: 794px; transform-origin: top left; }
.tpl-paper--a4l { width: 1123px; }
.tpl-paper--a5 { width: 559px; }
.tpl-paper .ivd { border: 0; border-radius: 3px; padding: 28px 30px; min-height: 1123px; box-shadow: 0 1px 2px rgba(22, 23, 28, .08), 0 18px 40px -18px rgba(22, 23, 28, .35); transition: opacity var(--t-fast); }
.tpl-paper--a4l .ivd { min-height: 794px; }
.tpl-paper--a5 .ivd { min-height: 794px; font-size: 7.6pt; padding: 22px; }
.tpl-paper .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 60px); margin: -28px -30px 12px; }
.tpl-paper--a5 .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 44px); margin: -22px -22px 10px; }
.tpl-studio.is-loading .tpl-paper .ivd { opacity: .82; }
.tpl-stage__note { margin: var(--s-3) 0 0; }
.tpl-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tpl-swatch { position: relative; cursor: pointer; }
.tpl-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-swatch span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sw); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.tpl-swatch input:checked + span { outline: 2.5px solid var(--sw); outline-offset: 3px; }
.tpl-swatch input:focus-visible + span { outline: 2.5px solid var(--c-text); outline-offset: 3px; }
.tpl-swatch--custom span { background: conic-gradient(from 90deg, #B45309, #BE123C, #7E22CE, #1D4ED8, #0F766E, #15803D, #B45309); }
.tpl-swatch--custom input:checked + span { background: var(--sw); outline-color: var(--sw); }
.tpl-colour-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 50%; opacity: 0; cursor: pointer; }
.tpl-colour-input:focus-visible + span, .tpl-swatch--custom:focus-within span { outline: 2.5px solid var(--c-text); outline-offset: 3px; }
.tpl-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tpl-font { position: relative; cursor: pointer; }
.tpl-font input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-font span { display: grid; place-items: center; gap: 2px; min-height: 64px; padding: 8px 4px; border-radius: var(--r-md); background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-border); text-align: center; }
.tpl-font b { font-size: var(--fs-xl); font-weight: 600; line-height: 1.1; }
.tpl-font small { font-size: 12px; line-height: 1.2; color: var(--c-text-2); }
.tpl-font input:checked + span { background: var(--c-accent-soft); box-shadow: inset 0 0 0 1.5px var(--c-accent); }
.tpl-font input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tpl-toggles { display: grid; }
.tpl-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: var(--s-2) 0; border-bottom: 1px solid var(--c-hairline); cursor: pointer; }
.tpl-toggles > .tpl-toggle:last-of-type { border-bottom: 0; }
.tpl-toggle > span { display: grid; gap: 2px; min-width: 0; font-weight: 600; }
.tpl-toggle small { font-weight: 400; font-size: var(--fs-xs); color: var(--c-text-3); overflow-wrap: anywhere; }
.tpl-toggle > input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: var(--r-pill); background: var(--c-border); cursor: pointer; transition: background var(--t-fast); }
.tpl-toggle > input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--t-fast); }
.tpl-toggle > input[type="checkbox"]:checked { background: var(--c-accent); }
.tpl-toggle > input[type="checkbox"]:checked::after { transform: translateX(18px); }
.tpl-toggle > input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tpl-toggle > input[type="checkbox"], .tpl-toggle > input[type="checkbox"]::after { transition: none; } }
.tpl-logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tpl-logo-mini { max-height: 28px; max-width: 96px; object-fit: contain; border-radius: 4px; background: var(--zw-paper); box-shadow: 0 0 0 1px var(--c-border); }
.tpl-link { position: relative; display: inline; padding: 0; border: 0; background: none; color: var(--c-accent); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tpl-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tpl-link:focus-within, .tpl-upload:focus-within { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tpl-upload { position: relative; }
.tpl-file-name { color: var(--c-ok) !important; }
.tpl-file-name:empty { display: none; }
.tpl-more summary { cursor: pointer; font-weight: 650; min-height: 40px; display: flex; align-items: center; }
.tpl-field-pair { margin-bottom: var(--s-2); }
.tpl-field-pair .input:first-child { flex: 1 1 120px; min-width: 0; }
.tpl-field-pair .input:last-child { flex: 2 1 160px; min-width: 0; }
.tpl-perdoc { display: grid; }
.tpl-perdoc__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; border-bottom: 1px solid var(--c-hairline); font-weight: 600; }
.tpl-perdoc__row:last-child { border-bottom: 0; }
.tpl-perdoc__row select { flex: 0 0 56%; width: 56%; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-titles { display: grid; gap: var(--s-2) var(--s-3); grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tpl-titles .field { margin: 0; }
.tpl-roll-view { display: grid; justify-items: center; padding: var(--s-4) 0; }
.tpl-roll-sheet .roll { box-shadow: 0 1px 2px rgba(22, 23, 28, .08), 0 18px 40px -18px rgba(22, 23, 28, .35); border-radius: 2px; }
.tpl-roll-sheet.print-sheet--t80 .roll { width: 80mm; }
.tpl-roll-sheet.print-sheet--t58 .roll { width: 58mm; font-size: 11px; }
.tpl-roll-sheet .roll--large { font-size: 14px; }
.tpl-roll-sheet.print-sheet--t58 .roll--large { font-size: 12px; }
.send-card { margin-bottom: var(--s-4); }
.send-card__head { display: flex; align-items: flex-start; gap: var(--s-3); }
.send-card__title { margin: 0 0 2px; font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); line-height: 1.2; }
.send-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: var(--s-2); }
.send-action-wrap { display: contents; }
.send-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 74px; padding: 10px 8px; border: 0; border-radius: var(--r-md); background: var(--c-surface-2); color: var(--c-text); font: inherit; font-size: var(--fs-sm); font-weight: 650; text-align: center; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1px var(--c-border); transition: box-shadow var(--t-fast), transform var(--t-fast); }
.send-action .icon { width: 22px; height: 22px; }
.send-action:hover { box-shadow: inset 0 0 0 1.5px var(--c-accent); transform: translateY(-1px); }
.send-action:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.send-action--wa { background: var(--c-ok-soft); color: var(--c-ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ok) 30%, transparent); }
:root[data-theme="dark"] .send-action--wa { background: var(--c-ok-soft); color: var(--c-ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ok) 30%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .send-action--wa { background: var(--c-ok-soft); color: var(--c-ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ok) 30%, transparent); } }
.send-card__link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; overflow-wrap: anywhere; }
.next-card { margin-bottom: var(--s-4); box-shadow: var(--shadow-1), inset 3px 0 0 var(--c-gold); }
.next-card__head { display: flex; align-items: flex-start; gap: var(--s-3); }
.next-card__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-gold-soft); color: var(--c-gold-ink); }
.books-card summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.send-mail { max-width: 720px; }
.send-mail__fixed { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); overflow-wrap: anywhere; }
.send-mail__fixed .icon { flex: none; color: var(--c-text-2); }
.send-mail__addr { display: block; }
.send-mail__preview > div { margin-top: var(--s-2); padding: var(--s-3); border-left: 3px solid var(--c-border); white-space: pre-line; overflow-wrap: anywhere; color: var(--c-text-2); }
[data-tpl-target] .ivd-th { position: relative; }
[data-tpl-target] .ivd-rs { position: absolute; top: 0; right: -4px; bottom: 0; width: 9px; cursor: col-resize; touch-action: none; z-index: 2; }
[data-tpl-target] .ivd-rs:hover, [data-tpl-target] .ivd-rs:active { background: color-mix(in srgb, var(--ivd-accent) 35%, transparent); }

/* ui.css */
:root { --c-line: rgba(22, 23, 28, .09); --c-line-2: rgba(22, 23, 28, .055); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-line: rgba(244, 239, 228, .1); --c-line-2: rgba(244, 239, 228, .06); } }
:root[data-theme="dark"] { --c-line: rgba(244, 239, 228, .1); --c-line-2: rgba(244, 239, 228, .06); }
@media (min-width: 900px) {
  .input { min-height: 42px; font-size: 15px; }
  .btn { min-height: 42px; padding: 0 20px; }
  .btn--icon { width: 42px; min-height: 42px; padding: 0; }
  .field { margin-bottom: var(--s-3); }
}
.btn--text { background: none; box-shadow: none; padding: 0 8px; min-height: 34px; color: var(--c-accent); font-weight: 650; }
.btn--text:hover { background: var(--c-accent-soft); }
.gstin-box { padding: 0; background: none; border-radius: 0; }
.role-pick { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
@media (min-width: 1100px) {
  .list--grid { display: grid; grid-template-columns: 1fr 1fr; }
  .list--grid > * { border-bottom: 1px solid var(--c-line-2); }
  .list--grid > *:nth-child(odd) { border-right: 1px solid var(--c-line-2); }
}
.bill-top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin: var(--s-1) 0 var(--s-3); }
.bill-top h1 { margin: 0; }
.bill-top .scan-box { margin: 0 0 0 auto; padding: 0; background: none; box-shadow: none; }
.bill-top .scan-box__drop { padding: 4px 4px 4px 14px; gap: var(--s-3); border-radius: var(--r-pill); border-width: 1px; background: var(--c-surface); flex-wrap: nowrap; }
.bill-top .scan-box__icon, .bill-top .scan-box__hint, .bill-top .scan-box__foot, .bill-top .scan-box__eyebrow { display: none; }
.bill-top .scan-box__text { flex: none; }
.bill-top .scan-box__title { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 650; color: var(--c-text-2); white-space: nowrap; }
.bill-top .scan-box__actions .btn { min-height: 34px; padding: 0 14px; font-size: var(--fs-sm); }
.bill-top .scan-box__camera { display: none; }
.bill { display: flex; flex-direction: column; gap: 10px; }
.bill > .alert { margin: 0; }
.bill-sheet { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.bill-main { display: flex; flex-direction: column; min-height: 0; }
.bill-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
.bill-head__main, .bill-head__meta, .bill-head__pair { display: contents; }
.bill-head .field { position: relative; flex: 1 1 150px; min-width: 0; margin: 0; }
.bill-head .field--party { flex: 2.4 1 280px; }
.bill-head .field--when { flex: 1.4 1 220px; }
.bill-head .field__label { font-size: 13px; margin-bottom: 5px; color: var(--c-text-2); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bill-head__link { margin-left: auto; font-size: 13px; font-weight: 650; text-decoration: none; }
.bill-head__link:hover { text-decoration: underline; }
.bill-head__when { display: flex; gap: 6px; }
.bill-head__when input[type=time] { max-width: 118px; }
.bill-lines { position: relative; }
.bl-head, .bill-line { display: flex; align-items: flex-start; gap: 8px; padding: 0 18px; }
.bl-head { min-height: 34px; align-items: center; border-bottom: 1px solid var(--c-line); background: var(--c-surface);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-3); }
.bl-head > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-line { flex-wrap: wrap; padding-top: 7px; padding-bottom: 7px; border-bottom: 1px solid var(--c-line-2); position: relative; }
.bill-line:focus-within { background: color-mix(in srgb, var(--c-accent-soft) 40%, transparent); }
.bl-n { width: 22px; flex: none; padding-top: 9px; color: var(--c-text-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.bl-head .bl-n { padding-top: 0; }
.bl-item { flex: 1 1 220px; min-width: 0; display: flex; gap: 6px; }
.bl-item > .combo, .bl-item > select { flex: 1; min-width: 0; }
.bl-qty { width: 76px; } .bl-unit { width: 96px; } .bl-free { width: 68px; } .bl-rate { width: 108px; } .bl-disc { width: 78px; } .bl-gst { width: 84px; }
.bl-qty, .bl-unit, .bl-free, .bl-rate, .bl-disc, .bl-gst { flex: none; display: block; }
.bl-amt { width: 112px; text-align: right; padding-top: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bl-head .bl-amt { padding-top: 0; }
.bl-x { width: 32px; flex: none; }
.bill-line .input { min-height: 36px; font-size: var(--fs-sm); padding: 0 10px; border-width: 1px; border-radius: 9px; }
.bill-line select.input { padding-right: 26px; }
.bill-line .combo__chev { width: 30px; height: 30px; }
.bl-qty .input, .bl-free .input, .bl-rate .input, .bl-disc .input { text-align: right; }
.bl-lab { display: none; }
.bl-rm { width: 32px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--c-text-3); border-radius: var(--r-sm); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bl-rm:hover { background: var(--c-danger-soft); color: var(--c-danger); }
.bl-extra { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding-left: 30px; padding-right: 40px; }
.bl-extra:not(:has(> :not([hidden]):not(input[type=hidden]))) { display: none; }
.bl-extra > * { margin: 0 !important; }
.bl-extra .line-note { flex: 1 1 240px; min-height: 28px !important; font-size: 13px !important; background: transparent; border-color: transparent; padding-left: 0 !important; }
.bl-extra .line-note:hover, .bl-extra .line-note:focus { border-color: var(--c-border); padding-left: 10px !important; background: var(--c-surface); }
.bl-extra .check { font-size: 13px; color: var(--c-text-2); align-items: center; gap: 6px; }
.bl-extra .check input { width: 16px; height: 16px; margin: 0; }
.bl-extra [data-batch-fields], .bl-extra [data-serial-fields] { flex: 1 0 100%; }
.bl-extra [data-batch-fields]:not([hidden]) { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bl-extra .field__error { flex: 1 0 100%; }
.bill-line .line-mrp { font-size: 12px; }
.bill-lines__foot { display: flex; align-items: center; gap: var(--s-2); padding: 4px 12px; }
.bill-lines__foot .btn { white-space: nowrap; }
.bill-lines__foot .field__error { margin: 0; }
.txn-hide-unit .bl-head [data-col="unit"], .txn-hide-discount .bl-head [data-col="discount"] { display: none !important; }
.is-quick .bill-line { padding: 7px 18px !important; }
.bill-exp { padding: 12px 18px; }
.bill-exp [data-repeat-row] .input { min-height: 38px; }
.bill-exp [data-repeat-remove] { width: 34px; padding: 0 !important; background: none; box-shadow: none; color: var(--c-text-3); }
.bill-bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 12px 18px; }
.bill-bar__left { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bill-pay { display: flex; flex-direction: column; gap: 6px; }
.bill-pay__head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--c-text-2); }
.bill-pay__head .icon { width: 16px; height: 16px; color: var(--c-text-3); }
.bill-pay__head [data-repeat-add] { min-height: 26px; font-size: 13px; padding: 0 8px; }
.bill-pay [data-repeater] { display: flex; flex-direction: column; gap: 6px; }
.bill-pay [data-repeat-row] { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.bill-pay [data-repeat-row] .input { min-height: 36px; font-size: 14px; }
.bill-pay [data-repeat-row] select.input { width: auto; }
.bill-pay .prefix-field { width: 130px; flex: none; }
.bill-pay .prefix-field__prefix { padding: 0 10px; }
.bill-pay [data-repeat-row] input[name$="[reference]"] { flex: 1; min-width: 80px; }
.bill-pay [data-repeat-remove] { width: 30px; min-height: 36px; padding: 0; background: none; box-shadow: none; color: var(--c-text-3); flex: none; }
.bill-pay .field { margin: 0; }
.bill-pay .field select { min-height: 36px; }
.bill-pops { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin-left: -10px; }
.bill-pop > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 650; color: var(--c-accent); user-select: none; }
.bill-pop > summary::-webkit-details-marker { display: none; }
.bill-pop > summary .icon { width: 15px; height: 15px; }
.bill-pop > summary:hover, .bill-pop[open] > summary { background: var(--c-accent-soft); }
.bill-pop.has-value > summary::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-gold); }
.bill-pop__panel { position: absolute; left: 12px; bottom: calc(100% + 8px); z-index: 40; width: min(720px, calc(100% - 24px)); max-height: min(62vh, 560px); overflow: auto;
  background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 16px 18px; }
.bill-pop__title { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); font-weight: 700; }
.bill-pop__title .btn { margin-left: auto; }
.bill-pop__panel .row { gap: 8px; }
.bill-pop__panel .stack > * + * { margin-top: 8px; }
.bill-pop__panel [data-repeat-row] .input { min-height: 38px; }
.bill-pop__panel [data-repeat-remove] { width: 34px; min-height: 38px; padding: 0 !important; background: none; box-shadow: none; color: var(--c-text-3); }
.bill-pop__panel .grid-2 .field { margin: 0; }
.bill-pop--quiet > summary { color: var(--c-text-3); font-weight: 550; }
.bill-right { display: flex; align-items: center; gap: 24px; }
.bill-sum { display: grid; grid-template-columns: auto auto; gap: 3px 14px; align-items: center; font-size: var(--fs-sm); margin: 0; }
.bill-sum dt { color: var(--c-text-2); margin: 0; }
.bill-sum dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bill-sum .input { width: 72px; min-height: 30px; padding: 0 8px; font-size: var(--fs-sm); text-align: right; }
.bill-sum .check { gap: 6px; align-items: center; font-size: var(--fs-sm); color: var(--c-text-2); }
.bill-sum .check input { width: 16px; height: 16px; margin: 0; }
.bill-sum__ro { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bill-sum__ro .input { width: 64px; }
.bill-total { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 24px; border-left: 1px solid var(--c-line); }
.bill-total__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); }
.bill-total__value { font-size: var(--fs-2xl); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bill-total__due { font-size: 13px; color: var(--c-warn); font-weight: 650; }
.bill-total__due:empty { display: none; }
.bill-total .bill-profit { margin: 0; padding: 2px 10px; font-size: 12px; }
.bill-total__actions { display: flex; gap: 8px; margin-top: 6px; }
.bill-total__actions .btn--primary { min-width: 140px; }
@media (min-width: 900px) {

  body:has(form.bill) .main { height: 100vh; height: 100dvh; }
  body:has(form.bill) .content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding-bottom: var(--s-3); }
  body:has(form.bill) .content > * { flex-shrink: 0; }
  form.bill { flex: 1 0 460px; height: auto; min-height: 460px; }
  .bill-main { flex: 1; }
  .bill-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .bill-scroll .bl-head { position: sticky; top: 0; z-index: 3; }
  .bill-bar { flex: none; }
}
@media (min-width: 900px) and (max-width: 1240px) {
  .bill-bar { grid-template-columns: 1fr; }
  .bill-right { justify-content: space-between; border-top: 1px solid var(--c-line-2); padding-top: 10px; }
}
@media (max-width: 899px) {
  .bill-top .scan-box { margin-left: 0; flex: 1 0 100%; }
  .bill-head { padding: var(--s-4); }
  .bill-head .field--party { flex-basis: 100%; }
  .bl-head { display: none; }
  .bill-line { padding: var(--s-3) var(--s-4); gap: 8px; }
  .bl-n { display: none; }
  .bl-item { order: 1; flex: 1 1 calc(100% - 44px); }
  .bl-x { order: 2; }
  .bl-qty, .bl-unit, .bl-free, .bl-rate, .bl-disc, .bl-gst { order: 3; width: calc(33.333% - 6px); }
  .bl-amt { order: 4; width: auto; flex: 1 0 100%; padding-top: 2px; display: flex; justify-content: space-between; }
  .bl-amt::before { content: attr(data-label); font-weight: 600; color: var(--c-text-2); font-size: 13px; }
  .bl-extra { order: 5; padding: 0; }
  .bl-lab { display: block; font-size: 12px; font-weight: 650; color: var(--c-text-3); margin-bottom: 2px; }
  .bill-line .input { min-height: 44px; }
  .bill-lines__foot { flex-wrap: wrap; }
  .bill-bar { grid-template-columns: 1fr; padding: var(--s-4); }
  .bill-pay [data-repeat-row] { flex-wrap: wrap; }
  .bill-pop__panel { position: static; width: auto; max-height: none; box-shadow: none; padding: 10px 0 4px; }
  .bill-right { flex-direction: column; align-items: stretch; gap: 12px; }
  .bill-sum { grid-template-columns: 1fr auto; }
  .bill-total { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 6; border-left: 0; padding: 10px var(--s-3); margin: 0 calc(-1 * var(--s-2));
    flex-direction: row; align-items: center; flex-wrap: wrap; justify-content: space-between; background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
  .bill-total__label { display: none; }
  .bill-total__value { font-size: 20px; }
  .bill-total__actions { margin: 0; }
  .bill-total__actions .btn { min-height: 44px; padding: 0 14px; }
  .bill-total__actions .btn--primary { min-width: 0; }
  body:has(form.bill) .asst-fab { display: none; }
}
@media (min-width: 900px) {
  .bill-head { gap: 10px 12px; }
  .bill-head .field { flex: 0 1 150px; }
  .bill-head .field--party { flex: 1 1 230px; }
  .bill-head .field--when { flex: 0 0 auto; }
  .bill-head .field--when input[type=date] { width: 148px; }
  .bill-head .field--when input[type=time] { width: 118px; max-width: none; }
  .bill-head .field--mobile { flex-basis: 170px; }
  .bill-head input[type=date] { padding-right: 8px; }
  .bl-unit { width: 88px; } .bl-free { width: 64px; } .bl-rate { width: 100px; } .bl-disc { width: 72px; } .bl-gst { width: 80px; } .bl-amt { width: 104px; }
  .bl-item { flex-basis: 240px; }
}
.bill-pay [data-repeat-row] select.input { width: 104px; flex: none; }
.bill-pay .prefix-field { width: 124px; }
.bill-pop--quiet > summary { padding: 5px 8px; }
.bill-sum__ro .input { width: 56px; }
@media (min-width: 900px) { body:has(form.bill) .content { max-width: 1480px; } }
@media (min-width: 900px) { #buyer-po input[name=buyer_po_no] { width: 150px; } }
@media (max-width: 899px) {
  .bill-pay [data-repeat-row] select.input { width: auto; flex: 1 1 30%; }
  .bill-pay [data-repeat-row] .prefix-field { flex: 1 1 40%; width: auto; }
  .bill-pay [data-repeat-row] [data-repeat-remove] { order: 4; }
  .bill-pay [data-repeat-row] input[name$="[reference]"] { order: 5; flex: 1 1 100%; }
  .bill-pop > summary { text-align: left; }
  .bill-head .field--when { flex-basis: 100%; }
  .bill-head__when input { flex: 1; min-width: 0; }
}
.attach { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 14px 18px; margin: 0 0 var(--s-4); }
.attach--nested { background: none; box-shadow: none; padding: 0; margin: 0; }
.attach.is-busy { opacity: .7; pointer-events: none; }
.attach__head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-sm); margin-bottom: 10px; }
.attach__head .icon { color: var(--c-gold-ink); }
.attach__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--c-gold-soft); color: var(--c-gold-ink); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.attach__note { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--c-text-3); }
.attach__error { margin: 0 0 10px; font-size: var(--fs-sm); }
.attach__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.attach__item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 6px 6px 6px; border-radius: 12px; background: var(--c-bg); box-shadow: inset 0 0 0 1px var(--c-line-2); }
.attach__thumb { flex: none; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: var(--c-surface-2); text-decoration: none; }
.attach__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.attach__ext { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--c-text-2); }
.attach__ext--pdf { color: var(--c-danger); } .attach__ext--xlsx, .attach__ext--xls, .attach__ext--csv { color: var(--c-ok); } .attach__ext--docx, .attach__ext--doc { color: var(--c-accent); }
.attach__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.attach__name { font-weight: 650; font-size: var(--fs-sm); color: var(--c-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach__name:hover { text-decoration: underline; }
.attach__meta small { color: var(--c-text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach__act { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--c-text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.attach__act:hover { background: var(--c-surface-2); color: var(--c-text); }
.attach__act--del:hover, .attach__act--del.is-confirm { background: var(--c-danger-soft); color: var(--c-danger); }
.attach__act--del.is-confirm { width: auto; padding: 0 8px; }
.attach__act--del.is-confirm::after { content: attr(title); font-size: 12px; font-weight: 700; margin-left: 4px; }
.attach__delform { margin: 0; display: contents; }
.attach__drop { margin: 0; border: 1px dashed color-mix(in srgb, var(--c-text) 20%, transparent); border-radius: 12px; transition: background var(--t-fast), border-color var(--t-fast); }
.attach__drop.is-over { border-color: var(--c-accent); background: var(--c-accent-soft); }
.attach__pick { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; cursor: pointer; }
.attach__btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); color: var(--c-accent); }
.attach__hint { font-size: 13px; color: var(--c-text-3); }
.attach__empty { margin: 0; font-size: 13px; color: var(--c-text-3); }
.attach__pick:focus-within { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 12px; }
.bill-pop__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-gold); color: var(--zw-ink-on-gold); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
#attach-pop.has-value > summary::after { display: none; }
.danger-zone { margin: var(--s-4) 0; }
.danger-zone > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--c-text-3); padding: 4px 0; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > summary:hover { color: var(--c-danger); }
.danger-zone[open] > summary { margin-bottom: var(--s-2); color: var(--c-danger); }
.doc-layout { display: grid; gap: var(--s-4); align-items: start; }
.doc-main { min-width: 0; }
.doc-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.doc-side > * { margin: 0 !important; }
.doc-side .card, .doc-side .attach, .doc-side .send-card { padding: 14px 16px; }
.doc-side .send-card__title { font-size: var(--fs-lg); }
.doc-side .send-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.doc-side .send-action { min-height: 58px; padding: 6px 4px; font-size: 12px; border-radius: 12px; }
.doc-side .send-card__link { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-side .section-title { margin: 6px 2px 0; }
.doc-side .list__item { min-height: 50px; padding: 8px 12px; }
.doc-side .attach__list { grid-template-columns: 1fr; }
.doc-side .row { gap: 8px; }
.doc-side .row .btn { flex: 1 1 auto; }
.doc-side .table { font-size: 13px; }
@media (min-width: 1200px) {
  body:has(.doc-layout) .content { max-width: 1480px; }
  .doc-layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .doc-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 76px; scrollbar-width: thin; }
}
@media (max-width: 1199px) { .doc-side { order: -1; } }
@media print { .doc-layout { display: block; } .doc-side { display: none !important; } }
.advance-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 var(--s-3); padding: 10px 14px; border-radius: var(--r-lg);
  background: var(--c-gold-soft); color: var(--c-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-gold) 35%, transparent); }
.advance-note__icon { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; background: var(--c-surface); color: var(--c-gold-ink); }
.advance-note__text { flex: 1; min-width: 200px; font-weight: 600; font-size: 14px; }
.btn--sm { min-height: 34px !important; padding: 0 14px !important; font-size: var(--fs-sm); }
.list-head { margin-bottom: var(--s-3); }
.list-head .relative .menu { min-width: 240px; }
.list-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 var(--s-3); }
.list-search { position: relative; flex: 0 1 340px; min-width: 200px; display: block; }
.list-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); pointer-events: none; }
.list-search .input { padding-left: 38px; min-height: 40px; }
.period-bar { gap: 6px; }
.period-select { position: relative; display: inline-flex; align-items: center; }
.period-select .icon { position: absolute; left: 11px; color: var(--c-text-3); pointer-events: none; }
.period-select select.input { min-height: 40px; padding-left: 34px; padding-right: 30px; width: auto; font-weight: 600; font-size: 14px; }
.period-bar__dates .input { min-height: 40px !important; }
.sum-strip { display: inline-flex; align-items: stretch; border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-1); overflow: hidden; }
.sum-strip__item { display: flex; flex-direction: column; justify-content: center; padding: 5px 14px; line-height: 1.2; text-decoration: none; color: var(--c-text); min-width: 0; }
.sum-strip__item + .sum-strip__item { border-left: 1px solid var(--c-line-2); }
.sum-strip__item small { font-size: 12px; font-weight: 650; color: var(--c-text-3); white-space: nowrap; }
.sum-strip__item strong { font-size: 15px; font-weight: 750; white-space: nowrap; }
.sum-strip__item--paid strong { color: var(--c-ok); }
.sum-strip__item--due strong { color: var(--c-warn); }
a.sum-strip__item:hover { background: var(--c-warn-soft); }
.list-count { white-space: nowrap; }
.doc-tabs { margin-bottom: var(--s-3); }
@media (max-width: 899px) {
  .list-search { flex: 1 1 100%; }
  .sum-strip { width: 100%; }
  .sum-strip__item { flex: 1; padding: 6px 10px; }
  .sum-strip__item strong { font-size: 14px; }
}
.doc-table { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.doc-row:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.doc-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1fr) 110px 130px 120px; align-items: center; gap: 12px;
  padding: 9px 18px; color: var(--c-text); text-decoration: none; border-top: 1px solid var(--c-line-2); font-size: 14px; }
.doc-row:first-child { border-top: 0; }
.doc-row:not(.doc-row--head):hover { background: color-mix(in srgb, var(--c-accent-soft) 45%, transparent); }
.doc-row--head { position: sticky; top: 68px; z-index: 4; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--c-surface); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line);
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-text-3); }
.doc-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-row__party { display: flex; align-items: center; gap: 8px; }
.doc-row__party strong { font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.doc-row__clip { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--c-gold-ink); flex: none; }
.doc-row__clip .icon { width: 14px; height: 14px; }
.doc-row__no, .doc-row__date { color: var(--c-text-2); font-size: var(--fs-sm); }
.doc-row__no small, .doc-row__date small { margin-left: 6px; color: var(--c-text-3); font-size: 12px; }
.doc-row__amt { text-align: right; font-weight: 700; }
.doc-row__due { text-align: right; color: var(--c-text-3); }
.doc-row__due.is-due { color: var(--c-danger); font-weight: 650; }
.doc-row--head .doc-row__amt, .doc-row--head .doc-row__due { text-align: right; }
.pill--muted { background: var(--c-surface-2); color: var(--c-text-2); }
.list-pager { margin-top: var(--s-3); justify-content: center; }
@media (max-width: 899px) {
  .doc-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "party amt" "meta due"; gap: 2px 10px; padding: 10px 14px; }
  .doc-row--head { display: none; }
  .doc-row__party { grid-area: party; } .doc-row__amt { grid-area: amt; } .doc-row__due { grid-area: due; font-size: 13px; }
  .doc-row__no { grid-area: meta; font-size: 13px; } .doc-row__date, .doc-row__status { display: none !important; }
}
@media (min-width: 1200px) {
  body:has(form .grid-2), body:has(form .grid-3) { --form-cols: 1; }
  form .grid-2, form .grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
  form .card.stack > * + *, form.card.stack > * + * { margin-top: 12px; }
  form .card, form.card { padding: 18px 22px; }
  form details.card:not([open]) { padding-top: 12px; padding-bottom: 12px; }
  form .field__hint { font-size: 13px; }
}
.role-cards, .kind-cards { gap: 8px !important; }
.grid-contents { display: contents; }
@media (min-width: 1200px) {
  .role-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .role-pick__head { display: contents; }
  .role-pick__hint { order: 3; flex: 1 1 100%; margin-top: -4px; color: var(--c-text-3); font-size: 13px; }
  .gstin-box .input--big { min-height: 44px; font-size: var(--fs-md); }
}
@media (min-width: 900px) {
  form .form-actions, form > .row:last-child:has(> .btn--primary[type=submit]) { position: sticky; bottom: 0; z-index: 5; margin-top: 12px; padding: 10px 0 12px;
    background: linear-gradient(180deg, transparent 0, var(--c-bg) 14px); }
}
.form-sheet { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; gap: 12px 16px; grid-template-columns: 1fr; }
.form-grid .field { margin: 0; }
@media (min-width: 720px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2, .form-grid .span-3 { grid-column: span 2; } }
@media (min-width: 1100px) { .form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .form-grid--3 .span-3 { grid-column: span 3; } }
.suffix-field { display: flex; align-items: stretch; }
.suffix-field .input { border-radius: var(--r-md) 0 0 var(--r-md); }
.suffix-field__suffix { display: inline-flex; align-items: center; padding: 0 10px; border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-surface-2); color: var(--c-text-2); font-size: 13px; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--c-border); }
.note-line { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s-3); padding: 8px 12px; border-radius: var(--r-md); background: var(--c-accent-soft); color: var(--c-text); font-size: var(--fs-sm); }
.note-line .icon { color: var(--c-gold-ink); flex: none; }
.menu--form { min-width: 300px; padding: 14px 16px; }
.menu__title { margin: 0 0 4px; font-weight: 700; }
.inline-form { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.inline-form .input { min-height: 32px; max-width: 140px; }
.input--auto { width: auto !important; }
.input--xs { width: 90px !important; min-height: 34px; }
.block { display: block; }
.btn--block { width: 100%; justify-content: center; }
.fold { margin: var(--s-3) 0; }
.fold > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: var(--fs-sm); color: var(--c-text-2); padding: 4px 2px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "▾"; font-size: 11px; opacity: .6; transition: transform var(--t-fast); }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold--inline { margin: 6px 0 0; }
.table--compact th, .table--compact td { padding: 7px 12px; }
.table--rows tbody tr:hover { background: var(--c-surface-2); }
.table .th-group { text-align: center; border-bottom: 1px solid var(--c-border); }
.table tr.tr-total td { background: var(--c-surface-2); font-weight: 650; }
.table tr.is-struck td { color: var(--c-text-3); text-decoration: line-through; }
.kv--tight { gap: 6px 12px; font-size: var(--fs-sm); }
.kv--tight dd { text-align: right; overflow-wrap: anywhere; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--s-3); }
.stat { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.stat small { color: var(--c-text-2); font-size: 12px; font-weight: 600; }
.stat strong { font-family: var(--font-num); font-size: 20px; }
.stat--accent { background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface)); }
.advance-note--gold .advance-note__icon { color: var(--c-gold-ink); }
.settings-grid { display: grid; gap: 14px; align-items: start; }
.settings-grid > .card { margin: 0; }
@media (min-width: 1100px) { .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .settings-grid > .span-all { grid-column: 1 / -1; } }
.party-layout .stmt-bar { margin-bottom: 8px; }
.stmt-bar .date-pair { display: inline-flex; align-items: center; gap: 6px; }
.stmt-bar .date-pair .input { width: auto; min-height: 34px; }
@media (min-width: 1200px) { .party-layout .stmt-wrap { max-height: calc(100vh - 260px); overflow: auto; } .party-layout .stmt-wrap thead th { position: sticky; top: 0; z-index: 1; } }
.party-bal { font-size: var(--fs-2xl); font-weight: 800; font-family: var(--font-num); line-height: 1.15; }
.party-actions { margin-top: 10px; flex-wrap: wrap; }
.setoff { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--c-border); display: flex; flex-direction: column; gap: 8px; }
.setoff__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.setoff__sides span { display: flex; flex-direction: column; }
.setoff__sides small { color: var(--c-text-2); font-size: 12px; }
.loyalty-card__head { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.loyalty-card__head .icon { color: var(--c-gold-ink); }
.loyalty-card__head strong { margin-left: auto; font-size: 20px; font-family: var(--font-num); }
.mini-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.mini-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--c-border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list .neg { color: var(--c-danger); }
.bill-total__fx { display: block; margin-top: 2px; }
.seg-tabs { display: flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--c-surface-2); margin-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.seg-tabs__btn { flex: 1 0 auto; min-height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-pill); background: none; font: inherit; font-size: 13px; font-weight: 650; color: var(--c-text-2); cursor: pointer; white-space: nowrap; }
.seg-tabs__btn:hover { color: var(--c-text); }
.seg-tabs__btn.is-on { background: var(--c-surface); color: var(--c-text); box-shadow: var(--shadow-1); }
.list--flat { box-shadow: none; background: none; }
.list--flat .list__item { padding: 8px 4px; min-height: 0; }
.dash-tabs .health, .dash-tabs .card { box-shadow: none; padding: 0; margin: 0; background: none; }
@media (min-width: 1200px) {
  body:has(.dash) .content { max-width: 1480px; }
  .dash-head { padding: 16px 22px 14px; margin: 0 0 12px; gap: 12px; }
  .dash-head__name { font-size: 2rem; }
  .dash-head__meta { margin-top: 8px; }
  .dash-search { min-height: 44px; }
  .quick { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 12px; }
  .quick__tile { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 8px 10px; text-align: left; }
  .quick__icon { width: 32px; height: 32px; border-radius: 10px; }
  .quick__icon .icon { width: 17px; height: 17px; }
  .quick__label { font-size: 12px; }
  .dash { grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
  .dash .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px !important; }
  .dash .tile { padding: 10px 14px; }
  .dash .tile__q { font-size: 12px; }
  .dash .tile__v { font-size: var(--fs-xl); }
  .dash .tile__s { font-size: 12px; }
  .dash .scan-box { margin-bottom: 12px; }
  .dash-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
  .dash-pair > * { margin: 0 !important; }
  .dash-pair #home-chart-card { display: flex; flex-direction: column; }
  .dash-pair .home-chart { flex: 1; min-height: 150px; }
  .dash-pair .dash-feed .feed { max-height: 268px; overflow-y: auto; scrollbar-width: thin; }
  .dash-pair .feed__row { padding: 7px 2px; }
  .dash__side > * + * { margin-top: 12px; }
  .dash-ai { padding: 14px 16px; }
  .dash-ai__chips { margin: 10px 0; }
  .dash-ai__chip { min-height: 34px; padding: 6px 12px; }
  .dash-tabs [data-panel] { max-height: 300px; overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 1200px) {
  .dash .tiles { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .dash .tile__v { font-size: var(--fs-lg); }
  .dash .scan-box--compact .scan-box__drop { padding: 8px 12px; }
  .dash .scan-box--compact .scan-box__icon { width: 34px; height: 34px; }
  .dash .scan-box--compact .scan-box__free, .dash .scan-box--compact .scan-box__foot:empty { display: none; }
  .dash .scan-box--compact .scan-box__foot { padding-top: 0; font-size: 12px; }
}
@media (min-width: 1200px) {
  .dash-head { padding: 12px 20px 12px; }
  .dash-head__name { font-size: var(--fs-2xl); }
  .dash-head__hello { font-size: 11px; }
  .dash .tile__q { font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash .tile__s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-pair .dash-feed .feed { max-height: 216px; }
  .dash-pair .home-chart { min-height: 120px; }
  .dash-ai__chip:nth-child(n+4) { display: none; }
  .dash-ai__sub { display: none; }
  .dash-tabs [data-panel] { max-height: 214px; }
}
@media (min-width: 1200px) {
  .dash .tile__q { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
  .dash .tile { padding: 9px 12px; }
  .dash-pair .dash-feed .feed { max-height: 196px; }
  body:has(.dash) .content { padding-bottom: 12px; }
}
body:has(.report-index) .content { max-width: 1480px; }
.report-find { max-width: 360px; flex: 1 1 260px; }
.report-note { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; }
.report-note .icon { color: var(--c-gold-ink); }
.report-index { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.report-col { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 12px 8px 8px; }
.report-col__title { display: flex; align-items: center; gap: 8px; margin: 0 8px 6px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-2); }
.report-col__title .icon { color: var(--c-gold-ink); }
.report-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 9px; color: var(--c-text); text-decoration: none; font-size: 14px; font-weight: 550; }
.report-link .icon { opacity: 0; color: var(--c-text-3); transition: opacity var(--t-fast); }
.report-link:hover { background: var(--c-accent-soft); }
.report-link:hover .icon { opacity: 1; }
.report-link[hidden] { display: none; }
.health-fold { margin: 0 0 10px; }
.health-fold > summary { list-style: none; cursor: pointer; }
.health-fold > summary::-webkit-details-marker { display: none; }
.health-fold[open] .health-strip__more .icon { transform: rotate(180deg); }
.health-fold #health { margin-top: 8px; }
.health-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 10px 16px; border-radius: var(--r-lg); background: var(--c-surface); box-shadow: var(--shadow-1); }
.health-strip__score { font-family: var(--font-num); font-size: 24px; font-weight: 800; line-height: 1; }
.health-strip__score small { font-size: 12px; color: var(--c-text-3); font-weight: 600; }
.health-strip__score.is-ok { color: var(--c-ok); } .health-strip__score.is-warn { color: var(--c-warn); } .health-strip__score.is-bad { color: var(--c-danger); }
.health-strip__label { font-weight: 700; }
.health-strip__part { display: flex; flex-direction: column; min-width: 0; }
.health-strip__part small { font-size: 11px; color: var(--c-text-2); }
.health-strip__part strong { font-size: 13px; }
.health-strip__more { margin-left: auto; color: var(--c-text-3); }
.report-index { display: block; columns: 232px; column-gap: 16px; }
.report-col { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 14px; }
.report-col[hidden] { display: none; }
@media (min-width: 1200px) { .report-index { column-count: 4; } .report-link { padding: 6px 8px; font-size: var(--fs-sm); } .report-col { padding: 10px 6px 6px; } }
@media (min-width: 1750px) { .report-index { column-count: 5; } }
.report-index { display: grid; columns: auto; column-count: auto; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; align-items: start; }
.report-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.report-col { display: block; margin: 0; }
@media (min-width: 1200px) { .report-index { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.money-grid { display: grid; gap: 14px; }
.money-grid > section { min-width: 0; }
.money-grid .section-title { margin-top: 0; }
@media (min-width: 1200px) {
  body:has(.money-grid) .content { max-width: 1480px; }
  .money-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .money-grid .list { max-height: calc(100vh - 372px); overflow-y: auto; scrollbar-width: thin; }
  .money-grid .list__item { min-height: 0; padding: 9px 14px; }
}
@media (min-width: 1200px) {
  body:has(.settings-home) .content { max-width: 1480px; }
  body:has(.settings-home) .list--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:has(.settings-home) .list--grid > *:nth-child(odd) { border-right: 0; }
  body:has(.settings-home) .list--grid > *:not(:nth-child(3n)) { border-right: 1px solid var(--c-line-2); }
  body:has(.settings-home) .list--grid .list__item { min-height: 0; padding: 12px 14px; }
}
body:has(.settings-tabs) .content { max-width: 1480px; }
.settings-tabs { display: flex; flex-direction: column; gap: 12px; }
.seg-tabs--page { align-self: flex-start; margin: 0; padding: 4px; }
.seg-tabs--page .seg-tabs__btn { min-height: 36px; padding: 0 18px; font-size: var(--fs-sm); }
.settings-grid > .card:only-child, .settings-grid > .card.span-all { grid-column: 1 / -1; }
.settings-tabs .form-actions { position: sticky; bottom: 0; z-index: 5; padding: 10px 0; background: linear-gradient(to top, var(--c-bg) 70%, transparent); }
.txs-numbers { display: grid; gap: 14px; }
@media (min-width: 1100px) { .txs-numbers { grid-template-columns: 1fr 1fr; } }
.txs-numbers .table td, .txs-numbers .table th { padding: 6px 10px; }
.txs-numbers .input { min-height: 34px; }
.stack-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stack-col > .card { margin: 0; }
.settings-tabs .card { padding: 16px 18px; }
.settings-tabs .check { padding: 2px 0; }
.settings-tabs .stack { gap: 10px; } .settings-tabs .form-actions { padding: 6px 0; }
body:has(.modules-form) .content { max-width: 1480px; }
.module-grid { border: 0; padding: 0; margin: 0; display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.module-pick { padding: 10px 12px !important; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-border); align-items: flex-start; }
.module-pick:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--c-accent); background: var(--c-accent-soft); }
.module-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); } .module-pick { background: var(--c-surface); } .modules-form .form-actions { position: sticky; bottom: 0; padding: 8px 0; background: linear-gradient(to top, var(--c-bg) 70%, transparent); }
.fold-row { display: grid; gap: 12px; }
.fold-row > details { margin: 0 !important; }
@media (min-width: 1100px) {
  .party-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
  .party-top .role-pick__head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .party-top .role-pick__hint { text-align: left; }
  .fold-row { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .fold-row > details[open] { grid-column: 1 / -1; order: -1; }
  .fold-row > details > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fold-row > details > summary .muted { display: none; }
}
@media (min-width: 1100px) {
  .party-top .role-pick { display: grid; grid-template-columns: auto; justify-items: start; gap: 8px; }
  .party-top .role-pick__label { order: 0; }
  .party-top .role-pick__seg { order: 1; margin: 0; }
  .party-top .role-pick__hint { order: 2; margin: 0; }
  #party-form .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fold-row > details > summary { flex-wrap: nowrap; }
}
.ind-fields--bare { border: 0; padding: 0; margin: 0; }
[data-hsn-suggest] { min-height: 30px !important; padding: 0 10px !important; font-size: 13px; }
@media (min-width: 1100px) { #item-form .fold-row, form .fold-row { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (min-width: 1200px) {
  .party-layout .stmt-wrap { max-height: calc(100vh - 330px); }
  .stmt-bar { flex-wrap: nowrap; }
  .stmt-bar .date-pair .input { width: 150px; padding-inline: 10px; }
  .party-layout .doc-side { max-height: calc(100vh - 170px); }
}
@media (min-width: 1200px) { .party-layout .doc-side { max-height: calc(100vh - 236px); padding-bottom: 8px; } }
.settings-2col { display: grid; gap: 14px; align-items: start; }
.settings-2col .section-title { margin: 6px 2px 0; }
.settings-2col .stack-col > form.card, .settings-2col .stack-col > .card { margin: 0; }
@media (min-width: 1100px) { body:has(.settings-2col) .content { max-width: 1480px; } .settings-2col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) {
  .tpl-studio--tabs { grid-template-areas: "tabs stage" "pick stage" "opts stage"; }
  .tpl-studio--tabs .tpl-tabbar { margin: 0; }
  .tpl-studio--tabs .tpl-pick, .tpl-studio--tabs .tpl-opts > fieldset { max-height: calc(100vh - 300px); overflow-y: auto; scrollbar-width: thin; }
  .tpl-studio--tabs .tpl-stage { position: sticky; top: 76px; }
  .tpl-studio--tabs .tpl-viewport { max-height: calc(100vh - 200px); overflow: auto; }
}
.tpl-studio--tabs [data-panel][hidden] { display: none !important; }
.tpl-tabbar .seg-tabs__btn { padding: 0 9px; font-size: 12px; }
.seg-tabs--page { max-width: 100%; }
.stmt-bar .date-pair { flex-wrap: wrap; max-width: 100%; } .stmt-bar .date-pair .input { min-width: 0; flex: 1 1 130px; }
@media (min-width: 1200px) { .count-wrap { max-height: calc(100vh - 290px); overflow: auto; } .count-wrap thead th { position: sticky; top: 0; z-index: 1; } }
#count-sheet tr.is-muted td { color: var(--c-text-3); }
#count-sheet .is-ok { color: var(--c-ok); font-weight: 700; }
#count-sheet .is-plus { color: var(--c-ok); font-weight: 700; }
#count-sheet .is-minus { color: var(--c-danger); font-weight: 700; }
#count-form .form-actions { display: flex; align-items: center; gap: 12px; }
.prefix-field__prefix { white-space: nowrap; }
.scroll-rows { max-height: max(240px, calc(100vh - 580px)); overflow: auto; overscroll-behavior: contain; }
.scroll-rows thead th { position: sticky; top: 0; z-index: 1; background: var(--c-surface); }

/* v034.css */
.fulfil-chips { display: inline-flex; gap: 6px; margin-left: var(--s-2); vertical-align: middle; }
.fulfil-chips .chip { min-height: 30px; padding: 0 12px; text-decoration: none; }
.menu-pop { position: relative; }
.menu-pop > summary { list-style: none; cursor: pointer; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.menu-pop[open] > summary { color: var(--c-text); }
.menu-pop__panel { margin-top: var(--s-2); padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); }
.menu-pop__panel .input { min-height: 38px; }
.combine { display: grid; gap: var(--s-2); padding-top: var(--s-3); border-top: 1px dashed var(--c-border); }
.combine__list { display: grid; gap: 4px; max-height: 180px; overflow: auto; }
.combine__list .check { font-size: var(--fs-sm); }
.combine .btn { justify-self: start; }
.save-split { display: inline-flex; position: relative; }
.save-split > .btn--primary { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.save-split > details > summary { list-style: none; height: 100%; display: inline-flex; align-items: center; padding: 0 10px; cursor: pointer;
  border-top-right-radius: var(--r-pill); border-bottom-right-radius: var(--r-pill); background: var(--c-accent); color: var(--c-on-accent);
  border-left: 1px solid color-mix(in srgb, var(--c-on-accent) 25%, transparent); }
.save-split > details > summary::-webkit-details-marker { display: none; }
.save-split__menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 50; min-width: 220px; padding: 6px; border-radius: var(--r-md);
  background: var(--c-surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--c-border); display: grid; }
.save-split__menu button { all: unset; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.save-split__menu button:hover, .save-split__menu button:focus-visible { background: var(--c-surface-2); }
.save-split__menu kbd { margin-left: auto; }
.next-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); padding: 10px 14px; border-radius: var(--r-md);
  background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-border); }
.next-strip__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); margin-right: var(--s-1); }
.next-strip__step { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--c-text-3); }
.next-strip__step.is-done { color: var(--t-in); }
.next-strip__step + .next-strip__step::before { content: ""; width: 14px; height: 1px; background: var(--c-border); margin-right: 4px; }
.next-strip .spacer { flex: 1; }
.doc-row__pick { display: none; }
.is-picking .doc-row__pick { display: inline-flex; align-items: center; }
.bulk-bar { position: sticky; bottom: var(--s-3); z-index: 30; display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); padding: 10px 14px;
  border-radius: var(--r-pill); background: var(--sb-bg); color: var(--zw-on-navy); box-shadow: var(--shadow-2); }
.bulk-bar .btn { min-height: 36px; }
.bulk-bar .btn--ghost { background: var(--zw-navy-fill); color: var(--zw-on-navy); box-shadow: none; }
.save-split__caret { transform: rotate(180deg); }
.send-action.is-attention { outline: 3px solid color-mix(in srgb, var(--c-ok) 45%, transparent); outline-offset: 2px; animation: v034-pulse 1.6s ease-out 2; }
@keyframes v034-pulse { 0% { box-shadow: 0 0 0 0 rgba(27, 121, 80, .45); } 100% { box-shadow: 0 0 0 14px rgba(27, 121, 80, 0); } }
@media (prefers-reduced-motion: reduce) { .send-action.is-attention { animation: none; } }
#doc-list.is-picking .doc-row { padding-left: 46px; }
#doc-list.is-picking .doc-row:not(.doc-row--head) { position: relative; }
#doc-list.is-picking .doc-row__pick { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
#doc-list.is-picking .doc-row__pick input { width: 18px; height: 18px; accent-color: var(--c-accent); }
#doc-list.is-picking .doc-row:has([data-pick]:checked) { background: var(--c-accent-soft); }
.send-actions > :last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.send-actions > .send-action-wrap:last-child:nth-child(3n+1) > .send-action { grid-column: 1 / -1; }
.print-sheet--t104 .roll, .tpl-roll-sheet.print-sheet--t104 .roll { width: 104mm; font-size: 13px; }
@media print { .print-sheet--t104 .roll { padding: 0 1mm; } }
.party-tools { position: relative; }
.party-tools__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: min(360px, 86vw); background: var(--c-surface); box-shadow: var(--shadow-2), 0 0 0 1px var(--c-border); }
.party-tools__panel > * + * { padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.join__title { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xl); margin: 0; color: var(--t-in); }
.join .segmented { align-self: flex-start; }

/* v036.css */
.bulk-items__bar { position: sticky; top: 0; z-index: 3; background: var(--c-bg); padding: var(--s-2) 0; flex-wrap: wrap; gap: var(--s-2); }
.bulk-items__bar .input { width: auto; }
.bulk-items { max-height: calc(100vh - 220px); overflow: auto; }
.bulk-items thead th { position: sticky; top: 0; z-index: 2; background: var(--c-surface); }
.bulk-items__name { min-width: 180px; max-width: 280px; }
.table--dense td, .table--dense th { padding: 4px 8px; }
.input--cell { min-width: 84px; height: 34px; padding: 4px 8px; font-size: var(--fs-sm); }
td .input--cell.num { text-align: right; }
.input--cell.is-changed { border-color: var(--c-accent); background: var(--c-accent-soft); }
.item-photos { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.item-photos__one { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.item-photos__one img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--c-border); background: var(--zw-paper); }
.item-photos__one.is-first img { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.item-photos__one figcaption { gap: 2px; min-height: 28px; }
.jw-print { max-width: 190mm; margin: 0 auto; padding: 8mm; color: var(--zw-paper-ink); background: var(--zw-paper); font-size: 12px; }
.jw-print__title { font-size: var(--fs-lg); margin: 0; text-align: center; }
.jw-print__sub { text-align: center; margin: 2px 0 10px; font-size: 11px; color: var(--zw-paper-ink-2); }
.jw-print table { width: 100%; border-collapse: collapse; }
.jw-print__head td, .jw-print__lines th, .jw-print__lines td, .jw-print__sign td { border: 1px solid var(--zw-paper-line); padding: 6px; vertical-align: top; }
.jw-print__lines { margin-top: 8px; }
.jw-print__lines th { background: var(--zw-paper-band); text-align: left; }
.jw-print__lines .num { text-align: right; }
.jw-print__note { font-size: 11px; color: var(--zw-paper-ink-2); margin: 8px 0; }
.jw-print__sign td { height: 60px; width: 50%; }
@media print { .jw-print { padding: 0; } @page { size: A4; margin: 10mm; } }
@media (max-width: 640px) { .bulk-items { max-height: none; } .bulk-items__bar .spacer { display: none; } }
.input--cell[data-col="category"], .input--cell[data-col="bin_location"] { min-width: 120px; }

/* v043.css */
.bell { position: relative; }
.bell__n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-danger); color: var(--c-on-accent); font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.notif-list .list__item { align-items: flex-start; }
.notif-list .is-unread .list__title { font-weight: 700; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); margin-top: 8px; flex: none; }
.notes .note { padding: var(--s-2) 0; border-bottom: 1px solid var(--c-hairline); }
.notes .note--event { color: var(--c-text-2); font-size: var(--fs-sm); }
.notes .note__meta { font-size: 13px; color: var(--c-text-2); }
.notes form { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.notes form .input { flex: 1; min-width: 0; }
.bulk-pick { display: none; width: 20px; height: 20px; flex: none; accent-color: var(--c-accent); }
.is-picking .bulk-pick { display: inline-block; }
.is-picking a.list__item:has(.bulk-pick:checked) { background: var(--c-accent-soft); }

/* v052.css */
.auth-google { margin: var(--s-4) 0 0; }
.btn--google { background: #FFFFFF; color: #1F1F1F; box-shadow: inset 0 0 0 1px #747775; gap: 10px; padding: 0 12px; min-height: 48px;
  font-weight: 600; letter-spacing: .01em; font-family: "Google Sans", Roboto, var(--font-sans); }
.btn--google:hover { background: #F8F9FA; box-shadow: inset 0 0 0 1px #747775, 0 1px 3px rgba(60, 64, 67, .2); }
.btn--google:focus-visible { outline: 3px solid #A8C7FA; outline-offset: 2px; }
.btn--google__g { width: 20px; height: 20px; flex: none; }
:root[data-theme="dark"] .btn--google { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--google { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; } }
#trust-device-label { align-items: flex-start; }
body:has(.onboard-details) .auth__body { max-width: 640px; }
.onboard-details__h { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 0; font-size: var(--fs-sm); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-2); }
.onboard-details__h:first-of-type { margin-top: 0; }
.gstin-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s-2); margin-top: 6px; min-height: 22px; }
.gstin-badge .badge { display: inline-flex; align-items: center; gap: 4px; }
.badge--ok { background: color-mix(in srgb, var(--c-ok) 14%, transparent); color: var(--c-ok); }
.badge--warn { background: color-mix(in srgb, var(--c-warn) 16%, transparent); color: var(--c-warn); }
.field__hint.is-ok { color: var(--c-ok); }
.field__hint.is-warn { color: var(--c-warn); }
.profile-bar { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); padding: var(--s-3) var(--s-4);
  border-radius: var(--r-lg); background: linear-gradient(120deg, var(--c-gold-soft), var(--c-surface) 70%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c-gold) 30%, transparent); }
.profile-bar__main { display: flex; align-items: center; gap: var(--s-3); flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.profile-bar__ring { --pct: 0; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c-gold) calc(var(--pct) * 1%), color-mix(in srgb, var(--c-gold) 18%, transparent) 0); }
.profile-bar__ring span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface); font-size: 12px; font-weight: 800; }
.profile-bar__text { display: flex; flex-direction: column; min-width: 0; }
.profile-bar__text .small { color: var(--c-text-2); }
.profile-bar__cta { flex: none; }
.profile-bar__later { flex: none; }
@media (max-width: 599px) { .profile-bar { flex-wrap: wrap; } .profile-bar__cta { display: none; } .profile-bar__later { margin-left: auto; } }
@media (min-width: 720px) {
  .quick--compact, nav#home-actions.quick.quick--compact { display: flex !important; flex-wrap: wrap !important; overflow: visible !important; gap: var(--s-2); max-width: none; }
  .quick--compact .quick__tile { flex-direction: row; gap: 8px; padding: 8px 14px 8px 8px; border-radius: var(--r-pill); min-height: 0; }
  .quick--compact .quick__icon { width: 28px; height: 28px; border-radius: 9px; }
  .quick--compact .quick__icon .icon { width: 16px; height: 16px; }
  .quick--compact .quick__label { font-size: var(--fs-sm); white-space: nowrap; }
}
.dash-tiles-head { margin: 0 0 var(--s-2); align-items: center; }
.dash-shortcuts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.dash-shortcut { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--c-surface);
  box-shadow: 0 0 0 1px var(--c-border); color: var(--c-text); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.dash-shortcut:hover { box-shadow: 0 0 0 1px var(--c-accent); }
.month-panel { padding: var(--s-4); margin-bottom: var(--s-4); }
.month-panel__list { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.month-panel__row { display: flex; align-items: center; gap: var(--s-3); padding: 10px 6px; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.month-panel__row:hover { background: var(--c-surface-2); }
.month-panel__row:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.month-panel__list li + li .month-panel__row { border-top: 1px solid var(--c-border); border-radius: 0; }
.month-panel__label { flex: 1; font-size: var(--fs-sm); color: var(--c-text-2); }
.month-panel__amt { font-weight: 700; }
.month-panel__row > .icon:last-child { color: var(--c-text-3); }
.asst-fab[hidden] { display: none !important; }
@media (min-width: 900px) {
  .asst-fab--compact { width: 52px; height: 52px; padding: 0; gap: 0; overflow: hidden; transition: width var(--t-med) var(--ease-out), padding var(--t-med) var(--ease-out), transform var(--t-fast); }
  .asst-fab--compact .asst-fab__label { display: inline; max-width: 0; opacity: 0; transition: max-width var(--t-med) var(--ease-out), opacity var(--t-fast); white-space: nowrap; }
  .asst-fab--compact .asst-fab__kbd { display: none; }
  .asst-fab--compact:hover, .asst-fab--compact:focus-visible { width: auto; padding: 0 var(--s-4) 0 var(--s-3); gap: var(--s-2); }
  .asst-fab--compact:hover .asst-fab__label, .asst-fab--compact:focus-visible .asst-fab__label { max-width: 120px; opacity: 1; }
}
.profile-meter { margin-bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.profile-meter__todo { display: flex; flex-wrap: wrap; gap: var(--s-2); }
#profile-tabs [data-panel] { display: flex; flex-direction: column; gap: var(--s-4); }
.upi-card { display: grid; grid-template-columns: auto 1fr; gap: var(--s-6); align-items: start; }
.upi-card__qr { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-md);
  background: var(--zw-paper); box-shadow: 0 0 0 1px var(--c-border); min-width: 196px; }
.upi-card__qr svg, .upi-card__qr img { display: block; }
.upi-card__qr .small { color: var(--zw-paper-ink-2); text-align: center; max-width: 180px; }
.upi-card__empty { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); padding: var(--s-6) var(--s-3); color: var(--c-text-3); }
@media (max-width: 640px) { .upi-card { grid-template-columns: 1fr; } .upi-card__qr { justify-self: center; } }
.callout { gap: var(--s-3); margin-bottom: var(--s-4); text-decoration: none; color: inherit; border-left: 4px solid var(--c-gold); }
.party-contacts__title { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; }
.th-sort:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
.th-sort__arrow { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; opacity: .3; border-top: 5px solid currentColor; }
th[aria-sort="ascending"] .th-sort__arrow { opacity: 1; border-top: 0; border-bottom: 5px solid currentColor; }
th[aria-sort="descending"] .th-sort__arrow { opacity: 1; }
th.num .th-sort { justify-content: flex-end; }
#profile-tabs .seg-tabs__btn { display: inline-flex; align-items: center; gap: 6px; }

/* v070.css */
.dash-head__tools { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.dash-tool { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px 8px 8px; border: 1px solid var(--zw-navy-fill-2); border-radius: 16px;
  background: var(--zw-navy-fill); color: var(--zw-on-navy); font: inherit; text-align: left; cursor: pointer; transition: background var(--t-fast), border-color var(--t-fast); }
.dash-tool:hover, .dash-tool:focus-visible { background: var(--zw-navy-fill-2); border-color: rgba(227, 178, 60, .55); }
.dash-tool:focus-visible { outline: 2px solid var(--zw-gold-hi); outline-offset: 2px; }
.dash-tool__icon { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: rgba(242, 210, 122, .14); color: var(--zw-gold-hi); }
.dash-tool__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dash-tool__text strong { font-size: 14px; font-weight: 700; }
.dash-tool__text span { font-size: 12px; color: var(--zw-on-navy-2); }
@media (min-width: 900px) { .dash-head__tools { flex-direction: column; align-items: stretch; justify-self: end; width: min(100%, 300px); } }
@media (max-width: 899px) { .dash-head__tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .dash-tool { min-height: 46px; padding: 6px 12px 6px 6px; } .dash-tool__icon { width: 32px; height: 32px; } }
.help-sheet { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: min(720px, calc(100vh - 48px)); }
.help-sheet::backdrop, .app-offer::backdrop { background: var(--zw-scrim); }
.help-sheet__box { display: flex; flex-direction: column; gap: 10px; max-height: min(720px, calc(100vh - 48px)); padding: 16px 16px 12px; border-radius: 20px; background: var(--c-surface); box-shadow: var(--shadow-2); }
.help-sheet__head { display: flex; align-items: center; gap: 8px; }
.help-sheet__head .card-title { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.help-sheet__search { position: relative; display: block; }
.help-sheet__search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); pointer-events: none; }
.help-sheet__search .input { width: 100%; min-height: 48px; padding-left: 42px; border-radius: 14px; font-size: var(--fs-md); }
.help-sheet__hint { margin: -2px 2px 0; }
.help-sheet__list { overflow-y: auto; min-height: 120px; display: grid; gap: 8px; align-content: start; padding: 2px; overscroll-behavior: contain; }
.help-sheet__label { margin: 4px 2px 0; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--c-text-3); }
.help-sheet__none { margin: 8px 2px; color: var(--c-text-2); }
.help-sheet__foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--c-border); }
.help-hit { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-surface); padding: 0; }
.help-hit > summary, .help-card > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.help-hit > summary { padding: 12px 14px; min-height: 48px; }
.help-hit > summary::-webkit-details-marker, .help-card > summary::-webkit-details-marker { display: none; }
.help-hit > summary .icon, .help-card > summary .icon { margin-left: auto; flex: none; color: var(--c-text-3); transition: transform var(--t-fast); }
.help-hit[open] > summary .icon, .help-card[open] > summary .icon { transform: rotate(180deg); }
.help-hit[open] { border-color: var(--c-accent); }
.help-hit > :not(summary) { margin-left: 14px; margin-right: 14px; }
.help-hit > .btn { margin-bottom: 14px; }
.help-hit__lead, .help-card__lead { margin: 0 0 8px; color: var(--c-text-2); }
.help-steps { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: hs; display: grid; gap: 8px; }
.help-steps li { counter-increment: hs; position: relative; padding-left: 34px; line-height: 1.45; }
.help-steps li::before { content: counter(hs); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-surface-2); color: var(--c-text); font-size: 12px; font-weight: 800; }
.help-card > summary { min-height: 28px; }
.help-card .help-card__lead { margin-top: 10px; }
.help-guide__sec { margin-bottom: var(--s-5); }
.help-guide__title { display: flex; align-items: center; gap: 8px; }
.help-guide__sec[hidden], [data-article][hidden] { display: none !important; }
@media (max-width: 640px) {
  .help-sheet { width: 100vw; max-height: none; margin: auto 0 0; }
  .help-sheet__box { max-height: 88vh; border-radius: 22px 22px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); animation: sheet-up var(--t-med) var(--ease-out); }
}
.app-offer { border: 0; padding: 0; background: transparent; width: min(400px, calc(100vw - 32px)); max-width: none; }
.app-offer__box { position: relative; display: grid; gap: 12px; padding: 24px 22px 14px; border-radius: 22px; background: var(--c-surface); box-shadow: var(--shadow-2); text-align: center; }
.app-offer__x { position: absolute; top: 8px; right: 8px; }
.app-offer__art { justify-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: linear-gradient(140deg, var(--zw-navy-hi), var(--zw-navy-lo)); }
.app-offer__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.app-offer__why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: left; }
.app-offer__why li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--c-text-2); }
.app-offer__why .icon { color: var(--c-ok); margin-top: 2px; flex: none; }
.app-offer__qr { justify-self: center; padding: 8px; border-radius: 14px; background: var(--zw-paper); box-shadow: 0 0 0 1px var(--c-border); }
.app-offer__qr svg { display: block; width: 168px; height: 168px; }
.app-offer__note { margin: 0; }
.app-offer__later { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .app-offer { width: 100vw; margin: auto 0 0; }
  .app-offer__box { border-radius: 22px 22px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); animation: sheet-up var(--t-med) var(--ease-out); }
}
.asst-fab { transition: transform .22s ease, opacity .22s ease, box-shadow .2s; }
.asst-fab.asst-fab--away { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (max-width: 640px) {

  .lf-pop__menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); width: auto; max-height: 70vh; overflow-y: auto; z-index: 60; }

  .stmt-bar .date-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); width: 100%; }
  .stmt-bar .date-pair .input { width: 100%; min-width: 0; padding-inline: 8px; }

  #report-filters { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
  #report-filters > label.small:not(.row) { display: grid; gap: 4px; min-width: 0; }
  #report-filters > label.small:not(.row) .input { width: 100% !important; min-width: 0; }
  #report-filters > :not(label.small:not(.row)) { grid-column: 1 / -1; }
  #report-filters > button[type=submit] { justify-self: start; }
  #report-actions { gap: 8px; }
  #report-actions > .small.muted { flex-basis: 100%; }
  #report-actions > .spacer { display: none; }
  #report-actions .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }

  .list-summary .sum-strip__item small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }

  .doc-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
@media (pointer: coarse) {

  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; flex: none; }
}
.badge, .badge--soft { font-size: var(--fs-xs); }
.link-row { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
@media (max-width: 640px) { .link-row { flex-basis: 100%; justify-content: flex-start; margin-top: 4px; } }
.row:has(> .link-row) { flex-wrap: wrap; }
@media (pointer: coarse) { .no-touch { display: none !important; } }
@media (pointer: fine) { .only-touch { display: none !important; } }
@media (max-width: 640px) {
  .card.row.callout { flex-wrap: wrap; align-items: flex-start; }
  .card.row.callout > span[style*="flex:1"] { min-width: calc(100% - 64px); }
  .card.row.callout > .btn { margin-left: 56px; }
}

/* v071.css */
.list:has(.menu) { overflow: visible; }
.list:has(.menu) > :first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list:has(.menu) > :last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.list .relative:has(> .menu) { position: relative; }
.list .menu { z-index: 60; }
.org-list .list__item { position: relative; }
.org-list .list__item:has(.menu:not([style*="display: none"])) { z-index: 5; }
.content a:not(.btn):not(.link--u) { text-decoration: none; }
.content a:not(.btn):hover { text-decoration: underline; text-underline-offset: 3px; }
.content .chip, .content .chip:hover, .content a.list__item, .content a.list__item:hover, .content a.quick__tile, .content a.quick__tile:hover,
.content a.card, .content a.card:hover, .content .menu a, .content .menu a:hover, .content a.tile, .content a.tile:hover { text-decoration: none; }
.content p a:not(.btn), .content .prose a, .content .field__hint a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.org-switch__hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--sb-muted); }
.org-switch__user { color: var(--zw-on-navy); font-weight: 600; }
.org-switch__role { color: var(--zw-gold-hi); font-weight: 600; white-space: nowrap; }
.menu__who { display: flex; flex-direction: column; gap: 2px; padding: var(--s-2) var(--s-3) var(--s-3); margin-bottom: var(--s-1); border-bottom: 1px solid var(--c-hairline); line-height: 1.3; }
.menu__who strong { font-size: var(--fs-sm); }
.dash-head { padding: var(--s-5) var(--s-6); align-items: center; gap: var(--s-3); }
@media (min-width: 900px) { .dash-head { grid-template-columns: minmax(0, 1fr) auto; } }
.dash-head__tools { display: flex; flex-wrap: wrap; gap: 8px; align-self: start; justify-content: flex-end; }
.dash-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px 0 13px; width: auto; border-radius: var(--r-pill);
  background: var(--zw-navy-fill); border: 1px solid var(--zw-navy-line); color: var(--zw-on-navy); font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .01em; cursor: pointer; box-shadow: none; transition: background var(--t-fast), border-color var(--t-fast); }
.dash-tool:hover { background: var(--zw-navy-fill-2); border-color: rgba(227, 196, 110, .55); }
.dash-tool:focus-visible { outline: 2px solid var(--zw-gold-hi); outline-offset: 2px; }
.dash-tool .icon { width: 16px; height: 16px; color: var(--zw-gold-hi); flex: none; }
.dash-tool__icon, .dash-tool__text { display: none; }
.dash-head__meta { margin-top: var(--s-2); }
@media (max-width: 899px) { .dash-head__tools { justify-content: flex-start; } }
@media (max-width: 420px) { .dash-tool { min-height: 36px; padding: 0 12px 0 10px; font-size: 13px; } }
.profile-bar { padding: 10px var(--s-4); gap: var(--s-3); border-radius: var(--r-md); }
.profile-bar__ring { width: 36px !important; height: 36px !important; font-size: 11px; }
.profile-bar__text strong { font-size: var(--fs-sm); font-weight: 650; }
.profile-bar__text .small { font-size: 13px; }
.profile-bar__cta { min-height: 34px; }
.quick__tile--extra { display: none !important; }
.quick--all .quick__tile--extra { display: flex !important; }
.quick__more { font: inherit; cursor: pointer; border: 0; }
.quick--all .quick__more .quick__icon .icon { transform: rotate(90deg); }
.industry-card { padding: var(--s-4) var(--s-5); }
.industry-card strong { font-weight: 650; }
.industry-card__todo { padding: 10px var(--s-3); font-size: var(--fs-sm); }
.field__label { font-weight: 550; font-size: var(--fs-sm); color: var(--c-text); margin-bottom: 6px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); margin: var(--s-6) var(--s-1) var(--s-2); }
.chip { font-weight: 550; }
.set-org { display: flex; align-items: center; gap: 8px; margin: calc(-1 * var(--s-3)) 0 var(--s-4); color: var(--c-text-2); font-size: var(--fs-sm); }
.set-org .icon { color: var(--c-gold-ink); }
.set-org strong { color: var(--c-text); font-weight: 600; }
.set-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--s-6); align-items: start; }
@media (min-width: 1000px) { .set-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.set-group__title { margin: 0 0 var(--s-2) var(--s-1); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-text-3); }
.set-list { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--c-hairline); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 10px var(--s-4); color: var(--c-text); text-decoration: none !important; transition: background var(--t-fast); }
.set-row + .set-row { border-top: 1px solid var(--c-hairline); }
.set-row:hover { background: var(--c-surface-2); }
.set-row:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.set-row__icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: transparent; color: var(--c-ink); flex: none; }
.set-row__icon .icon { width: 19px; height: 19px; stroke-width: 1.6; }
.set-row__body { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.set-row__title { font-weight: 600; font-size: var(--fs-sm); }
.set-row__sub { color: var(--c-text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row > .icon { color: var(--c-text-3); flex: none; }
[data-theme="dark"] .set-row__icon { color: var(--c-gold-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .set-row__icon { color: var(--c-gold-ink); } }
.profile-meter { padding: 14px 18px; gap: 10px; box-shadow: 0 0 0 1px var(--c-hairline); }
.profile-meter strong { font-size: var(--fs-sm); font-weight: 650; }
.profile-meter .progress { height: 4px; }
.profile-meter__todo { gap: 6px; }
.chip--todo { min-height: 30px; padding: 0 12px 0 10px; border: 0; background: var(--c-surface-2); color: var(--c-text-2); font-size: 13px; font-weight: 550; text-decoration: none !important; }
.chip--todo .icon { width: 14px; height: 14px; color: var(--c-gold-ink); }
.chip--todo:hover { background: var(--c-gold-soft); color: var(--c-text); }
#profile-tabs .card { box-shadow: 0 0 0 1px var(--c-hairline); }
#business-form .section-title { margin: var(--s-4) 0 0; padding-top: var(--s-4); border-top: 1px solid var(--c-hairline); }
#profile-banks .row .btn, #upi-form .btn--ghost { font-weight: 600; }
.upi-card { gap: var(--s-5); grid-template-columns: 168px minmax(0, 1fr); }
.upi-card__qr { width: 168px; box-sizing: border-box; border: 1px dashed var(--c-border); background: var(--c-surface-2); box-shadow: none; min-height: 168px; justify-content: center; }
.upi-card__empty { padding: var(--s-3); text-align: center; font-size: 13px; }
@media (max-width: 640px) { .upi-card { grid-template-columns: 1fr; } }
form.card > .row:last-child:has(> .btn--primary[type=submit]), form.card .form-actions { background: var(--c-surface) !important; }
@media (min-width: 900px) { form.card > .row:last-child:has(> .btn--primary[type=submit]) { position: static; padding: 4px 0 0; } }
#upi-form .check { font-size: var(--fs-sm); }
.kind-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.kind-toggle { width: auto; flex: none; }
.kind-toggle label { display: inline-flex; align-items: center; gap: 6px; min-width: 120px; justify-content: center; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; min-height: 40px; }
.switch[hidden] { display: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--c-border); transition: background var(--t-fast); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform var(--t-fast); }
.switch input:checked + .switch__track { background: var(--c-accent); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mfg-switch__text { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 550; color: var(--c-text-2); }
.mfg-switch__text .icon { color: var(--c-gold-ink); }
.mfg-panel { display: flex; flex-direction: column; gap: 8px; padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); }
.mfg-panel[hidden] { display: none; }
.mfg-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.mfg-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mfg-pick__opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-sm); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-hairline); cursor: pointer; line-height: 1.3; }
.mfg-pick__opt > span { display: flex; flex-direction: column; }
.mfg-pick__opt strong { font-size: var(--fs-sm); font-weight: 650; }
.mfg-pick__opt .icon { color: var(--c-gold-ink); margin-top: 2px; flex: none; }
.mfg-pick input:checked + .mfg-pick__opt { box-shadow: inset 0 0 0 2px var(--c-accent); }
.mfg-pick input:focus-visible + .mfg-pick__opt { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.mfg-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.mfg-note[hidden] { display: none; }
.mfg-note .icon { flex: none; margin-top: 2px; }
.choice__more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; min-height: 52px; padding: var(--s-3);
  border: 1px dashed var(--c-border); border-radius: var(--r-md); background: transparent; color: var(--c-text-2); font: inherit; font-weight: 600; cursor: pointer; }
.choice__more:hover { background: var(--c-surface-2); color: var(--c-text); }
.choice__more[aria-expanded="true"] { border-style: solid; background: var(--c-surface-2); }
.choice__more:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.choices--more { margin-top: var(--s-2); }
.choices--more[hidden] { display: none; }
#onboarding-form .choice label { flex-direction: row; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; font-weight: 600; line-height: 1.25; border-width: 1px; }
#onboarding-form .choice label .icon { flex: none; width: 20px; height: 20px; }
.choice--more { grid-column: 1 / -1; }
.choice__more { min-height: 42px; justify-content: center; white-space: nowrap; }
.choice__more .icon { transition: transform var(--t-fast); }
.choice__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.icon--xs { width: 12px; height: 12px; }
.staff-list { margin-bottom: var(--s-5); }
.staff-user { display: inline-flex; align-items: center; gap: 1px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--c-text-2); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; margin-bottom: var(--s-4); }
@media (min-width: 1100px) { .staff-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.staff-grid .card, #role-areas, #counter-devices, #staff-login, #login-details { box-shadow: 0 0 0 1px var(--c-hairline); }
.card-title .icon { color: var(--c-gold-ink); margin-right: 8px; vertical-align: -2px; }
h2.card-title { margin: 0; font-size: var(--fs-md); display: flex; align-items: center; }
.input-with-btn { display: flex; gap: 6px; align-items: stretch; }
.input-with-btn .input { flex: 1; min-width: 0; }
.input-with-btn .btn { flex: none; white-space: nowrap; }
.switch__text { display: flex; flex-direction: column; line-height: 1.3; }
.switch__text strong { font-size: var(--fs-sm); font-weight: 600; }
#signin-ways .switch { align-items: flex-start; padding: 8px 0; }
#signin-ways .switch + .switch { border-top: 1px solid var(--c-hairline); }
#signin-ways .switch__track { margin-top: 2px; }
.switch input:disabled + .switch__track { opacity: .55; }
#role-areas { margin-bottom: var(--s-4); }
#role-areas summary, #counter-devices summary { cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.role-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.role-table th, .role-table td { padding: 8px 10px; border-bottom: 1px solid var(--c-hairline); text-align: center; white-space: nowrap; }
.role-table thead th { font-size: 12px; font-weight: 650; color: var(--c-text-3); text-transform: none; }
.role-table tbody th { text-align: left; font-weight: 600; white-space: normal; min-width: 180px; }
.role-table tbody th .small { display: block; font-weight: 400; }
.role-cell--full .icon { color: var(--c-ok); }
.role-cell--view .icon { color: var(--c-info); }
.role-cell--none { color: var(--c-text-3); }
.role-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: var(--s-3) 0 var(--s-2); }
.role-legend .icon:first-child { color: var(--c-ok); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.login-card { border-left: 3px solid var(--c-gold); margin-bottom: var(--s-4); }
.login-card__kv dd { font-size: var(--fs-md); font-weight: 650; letter-spacing: .02em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.menu__who { min-width: 230px; }
@media (min-width: 900px) {
  #staff-edit-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  #staff-edit-form > * { margin: 0 !important; }
  #staff-edit-form > .kv, #staff-edit-form > .check, #staff-edit-form > button, #staff-edit-form > .row { grid-column: 1 / -1; }
  #staff-edit-form > button { justify-self: start; }
}
#staff-edit-form > .kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; max-width: 460px; margin: 0; }
#staff-edit-form > .kv dt { color: var(--c-text-3); font-size: var(--fs-sm); }
#staff-edit-form > .kv dd { margin: 0; font-weight: 600; text-align: left; }
#staff-can-do summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); display: flex; align-items: center; gap: 8px; }
#staff-can-do .badge { font-weight: 500; }
.content .check { font-size: var(--fs-sm); }
.content details.card > summary { font-weight: 600; font-size: var(--fs-sm); }
.content .card { box-shadow: 0 0 0 1px var(--c-hairline), 0 1px 2px rgba(22, 23, 28, .03); }
@media (max-width: 600px) {
  .org-row { gap: 10px; padding-left: 12px; padding-right: 10px; }
  .org-row .avatar--lg { width: 38px; height: 38px; font-size: 14px; }
  .org-row form .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .org-row .btn--icon { width: 36px; height: 36px; min-height: 36px; }
  .org-row .list__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: var(--fs-sm); }
  .page-head .btn--sm { min-height: 34px; }
}

/* v072.css */
.rate-check { margin: 0 0 12px; }
.rate-check__list { margin: 0; padding-left: 1.2em; }
.rate-check__list li { margin: 2px 0; }
.rate-check .input { max-width: 420px; }
.hsn-tobacco-note { display: block; margin-top: 4px; }
.list-summary { flex-wrap: wrap; row-gap: 6px; }
.fulfil-chips { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 520px) { .fulfil-chips { margin-left: 0; } }

/* v074.css */
.dn-line { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-2) var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.dn-line:first-of-type { border-top: 0; padding-top: 0; }
.dn-line .field { margin: 0; }
.dn-line__err { grid-column: 1 / -1; }
.dn-line__err:empty { display: none; }
@media (max-width: 640px) { .dn-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dn-line__desc { grid-column: 1 / -1; } }
.cmp31__list { margin: 4px 0 0; padding-left: 1.2em; }
.itc-why { display: none; width: auto; max-width: 15rem; margin-left: var(--s-2); }
label.check:has(input[type="checkbox"]:not(:checked)) + .itc-why { display: inline-block; }

/* v076.css */
@media (pointer: coarse), (max-width: 640px) {
  main .btn--text, main .phone-more, main .bl-rm, main .seg-tabs .seg-tabs__btn { min-height: 44px; }
  main .bill-pay [data-repeat-row] .input, main .bill-pay [data-repeat-row] select, main .bill-pay .field select, main .bill-pay [data-repeat-remove] { min-height: 44px; }
  main .bill-pop > summary, main .bill-pay__head [data-repeat-add] { min-height: 44px; }
  main details > summary { min-height: 44px; display: flex; align-items: center; gap: var(--s-2); }
  main input.input[name="bill_discount_pct"], main input.input[name="round_off"] { min-height: 40px; height: auto; }
}
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.content :is(p, li, .list__sub, .field__hint, .prose, .alert) a:not([class]) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.gst-status { color: var(--c-text-2); }
.feed__row.is-cancelled { opacity: 1; }
.feed__row.is-cancelled .feed__title, .feed__row.is-cancelled .feed__amt { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--c-text-2); }
.feed__row.is-cancelled .feed__sub, .feed__row.is-cancelled .badge { color: var(--c-text-2); }

/* v077.css */
@media (max-width: 899px) {

  body:has(form.bill) .bottomnav, body:has(#pos) .bottomnav { display: none; }
  body:has(form.bill) .asst-fab, body:has(#pos) .asst-fab { display: none; }

  form.bill .bill-total {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31; margin: 0;
  }
  form.bill { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  #pos .pos__charge {
    position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31; width: auto;
  }
  #pos { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

  .kb-open .bottomnav, .kb-open .asst-fab, .kb-open .bottomnav__fab { display: none !important; }
}
.content li a.month-panel__row, .content li a.feed__row, .content li a[class*="__row"] { text-decoration: none !important; }

/* v079.css */
td > a[href^="/app/journal/"] { text-decoration: underline !important; text-underline-offset: 2px; }

/* v080.css */
.auth__top { flex-wrap: wrap; row-gap: var(--s-2); }
.auth__top > .row { flex-wrap: wrap; justify-content: flex-end; row-gap: var(--s-1); min-width: 0; }

/* v081_sales.css */
[data-cn-form]:has(input[name="cn_kind"][value="return"]:checked) [data-cn-part]:not([data-cn-part~="return"]),
[data-cn-form]:has(input[name="cn_kind"][value="value"]:checked) [data-cn-part]:not([data-cn-part~="value"]),
[data-cn-form]:has(input[name="cn_kind"][value="commercial"]:checked) [data-cn-part]:not([data-cn-part~="commercial"]) { display: none; }
.charge-sep { flex-basis: 100%; }
.charge-sep > summary { cursor: pointer; font-size: var(--fs-sm); color: var(--muted, inherit); }
.charge-sep[open] > summary { margin-bottom: var(--s-2); }
.charge-sep .row { flex-wrap: wrap; gap: var(--s-2); }

