/* HZ Tools — styles for the site shortcodes and the app pages. All rules are scoped to .hz-tools. */

.hz-tools {
  /* Same palette as the site's new pages (60Hz home / price list) */
  --hz-ink: #1D1D1F;
  --hz-ink-2: #2C2C2E;
  --hz-ink-3: #3A3A3C;
  --hz-text-2: #424245;
  --hz-muted: #6E6E73;
  --hz-on-dark: #E5E5EA;
  --hz-on-dark-2: #AEAEB2;
  --hz-line: rgba(0, 0, 0, 0.08);
  --hz-line-2: rgba(0, 0, 0, 0.06);
  --hz-field: #D2D2D7;
  --hz-bg: #FBFBFD;
  --hz-card: #FFFFFF;
  --hz-soft: #F2F2F5;
  --hz-warn-soft: #FFF6E5;
  --hz-soft-line: #F5C26B;
  --hz-ok: #1B7F3B;
  --hz-bad: #C4261B;
  --hz-accent: #D92D20;
  --hz-accent-on-dark: #FF6B5E;
  direction: rtl;
  text-align: right;
  color: var(--hz-ink);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.hz-tools *, .hz-tools *::before, .hz-tools *::after { box-sizing: border-box; }
.hz-tools.hz-font-vazir, .hz-font-vazir { font-family: 'HZ Vazirmatn', Vazirmatn, Tahoma, sans-serif; }
.hz-tools h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.6; color: var(--hz-ink); font-family: inherit; }
.hz-tools p { margin: 0; }
.hz-tools a { color: var(--hz-ink); }
.hz-tools [hidden] { display: none !important; }
.hz-tools button, .hz-tools input { font-family: inherit; font-size: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.hz-tools button { cursor: pointer; }
.hz-tools :focus-visible { outline: 3px solid #1765C2; outline-offset: 2px; }
.hz-tools svg { flex-shrink: 0; }
.hz-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* cards */
.hz-tools .hz-card { background: var(--hz-card); border: 1px solid var(--hz-line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.hz-tools .hz-list { padding: 0; gap: 0; overflow: hidden; }
.hz-tools .hz-card-head { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.hz-tools .hz-head-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.hz-tools .hz-sub { font-size: 12px; color: var(--hz-muted); line-height: 1.6; }
.hz-tools .hz-empty { border-style: dashed; border-color: var(--hz-field); color: var(--hz-text-2); font-size: 14px; }

/* form */
.hz-tools .hz-form { gap: 20px; }
.hz-tools .hz-field { display: flex; flex-direction: column; gap: 8px; }
.hz-tools .hz-label { font-size: 14px; font-weight: 700; color: var(--hz-ink); display: block; }
.hz-tools .hz-hint { font-size: 12px; line-height: 1.7; color: var(--hz-muted); }
.hz-tools .hz-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.hz-tools .hz-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--hz-line-2); border-radius: 14px; }
.hz-tools .hz-seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--hz-muted); font-size: 14px; font-weight: 700; padding: 0 8px; box-shadow: none; }
.hz-tools .hz-seg button[aria-pressed="true"] { background: #FFFFFF; color: var(--hz-ink); box-shadow: 0 1px 3px rgba(15, 27, 45, 0.18); }

.hz-tools .hz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hz-tools .hz-chips-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hz-tools .hz-chips-col { flex-direction: column; }
.hz-tools .hz-chip { min-height: 44px; padding: 4px 12px; border-radius: 12px; border: 1.5px solid var(--hz-line); background: #FFFFFF; color: var(--hz-ink); font-size: 13px; font-weight: 700; line-height: 1.5; box-shadow: none; }
.hz-tools .hz-chip[aria-pressed="true"] { border-color: var(--hz-ink); background: var(--hz-ink); color: #FFFFFF; }

.hz-tools .hz-input { display: flex; align-items: center; gap: 8px; min-height: 52px; border: 1.5px solid var(--hz-field); border-radius: 12px; padding: 0 14px; background: #FFFFFF; }
.hz-tools .hz-input:focus-within { border-color: var(--hz-ink); }
.hz-tools .hz-input input { flex: 1; min-width: 0; border: 0 !important; outline: none; box-shadow: none !important; background: transparent !important; font-size: 18px; font-weight: 700; color: var(--hz-ink); padding: 0; height: 48px; }
.hz-tools .hz-input .hz-unit { font-size: 13px; color: var(--hz-muted); white-space: nowrap; }
.hz-tools .hz-search { min-height: 46px; color: var(--hz-muted); }
.hz-tools .hz-search input { font-size: 15px; font-weight: 500; height: 44px; }
.hz-tools .hz-text { width: 100%; min-height: 50px; border: 1.5px solid var(--hz-field); border-radius: 12px; padding: 0 14px; font-size: 15px; color: var(--hz-ink); background: #FFFFFF; }

/* rows */
.hz-tools .hz-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--hz-line-2); color: var(--hz-ink); text-decoration: none; }
.hz-tools .hz-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hz-tools .hz-row-title { font-size: 14px; font-weight: 700; line-height: 1.6; }
.hz-tools .hz-row-title a { text-decoration: underline; text-underline-offset: 3px; }
.hz-tools .hz-price { font-size: 14px; font-weight: 800; white-space: nowrap; }
.hz-tools .hz-row-head { background: #F7F8FA; font-size: 12px; color: var(--hz-muted); padding-top: 8px; padding-bottom: 8px; }
.hz-tools .hz-row-link:hover { background: #F7F8FA; }
.hz-tools .hz-check { cursor: pointer; }
.hz-tools .hz-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--hz-ink); flex-shrink: 0; }
.hz-tools .hz-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px; background: var(--hz-soft); font-size: 14px; font-weight: 700; }
.hz-tools .hz-total b { font-size: 20px; font-weight: 800; }
.hz-tools .hz-total small { font-size: 12px; font-weight: 500; }

.hz-tools .hz-counter { display: flex; align-items: center; gap: 4px; }
.hz-tools .hz-counter input { width: 44px; height: 44px; text-align: center; border: 0; background: transparent; font-size: 17px; font-weight: 800; color: var(--hz-ink); padding: 0; box-shadow: none; }
.hz-tools .hz-icon-btn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 1.5px solid var(--hz-line); background: #FFFFFF; color: var(--hz-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: none; }
.hz-tools .hz-icon-accent { border: 0; background: var(--hz-accent); color: #FFFFFF; }

/* buttons */
.hz-tools .hz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--hz-field); background: #FFFFFF; color: var(--hz-ink); font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.4; box-shadow: none; }
.hz-tools .hz-btn:hover { border-color: var(--hz-ink); }
.hz-tools .hz-btn-primary { min-height: 54px; border: 0; background: var(--hz-accent); color: #FFFFFF; font-size: 16px; font-weight: 800; border-radius: 999px; }
.hz-tools .hz-btn-ghost { border-color: transparent; color: var(--hz-muted); }
.hz-tools .hz-btn-primary:hover { filter: brightness(0.96); }
.hz-tools .hz-btn-dark { border: 0; background: var(--hz-ink); color: #FFFFFF; font-weight: 800; }
.hz-tools .hz-btn-sm { min-height: 40px; padding: 0 12px; font-size: 12px; border-radius: 10px; }
.hz-tools .hz-btn:disabled { opacity: 0.6; cursor: wait; }
.hz-tools .hz-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hz-tools .hz-actions { gap: 10px; }

.hz-tools .hz-msg { padding: 10px 12px; border-radius: 12px; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hz-tools .hz-msg-ok { background: #E3F4EA; color: var(--hz-ok); }
.hz-tools .hz-msg-ok a { color: var(--hz-ok); font-weight: 800; }
.hz-tools .hz-msg-bad { background: #FDE7E5; color: var(--hz-bad); }

/* result */
.hz-tools .hz-result { display: flex; flex-direction: column; gap: 16px; }
.hz-tools .hz-result:empty { display: none; }
.hz-tools .hz-out { background: var(--hz-ink); color: #FFFFFF; border-radius: 24px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.hz-tools .hz-out-label { font-size: 13px; color: var(--hz-on-dark-2); }
.hz-tools .hz-out-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hz-tools .hz-out-big b { font-size: 44px; line-height: 1.1; font-weight: 800; color: #FFFFFF; }
.hz-tools .hz-out-big span, .hz-tools .hz-out-range span { font-size: 14px; color: var(--hz-on-dark-2); }
.hz-tools .hz-out-name { font-size: 14px; font-weight: 500; margin-top: -6px; }
.hz-tools .hz-out-range { display: flex; flex-direction: column; gap: 2px; }
.hz-tools .hz-out-range b { font-size: 30px; line-height: 1.3; font-weight: 800; color: #FFFFFF; }
.hz-tools .hz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hz-tools .hz-stats div { background: var(--hz-ink-2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.hz-tools .hz-stats span, .hz-tools .hz-stats small { font-size: 12px; color: var(--hz-on-dark-2); }
.hz-tools .hz-stats small { font-size: 11px; }
.hz-tools .hz-stats b { font-size: 17px; font-weight: 800; }
.hz-tools .hz-bar { height: 8px; border-radius: 4px; background: var(--hz-ink-3); overflow: hidden; }
.hz-tools .hz-bar i { display: block; height: 8px; border-radius: 4px; background: var(--hz-accent-on-dark); }
.hz-tools .hz-how { border: 1px solid var(--hz-ink-3); border-radius: 12px; }
.hz-tools .hz-how summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.hz-tools .hz-how summary::-webkit-details-marker { display: none; }
.hz-tools .hz-how summary::after { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: -4px; }
.hz-tools .hz-how[open] summary::after { transform: rotate(135deg); margin-top: 4px; }
.hz-tools .hz-how-body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.hz-tools .hz-step { display: flex; flex-direction: column; gap: 4px; }
.hz-tools .hz-step b { font-size: 14px; color: var(--hz-accent-on-dark); }
.hz-tools .hz-step span { font-size: 13px; line-height: 1.8; color: var(--hz-on-dark); }
.hz-tools .hz-step code { font-family: inherit; font-size: 13px; font-weight: 700; text-align: right; padding: 6px 10px; background: var(--hz-ink-2); border-radius: 8px; color: #FFFFFF; }
.hz-tools .hz-fine { font-size: 12px; line-height: 1.8; color: var(--hz-on-dark-2); }
.hz-tools .hz-break { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--hz-ink-3); }
.hz-tools .hz-break div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hz-tools .hz-break span { color: var(--hz-on-dark); }

.hz-tools .hz-tip { background: var(--hz-warn-soft); border: 1.5px solid var(--hz-soft-line); }
.hz-tools .hz-tip-head { display: flex; align-items: center; gap: 8px; }
.hz-tools .hz-tip p { font-size: 13px; line-height: 1.8; }
.hz-tools .hz-row-card { flex-direction: row; align-items: center; gap: 10px; }
.hz-tools .hz-row-card p { flex: 1; font-size: 13px; line-height: 1.8; }

.hz-tools .hz-cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hz-tools .hz-cmp-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--hz-line); background: #FFFFFF; color: var(--hz-ink); text-align: right; box-shadow: none; }
.hz-tools .hz-cmp-item[aria-pressed="true"] { border: 2px solid var(--hz-ink); background: var(--hz-soft); }
.hz-tools .hz-cmp-item span { font-size: 13px; font-weight: 700; }
.hz-tools .hz-cmp-item b { font-size: 20px; font-weight: 800; }
.hz-tools .hz-cmp-item small { font-size: 12px; }

/* files */
.hz-tools .hz-badge { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--hz-line-2); color: var(--hz-text-2); }
.hz-tools .hz-badge-pdf { background: #FDE7E5; color: var(--hz-bad); }
.hz-tools .hz-badge-xls { background: #E3F4EA; color: var(--hz-ok); }
.hz-tools .hz-more summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; border-top: 1px solid var(--hz-line-2); background: #F7F8FA; font-size: 14px; font-weight: 700; cursor: pointer; }

/* tool cards */
.hz-tools .hz-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hz-tools .hz-tool-card { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background: #FFFFFF; border: 1px solid var(--hz-line); border-radius: 16px; text-decoration: none; color: var(--hz-ink); }
.hz-tools .hz-tool-card:first-child { background: var(--hz-ink); color: #FFFFFF; border-color: var(--hz-ink); }
.hz-tools .hz-tool-card:first-child .hz-sub { color: var(--hz-on-dark-2); }
.hz-tools .hz-tool-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--hz-soft); color: var(--hz-ink); display: inline-flex; align-items: center; justify-content: center; }
.hz-tools .hz-tool-card:first-child .hz-tool-icon { background: var(--hz-accent); }

@media (max-width: 420px) {
  .hz-tools .hz-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hz-tools .hz-out-big b { font-size: 38px; }
}

/* app pages */
.hz-app-body { margin: 0; background: #F2F4F7; color: #0F1B2D; font-family: 'HZ Vazirmatn', Vazirmatn, Tahoma, sans-serif; -webkit-text-size-adjust: 100%; }
.hz-app-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); font-family: inherit; background: #0F1B2D; color: #FFFFFF; }
.hz-app-bar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; }
.hz-app-back { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #FFFFFF; }
.hz-app-dot { width: 10px; height: 10px; border-radius: 50%; }
.hz-app-main { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.hz-app-main .hz-tools { margin-bottom: 16px; }


/* ---------- home, tiles and sections ---------- */
.hz-app-main { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.hz-site-home { background: #FBFBFD; margin: 0; font-family: 'HZ Vazirmatn', Vazirmatn, dana, Tahoma, sans-serif; }
.hz-tools .hz-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; padding: 6px 0 4px; }
.hz-tools .hz-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none !important; color: var(--hz-ink) !important; }
.hz-tools .hz-tile-ic { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10); }
.hz-tools .hz-tile-t { display: flex; flex-direction: column; gap: 2px; }
.hz-tools .hz-tile-t b { font-size: 13px; font-weight: 700; line-height: 1.55; }
.hz-tools .hz-tile-t small { font-size: 12px; color: var(--hz-muted); font-weight: 400; }
.hz-tools .hz-tile-wide { flex-direction: row; text-align: right; gap: 14px; padding: 14px; background: var(--hz-card); border: 1px solid var(--hz-line); border-radius: 20px; }
.hz-tools .hz-tile-wide .hz-tile-ic { width: 52px; height: 52px; border-radius: 16px; box-shadow: none; }
.hz-tools .hz-tile-wide .hz-tile-t b { font-size: 15px; }
.hz-tools .hz-list-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.hz-tools .hz-lead { font-size: 14px; line-height: 1.9; color: var(--hz-text-2); }
.hz-tools .hz-banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px; border-radius: 20px; background: var(--hz-ink); color: #FFFFFF !important; text-decoration: none !important; }
.hz-tools .hz-banner .hz-tile-ic { width: 48px; height: 48px; border-radius: 14px; box-shadow: none; }
.hz-tools .hz-banner b { font-size: 15px; }
.hz-tools .hz-banner small { display: block; font-size: 12px; color: var(--hz-on-dark-2); line-height: 1.7; }
.hz-tools .hz-sec { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.hz-tools .hz-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hz-tools .hz-sec-head h3 { font-size: 18px; }
.hz-tools .hz-sec-head a { font-size: 13px; font-weight: 700; color: var(--hz-accent) !important; text-decoration: none; padding: 8px 0; }
.hz-tools .hz-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 88px; grid-template-rows: repeat(2, auto); gap: 12px 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hz-tools .hz-cats::-webkit-scrollbar { display: none; }
.hz-tools .hz-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--hz-ink) !important; text-decoration: none !important; }
.hz-tools .hz-cat-img { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; background: var(--hz-soft); display: flex; align-items: center; justify-content: center; }
.hz-tools .hz-cat-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-tools .hz-cat-img b { color: #FFFFFF; font-size: 22px; font-weight: 800; }
.hz-tools .hz-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .hz-tools .hz-products { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hz-tools .hz-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hz-tools .hz-product { display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #FFFFFF; border: 1px solid var(--hz-line); border-radius: 20px; text-decoration: none !important; color: var(--hz-ink) !important; }
.hz-tools .hz-product-img { display: block; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--hz-soft); }
.hz-tools .hz-product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hz-tools .hz-product .hz-row-title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hz-tools .hz-product small { font-size: 11px; font-weight: 500; color: var(--hz-muted); }
.hz-tools .hz-more-sentinel { height: 1px; }
.hz-full-site { text-align: center; margin: 20px 0 8px; font-size: 13px; }
.hz-full-site a { color: #6E6E73; }
.hz-tools .hz-app-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
.hz-tools .hz-app-card img { border-radius: 16px; }
.hz-tools .hz-app-card .hz-btn { flex: 1 1 100%; }

/* labor groups */
.hz-tools .hz-group { border-top: 1px solid var(--hz-line-2); }
.hz-tools .hz-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 14px; cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; }
.hz-tools .hz-group summary::-webkit-details-marker { display: none; }
.hz-tools .hz-group summary small { font-size: 12px; font-weight: 700; color: var(--hz-accent); margin-inline-start: auto; }
.hz-tools .hz-group summary::after { content: ''; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-top: -4px; }
.hz-tools .hz-group[open] summary::after { transform: rotate(135deg); margin-top: 4px; }

/* ---------- pre-invoice ---------- */
.hz-tools .hz-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hz-tools .hz-q-head { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.hz-tools .hz-q-co-row { display: flex; align-items: center; gap: 12px; }
.hz-tools .hz-q-co-row b { font-size: 18px; }
.hz-tools .hz-q-co-row small { display: block; font-size: 12px; color: var(--hz-muted); }
.hz-tools .hz-q-logo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hz-tools .hz-q-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; border: 1px solid var(--hz-line); background: #FFFFFF; }
.hz-tools .hz-q-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hz-text-2); cursor: pointer; }
.hz-tools .hz-q-toggle input { width: 20px; height: 20px; accent-color: var(--hz-ink); }
.hz-tools .hz-q-item { padding: 12px 14px; border-top: 1px solid var(--hz-line-2); display: flex; flex-direction: column; gap: 8px; }
.hz-tools .hz-q-item-top { display: flex; align-items: flex-start; gap: 8px; }
.hz-tools .hz-q-x { width: 40px; height: 40px; border-color: transparent; color: var(--hz-muted); }
.hz-tools .hz-q-item-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hz-tools .hz-q-price { display: flex; flex-direction: column; align-items: flex-start; margin-inline-start: auto; font-size: 14px; font-weight: 700; }
.hz-tools .hz-q-price small { font-size: 11px; font-weight: 400; color: var(--hz-muted); }
.hz-tools .hz-q-price input { width: 120px; height: 40px; border: 1.5px solid var(--hz-field); border-radius: 10px; padding: 0 10px; font: inherit; font-weight: 700; color: var(--hz-ink); }
.hz-tools .hz-q-total { min-width: 96px; text-align: left; font-size: 15px; }
.hz-tools .hz-q-results { display: flex; flex-direction: column; gap: 6px; }
.hz-tools .hz-q-res { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 10px; border: 1px solid var(--hz-line); border-radius: 14px; background: #FFFFFF; color: var(--hz-ink); text-align: right; font: inherit; cursor: pointer; }
.hz-tools .hz-q-res img, .hz-tools .hz-q-noimg { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--hz-soft); flex-shrink: 0; }
.hz-tools .hz-q-res.is-added { border-color: var(--hz-ok); color: var(--hz-ok); }
.hz-tools .hz-q-sum { gap: 8px; }
.hz-tools .hz-q-sum-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.hz-tools .hz-q-small { width: 140px; min-height: 42px; }
.hz-tools .hz-q-grand { padding-top: 10px; border-top: 1px solid var(--hz-line); font-weight: 800; }
.hz-tools .hz-q-grand b { font-size: 22px; }
.hz-tools .hz-q-grand small { font-size: 12px; font-weight: 500; }
.hz-tools .hz-q-note { min-height: 84px; padding: 10px 14px; line-height: 1.8; resize: vertical; }
.hz-tools.hz-quote .hz-seg { margin-bottom: 0; }

/* ---------- library, drawings and requests ---------- */
.hz-tools .hz-lib-title { margin: 0; font-size: 20px; }
.hz-tools .hz-doc { gap: 8px; padding-bottom: 6px; }
.hz-tools .hz-doc-head { display: flex; gap: 12px; align-items: flex-start; }
.hz-tools .hz-doc-head h3 { font-size: 16px; }
.hz-tools .hz-doc-img img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; display: block; }
.hz-tools .hz-doc-more summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--hz-accent); min-height: 36px; display: flex; align-items: center; }
.hz-tools .hz-doc-body { font-size: 14px; line-height: 1.9; color: var(--hz-text-2); }
.hz-tools .hz-part { padding: 10px 0; margin: 0; border-top: 1px solid var(--hz-line-2); }
.hz-tools .hz-badge-free { background: #E3F4EA; color: var(--hz-ok); }
.hz-tools .hz-badge-paid { background: #FDECEA; color: var(--hz-bad); }
.hz-tools .hz-badge-sub { background: #EEE9FF; color: #5B4FE0; }
.hz-tools .hz-btn-accent { border: 0; background: var(--hz-accent); color: #FFFFFF; }
.hz-tools .hz-btn-dark { border: 0; background: var(--hz-ink); color: #FFFFFF !important; }
.hz-tools .hz-design-intro h2 { margin: 0; font-size: 20px; }
.hz-tools .hz-req-radio { flex-direction: column; }
.hz-tools .hz-req-radio label, .hz-tools .hz-check-inline { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--hz-line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.hz-tools .hz-req-radio input, .hz-tools .hz-check-inline input { width: 20px; height: 20px; accent-color: var(--hz-ink); margin: 0; }
.hz-tools .hz-req-opts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hz-tools .hz-req-opts legend { margin-bottom: 8px; }
.hz-tools select.hz-text { appearance: auto; }
.hz-tools .hz-file { padding: 10px 14px; min-height: 52px; }
.hz-tools .hz-req-card { gap: 8px; }
.hz-tools .hz-status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--hz-soft); color: var(--hz-text-2); }
.hz-tools .hz-status-quoted, .hz-tools .hz-status-ready { background: #FFF6E5; color: #8A5300; }
.hz-tools .hz-status-progress { background: #E8F0FF; color: #1F4FC2; }
.hz-tools .hz-status-done { background: #E3F4EA; color: var(--hz-ok); }
.hz-tools .hz-status-rejected, .hz-tools .hz-status-canceled { background: #FDECEA; color: var(--hz-bad); }
.hz-tools .hz-tools { max-width: none; margin: 0; }
