/*!
 * Amiran Steel Calculator — styles.
 * Everything is scoped under .asc (and prefixed asc-) so the theme / Elementor cannot leak in, and we cannot leak out.
 * Sizes are in px on purpose: some themes set html{font-size:62.5%}.
 */

/* ------------------------------------------------------------------ tokens */
.asc {
  --asc-ink: #1b2430;
  --asc-ink-2: #2f3b4a;
  --asc-muted: #4f6376;
  --asc-dim: #5b7083;
  --asc-sheet: #eef1f4;
  --asc-paper: #ffffff;
  --asc-grid: #e1e6eb;
  --asc-line: #c5ced7;
  --asc-line-soft: #dde3e9;
  --asc-accent: #f83109;
  --asc-accent-deep: #d12a04;
  --asc-accent-hover: #b52303;
  --asc-accent-tint: #feece6;
  --asc-ok: #1a7352;
  --asc-ok-tint: #e3f3eb;
  --asc-warn: #85560f;
  --asc-warn-tint: #fbf0da;
  --asc-err: #b42318;
  --asc-err-tint: #fdebe8;
  --asc-radius: 4px;
  --asc-font: var(--mainfont, var(--asc-body-font, "IRANSansnum", IRANSans, Vazirmatn, Tahoma, "Segoe UI", sans-serif));
  --asc-focus: 0 0 0 2px #fff, 0 0 0 4px var(--asc-ink);
}

.asc,
.asc.asc *,
.asc.asc *::before,
.asc.asc *::after { box-sizing: border-box; }

.asc {
  position: relative;
  direction: rtl;
  text-align: right;
  font-family: var(--asc-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--asc-ink);
  background: var(--asc-sheet);
  border: 1px solid var(--asc-line);
  border-radius: 8px;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  /* a theme or an Elementor "pre"/code block around the shortcode must not leak into the calculator (monospace, no wrapping, odd spacing) */
  white-space: normal; text-indent: 0; text-transform: none; letter-spacing: normal; word-spacing: normal; font-style: normal; font-weight: 400; text-shadow: none; tab-size: 4;
}
.asc.asc p, .asc.asc li, .asc.asc small, .asc.asc span, .asc.asc label, .asc.asc summary, .asc.asc dd, .asc.asc dt { overflow-wrap: break-word; }
.asc.asc [hidden] { display: none !important; }
.asc.asc button,
.asc.asc input,
.asc.asc select,
.asc.asc textarea { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.asc.asc :focus { outline: none; }
.asc.asc :focus-visible { outline: none; box-shadow: var(--asc-focus); }
.asc.asc .asc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.asc.asc svg.asc-ico { width: 20px; height: 20px; flex: none; display: block; }
.asc.asc .asc-num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ dimensioned drawing */
.asc.asc .asc-draw { display: block; width: 100%; height: auto; max-height: 300px; color: var(--asc-dim); overflow: visible; }
.asc.asc .asc-sec-bg { fill: #fff; stroke: none; }
.asc.asc .asc-sec { fill: none; stroke: var(--asc-ink); stroke-width: 1.8; stroke-linejoin: round; }
.asc.asc .asc-hatch-l { stroke: var(--asc-dim); stroke-opacity: .5; stroke-width: 1; }
.asc.asc .asc-ext { fill: none; stroke: currentColor; stroke-width: .8; }
.asc.asc .asc-dl { fill: none; stroke: currentColor; stroke-width: 1.1; }
.asc.asc .asc-dim { color: var(--asc-dim); }
.asc.asc .asc-dim.is-derived { opacity: .78; }
.asc.asc .asc-dim.is-derived .asc-dl { stroke-dasharray: 4 3; }
.asc.asc .asc-dim-t { font-size: 12.5px; fill: var(--asc-ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; font-weight: 600; }
.asc.asc .asc-dim-s { fill: currentColor; font-weight: 700; font-size: 11.5px; }
.asc.asc .asc-dim.is-on { color: var(--asc-accent); }
.asc.asc .asc-dim.is-on .asc-dl { stroke-width: 2; }
.asc.asc .asc-dim.is-on .asc-dim-s { fill: var(--asc-accent-deep); }
.asc.asc .asc-dim.is-unknown { color: var(--asc-accent); }
.asc.asc .asc-dim.is-unknown .asc-dl { stroke-dasharray: 3 3; }
.asc.asc .asc-note { font-size: 11px; fill: var(--asc-muted); }
.asc.asc .asc-detail .asc-sec { stroke-width: 1.4; }

/* ------------------------------------------------------------------ shell */
@supports (overflow: clip) { .asc { overflow: clip; } }
.asc { --asc-field-line: #7b8b9b; }

.asc.asc .asc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--asc-ink); color: #fff; padding: 14px 22px; }
.asc.asc .asc-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.asc.asc .asc-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--asc-accent-deep); color: #fff; border-radius: 4px; }
.asc.asc .asc-mark svg { width: 26px; height: 26px; }
.asc.asc .asc-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; color: #fff; letter-spacing: 0; }
.asc.asc .asc-by { margin: 0; font-size: 13px; color: #b3c0cd; line-height: 1.4; }
.asc.asc .asc-head-actions { display: flex; gap: 8px; }
.asc.asc .asc-head :focus-visible { box-shadow: 0 0 0 2px var(--asc-ink), 0 0 0 4px #fff; }

/* buttons */
.asc.asc .asc-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--asc-radius); background: none; font-size: 14.5px; font-weight: 700; line-height: 1.25; cursor: pointer; text-decoration: none; transition: background-color .12s, border-color .12s, color .12s; }
.asc.asc .asc-btn--primary { background: var(--asc-accent-deep); color: #fff; }
.asc.asc .asc-btn--primary:hover { background: var(--asc-accent-hover); }
.asc.asc .asc-btn--soft { background: #fff; border-color: var(--asc-field-line); color: var(--asc-ink); }
.asc.asc .asc-btn--soft:hover { background: var(--asc-sheet); border-color: var(--asc-ink); }
.asc.asc .asc-btn--ghost { color: inherit; border-color: var(--asc-line); }
.asc.asc .asc-head .asc-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .3); min-height: 38px; padding: 0 12px; font-weight: 600; }
.asc.asc .asc-head .asc-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.asc.asc .asc-btn--danger { color: var(--asc-err); }
.asc.asc .asc-btn--sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.asc.asc .asc-iconbtn { appearance: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--asc-radius); background: none; color: var(--asc-muted); cursor: pointer; }
.asc.asc .asc-iconbtn:hover { background: var(--asc-sheet); color: var(--asc-ink); }
.asc.asc .asc-link { appearance: none; border: 0; background: none; padding: 2px 0; color: var(--asc-accent-deep); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.asc.asc .asc-link:hover { color: var(--asc-accent-hover); }

/* tabs */
.asc.asc .asc-tabs { display: flex; gap: 2px; padding: 0 14px; background: var(--asc-paper); border-bottom: 1px solid var(--asc-line); overflow-x: auto; scrollbar-width: none; }
.asc.asc .asc-tabs::-webkit-scrollbar { display: none; }
.asc.asc .asc-tab { appearance: none; position: relative; flex: none; padding: 15px 16px 13px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--asc-muted); cursor: pointer; white-space: nowrap; }
.asc.asc .asc-tab:hover { color: var(--asc-ink); }
.asc.asc .asc-tab.is-on { color: var(--asc-ink); }
.asc.asc .asc-tab.is-on::after { content: ''; position: absolute; inset-inline: 10px; bottom: 0; height: 3px; background: var(--asc-accent); border-radius: 3px 3px 0 0; }

/* tab driven visibility */
.asc:not([data-tab="calc"]) .asc-only-calc { display: none !important; }
.asc:not([data-tab="inverse"]) .asc-only-inverse { display: none !important; }
.asc[data-tab="compare"] .asc-shared, .asc[data-tab="compare"] .asc-aside { display: none; }
.asc:not([data-tab="compare"]) .asc-compare { display: none; }

/* main grid */
.asc.asc .asc-main { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--asc-paper); }
.asc[data-tab="compare"] .asc-main { grid-template-columns: minmax(0, 1fr); }
.asc.asc .asc-work { padding: 20px 16px 8px; min-width: 0; }
.asc.asc .asc-aside { padding: 20px 16px 24px; background: var(--asc-sheet); border-top: 1px solid var(--asc-line); min-width: 0; }
  .asc.asc-ge-940 .asc-main { grid-template-columns: minmax(0, 1fr) 372px; }
  .asc.asc-ge-940[data-tab="compare"] .asc-main { grid-template-columns: minmax(0, 1fr); }
  .asc.asc-ge-940 .asc-work { padding: 24px 26px 12px; }
  .asc.asc-ge-940 .asc-aside { padding: 24px 22px; border-top: 0; border-inline-start: 1px solid var(--asc-line); }
  .asc.asc-ge-940 .asc-aside-in { position: sticky; top: 16px; }


