input:not([type]), input[type=email], input[type=tel], input[type=url] {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid #b9c3cd; border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; }
input:not([type]):focus, input[type=email]:focus, textarea:focus { border-color: var(--brand); outline: 3px solid #bfd0fb; outline-offset: 0; }
textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
input[type=file] { font: inherit; max-width: 100%; }
input[readonly].ro, input.ro { background: #f1f3f5; color: var(--muted); }
.theme-dark input:not([type]), .theme-dark input[type=email], .theme-dark textarea { background: var(--field, #10161d); border-color: var(--field-line, #3a4655); color: var(--text); }
.field label .req { color: var(--bad); }
.check-line { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 4px 0 14px; }
.check-line input { width: 18px; height: 18px; }
.rate-note.good { color: var(--ok); }
.rate-note.bad { color: #7a3a05; }
.rate-note.busy { color: var(--muted); }
.item .rate-note { margin: 4px 0 0; font-size: .78rem; }
.input-row { display: flex; gap: 8px; align-items: stretch; }
.input-row > .ss, .input-row > input { flex: 1; min-width: 0; }
.items-wrap .item { grid-template-columns: 200px minmax(160px, 1fr) 96px 130px 140px 32px; }
.item .c-value input, .item .c-qty input, .item .c-price input, .item .tax-strip input { text-align: right; font-variant-numeric: tabular-nums; }
.item .c-del { align-self: end; padding-bottom: 2px; }
.item .line-no { font-size: .74rem; font-weight: 700; color: var(--brand); grid-column: 1 / -1; margin-bottom: -4px; }
.more-grid.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-grid .span2 { grid-column: span 2; }
.buyer-grid { margin-top: 4px; }
.ss { position: relative; }
.ss select.ss-native { display: none; }
.ss-list { z-index: 45; }
.ss-list.wide { min-width: 420px; right: auto; }
.ss-item .ss-code { min-width: 84px; }
.ss-desc small { display: block; color: var(--muted); font-size: .8rem; }
.facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts .span3 { grid-column: 1 / -1; }
pre.codeblock { margin: 0; padding: 14px; background: #0f172a; color: #e2e8f0; border-radius: var(--radius-sm); font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; max-height: 520px; overflow: auto; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form input, .inline-form select { width: auto; min-width: 200px; }
.inline-form .grow { flex: 1; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.row-actions form { margin: 0; display: inline; }
.content > .net-toast + .net-toast { top: 120px; }
.version-note { padding-bottom: 6px; }
.form-actions.end { justify-content: flex-start; flex-wrap: wrap; }
.panel-body > .form-grid { margin-bottom: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.split > .panel { margin-bottom: 20px; }
.kv-list { margin: 0 0 14px; }
.kv-list div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.kv-list div:last-child { border-bottom: 0; }
.kv-list span:first-child { color: var(--muted); }
.kv-list span:last-child { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.chip.waiting { background: var(--sandbox-tint); color: #7a3a05; }
.chip.green { background: var(--ok-tint); color: var(--ok); }
.chip.gray { background: #e9edf5; color: #3b4658; }
.chip.red { background: var(--bad-tint); color: var(--bad); }
.irn { margin-bottom: 4px; }
.qr-box svg { width: 1in; height: 1in; padding: .12in; box-sizing: content-box; background: #fff; }
.login-card .muted.small { font-size: .86rem; }
.install-card { max-width: 760px; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.checks li { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.checks .ok { color: var(--ok); } .checks .bad { color: var(--bad); font-weight: 600; }
.steps .what small { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 1000px) {
  .items-wrap .item { grid-template-columns: 1fr 1fr; }
  .split, .facts.two { grid-template-columns: 1fr; }
  .more-grid.five { grid-template-columns: repeat(2, 1fr); }
  .inline-form input, .inline-form select { min-width: 0; flex: 1 1 100%; }
  .ss-list.wide { min-width: 0; right: 0; }
}
.actionbar { margin: 20px -28px 0; z-index: 15; }
@media (max-width: 1000px) { .actionbar { margin: 20px -28px 0; flex-wrap: wrap; } }
@media (max-width: 1000px) {
  .items-foot { flex-direction: column; align-items: stretch; }
  .items-foot .field { max-width: none !important; }
  .totals { min-width: 0; width: 100%; }
  .actionbar { position: static; margin: 20px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); justify-content: stretch; }
  .actionbar .btn { flex: 1 1 auto; justify-content: center; }
  .tax-strip .pair { grid-template-columns: 1fr; }
}
.dash-top > *, .two-col > *, .top-row > *, .report-grid > *, .settings-grid > *, .split > * { min-width: 0; }
@media (max-width: 700px) {
  .stepper { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stepper .step-line { display: none; }
  .bars, .bar-labels { gap: 4px; }
  .bar .v { font-size: .62rem; }
  .bar-labels { font-size: .7rem; }
}
.user-box.pro { margin: auto 0 4px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); font-size: .88rem; }
.user-box.pro .ub-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-box.pro .ub-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; box-shadow: 0 0 0 3px var(--brand-tint); }
.user-box.pro .ub-btn span { overflow: hidden; text-overflow: ellipsis; }
.user-box.pro .ub-btn .icon { flex: none; }
.user-box.pro .ub-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.user-box.pro .ub-who b { font-size: .92rem; color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
.user-box.pro .user-role { display: inline-flex; align-items: center; gap: 6px; margin: 3px 0 0; opacity: 1; color: var(--muted); font-size: .78rem; font-weight: 600; }
.user-box.pro .user-role i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.user-box.pro .ub-user { color: var(--faint); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-box.pro .ub-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px; margin-top: 12px; }
.user-box.pro .ub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; min-width: 0; padding: 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); font-size: .76rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.user-box.pro .ub-btn:hover { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }
.user-box.pro .ub-btn.out:hover { background: var(--bad-tint); border-color: var(--bad); color: var(--bad); }
.design-old .user-box.pro { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.design-old .user-box.pro .ub-avatar { background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.design-old .user-box.pro .ub-who b { color: #fff; }
.design-old .user-box.pro .user-role, .design-old .user-box.pro .ub-user { color: rgba(255, 255, 255, .68); }
.design-old .user-box.pro .ub-btn { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }
.design-old .user-box.pro .ub-btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); color: #fff; }
.design-old .user-box.pro .ub-btn.out:hover { background: rgba(220, 38, 38, .25); border-color: #f87171; }
@media (min-width: 1001px) {
  .menu-closed .user-box.pro { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: auto 0 4px; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
  .menu-closed .user-box.pro .ub-who, .menu-closed .user-box.pro .ub-btn span { display: none; }
  .menu-closed .user-box.pro .ub-avatar { width: 36px; height: 36px; font-size: .82rem; }
  .menu-closed .user-box.pro .ub-actions { grid-template-columns: 1fr; margin: 0; gap: 6px; }
  .menu-closed .user-box.pro .ub-btn { width: 40px; height: 36px; padding: 0; }
}
@media (max-width: 1000px) {
  .user-box.pro { margin: 8px 0 0; }
}
.user-box.pro { display: none !important; }
.topbar-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.user-menu { position: relative; flex: none; }
.user-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, color .15s; }
.user-btn:hover, .user-btn[aria-expanded="true"] { background: var(--brand-tint); border-color: var(--brand); color: var(--brand-dark); }
.user-pop { position: absolute; right: 0; top: calc(100% + 10px); width: 270px; padding: 24px 18px 16px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 44px rgba(17, 24, 39, .18), 0 2px 6px rgba(17, 24, 39, .06); z-index: 90; animation: up-in .16s ease-out; }
.user-pop[hidden] { display: none; }
@keyframes up-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.user-pop .up-avatar { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e9e5f4; color: #2c2640; font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; }
.user-pop .up-name { font-size: 1.02rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; line-height: 1.3; }
.user-pop .up-user { margin-top: 3px; color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.user-pop .up-meta { margin-top: 3px; color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.user-pop .up-out { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; height: 38px; padding: 0 20px; border: 1px solid #c3cdf7; border-radius: 999px; background: var(--paper); color: var(--brand); font-weight: 600; text-decoration: none; }
.user-pop .up-out:hover { background: var(--brand-tint); border-color: var(--brand); text-decoration: none; }
.user-pop .up-pass { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .84rem; text-decoration: none; }
.user-pop .up-pass:hover { color: var(--brand); text-decoration: underline; }
.design-old .user-pop .up-out { border-color: #b6d7de; }
.theme-dark .user-btn { background: var(--paper); border-color: var(--line); color: var(--text); }
.theme-dark .user-pop .up-avatar { background: #3a3550; color: #ece8fb; }
.theme-dark .user-pop .up-out { border-color: var(--line); }
@media (max-width: 760px) { .user-pop { right: -6px; width: min(270px, calc(100vw - 24px)); } }
@media (max-width: 520px) {
  .appbar-end .btn, .topbar-end .btn { font-size: 0; gap: 0; width: 40px; padding: 0; justify-content: center; }
  .appbar-end .btn .icon, .topbar-end .btn .icon { width: 18px; height: 18px; }
  .appbar-end { gap: 8px; }
}
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px !important; width: 100%; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-eye:hover { background: var(--brand-tint); color: var(--brand-dark); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.login-card .pw-wrap { margin-bottom: 0; }
.nav-tip { position: fixed; z-index: 200; transform: translateY(-50%); padding: 7px 12px; border-radius: 8px; background: #111827; color: #fff; font-size: .84rem; font-weight: 600; line-height: 1.2; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(17, 24, 39, .22); animation: tip-in .12s ease-out; }
.nav-tip::before { content: ""; position: absolute; left: -5px; top: 50%; width: 10px; height: 10px; background: #111827; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.nav-tip[hidden] { display: none; }
@keyframes tip-in { from { opacity: 0; margin-left: -4px; } to { opacity: 1; margin-left: 0; } }
.theme-dark .nav-tip, .theme-dark .nav-tip::before { background: #e5e7eb; color: #111827; }
.list-tools-menu a svg.icon { flex: none; margin-top: 2px; color: var(--brand); }
.list-tools > summary.btn { list-style: none; }
.brand-mark.has-img { background: transparent; overflow: hidden; }
.brand-mark.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.login-card .brand-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.login-card .brand-mark.has-img { background: transparent; border-radius: 8px; }
.brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.brand-row .brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.brand-row .brand-mark.has-img { background: #fff; border: 1px solid var(--line); }
.fav-prev { width: 32px; height: 32px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; flex: none; }
.company-checks { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.company-check { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 8px 10px; border-radius: 8px; font-weight: 500 !important; cursor: pointer; }
.company-check:hover { background: var(--brand-tint); }
.company-check input { width: 18px; height: 18px; flex: none; }
.company-check[hidden] { display: none !important; }
.cs-item { display: flex; flex-direction: column; gap: 1px; }
.cs-item .cs-sub { font-size: .78rem; font-weight: 400; color: var(--muted); font-family: var(--mono); }
.cs-item.current::after { display: none; }
.cs-item.current .cs-name::after { content: " (open now)"; font-weight: 500; color: var(--muted); font-size: .85rem; }
.cs-item.cs-all { color: var(--brand); border-bottom: 1px solid var(--line-soft); border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-bottom: 4px; }
.cs-count { padding: 6px 4px 0; font-size: .78rem; color: var(--muted); }
.cs-count[hidden] { display: none; }
.cs-pop[hidden] { display: none; }
.cs-search::-webkit-search-cancel-button { cursor: pointer; }
