:root {
  --navy: #12364d;
  --navy-2: #0d4966;
  --teal: #008c86;
  --teal-dark: #006f6a;
  --orange: #f39c4a;
  --ink: #17313f;
  --muted: #687b86;
  --line: #d7e1e6;
  --bg: #f4f7f9;
  --white: #fff;
  --pale-blue: #eaf4f8;
  --pale-teal: #e9f7f5;
  --pale-orange: #fff4e6;
  --danger: #c93d3d;
  --shadow: 0 12px 36px rgba(15, 43, 59, .08);
  --sidebar: 252px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.activation-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 540px) minmax(360px, 1fr);
  background: linear-gradient(135deg, #f7fbfc 0%, #eef6f7 48%, #dcebed 100%);
}
.activation-card { padding: clamp(42px, 7vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand-lockup.large { color: var(--navy); margin-bottom: 64px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--teal); color: #fff; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 8px 20px rgba(0, 140, 134, .24); }
.brand-lockup.large .brand-mark { width: 52px; height: 52px; font-size: 19px; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 13px; letter-spacing: .06em; }
.brand-lockup small { color: rgba(255,255,255,.66); font-size: 11px; margin-top: 3px; }
.brand-lockup.large strong { font-size: 15px; }
.brand-lockup.large small { color: var(--muted); font-size: 12px; }
.activation-copy h1 { margin: 8px 0 14px; font-size: clamp(32px, 4vw, 50px); line-height: 1.06; letter-spacing: -.045em; color: var(--navy); }
.activation-copy p { color: var(--muted); line-height: 1.6; font-size: 15px; max-width: 480px; }
.eyebrow { display: inline-block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.stack-form { margin-top: 26px; display: grid; gap: 12px; }
label { color: #405662; font-size: 12px; font-weight: 700; }
input, select { width: 100%; margin-top: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; outline: none; }
input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 140, 134, .12); }
.stack-form input { padding: 15px 16px; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.button { border: 0; border-radius: 8px; padding: 12px 18px; font-weight: 750; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 7px 16px rgba(0,140,134,.18); }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { background: var(--pale-blue); color: var(--navy-2); border: 1px solid #c5dce5; }
.button.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.button.export { position: relative; padding-left: 39px; background: var(--navy); color: #fff; border: 1px solid var(--navy); box-shadow: 0 7px 16px rgba(18,54,77,.14); }
.button.export::before { content: "X"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; display: grid; place-items: center; border-radius: 4px; background: #1f9d62; color: #fff; font-size: 9px; font-weight: 900; }
.button.export.pdf { background: #fff; color: #a63b32; border-color: #efc7c2; box-shadow: none; }
.button.export.pdf::before { content: "PDF"; width: 22px; background: #c9473d; font-size: 7px; }
.button.export:disabled { cursor: wait; opacity: .65; transform: none; }
.export-actions { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(18,54,77,.05); }
.export-scope { flex: 1 0 100%; color: var(--teal-dark); font-size: 10px; font-weight: 800; text-align: right; }
.button.compact { padding: 9px 13px; font-size: 12px; }
.button.full { width: 100%; margin-top: 16px; }
.form-message { min-height: 22px; margin: 12px 0 0; font-size: 13px; color: var(--danger); }
.activation-note { margin-top: 14px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.8); border: 1px dashed #bfd2da; padding: 11px 13px; border-radius: 8px; }
.activation-visual { position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), #0d526b 60%, #087b77); }
.activation-visual::before, .activation-visual::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.05); }
.activation-visual::before { width: 460px; height: 460px; top: -180px; right: -110px; }
.activation-visual::after { width: 360px; height: 360px; bottom: -170px; left: -90px; }
.visual-sheet { width: min(73%, 720px); aspect-ratio: 1.2; background: #fff; border-radius: 15px; padding: 18px; transform: rotate(-3deg); box-shadow: 0 40px 90px rgba(0,0,0,.28); }
.visual-toolbar { height: 38px; border-radius: 8px; background: var(--navy); margin-bottom: 16px; }
.visual-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.visual-kpis i { height: 56px; border-radius: 8px; background: var(--pale-teal); border-left: 5px solid var(--teal); }
.visual-grid { height: calc(100% - 124px); background: repeating-linear-gradient(0deg, transparent 0 25px, #dce5e9 26px), repeating-linear-gradient(90deg, transparent 0 98px, #dce5e9 99px); border: 1px solid #dce5e9; }
.floating-chip { position: absolute; z-index: 2; background: #fff; color: var(--navy); border-radius: 999px; padding: 11px 16px; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.chip-one { left: 10%; top: 22%; }
.chip-two { right: 8%; bottom: 24%; }

.app-shell { min-height: 100vh; background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); background: var(--navy); padding: 24px 18px; display: flex; flex-direction: column; box-shadow: 7px 0 24px rgba(15, 43, 59, .06); }
.main-nav { display: grid; gap: 7px; margin-top: 42px; }
.nav-item { width: 100%; border: 0; background: transparent; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 9px; text-align: left; font-size: 13px; font-weight: 700; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--teal); color: #fff; box-shadow: 0 9px 20px rgba(0,0,0,.14); }
.nav-icon { font-size: 9px; border: 1px solid currentColor; border-radius: 4px; padding: 3px 4px; opacity: .8; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.license-mini { display: flex; align-items: center; gap: 10px; color: #fff; }
.license-mini b, .license-mini small { display: block; }
.license-mini b { font-size: 11px; }
.license-mini small { color: rgba(255,255,255,.62); font-size: 10px; margin-top: 3px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #39d18c; box-shadow: 0 0 0 5px rgba(57,209,140,.12); }
.text-button { border: 0; padding: 0; background: transparent; color: var(--teal); font-weight: 800; font-size: 12px; }
.sidebar .text-button { color: rgba(255,255,255,.68); margin: 15px 0 0 19px; }

.main-content { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--line); padding: 0 30px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.project-heading { min-width: 0; flex: 1; }
.project-heading .crumb { display: block; font-size: 9px; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.project-heading input { border: 0; padding: 2px 0; margin: 4px 0 0; font-size: 15px; font-weight: 800; color: var(--navy); max-width: 500px; border-radius: 0; }
.project-heading input:focus { box-shadow: none; border-bottom: 1px solid var(--teal); }
.top-actions, .page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.save-state { color: var(--muted); font-size: 11px; margin-right: 8px; }
.icon-button { border: 0; background: #f0f5f7; color: var(--navy); width: 36px; height: 36px; border-radius: 8px; font-size: 22px; display: grid; place-items: center; }
.menu-button { display: none; margin-right: 10px; }

.view { display: none; padding: 31px 34px 46px; max-width: 1700px; margin: 0 auto; }
.view.active { display: block; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.page-head h1 { margin: 5px 0 6px; font-size: clamp(25px, 2.6vw, 36px); line-height: 1.14; letter-spacing: -.035em; color: var(--navy); }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.province-badge { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); padding: 12px 16px; border-radius: 9px; min-width: 180px; }
.province-badge span, .province-badge small { display: block; }
.province-badge span { font-weight: 800; color: var(--navy); }
.province-badge small { margin-top: 4px; color: var(--muted); font-size: 10px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy-2); border-radius: 11px; padding: 18px; box-shadow: 0 4px 12px rgba(15,43,59,.035); }
.kpi-card.teal { border-top-color: var(--teal); }
.kpi-card.orange { border-top-color: var(--orange); }
.kpi-card.danger { border-top-color: var(--danger); background: #fffafa; }
.kpi-card span, .kpi-card small { display: block; }
.kpi-card span { color: var(--muted); font-size: 11px; font-weight: 750; }
.kpi-card strong { display: block; margin: 11px 0 8px; color: var(--navy); font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; }
.kpi-card small { color: #82919a; font-size: 10px; line-height: 1.4; }

.dashboard-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 20px; box-shadow: 0 4px 13px rgba(15,43,59,.035); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.panel-head h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.panel-head p { margin: 0; color: var(--muted); font-size: 11px; }
.cost-bars { min-height: 198px; display: grid; align-content: center; gap: 12px; }
.cost-bars.empty-state { color: var(--muted); font-size: 13px; background: repeating-linear-gradient(135deg,#fafcfd 0 10px,#f5f8fa 10px 20px); border: 1px dashed #c8d5db; border-radius: 8px; place-items: center; }
.bar-row { display: grid; grid-template-columns: 180px 1fr 126px; align-items: center; gap: 12px; font-size: 11px; }
.bar-row label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: #e9eff2; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--teal); }
.bar-row strong { text-align: right; color: var(--navy); }
.check-list { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding: 12px 12px 12px 38px; background: #f8fafb; border-radius: 8px; color: #425a67; font-size: 12px; line-height: 1.45; }
.check-list li::before { content: attr(data-index); position: absolute; left: 11px; top: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--pale-orange); color: #a65f17; font-size: 9px; font-weight: 800; }
.quick-bridge { background: linear-gradient(100deg,var(--navy),#0d536a); color: #fff; display: grid; grid-template-columns: minmax(260px,.85fr) 1.5fr; align-items: center; gap: 28px; }
.quick-bridge h2 { margin: 7px 0 0; max-width: 470px; font-size: 19px; line-height: 1.35; }
.quick-bridge .eyebrow { color: #74ddd6; }
.bridge-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }
.bridge-steps span { display: flex; align-items: center; gap: 8px; font-size: 11px; line-height: 1.3; color: rgba(255,255,255,.8); }
.bridge-steps b { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; }

.workbench.two-col { display: grid; grid-template-columns: minmax(400px,.88fr) minmax(430px,1.12fr); gap: 17px; align-items: start; }
.input-panel { border-top: 3px solid var(--orange); }
.results-panel { border-top: 3px solid var(--teal); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 13px; }
.form-grid input, .form-grid select { background: #fff9ef; border-color: #ead7bb; }
.form-grid input.calculated-field { background: #eef4f6; border-color: #c8d8df; color: var(--navy); cursor: not-allowed; font-weight: 800; }
.field-hint { display: block; margin-top: 5px; color: var(--teal-dark); font-size: 9px; font-weight: 700; }
.info-strip { margin-top: 17px; padding: 12px 14px; background: var(--pale-blue); border-left: 4px solid var(--navy-2); border-radius: 7px; color: #49616e; font-size: 11px; line-height: 1.5; }
.result-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.result-cards > div { padding: 15px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; background: #fafcfd; }
.result-cards > div.featured { background: var(--pale-teal); border-color: #abd9d4; transform: translateY(-3px); }
.result-cards span, .result-cards small { display: block; }
.result-cards span { font-size: 10px; color: var(--muted); font-weight: 800; }
.result-cards strong { display: block; font-size: clamp(16px,1.65vw,23px); color: var(--navy); margin: 10px 0 6px; }
.result-cards small { color: var(--teal-dark); font-size: 10px; }
.clean-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.clean-table th, .clean-table td { padding: 10px 2px; border-bottom: 1px solid #e4ebee; font-size: 12px; }
.clean-table th { text-align: left; color: #506670; font-weight: 600; }
.clean-table td { text-align: right; color: var(--navy); font-weight: 800; }
.clean-table .total-row th, .clean-table .total-row td { border-top: 2px solid var(--navy); color: var(--navy); font-size: 13px; }
.caption { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 13px 0 0; }
.quick-components-panel { margin-top: 17px; padding: 0; overflow: hidden; border-top: 3px solid var(--navy-2); }
.quick-components-head { align-items: center; padding: 19px 20px 0; }
.quick-components-head h2 { margin-top: 5px; }
.quick-component-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.quick-components-table { width: 100%; min-width: 1210px; border-collapse: collapse; table-layout: fixed; }
.quick-components-table th { position: sticky; top: 0; z-index: 2; padding: 11px 9px; background: var(--navy); color: #fff; font-size: 10px; text-align: center; }
.quick-components-table th:nth-child(1) { width: 58px; }
.quick-components-table th:nth-child(2) { width: 42%; text-align: left; }
.quick-components-table th:nth-child(3) { width: 105px; }
.quick-components-table th:nth-child(4) { width: 145px; }
.quick-components-table th:nth-child(5) { width: 160px; }
.quick-components-table th:nth-child(6) { width: 175px; }
.quick-components-table th:nth-child(7) { width: 145px; }
.quick-components-table td { padding: 10px 9px; border-bottom: 1px solid #e1e8ec; color: #38515e; font-size: 11px; vertical-align: top; transition: opacity .15s ease, background .15s ease; }
.quick-components-table tbody tr:nth-child(even) { background: #f8fafb; }
.quick-components-table tbody tr:hover { background: #f0f8f7; }
.quick-components-table td:nth-child(1), .quick-components-table td:nth-child(3) { text-align: center; vertical-align: middle; }
.quick-components-table td:nth-child(n+4) { text-align: right; vertical-align: middle; }
.quick-components-table input[type="number"] { min-width: 112px; margin: 0; padding: 8px 9px; border-color: #ead7bb; background: #fff9ef; text-align: right; }
.quick-components-table input.manual-value { border-color: var(--orange); background: #fff1da; box-shadow: inset 3px 0 0 var(--orange); }
.quick-components-table input.suggested-quantity { border-color: #9fc9d0; background: #eaf4f6; color: var(--navy); cursor: text; font-weight: 800; box-shadow: inset 3px 0 0 #5f9eaa; }
.quick-components-table input.suggested-quantity:hover { border-color: #5f9eaa; background: #f2fafb; }
.quick-components-table input.suggested-quantity:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(0,140,134,.14), inset 3px 0 0 var(--teal); }
.quick-components-table input.suggested-quantity.manual-quantity { border-color: #8065b3; background: #f2edff; color: #51367f; box-shadow: inset 3px 0 0 #8065b3; }
.quick-components-table input.suggested-quantity.manual-quantity:focus { border-color: #68499f; background: #fff; box-shadow: 0 0 0 3px rgba(104,73,159,.15), inset 3px 0 0 #68499f; }
.quantity-hint { display: block; margin-top: 4px; color: #4f7b86; font-size: 8px; font-weight: 800; text-align: right; }
.quantity-hint.manual { color: #68499f; }
.quick-item-disabled td { opacity: .48; background: #f4f6f7; }
.quick-item-disabled td:first-child { opacity: 1; }
.quick-group-tag { display: inline-block; margin: 0 7px 5px 0; padding: 3px 6px; border-radius: 999px; background: var(--pale-blue); color: var(--navy-2); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.quick-item-name, .quick-item-source, .quick-item-norm, .quick-item-supplier { display: block; }
.quick-item-name { margin-bottom: 5px; color: var(--navy); font-size: 12px; }
.quick-item-source { color: var(--teal-dark); font-size: 9px; font-weight: 750; }
.quick-item-norm { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.quick-item-supplier { margin-top: 4px; color: #607782; font-size: 8.5px; line-height: 1.35; }
.quick-line-amount, .quick-line-unit-rate { color: var(--navy); white-space: nowrap; }
.quick-check { position: relative; display: inline-grid; place-items: center; width: 34px; height: 22px; cursor: pointer; }
.quick-check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.quick-check span { position: relative; width: 34px; height: 19px; border-radius: 999px; background: #b8c5cb; transition: .18s ease; }
.quick-check span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .18s ease; }
.quick-check input:checked + span { background: var(--teal); }
.quick-check input:checked + span::after { transform: translateX(15px); }
.quick-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,140,134,.2); }
.quick-components-table tfoot th { position: static; padding: 11px 9px; border-top: 1px solid #cddcdf; background: var(--pale-teal); color: var(--navy); font-size: 10px; text-align: right; }
.quick-components-table tfoot th:nth-last-child(-n+2) { font-size: 12px; white-space: nowrap; }
.quick-components-table tfoot .quick-contingency-row th { background: var(--pale-orange); color: #825726; }
.quick-components-table tfoot .quick-overhead-row th { background: #e8f0f5; color: var(--navy-2); }
.quick-components-table tfoot .quick-total-row th { background: var(--navy); color: #fff; font-size: 12px; }
.quick-method-note { padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfcfd; color: var(--muted); font-size: 10px; line-height: 1.5; }
.quick-method-note strong { color: var(--navy); }

.table-page-head { align-items: center; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel > .panel-head { padding: 20px 20px 0; }
.table-toolbar, .lookup-filters { display: flex; align-items: end; gap: 12px; padding: 15px 17px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.table-toolbar { justify-content: space-between; }
.segmented { background: #eaf0f3; border-radius: 8px; padding: 3px; display: flex; }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 8px 11px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 7px rgba(15,43,59,.1); }
.inline-field { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.inline-field input { width: 230px; margin: 0; padding: 8px 10px; background: #fff; }
.table-scroll { width: 100%; overflow: auto; }
.estimate-table, .lookup-table, .summary-table { width: 100%; border-collapse: collapse; min-width: 1120px; }
.estimate-table th, .lookup-table th, .summary-table th { position: sticky; top: 0; z-index: 2; background: var(--navy); color: #fff; padding: 11px 9px; font-size: 10px; text-align: center; white-space: nowrap; }
.estimate-table td, .lookup-table td, .summary-table td { border-bottom: 1px solid #e1e8ec; padding: 9px; font-size: 11px; vertical-align: top; }
.estimate-table tbody tr:nth-child(even), .lookup-table tbody tr:nth-child(even), .summary-table tbody tr:nth-child(even) { background: #f8fafb; }
.estimate-table td:nth-child(1), .estimate-table td:nth-child(2), .estimate-table td:nth-child(5), .lookup-table td:nth-child(1), .lookup-table td:nth-child(5) { text-align: center; }
.estimate-table td:nth-child(6), .estimate-table td:nth-child(7), .estimate-table td:nth-child(9), .lookup-table td:nth-child(6), .lookup-table td:nth-child(7), .summary-table td:nth-child(n+3) { text-align: right; }
.estimate-table input { margin: 0; padding: 7px 8px; min-width: 92px; text-align: right; background: #fff9ef; border-color: #ead7bb; }
.estimate-table input.line-text { min-width: 100px; text-align: left; }
.estimate-table input.line-title-input { font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.estimate-table input.line-spec-input { color: var(--muted); font-size: 10px; }
.estimate-table input.line-unit-input { min-width: 70px; text-align: center; }
.estimate-table .line-title, .lookup-table .line-title { display: block; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.estimate-table .line-spec, .lookup-table .line-spec { color: var(--muted); line-height: 1.4; }
.estimate-table .supplier, .lookup-table .supplier { color: #49616e; line-height: 1.4; min-width: 200px; }
.delete-line { border: 0; background: #fff0f0; color: var(--danger); border-radius: 6px; width: 27px; height: 27px; }
.empty-box { margin: 20px; min-height: 180px; display: grid; place-content: center; text-align: center; border: 1px dashed #c8d5db; border-radius: 9px; color: var(--muted); background: #fafcfd; }
.empty-box strong, .empty-box span { display: block; }
.detail-sync-note { margin: 0; padding: 12px 18px; background: var(--pale-teal); color: var(--navy); font-size: 14px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.empty-box strong { color: var(--navy); margin-bottom: 7px; }
.empty-box span { font-size: 11px; max-width: 460px; line-height: 1.5; }
.table-total { display: flex; justify-content: flex-end; align-items: center; gap: 20px; padding: 18px 22px; border-top: 1px solid var(--line); background: var(--pale-teal); }
.table-total span { font-size: 12px; font-weight: 800; color: var(--muted); }
.table-total strong { font-size: 22px; color: var(--navy); }

.lookup-filters label { min-width: 180px; }
.lookup-filters .grow { flex: 1; }
.lookup-filters input, .lookup-filters select { margin-top: 5px; padding: 9px 10px; background: #fff; }
.lookup-meta { display: flex; justify-content: space-between; padding: 10px 17px; color: var(--muted); font-size: 11px; }
.lookup-meta span { color: var(--navy); font-weight: 800; }
.add-row { border: 0; border-radius: 6px; padding: 7px 9px; color: var(--teal-dark); background: var(--pale-teal); white-space: nowrap; font-size: 10px; font-weight: 800; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

.summary-banner { display: grid; grid-template-columns: repeat(4,1fr); background: linear-gradient(100deg,var(--navy),var(--navy-2)); border-radius: 11px; margin-bottom: 16px; overflow: hidden; }
.summary-banner > div { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.13); }
.summary-banner > div:last-child { border: 0; }
.summary-banner span, .summary-banner strong { display: block; }
.summary-banner span { color: rgba(255,255,255,.66); font-size: 10px; margin-bottom: 9px; }
.summary-banner strong { color: #fff; font-size: 20px; }
.summary-table { min-width: 720px; }
.summary-table tfoot th { background: var(--pale-teal); color: var(--navy); padding: 13px 10px; text-align: right; }
.summary-table td:nth-child(2) { font-weight: 800; color: var(--navy); }
.summary-note { margin: 20px; padding: 13px 15px; background: var(--pale-orange); border-left: 4px solid var(--orange); color: #6a543c; font-size: 11px; line-height: 1.5; }

.project-stats { display: grid; grid-template-columns: 1.05fr .55fr 1.4fr; gap: 14px; margin-bottom: 16px; }
.project-stats article { min-width: 0; padding: 17px 19px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 10px; box-shadow: 0 4px 13px rgba(15,43,59,.035); }
.project-stats span, .project-stats strong { display: block; }
.project-stats span { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.project-stats strong { overflow: hidden; color: var(--navy); font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.project-panel { padding: 20px; overflow: visible; }
.project-panel > .panel-head { padding: 0; }
.project-tree { padding: 3px 2px 4px; }
.tree-root-label { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 9px; background: linear-gradient(105deg,var(--navy),var(--navy-2)); color: #fff; }
.tree-root-label > span:last-child { min-width: 0; }
.tree-root-label strong, .tree-root-label small { display: block; }
.tree-root-label strong { font-size: 13px; }
.tree-root-label small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 10px; }
.tree-folder, .project-file { flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; font-weight: 900; }
.tree-folder { width: 29px; height: 25px; background: var(--pale-blue); color: var(--navy-2); font-size: 10px; }
.tree-folder.root { width: 34px; height: 34px; background: var(--teal); color: #fff; }
.tree-groups { position: relative; margin-left: 32px; padding: 13px 0 0 28px; }
.tree-groups::before { content: ""; position: absolute; inset: 0 auto 18px 0; width: 2px; background: #b9cbd3; }
.tree-group { position: relative; margin-bottom: 16px; }
.tree-group::before { content: ""; position: absolute; top: 13px; left: -28px; width: 28px; height: 2px; background: #b9cbd3; }
.tree-group-label { min-height: 28px; display: flex; align-items: center; gap: 9px; color: var(--navy); }
.tree-group-label strong { font-size: 12px; }
.tree-group-label small { margin-left: 2px; color: var(--muted); font-size: 10px; }
.tree-children { position: relative; display: grid; gap: 9px; margin: 9px 0 0 14px; padding-left: 26px; }
.tree-children::before { content: ""; position: absolute; inset: -8px auto 21px 0; width: 1px; background: #c9d6dc; }
.project-node { position: relative; display: grid; grid-template-columns: 38px minmax(220px,1fr) minmax(150px,.35fr) auto; align-items: center; gap: 13px; min-height: 76px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: .16s ease; }
.project-node::before { content: ""; position: absolute; top: 50%; left: -26px; width: 26px; height: 1px; background: #c9d6dc; }
.project-node:hover { border-color: #9fc9c6; box-shadow: 0 7px 18px rgba(15,43,59,.07); transform: translateY(-1px); }
.project-node.active { border-color: var(--teal); background: #f4fbfa; box-shadow: inset 4px 0 0 var(--teal); }
.project-file { width: 36px; height: 42px; background: var(--pale-teal); color: var(--teal-dark); font-size: 9px; }
.project-main { min-width: 0; }
.project-main strong, .project-main span, .project-total small, .project-total strong { display: block; }
.project-main strong { overflow: hidden; margin-bottom: 6px; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-main span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.project-total { text-align: right; }
.project-total small { margin-bottom: 5px; color: var(--muted); font-size: 9px; }
.project-total strong { color: var(--navy); font-size: 14px; white-space: nowrap; }
.project-actions { display: flex; gap: 6px; }
.project-actions button { border: 1px solid #b8d8d5; border-radius: 6px; background: var(--pale-teal); color: var(--teal-dark); padding: 7px 9px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.project-actions .danger-action { border-color: #efceca; background: #fff5f4; color: var(--danger); }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px; background: rgba(8,30,42,.6); backdrop-filter: blur(3px); }
.modal-card { width: min(1120px,96vw); height: min(780px,92vh); background: #fff; border-radius: 13px; box-shadow: 0 30px 80px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.modal-card.compact-modal { width: min(520px,94vw); height: auto; max-height: 90vh; }
.modal-head { padding: 20px 22px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0; color: var(--navy); font-size: 21px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 11px; }
.modal-filters { padding: 12px 18px; }
.modal-list { padding: 12px 18px; overflow: auto; flex: 1; display: grid; align-content: start; gap: 8px; background: #f8fafb; }
.shortlist-item { display: grid; grid-template-columns: 70px minmax(250px,1.1fr) minmax(220px,1fr) 108px 148px 95px; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.shortlist-item:hover { border-color: #93c9c5; box-shadow: 0 4px 12px rgba(15,43,59,.05); }
.shortlist-item .code { text-align: center; font-weight: 800; color: var(--navy-2); background: var(--pale-blue); border-radius: 5px; padding: 6px; }
.shortlist-item .name { font-weight: 800; color: var(--navy); font-size: 12px; }
.shortlist-item .spec { color: var(--muted); font-size: 10px; line-height: 1.35; }
.shortlist-item .unit { text-align: center; color: var(--muted); font-size: 10px; }
.shortlist-item .price { text-align: right; font-weight: 800; color: var(--teal-dark); font-size: 11px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.project-form { display: grid; gap: 16px; padding: 22px; }
.project-form input { margin-top: 8px; background: #fff9ef; border-color: #ead7bb; }
.project-form .modal-foot { margin: 2px -22px -22px; justify-content: flex-end; gap: 9px; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; background: var(--navy); color: #fff; border-left: 4px solid var(--teal); border-radius: 8px; padding: 12px 16px; box-shadow: 0 12px 30px rgba(0,0,0,.25); font-size: 12px; max-width: 380px; }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: span 1; }
  .span-3 { grid-column: span 2; }
  .quick-bridge { grid-template-columns: 1fr; }
  .workbench.two-col { grid-template-columns: 1fr; }
  .project-node { grid-template-columns: 38px minmax(180px,1fr) auto; }
  .project-total { display: none; }
  .shortlist-item { grid-template-columns: 62px minmax(220px,1fr) 100px 140px 88px; }
  .shortlist-item .spec { display: none; }
}

@media (max-width: 820px) {
  .activation-screen { grid-template-columns: 1fr; }
  .activation-card { padding: 38px 25px; min-height: 100vh; }
  .activation-visual { display: none; }
  .brand-lockup.large { margin-bottom: 45px; }
  .sidebar { transform: translateX(-105%); transition: .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { padding: 0 15px; }
  .top-actions .save-state, .top-actions .ghost { display: none; }
  .view { padding: 24px 16px 40px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .table-page-head .page-actions { width: 100%; }
  .table-page-head .page-actions .button { flex: 1; }
  .export-scope { text-align: left; }
  .summary-banner { grid-template-columns: repeat(2,1fr); }
  .project-stats { grid-template-columns: 1fr 1fr; }
  .project-stats article:last-child { grid-column: span 2; }
  .lookup-filters { flex-wrap: wrap; }
  .lookup-filters label { min-width: calc(50% - 8px); flex: 1; }
  .lookup-filters .grow { flex-basis: 100%; }
  .shortlist-item { grid-template-columns: 58px 1fr 95px 78px; }
  .shortlist-item .unit { display: none; }
  .quick-components-head { align-items: flex-start; flex-direction: column; }
  .quick-component-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 560px) {
  .project-heading input { font-size: 13px; }
  .top-actions .button { font-size: 0; width: 36px; height: 36px; padding: 0; }
  .top-actions .button::after { font-size: 18px; }
  #save-project-now::after { content: "✓"; }
  #reset-project::after { content: "+"; }
  #go-summary::after { content: "Σ"; }
  .kpi-grid, .dashboard-grid, .form-grid, .result-cards { grid-template-columns: 1fr; }
  .span-3 { grid-column: span 1; }
  .kpi-card { padding: 15px; }
  .bridge-steps { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 115px 1fr; }
  .bar-row strong { grid-column: 2; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .inline-field { display: block; }
  .inline-field input { width: 100%; margin-top: 6px; }
  .summary-banner { grid-template-columns: 1fr; }
  .summary-banner > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .project-stats { grid-template-columns: 1fr; }
  .project-stats article:last-child { grid-column: auto; }
  .tree-groups { margin-left: 15px; padding-left: 20px; }
  .tree-group::before { left: -20px; width: 20px; }
  .tree-children { margin-left: 5px; padding-left: 16px; }
  .project-node { grid-template-columns: 34px 1fr; gap: 10px; }
  .project-node::before { left: -16px; width: 16px; }
  .project-actions { grid-column: 2; }
  .lookup-filters label { min-width: 100%; }
  .modal { padding: 0; }
  .modal-card { width: 100%; height: 100%; border-radius: 0; }
  .shortlist-item { grid-template-columns: 52px 1fr 83px; }
  .shortlist-item .price { display: none; }
  .quick-component-actions .button { flex: 1; }
}

.admin-body { background: var(--bg); }
.admin-topbar { height: 72px; padding: 0 34px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; }
.admin-main { max-width: 1440px; margin: 0 auto; padding: 32px 34px 50px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px,.7fr) minmax(550px,1.3fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.admin-login input { background: #fff9ef; }
.create-license .button[type=submit] { align-self: end; }
.new-key-box { grid-column: 1 / -1; margin-top: 16px; padding: 15px; border-radius: 9px; background: var(--pale-teal); border: 1px solid #abd9d4; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; }
.new-key-box span, .new-key-box small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; }
.new-key-box strong { color: var(--navy); font-size: 20px; letter-spacing: .08em; }
.license-panel > .panel-head { padding-right: 20px; }
.admin-list-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.license-table { width: 100%; min-width: 1050px; border-collapse: collapse; }
.license-table th { background: var(--navy); color: #fff; padding: 11px 9px; font-size: 10px; }
.license-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); font-size: 11px; vertical-align: top; }
.license-table td strong, .license-table td small { display: block; }
.license-table td small { color: var(--muted); margin-top: 4px; max-width: 250px; }
.license-table code { color: var(--navy-2); background: var(--pale-blue); padding: 5px 7px; border-radius: 5px; }
.status-pill { display: inline-block; border-radius: 999px; padding: 5px 8px; font-weight: 800; font-size: 9px; }
.status-pill.green { background: #e5f6ec; color: #16784a; }
.status-pill.orange { background: var(--pale-orange); color: #a65f17; }
.status-pill.red { background: #fff0f0; color: var(--danger); }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.row-actions button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 5px; padding: 5px 7px; font-size: 9px; font-weight: 800; }
.row-actions button:disabled, .button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.row-actions .detail-action { background: var(--pale-teal); color: var(--teal-dark); border-color: #add9d5; }
.row-actions .danger-action { color: var(--danger); border-color: #efcaca; }
.admin-empty { text-align: center; color: var(--muted); padding: 30px !important; }
.modal-open { overflow: hidden; }
.admin-detail-modal { width: min(1120px, 96vw); height: auto; max-height: 92vh; }
.admin-detail-body { flex: 1; overflow: auto; padding: 20px 22px; background: #f7fafb; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.customer-detail-grid article { min-width: 0; min-height: 92px; padding: 14px 15px; border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 9px; background: #fff; }
.customer-detail-grid span, .customer-detail-grid strong, .customer-detail-grid small { display: block; }
.customer-detail-grid span { color: var(--muted); font-size: 10px; font-weight: 750; }
.customer-detail-grid strong { overflow: hidden; margin-top: 10px; color: var(--navy); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.customer-detail-grid small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.detail-section { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.detail-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.detail-section-head h3 { margin: 0 0 5px; color: var(--navy); font-size: 14px; }
.detail-section-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.detail-action-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 12px; }
.extend-control { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }
.extend-control input { background: #fff9ef; border-color: #ead7bb; }
.extend-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.extend-presets button { padding: 6px 9px; border: 1px solid #b8d8d5; border-radius: 6px; background: var(--pale-teal); color: var(--teal-dark); font-size: 9px; font-weight: 800; }
.extend-preview { margin: 10px 0 0; color: var(--teal-dark); font-size: 10px; font-weight: 750; }
.danger-zone { border-color: #edc7c3; background: #fffafa; }
.danger-zone .detail-section-head h3 { color: var(--danger); }
.danger-zone input { border-color: #e5b9b5; background: #fff; text-transform: uppercase; letter-spacing: .08em; }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: #aa2f2f; }
.device-detail-list { display: grid; gap: 7px; margin-top: 13px; }
.device-detail-item { display: grid; grid-template-columns: 30px minmax(180px, 1fr) minmax(140px, .7fr) minmax(140px, .7fr); align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid #e0e8eb; border-radius: 8px; background: #f9fbfc; }
.device-detail-item .device-number { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--pale-teal); color: var(--teal-dark); font-size: 9px; font-weight: 800; }
.device-detail-item strong, .device-detail-item small, .device-detail-item code { display: block; }
.device-detail-item strong { color: var(--navy); font-size: 10px; line-height: 1.4; }
.device-detail-item small { margin-bottom: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.device-detail-item code { margin-top: 5px; color: var(--muted); font-size: 9px; }
.device-empty { padding: 22px; border: 1px dashed #c8d5db; border-radius: 8px; background: #fafcfd; color: var(--muted); text-align: center; font-size: 11px; }

@media (max-width: 820px) {
  .admin-main { padding: 24px 16px 40px; }
  .admin-topbar { padding: 0 16px; }
  .admin-grid { grid-template-columns: 1fr; }
  .customer-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-action-grid { grid-template-columns: 1fr; }
  .device-detail-item { grid-template-columns: 30px minmax(180px, 1fr); }
  .device-detail-item > div:nth-child(n+3) { grid-column: 2; }
}

@media (max-width: 560px) {
  .admin-topbar .button { padding: 8px 10px; font-size: 10px; }
  .license-panel > .panel-head { padding-right: 14px; }
  .admin-list-actions { width: 100%; }
  .admin-list-actions .button { flex: 1; }
  .admin-detail-modal { width: 100%; height: 100%; max-height: none; }
  .admin-detail-body { padding: 14px; }
  .customer-detail-grid { grid-template-columns: 1fr; }
  .customer-detail-grid article { min-height: 76px; }
  .extend-control { grid-template-columns: 1fr; }
  .detail-section-head { flex-direction: column; }
  .device-detail-item { grid-template-columns: 28px 1fr; gap: 9px; }
}

@media print {
  .sidebar, .topbar, .page-actions, #view-dashboard, #view-quick, #view-detail, #view-lookup, #view-projects { display: none !important; }
  .main-content { margin: 0; }
  #view-summary { display: block !important; padding: 0; }
  body { background: #fff; }
  .summary-banner { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .panel { box-shadow: none; border-color: #aaa; }
  .summary-table { min-width: 0; }
}

@media print {
  .sidebar, .topbar, .page-actions, .pager, .toast { display: none !important; }
  .main-content { margin: 0; }
  .view { display: none !important; padding: 0; }
  #view-summary { display: block !important; }
  body { background: #fff; }
  .panel, .summary-banner { box-shadow: none; break-inside: avoid; }
  .table-scroll { overflow: visible; }
  .summary-table { min-width: 0; }
}
.permissions-fieldset { grid-column:1/-1; border:1px solid #c5d9df; border-radius:10px; padding:18px; margin:0; min-width:0; }
.permissions-fieldset legend { color:#12364d; font-weight:700; padding:0 7px; font-size:16px; }
.permission-presets { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 15px; }
.permission-presets button { border:1px solid #bfd6d7; border-radius:6px; background:#f0f8f6; color:#0c6d68; padding:8px 12px; font:inherit; font-size:14px; cursor:pointer; }
.permission-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 16px; margin-bottom:16px; }
.permission-options label { display:flex; align-items:flex-start; gap:9px; font-size:14px; font-weight:500; color:#244c5e; line-height:1.5; cursor:pointer; }
.permission-options input[type=checkbox] { width:18px; height:18px; padding:0; margin:2px 0 0; flex:0 0 18px; accent-color:#008c86; }
.permissions-fieldset p,#detail-permission-section>p { font-size:14px; color:#546e7d; line-height:1.6; margin:10px 0; }
.license-table .license-permissions { min-width:190px; max-width:260px; white-space:normal; line-height:1.7; font-size:13px; color:#286064; }
#detail-permission-section { scroll-margin-top:15px; }
#detail-permission-section h3 { margin-top:0; }
#new-key-permissions { margin-bottom:12px; }
.permission-locked { display:none !important; }

.demo-estimate-banner { margin:20px 28px 0; padding:16px 20px; border:1px solid #87c9c4; border-radius:12px; background:#eaf8f6; display:flex; align-items:center; gap:20px; color:#12364d; }
.demo-estimate-banner p { margin:5px 0 0; font-size:.9rem; line-height:1.5; }
.demo-estimate-banner a { flex-shrink:0; color:#006f6a; font-size:.9rem; font-weight:700; }
.demo-feature-locked { opacity:.8; }
.demo-feature-locked::after { content:" 🔒"; font-size:.8rem; }
.estimate-demo input[data-demo-lock] { background:#eef3f5 !important; color:#17313f; cursor:pointer; }
.demo-feature-dialog { width:min(520px,calc(100% - 32px)); padding:28px; border:1px solid #d4e1e7; border-radius:16px; color:#17313f; box-shadow:0 24px 70px #102d4560; }
.demo-feature-dialog::backdrop { background:#0a2137a8; }
.demo-feature-dialog h2 { margin:8px 0 12px; font-size:1.35rem; }
.demo-feature-dialog p { font-size:1rem; line-height:1.6; margin:0 0 20px; }
.demo-feature-dialog .button { display:flex; justify-content:center; width:100%; margin-top:10px; white-space:normal; text-align:center; }
#demo-feature-close { float:right; }
@media(max-width:700px) { .demo-estimate-banner { margin:12px 14px 0; padding:14px; flex-direction:column; align-items:flex-start; gap:10px; } }
@media print { .table-scroll-hint, .menu-backdrop, .sidebar-close { display:none !important; } }
@media(max-width:560px) { .permission-options { grid-template-columns:1fr; } .permissions-fieldset { padding:14px; } }

.credit-topup-dialog { max-height:90dvh; overflow:auto; box-sizing:border-box; }
.credit-bank-image { display:block; width:min(100%,300px); height:auto; margin:0 auto 18px; }
.credit-topup-dialog label { display:block; font-weight:700; margin-bottom:8px; }
#credit-transfer-note { box-sizing:border-box; width:100%; padding:12px; border:1px solid #bdcdd6; border-radius:8px; font:inherit; background:#f3f8fa; color:#17313f; }
.credit-topup-dialog .credit-topup-help { font-size:.9rem; margin:16px 0 8px; }
#open-credit-topup { width:100%; margin-top:10px; }