/* ------------------------------------------------------------------ shapes picker */
.asc.asc .asc-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin: 0 0 12px; }
.asc.asc .asc-shape { appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 9px 2px 8px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fff; color: var(--asc-ink); font-size: 12px; font-weight: 600; line-height: 1.35; cursor: pointer; transition: background-color .12s, border-color .12s; }
.asc.asc .asc-shape svg.asc-ico { width: 30px; height: 30px; }
.asc.asc .asc-shape:hover:not(:disabled) { border-color: var(--asc-ink); }
.asc.asc .asc-shape.is-on { background: var(--asc-ink); border-color: var(--asc-ink); color: #fff; }
.asc.asc .asc-shape.is-on::after { content: ''; position: absolute; top: 0; inset-inline-end: 0; width: 0; height: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--asc-accent) transparent transparent; }
[dir="rtl"]  .asc.asc .asc-shape.is-on::after { border-width: 0 10px 10px 0; }
.asc.asc .asc-shape:disabled { opacity: .38; cursor: not-allowed; }
.asc.asc .asc-shape-l { text-align: center; }
  .asc.asc-ge-720 .asc-shapes { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .asc.asc-ge-720 .asc-shape { font-size: 13px; padding: 10px 4px 9px; }
  .asc.asc-ge-720 .asc-shape svg.asc-ico { width: 32px; height: 32px; }


/* ------------------------------------------------------------------ drawing canvas */
.asc.asc .asc-canvas { margin: 0 0 16px; padding: 10px 12px 6px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background-color: #fff;
  background-image: linear-gradient(var(--asc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--asc-grid) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; }
.asc.asc .asc-draw-wrap { max-width: 460px; margin-inline: auto; }
.asc.asc .asc-draw-note { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--asc-muted); background: rgba(255, 255, 255, .85); }

/* ------------------------------------------------------------------ catalog picker */
.asc.asc .asc-catpick { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--asc-field-line); border-radius: var(--asc-radius); background: #fafbfc; }
.asc.asc .asc-catpick-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--asc-ink-2); }
.asc.asc .asc-catpick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
 .asc.asc-lt-520 .asc-catpick-row { grid-template-columns: 1fr; } 


