
:root {
  --ink: #121a2a;
  --muted: #647084;
  --line: #d8e0ea;
  --line-strong: #b8c3d1;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --surface-deep: #eaf0f6;
  --navy: #14213d;
  --navy-2: #1d3159;
  --accent: #0f8f83;
  --accent-strong: #08746a;
  --accent-soft: #e5f6f3;
  --yellow: #ffb703;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --success: #15704b;
  --shadow-sm: 0 4px 14px rgba(19, 33, 61, .08);
  --shadow-md: 0 14px 40px rgba(19, 33, 61, .12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1220px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface-soft); color: var(--ink); }
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 12px; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section { padding: 86px 0; }
.section.compact { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-head h2 { margin: 0; max-width: 760px; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.section-head p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(216, 224, 234, .8); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.site-header .container { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 10px 12px; border-radius: 9px; color: #38455a; font-size: 14px; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface-deep); color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgba(20,33,61,.2); }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--accent); color: white; box-shadow: 0 8px 20px rgba(15,143,131,.2); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-secondary { border-color: var(--line); background: var(--surface); color: var(--navy); }
.btn-secondary:hover { background: var(--surface-deep); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { border-color: #efb4ad; background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 7px 11px; border-radius: 8px; font-size: 13px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); }
.icon-btn:hover { background: var(--surface-deep); }

.hero { position: relative; overflow: hidden; padding: 86px 0 70px; background: linear-gradient(145deg, #fff 0%, #f4f8fb 52%, #e7f5f2 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(20,33,61,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(20,33,61,.045) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(to bottom, black, transparent 82%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 54px; align-items: center; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(46px, 6.6vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent-strong); }
.hero-copy { max-width: 700px; margin: 24px 0 0; color: #536077; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: var(--muted); font-size: 13px; font-weight: 750; }
.hero-meta span::before { content: "✓"; margin-right: 7px; color: var(--success); }

.panel-demo { position: relative; padding: 18px; border: 1px solid rgba(184,195,209,.85); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 30px 80px rgba(20,33,61,.18); }
.panel-demo::after { content: ""; position: absolute; right: -20px; bottom: -22px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,183,3,.25); filter: blur(24px); z-index: -1; }
.demo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 14px; color: var(--muted); font-size: 12px; font-weight: 800; }
.demo-rail { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.demo-devices { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; min-height: 92px; align-items: end; border-bottom: 7px solid #aab5c3; }
.demo-device { min-width: 0; height: 74px; display: grid; place-items: center; border: 1px solid #8d99aa; border-radius: 5px 5px 1px 1px; background: white; font-size: 11px; font-weight: 900; color: var(--navy); }
.demo-device.w2 { grid-column: span 2; }
.demo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr 1fr 1fr 1fr 1fr 1fr; margin-top: 15px; overflow: hidden; border: 1px solid #1f2937; border-radius: 4px; }
.demo-strip span { min-height: 48px; display: grid; place-items: center; padding: 4px; border-right: 1px dashed #495363; background: #e6f4f1; text-align: center; font-size: 9px; font-weight: 850; line-height: 1.15; }
.demo-strip span:nth-child(3n) { background: #fff3ce; }
.demo-strip span:last-child { border-right: 0; }
.demo-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; }

.logo-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.logo-chip { min-height: 76px; display: grid; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: #47546a; font-size: 13px; font-weight: 900; text-align: center; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-index { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 900; }
.feature-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.step { position: relative; min-height: 260px; padding: 28px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step b { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 48px; border-radius: 50%; background: var(--navy); color: white; }
.step h3 { margin: 0 0 10px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; }

.product-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: stretch; }
.preview-copy { padding: 38px; border-radius: var(--radius-lg); background: var(--navy); color: white; }
.preview-copy h2 { margin: 0 0 18px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; line-height: 1.04; }
.preview-copy p { margin: 0; color: #c8d1df; line-height: 1.7; }
.preview-copy ul { margin: 28px 0 0; padding: 0; list-style: none; }
.preview-copy li { margin: 11px 0; color: #e9edf4; }
.preview-copy li::before { content: "—"; margin-right: 10px; color: var(--yellow); }
.preview-ui { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.preview-ui-grid { height: 100%; min-height: 420px; display: grid; grid-template-columns: 140px 1fr 170px; gap: 10px; }
.preview-pane { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.preview-pane h4 { margin: 0 0 12px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.preview-list-item { height: 34px; margin: 6px 0; border-radius: 6px; background: #e6ecf3; }
.preview-list-item.active { background: var(--accent-soft); border: 1px solid #9fd9d1; }
.preview-canvas-rail { margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.preview-device-row { display: flex; align-items: end; gap: 2px; min-height: 68px; border-bottom: 5px solid #aeb9c6; }
.preview-device-row span { flex: 1; height: 56px; border: 1px solid #9aa5b3; border-radius: 4px 4px 0 0; background: white; }
.preview-device-row span.w2 { flex: 2; }
.preview-field { height: 36px; margin: 8px 0; border: 1px solid var(--line); border-radius: 7px; background: white; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.price-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price-tag { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.price-card h3 { margin: 18px 0 8px; font-size: 23px; }
.price { margin: 0 0 22px; font-size: 40px; font-weight: 900; letter-spacing: -.04em; }
.price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.price-card ul { min-height: 180px; margin: 0 0 26px; padding: 0; list-style: none; }
.price-card li { margin: 12px 0; color: #4d5a6f; }
.price-card li::before { content: "✓"; margin-right: 9px; color: var(--success); font-weight: 900; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 850; }
.faq p { margin: 0; padding: 0 20px 20px; color: var(--muted); line-height: 1.65; }

.cta { padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 28px; background: linear-gradient(120deg, var(--navy), #28456f); color: white; }
.cta h2 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 50px); line-height: 1.05; letter-spacing: -.04em; }
.cta p { margin: 0; color: #c8d2df; }
.site-footer { padding: 46px 0; border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 36px; }
.footer-grid h4 { margin: 0 0 13px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid a, .footer-grid p { display: block; margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Generic pages */
.page-hero { padding: 62px 0 38px; background: white; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -.045em; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 750; }
.content-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.empty-state { padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fbfcfe; text-align: center; }
.empty-state h3 { margin: 0 0 8px; }
.empty-state p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); line-height: 1.6; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 850; color: #4a566b; }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); outline: none; }
.textarea { min-height: 90px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,143,131,.12); }
.input::placeholder, .textarea::placeholder { color: #9ba6b5; }
.help { color: var(--muted); font-size: 11px; line-height: 1.45; }

/* Editor */

.editor-body { min-height: 100vh; background: #eef3f8; overflow: hidden; }
.editor-header { height: 64px; display: grid; grid-template-columns: auto minmax(240px, 1fr) auto; align-items: center; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); background: white; }
.editor-header .brand img { width: 34px; height: 34px; }
.editor-title-wrap { min-width: 0; display: flex; align-items: center; gap: 10px; }
.project-title-input { width: min(520px, 100%); padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; font-weight: 850; color: var(--ink); }
.project-title-input:hover, .project-title-input:focus { border-color: var(--line); background: var(--surface-soft); outline: none; }
.save-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.editor-actions { display: flex; align-items: center; gap: 8px; }
.quota-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 850; }
.editor-shell { height: calc(100vh - 64px); display: grid; grid-template-columns: 290px minmax(460px, 1fr) 310px; overflow: hidden; }
.editor-sidebar { min-width: 0; overflow: auto; border-right: 1px solid var(--line); background: white; }
.editor-inspector { min-width: 0; overflow: auto; border-left: 1px solid var(--line); background: white; }
.sidebar-head { position: sticky; top: 0; z-index: 4; padding: 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.sidebar-head h2 { margin: 0 0 12px; font-size: 17px; }
.search-wrap { position: relative; }
.search-wrap input { padding-left: 34px; }
.search-wrap::before { content: "⌕"; position: absolute; left: 12px; top: 9px; color: var(--muted); font-size: 18px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.filter-row select { min-width: 0; font-size: 12px; }
.catalog-list { padding: 10px; }
.catalog-item { width: 100%; display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; text-align: left; }
.catalog-item:hover { border-color: #9fc8c3; background: #f6fcfb; }
.device-thumb { width: 46px; height: 54px; display: grid; place-items: center; border: 1px solid #9aa6b5; border-radius: 5px; background: linear-gradient(#fff, #f4f6f8); color: var(--navy); font-size: 10px; font-weight: 900; }
.catalog-item h3 { margin: 0 0 3px; font-size: 12px; line-height: 1.25; }
.catalog-item p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.catalog-add { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: var(--navy); color: white; font-size: 18px; }
.catalog-empty { padding: 24px 14px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.55; }

.editor-main { min-width: 0; overflow: auto; background: #eef3f8; }
.editor-toolbar { position: sticky; top: 0; z-index: 10; min-width: 740px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(238,243,248,.94); backdrop-filter: blur(12px); }
.toolbar-group { display: flex; align-items: center; gap: 7px; }
.toolbar-separator { width: 1px; height: 24px; background: var(--line-strong); margin: 0 3px; }
.editor-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #dfe7ef; }
.editor-tab { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 7px; background: transparent; color: #536077; font-size: 12px; font-weight: 850; }
.editor-tab.active { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(20,33,61,.09); }
.workspace { min-width: 740px; padding: 22px; }
.workspace-section { display: none; }
.workspace-section.active { display: block; }
.board-card { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); overflow: hidden; }
.board-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(15,143,131,.1), var(--shadow-sm); }
.board-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.board-card-head-left { display: flex; align-items: center; gap: 10px; }
.row-select-radio { width: 17px; height: 17px; accent-color: var(--accent); }
.row-name { width: 180px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-weight: 850; }
.row-name:focus { outline: none; border-color: var(--line); background: white; }
.row-meta { color: var(--muted); font-size: 11px; }
.row-actions { display: flex; gap: 5px; }
.din-canvas { position: relative; margin: 18px 18px 10px; padding: 16px 12px 20px; border: 1px solid #c6d0db; border-radius: 10px; background: linear-gradient(#f8fafc, #eef2f6); overflow-x: auto; }
.din-scale { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(35px, 1fr); min-width: calc(var(--capacity, 12) * 38px); border-left: 1px solid rgba(99,112,132,.18); }
.din-scale span { height: 7px; border-right: 1px solid rgba(99,112,132,.18); }
.din-devices { position: relative; display: grid; grid-template-columns: repeat(var(--capacity, 12), minmax(38px, 1fr)); align-items: end; min-width: calc(var(--capacity, 12) * 38px); min-height: 102px; border-bottom: 7px solid #a6b1be; background: repeating-linear-gradient(90deg, transparent 0, transparent calc((100% / var(--capacity)) - 1px), rgba(92,106,124,.08) calc((100% / var(--capacity)) - 1px), rgba(92,106,124,.08) calc(100% / var(--capacity)));
}
.din-device { position: relative; grid-column: span var(--modules, 1); min-width: 0; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 3px; padding: 8px 4px 6px; border: 1px solid #8e9aaa; border-bottom: 0; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #fff 0%, #eef1f4 100%); color: var(--navy); user-select: none; }
.din-device:hover { z-index: 2; border-color: var(--accent); }
.din-device.selected { z-index: 3; border: 2px solid var(--accent); background: linear-gradient(#fff, #e8f7f5); box-shadow: 0 0 0 3px rgba(15,143,131,.12); }
.din-device.dragging { opacity: .38; }
.device-brand { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 8px; font-weight: 900; }
.device-lever { width: min(22px, 70%); height: 24px; border: 1px solid #8c98a7; border-radius: 3px; background: #e5e9ee; box-shadow: inset 0 -7px 0 #c9d0d9; }
.device-code { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 9px; font-weight: 900; }
.device-modules-badge { position: absolute; right: 3px; top: 3px; padding: 1px 3px; border-radius: 3px; background: rgba(20,33,61,.08); color: #526078; font-size: 7px; }
.empty-modules { min-height: 86px; display: grid; place-items: center; grid-column: span var(--empty, 1); border: 1px dashed #b8c3d0; border-bottom: 0; color: #93a0b0; font-size: 10px; }
.din-label-strip { display: grid; grid-template-columns: repeat(var(--capacity, 12), minmax(38px, 1fr)); min-width: calc(var(--capacity, 12) * 38px); margin-top: 11px; border: 1px solid #263445; border-radius: 4px; overflow: hidden; background: white; }
.strip-segment { min-width: 0; grid-column: span var(--modules, 1); min-height: 58px; display: flex; align-items: center; padding: 4px 5px; border-right: 1px dashed rgba(31,41,55,.55); background: var(--segment-color, #e6f4f1); color: #152031; }
.strip-segment:last-child { border-right: 0; }
.strip-empty { grid-column: span var(--empty, 1); min-height: 58px; display: grid; place-items: center; color: #a1acb9; font-size: 9px; border-right: 1px dashed #9aa6b3; background: #fafafa; }
.row-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 18px 15px; color: var(--muted); font-size: 11px; }
.usage-meter { flex: 1; max-width: 220px; height: 6px; border-radius: 999px; background: #e4e9ef; overflow: hidden; }
.usage-meter span { display: block; height: 100%; width: var(--usage, 0%); background: var(--accent); }
.add-row-card { width: 100%; min-height: 78px; display: grid; place-items: center; border: 1px dashed #aeb9c8; border-radius: 12px; background: rgba(255,255,255,.65); color: #526078; font-weight: 850; }
.add-row-card:hover { border-color: var(--accent); color: var(--accent-strong); background: #f5fcfb; }

/* Physical rails use one proportional track per device, preserving exact mm. */
.editor-body .din-physical .din-devices,
.editor-body .din-physical .din-label-strip,
.editor-body .din-physical .din-scale { min-width: var(--rail-px); }
.editor-body .din-physical .din-devices { background: none; }
.editor-body .din-physical .din-device,
.editor-body .din-physical .strip-segment,
.editor-body .din-physical .empty-modules,
.editor-body .din-physical .strip-empty { grid-column: auto; overflow: hidden; }
.editor-body .din-physical .din-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 8px; }
.editor-body .din-physical .din-scale span { height: auto; border: 0; }
.rail-size-field { margin-top: 14px; }
.rail-size-field[hidden] { display: none; }
.rail-size-error { color: #a32626; font-weight: 700; }

.inspector-content { padding: 16px; }
.inspector-empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.inspector-empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 15px; background: var(--surface-deep); color: var(--navy); font-size: 26px; }
.inspector-section { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.inspector-section:last-child { border-bottom: 0; }
.inspector-section h3 { margin: 0 0 13px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: #566276; }
.inspector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.color-swatch { aspect-ratio: 1; border: 2px solid white; border-radius: 7px; box-shadow: 0 0 0 1px var(--line-strong); }
.color-swatch.active { box-shadow: 0 0 0 2px var(--navy); }
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 192px; overflow: auto; padding: 2px; }
.icon-choice { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: white; }
.icon-choice svg { width: 22px; height: 22px; }
.icon-choice.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.device-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.preview-card { margin-bottom: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.preview-card h2 { margin: 0 0 4px; font-size: 18px; }
.preview-card > p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.marking-preview-row { margin: 18px 0 26px; overflow-x: auto; }
.marking-preview-label { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 850; }
.marking-strip-mm { display: flex; width: max-content; }
/* These physical label rules apply unchanged to preview, DOM measurement and
   print. The board uses the same copy layout in its schematic module grid. */
.label-segment { box-sizing: border-box; flex: 0 0 var(--width-mm); width: var(--width-mm); min-width: 0; height: var(--strip-height, 15mm); display: flex; align-items: center; padding: .8mm; border: .25mm solid #000; background: var(--segment-color, #fff); overflow: hidden; color: #000; }
.label-copy { display: block; flex: 0 0 100%; width: 100%; min-width: 0; font-family: Arial, sans-serif; text-align: center; }
.label-heading { display: flex; align-items: center; justify-content: center; gap: .6mm; margin-bottom: .35mm; min-width: 0; }
.label-icon { display: block; flex: 0 0 3mm; width: 3mm; height: 3mm; }
.label-icon svg { display: block; width: 100%; height: 100%; }
.label-designation { min-width: 0; font-size: 6pt; line-height: 1.1; }
.label-main { display: block; font-size: 6.8pt; line-height: 1.12; font-weight: 700; text-transform: uppercase; }
.label-sub { display: block; margin-top: .35mm; font-size: 5pt; line-height: 1.12; }
.label-designation, .label-main, .label-sub { white-space: normal; overflow-wrap: anywhere; }
.label-sub:empty { display: none; }
.label-overflow { box-shadow: inset 0 0 0 .5mm #b64a20; }
.label-fit-notice { margin-bottom: 16px; }
.label-fit-notice[hidden] { display: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.label-fit-list { margin: 8px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.label-fit-notice .label-fit-list { max-height: 180px; overflow: auto; }
.label-fit-list li + li { margin-top: 4px; }
.label-measure-root { position: fixed; left: -100000px; top: 0; display: flex; width: max-content; visibility: hidden; pointer-events: none; }
.print-fit-warning { font-size: 10pt; line-height: 1.5; }
.data-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; background: white; }
.data-table th, .data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; vertical-align: top; }
.data-table th { background: #f5f7fa; color: #4f5c6e; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table .numeric { text-align: right; }

.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; max-width: 360px; }
.toast { padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-md); font-size: 13px; line-height: 1.4; animation: toast-in .2s ease; }
.toast.success { border-color: #9ed6bd; }
.toast.error { border-color: #ecafa8; background: #fff7f6; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.modal-backdrop { position: fixed; inset: 0; z-index: 150; display: none; place-items: center; padding: 18px; background: rgba(13,23,39,.54); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 36px); overflow: auto; border-radius: 18px; background: white; box-shadow: 0 30px 90px rgba(9,18,33,.28); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-body { padding: 22px; }
#deleteRowMessage { overflow-wrap: anywhere; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fafbfd; }
.quota-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.quota-stat { padding: 14px; border-radius: 11px; background: var(--surface-soft); }
.quota-stat b { display: block; margin-bottom: 3px; font-size: 22px; }
.quota-stat span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.notice { padding: 13px 14px; border: 1px solid #b9dcd7; border-radius: 10px; background: #f1fbf9; color: #295d57; font-size: 12px; line-height: 1.55; }
.notice.warning { border-color: #e8ce8d; background: #fff9e7; color: #735b1c; }

/* Projects */
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { display: flex; flex-direction: column; min-height: 260px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.project-card:hover { border-color: #aec7c4; transform: translateY(-2px); transition: .16s ease; }
.project-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.project-card h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.project-badge { padding: 5px 7px; border-radius: 7px; background: var(--surface-deep); color: var(--muted); font-size: 10px; font-weight: 850; }
.project-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 25px 0; }
.project-stat { padding: 10px; border-radius: 9px; background: var(--surface-soft); }
.project-stat b { display: block; font-size: 19px; }
.project-stat span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 850; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.project-card-footer time { color: var(--muted); font-size: 11px; }
.project-menu { position: relative; }
.project-menu-panel { position: absolute; right: 0; top: 42px; z-index: 20; display: none; width: 180px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow-md); }
.project-menu.open .project-menu-panel { display: block; }
.project-menu-panel button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 12px; }
.project-menu-panel button:hover { background: var(--surface-soft); }
.project-menu-panel button.danger { color: var(--danger); }

/* Catalog page */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.catalog-filters { position: sticky; top: 94px; align-self: start; }
.catalog-table-cards { display: grid; gap: 12px; }
.catalog-product-card { display: grid; grid-template-columns: 72px minmax(0,1fr) repeat(3, 110px); gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.catalog-product-card h3 { margin: 0 0 4px; font-size: 15px; }
.catalog-product-card p { margin: 0; color: var(--muted); font-size: 11px; }
.product-property b { display: block; font-size: 13px; }
.product-property span { color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 850; }
.demo-badge { display: inline-flex; padding: 4px 6px; border-radius: 6px; background: #fff5d6; color: #806211; font-size: 9px; font-weight: 900; }

/* Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; display: grid; place-items: center; padding: 50px; overflow: hidden; background: var(--navy); color: white; }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 32px 32px; }
.auth-visual-content { position: relative; max-width: 520px; }
.auth-visual h1 { margin: 0 0 18px; font-size: clamp(40px, 5vw, 66px); line-height: 1; letter-spacing: -.045em; }
.auth-visual p { color: #cbd4e1; font-size: 17px; line-height: 1.65; }
.auth-panel { display: grid; place-items: center; padding: 34px; background: white; }
.auth-card { width: min(430px, 100%); }
.auth-card h2 { margin: 28px 0 8px; font-size: 32px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.auth-card .btn { width: 100%; margin-top: 12px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--muted); font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Print */
.print-root { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: white !important; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; color: #000; font-family: Arial, sans-serif; }
  .print-page { width: 210mm; min-height: 297mm; padding: 10mm; page-break-after: always; overflow: hidden; background: white; }
  .print-page:last-child { page-break-after: auto; }
  .print-page-header { display: flex; align-items: end; justify-content: space-between; gap: 10mm; margin-bottom: 7mm; padding-bottom: 3mm; border-bottom: .35mm solid #000; }
  .print-page-header h1 { margin: 0; font-size: 15pt; }
  .print-page-header p { margin: 0; text-align: right; font-size: 8pt; }
  .print-section-title { margin: 5mm 0 2mm; font-size: 10pt; }
  .print-strip-line { display: flex; align-items: stretch; margin-bottom: 5mm; }
  body > .label-measure-root { display: flex !important; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 7.2pt; }
  .print-table th, .print-table td { padding: 1.8mm; border: .2mm solid #000; text-align: left; vertical-align: top; }
  .print-table th { background: #eee; font-size: 6.5pt; text-transform: uppercase; }
  .print-note { margin-top: 5mm; font-size: 7pt; color: #333; }
  .calibration-line { width: 100mm; margin: 18mm 0 8mm; border-top: .4mm solid #000; }
  .calibration-square { width: 50mm; height: 50mm; border: .4mm solid #000; }
}

@media (max-width: 1100px) {
  .site-nav { display: none; }
  .mobile-nav-toggle { display: inline-grid; place-items: center; }
  .site-header.nav-open .site-nav { position: absolute; top: 70px; left: 16px; right: 16px; display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-md); }
  .hero-grid { grid-template-columns: 1fr; }
  .panel-demo { max-width: 720px; }
  .logo-row { grid-template-columns: repeat(4, 1fr); }
  .product-preview { grid-template-columns: 1fr; }
  .editor-shell { grid-template-columns: 260px minmax(600px,1fr); }
  .editor-inspector { position: fixed; top: 64px; right: 0; bottom: 0; z-index: 60; width: 320px; transform: translateX(100%); box-shadow: -16px 0 40px rgba(20,33,61,.16); transition: transform .2s ease; }
  .editor-inspector.open { transform: translateX(0); }
}

@media (max-width: 820px) {
  .section { padding: 66px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .cards-3, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; }
  .cta { align-items: start; flex-direction: column; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .preview-ui-grid { grid-template-columns: 100px 1fr; }
  .preview-ui-grid .preview-pane:last-child { display: none; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filters { position: static; }
  .catalog-product-card { grid-template-columns: 62px 1fr; }
  .catalog-product-card .product-property { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 22px), var(--max)); }
  .header-actions .btn-secondary { display: none; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-actions .btn { width: 100%; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .preview-ui { overflow: hidden; }
  .preview-ui-grid { grid-template-columns: 1fr; min-height: 360px; }
  .preview-ui-grid .preview-pane:first-child { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .project-toolbar { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .auth-panel { padding: 22px; }
  .quota-summary { grid-template-columns: 1fr; }
}


/* =========================================================
   Version 0.2 — refined product direction
   ========================================================= */
:root {
  --v2-ink: #0b1320;
  --v2-ink-2: #182335;
  --v2-muted: #657083;
  --v2-line: #dce2e7;
  --v2-paper: #ffffff;
  --v2-canvas: #f4f6f5;
  --v2-green: #10977f;
  --v2-green-dark: #087461;
  --v2-green-soft: #e5f5f1;
  --v2-yellow: #f2c94c;
  --v2-shadow: 0 24px 70px rgba(11, 19, 32, .12);
  --max: 1280px;
}

/* Home */
.home-v2 { background: #f6f7f5; color: var(--v2-ink); }
.home-v2 .container { width: min(calc(100% - 48px), 1280px); }
.site-header-v2 { height: 76px; border-bottom: 1px solid rgba(11,19,32,.08); background: rgba(250,251,249,.9); }
.site-header-v2 .container { min-height: 76px; }
.brand-v2 { gap: 12px; font-size: 16px; color: var(--v2-ink); }
.brand-v2 img { width: 40px; height: 40px; }
.brand-v2 small { margin-top: 2px; color: #8490a1; font-size: 8px; letter-spacing: .15em; }
.site-header-v2 .site-nav { gap: 3px; }
.site-header-v2 .site-nav a { padding: 9px 12px; color: #3f4b5c; font-size: 13px; font-weight: 760; }
.site-header-v2 .site-nav a:hover { background: #ecefed; }
.header-login { padding: 9px 10px; color: #344154; font-size: 13px; font-weight: 800; }
.header-cta { min-height: 42px; padding-inline: 16px; border-radius: 11px; }
.btn-lg { min-height: 52px; padding: 14px 22px; border-radius: 13px; font-size: 15px; }

.home-hero { position: relative; overflow: hidden; padding: 92px 0 88px; background: linear-gradient(180deg, #fbfcfa 0%, #f3f5f3 100%); border-bottom: 1px solid rgba(11,19,32,.08); }
.home-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(11,19,32,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(11,19,32,.035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to right, black 0, black 58%, transparent 88%); }
.home-hero-glow { position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(16,151,127,.16), rgba(16,151,127,0) 68%); filter: blur(3px); }
.home-hero-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: 56px; align-items: center; }
.home-hero-copy { padding: 14px 0; }
.product-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid #d4ddd9; border-radius: 999px; background: rgba(255,255,255,.72); color: #445064; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 6px 18px rgba(11,19,32,.04); }
.product-badge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--v2-green); box-shadow: 0 0 0 4px rgba(16,151,127,.12); }
.home-hero h1 { margin: 24px 0 0; max-width: 680px; font-size: clamp(52px, 6vw, 82px); line-height: .98; letter-spacing: -.065em; font-weight: 850; }
.home-hero h1 em { color: var(--v2-green-dark); font-style: normal; }
.home-hero-copy > p { max-width: 620px; margin: 26px 0 0; color: #566174; font-size: 18px; line-height: 1.65; }
.home-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.home-hero-actions .btn { box-shadow: 0 16px 32px rgba(16,151,127,.18); }
.demo-link { display: inline-flex; align-items: center; gap: 11px; color: var(--v2-ink); }
.demo-link:hover .demo-play { transform: translateY(-1px); background: #e6ece9; }
.demo-play { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #d4dcd8; border-radius: 50%; background: #fff; color: var(--v2-green-dark); font-size: 12px; transition: .16s ease; }
.demo-link span:last-child { display: grid; gap: 2px; }
.demo-link b { font-size: 13px; }
.demo-link small { color: #7b8696; font-size: 11px; }
.home-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 660px; margin-top: 44px; padding-top: 24px; border-top: 1px solid #dfe4e2; }
.home-trust-row div { padding-right: 18px; }
.home-trust-row div + div { padding-left: 18px; border-left: 1px solid #dfe4e2; }
.home-trust-row b, .home-trust-row span { display: block; }
.home-trust-row b { margin-bottom: 4px; color: #182335; font-size: 13px; }
.home-trust-row span { color: #7b8695; font-size: 10px; line-height: 1.4; }

.product-stage { position: relative; min-height: 570px; display: grid; align-items: center; }
.stage-shadow { position: absolute; left: 13%; right: 5%; bottom: 10px; height: 90px; border-radius: 50%; background: rgba(11,19,32,.2); filter: blur(42px); }
.app-window { position: relative; z-index: 2; width: 760px; max-width: 100%; margin-left: auto; overflow: hidden; border: 1px solid #cdd5d9; border-radius: 20px; background: #fff; box-shadow: 0 34px 90px rgba(11,19,32,.18), 0 1px 0 rgba(255,255,255,.9) inset; transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); transform-origin: center; }
.app-window-bar { height: 47px; display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid #dfe4e7; background: #f8f9f9; color: #5f6b7b; font-size: 10px; }
.app-window-bar > span { font-weight: 800; }
.app-window-bar > b { padding: 5px 8px; border-radius: 6px; background: #e3f5f0; color: #087461; font-size: 9px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c8d0d5; }
.window-dots i:first-child { background: #ef806f; }
.window-dots i:nth-child(2) { background: #e9bf52; }
.window-dots i:last-child { background: #6ec494; }
.app-window-body { display: grid; grid-template-columns: 150px 1fr; min-height: 430px; }
.mock-catalog { padding: 14px 10px; border-right: 1px solid #dce2e7; background: #fbfcfc; }
.mock-label { display: block; margin: 1px 3px 10px; color: #707b8c; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.mock-search { height: 26px; margin-bottom: 10px; border: 1px solid #d8dfe3; border-radius: 7px; background: #fff; }
.mock-device { display: grid; grid-template-columns: 28px 1fr 18px; gap: 7px; align-items: center; margin: 6px 0; padding: 7px; border: 1px solid transparent; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 rgba(11,19,32,.03); }
.mock-device.active { border-color: #a7d6cc; background: #f1faf7; }
.mock-device > i { height: 34px; display: grid; place-items: center; border: 1px solid #9aa6b3; border-radius: 4px; color: #1b2a3d; font-size: 7px; font-style: normal; font-weight: 900; }
.mock-device span { min-width: 0; }
.mock-device b, .mock-device small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-device b { color: #243246; font-size: 7px; }
.mock-device small { margin-top: 3px; color: #8893a2; font-size: 6px; }
.mock-device em { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; background: #15243a; color: #fff; font-size: 10px; font-style: normal; }
.mock-workspace { padding: 12px 14px 16px; background: #edf2f4; }
.mock-toolbar { display: flex; gap: 3px; width: max-content; margin-left: auto; padding: 3px; border-radius: 8px; background: #dfe6ea; }
.mock-toolbar span { padding: 6px 9px; border-radius: 6px; color: #667285; font-size: 7px; font-weight: 850; }
.mock-toolbar span.active { background: #fff; color: #172539; box-shadow: 0 2px 8px rgba(11,19,32,.08); }
.mock-board-card { margin-top: 12px; padding-bottom: 9px; overflow: hidden; border: 1px solid #cfd8dc; border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(11,19,32,.06); }
.mock-board-head { display: flex; justify-content: space-between; padding: 9px 11px; border-bottom: 1px solid #e1e6e8; background: #fbfcfc; color: #29374a; font-size: 8px; }
.mock-board-head span { color: #7e8998; }
.mock-rail { margin: 11px; padding: 9px 8px 11px; border: 1px solid #ccd5db; border-radius: 8px; background: linear-gradient(#f8fafb,#eef2f4); }
.mock-machines { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; min-height: 68px; border-bottom: 5px solid #aab4bf; background-image: linear-gradient(90deg, rgba(92,105,123,.08) 1px, transparent 1px); background-size: calc(100% / 12) 100%; }
.mock-machines span { height: 57px; display: grid; place-items: center; padding: 3px; border: 1px solid #8d99a6; border-bottom: 0; border-radius: 4px 4px 0 0; background: linear-gradient(#fff,#edf1f4); color: #17263a; font-size: 7px; font-weight: 900; text-align: center; }
.mock-machines span.m2 { grid-column: span 2; }
.mock-machines small { display: block; font-size: 5px; }
.mock-strip { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 8px; overflow: hidden; border: 1px solid #273547; border-radius: 3px; }
.mock-strip span { min-height: 39px; display: grid; place-items: center; padding: 2px; border-right: 1px dashed #536071; background: #f2f4f6; color: #192638; font-size: 5.4px; font-weight: 850; line-height: 1.05; text-align: center; }
.mock-strip span.wide { grid-column: span 2; }
.mock-strip span.y { background: #fff2bd; }
.mock-strip span.b { background: #dcecff; }
.mock-strip span.g { background: #dff3ec; }
.mock-strip span.r { background: #ffe0d8; }
.mock-strip b { display: block; font-size: 5.8px; }
.mock-usage { display: flex; align-items: center; gap: 9px; margin: 0 11px; color: #7c8795; font-size: 6px; }
.mock-usage::before { content:""; flex: 1; height: 4px; border-radius: 99px; background: #e4e9eb; }
.mock-usage i { position: absolute; display: none; }
.mock-board-card.second { opacity: .9; }
.compact-rail { padding-bottom: 8px; }
.compact-rail .mock-machines { min-height: 43px; }
.compact-rail .mock-machines span { height: 38px; }
.compact-rail .mock-strip span { min-height: 29px; }
.print-card { position: absolute; z-index: 4; right: -18px; bottom: 8px; width: 180px; padding: 12px; border: 1px solid #d8dee2; border-radius: 14px; background: #fff; box-shadow: 0 20px 48px rgba(11,19,32,.18); transform: rotate(3deg); }
.print-card-head { display: flex; justify-content: space-between; color: #647083; font-size: 8px; }
.print-card-head b { color: #0b7a64; }
.print-sheet-lines { display: grid; gap: 5px; margin: 14px 0 8px; }
.print-sheet-lines i { height: 3px; border-radius: 99px; background: #dfe5e8; }
.print-sheet-lines i:nth-child(2) { width: 76%; }
.print-sheet-lines i:nth-child(3) { width: 58%; }
.print-strip-mini { display: grid; grid-template-columns: repeat(5,1fr); height: 30px; overflow: hidden; border: 1px solid #263445; }
.print-strip-mini span { border-right: 1px dashed #536071; background: #dff3ec; }
.print-strip-mini span:nth-child(2), .print-strip-mini span:nth-child(5) { background: #fff2bd; }
.print-strip-mini span:nth-child(3) { background: #dcecff; }
.print-card small { display: block; margin-top: 8px; color: #8490a0; font-size: 7px; }
.status-card { position: absolute; z-index: 5; left: -16px; bottom: 42px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid #cfe2dc; border-radius: 12px; background: #fff; box-shadow: 0 18px 42px rgba(11,19,32,.13); }
.status-card > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #e1f4ee; color: #087461; font-style: normal; font-weight: 900; }
.status-card b, .status-card small { display: block; }
.status-card b { font-size: 9px; }
.status-card small { margin-top: 2px; color: #7b8797; font-size: 7px; }

.manufacturer-band { padding: 23px 0; border-bottom: 1px solid #dfe3e2; background: #fff; }
.manufacturer-inner { display: flex; align-items: center; gap: 28px; }
.manufacturer-title { flex: 0 0 auto; color: #8a94a1; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.manufacturer-list { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); }
.manufacturer-list span { min-height: 38px; display: grid; place-items: center; padding: 0 10px; border-left: 1px solid #e2e6e5; color: #717c8b; font-size: 9px; text-align: center; }
.manufacturer-list b { color: #273448; }

.product-section { padding: 118px 0; background: #f7f8f6; }
.section-intro { max-width: 890px; }
.center-intro { margin: 0 auto 54px; text-align: center; }
.section-kicker { display: inline-block; margin-bottom: 14px; color: var(--v2-green-dark); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-intro h2, .workflow-copy h2, .print-copy h2, .faq-title h2 { margin: 0; color: var(--v2-ink); font-size: clamp(38px, 5vw, 62px); line-height: 1.04; letter-spacing: -.052em; }
.section-intro > p { max-width: 720px; margin: 22px auto 0; color: #667183; font-size: 16px; line-height: 1.72; }
.product-feature-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.feature-panel { position: relative; min-height: 360px; padding: 34px; overflow: hidden; border: 1px solid #dde3e2; border-radius: 24px; background: #fff; box-shadow: 0 12px 36px rgba(11,19,32,.05); }
.feature-panel-large { grid-row: span 2; display: grid; grid-template-columns: .78fr 1.22fr; gap: 28px; align-items: center; min-height: 738px; background: linear-gradient(145deg,#fff,#f3f7f5); }
.feature-number { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; border-radius: 11px; background: #e3f3ef; color: #087461; font-size: 11px; font-weight: 900; }
.feature-panel h3 { margin: 0 0 14px; color: var(--v2-ink); font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.feature-panel p { margin: 0; color: #6c7787; font-size: 14px; line-height: 1.7; }
.feature-panel-copy a { display: inline-flex; gap: 8px; margin-top: 24px; color: #087461; font-size: 12px; font-weight: 900; }
.feature-board-visual { position: relative; padding: 24px; border: 1px solid #cbd6d3; border-radius: 18px; background: #fff; box-shadow: 0 28px 60px rgba(11,19,32,.14); transform: rotate(-2deg); }
.feature-board-head { display: flex; justify-content: space-between; margin-bottom: 28px; color: #647083; font-size: 9px; }
.feature-board-head b { color: #273448; }
.feature-rail-line { display: grid; grid-template-columns: repeat(12,1fr); align-items: end; min-height: 122px; border-bottom: 8px solid #aeb7c0; background-image: linear-gradient(90deg,rgba(92,105,123,.08) 1px,transparent 1px); background-size: calc(100% / 12) 100%; }
.feature-rail-line i { height: 102px; display: grid; place-items: center; border: 1px solid #8e99a5; border-bottom: 0; border-radius: 5px 5px 0 0; background: linear-gradient(#fff,#edf1f4); color: #1b293c; font-size: 10px; font-style: normal; font-weight: 900; text-align: center; }
.feature-rail-line .two { grid-column: span 2; }
.feature-rail-line small { font-size: 7px; }
.feature-strip-line { display: grid; grid-template-columns: repeat(12,1fr); height: 58px; margin-top: 14px; border: 1px solid #253346; }
.feature-strip-line i { border-right: 1px dashed #536071; background: #e0f3ed; }
.feature-strip-line i:nth-child(1), .feature-strip-line i:nth-child(2) { background: #fff2bd; }
.feature-strip-line i:nth-child(3) { grid-column: span 2; background: #dcecff; }
.feature-strip-line i:nth-child(4) { grid-column: span 2; }
.feature-strip-line i:nth-child(5) { grid-column: span 2; background: #ffe0d8; }
.feature-strip-line i:nth-child(6) { grid-column: span 2; background: #f2f4f6; }
.feature-panel-dark { background: #101b2c; border-color: #101b2c; box-shadow: 0 22px 54px rgba(11,19,32,.18); }
.feature-panel-dark .feature-number { background: rgba(255,255,255,.1); color: #72dbc7; }
.feature-panel-dark h3 { color: #fff; }
.feature-panel-dark p { color: #b8c2cf; }
.icon-demo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 34px; }
.icon-demo-row i { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.07); color: #fff; font-size: 18px; font-style: normal; }
.feature-panel-paper { background: #f0eee7; }
.paper-stack { position: absolute; right: 36px; bottom: 22px; width: 160px; height: 140px; }
.paper-stack i { position: absolute; inset: 0; border: 1px solid #d1d3cf; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(11,19,32,.1); }
.paper-stack i:first-child { transform: translate(-18px,12px) rotate(-8deg); }
.paper-stack i:nth-child(2) { transform: translate(13px,7px) rotate(5deg); }
.paper-stack b { position: absolute; left: 20px; top: 24px; z-index: 2; color: #15243a; font-size: 26px; }
.paper-stack span { position: absolute; left: 20px; top: 65px; z-index: 2; color: #7a8493; font-size: 9px; font-weight: 800; }

.workflow-section { padding: 110px 0; border-top: 1px solid #dfe3e2; background: #fff; }
.workflow-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.workflow-copy { position: sticky; top: 118px; }
.workflow-copy h2 { font-size: clamp(38px,4.5vw,58px); }
.workflow-copy p { margin: 24px 0 28px; color: #697486; font-size: 15px; line-height: 1.72; }
.workflow-list { border-top: 1px solid #dce2e2; }
.workflow-list article { display: grid; grid-template-columns: 68px 1fr; gap: 20px; padding: 30px 4px; border-bottom: 1px solid #dce2e2; }
.workflow-list article > span { color: #0b806b; font-size: 12px; font-weight: 900; }
.workflow-list h3 { margin: 0 0 8px; color: #152235; font-size: 22px; letter-spacing: -.025em; }
.workflow-list p { margin: 0; color: #707b8b; font-size: 13px; line-height: 1.6; }

.print-section { position: relative; overflow: hidden; padding: 110px 0; background: #0b1525; color: #fff; }
.print-section::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 42px 42px; }
.print-section-grid { position: relative; display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: center; }
.light-kicker { color: #72dbc7; }
.print-copy h2 { color: #fff; }
.print-copy > p { max-width: 580px; margin: 24px 0; color: #bbc5d1; font-size: 15px; line-height: 1.72; }
.print-copy ul { margin: 26px 0 0; padding: 0; list-style: none; }
.print-copy li { margin: 12px 0; color: #e4e9ef; font-size: 13px; }
.print-copy li span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 10px; border-radius: 50%; background: rgba(114,219,199,.14); color: #72dbc7; font-size: 10px; }
.calibration-visual { display: grid; place-items: center; min-height: 480px; }
.calibration-sheet { position: relative; width: 380px; max-width: 100%; aspect-ratio: 210/297; padding: 34px; border-radius: 6px; background: #fff; color: #111827; box-shadow: 0 40px 90px rgba(0,0,0,.38); transform: rotate(3deg); }
.calibration-sheet::before { content:""; position:absolute; inset:15px; border:1px solid #e4e7e8; pointer-events:none; }
.sheet-tag { position: relative; display: block; padding-bottom: 18px; border-bottom: 2px solid #111827; font-size: 11px; font-weight: 900; }
.ruler { position: relative; margin-top: 62px; padding-top: 13px; border-top: 2px solid #111827; }
.ruler::before { content:""; position:absolute; left:0; right:0; top:-8px; height:7px; background: repeating-linear-gradient(90deg,#111827 0 1px,transparent 1px 10%); }
.ruler b { font-size: 10px; }
.square { width: 118px; height: 118px; display: grid; place-items: center; margin-top: 56px; border: 2px solid #111827; }
.square b { font-size: 10px; }
.calibration-note { position:absolute; left:34px; right:34px; bottom:40px; color:#687384; font-size:9px; line-height:1.6; }

.pricing-section { padding: 112px 0; background: #f6f7f5; }
.pricing-intro { max-width: none; display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; align-items: end; margin-bottom: 48px; }
.pricing-intro h2 { font-size: clamp(38px,4.8vw,62px); }
.pricing-intro > p { margin: 0; }
.pricing-cards-v2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.pricing-cards-v2 article { display: flex; flex-direction: column; min-height: 450px; padding: 30px; border: 1px solid #dce2e2; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(11,19,32,.04); }
.pricing-cards-v2 article.plan-featured { background: #111c2d; border-color: #111c2d; color: #fff; box-shadow: 0 24px 60px rgba(11,19,32,.2); }
.plan-label { align-self: flex-start; padding: 6px 9px; border-radius: 7px; background: #edf1ef; color: #667284; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.plan-featured .plan-label { background: rgba(114,219,199,.13); color: #72dbc7; }
.pricing-cards-v2 h3 { margin: 26px 0 10px; font-size: 25px; letter-spacing: -.03em; }
.plan-price { margin-bottom: 26px; font-size: 36px; font-weight: 900; letter-spacing: -.04em; }
.plan-price small { color: #8290a1; font-size: 12px; font-weight: 700; }
.pricing-cards-v2 ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.pricing-cards-v2 li { position: relative; margin: 13px 0; padding-left: 22px; color: #667284; font-size: 13px; line-height: 1.45; }
.pricing-cards-v2 li::before { content:"✓"; position:absolute; left:0; color:#0c8c75; font-weight:900; }
.plan-featured li { color: #c2cbd6; }
.plan-featured li::before { color: #72dbc7; }
.pricing-cards-v2 .btn { width: 100%; }

.faq-section { padding: 110px 0; border-top: 1px solid #dfe3e2; background: #fff; }
.faq-grid-v2 { display: grid; grid-template-columns: .65fr 1.35fr; gap: 100px; }
.faq-title { position: sticky; top: 118px; align-self: start; }
.faq-title h2 { font-size: clamp(38px,4.4vw,56px); }
.faq-title p { max-width: 360px; margin-top: 18px; color: #6b7686; line-height: 1.65; }
.faq-v2 { display: block; }
.faq-v2 details { border: 0; border-bottom: 1px solid #dce2e2; border-radius: 0; background: transparent; }
.faq-v2 details:first-child { border-top: 1px solid #dce2e2; }
.faq-v2 summary { padding: 24px 0; font-size: 16px; }
.faq-v2 details p { padding: 0 0 24px; font-size: 14px; line-height: 1.7; }

.final-cta-section { padding: 30px 0 90px; background: #fff; }
.final-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 46px 52px; border-radius: 26px; background: #101b2c; color: #fff; box-shadow: 0 26px 70px rgba(11,19,32,.18); }
.final-cta-card > div > span { color: #72dbc7; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.final-cta-card h2 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.04em; }
.final-cta-card p { margin: 0; color: #bbc5d1; }
.final-cta-card .btn { flex: 0 0 auto; }

.site-footer-v2 { background: #f4f5f3; color: #536071; }
.footer-main-v2 { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 52px; padding: 64px 0 52px; }
.footer-main-v2 h4 { margin: 0 0 18px; color: #172437; font-size: 12px; }
.footer-main-v2 > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer-main-v2 a { font-size: 12px; }
.footer-main-v2 p { margin: 0; color: #778293; font-size: 11px; line-height: 1.6; }
.footer-brand-v2 > p { max-width: 330px; margin-top: 18px; }

/* Editor refinement */
.editor-body { --editor-header-h: 68px; background: #edf1f3; color: #101a2a; }
.editor-header { height: var(--editor-header-h); grid-template-columns: 220px minmax(240px, 1fr) auto; gap: 20px; padding: 0 18px; border: 0; background: #0c1727; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.editor-header .brand { color: #fff; font-size: 14px; }
.editor-header .brand img { width: 38px; height: 38px; padding: 2px; border-radius: 11px; background: #fff; }
.editor-title-wrap { gap: 12px; }
.project-title-input { width: min(520px,100%); padding: 9px 12px; color: #fff; font-size: 15px; font-weight: 800; }
.project-title-input:hover, .project-title-input:focus { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.save-status { color: #8290a3; }
.editor-header .btn-secondary { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }
.editor-header .btn-secondary:hover { background: rgba(255,255,255,.13); }
.editor-header .btn-accent { background: #10a087; box-shadow: none; }
.quota-chip { background: rgba(114,219,199,.12); color: #7be3ce; }
.editor-shell { height: calc(100vh - var(--editor-header-h)); grid-template-columns: 300px minmax(600px,1fr) 330px; }
.editor-sidebar, .editor-inspector { border-color: #d9dfe3; background: #f8f9f9; }
.editor-sidebar { box-shadow: 4px 0 16px rgba(11,19,32,.03); }
.editor-inspector { box-shadow: -4px 0 16px rgba(11,19,32,.03); }
.sidebar-head { padding: 18px 16px 14px; border-color: #dfe4e7; background: rgba(248,249,249,.96); }
.sidebar-head h2 { margin-bottom: 13px; color: #172437; font-size: 15px; letter-spacing: -.01em; }
.search-wrap::before { content: "⌕"; left: 13px; top: 7px; color: #8490a0; }
.search-wrap .input { height: 38px; border-color: #d8dfe3; border-radius: 10px; background: #fff; }
.filter-row { gap: 7px; }
.filter-row select { height: 35px; border-color: #d8dfe3; border-radius: 9px; background: #fff; }
.sidebar-head #customDeviceBtn { min-height: 35px; border-style: dashed; background: #fff; color: #27374c; }
.catalog-list { padding: 10px 10px 18px; }
.catalog-item { grid-template-columns: 44px 1fr 26px; gap: 10px; margin-bottom: 7px; padding: 10px; border-color: transparent; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 rgba(11,19,32,.04), 0 3px 10px rgba(11,19,32,.035); transition: .16s ease; }
.catalog-item:hover { transform: translateY(-1px); border-color: #9fd2c8; background: #f3fbf8; box-shadow: 0 7px 18px rgba(11,19,32,.07); }
.device-thumb { width: 44px; height: 50px; border-color: #97a2ae; border-radius: 6px; background: linear-gradient(180deg,#fff,#eef1f3); font-size: 9px; }
.catalog-item h3 { color: #1a283b; font-size: 11px; }
.catalog-item p { color: #7d8897; font-size: 9px; }
.catalog-add { width: 26px; height: 26px; border-radius: 7px; background: #142239; font-size: 15px; }
.editor-main { background-color: #edf1f3; background-image: radial-gradient(rgba(69,82,99,.12) .7px, transparent .7px); background-size: 16px 16px; }
.editor-toolbar { min-width: 800px; padding: 10px 18px; border-color: #d9e0e4; background: rgba(248,250,250,.95); box-shadow: 0 3px 12px rgba(11,19,32,.04); }
.editor-toolbar .btn-secondary { min-height: 36px; border-color: #d7dee2; border-radius: 9px; background: #fff; }
.editor-toolbar .icon-btn { width: 36px; height: 36px; border-color: #d7dee2; border-radius: 9px; }
.editor-tabs { padding: 3px; border: 1px solid #d4dce0; border-radius: 10px; background: #e7ecef; }
.editor-tab { min-height: 32px; border-radius: 7px; color: #667285; font-size: 11px; }
.editor-tab.active { color: #102036; box-shadow: 0 2px 9px rgba(11,19,32,.1); }
.workspace { min-width: 800px; padding: 24px 28px 44px; }
.board-card { margin-bottom: 20px; border-color: #d4dce0; border-radius: 17px; box-shadow: 0 8px 22px rgba(11,19,32,.065); }
.board-card.selected { border-color: #48a995; box-shadow: 0 0 0 3px rgba(16,151,127,.1), 0 12px 30px rgba(11,19,32,.08); }
.board-card-head { min-height: 52px; padding: 12px 16px; border-color: #e0e5e8; background: #fbfcfc; }
.row-name { width: 190px; color: #162338; font-size: 14px; }
.row-meta { padding: 5px 8px; border-radius: 7px; background: #eef2f3; color: #6d7887; font-size: 10px; font-weight: 750; }
.row-actions .icon-btn { width: 34px; height: 34px; background: #fff; }
.din-canvas { margin: 20px 18px 12px; padding: 18px 13px 20px; border-color: #c8d1d7; border-radius: 12px; background: linear-gradient(180deg,#f9fbfb,#eef2f4); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset; }
.din-devices { min-height: 112px; border-bottom-width: 8px; border-bottom-color: #9faab5; }
.din-device { height: 96px; padding: 9px 4px 7px; border-color: #8894a1; border-radius: 6px 6px 0 0; box-shadow: 0 2px 0 rgba(255,255,255,.7) inset; }
.din-device.selected { border-color: #10977f; background: linear-gradient(#fff,#e3f4f0); }
.device-quick-delete {
  position: absolute; top: -10px; right: -8px; z-index: 8;
  width: 24px; height: 24px; display: grid; place-items: center;
  padding: 0; border: 2px solid #fff; border-radius: 50%;
  background: #b42318; color: #fff; box-shadow: 0 5px 14px rgba(180,35,24,.28);
  font-size: 16px; font-weight: 900; line-height: 1;
  opacity: 0; transform: scale(.86); pointer-events: none;
  transition: opacity .12s ease, transform .12s ease, background .12s ease;
}
.din-device:hover .device-quick-delete,
.din-device.selected .device-quick-delete { opacity: 1; transform: scale(1); pointer-events: auto; }
.device-quick-delete:hover { background: #8f1d14; }
.device-quick-delete:focus-visible { opacity: 1; transform: scale(1); pointer-events: auto; outline: 3px solid rgba(180,35,24,.22); outline-offset: 2px; }
.row-target-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 7px; background: #e3f4ef; color: #087461; font-size: 9px; font-weight: 850; white-space: nowrap; }
.row-target-badge::before { content: "+"; width: 15px; height: 15px; display: grid; place-items: center; border-radius: 50%; background: #10977f; color: #fff; font-size: 11px; }

.device-brand { font-size: 7.5px; }
.device-lever { width: min(24px,70%); height: 27px; background: #e5e9ed; }
.device-code { font-size: 9px; }
.empty-modules { min-height: 96px; border-color: #bec7ce; background: rgba(255,255,255,.38); }
.din-label-strip { margin-top: 12px; border-radius: 5px; box-shadow: 0 1px 0 rgba(255,255,255,.5); }
.strip-segment { min-height: 62px; padding: 5px 6px; }
.strip-icon { width: 22px; height: 22px; }
.strip-main { font-size: 8.7px; }
.strip-sub { font-size: 6.8px; }
.row-footer { padding: 9px 18px 16px; }
.usage-meter { height: 5px; background: #e2e7ea; }
.usage-meter span { background: #10977f; }
.add-row-card { min-height: 84px; border-color: #aebbc3; border-radius: 15px; background: rgba(255,255,255,.72); color: #536176; }
.add-row-card:hover { border-color: #10977f; background: #f4fbf9; }
.inspector-content { padding: 18px 16px 34px; }
.inspector-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspector-head-row h2 { margin: 0; }
.inspector-close { display: none; width: 34px; height: 34px; }
.inspector-selection-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; margin: -4px 0 16px; border: 1px solid #c9dfd9; border-radius: 11px; background: #eef9f6; }
.inspector-selection-card span { display: block; margin-bottom: 2px; color: #667285; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.inspector-selection-card b { display: block; max-width: 178px; overflow: hidden; color: #153229; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.inspector-selection-card .btn { flex: 0 0 auto; }
.inspector-shortcut { display: block; margin-top: 6px; color: #7a8594; font-size: 9px; }

.inspector-section { padding-bottom: 20px; margin-bottom: 20px; }
.inspector-section h3 { margin-bottom: 14px; color: #596678; font-size: 10px; letter-spacing: .12em; }
.inspector-content .input, .inspector-content .select { min-height: 39px; border-color: #d5dde2; border-radius: 9px; background: #fff; }
.color-grid { grid-template-columns: repeat(8,1fr); gap: 7px; }
.color-swatch { border-radius: 8px; }
.icon-grid { gap: 7px; max-height: 230px; }
.icon-choice { border-color: #d8dfe3; border-radius: 10px; }
.preview-card { padding: 28px; border-color: #d5dde1; border-radius: 17px; box-shadow: 0 8px 22px rgba(11,19,32,.06); }
.preview-card h2 { font-size: 21px; }

@media (max-width: 1180px) {
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-copy { max-width: 850px; }
  .product-stage { min-height: 590px; }
  .app-window { margin: 0 auto; }
  .home-trust-row { max-width: 760px; }
  .manufacturer-inner { align-items: flex-start; flex-direction: column; gap: 15px; }
  .manufacturer-list { width: 100%; }
  .manufacturer-list span:first-child { border-left: 0; }
  .feature-panel-large { grid-template-columns: 1fr; min-height: 760px; }
  .feature-board-visual { max-width: 620px; }
  .workflow-grid, .faq-grid-v2 { gap: 60px; }
  .editor-shell { grid-template-columns: 270px minmax(650px,1fr); }
  .editor-inspector { top: var(--editor-header-h); }
}

@media (max-width: 900px) {
  .home-v2 .container { width: min(calc(100% - 28px), 1280px); }
  .home-hero { padding: 68px 0 72px; }
  .home-hero h1 { font-size: clamp(50px,10vw,72px); }
  .product-stage { min-height: 520px; }
  .app-window { transform: none; }
  .print-card { right: 0; }
  .status-card { left: 0; }
  .manufacturer-list { grid-template-columns: repeat(4,1fr); }
  .manufacturer-list span { border-bottom: 1px solid #e2e6e5; }
  .product-section, .workflow-section, .print-section, .pricing-section, .faq-section { padding: 82px 0; }
  .product-feature-grid { grid-template-columns: 1fr; }
  .feature-panel-large { grid-row: auto; min-height: 680px; }
  .workflow-grid, .print-section-grid, .faq-grid-v2 { grid-template-columns: 1fr; gap: 50px; }
  .workflow-copy, .faq-title { position: static; }
  .calibration-visual { min-height: 430px; }
  .pricing-intro { grid-template-columns: 1fr; gap: 20px; }
  .pricing-intro > p { margin: 0; }
  .pricing-cards-v2 { grid-template-columns: 1fr; }
  .pricing-cards-v2 article { min-height: auto; }
  .footer-main-v2 { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-main-v2 > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 680px) {
  .site-header-v2 { height: 68px; }
  .site-header-v2 .container { min-height: 68px; }
  .brand-v2 img { width: 36px; height: 36px; }
  .header-login, .header-cta { display: none; }
  .site-header.nav-open .site-nav { top: 68px; }
  .home-hero { padding-top: 52px; }
  .home-hero::before { mask-image: linear-gradient(to bottom,black,transparent 75%); }
  .product-badge { font-size: 9px; }
  .home-hero h1 { margin-top: 20px; font-size: clamp(43px,14vw,60px); }
  .home-hero-copy > p { font-size: 16px; }
  .home-hero-actions { align-items: stretch; flex-direction: column; gap: 16px; }
  .home-hero-actions .btn { width: 100%; }
  .home-trust-row { grid-template-columns: 1fr; gap: 12px; }
  .home-trust-row div { padding: 0; }
  .home-trust-row div + div { padding: 12px 0 0; border-top: 1px solid #dfe4e2; border-left: 0; }
  .product-stage { min-height: 430px; margin-top: 10px; }
  .app-window { width: 720px; max-width: 116%; margin-left: -8%; border-radius: 14px; }
  .app-window-body { grid-template-columns: 115px 1fr; min-height: 340px; }
  .mock-catalog { padding: 10px 7px; }
  .mock-device { grid-template-columns: 25px 1fr; }
  .mock-device em { display: none; }
  .mock-board-card.second { display: none; }
  .print-card { width: 140px; bottom: -5px; }
  .status-card { bottom: 10px; }
  .manufacturer-list { grid-template-columns: repeat(2,1fr); }
  .manufacturer-list span:nth-child(odd) { border-left: 0; }
  .center-intro { text-align: left; }
  .section-intro h2, .workflow-copy h2, .print-copy h2, .faq-title h2 { font-size: 38px; }
  .section-intro > p { margin-left: 0; }
  .feature-panel { min-height: 330px; padding: 26px; border-radius: 19px; }
  .feature-panel-large { min-height: 650px; }
  .feature-board-visual { padding: 16px; transform: none; }
  .feature-rail-line { min-height: 88px; }
  .feature-rail-line i { height: 74px; font-size: 8px; }
  .workflow-list article { grid-template-columns: 48px 1fr; }
  .calibration-sheet { width: 300px; }
  .final-cta-card { align-items: stretch; flex-direction: column; padding: 34px 26px; }
  .final-cta-card .btn { width: 100%; }
  .footer-main-v2 { grid-template-columns: 1fr 1fr; gap: 38px 24px; }
  .footer-main-v2 > div:first-child, .footer-main-v2 > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .editor-header { height: 62px; grid-template-columns: auto 1fr; background: #0c1727; }
}

/* Compact one-module labels: keep the board readable at normal zoom. */
.strip-segment[data-modules="1"] { padding: 3px 2px; }

@media (max-width: 680px) {
  .home-hero-grid, .home-hero-copy, .product-stage { min-width: 0; }
  .home-hero-grid { overflow: hidden; }
  .home-hero h1 { font-size: clamp(38px, 10.2vw, 42px); overflow-wrap: normal; }
  .home-hero-actions, .home-hero-actions .btn { width: 100%; max-width: 100%; min-width: 0; }
  .home-hero-actions .btn { padding-inline: 14px; }
  .app-window { width: 100%; max-width: 100%; margin-left: 0; }
  .print-card { right: 3px; }
  .status-card { left: 3px; }
}


/* UX hardening for common laptop widths. The previous three-column layout
   required more than 1430 px and clipped row actions on 1366 px screens. */
@media (max-width: 1480px) and (min-width: 761px) {
  .editor-shell { grid-template-columns: 280px minmax(0,1fr); }
  .editor-main { min-width: 0; }
  .editor-toolbar { min-width: 680px; }
  .workspace { min-width: 680px; padding-inline: 20px; }
  .editor-inspector {
    position: fixed; top: calc(var(--editor-header-h) + 56px); right: 0; bottom: 0; z-index: 90;
    width: min(360px, 92vw); transform: translateX(105%);
    border-left: 1px solid #d5dde2; box-shadow: -18px 0 46px rgba(11,19,32,.2);
    transition: transform .18s ease;
  }
  .editor-inspector.open { transform: translateX(0); }
  .inspector-close { display: inline-grid; place-items: center; }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .editor-shell { grid-template-columns: 235px minmax(0,1fr); }
  .editor-toolbar { min-width: 620px; padding-inline: 12px; }
  .workspace { min-width: 620px; padding-inline: 14px; }
  .row-name { width: 150px; }
  .row-target-badge { display: none; }
}


/* ElShpora integration. Keep the v0.3 geometry and print dimensions. */
:root{--ink:#213f45;--muted:#5c6967;--navy:#213f45;--navy-2:#2d5056;--accent:#b64a20;--accent-strong:#923b19;--accent-soft:#fff0df;--surface:#fffefa;--surface-soft:#f7f6f0;--surface-deep:#eeefe9;--line:#d9dfd9;font-family:"Segoe UI",Arial,sans-serif}
.editor-body{--editor-header-h:112px;background:#f7f6f0}
.editor-header{height:74px;background:#fffefa;border-bottom:2px solid #213f45;grid-template-columns:150px minmax(250px,1fr) auto;gap:16px}
.editor-header .brand{color:#213f45;font-size:26px;font-weight:600;letter-spacing:-.015em}
.editor-title-wrap{display:grid;grid-template-columns:minmax(160px,1fr) auto;column-gap:12px;row-gap:0}
.editor-heading{grid-column:1/-1;font-size:13px;font-weight:600;color:#5c6967;margin:0}
.project-title-input{color:#213f45;padding:4px 0;max-width:100%}
.project-title-input:hover,.project-title-input:focus{background:#eeefe9;border-color:#aebdb4}
.save-status{color:#5c6967}
.editor-header .btn-secondary{color:#213f45;background:#eeefe9;border-color:#d9dfd9}
.editor-header .btn-secondary:hover{background:#e2e8df}
.editor-header .btn-accent,.btn-primary,.btn-accent{background:#b64a20;color:white}
.marker-nav{height:38px;display:flex;align-items:center;gap:12px;padding:0 18px;background:#eeefe9;border-bottom:1px solid #d9dfd9;font-size:13px;color:#213f45}
.marker-local-note{margin-left:auto;color:#5c6967;font-size:12px}
.catalog-warning{margin:0;padding:12px 16px;background:#fff0df;border-bottom:1px solid #d9dfd9;color:#633d28;font-size:12px;line-height:1.5}
.catalog-entry { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.catalog-entry .catalog-item { grid-template-columns: 44px minmax(0,1fr) 26px; margin: 0; box-shadow: none; }
.catalog-entry .catalog-item:hover { transform: none; }
.catalog-item-copy { min-width: 0; overflow-wrap: anywhere; }
.catalog-model, .catalog-detail, .catalog-article { display: block; }
.catalog-model { color: var(--ink); font-size: 12px; font-weight: 750; line-height: 1.4; }
.catalog-detail { margin-top: 4px; color: #425267; font-size: 11px; line-height: 1.45; }
.catalog-article { margin-top: 4px; color: #637083; font-size: 10px; line-height: 1.45; }
.catalog-template { display: inline-block; margin-top: 5px; padding: 2px 6px; border-radius: 4px; background: #f4eee4; color: #634822; font-size: 10px; }
.catalog-source { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-top: 1px solid var(--line); color: #175f63; font-size: 12px; line-height: 1.4; text-decoration: underline; overflow-wrap: anywhere; }
.catalog-source:focus-visible { outline: 3px solid #237d83; outline-offset: -3px; }
.catalog-favorite { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); background: #fff; color: #425267; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.catalog-favorite span { font-size: 22px; line-height: 1; }
.catalog-favorite[aria-pressed="true"] { color: #725016; background: #fff7e8; }
.catalog-favorite:hover { background: #fff0df; }
.catalog-favorite:focus-visible { outline: 3px solid #237d83; outline-offset: -3px; }
.catalog-favorites-filter { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 4px; font-size: 13px; cursor: pointer; }
.catalog-favorites-filter input { width: 18px; height: 18px; accent-color: #237d83; }
.catalog-favorites-status { margin: 0; color: #637083; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.catalog-favorites-status.is-error { color: #982c22; }
.sidebar-head,.editor-sidebar,.editor-inspector{background:#f7f6f0}
.catalog-item:hover{background:#fff0df;border-color:#c7a185}
.offline-banner{display:none}.offline-banner.active{display:block;padding:8px 18px;background:#fff0df}
.btn:focus-visible,.icon-btn:focus-visible,a:focus-visible{outline:3px solid #1975bf;outline-offset:3px}
@media(max-width:1000px){.editor-header{grid-template-columns:125px minmax(180px,1fr) auto;gap:8px}.editor-header .brand{font-size:22px}.save-status{font-size:10px}.marker-local-note{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{.print-page{overflow:visible}.print-strip-group{break-inside:avoid;page-break-inside:avoid}.print-page-header,.print-table{overflow-wrap:anywhere}.print-table{table-layout:fixed}.print-table tr{break-inside:avoid;page-break-inside:avoid}.print-root .print-page-header h1{max-width:120mm}}
.device-select-button{position:absolute;inset:0;z-index:1;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.device-select-button:focus-visible{outline:3px solid #1975bf;outline-offset:3px}
@media(min-width:761px) and (max-width:1480px){.editor-inspector:not(.open){visibility:hidden;pointer-events:none}.editor-inspector.open{visibility:visible;pointer-events:auto}}

/* The work area keeps its full width. On smaller screens the catalogue and
   properties use separate drawers, while wide rows and tables scroll locally. */
.editor-body .editor-toolbar { min-width: 0; flex-wrap: wrap; }
.editor-body .workspace { min-width: 0; }
.editor-body .toolbar-group { min-width: 0; flex-wrap: wrap; }
.editor-body .editor-main, .editor-body .workspace-section, .editor-body .preview-card { min-width: 0; max-width: 100%; }
.catalog-opener, .catalog-close, .mobile-action-label { display: none; }
.catalog-target { margin: 10px 0; color: var(--ink); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.editor-panel-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(13,23,39,.42); }
.editor-panel-backdrop[hidden] { display: none; }
.editor-body .board-card-head-left { min-width: 0; flex-wrap: wrap; }
.editor-body .board-card-head { flex-wrap: wrap; }
.editor-body .row-name { min-width: 0; max-width: 100%; }
.editor-body .row-actions { flex-shrink: 0; }
.editor-body .data-table-wrap, .editor-body .marking-preview-row, .editor-body .din-canvas { max-width: 100%; overscroll-behavior-x: contain; }
.editor-body .inspector-selection-card { min-width: 0; }
.editor-body .inspector-selection-card > div { min-width: 0; }
.editor-body .inspector-selection-card b { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1480px) {
  .editor-body .editor-inspector { position: fixed; inset: 0 0 0 auto; z-index: 110; width: min(380px, 100%); max-width: 100%; display: none; transform: none; visibility: hidden; pointer-events: none; }
  .editor-body .editor-inspector.open { display: block; transform: none; visibility: visible; pointer-events: auto; }
  .editor-body .inspector-close { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; }
}
@media (max-width: 1100px) {
  .editor-body .editor-shell { grid-template-columns: minmax(0,1fr); }
  .editor-body .editor-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 110; width: min(420px, 100%); max-width: 100%; display: none; transform: none; visibility: hidden; pointer-events: none; box-shadow: 18px 0 46px rgba(11,19,32,.2); }
  .editor-body .editor-sidebar.open { display: block; transform: none; visibility: visible; pointer-events: auto; }
  .editor-body .catalog-opener { display: inline-flex; }
  .editor-body .catalog-close { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; }
}
@media (max-width: 760px) {
  .editor-body { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .editor-body .editor-header { height: auto; flex: 0 0 auto; display: grid; grid-template-columns: minmax(0,1fr); gap: 6px; padding: 8px 12px; }
  .editor-body .editor-header .brand { font-size: 22px; width: fit-content; }
  .editor-body .editor-title-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 8px; }
  .editor-body .editor-heading { font-size: 12px; }
  .editor-body .project-title-input { min-width: 0; width: 100%; min-height: 44px; padding: 6px; font-size: 16px; }
  .editor-body .save-status { max-width: 104px; white-space: normal; font-size: 10px; }
  .editor-body .editor-actions { display: flex; gap: 8px; min-width: 0; }
  .editor-body .editor-actions .btn { flex: 1 1 0; }
  .editor-body .marker-nav { height: auto; min-height: 38px; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; padding: 0 12px; font-size: 12px; }
  .editor-body .marker-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .editor-body .marker-local-note { display: none; }
  .editor-body .editor-shell { display: grid; flex: 1 1 auto; height: auto; min-height: 0; width: 100%; }
  .editor-body .editor-main { min-height: 0; overflow: auto; }
  .editor-body .editor-toolbar { position: static; gap: 10px; padding: 10px 12px; }
  .editor-body .toolbar-group { width: 100%; gap: 8px; }
  .editor-body .toolbar-separator { display: none; }
  .editor-body .btn, .editor-body .icon-btn, .editor-body .editor-tab { min-height: 44px; }
  .editor-body .icon-btn { width: 44px; height: 44px; flex: 0 0 44px; }
  .editor-body .json-action { width: auto; flex: 1 1 120px; display: inline-flex; justify-content: center; gap: 6px; padding: 8px; font-size: 13px; }
  .editor-body .mobile-action-label { display: inline; }
  .editor-body .editor-tabs { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; }
  .editor-body .editor-tab { min-width: 0; padding: 6px; font-size: 12px; }
  .editor-body .workspace { padding: 12px; }
  .editor-body .preview-card { padding: 14px; }
  .editor-body .board-card-head { padding: 10px; gap: 8px; }
  .editor-body .board-card-head-left { display: grid; width: 100%; grid-template-columns: 44px minmax(0,1fr); gap: 4px 8px; }
  .editor-body .row-select-radio { width: 44px; height: 44px; margin: 0; }
  .editor-body .row-name { width: 100%; min-height: 44px; padding: 6px; font-size: 16px; }
  .editor-body .row-meta, .editor-body .row-target-badge { grid-column: 2; }
  .editor-body .row-target-badge { display: inline-flex; width: fit-content; max-width: 100%; white-space: normal; }
  .editor-body .row-actions { width: 100%; justify-content: flex-end; }
  .editor-body .din-canvas { margin: 10px; padding: 14px 10px; }
  .editor-body .din-devices, .editor-body .din-label-strip { grid-template-columns: repeat(var(--capacity,12),minmax(44px,1fr)); min-width: calc(var(--capacity,12) * 44px); }
  .editor-body .din-scale { grid-auto-columns: minmax(44px,1fr); min-width: calc(var(--capacity,12) * 44px); }
  .editor-body .device-quick-delete, .editor-body .inspector-shortcut { display: none; }
  .editor-body .row-footer { padding-inline: 10px; flex-wrap: wrap; }
  .editor-body .editor-sidebar, .editor-body .editor-inspector { width: 100%; border: 0; }
  .editor-body .sidebar-head { padding: 12px; }
  .editor-body .catalog-item { grid-template-columns: 44px minmax(0,1fr) 44px; overflow-wrap: anywhere; }
  .editor-body .catalog-add { width: 44px; height: 44px; }
  .editor-body .input, .editor-body .select, .editor-body .textarea, .editor-body .filter-row select { min-width: 0; max-width: 100%; min-height: 44px; font-size: 16px; }
  .editor-body .filter-row, .editor-body .form-grid { grid-template-columns: minmax(0,1fr); }
  .editor-body .inspector-content { padding: 16px 12px 28px; }
  .editor-body .inspector-grid { grid-template-columns: minmax(0,1fr); }
  .editor-body .color-grid { grid-template-columns: repeat(4,minmax(44px,1fr)); }
  .editor-body .color-swatch, .editor-body .icon-choice { min-width: 44px; min-height: 44px; }
  .editor-body .icon-grid { grid-template-columns: repeat(5,minmax(44px,1fr)); }
  .editor-body .modal-backdrop { padding: 10px; }
  .editor-body .modal { max-width: 100%; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .editor-body .modal-head, .editor-body .modal-body, .editor-body .modal-footer { padding: 14px; }
  .editor-body .modal-head h2 { min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
  .editor-body .modal-head .icon-btn { flex-shrink: 0; }
  .editor-body .modal-footer { flex-wrap: wrap; }
  .editor-body .modal-footer .btn { flex: 1 1 100px; }
  .editor-body .toast-stack { left: 12px; right: 12px; max-width: none; }
  .editor-body .toast { overflow-wrap: anywhere; }
}
@media print {
  .editor-body { height: auto; min-height: 0; display: block; overflow: visible; }
}

.device-function{display:flex;align-items:center;justify-content:center;min-height:25px;font-size:11px;font-weight:800;letter-spacing:.02em;color:#23455b;border:1px solid #b6c6d0;border-radius:3px;background:#edf3f6}

/* Bulk labels stay readable as individual mappings on narrow screens. */
.editor-body .row-actions { flex-wrap: wrap; }
.bulk-labels-modal { display: flex; flex-direction: column; overflow: hidden; }
.bulk-labels-modal .modal-head, .bulk-labels-modal .modal-footer { flex-shrink: 0; }
.bulk-labels-modal .modal-body { min-height: 0; overflow: auto; }
.bulk-labels-row-name { margin-top: 0; font-weight: 700; overflow-wrap: anywhere; }
.bulk-labels-modal .textarea { width: 100%; resize: vertical; min-height: 120px; max-height: 240px; }
.bulk-labels-preview { margin: 0; padding: 0; list-style: none; max-height: 280px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 8px; }
.bulk-labels-preview li { padding: 10px 12px; overflow-wrap: anywhere; }
.bulk-labels-preview li + li { border-top: 1px solid var(--line); }
.bulk-labels-preview dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 8px 0 0; }
.bulk-labels-preview dt { font-size: 12px; color: var(--muted); }
.bulk-labels-preview dd { margin: 3px 0 0; white-space: pre-wrap; }
.bulk-labels-preview em { font-style: normal; color: var(--muted); }
@media (max-width: 480px) {
  .bulk-labels-preview dl { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .editor-body .row-actions [data-bulk-labels-row] { flex: 1 1 100%; }
}

/* Print options and paper cable tags use the same physical label box in preview and print. */
.print-options-backdrop .modal{display:flex;flex-direction:column;overflow:hidden}
.print-options-backdrop .modal-head,.print-options-backdrop .modal-footer{flex-shrink:0}
.print-options-backdrop .modal-body{min-height:0;overflow:auto}
.print-section-options{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:8px 12px}
.print-section-options label{display:flex;align-items:center;gap:8px;min-height:44px}
.print-options-backdrop .field label{overflow-wrap:anywhere}
.tag-measure-root{position:fixed;left:-10000px;top:0;visibility:hidden;pointer-events:none;width:188mm}
.cable-tag{box-sizing:border-box;width:var(--tag-width);height:var(--tag-height);padding:1.5mm;border:.2mm dashed #333;color:#000;background:#fff;font:10pt/1.15 Arial,sans-serif;flex:none}
.cable-tag-copy{height:100%;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-start;gap:1mm;white-space:pre-wrap;overflow-wrap:anywhere}
.cable-tag-copy b,.cable-tag-copy span{flex:none}
.cable-tags-grid{display:grid;grid-template-columns:repeat(var(--tag-columns),var(--tag-width));gap:2mm;width:188mm}
.cable-tags-preview{display:flex;gap:8px;max-width:100%;overflow:auto;padding:8px 0}
.cable-tags-header{height:20mm;display:flex;align-items:flex-start;justify-content:space-between;font:10pt Arial,sans-serif;box-sizing:border-box;padding-top:3mm}
@media print{.cable-tags-page{break-inside:avoid}.cable-tag{break-inside:avoid}body > .tag-measure-root{display:block!important}}

/* Backup status describes a request, never a confirmed download. */
.backup-notice {display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 18px; padding:12px 14px; border:1px solid #d5e1e7; border-radius:10px; background:#f5f8fa; color:#425b68;}
.backup-notice p {flex:1 1 280px; margin:0; font-size:13px; line-height:1.5; overflow-wrap:anywhere;}
.backup-notice p[data-state="changed"], .backup-notice p[data-state="unavailable"] {color:#875008;}
.backup-notice .btn {flex:none; min-height:44px;}
@media (max-width:600px) {.backup-notice {gap:8px; padding:10px 12px;} .backup-notice .btn {width:100%;}}

/* Optional dimensional filters stay outside the sticky catalog header. */
.catalog-filter-status {display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px;}
.catalog-filter-status p {margin:0; font-size:12px; line-height:1.4; color:#526573;}
.catalog-filter-status button {min-height:44px; flex:none;}
.catalog-dimensions {padding:0 14px 10px; border-bottom:1px solid var(--line); background:#f7f6f0;}
.catalog-dimensions summary {padding:12px 0; min-height:44px; font-size:13px; line-height:1.5; cursor:pointer; overflow-wrap:anywhere;}
.catalog-dimensions summary:focus-visible {outline:3px solid #197ca1; outline-offset:2px;}
.catalog-dimensions .filter-row {margin:0;}
.catalog-dimensions label {display:grid; gap:5px; min-width:0; font-size:12px; font-weight:600;}
.catalog-dimensions select {width:100%;}
.catalog-dimensions p {margin:10px 0 0; color:#526573; font-size:12px; line-height:1.5;}

/* Keep only the catalog title and exit visible; focused filters/cards must not hide under the header. */
.editor-sidebar .catalog-heading {position:sticky; top:0; z-index:5; margin:0; padding:12px; border-bottom:1px solid var(--line); background:#f7f6f0;}
.catalog-heading h2 {margin:0; color:#172437; font-size:15px;}
.editor-sidebar .sidebar-head {position:static;}
.editor-sidebar {scroll-padding-top:80px;}

/* Comparison is a page-local catalog view, separate from the board. */
.catalog-comparison-tools {display:flex; flex-wrap:wrap; gap:6px; margin-top:10px;}
.catalog-comparison-tools .btn {min-height:44px; flex:1 1 auto;}
.catalog-comparison-note {margin:6px 0 0; font-size:12px; line-height:1.5; color:#526573;}
.catalog-compare {width:100%; border:0; border-top:1px solid var(--line); background:#fff; text-align:left; padding:9px 12px; min-height:44px; font-size:12px; color:#263c45;}
.catalog-compare[aria-pressed="true"] {background:#e1f1ec; color:#115746; font-weight:700;}
.catalog-compare:focus-visible {outline:3px solid #197ca1; outline-offset:-3px;}
.comparison-backdrop .comparison-modal {width:min(1000px,100%); max-width:100%; max-height:calc(100dvh - 24px); display:flex; flex-direction:column;}
.comparison-modal .modal-head,.comparison-modal .modal-footer {flex:none;}
.comparison-modal .modal-body {min-height:0; overflow:auto; padding:16px;}
.comparison-modal .modal-head h2 {min-width:0; overflow-wrap:anywhere;}
.comparison-modal .modal-head .icon-btn {flex:0 0 44px; width:44px; height:44px;}
.comparison-modal .modal-footer {flex-wrap:wrap;}
.comparison-modal .modal-footer .btn {min-height:44px;}
.comparison-modal p {font-size:13px; line-height:1.5;}
.comparison-scroll-hint {color:#526573;}
.comparison-table-wrap {overflow:auto; max-width:100%; border:1px solid var(--line); border-radius:8px;}
.comparison-table-wrap:focus-visible {outline:3px solid #197ca1; outline-offset:2px;}
.comparison-table {border-collapse:separate; border-spacing:0; table-layout:fixed; width:100%; min-width:calc(140px + var(--compare-columns) * 210px); font-size:13px; line-height:1.5;}
.comparison-table caption {padding:10px; text-align:left; color:#526573;}
.comparison-table th,.comparison-table td {width:210px; padding:10px; vertical-align:top; border-bottom:1px solid var(--line); border-right:1px solid var(--line); overflow-wrap:anywhere; text-align:left;}
.comparison-table tr > :first-child {position:sticky; left:0; width:140px; background:#f2f5f3; z-index:1;}
.comparison-table thead th {background:#f8faf8;}
.comparison-model,.comparison-kind {display:block; margin-bottom:8px;}
.comparison-kind {font-size:12px; font-weight:400; color:#526573;}
.comparison-table .btn {min-height:44px;}
.comparison-table a {display:inline-block; padding:7px 0; color:#12634f;}
@media(max-width:480px){.comparison-backdrop {padding:8px;}.comparison-modal .modal-body {padding:10px;}.comparison-modal .modal-footer {padding:10px; gap:8px;}.comparison-modal .modal-footer .btn {flex:1 1 120px;}}

/* On narrow screens the label column must not cover focused controls in later columns. */
@media(max-width:600px){.comparison-table tr > :first-child {position:static;}}

/* Text-only notifications must not intercept editor controls. */
.editor-body .toast-stack { pointer-events: none; }

/* Visible names make pictogram choices understandable without hovering. */
.editor-body .icon-grid { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:270px; }
.editor-body .icon-choice { aspect-ratio:auto; min-width:0; min-height:80px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; padding:9px 7px; color:var(--ink); font-size:14px; line-height:1.3; }
.editor-body .icon-choice svg { flex-shrink:0; }
.icon-choice-label { max-width:100%; overflow-wrap:anywhere; }
.icon-current { margin:0 0 10px; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }

/* Optional, manually entered cable-end addresses. */
.cable-address-fields summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.cable-address-fields summary:focus-visible{outline:3px solid #197ca1;outline-offset:2px}
.cable-address-fields .help{margin:0 0 12px}
.cable-tag-copy[data-addresses]{gap:.5mm}
.cable-tag-copy .cable-tag-address{font-size:9pt;line-height:1.1}

/* Manual purchase extras are outside the board and printed device specification. */
.purchase-extras{margin-top:24px;border-top:1px solid var(--line);padding-top:12px}
.purchase-extras summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:700;overflow-wrap:anywhere}
.purchase-extras summary:focus-visible{outline:3px solid #197ca1;outline-offset:2px}
.purchase-extras-list{padding:0;list-style:none;margin:16px 0}
.purchase-extra{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.purchase-extra>div{min-width:0;overflow-wrap:anywhere}
.purchase-extra p{margin:6px 0 0}
.purchase-extra-actions{display:flex;gap:8px;flex-wrap:wrap;flex-shrink:0}
.purchase-extras .btn,.purchase-extra-modal .btn,.purchase-extra-modal .icon-btn{min-height:44px}
.purchase-extra-modal .modal-head,.purchase-extra-modal .modal-footer{flex:none}
.purchase-extra-modal{display:flex;flex-direction:column;overflow:hidden}
.purchase-extra-modal .modal-body{min-height:0;overflow:auto}
@media(max-width:600px){.purchase-extra{align-items:flex-start;flex-direction:column;gap:10px}.purchase-extra-actions{width:100%}.purchase-extra-actions .btn{flex:1}.purchase-extra-modal input{font-size:16px}}

.purchase-extra-modal textarea{min-height:44px;max-height:140px;resize:vertical}
@media(max-width:600px){.purchase-extra-modal textarea{font-size:16px}}
