:root {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  color: #202c3d;
  background: #f6f7f9;
  font-size: 14px;
  font-synthesis: none;
  --blue: #1878dc;
  --line: #e7ebf0;
  --muted: #8590a0;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { outline-offset: 4px; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--blue); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; font-weight: 650; letter-spacing: -.8px; }
h2 { font-size: 18px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 17px; border: 1px solid #dfe5ec; border-radius: 8px;
  background: white; color: #42516a; font-weight: 600; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: #f3f7fc; border-color: #b6cce8; }
.btn.primary { background: var(--blue); color: white; border-color: var(--blue); }
.btn.primary:hover { background: #1168c2; }
.btn.secondary { background: white; }
.btn svg, .icon-button svg, .text-button svg { width: 17px; height: 17px; flex-shrink: 0; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #8590a0; }
.icon-button:hover { background: #f1f4f8; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; background: none; color: #66768c; font-size: 12px; font-weight: 500; }
.text-button:hover { color: var(--blue); }
.brand { display: flex; align-items: center; }
.brand img { width: 112px; height: 63px; object-fit: contain; }
.brand-group { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.brand-divider { width: 1px; height: 23px; background: var(--line); }
.product-name { color: #69768a; font-size: 15px; font-weight: 500; }
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  height: 80px; padding: 0 max(30px, calc((100vw - 1240px) / 2));
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
  background: white; border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav-item { background: none; border: 0; padding: 11px 17px; border-radius: 7px; color: #7a8595; font-size: 13px; font-weight: 500; white-space: nowrap; }
.nav-item:hover { background: #f4f7fb; }
.nav-item.active { color: var(--blue); background: #edf5ff; font-weight: 600; }
.header-account { display: flex; align-items: center; gap: 14px; }
.identity { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; padding: 0; background: none; color: inherit; }
.identity strong { display: block; font-size: 12px; font-weight: 600; }
.identity small { display: block; font-size: 10px; color: #919aab; margin-top: 3px; }
.avatar { height: 34px; width: 34px; display: grid; place-items: center; border-radius: 50%; background: #eef2f8; color: #647795; font-weight: 600; }
.content { width: min(1240px, calc(100% - 60px)); margin: 0 auto; padding: 36px 0 40px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 29px; }
.page-heading h1 { margin-bottom: 10px; }
.page-heading p { color: #8b95a4; font-size: 14px; line-height: 1.6; }
.page-kicker { display: flex; gap: 7px; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; color: #8a96a6; margin-bottom: 13px; }
.tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.eyebrow { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 1.8px; color: #8a96a6; margin-bottom: 10px; }
.heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 5px; font-size: 10px; background: #eff4fa; color: #7b8da5; font-weight: 600; }
.pill.green { background: #edf8f1; color: #3b8c63; }
.pill.red { background: #fff0f0; color: #c36369; }
.pill.gray { background: #f3f5f8; color: #8491a5; }
.pricing-workspace { display: grid; grid-template-columns: minmax(0,1fr) 362px; gap: 24px; align-items: start; }
.module-panel-heading { padding: 25px 25px 21px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.module-panel-heading h2 { display: flex; align-items: center; gap: 10px; }
.module-panel-heading p { font-size: 12px; color: #96a0ae; margin-top: 7px; }
.module-columns { padding: 10px 25px; background: #fafbfc; border-block: 1px solid #eef1f5; display: flex; justify-content: space-between; color: #a1a9b6; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.module-row { display: flex; align-items: center; gap: 14px; padding: 17px 25px; min-height: 79px; border-bottom: 1px solid #edf0f4; transition: background .18s; }
.module-row.selected { background: #fcfdff; }
.module-row:last-child { border-bottom: 0; }
.module-switch { position: relative; display: block; width: 30px; height: 18px; flex-shrink: 0; }
.module-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 1; cursor: pointer; }
.module-switch input:disabled { cursor: default; }
.switch-track { display: block; width: 30px; height: 18px; border-radius: 12px; background: #dfe4eb; transition: background .18s; }
.switch-track:after { content: ''; position: absolute; height: 12px; width: 12px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #27374a20; transition: transform .18s; }
.module-switch input:checked + .switch-track { background: var(--blue); }
.module-switch input:checked + .switch-track:after { transform: translateX(12px); }
.module-switch input:focus-visible + .switch-track { outline: 2px solid var(--blue); outline-offset: 4px; }
.module-switch input:disabled + .switch-track { background: #b7cce5; }
.module-icon { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: #eff5fc; color: #4386c8; }
.module-icon svg { width: 19px; height: 19px; }
.module-icon-1 { background: #f2effb; color: #9383bc; }
.module-icon-2 { background: #eef7f4; color: #6fa78e; }
.module-icon-3 { background: #fef4e9; color: #c49b60; }
.module-row:not(.selected) .module-icon { background: #f3f5f8; color: #a1aab8; }
.module-copy { flex: 1; min-width: 0; }
.module-copy h3 { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; }
.module-copy p { font-size: 11px; color: #969fad; margin-top: 3px; line-height: 1.6; }
.required-label { font-size: 9px; font-weight: 500; background: #eaf3ff; color: #6594ca; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.module-price { position: relative; flex-shrink: 0; width: 139px; }
.module-price input { border: 1px solid #e5eaf1; border-radius: 7px; background: white; text-align: right; padding: 10px 29px 10px 9px; width: 100%; color: #34435b; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.module-price input:focus { border-color: var(--blue); }
.module-price input:disabled { color: #a8b2c1; background: #fafbfc; border-color: #eff1f5; }
.module-price > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9ca8b8; font-size: 12px; }
.module-panel-foot { display: flex; align-items: center; gap: 8px; padding: 17px 25px; background: #fafbfc; border-top: 1px solid var(--line); font-size: 11px; color: #9ba6b4; }
.module-panel-foot svg { width: 14px; height: 14px; flex-shrink: 0; }
.price-summary { position: sticky; top: 24px; }
.summary-hero { padding: 25px; background: #132f50; color: white; }
.summary-eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 8px; color: #a9bed6; letter-spacing: 1px; }
.summary-live { font-size: 8px; letter-spacing: 0; display: flex; align-items: center; gap: 4px; color: #b4ceec; }
.summary-live i { display: inline-block; width: 4px; height: 4px; background: #6dbd9a; border-radius: 50%; }
.monthly-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 19px; }
.monthly-amount strong { font-size: 38px; font-weight: 600; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.monthly-amount > span { font-size: 20px; color: #7ea2cb; }
.summary-hero p { font-size: 11px; color: #98b0cb; margin-top: 7px; }
.summary-body { padding: 24px; }
.summary-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.summary-section-title h2 { font-size: 14px; }
.summary-section-title > span { font-size: 10px; color: #9aa5b5; }
.summary-lines { display: grid; gap: 15px; }
.summary-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: #758196; }
.summary-line > span { display: flex; gap: 8px; align-items: center; }
.summary-line i { font-style: normal; color: #87b6a2; font-size: 10px; }
.summary-line strong { font-size: 11px; font-weight: 500; color: #4f5e73; white-space: nowrap; }
.contract-term { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0; margin-top: 22px; border-block: 1px solid var(--line); }
.contract-term label { font-size: 12px; color: #707f92; }
.contract-term select { border: 1px solid #e4e9f0; padding: 7px 10px; color: #53647b; border-radius: 6px; background: white; font-size: 11px; }
.quote-options { border-bottom: 1px solid var(--line); }
.quote-options summary { padding: 15px 0; list-style: none; color: #96a1b0; font-size: 11px; cursor: pointer; display: flex; justify-content: space-between; }
.quote-options summary::-webkit-details-marker { display: none; }
.quote-options[open] summary span { transform: rotate(45deg); }
.quote-options .field { margin-top: 0; margin-bottom: 16px; }
.money-control { display: flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 7px; overflow: hidden; }
.money-control input { border: 0 !important; text-align: right; min-width: 0; padding: 9px 12px !important; }
.money-control span { padding: 0 13px; font-size: 12px; color: #91a0b4; }
.contract-breakdown { display: grid; gap: 12px; padding: 20px 0; }
.contract-breakdown > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #8793a5; }
.contract-breakdown strong { color: #627086; font-weight: 500; }
.summary-grand { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.summary-grand > div > span { font-size: 12px; font-weight: 600; }
.summary-grand small { display: block; font-size: 9px; color: #a1aab8; margin-top: 5px; }
.summary-grand strong { font-size: 23px; font-weight: 650; color: #163556; white-space: nowrap; letter-spacing: -.6px; }
.summary-save { margin-top: 24px; }
.summary-save .btn { width: 100%; padding-block: 13px; font-size: 13px; }
.draft-info { display: grid; gap: 5px; text-align: center; font-size: 9px; color: #a8b1bf; margin: 12px 0 0; }
.draft-info span:empty { display: none; }
.summary-save .text-button { width: 100%; justify-content: center; margin-top: 10px; }
.mobile-total-bar { display: none; }
.app-footer { width: min(1240px,calc(100% - 60px)); margin: 0 auto; padding: 22px 0; border-top: 1px solid #e6eaf0; display: flex; justify-content: space-between; gap: 15px; color: #a4adba; font-size: 10px; }
.field { display: grid; gap: 8px; margin: 20px 0; }
.field label { font-size: 12px; color: #5e6b7f; font-weight: 500; }
.field input, .field select, .search { border: 1px solid #e1e6ed; background: white; border-radius: 7px; padding: 12px; width: 100%; color: #384b66; }
.field input:focus, .search:focus { border-color: var(--blue); }
.inline-error { color: #bf5061; min-height: 20px; margin-top: 12px; font-size: 12px; }
.password-row { display: flex; gap: 8px; }
.password-row input { min-width: 0; }
.password-toggle { padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; color: #8b97a7; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 24px; }
.stat { padding: 24px; display: flex; gap: 16px; align-items: center; }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #f0f5fc; color: #6e9bcf; }
.stat-icon svg { width: 20px; height: 20px; }
.stat small { display: block; font-size: 9px; color: #97a2b2; letter-spacing: .5px; margin-bottom: 7px; }
.stat strong { font-size: 24px; font-weight: 600; letter-spacing: -.5px; }
.toolbar { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.toolbar h3 { font-size: 14px; }
.search { max-width: 300px; padding: 10px 13px; font-size: 11px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 14px 24px; font-size: 9px; text-transform: uppercase; letter-spacing: .6px; background: #fafbfc; color: #97a3b4; font-weight: 500; border-bottom: 1px solid var(--line); }
td { padding: 20px 24px; font-size: 12px; border-bottom: 1px solid #edf0f5; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
td small { font-size: 10px; color: #929eaf; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.row-actions .btn { padding: 7px 11px; font-size: 10px; }
.empty { text-align: center; padding: 65px 20px; }
.empty-icon { font-size: 35px; color: #9cbbdf; margin-bottom: 18px; }
.empty p { font-size: 12px; color: #93a0b2; line-height: 1.8; margin-top: 10px; }
.note { padding: 16px 20px; background: #f0f5fb; border-radius: 8px; font-size: 12px; color: #7a8da5; line-height: 1.8; margin-bottom: 22px; }
.settings-card { padding: 30px; max-width: 560px; }
.settings-card h2 { margin-bottom: 10px; }
.audit { margin-top: 24px; }
.audit td { white-space: normal; }
dialog { border: 0; padding: 0; border-radius: 15px; width: min(520px,calc(100% - 28px)); max-height: 90dvh; color: #202c3d; box-shadow: 0 30px 110px #203b5930; }
dialog::backdrop { background: #18324f55; backdrop-filter: blur(4px); }
.dialog-head { padding: 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { font-size: 18px; }
.close { display: grid; place-items: center; border: 0; background: #f1f4f8; border-radius: 50%; width: 29px; height: 29px; color: #8290a3; font-size: 20px; }
.dialog-body { padding: 8px 24px 24px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }
.share-list { display: grid; gap: 10px; max-height: 340px; overflow: auto; margin-top: 20px; }
.share-row { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.share-row input { width: 16px; height: 16px; accent-color: var(--blue); }
.share-row small { display: block; color: #99a5b6; margin-top: 5px; }
.quote-preview { padding: 28px; }
.quote-preview .brand { margin-bottom: 20px; }
.quote-preview h2 { margin-bottom: 15px; }
.quote-meta { display: grid; gap: 7px; margin-bottom: 25px; font-size: 12px; color: #65758d; line-height: 1.6; }
.quote-preview table { white-space: normal; }
.quote-preview th, .quote-preview td { padding: 13px 10px; }
.quote-totals { margin: 24px 0 0 auto; max-width: 320px; display: grid; gap: 12px; font-size: 12px; }
.quote-totals > div { display: flex; justify-content: space-between; gap: 20px; }
.quote-totals .grand { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; color: #204c7c; font-size: 17px; }
.auth-layout {
  --blue: #0874ef; --navy: #102650; --muted: #7082a4; --border: #d8e4f6;
  --auth-gutter: clamp(16px, 3dvh, 28px);
  height: 100dvh; padding: var(--auth-gutter) clamp(16px, 3vw, 48px);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background: radial-gradient(ellipse at 0 0, #ffffffb3, transparent 65%), linear-gradient(120deg, #edf5ff, #eaf4ff 53%, #f1f7ff);
}
.auth-layout :where(button, input) { font: inherit; }
.auth {
  width: min(100%, 1200px); height: min(760px, calc(100dvh - 2 * var(--auth-gutter))); min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  border: 1px solid #d0def1bf; border-radius: 24px; overflow: hidden; background: white;
  box-shadow: 0 24px 70px #285ca121, 0 5px 22px #436caa0e;
}
.auth-story {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 0;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: clamp(16px, 3dvh, 26px);
  padding: clamp(24px, 3.5dvh, 36px) clamp(24px, 3vw, 40px); color: white;
  background: radial-gradient(ellipse at 96% 88%, #4dcdffbd, transparent 69%), radial-gradient(ellipse at 89% 10%, #19a2ff91, transparent 66%), linear-gradient(145deg, #064ea9, #0758bb 40%, #0679e9 79%, #23aaf5);
}
.auth-story::before, .auth-story::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.auth-story::before { width: 700px; height: 560px; top: -420px; right: -180px; border-radius: 45%; transform: rotate(-29deg); border: 100px solid #58caff13; }
.auth-story::after { height: 330px; width: 420px; bottom: -190px; left: -160px; border-radius: 50%; background: #78e1ff3b; box-shadow: 280px 95px 0 #7ed7ff17; }
.auth-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.auth-logo-box { width: 132px; height: 60px; flex-shrink: 0; display: grid; place-items: center; background: white; border-radius: 12px; box-shadow: 0 5px 15px #001f6317; }
.auth-logo-box .brand img { width: 112px; height: 56px; object-fit: contain; }
.auth-brand-divider { width: 1px; height: 28px; flex-shrink: 0; background: #ffffff7a; }
.auth-brand-name { font-size: 14px; line-height: 1.5; }
.auth-copy { margin: 0; }
.auth-story h1 { margin: 0; font-size: clamp(28px, min(3.2vw, 5.4dvh), 46px); line-height: 1.18; letter-spacing: -.045em; font-weight: 780; }
.auth-copy p { max-width: 430px; margin-top: 16px; font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; color: #fffffff0; }
.auth-illustration { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.auth-illustration svg { display: block; width: 100%; height: 100%; max-height: 300px; }
.auth-panel { min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: clamp(24px, 4dvh, 40px) clamp(28px, 4vw, 52px); }
.auth-content { width: 100%; max-width: 430px; min-width: 0; }
.auth-form-icon { width: 68px; height: 68px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; background: linear-gradient(145deg, #ebf6ff, #e1efff); color: #0670e6; }
.auth-form-icon svg { width: 32px; height: 32px; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h2 { margin: 0 0 10px; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.2; letter-spacing: -.035em; font-weight: 780; }
.auth-subtitle { color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form .field { display: block; margin: 0; }
.auth-form .field + .field { margin-top: 18px; }
.auth-form label { display: block; margin-bottom: 7px; color: #344c73; font-size: 13px; line-height: 1.4; font-weight: 600; }
.auth-input-wrap { position: relative; display: flex; align-items: center; height: 52px; border: 1.5px solid var(--border); border-radius: 11px; background: #f5f9ff; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-input-wrap:focus-within { border-color: #2789ff; box-shadow: 0 0 0 3px #2085f61f; background: white; }
.auth-input-icon { display: flex; align-items: center; flex-shrink: 0; margin: 0 14px 0 16px; color: #6a82a8; }
.auth-input-icon svg { width: 21px; height: 21px; }
.auth-input-wrap input { appearance: none; width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 16px 0 0; border-radius: inherit; background: transparent; color: #142747; font-size: 16px; }
.auth-input-wrap > input:first-child { padding-left: 16px; }
.auth-input-wrap input::placeholder { color: #9aabc6; }
.auth-eye { width: 44px; height: 44px; flex-shrink: 0; margin-right: 4px; border: 0; border-radius: 9px; display: grid; place-items: center; background: transparent; color: #6a82a8; }
.auth-eye svg { width: 21px; height: 21px; }
.auth-eye:hover { background: #e5f0ff; color: #0869d8; }
.auth-submit { width: 100%; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border: 0; border-radius: 11px; background: linear-gradient(115deg, #087bef, #0662df); color: white; font-size: 17px; font-weight: 730; box-shadow: 0 10px 22px #0066e52e; transition: transform .15s, box-shadow .15s; }
.auth-submit svg { width: 22px; height: 22px; flex-shrink: 0; }
.auth-layout:not(.auth-setup) .auth-submit { margin-top: 20px; }
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 24px #0066e538; }
.auth-submit:active, .auth-submit:disabled { transform: none; }
.auth-submit:focus-visible, .auth-eye:focus-visible { outline: 3px solid #70b9ff; outline-offset: 3px; }
.auth-form .inline-error:not(:empty) { margin-top: 12px; padding: 10px 12px; border: 1px solid #f0c4cd; border-radius: 9px; background: #fff5f6; color: #bf5061; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-form .inline-error:empty { display: none; }
.auth-setup-note { margin: 16px 0; color: #7082a4; font-size: 12px; line-height: 1.5; }
.auth-setup .auth-form-icon { display: none; }
.auth-setup .auth-heading { margin-bottom: 20px; }
.auth-setup .auth-form .field + .field { margin-top: 12px; }
@media (max-width: 1050px) {
  .auth-brand { gap: 12px; }
  .auth-brand-name { font-size: 12px; }
  .auth-logo-box { width: 112px; height: 54px; }
  .auth-logo-box .brand img { width: 96px; height: 50px; }
  .auth-panel { padding-inline: 28px; }
}
@media (max-width: 900px) {
  .auth-layout { --auth-gutter: 16px; padding-inline: 16px; }
  .auth { max-width: 500px; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); border-radius: 20px; }
  .auth-story { display: block; padding: 16px 24px; }
  .auth-brand-name { font-size: 13px; }
  .auth-logo-box { width: 106px; height: 48px; }
  .auth-logo-box .brand img { width: 90px; height: 46px; }
  .auth-copy, .auth-illustration { display: none; }
  .auth-panel { padding: 20px 24px; }
  .auth-form-icon { width: 56px; height: 56px; margin-bottom: 16px; border-radius: 17px; }
  .auth-form-icon svg { width: 28px; height: 28px; }
  .auth-heading { margin-bottom: 20px; }
  .auth-heading h2 { font-size: clamp(23px, 6.7vw, 30px); margin-bottom: 8px; }
  .auth-subtitle { font-size: 13px; }
  .auth-input-wrap { height: 48px; }
  .auth-form .field + .field { margin-top: 14px; }
  .auth-submit { height: 48px; }
}
@media (max-height: 680px) {
  .auth-layout { --auth-gutter: 12px; }
  .auth-story { gap: 16px; padding-block: 24px; }
  .auth-form-icon { display: none; }
  .auth-panel { padding-block: 20px; }
  .auth-heading { margin-bottom: 16px; }
  .auth-heading h2 { font-size: 28px; }
  .auth-heading .auth-subtitle { font-size: 13px; }
  .auth-illustration svg { max-height: 220px; }
  .auth-input-wrap { height: 48px; }
  .auth-form .field + .field { margin-top: 14px; }
  .auth-setup .auth-input-wrap { height: 44px; }
  .auth-setup .auth-form label { font-size: 12px; margin-bottom: 4px; }
  .auth-setup .auth-form .field + .field { margin-top: 10px; }
  .auth-setup .auth-heading .auth-subtitle { display: none; }
  .auth-setup-note { margin: 12px 0; }
}
@media (max-width: 900px) and (max-height: 680px) {
  .auth-story { padding: 12px 20px; }
  .auth-logo-box { width: 96px; height: 44px; }
  .auth-logo-box .brand img { width: 84px; height: 42px; }
  .auth-panel { padding: 16px 20px; }
  .auth-heading h2 { font-size: 24px; }
  .auth-heading .auth-subtitle { display: none; }
}
@media (max-width: 390px) {
  .auth-brand-divider, .auth-brand-name { display: none; }
  .auth-panel { padding-inline: 18px; }
}
@media (max-height: 520px) {
  .auth-layout { --auth-gutter: 12px; }
  .auth-panel { padding: 14px 22px; }
  .auth-heading { margin-bottom: 12px; }
  .auth-heading h2 { font-size: 24px; margin-bottom: 0; }
  .auth-heading .auth-subtitle { display: none; }
  .auth-form label { font-size: 12px; margin-bottom: 4px; }
  .auth-input-wrap { height: 44px; }
  .auth-form .field + .field { margin-top: 10px; }
  .auth-submit { height: 44px; }
  .auth-form .inline-error:not(:empty) { margin-top: 8px; padding: 8px 10px; }
}
@media (min-width: 600px) and (max-width: 900px) and (max-height: 520px) {
  .auth { max-width: 1000px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr); }
  .auth-story { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 22px; }
  .auth-brand-divider, .auth-brand-name { display: none; }
  .auth-copy { display: block; }
  .auth-copy h1 { font-size: 28px; }
  .auth-copy p { display: none; }
}
@media (max-width: 599px) and (max-height: 520px) {
  .auth { grid-template-rows: minmax(0, 1fr); }
  .auth-story { display: none; }
}
@media (min-width: 480px) and (max-width: 599px) and (max-height: 420px) {
  .auth-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .auth-form .field + .field, .auth-setup .auth-form .field + .field { margin-top: 0; }
  .auth-submit, .auth-form .inline-error, .auth-setup-note { grid-column: 1 / -1; }
  .auth-setup-note { margin: 0; }
}
@media (min-width: 480px) and (max-height: 520px) {
  .auth-setup .auth-heading { margin-bottom: 12px; }
  .auth-setup .auth-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
  .auth-setup .auth-form .field + .field { margin-top: 0; }
  .auth-setup .auth-submit, .auth-setup .inline-error, .auth-setup-note { grid-column: 1 / -1; }
  .auth-setup-note { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-layout *, .auth-layout *::before, .auth-layout *::after { transition: none !important; animation: none !important; }
}
.loading { display: grid; place-items: center; min-height: 100dvh; color: #97a3b3; }
#toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 90%; padding: 14px 21px; border-radius: 9px; background: #1b3b5a; color: white; box-shadow: 0 6px 25px #183a5920; font-size: 12px; z-index: 20; }
#toast.error { background: #a84256; }
.compact-shell .topbar { height: 60px; padding-inline: max(16px, calc((100vw - 1320px) / 2)); }
.compact-shell .brand img { width: 96px; height: 54px; }
.compact-shell .nav-item { padding: 8px 13px; }
.compact-shell .content { width: min(1320px, calc(100% - 32px)); padding: 16px 0 20px; }
.calculator-heading { margin-bottom: 12px; gap: 16px; }
.calculator-title { display: flex; align-items: baseline; gap: 15px; }
.calculator-title h1 { font-size: 23px; line-height: 1.3; letter-spacing: -.5px; margin: 0; }
.calculator-title > span { color: #8a97a8; font-size: 11px; white-space: nowrap; }
.calculator-heading > .btn { padding: 7px 12px; font-size: 12px; }
.pricing-workspace.table-workspace { grid-template-columns: minmax(0,1fr); gap: 12px; }
.package-switch { display: flex; justify-content: center; gap: 8px; flex: 1; min-width: 0; }
.package-tab { --package-color: #1769cb; --package-soft: #e8f1ff; --package-border: #bdd4f6; --package-hover: #dbeaff; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--package-border); border-radius: 10px; padding: 10px 22px; background: var(--package-soft); color: var(--package-color); font-size: 13px; font-weight: 650; line-height: 1.4; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.package-tab[data-package="advanced"] { --package-color: #08786c; --package-soft: #e4f5f0; --package-border: #b4dfd2; --package-hover: #d2eee5; }
.package-tab:hover { background: var(--package-hover); }
.package-tab.active { background: var(--package-color); border-color: var(--package-color); color: white; box-shadow: 0 3px 8px #1769cb25; }
.package-tab[data-package="advanced"].active { box-shadow: 0 3px 8px #08786c25; }
.package-tab:focus-visible { outline: 3px solid var(--package-color); outline-offset: 3px; }
.pricing-workspace.basic-workspace { grid-template-columns: minmax(0,1fr) 360px; gap: 16px; }
.basic-plan-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.basic-plan-heading h2 { font-size: 17px; }
.basic-plan-heading p { margin-top: 5px; font-size: 11px; color: #94a0b1; }
.basic-plan-price { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #f7fbff; }
.basic-plan-price strong { color: #1d71c2; font-size: 28px; letter-spacing: -.6px; }
.basic-plan-price strong span { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.fixed-price-badge { background: #e8f1fc; color: #5e8dbe; font-size: 10px; border-radius: 4px; padding: 4px 7px; }
.basic-features { list-style: none; margin: 0; padding: 16px 18px; display: grid; gap: 10px; }
.basic-features li { display: flex; align-items: baseline; gap: 9px; font-size: 13px; color: #52677e; line-height: 1.6; }
.basic-features li > span { color: #3a9a76; flex-shrink: 0; }
.basic-invoice { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: #fcfdff; border-top: 1px solid var(--line); font-size: 13px; color: #52677e; }
.basic-invoice small { display: block; margin-top: 3px; font-size: 10px; color: #93a2b4; }
.basic-plan-foot { padding: 10px 18px; border-top: 1px solid var(--line); color: #94a0b1; font-size: 11px; }
.basic-workspace .table-summary-metrics { grid-template-columns: 1fr; }
.basic-workspace .summary-metric { border-right: 0; border-bottom: 1px solid var(--line); }
.basic-workspace .summary-metric:nth-child(2) { display: none; }
.basic-workspace .summary-actions { width: 100%; }
.basic-workspace .summary-actions .btn { flex: 1; }
.basic-workspace .pricing-details { grid-template-columns: 1fr; }
.basic-workspace .pricing-details .summary-lines { grid-template-columns: 1fr; }
.basic-workspace .draft-info { max-width: 100%; }
.quote-package { color: #7093ba; }
.quote-feature-list { margin: 8px 0 0; padding-left: 16px; font-size: 11px; line-height: 1.8; color: #8495a9; }
.configuration-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 12px; }
.configuration-caption { font-size: 12px; color: #7d8ba0; }
.configuration-caption-mobile, .system-name-short { display: none; }
.configuration-actions { display: flex; align-items: center; gap: 20px; }
.configuration-heading h2 { font-size: 17px; }
.configuration-heading p { font-size: 11px; margin-top: 7px; color: #94a0b1; }
.configuration-heading .text-button { color: var(--blue); font-size: 11px; padding-block: 5px; }
.configuration-heading [aria-pressed="true"] { font-weight: 600; }
.configuration-scroll { width: 100%; overflow-x: auto; }
.configuration-table { table-layout: fixed; min-width: 1050px; white-space: normal; }
.configuration-table .system-column { width: 22%; }
.configuration-table .module-column { width: 28%; }
.configuration-table .unit-column { width: 16%; }
.configuration-table .connection-column { width: 17%; }
.configuration-table .discount-column { width: 17%; }
.configuration-table th { padding: 7px 12px; color: #63768e; font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #f5f8fc; line-height: 1.4; }
.configuration-table th small { display: block; font-size: 9px; font-weight: 400; color: #9aa7b9; }
.configuration-table td { padding: 6px 12px; border-right: 1px solid var(--line); vertical-align: middle; }
.configuration-table th:last-child, .configuration-table td:last-child { border-right: 0; }
.configuration-table .module-row { display: table-row; min-height: 0; padding: 0; }
.configuration-table .selected { background: #fcfdff; }
.configuration-table .system-row td { border-top: 1px solid #dce4ef; }
.configuration-table .system-group { vertical-align: top; padding-top: 14px; background: #fbfcfe; }
.system-label, .module-label { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 12px; line-height: 1.5; }
.system-label .module-switch, .module-label .module-switch { margin-top: 0; }
.system-label > span:last-child { flex: 1; }
.module-label > span:last-child { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.system-badge { display: inline-block; margin: 7px 0 0 39px; padding: 2px 6px; background: #eaf2fc; border-radius: 4px; color: #7497c3; font-size: 9px; letter-spacing: .5px; font-weight: 600; }
.system-group p { font-size: 11px; line-height: 1.9; color: #a0abba; margin: 15px 0 0 41px; }
.module-detail > p { padding-left: 41px; margin-top: 5px; font-size: 10px; line-height: 1.7; color: #96a2b3; }
.system-description { font-size: 11px; line-height: 1.5; color: #96a2b3; }
.system-description > p { margin-top: 4px; }
.system-type { color: #71829a; }
.standalone-system .system-badge { display: none; }
.configuration-table:not(.show-descriptions) .module-detail > p,
.configuration-table:not(.show-descriptions) .system-description > p,
.configuration-table:not(.show-descriptions) .system-group > p { display: none; }
.table-money { position: relative; width: 100%; }
.table-money input { width: 100%; min-width: 0; text-align: right; font-size: 13px; line-height: 1.3; font-weight: 500; color: #3c5270; border: 1px solid #dfe6ef; border-radius: 5px; background: white; padding: 6px 23px 6px 7px; font-variant-numeric: tabular-nums; }
.table-money input::placeholder { color: #bec7d3; }
.table-money input:focus { border-color: var(--blue); }
.table-money > span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #a0adbe; font-size: 11px; }
.survey-price input::placeholder { color: #9b6b26; font-size: 11px; }
.survey-text { color: #9b6b26 !important; }
.survey-note { margin: 0; padding: 7px 14px; border-top: 1px solid #eee3cd; background: #fffbf2; color: #886323; font-size: 11px; line-height: 1.6; }
.survey-note[hidden] { display: none; }
.connection-entry { display: flex; align-items: center; gap: 6px; }
.connection-entry .table-money { flex: 1; min-width: 0; }
.new-machine-control { display: flex; justify-content: flex-end; align-items: center; flex-shrink: 0; gap: 4px; color: #99a5b6; font-size: 9px; }
.new-machine-control[hidden] { display: none; }
.new-machine-control input { width: 40px; border: 1px solid #e6ebf2; border-radius: 4px; font-size: 12px; padding: 5px 3px; color: #637a98; background: white; }
.discount-cell { text-align: right; }
.cell-empty { display: block; color: #c9d1dc; text-align: right; font-size: 15px; }
.discount-entry { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.discount-price { display: block; white-space: nowrap; font-size: 13px; font-weight: 600; color: #819b94; font-variant-numeric: tabular-nums; }
.discount-price.applied { color: #258865; }
.discount-percent { display: flex; align-items: center; justify-content: flex-end; gap: 3px; font-size: 9px; color: #9aa7b7; white-space: nowrap; }
.discount-percent input { width: 38px; min-width: 0; padding: 5px 3px; font-size: 11px; border: 1px solid #e7edf3; border-radius: 4px; color: #70849e; }
.configuration-foot { padding: 6px 12px; border-top: 1px solid var(--line); background: #fafcfe; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 10px; color: #9aa6b7; line-height: 1.6; }
.table-summary { position: static; overflow: visible; }
.table-summary-metrics { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.summary-metric { padding: 10px 14px; border-right: 1px solid var(--line); }
.summary-metric:last-child { border-right: 0; }
.summary-metric > span { display: block; font-size: 11px; color: #97a5b8; margin-bottom: 4px; }
.summary-metric > strong { display: block; font-size: 22px; line-height: 1.2; letter-spacing: -.5px; font-weight: 600; color: #4b617e; }
.summary-metric > small { display: block; font-size: 9px; margin-top: 3px; color: #a8b2c1; }
.summary-metric:not(.total-metric) > small { display: none; }
.monthly-metric strong { color: #2577ca; }
.total-metric { background: #f4f8fd; border-top-right-radius: 12px; }
.total-metric strong { color: #21466e; }
.table-summary-controls { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); }
.table-summary-controls .contract-term { padding: 0; margin: 0; border: 0; gap: 8px; align-items: center; min-height: 32px; }
.table-summary-controls .contract-term label { font-size: 11px; }
.table-summary-controls .quote-options { border: 0; }
.table-summary-controls .quote-options summary { min-height: 32px; padding: 8px 0; gap: 10px; }
.configuration-extras { display: grid; grid-template-columns: 200px 100px; gap: 15px; padding-top: 12px; }
.configuration-extras .field { margin-bottom: 0; }
.configuration-extras .field label { font-size: 10px; }
.configuration-extras .field input { padding: 9px; font-size: 11px; }
.summary-actions { margin-left: auto; display: flex; gap: 10px; }
.summary-actions .btn { padding: 7px 14px; font-size: 12px; }
.summary-footer { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px 18px; border-top: 1px solid var(--line); padding: 6px 14px; }
.price-details { flex: 1; }
.price-details[open] { flex-basis: 100%; }
.price-details > summary { cursor: pointer; color: #7c8ba0; font-size: 11px; line-height: 1.7; }
.pricing-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 12px 0 6px; }
.pricing-details .summary-lines { grid-template-columns: 1fr 1fr; gap: 13px 24px; align-content: start; }
.pricing-details .summary-line { font-size: 10px; gap: 8px; }
.pricing-details .summary-line > span { flex-wrap: wrap; gap: 5px; }
.pricing-details .summary-line strong { font-size: 10px; }
.pricing-details .contract-breakdown { padding: 0; }
.table-summary .draft-info { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0; margin: 2px 0 0; text-align: right; max-width: 65%; }
.discount-applied { display: inline-block; font-size: 8px; color: #38956f; background: #edf8f2; padding: 2px 4px; border-radius: 3px; }
.quote-discount, .quote-connection { display: block; line-height: 1.8; color: #93a2b5; margin-top: 5px; font-size: 9px; }
.content, .card, .page-heading > div, .stat, .stat > div, .settings-card, .dialog-body { min-width: 0; }
.page-heading > div { overflow-wrap: anywhere; }
.quote-table td:first-child small { display: block; line-height: 1.6; }
.users-table td:first-child, .quote-table td:first-child { white-space: normal; overflow-wrap: anywhere; }
.share-row > span { min-width: 0; overflow-wrap: anywhere; }
.share-row input { flex-shrink: 0; }
.quote-meta, .quote-feature-list, .quote-preview h2, .note { overflow-wrap: anywhere; }
@media (min-width: 781px) and (max-width: 1100px) {
  .stat { padding: 18px; gap: 12px; }
  .stat strong { font-size: 20px; }
  th, td { padding-inline: 16px; }
  .pricing-workspace.basic-workspace { grid-template-columns: minmax(0,1fr) 300px; }
}
@media (max-width: 1100px) {
  .package-tab { padding-inline: 16px; }
  .topbar { padding-inline: 24px; }
  .product-name, .brand-divider { display: none; }
  .nav-item { padding-inline: 13px; }
  .content { width: calc(100% - 48px); }
  .pricing-workspace { grid-template-columns: minmax(0,1fr) 325px; gap: 18px; }
  .pricing-workspace.table-workspace { grid-template-columns: minmax(0,1fr); }
  .module-row { padding-inline: 18px; gap: 10px; }
  .module-icon { display: none; }
  .module-price { width: 124px; }
  .module-copy p { font-size: 10px; }
  .module-panel-heading { padding-inline: 18px; }
  .summary-body { padding: 21px; }
  .monthly-amount strong { font-size: 34px; }
  .summary-grand strong { font-size: 20px; }
  .identity > span:last-child { display: none; }
}
@media (max-width: 780px) {
  .compact-shell .calculator-heading { flex-wrap: wrap; gap: 8px; }
  .calculator-title { flex: 1; }
  .package-switch { order: 3; flex-basis: 100%; justify-content: stretch; }
  .package-tab { flex: 1; min-height: 46px; padding: 9px 8px; font-size: 12px; min-width: 0; white-space: normal; }
  .pricing-workspace.basic-workspace { grid-template-columns: 1fr; gap: 12px; }
  .basic-plan-heading { padding: 12px 14px; }
  .basic-plan-heading h2 { font-size: 15px; }
  .basic-plan-price { padding: 12px 14px; }
  .basic-plan-price strong { font-size: 25px; }
  .basic-features { padding: 14px; gap: 8px; }
  .basic-features li { font-size: 12px; }
  .basic-invoice, .basic-plan-foot { padding-inline: 14px; }
  .compact-shell .topbar { height: auto; padding: 4px 14px 0; }
  .compact-shell .brand img { width: 88px; height: 48px; }
  .compact-shell .nav { padding-block: 4px; }
  .compact-shell .nav-item { padding: 7px 11px; }
  .compact-shell .content { width: calc(100% - 28px); padding-top: 12px; }
  .compact-shell .calculator-heading { align-items: center; margin-bottom: 10px; }
  .calculator-title { display: block; }
  .calculator-title h1 { font-size: 21px; }
  .calculator-title > span { display: block; margin-top: 3px; font-size: 10px; }
  .compact-shell .calculator-heading > .btn { margin-top: 0; }
  .configuration-heading { padding: 6px 10px; gap: 10px; }
  .configuration-caption { font-size: 11px; }
  .configuration-caption-full, .system-name-full, .system-group .system-badge { display: none; }
  .configuration-caption-mobile, .system-name-short { display: inline; }
  .configuration-table { min-width: 960px; }
  .configuration-table .system-column { width: 13.5%; }
  .configuration-table .module-column { width: 29.5%; }
  .configuration-table .unit-column { width: 17.5%; }
  .configuration-table .connection-column { width: 19.5%; }
  .configuration-table .discount-column { width: 20%; }
  .configuration-actions { gap: 12px; }
  .configuration-foot { display: grid; padding: 6px 10px; font-size: 9px; gap: 1px; }
  .table-summary-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .summary-metric { border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .summary-metric:nth-child(2) { border-right: 0; }
  .summary-metric > strong { font-size: 22px; }
  .total-metric { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; border-top-right-radius: 0; border-bottom: 0; }
  .total-metric > strong { grid-column: 2; grid-row: 1 / 3; }
  .total-metric > small { margin-top: 0; }
  .table-summary-controls { padding: 8px 12px; gap: 8px 20px; }
  .summary-actions { width: 100%; margin-top: 0; }
  .summary-actions .btn { flex: 1; }
  .configuration-extras { grid-template-columns: minmax(0,1fr) 90px; }
  .pricing-details { grid-template-columns: 1fr; padding: 10px 0 4px; gap: 15px; }
  .pricing-details .summary-lines { grid-template-columns: 1fr; }
  .table-summary .draft-info { padding: 0; text-align: right; max-width: 100%; }
  .shell:has(.mobile-total-bar) { padding-bottom: 84px; }
  .mobile-total-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid #e4eaf2; box-shadow: 0 -4px 20px #17375708; }
  .mobile-total-bar small { display: block; font-size: 8px; letter-spacing: .5px; color: #a0abba; margin-bottom: 6px; }
  .mobile-total-bar strong { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.6px; color: #173b60; }
  .mobile-total-bar .btn { font-size: 11px; padding: 12px 15px; }
  .price-summary { scroll-margin-top: 20px; }
  .topbar { height: auto; padding: 8px 20px 0; flex-wrap: wrap; gap: 0; }
  .brand img { width: 100px; height: 56px; }
  .header-account { margin-left: auto; gap: 10px; }
  .nav { order: 3; width: 100%; justify-content: flex-start; gap: 3px; border-top: 1px solid #f3f5f8; padding-block: 8px; }
  .nav-item { font-size: 12px; padding: 9px 14px; }
  .content { width: calc(100% - 36px); padding-top: 26px; }
  .page-heading { gap: 15px; align-items: flex-start; margin-bottom: 23px; }
  h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; }
  .page-heading > .btn { padding: 9px 11px; font-size: 11px; margin-top: 27px; }
  .pricing-workspace { grid-template-columns: 1fr; gap: 20px; }
  .price-summary { position: static; }
  .module-panel-heading { padding: 21px 18px; }
  .module-panel-heading h2 { font-size: 16px; }
  .module-panel-heading p { font-size: 11px; }
  .module-panel-heading .text-button { font-size: 10px; }
  .module-columns { padding-inline: 18px; font-size: 8px; }
  .module-row { padding: 16px 18px; gap: 12px; }
  .module-copy h3 { font-size: 13px; gap: 5px; flex-wrap: wrap; }
  .module-copy p { font-size: 10px; }
  .module-price { width: 112px; }
  .module-price input { font-size: 12px; padding-left: 4px; padding-right: 24px; }
  .module-price > span { right: 9px; }
  .required-label { font-size: 8px; }
  .module-panel-foot { padding: 15px 18px; font-size: 10px; }
  .summary-hero { padding: 25px; }
  .summary-eyebrow { font-size: 10px; }
  .summary-live { font-size: 9px; }
  .monthly-amount strong { font-size: 40px; }
  .summary-body { padding: 25px; }
  .summary-line, .summary-line strong { font-size: 12px; }
  .summary-grand strong { font-size: 24px; }
  .app-footer { width: calc(100% - 36px); font-size: 9px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat { padding: 17px 20px; }
  .stat > div:last-child { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 15px; }
  .stat small { margin-bottom: 0; }
  .stat strong { font-size: 18px; }
  .toolbar { flex-wrap: wrap; padding: 19px; }
  .search { max-width: none; }
  .quote-table, .quote-table tbody { display: block; width: 100%; }
  .quote-table thead { display: none; }
  .quote-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 19px; border-bottom: 1px solid var(--line); }
  .quote-table td { padding: 0; border: 0; text-align: left; min-width: 0; white-space: normal; }
  .quote-table td:first-child, .quote-table td:last-child { grid-column: 1 / -1; }
  .quote-table td:first-child { line-height: 1.6; padding-bottom: 4px; }
  .quote-table td[data-label]:before { content: attr(data-label); display: block; font-size: 9px; color: #9ca7b7; margin-bottom: 7px; }
  .quote-table .row-actions { justify-content: flex-start; }
  .quote-table .row-actions .btn { padding: 9px 14px; }
  .quote-table tr:last-child { border-bottom: 0; }
  .quote-preview { padding: 18px 2px; }
  .quote-preview th, .quote-preview td { padding: 11px 6px; font-size: 10px; }
}
@media (max-width: 390px) {
  .module-row { padding-inline: 13px; gap: 9px; }
  .module-copy h3 { font-size: 12px; }
  .module-price { width: 103px; }
  .module-copy p { font-size: 9px; }
  .module-switch { width: 26px; }
  .switch-track { width: 26px; }
  .module-switch input:checked + .switch-track:after { transform: translateX(8px); }
}
@media screen and (max-width: 780px) {
  .content { width: calc(100% - 28px); }
  .page-heading:not(.calculator-heading) { flex-wrap: wrap; align-items: center; }
  .page-heading:not(.calculator-heading) > div { flex: 1 1 100%; }
  .page-heading:not(.calculator-heading) > .btn { margin: 0; min-height: 42px; }
  .field input, .field select, .search { font-size: 16px; min-height: 44px; }
  .password-toggle { min-width: 50px; }
  .settings-card { padding: 22px; }
  .settings-card > form > .btn { width: 100%; min-height: 44px; }
  .toolbar { gap: 12px; padding: 16px; }
  .toolbar .search { flex-basis: 100%; }
  .row-actions { flex-wrap: wrap; }
  .row-actions .btn { flex: 1; min-height: 42px; }
  .dialog-head { padding: 16px; }
  .dialog-head h2 { font-size: 17px; }
  .close { width: 36px; height: 36px; flex-shrink: 0; }
  .dialog-body { padding: 4px 16px 20px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions .btn { flex: 1; min-height: 44px; }
  .share-list { max-height: 45dvh; }
  .configuration-heading { flex-wrap: wrap; padding: 10px 12px; }
  .configuration-actions { gap: 16px; }
  .configuration-actions .text-button { min-height: 30px; }
  .configuration-scroll { overflow: visible; }
  .configuration-table { display: block; min-width: 0; width: 100%; }
  .configuration-table thead, .configuration-table colgroup { display: none; }
  .configuration-table tbody { display: grid; gap: 10px; padding: 0 12px 12px; }
  .configuration-table .module-row, .configuration-table .system-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 10px; padding: 12px; border: 1px solid #e0e8f2; border-radius: 10px; background: white; }
  .configuration-table .selected { border-color: #bed6f6; background: #f9fcff; }
  .configuration-table td, .configuration-table .system-row td { display: block; padding: 0; border: 0; min-width: 0; }
  .configuration-table td[data-label]:before { content: attr(data-label); display: block; margin-bottom: 7px; font-size: 10px; color: #7388a3; }
  .configuration-table .system-group { grid-column: 1 / -1; background: #edf5ff; border-radius: 6px; padding: 10px; }
  .configuration-table .module-detail, .configuration-table .standalone-system { grid-column: 1 / -1; }
  .configuration-table .module-label, .configuration-table .system-label { min-height: 30px; font-size: 13px; }
  .configuration-table .system-description { display: none; }
  .configuration-table.show-descriptions .system-description { display: block; grid-column: 1 / -1; }
  .configuration-table .module-detail p { padding-left: 0; font-size: 11px; }
  .configuration-table .table-money input { min-height: 44px; padding: 10px 22px 10px 8px; font-size: 16px; }
  .configuration-table .connection-entry { display: grid; gap: 8px; }
  .new-machine-control { justify-content: space-between; font-size: 11px; }
  .new-machine-control input { width: 58px; min-height: 40px; font-size: 16px; }
  .configuration-table .discount-cell { grid-column: 1 / -1; text-align: left; }
  .configuration-table .discount-cell:has(.cell-empty) { display: none; }
  .discount-entry { justify-content: space-between; }
  .discount-price { font-size: 15px; }
  .discount-percent { font-size: 11px; }
  .discount-percent input { width: 58px; min-height: 40px; font-size: 16px; }
  .configuration-foot { padding: 10px 12px; font-size: 10px; gap: 4px; }
  .basic-plan-heading { align-items: flex-start; }
  .basic-plan-heading > div { min-width: 0; }
  .basic-plan-heading .text-button { white-space: nowrap; }
  .contract-term select, .summary-actions .btn { min-height: 40px; }
  .users-table, .users-table tbody, .audit-table, .audit-table tbody, .quote-print-table, .quote-print-table tbody { display: block; width: 100%; }
  .users-table thead, .audit-table thead, .quote-print-table thead { display: none; }
  .users-table tr, .audit-table tr, .quote-print-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .users-table td, .audit-table td, .quote-print-table td { padding: 0; border: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .users-table td:first-child, .users-table td:last-child, .audit-table td:last-child, .quote-print-table td:first-child { grid-column: 1 / -1; }
  .users-table td:first-child small { display: block; line-height: 1.6; }
  .users-table td:nth-child(2):before { content: 'Quyền truy cập'; }
  .users-table td:nth-child(3):before { content: 'Trạng thái'; }
  .users-table td:nth-child(4):before { content: 'Ngày tạo'; }
  .audit-table td:nth-child(1):before { content: 'Thời điểm'; }
  .audit-table td:nth-child(2):before { content: 'Tài khoản'; }
  .audit-table td:nth-child(3):before { content: 'Hoạt động'; }
  .users-table td:before, .audit-table td:before, .quote-print-table td[data-label]:before { display: block; margin-bottom: 7px; font-size: 10px; color: #8597ad; }
  .quote-print-table td[data-label]:before { content: attr(data-label); }
  .users-table td:last-child .btn { min-height: 42px; width: 100%; }
  .quote-preview { padding: 14px 0; }
  .quote-print-table tr { padding-inline: 0; }
  .quote-totals { max-width: none; }
  .quote-totals .grand { font-size: 16px; }
}
@media print {
  body { background: white; }
  .shell, #toast, .dialog-head, .dialog-actions, .close { display: none !important; }
  dialog { position: static; display: block !important; width: 100%; max-height: none; box-shadow: none; border-radius: 0; margin: 0; overflow: visible; }
  dialog::backdrop { display: none; }
  .quote-preview { padding: 0; }
  .quote-preview table { break-inside: auto; }
  .quote-preview tr, .quote-totals { break-inside: avoid; }
  .quote-preview td, .quote-preview th { padding: 10px; border-bottom: 1px solid #ddd; }
}