/* ------------------------------------------------------------------ fields */
.asc.asc .asc-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 16px; }
.asc.asc .asc-fields--adv { margin-top: 12px; }
.asc.asc .asc-field { min-width: 0; }
.asc.asc .asc-field--wide { grid-column: 1 / -1; }
.asc.asc .asc-lab { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--asc-ink-2); line-height: 1.3; }
.asc.asc .asc-sym { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px; border: 1px solid var(--asc-line); border-radius: 4px; background: var(--asc-sheet); color: var(--asc-ink); font-size: 12px; font-weight: 800; direction: ltr; transition: background-color .12s, color .12s; }
.asc.asc .asc-field:focus-within .asc-sym,  .asc.asc .asc-field:hover .asc-sym { background: var(--asc-accent-deep); border-color: transparent; color: #fff; }
.asc.asc .asc-opt { margin-inline-start: auto; font-size: 12px; font-weight: 500; color: var(--asc-muted); }
.asc.asc .asc-ig { display: flex; height: 46px; border: 1px solid var(--asc-field-line); border-radius: var(--asc-radius); background: #fff; transition: border-color .12s, box-shadow .12s; }
.asc.asc .asc-ig:focus-within { border-color: var(--asc-ink); box-shadow: var(--asc-focus); }
.asc.asc .asc-field.has-error .asc-ig { border-color: var(--asc-err); background: var(--asc-err-tint); }
.asc.asc .asc-field.is-unknown .asc-ig { border-style: dashed; border-color: var(--asc-accent-deep); background: var(--asc-accent-tint); }
.asc.asc .asc-in { appearance: none; flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 12px; border: 0; border-radius: var(--asc-radius); background: transparent; color: var(--asc-ink); font-size: 17px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; box-shadow: none; }
.asc.asc .asc-in::placeholder { color: #6b7c8d; font-weight: 500; }
.asc.asc .asc-in:focus-visible { box-shadow: none; }
.asc.asc .asc-in:disabled { cursor: not-allowed; }
.asc.asc .asc-unit { appearance: none; flex: none; width: 66px; border: 0; border-inline-start: 1px solid var(--asc-line); border-radius: 0; background: var(--asc-sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%234f6376' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat left 8px center; padding: 0 6px 0 22px; font-size: 13px; font-weight: 700; color: var(--asc-ink-2); cursor: pointer; direction: ltr; text-align: left; }
.asc.asc .asc-unit--static { display: grid; place-items: center; background-image: none; padding: 0 8px; width: auto; min-width: 54px; cursor: default; white-space: nowrap; }
.asc.asc .asc-unit:focus-visible { box-shadow: none; background-color: #e3e9ef; }
.asc.asc .asc-sel { appearance: none; width: 100%; height: 46px; padding: 0 12px 0 34px; border: 1px solid var(--asc-field-line); border-radius: var(--asc-radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231b2430' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat left 12px center; font-size: 15px; font-weight: 600; color: var(--asc-ink); cursor: pointer; text-overflow: ellipsis; }
.asc.asc .asc-sel:focus-visible { border-color: var(--asc-ink); }
.asc.asc .asc-err { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: var(--asc-err); }
.asc.asc .asc-err:empty { display: none; }
.asc.asc .asc-adv { margin-top: 12px; }
.asc.asc .asc-adv > summary,  .asc.asc .asc-fold > summary { display: flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--asc-ink-2); padding: 8px 0; }
.asc.asc summary::-webkit-details-marker { display: none; }
.asc.asc summary svg.asc-ico { transition: transform .15s; }
.asc.asc details[open] > summary svg.asc-ico { transform: rotate(180deg); }
.asc.asc .asc-adv > summary { font-size: 13.5px; font-weight: 600; color: var(--asc-muted); }

/* ------------------------------------------------------------------ title block (material, density, quantity) */
.asc.asc .asc-tblock { display: grid; grid-template-columns: 1.35fr 1.1fr .9fr; margin: 18px 0 6px; border: 1.5px solid var(--asc-ink); border-radius: var(--asc-radius); background: #fff; }
.asc.asc .asc-tcell { padding: 10px 14px 12px; min-width: 0; }
.asc.asc .asc-tcell + .asc-tcell { border-inline-start: 1.5px solid var(--asc-ink); }
.asc.asc .asc-tl { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--asc-muted); }
.asc.asc .asc-tu { direction: ltr; font-weight: 700; }
.asc.asc .asc-sel--plain { height: 40px; padding-inline-start: 28px; border: 0; border-bottom: 1px solid var(--asc-line); border-radius: 0; background-position: left 2px center; padding-inline-end: 0; font-size: 17px; font-weight: 800; }
.asc.asc .asc-in--cell { height: 40px; padding: 0; border-bottom: 1px solid var(--asc-line); border-radius: 0; font-size: 20px; font-weight: 800; }
.asc.asc .asc-in--cell:focus-visible { border-bottom-color: var(--asc-ink); box-shadow: 0 2px 0 0 var(--asc-ink); }
.asc.asc .asc-in--sm { font-size: 15px; height: 34px; border: 1px solid var(--asc-field-line); border-radius: 4px; text-align: center; width: 70px; padding: 0 6px; }
.asc.asc .asc-meta { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--asc-muted); }
.asc.asc .asc-meta:empty { display: none; }
.asc.asc .asc-meta.is-ok { color: var(--asc-ok); }
.asc.asc .asc-meta.is-warn { color: var(--asc-warn); }
.asc.asc .asc-seg { display: inline-flex; margin-top: 8px; border: 1px solid var(--asc-field-line); border-radius: 4px; overflow: hidden; }
.asc.asc .asc-seg-b { appearance: none; border: 0; background: #fff; padding: 4px 10px; font-size: 12.5px; font-weight: 700; color: var(--asc-ink-2); cursor: pointer; }
.asc.asc .asc-seg-b + .asc-seg-b { border-inline-start: 1px solid var(--asc-field-line); }
.asc.asc .asc-seg-b.is-on { background: var(--asc-ink); color: #fff; }
.asc.asc .asc-seg-b.is-na:not(.is-on) { color: #6b7c8d; }
.asc.asc .asc-seg-b:focus-visible { box-shadow: inset 0 0 0 2px var(--asc-ink); }
.asc.asc .asc-stepper { display: flex; align-items: center; gap: 4px; }
.asc.asc .asc-step { appearance: none; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--asc-field-line); border-radius: 4px; background: #fff; color: var(--asc-ink); cursor: pointer; }
.asc.asc .asc-step:hover { background: var(--asc-sheet); }
.asc.asc .asc-step svg.asc-ico { width: 16px; height: 16px; }
.asc.asc .asc-in--qty { text-align: center; min-width: 0; }


/* ------------------------------------------------------------------ inverse mode bar + target */
.asc.asc .asc-mode { display: flex; gap: 0; margin: 0 0 16px; border: 1.5px solid var(--asc-ink); border-radius: var(--asc-radius); overflow-x: auto; background: #fff; }
.asc.asc .asc-mode-b { appearance: none; flex: 1 0 auto; padding: 11px 14px; border: 0; background: none; font-size: 14.5px; font-weight: 700; color: var(--asc-ink-2); cursor: pointer; white-space: nowrap; }
.asc.asc .asc-mode-b + .asc-mode-b { border-inline-start: 1px solid var(--asc-line); }
.asc.asc .asc-mode-b.is-on { background: var(--asc-ink); color: #fff; }
.asc.asc .asc-mode-b:focus-visible { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px var(--asc-ink); }
.asc.asc .asc-target { margin: 16px 0 4px; padding: 14px 16px 16px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fafbfc; }
.asc.asc .asc-target .asc-field + .asc-field,  .asc.asc .asc-target .asc-fields { margin-top: 12px; }
.asc.asc .asc-lede { margin: 0 0 4px; font-size: 14.5px; line-height: 1.7; color: var(--asc-ink-2); }

/* ------------------------------------------------------------------ folds (pricing, steps) */
.asc.asc .asc-fold { margin-top: 14px; border-top: 1px solid var(--asc-line); padding-top: 4px; }
.asc.asc .asc-fold > summary { font-size: 15.5px; }
.asc.asc .asc-badge { display: inline-block; margin-inline-start: auto; padding: 1px 10px; border-radius: 12px; background: var(--asc-ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.asc.asc .asc-price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 16px; margin: 6px 0 4px; }
.asc.asc .asc-price-res { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fafbfc; }
.asc.asc .asc-price-rows { list-style: none; margin: 0; padding: 0; }
.asc.asc .asc-price-rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(40px, 1fr) auto; align-items: center; gap: 12px; padding: 5px 0; font-size: 14px; }
.asc.asc .asc-pr-bar { height: 6px; background: var(--asc-line-soft); border-radius: 3px; overflow: hidden; }
.asc.asc .asc-pr-bar i { display: block; height: 100%; background: var(--asc-ink-2); border-radius: 3px; }
.asc.asc .asc-price-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1.5px solid var(--asc-ink); font-weight: 700; }
.asc.asc .asc-price-total b { font-size: 22px; font-weight: 800; }
.asc.asc .asc-price-total small { font-size: 13px; font-weight: 600; color: var(--asc-muted); }
.asc.asc .asc-price-sub { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.asc.asc .asc-errlist { margin: 0; padding-inline-start: 18px; color: var(--asc-err); font-size: 13.5px; }
.asc.asc .asc-steps { margin: 6px 0 12px; padding: 0; list-style: none; counter-reset: s; border-inline-start: 2px solid var(--asc-line); }
.asc.asc .asc-steps li { position: relative; padding: 5px 14px; font-size: 14px; line-height: 1.7; color: var(--asc-ink-2); font-variant-numeric: tabular-nums; }
.asc.asc .asc-steps li:last-child { color: var(--asc-ink); font-weight: 700; }

/* ------------------------------------------------------------------ the result tag */
.asc.asc .asc-tag { --cut: 26px; position: relative; background: var(--asc-ink); padding: 2px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut)); }
.asc.asc .asc-tag-in { position: relative; background: #fff; padding: 40px 20px 18px; clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, 0 100%, 0 calc(var(--cut) - 1px)); }
.asc.asc .asc-hole { position: absolute; top: 11px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: var(--asc-sheet); box-shadow: inset 0 0 0 2px var(--asc-ink); }
.asc.asc .asc-tag-title { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 800; color: var(--asc-ink); overflow-wrap: anywhere; }
.asc.asc .asc-tag-sub { margin: 0; font-size: 13px; color: var(--asc-muted); }
.asc.asc .asc-tag-sub[hidden] { display: none; }
.asc.asc .asc-tag-cells { display: grid; grid-template-columns: 1.4fr 1fr .7fr; margin: 12px 0 4px; border-block: 1px solid var(--asc-line); }
.asc.asc .asc-cell { display: flex; flex-direction: column; padding: 6px 8px; min-width: 0; }
.asc.asc .asc-cell + .asc-cell { border-inline-start: 1px solid var(--asc-line); }
.asc.asc .asc-cell span { font-size: 11.5px; color: var(--asc-muted); }
.asc.asc .asc-cell b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.asc.asc .asc-fig { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-height: 78px; margin: 14px 0 2px; padding-inline-end: 0; }
.asc.asc .asc-fig-n { font-size: clamp(42px, 8vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; color: var(--asc-ink); }
.asc.asc .asc-fig-u { font-size: 17px; font-weight: 700; color: var(--asc-muted); }
.asc.asc .asc-tag.is-wait .asc-fig-n { color: #b4bfca; }
.asc.asc .asc-ton { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--asc-muted); }
.asc.asc .asc-ton:empty { display: none; }
.asc.asc .asc-wait { margin: 10px 0 4px; padding: 10px 12px; border-radius: 4px; background: var(--asc-sheet); color: var(--asc-ink-2); font-size: 14px; line-height: 1.7; }
.asc.asc .asc-tag.is-refused .asc-wait { background: var(--asc-warn-tint); color: var(--asc-warn); }
.asc.asc .asc-wait[hidden] { display: none; }
.asc.asc .asc-hint { margin: 8px 0 0; padding: 8px 10px; border-radius: 4px; background: var(--asc-sheet); font-size: 13px; line-height: 1.7; color: var(--asc-ink-2); }
.asc.asc .asc-rows { list-style: none; margin: 10px 0 0; padding: 0; }
.asc.asc .asc-rows li { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; font-size: 14px; }
.asc.asc .asc-rows li > span { color: var(--asc-ink-2); }
.asc.asc .asc-rows b { font-weight: 800; text-align: left; direction: ltr; }
.asc.asc .asc-rows small { font-size: 12px; font-weight: 600; color: var(--asc-muted); }
.asc.asc .asc-lead { flex: 1; min-width: 12px; border-bottom: 1px dotted #8e9cab; transform: translateY(-3px); }
.asc.asc .asc-warns { list-style: none; margin: 10px 0 0; padding: 0; }
.asc.asc .asc-warns:empty { display: none; }
.asc.asc .asc-warns li { display: flex; gap: 8px; align-items: flex-start; margin-top: 6px; padding: 8px 10px; border-radius: 4px; background: var(--asc-warn-tint); color: var(--asc-warn); font-size: 13px; line-height: 1.6; }
.asc.asc .asc-warns svg.asc-ico { width: 18px; height: 18px; margin-top: 2px; }
.asc.asc .asc-tag-actions { display: grid; gap: 8px; margin-top: 16px; }
.asc.asc .asc-tag-actions:empty { display: none; }
.asc.asc .asc-tag-actions-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asc.asc .asc-tag-actions .asc-btn { width: 100%; padding: 0 10px; }

/* rubber stamp: the one place the brand red is allowed to shout */
.asc.asc .asc-stamp { appearance: none; position: absolute; top: 50%; margin-top: -37px; inset-inline-end: auto; left: 2px; display: grid; place-content: center; width: 74px; height: 74px; padding: 0; border: 3px solid var(--asc-accent); border-radius: 50%; background: transparent; color: var(--asc-accent-deep); font-size: 15px; font-weight: 800; line-height: 1.25; text-align: center; transform: rotate(-9deg); mix-blend-mode: multiply; cursor: help; }
.asc.asc .asc-stamp::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--asc-accent); border-radius: 50%; opacity: .8; }
.asc.asc .asc-stamp:focus-visible { box-shadow: var(--asc-focus); filter: none !important; }
.asc.asc .asc-tag.is-wait .asc-stamp,  .asc.asc .asc-tag--inv .asc-stamp { display: none; }

/* inverse extras */
.asc.asc .asc-inv-extra:empty { display: none; }
.asc.asc .asc-inv-extra { margin-top: 12px; }
.asc.asc .asc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.asc.asc .asc-chip { appearance: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--asc-field-line); border-radius: 16px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--asc-ink); cursor: pointer; }
.asc.asc .asc-chip small { font-weight: 600; color: var(--asc-muted); }
.asc.asc .asc-chip.is-on { background: var(--asc-ink); border-color: var(--asc-ink); color: #fff; }
.asc.asc .asc-chip.is-on small { color: #c9d3dd; }
.asc.asc .asc-chip:hover:not(.is-on) { border-color: var(--asc-ink); }
.asc.asc .asc-chips--missing { margin-top: 6px; }
.asc.asc .asc-chips[hidden] { display: none; }

/* ------------------------------------------------------------------ lists next to the tag */
.asc.asc .asc-h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; font-weight: 800; color: var(--asc-ink); }
.asc.asc .asc-h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.asc.asc .asc-catcard,  .asc.asc .asc-others { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fff; }
.asc.asc .asc-others[hidden],  .asc.asc .asc-catcard[hidden] { display: none; }
.asc.asc .asc-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; }
.asc.asc .asc-cmp dt { font-size: 12.5px; color: var(--asc-muted); }
.asc.asc .asc-cmp dd { margin: 0; font-size: 15px; font-weight: 800; direction: ltr; text-align: right; }
.asc.asc .asc-cmp .is-ok dd { color: var(--asc-ok); }
.asc.asc .asc-cmp .is-warn dd { color: var(--asc-warn); }
.asc.asc .asc-reasons { list-style: none; margin: 10px 0 0; padding: 0; }
.asc.asc .asc-reasons li { display: flex; gap: 8px; margin-top: 6px; font-size: 13px; line-height: 1.65; color: var(--asc-ink-2); }
.asc.asc .asc-reasons svg.asc-ico { width: 17px; height: 17px; margin-top: 3px; color: var(--asc-dim); }
.asc.asc .asc-sources { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; line-height: 1.7; color: var(--asc-muted); }
.asc.asc .asc-sources a { color: var(--asc-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.asc.asc .asc-sources a:hover { color: var(--asc-accent-hover); }
.asc.asc .asc-status { display: inline-block; padding: 0 9px; border: 1px solid var(--asc-line); border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 1.7; color: var(--asc-ink-2); background: #fff; white-space: nowrap; }
.asc.asc .asc-status--verified { color: var(--asc-ok); background: var(--asc-ok-tint); border-color: #b4dcc9; }
.asc.asc .asc-status--unverified { color: var(--asc-warn); background: var(--asc-warn-tint); border-color: #e8cf9c; }
.asc.asc .asc-status--admin { color: #fff; background: var(--asc-ink-2); border-color: var(--asc-ink-2); }
.asc.asc .asc-oth-list { list-style: none; margin: 0; padding: 0; }
.asc.asc .asc-oth-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: baseline; gap: 4px 12px; padding: 7px 8px; border-bottom: 1px solid var(--asc-line-soft); font-size: 13.5px; }
.asc.asc .asc-oth-list li:last-child { border-bottom: 0; }
.asc.asc .asc-oth-list li.is-cur { background: var(--asc-sheet); box-shadow: inset 3px 0 0 var(--asc-ink); }
[dir="rtl"]  .asc.asc .asc-oth-list li.is-cur { box-shadow: inset -3px 0 0 var(--asc-ink); }
.asc.asc .asc-oth-n { font-weight: 700; overflow-wrap: anywhere; }
.asc.asc .asc-oth-d,  .asc.asc .asc-oth-p { color: var(--asc-muted); font-size: 12.5px; direction: ltr; }
.asc.asc .asc-oth-m { font-weight: 800; direction: ltr; }
.asc.asc .asc-std-list li { grid-template-columns: auto auto auto 1fr; }
.asc.asc .asc-std-list .asc-link { justify-self: end; }

/* ------------------------------------------------------------------ standard sections tab */
.asc.asc .asc-compare { padding-bottom: 12px; }
.asc.asc .asc-cmp-head { margin-bottom: 14px; }
.asc.asc .asc-cmp-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 8px; }
.asc.asc .asc-cmp-tools .asc-chips { flex: 1 1 100%; }
.asc.asc .asc-cmp-find { position: relative; flex: 1 1 220px; max-width: 320px; }
.asc.asc .asc-cmp-find svg.asc-ico { position: absolute; top: 13px; inset-inline-start: 12px; color: var(--asc-dim); pointer-events: none; }
.asc.asc .asc-cmp-find .asc-in { height: 46px; padding-inline-start: 38px; border: 1px solid var(--asc-field-line); font-size: 15px; font-weight: 600; background: #fff; }
.asc.asc .asc-cmp-find .asc-in:focus-visible { border-color: var(--asc-ink); box-shadow: var(--asc-focus); }
.asc.asc .asc-cmp-mat { flex: 1 1 220px; max-width: 320px; }
.asc.asc .asc-cmp-mat .asc-meta { display: block; }
.asc.asc .asc-cmp-summary { margin: 4px 0 10px; }
.asc.asc .asc-tablewrap { overflow-x: auto; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fff; }
.asc.asc .asc-tablewrap:focus-visible { box-shadow: var(--asc-focus); }
.asc.asc .asc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.asc.asc .asc-table th,  .asc.asc .asc-table td { padding: 9px 12px; border-bottom: 1px solid var(--asc-line-soft); text-align: right; vertical-align: middle; }
.asc.asc .asc-table thead th { position: sticky; top: 0; background: var(--asc-sheet); font-size: 12.5px; font-weight: 800; color: var(--asc-ink-2); border-bottom: 1px solid var(--asc-line); white-space: nowrap; }
.asc.asc .asc-table tbody tr:hover { background: #f6f8fa; }
.asc.asc .asc-table .is-num { text-align: left; direction: ltr; white-space: nowrap; }
.asc.asc .asc-table .is-warn { color: var(--asc-warn); font-weight: 800; }
.asc.asc .asc-table .is-act { text-align: left; white-space: nowrap; }
.asc.asc .asc-table tbody th { font-weight: 800; white-space: nowrap; }
.asc.asc .asc-cmp-src { padding: 14px 4px 4px; }

/* ------------------------------------------------------------------ order */
.asc.asc .asc-order { background: var(--asc-paper); border-top: 1px solid var(--asc-line); }
.asc.asc .asc-order-sum { display: flex; align-items: center; gap: 10px; list-style: none; padding: 16px 22px; cursor: pointer; font-size: 16.5px; font-weight: 800; }
.asc.asc .asc-order-sum .asc-badge { margin-inline-start: 0; }
.asc.asc .asc-order-tot { margin-inline-start: auto; font-size: 15.5px; }
.asc.asc .asc-order-body { padding: 0 22px 22px; }
.asc.asc .asc-empty { margin: 0; padding: 12px 14px; border: 1px dashed var(--asc-field-line); border-radius: var(--asc-radius); background: #fafbfc; font-size: 14px; line-height: 1.8; color: var(--asc-muted); }
.asc.asc .asc-table--order { min-width: 760px; }
.asc.asc .asc-ln-t { display: block; font-weight: 800; }
.asc.asc .asc-ln-d { display: block; font-size: 12.5px; font-weight: 500; color: var(--asc-muted); direction: ltr; text-align: right; }
.asc.asc .asc-ln-m { font-size: 13.5px; }
.asc.asc .asc-table--order tfoot th,  .asc.asc .asc-table--order tfoot td { background: #f6f8fa; border-top: 1.5px solid var(--asc-ink); font-weight: 800; border-bottom: 0; }
.asc.asc .asc-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ------------------------------------------------------------------ sticky bar, toast, popover */
.asc.asc .asc-sticky { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--asc-ink); color: #fff; box-shadow: 0 -6px 18px rgba(27, 36, 48, .18); }
.asc.asc .asc-sticky-v { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.asc.asc .asc-sticky-v span { font-size: 12px; color: #b3c0cd; }
.asc.asc .asc-sticky-v b { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
.asc.asc .asc-sticky .asc-btn--primary { flex: none; min-height: 42px; }
.asc.asc .asc-sticky :focus-visible { box-shadow: 0 0 0 2px var(--asc-ink), 0 0 0 4px #fff; }
 .asc.asc-ge-940 .asc-sticky { display: none !important; } 

.asc.asc .asc-toast { position: fixed; inset-inline: 16px; bottom: 84px; z-index: 60; max-width: 420px; margin-inline: auto; padding: 11px 16px; border-radius: var(--asc-radius); background: var(--asc-ink); color: #fff; font-size: 14.5px; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgba(27, 36, 48, .3); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .16s, transform .16s; }
.asc.asc .asc-toast.is-on { opacity: 1; transform: none; }
.asc.asc .asc-toast--warn { background: var(--asc-warn); }
 .asc.asc-ge-940 .asc-toast { bottom: 24px; } 

.asc.asc .asc-pop { position: absolute; top: 62px; inset-inline-end: 12px; z-index: 40; width: min(420px, calc(100% - 24px)); max-height: 70vh; overflow: auto; padding: 14px; border: 1.5px solid var(--asc-ink); border-radius: var(--asc-radius); background: #fff; color: var(--asc-ink); box-shadow: 0 14px 40px rgba(27, 36, 48, .25); }
.asc.asc .asc-pop-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 15.5px; }
.asc.asc .asc-hist { list-style: none; margin: 0 0 8px; padding: 0; }
.asc.asc .asc-hist-b { appearance: none; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--asc-line-soft); background: none; text-align: right; font-size: 13.5px; cursor: pointer; color: var(--asc-ink-2); }
.asc.asc .asc-hist-b:hover { background: var(--asc-sheet); }
.asc.asc .asc-hist-b b { color: var(--asc-ink); font-weight: 800; direction: ltr; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .asc.asc *,  .asc.asc *::before,  .asc.asc *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ narrow screens */
  .asc.asc-lt-520 .asc-head { padding: 12px 14px; }
  .asc.asc-lt-520 .asc-tabs { padding: 0 4px; }
  .asc.asc-lt-520 .asc-tab { padding: 14px 10px 12px; font-size: 14px; }
  .asc.asc-lt-520 .asc-order-sum, .asc.asc-lt-520 .asc-order-body { padding-inline: 14px; }
  .asc.asc-lt-520 .asc-fields { grid-template-columns: 1fr; }

  .asc.asc-lt-700 .asc-tablewrap--order, .asc.asc-lt-700 .asc-tablewrap:has(.asc-table--order) { overflow: visible; border: 0; background: none; }
  .asc.asc-lt-700 .asc-table--order { min-width: 0; display: block; }
  .asc.asc-lt-700 .asc-table--order thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .asc.asc-lt-700 .asc-table--order tbody, .asc.asc-lt-700 .asc-table--order tfoot { display: block; }
  .asc.asc-lt-700 .asc-table--order tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--asc-line); border-radius: var(--asc-radius); background: #fff; }
  .asc.asc-lt-700 .asc-table--order td, .asc.asc-lt-700 .asc-table--order th { display: block; padding: 0; border: 0; text-align: right; }
  .asc.asc-lt-700 .asc-table--order td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--asc-muted); }
  .asc.asc-lt-700 .asc-table--order tbody th, .asc.asc-lt-700 .asc-table--order tfoot th { grid-column: 1 / -1; }
  .asc.asc-lt-700 .asc-table--order .asc-ln-idx, .asc.asc-lt-700 .asc-table--order td:empty { display: none; }
  .asc.asc-lt-700 .asc-table--order .asc-ln-act { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 4px; }
  .asc.asc-lt-700 .asc-table--order td.is-num { text-align: right; }
  .asc.asc-lt-700 .asc-table--order tfoot tr { background: #f6f8fa; border-color: var(--asc-ink); }
  .asc.asc-lt-700 .asc-table--order tfoot th, .asc.asc-lt-700 .asc-table--order tfoot td { background: none; border: 0; }


/* the HTML hidden attribute must always win over component display rules */
.asc.asc [hidden] { display: none !important; }

/* ------------------------------------------------------------------ before the script runs, and the server-rendered table */
.asc-host:not(.asc) { min-height: 140px; padding: 28px 16px; border: 1px dashed #c5ced7; border-radius: 4px; background: #f7f9fa; color: #4f6376; text-align: center; font-size: 15px; }
.asc-host:not(.asc) p { margin: 0; }
.asc-table-ssr { overflow-x: auto; color: #1b2430; }
.asc-ssr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.asc-ssr-table caption { padding: 0 0 8px; text-align: right; font-weight: 700; }
.asc-ssr-table th, .asc-ssr-table td { padding: 8px 10px; border: 1px solid #c5ced7; text-align: right; }
.asc-ssr-table thead th { background: #eef1f4; font-size: 13px; }
.asc-ssr-table td:nth-child(3), .asc-ssr-table td:nth-child(4) { direction: ltr; text-align: left; white-space: nowrap; }
.asc-ssr-note, .asc-ssr-sources { margin: 8px 0 0; font-size: 13px; color: #4f6376; }
.asc-ssr-sources { padding-inline-start: 18px; }

/* ================================================================== 1.1 layer
   Desktop overlap fixes, shop prices, store badges, presentation mode, motion. */

/* headings and paragraphs: themes style h2/h4/p/ul/li/a globally */
.asc.asc h2, .asc.asc h3, .asc.asc h4 { font-family: inherit; text-transform: none; letter-spacing: 0; }
.asc.asc p, .asc.asc ul, .asc.asc li, .asc.asc dl, .asc.asc dd, .asc.asc figure { font-family: inherit; }
.asc.asc a { font-family: inherit; }
.asc.asc :is(button, input, select) { font-family: var(--asc-font); box-sizing: border-box; }
.asc.asc button { min-width: 0; text-transform: none; line-height: 1.25; }
.asc.asc button:not(.asc-iconbtn):not(.asc-step):not(.asc-stamp) { height: auto; }
.asc.asc .asc-btn { white-space: normal; text-align: center; }

/* header: three actions wrap under the brand instead of colliding with it */
.asc.asc .asc-head { row-gap: 10px; }
.asc.asc .asc-head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.asc.asc .asc-head .asc-btn--ghost { white-space: nowrap; }
.asc.asc.asc-lt-520 .asc-head-actions { width: 100%; }
.asc.asc.asc-lt-520 .asc-head-actions .asc-btn { flex: 1 1 0; padding-inline: 8px; }

/* shape picker: group headings span the grid and every button keeps its own cell */
.asc.asc .asc-shapes { align-items: stretch; }
.asc.asc .asc-shape { min-width: 0; height: auto; min-height: 72px; }
.asc.asc .asc-shape-l { display: block; max-width: 100%; overflow-wrap: anywhere; line-height: 1.35; }
.asc.asc .asc-shapes-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; color: var(--asc-muted); }
.asc.asc .asc-shapes-h:first-child { margin-top: 0; }
.asc.asc.asc-ge-940 .asc-shapes, .asc.asc.asc-ge-720 .asc-shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.asc.asc.asc-lt-520 .asc-shapes { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; }
.asc.asc .asc-shape.is-calc-only { background: var(--asc-sheet); }

/* store badges */
.asc.asc .asc-store { display: inline-block; padding: 1px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.asc.asc .asc-store--yes { background: var(--asc-ok-tint); color: var(--asc-ok); border: 1px solid #b4dcc9; }
.asc.asc .asc-store--no { background: var(--asc-sheet); color: var(--asc-ink-2); border: 1px solid var(--asc-line); }
.asc.asc .asc-chip-store { margin-inline-start: 2px; opacity: .85; }

/* shop price row under the price field */
.asc.asc .asc-shoprow { grid-column: 1 / -1; margin: -2px 0 2px; padding: 10px 12px; border: 1px dashed var(--asc-field-line); border-radius: var(--asc-radius); background: #fafbfc; }
.asc.asc .asc-shoprow.is-shop { border-style: solid; border-color: #b4dcc9; background: var(--asc-ok-tint); }
.asc.asc .asc-shoprow:empty { display: none; }
.asc.asc .asc-shoprow-t { margin: 0 0 2px; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.asc.asc .asc-shoprow-a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.asc.asc .asc-shoprow .asc-meta { margin-top: 2px; }
.asc.asc .asc-meta--dim { color: var(--asc-dim); font-size: 12px; }

/* work/aside never fight over width; long content wraps */
.asc.asc .asc-work, .asc.asc .asc-aside, .asc.asc .asc-aside-in { min-width: 0; }
.asc.asc .asc-fields { grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); }
.asc.asc .asc-ig { min-width: 0; }
.asc.asc .asc-unit { width: 72px; text-overflow: clip; }
.asc.asc .asc-tblock { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, .9fr); }
.asc.asc .asc-tl { flex-wrap: wrap; }
.asc.asc .asc-sel--plain { text-overflow: ellipsis; }
.asc.asc .asc-price-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.asc.asc .asc-price-rows li { grid-template-columns: minmax(0, 1.4fr) minmax(24px, 1fr) auto; }
.asc.asc .asc-pr-l { overflow-wrap: anywhere; }

/* the result tag: the stamp gets its own gutter so it can never sit on the number */
.asc.asc .asc-fig { padding-left: 88px; }
.asc.asc .asc-fig-n { font-size: 46px; overflow-wrap: anywhere; }
.asc.asc.asc-lt-520 .asc-fig-n { font-size: 40px; }
.asc.asc .asc-tag-title { font-size: 16.5px; }
.asc.asc .asc-tag-actions { grid-template-columns: minmax(0, 1fr); }
.asc.asc .asc-tag-actions-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asc.asc .asc-tag-actions .asc-btn { padding: 0 8px; min-height: 44px; font-size: 14px; }
.asc.asc .asc-rows li { flex-wrap: wrap; }
.asc.asc .asc-rows li > span { min-width: 0; overflow-wrap: anywhere; }
.asc.asc .asc-cmp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.asc.asc .asc-cmp dd { overflow-wrap: anywhere; }

/* "same section in other materials": two lines per row instead of four squeezed columns */
.asc.asc .asc-oth-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.asc.asc .asc-oth-n { grid-column: 1 / -1; }
.asc.asc .asc-oth-d, .asc.asc .asc-oth-p { justify-self: start; }
.asc.asc .asc-oth-m { justify-self: end; }
.asc.asc .asc-std-list li { grid-template-columns: minmax(0, 1fr) auto; }
.asc.asc .asc-std-list .asc-link { grid-column: 1 / -1; justify-self: start; }

/* compare tab */
.asc.asc .asc-chips { gap: 6px; }
.asc.asc .asc-chip { min-height: 34px; }
.asc.asc .asc-cmp-find, .asc.asc .asc-cmp-mat { max-width: none; }
.asc.asc .asc-table th, .asc.asc .asc-table td { vertical-align: middle; }

/* sticky bar and toast: shown whenever the aside is not beside the work area */
.asc.asc .asc-sticky { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.asc.asc .asc-toast { max-width: min(420px, calc(100vw - 32px)); z-index: 100001; }

/* mobile */
.asc.asc.asc-lt-520 .asc-work { padding: 16px 12px 8px; }
.asc.asc.asc-lt-520 .asc-aside { padding: 16px 12px 20px; }
.asc.asc.asc-lt-520 .asc-tag-in { padding: 38px 14px 14px; }
.asc.asc.asc-lt-520 .asc-tag-cells { grid-template-columns: 1fr 1fr; }
.asc.asc.asc-lt-520 .asc-tag-cells .asc-cell:nth-child(3) { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--asc-line); }
.asc.asc.asc-lt-520 .asc-btn { min-height: 46px; }
.asc.asc.asc-lt-520 .asc-in { font-size: 16px; }   /* 16px stops iOS from zooming into the field */
.asc.asc.asc-lt-520 .asc-fold > summary { min-height: 44px; }

/* ------------------------------------------------------------------ presentation mode */
.asc.asc .asc-btn--present { gap: 6px; }
.asc.asc .asc-stage { position: fixed; inset: 0; z-index: 99999; display: flex; flex-direction: column; overflow: auto; color: #fff; direction: rtl;
  background: radial-gradient(120% 90% at 85% 0%, #2b3a4d 0%, var(--asc-ink) 55%, #10161e 100%); animation: asc-stage-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.asc.asc .asc-stage-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; }
.asc.asc .asc-stage-brand { font-size: 18px; font-weight: 800; letter-spacing: 0; }
.asc.asc .asc-stage .asc-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); min-height: 40px; }
.asc.asc .asc-stage .asc-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.asc.asc .asc-stage :focus-visible { box-shadow: 0 0 0 2px #10161e, 0 0 0 4px #fff; }
.asc.asc .asc-stage-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 28px 48px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 8px 28px 40px; box-sizing: border-box; }
.asc.asc .asc-stage-fig { margin: 0; padding: 22px 22px 14px; border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .45); animation: asc-rise .7s .1s cubic-bezier(.2, .8, .2, 1) both; }
.asc.asc .asc-stage-fig .asc-draw { max-height: 52vh; }
.asc.asc .asc-stage-info { min-width: 0; }
.asc.asc .asc-stage-t { margin: 0; font-size: 30px; line-height: 1.4; font-weight: 800; color: #fff; }
.asc.asc .asc-stage-d { font-size: 22px; font-weight: 600; color: #b3c0cd; direction: ltr; unicode-bidi: isolate; }
.asc.asc .asc-stage-m { margin: 4px 0 0; font-size: 18px; color: #d3dce5; }
.asc.asc .asc-stage-w { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 18px 0 0; }
.asc.asc .asc-stage-n { font-size: clamp(56px, 9vw, 104px); line-height: 1.05; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.asc.asc .asc-stage-u { font-size: 24px; font-weight: 700; color: #ff8a6b; }
.asc.asc .asc-stage-s { margin: 0 0 18px; font-size: 16px; color: #b3c0cd; }
.asc.asc .asc-stage-wait { margin: 18px 0; font-size: 20px; color: #d3dce5; }
.asc.asc .asc-stage-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.asc.asc .asc-stage-c li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: rgba(255, 255, 255, .06); animation: asc-rise .6s calc(.35s + var(--i, 0) * .1s) cubic-bezier(.2, .8, .2, 1) both; }
.asc.asc .asc-stage-c li span { font-size: 13px; color: #b3c0cd; }
.asc.asc .asc-stage-c li b { font-size: 20px; font-weight: 800; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.asc.asc .asc-stage-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 18px 0 0; font-size: 15px; color: #d3dce5; animation: asc-rise .6s .9s both; }
.asc.asc .asc-stage .asc-store--yes { background: rgba(26, 115, 82, .25); color: #7be0b6; border-color: rgba(123, 224, 182, .45); }
.asc.asc .asc-stage .asc-store--no { background: rgba(255, 255, 255, .1); color: #d3dce5; border-color: rgba(255, 255, 255, .3); }
/* the drawing draws itself */
.asc.asc .asc-stage-fig.is-draw .asc-sec, .asc.asc .asc-stage-fig.is-draw .asc-ext, .asc.asc .asc-stage-fig.is-draw .asc-dl { stroke-dasharray: 1; stroke-dashoffset: 1; animation: asc-draw 1.3s .15s ease-out forwards; }
.asc.asc .asc-stage-fig.is-draw .asc-dim-t, .asc.asc .asc-stage-fig.is-draw .asc-dim-s { animation: asc-fade .5s 1.1s both; }
@media (max-width: 820px) {
  .asc.asc .asc-stage-body { grid-template-columns: minmax(0, 1fr); padding: 4px 16px 28px; }
  .asc.asc .asc-stage-h { padding: 12px 16px; }
  .asc.asc .asc-stage-t { font-size: 24px; }
}
.asc.asc.is-presenting .asc-sticky { display: none !important; }

/* ------------------------------------------------------------------ motion (all of it off for prefers-reduced-motion below) */
@keyframes asc-stage-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes asc-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes asc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes asc-draw { to { stroke-dashoffset: 0; } }
@keyframes asc-pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.asc.asc .asc-tag { animation: asc-rise .5s both; }
.asc.asc .asc-shape.is-on, .asc.asc .asc-shape:active { transition: transform .12s; }
.asc.asc .asc-shape:hover:not(:disabled) { transform: translateY(-2px); transition: transform .15s, border-color .12s; }
.asc.asc .asc-shoprow.is-shop { animation: asc-pop .35s both; }
.asc.asc .asc-fig-n { transition: color .2s; }
@media (prefers-reduced-motion: reduce) {
  .asc.asc *, .asc.asc *::before, .asc.asc *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ================================================================== 1.2 layer */

/* title block: material / density / quantity. Columns follow the block's own width (classes from UI.watchBox). */
.asc.asc .asc-tblock.is-lt-600 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.asc.asc .asc-tblock.is-lt-600 .asc-tcell--mat { grid-column: 1 / -1; border-bottom: 1.5px solid var(--asc-ink); }
.asc.asc .asc-tblock.is-lt-600 .asc-tcell--den { border-inline-start: 0; }
.asc.asc .asc-tblock.is-lt-400 { grid-template-columns: minmax(0, 1fr); }
.asc.asc .asc-tblock.is-lt-400 .asc-tcell + .asc-tcell { border-inline-start: 0; border-top: 1.5px solid var(--asc-ink); }
.asc.asc .asc-tcell { overflow: hidden; }
.asc.asc .asc-seg { display: flex; flex-wrap: wrap; width: 100%; max-width: 100%; }
.asc.asc .asc-seg-b { flex: 1 1 88px; min-width: 0; padding: 6px 8px; text-align: center; line-height: 1.4; white-space: normal; }
.asc.asc .asc-seg-b + .asc-seg-b { border-inline-start: 1px solid var(--asc-field-line); }
.asc.asc .asc-stepper { gap: 6px; width: 100%; }
.asc.asc .asc-step { width: 40px; height: 40px; }
.asc.asc .asc-in--qty { flex: 1 1 auto; width: auto; min-width: 40px; text-align: center; }
.asc.asc .asc-meta, .asc.asc .asc-hint, .asc.asc .asc-lede { overflow-wrap: break-word; word-break: normal; }
.asc.asc .asc-others-body .asc-meta, .asc.asc .asc-catcard .asc-meta { display: block; }

/* the price card: the price is the second thing the visitor looks for, so it is big and sits apart from the cost details */
.asc.asc .asc-quote { margin: 14px 0 0; padding: 16px 18px 18px; border-radius: var(--asc-radius); background: var(--asc-ink); color: #fff; animation: asc-rise .45s both; }
.asc.asc .asc-quote[hidden] { display: none !important; }
.asc.asc .asc-quote-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0 0 2px; font-size: 14.5px; font-weight: 700; color: #b3c0cd; }
.asc.asc .asc-quote-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin: 2px 0 8px; }
.asc.asc .asc-quote-n { font-size: clamp(36px, 7vw, 48px); line-height: 1.12; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.asc.asc .asc-quote-c { font-size: 18px; font-weight: 700; color: #ff8a6b; }
.asc.asc .asc-quote-s { margin: 0 0 2px; font-size: 13.5px; line-height: 1.65; color: #d3dce5; }
.asc.asc .asc-quote-f { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: #b3c0cd; }
.asc.asc .asc-quote-e { margin: 4px 0 6px; font-size: 14.5px; line-height: 1.7; color: #d3dce5; }
.asc.asc .asc-quote .asc-store--yes { background: #12382b; color: #7be0b6; border-color: #2c6b52; }
.asc.asc .asc-quote .asc-store--no { background: #2f3b4a; color: #d3dce5; border-color: #53606f; }
.asc.asc .asc-quote .asc-link { color: #ff9c82; }
.asc.asc .asc-quote :focus-visible { box-shadow: 0 0 0 2px var(--asc-ink), 0 0 0 4px #fff; }
.asc.asc .asc-quote-btn { width: 100%; margin-top: 12px; min-height: 48px; font-size: 15.5px; }
.asc.asc .asc-sticky-v .asc-sticky-p { font-size: 13px; color: #ff9c82; font-weight: 700; }

/* request-a-price sheet */
.asc.asc .asc-sheet { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-end; justify-content: center; direction: rtl; color: var(--asc-ink); }
.asc.asc .asc-sheet-bg { position: absolute; inset: 0; background: rgba(16, 22, 30, .62); animation: asc-fade .2s both; }
.asc.asc .asc-sheet-card { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); background: #fff; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); animation: asc-sheet-up .28s cubic-bezier(.2, .8, .2, 1) both; }
@media (min-width: 560px) {
  .asc.asc .asc-sheet { align-items: center; padding: 16px; }
  .asc.asc .asc-sheet-card { border-radius: 14px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); }
}
.asc.asc .asc-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.asc.asc .asc-sheet-t { margin: 0; font-size: 20px; font-weight: 800; color: var(--asc-ink); }
.asc.asc .asc-sheet-x { min-height: 40px; width: 40px; padding: 0; color: var(--asc-ink); border-color: var(--asc-line); }
.asc.asc .asc-sheet-sum { margin: 8px 0 2px; font-size: 15px; font-weight: 700; color: var(--asc-ink-2); }
.asc.asc .asc-sheet-lede { margin: 0 0 12px; font-size: 13.5px; line-height: 1.7; color: var(--asc-muted); }
.asc.asc .asc-sheet-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.asc.asc a.asc-ch, .asc.asc button.asc-ch { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border: 1.5px solid var(--asc-ink); border-radius: 6px; background: #fff; color: var(--asc-ink); text-align: right; text-decoration: none; cursor: pointer; transition: background-color .12s; }
.asc.asc a.asc-ch:hover, .asc.asc button.asc-ch:hover { background: var(--asc-sheet); color: var(--asc-ink); text-decoration: none; }
.asc.asc .asc-ch-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.asc.asc .asc-ch-t b { font-size: 16px; font-weight: 800; }
.asc.asc .asc-ch-t small { font-size: 12.5px; color: var(--asc-muted); overflow-wrap: anywhere; direction: rtl; }
.asc.asc a.asc-ch--tel, .asc.asc a.asc-ch--tel:hover { background: var(--asc-accent-deep); border-color: var(--asc-accent-deep); color: #fff; }
.asc.asc a.asc-ch--tel:hover { background: var(--asc-accent-hover); }
.asc.asc a.asc-ch--tel .asc-ch-t small { color: #fff; }
.asc.asc .asc-sheet-pre { margin-top: 12px; }
.asc.asc .asc-sheet-pre > summary { padding: 6px 0; font-size: 13.5px; font-weight: 600; color: var(--asc-muted); cursor: pointer; }
.asc.asc .asc-sheet-txt { margin: 6px 0 0; padding: 10px 12px; border: 1px solid var(--asc-line); border-radius: 4px; background: #fafbfc; font-family: var(--asc-font); font-size: 13px; line-height: 1.8; color: var(--asc-ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; direction: rtl; text-align: right; }
.asc.asc .asc-sheet :focus-visible { box-shadow: var(--asc-focus); }
@keyframes asc-sheet-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* presentation mode: header buttons, price block */
.asc.asc .asc-stage-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.asc.asc .asc-stage .asc-btn--primary { min-height: 40px; }
.asc.asc .asc-stage .asc-btn:disabled { opacity: .45; cursor: not-allowed; }
.asc.asc .asc-stage-price { margin: 0 0 18px; padding: 16px 22px 20px; border-radius: 14px; background: var(--asc-accent-deep); color: #fff; box-shadow: 0 16px 44px rgba(0, 0, 0, .35); animation: asc-rise .6s .55s cubic-bezier(.2, .8, .2, 1) both; }
.asc.asc .asc-stage-pl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.asc.asc .asc-stage-pv { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; margin: 2px 0 0; }
.asc.asc .asc-stage-pn { font-size: clamp(44px, 7.5vw, 84px); line-height: 1.1; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.asc.asc .asc-stage-pc { font-size: 24px; font-weight: 700; color: #fff; }
.asc.asc .asc-stage-ps { margin: 4px 0 0; font-size: 15px; color: #fff; }
.asc.asc .asc-stage-price .asc-store--yes { background: #fff; color: var(--asc-ok); border-color: #fff; }
.asc.asc .asc-stage .asc-sheet-card { color: var(--asc-ink); }

/* narrow screens */
.asc.asc.asc-lt-520 .asc-quote { padding: 14px 14px 16px; }
.asc.asc.asc-lt-520 .asc-stage-price { padding: 14px 16px 16px; }
.asc.asc .asc-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.asc.asc .asc-order-actions .asc-btn { flex: 1 1 140px; }
