:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --surface-soft: #faf7f3;
  --text: #1f1f1f;
  --muted: #767676;
  --line: #dedbd7;
  --line-strong: #cfc9c2;
  --accent: #d19a43;
  --accent-deep: #b67c24;
  --accent-soft: #f3e8da;
  --shadow: 0 16px 50px rgba(38, 30, 21, .07);
  --radius: 18px;
  --content: 1000px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1f1f1f;
  --surface: #292929;
  --surface-soft: #242424;
  --text: #ffffff;
  --muted: #bdbdbd;
  --line: #484848;
  --line-strong: #606060;
  --accent: #d4c4b0;
  --accent-deep: #e5d8c8;
  --accent-soft: #3a342e;
  --shadow: 0 18px 60px rgba(0, 0, 0, .24);
}

[data-theme="dark"] .primary-button,
[data-theme="dark"] .wide-button { background: var(--accent); color: #1f1f1f; }
[data-theme="dark"] .primary-button:hover,
[data-theme="dark"] .wide-button:hover { background: var(--accent-deep); color: #1f1f1f; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 3px; }
.visually-hidden { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-header {
  position: relative;
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 28px 0 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
.theme-quick-toggle {
  justify-self: end;
  align-self: start;
  position: relative;
  width: 68px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-quick-toggle .theme-icon { position: absolute; z-index: 2; top: 8px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-quick-toggle .theme-icon--moon { left: 9px; }
.theme-quick-toggle .theme-icon--sun { right: 9px; opacity: .42; }
.theme-toggle-knob { position: absolute; z-index: 1; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--text); transition: transform .22s ease, background-color .2s ease; }
[data-theme="dark"] .theme-quick-toggle { background: var(--surface); }
[data-theme="dark"] .theme-quick-toggle .theme-icon--moon { opacity: .42; }
[data-theme="dark"] .theme-quick-toggle .theme-icon--sun { opacity: 1; }
[data-theme="dark"] .theme-toggle-knob { background: #fff; transform: translateX(-34px); }
.brand { border: 0; padding: 0; background: transparent; transition: transform .2s ease; }
.brand:hover { transform: translateY(-2px); }
.brand img { width: 138px; height: 138px; display: block; object-fit: cover; }
.header-action {
  border: 0; background: transparent; padding: 12px 6px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; transition: color .2s ease, transform .2s ease;
}
.header-action:first-child { justify-self: start; }
.header-action:last-child { justify-self: end; }
.header-spacer { width: 1px; height: 1px; justify-self: end; }
.header-action:hover { color: var(--accent-deep); transform: translateY(-1px); }
.header-icon { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.gear-icon { font-size: 27px; line-height: 1; }
.list-icon { flex-direction: column; gap: 4px; }
.list-icon i { display: block; width: 21px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.list-icon i::before { content: ""; width: 3px; height: 3px; border-radius: 50%; position: absolute; left: -6px; top: -.5px; background: currentColor; }

.app-shell { width: min(100% - 40px, var(--content)); margin: 0 auto; padding-bottom: 90px; }
.page { display: none; width: 100%; max-width: 100%; margin-inline: auto; animation: pageIn .32s ease both; }
.page--active { display: block; }
html[data-initial-route="price"] #calculator-page.page--active,
html[data-initial-route="settings"] #calculator-page.page--active { display: none; }
html[data-initial-route="price"] #price-page,
html[data-initial-route="settings"] #settings-page { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
h1 { margin: 24px 0 58px; text-align: center; text-transform: uppercase; font-size: clamp(27px, 4vw, 36px); line-height: 1.15; letter-spacing: -.03em; }

.dimension-fields { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: end; gap: 24px; }
.number-field { display: grid; gap: 17px; font-size: 17px; font-weight: 600; text-transform: uppercase; }
.number-field > span { text-align: center; }
.desktop-calculator-grid, .desktop-left-column, .desktop-right-column { display: contents; }
.number-field input {
  width: 100%; height: 116px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  text-align: center; font-size: clamp(46px, 8vw, 66px); font-weight: 500; letter-spacing: -.04em;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .25s ease;
}
.number-field input:hover, .number-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent); }
.number-field input::-webkit-inner-spin-button { display: none; }
.multiply { padding-bottom: 28px; text-align: center; font-size: 52px; font-weight: 300; }

.range-group { margin-top: 52px; }
.range-group label { display: block; text-align: center; margin-bottom: 25px; font-size: 17px; text-transform: uppercase; font-weight: 600; }
input[type="range"] {
  --range-progress: 31%; appearance: none; width: 100%; height: 8px; border-radius: 10px; outline: 0;
  background: linear-gradient(90deg, var(--accent) 0 var(--range-progress), var(--line) var(--range-progress) 100%);
}
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 34px; height: 34px; border: 5px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
input[type="range"]::-moz-range-thumb { width: 25px; height: 25px; border: 5px solid var(--accent); border-radius: 50%; background: var(--surface); }
.range-scale { display: flex; justify-content: space-between; margin-top: 19px; color: var(--text); font-size: 15px; }
.range-scale span { position: relative; min-width: 24px; text-align: center; }
.range-scale span::before { content: ""; position: absolute; top: -18px; left: 50%; width: 1px; height: 11px; background: var(--muted); opacity: .7; }

.calculator-options { margin-top: 28px; padding: 26px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.option-switch > span { font-size: 14px; font-weight: 700; text-transform: uppercase; }
.option-switch input:focus-visible + i, .component-toggle input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent); outline-offset: 3px; }
.option-switch { position: relative; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.option-switch input, .component-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.option-switch input { right: 0; z-index: 1; width: 48px; height: 27px; pointer-events: auto; cursor: pointer; }
.option-switch i, .component-toggle i { width: 48px; height: 27px; border-radius: 20px; background: var(--line-strong); position: relative; transition: background .2s ease; }
.option-switch i::after, .component-toggle i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: transform .2s ease; }
.option-switch input:checked + i, .component-toggle input:checked + i { background: var(--accent); }
.option-switch input:checked + i::after, .component-toggle input:checked + i::after { transform: translateX(21px); }

.canvas-select-wrap { margin-top: 55px; padding-top: 38px; border-top: 1px solid var(--line); }
.canvas-select-wrap > label { display: block; margin: 0 0 16px 12px; text-transform: uppercase; font-size: 17px; font-weight: 600; }
.select-shell { position: relative; }
.select-shell::after { content: ""; position: absolute; right: 28px; top: 50%; width: 13px; height: 13px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select-shell select {
  appearance: none; width: 100%; min-height: 86px; border: 1.5px solid var(--accent); border-radius: 14px; background: var(--surface);
  padding: 0 70px 0 28px; font-size: clamp(18px, 3.5vw, 26px); font-weight: 700;
}

.price-card {
  margin-top: 36px; padding: 31px 24px 37px; border-radius: var(--radius); text-align: center;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.price-card > span { display: block; margin-bottom: 5px; text-transform: uppercase; font-size: 18px; font-weight: 600; }
.price-card div { display: flex; align-items: baseline; justify-content: center; gap: 22px; }
.price-card strong { font-size: clamp(72px, 17vw, 142px); line-height: 1; letter-spacing: .03em; font-weight: 600; }
.price-card em { color: var(--accent); font-size: clamp(27px, 6vw, 44px); font-style: normal; font-weight: 600; }
.price-card.is-recalculated { animation: priceRecalculated .45s ease; }
@keyframes priceRecalculated {
  0%, 100% { transform: none; box-shadow: var(--shadow); }
  45% { transform: translateY(-2px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
}
.details-toggle { margin: 22px auto 0; border: 0; background: transparent; display: flex; align-items: center; gap: 24px; font-size: 20px; padding: 10px 18px; }
.chevron { width: 15px; height: 15px; border-right: 3px solid; border-bottom: 3px solid; transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.details-toggle[aria-expanded="true"] .chevron { transform: translateY(4px) rotate(225deg); }
.details-panel { margin-top: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 23px; }
.summary-item { padding: 18px; border-radius: 13px; background: var(--surface-soft); }
.summary-item span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.summary-item strong { font-size: 20px; }
.summary-markup-control { display: flex !important; align-items: center; gap: 5px; margin: 0 !important; color: var(--text) !important; }
.summary-markup-control input { width: 74px; min-width: 0; padding: 0 4px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); font: inherit; font-size: 20px; font-weight: 800; line-height: 1.2; }
.summary-markup-control input:focus { outline: 0; border-bottom-color: var(--accent); box-shadow: none; }
.summary-markup-control strong { color: var(--text); }
.cost-lines { display: grid; grid-template-columns: 1fr auto; gap: 0 20px; }
.cost-lines span, .cost-lines strong { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cost-lines strong { text-align: right; font-weight: 600; }

.admin-entry { margin-top: 34px; padding: 25px 28px; border-radius: var(--radius); background: var(--surface-soft); }
.admin-entry h2 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.admin-entry-row { display: flex; align-items: center; gap: 18px; }
.admin-entry #admin-entry-button { flex: 1; min-width: 0; border: 0; padding: 10px 0 2px; background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; font-weight: 600; }
.admin-entry-logout { flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 9px; padding: 8px 12px; background: transparent; font-size: 12px; font-weight: 700; }
.admin-entry button[aria-expanded="true"] .chevron { transform: translateY(4px) rotate(225deg); }
.admin-details { margin-top: 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.admin-panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 24px; }
.admin-panel-heading p { margin: 0 0 5px; color: var(--accent-deep); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.admin-panel-heading h2 { margin: 0; font-size: 23px; }
.admin-tax-controls { display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: 25px; align-items: end; margin: 0 0 26px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; }
.admin-number-control { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.admin-number-control input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: var(--bg); }
.admin-components { margin-bottom: 25px; }
.admin-components h3 { margin: 0 0 12px; font-size: 17px; }
.admin-components .component-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 0; }
.admin-logout-button { white-space: nowrap; }
.admin-warning { width: 100%; margin-bottom: 16px; border: 1px solid #c86a62; border-radius: 11px; padding: 13px 16px; background: color-mix(in srgb, #c86a62 8%, var(--surface)); color: #a43f37; text-align: left; font-size: 13px; font-weight: 700; }
.admin-section { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; margin-top: 12px; }
.admin-section-toggle { width: 100%; min-height: 58px; border: 0; padding: 14px 18px; background: var(--surface-soft); display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; font-weight: 800; }
.admin-section-toggle[aria-expanded="true"] .chevron { transform: translateY(4px) rotate(225deg); }
.admin-section-content { padding: 20px; }
.admin-financial-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.admin-financial-grid > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.admin-financial-grid span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.admin-financial-grid strong { display: block; font-size: clamp(15px, 2vw, 19px); overflow-wrap: anywhere; }
.admin-cost-group + .admin-cost-group { margin-top: 25px; }
.admin-cost-group h4 { margin: 0 0 10px; color: var(--accent-deep); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.admin-cost-head, .admin-cost-row { display: grid; grid-template-columns: minmax(150px, 1.05fr) minmax(240px, 1.65fr) minmax(110px, .55fr); gap: 18px; align-items: center; }
.admin-cost-head { padding: 0 12px 9px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.admin-cost-row { min-height: 58px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.admin-cost-row.is-disabled { opacity: .55; }
.admin-cost-row.has-warning { border-left: 3px solid #c65b51; background: color-mix(in srgb, #c65b51 5%, var(--surface)); }
.admin-cost-name { display: grid; gap: 3px; }
.admin-cost-name small { color: var(--muted); font-size: 11px; }
.admin-cost-row.has-warning .admin-cost-name small, .admin-cost-row.has-warning .admin-cost-amount { color: #b8443b; font-weight: 700; }
.admin-cost-formula { color: var(--muted); line-height: 1.45; }
.admin-cost-amount { text-align: right; font-weight: 700; }
.admin-cost-subtotal { padding: 12px; border-top: 1px solid var(--line-strong); display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.admin-production-total { margin-top: 22px; padding: 17px 18px; border-radius: 11px; background: var(--surface-soft); display: flex; justify-content: space-between; gap: 20px; text-transform: uppercase; font-weight: 800; }
.admin-control-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.admin-number-control select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; background: var(--bg); }
.admin-result-lines, .admin-service-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 0 18px; }
.admin-result-lines span, .admin-result-lines strong, .admin-service-grid span, .admin-service-grid strong { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.admin-result-lines strong, .admin-service-grid strong { text-align: right; }
.admin-service-grid { margin-top: 0; }

.currency-info { margin: 26px 0 0; padding: 14px 4px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; color: var(--muted); font-size: 12px; }
.currency-info span:nth-child(2) { text-align: center; }
.currency-info span:last-child { text-align: right; }

.subpage { padding-top: 8px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 12px 0 34px; }
.page-heading p { margin: 0 0 6px; color: var(--accent-deep); font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.page-heading h1 { margin: 0; text-align: left; text-transform: none; font-size: 38px; }
.primary-button, .secondary-button, .wide-button, .text-button, .icon-button {
  border-radius: 11px; padding: 13px 19px; border: 1px solid transparent; font-weight: 700; transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.primary-button, .wide-button { background: var(--text); color: var(--bg); }
.primary-button:hover, .wide-button:hover { transform: translateY(-1px); background: var(--accent-deep); color: #fff; }
.secondary-button { background: transparent; border-color: var(--line-strong); }
.text-button { background: transparent; color: var(--muted); }
.text-button:hover { color: var(--accent-deep); }
.wide-button { display: block; width: 100%; margin-top: 18px; padding: 17px; }

.table-card, .settings-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { min-width: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
td { font-size: 15px; }
td:nth-child(4) { font-weight: 800; font-size: 17px; }
td:last-child { text-align: right; }
tr:last-child td { border-bottom: 0; }
.row-actions { display: inline-flex; gap: 6px; }
.table-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.table-check input { accent-color: var(--accent-deep); }
.icon-button { border-color: var(--line); background: transparent; padding: 8px 10px; font-size: 13px; }
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button:hover { border-color: var(--accent); color: var(--accent-deep); }
.icon-button.danger:hover { border-color: #c65b51; color: #c65b51; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.price-loading-row { height: 138px !important; grid-template-columns: 1fr !important; }
.price-loading-row td { grid-column: 1; width: 100%; display: grid; gap: 12px; padding: 26px !important; }
.price-loading-row td span { display: block; height: 12px; border-radius: 8px; background: var(--surface-soft); animation: loadingPulse 1s ease-in-out infinite alternate; }
.price-loading-row td span:nth-child(1) { width: 92%; }
.price-loading-row td span:nth-child(2) { width: 72%; }
.price-loading-row td span:nth-child(3) { width: 84%; }
@keyframes loadingPulse { from { opacity: .55; } to { opacity: 1; } }

.price-table { display: block; width: 100%; white-space: nowrap; }
.price-table thead, .price-table tbody { display: block; width: 100%; }
.price-table tr { position: relative; display: grid; grid-template-columns: 48px 100px 100px minmax(150px, 1fr) 150px 100px 190px; align-items: center; }
.price-table thead tr { min-height: 54px; }
.price-table tbody tr { height: 69px; }
.price-table th, .price-table td { min-width: 0; height: 100%; padding: 14px; display: flex; align-items: center; white-space: nowrap; }
.price-table th { font-size: 12px; font-weight: 700; line-height: 1.2; }
.price-table th:last-child, .price-table td:last-child { justify-content: flex-end; }
.price-table td:nth-child(4) { font-size: 15px; font-weight: 400; }
.price-table .price-value-cell { font-size: 17px; font-weight: 800; }
.price-table .price-width-cell, .price-table .price-height-cell, .price-table .price-value-cell, .price-table .price-active-cell { white-space: nowrap; }
.price-mobile-size-cell { display: none !important; }
.price-table .table-check { flex-wrap: nowrap; white-space: nowrap; }
.price-table .row-actions { align-items: center; }
.price-table .icon-button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.price-canvas-cell span { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-drag-cell { justify-content: center; padding-inline: 6px; }
.price-drag-handle { width: 40px; height: 40px; display: grid; place-content: center; gap: 4px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: grab; touch-action: none; }
.price-drag-handle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.price-drag-handle:hover, .price-drag-handle:focus-visible, .price-drag-handle[aria-pressed="true"] { outline: none; background: var(--surface-soft); color: var(--accent-deep); }
.price-drag-handle:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.price-table tr.is-dragging, .price-table tr.is-keyboard-dragging { z-index: 2; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.price-table tr.is-dragging { opacity: .88; }
.price-table tr.drop-before::before, .price-table tr.drop-after::after { content: ""; position: absolute; z-index: 3; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--accent-deep); }
.price-table tr.drop-before::before { top: -1px; }
.price-table tr.drop-after::after { bottom: -1px; }

#settings-groups { display: grid; gap: 18px; margin-top: 18px; }
.settings-card { padding: 25px; }
.theme-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.settings-card h2 { margin: 0 0 6px; font-size: 19px; }
.settings-card p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.theme-card p { margin: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.settings-grid label, .modal label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.settings-grid input, .modal input, .modal select {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 13px; color: var(--text);
}
.component-rows { display: grid; gap: 0; margin: 2px 0 22px; border-top: 1px solid var(--line); }
.component-toggle { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.component-toggle i { flex: 0 0 auto; transform: scale(.82); transform-origin: right center; }
.component-toggle b { font-size: 14px; }
.theme-switch { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.theme-switch input { position: absolute; opacity: 0; }
.theme-switch span { width: 48px; height: 27px; border-radius: 20px; background: var(--line-strong); position: relative; transition: background .2s ease; }
.theme-switch span::after { content: ""; position: absolute; top: 4px; left: 4px; width: 19px; height: 19px; border-radius: 50%; background: white; transition: transform .2s ease; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.theme-switch input:checked + span { background: var(--accent); }
.theme-switch input:checked + span::after { transform: translateX(21px); }
.theme-switch b { font-size: 14px; }
.settings-save-bar { display: flex; justify-content: flex-end; margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.settings-save-bar .primary-button { min-width: min(100%, 260px); }
.settings-save-bar .primary-button:disabled, #reset-settings:disabled { opacity: .45; cursor: default; }
.settings-locked { min-height: min(520px, calc(100vh - 210px)); display: grid; place-content: center; justify-items: center; gap: 24px; padding: 42px 24px; text-align: center; }
.settings-locked h1 { max-width: 620px; margin: 0; font-size: clamp(22px, 4vw, 34px); line-height: 1.25; }
.settings-locked .primary-button { min-width: 180px; }
.settings-loading { display: grid; gap: 18px; padding-top: 20px; }
.settings-loading-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 66px; }
.settings-loading-heading span, .settings-loading-card span { display: block; border-radius: 9px; background: var(--surface-soft); animation: loadingPulse 1s ease-in-out infinite alternate; }
.settings-loading-heading span:first-child { width: 220px; height: 34px; }
.settings-loading-heading span:last-child { width: 180px; height: 44px; }
.settings-loading-card { min-height: 150px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; align-content: start; gap: 18px; }
.settings-loading-card span:nth-child(1) { width: 32%; height: 20px; }
.settings-loading-card span:nth-child(2) { width: 74%; height: 12px; }
.settings-loading-card span:nth-child(3) { width: 100%; height: 48px; margin-top: 8px; }
.settings-card.is-changed { border-color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.currency-setting-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.currency-setting-card label { display: inline-flex; align-items: center; gap: 14px; color: var(--text); font-size: 14px; font-weight: 600; }
.currency-setting-card input { width: 105px; height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--bg); color: var(--text); font: inherit; font-weight: 700; text-align: right; }
.currency-setting-card input::-webkit-inner-spin-button { display: none; }
.admin-access-card { margin-top: 18px; }
.admin-access-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto auto; gap: 10px; align-items: end; }
.admin-access-controls label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.admin-access-controls input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 13px; }
.admin-access-controls button:disabled { opacity: .45; cursor: default; }
.password-field { position: relative; display: block; width: 100%; }
.password-field input { padding-right: 48px !important; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 40px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.password-toggle:hover { color: var(--text); background: var(--surface-soft); }
.password-eye { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.password-eye--closed { display: none; }
.password-toggle[aria-pressed="true"] .password-eye--open { display: none; }
.password-toggle[aria-pressed="true"] .password-eye--closed { display: block; }
.reset-settings-button { white-space: nowrap; }

.modal { width: min(92vw, 520px); border: 0; padding: 0; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.28); }
.modal::backdrop { background: rgba(17,17,17,.55); backdrop-filter: blur(3px); }
.modal form { padding: 26px; }
.modal-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-heading h2 { margin: 0; font-size: 24px; }
.modal-close { border: 0; background: transparent; font-size: 30px; line-height: 1; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.admin-login-modal p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-error { color: #bd4038 !important; font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; transform: translate(-50%, 15px); padding: 12px 18px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transition: .22s ease; }
.toast { width: max-content; max-width: calc(100vw - 28px); text-align: center; overflow-wrap: anywhere; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.canvas-settings-list { display: grid; gap: 14px; }
.canvas-setting-item { padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.canvas-setting-item.has-warning { border-left: 3px solid #c65b51; background: color-mix(in srgb, #c65b51 4%, var(--surface)); }
.canvas-setting-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.canvas-setting-heading span { color: #b8443b; font-size: 12px; font-weight: 700; }
.canvas-setting-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 15px; align-items: end; }
.canvas-setting-fields > label:not(.component-toggle) { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
.canvas-setting-fields input[type="text"], .canvas-setting-fields input[type="number"] { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 13px; }
.canvas-setting-fields .component-toggle { min-height: 48px; gap: 14px; border: 0; }

.bottom-nav { position: sticky; bottom: 0; z-index: 8; min-height: 84px; padding: 0 max(14px, calc((100% - var(--content)) / 2)); background: #151515; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 0 -8px 30px rgba(0,0,0,.12); }
.bottom-nav button { border: 0; border-right: 1px solid #343434; background: transparent; color: #f5f5f5; padding: 13px 12px 11px; display: grid; place-items: center; align-content: center; gap: 5px; font-size: 13px; text-transform: uppercase; transition: color .2s ease, background-color .2s ease; }
.bottom-nav button:last-child { border-right: 0; }
.bottom-nav button span { font-size: 25px; line-height: 1; }
.bottom-nav button b { font-weight: 600; }
.bottom-nav button.active { color: var(--accent); box-shadow: inset 0 -3px var(--accent); }

@media (max-width: 720px) {
  .app-header { width: min(100% - 28px, var(--content)); padding-top: 18px; align-items: center; }
  .app-shell { width: min(100% - 28px, var(--content)); padding-bottom: 55px; }
  .brand img { width: 104px; height: 104px; }
  .header-action span:last-child { display: none; }
  h1 { margin: 25px 0 40px; }
  .dimension-fields { grid-template-columns: 1fr 28px 1fr; gap: 9px; }
  .number-field { font-size: 12px; gap: 10px; }
  .number-field input { height: 86px; font-size: 43px; }
  .multiply { padding-bottom: 20px; font-size: 38px; }
  .range-group { margin-top: 43px; }
  .range-scale { font-size: 11px; }
  .range-scale span:nth-child(even) { display: none; }
  .canvas-select-wrap { margin-top: 43px; padding-top: 28px; }
  .calculator-options { margin-top: 24px; padding: 23px 0; }
  .canvas-select-wrap > label { margin-left: 0; font-size: 14px; }
  .select-shell select { min-height: 70px; padding-left: 18px; }
  .price-card { margin-top: 26px; padding: 28px 10px 31px; }
  .price-card div { gap: 10px; }
  .details-toggle { font-size: 16px; gap: 15px; }
  .details-panel { padding: 17px; }
  .summary-grid { grid-template-columns: 1fr; }
  .admin-entry { padding: 22px 18px; }
  .admin-entry-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .admin-entry-logout { align-self: flex-start; }
  .admin-details { padding: 18px; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-logout-button { width: 100%; }
  .admin-tax-controls { grid-template-columns: 1fr; }
  .admin-components .component-rows { grid-template-columns: 1fr; }
  .admin-section-content { padding: 14px; }
  .admin-financial-grid { grid-template-columns: 1fr 1fr; }
  .admin-financial-grid > div:last-child { grid-column: 1 / -1; }
  .admin-cost-head { display: none; }
  .admin-cost-row { grid-template-columns: 1fr auto; gap: 5px 14px; align-items: start; padding: 14px 12px; }
  .admin-cost-name { grid-column: 1; }
  .admin-cost-formula { grid-column: 1; grid-row: 2; }
  .admin-cost-amount { grid-column: 2; grid-row: 1 / span 2; max-width: 110px; overflow-wrap: anywhere; }
  .admin-control-grid { grid-template-columns: 1fr; }
  .currency-info { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .currency-info span:first-child { grid-column: 1 / -1; }
  .currency-info span:nth-child(2) { text-align: left; }
  .page-heading { align-items: center; }
  .page-heading h1 { font-size: 31px; }
  .page-heading .primary-button { padding: 11px 13px; font-size: 13px; }
  th, td { padding: 15px 13px; }
  .price-table thead { display: none; }
  .price-table tbody { display: grid; }
  .price-table tbody tr {
    min-height: 0;
    height: auto;
    grid-template-columns: 36px minmax(0, 1fr) auto 30px;
    grid-template-rows: minmax(44px, auto) minmax(32px, auto) auto;
    column-gap: 3px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
  }
  .price-table .price-loading-row { display: grid; min-height: 150px; grid-template-columns: 1fr; padding: 12px; }
  .price-table .price-loading-row td { grid-column: 1; grid-row: 1; padding: 18px !important; }
  .price-table tr:last-child { border-bottom: 0; }
  .price-table td { min-height: 32px; height: auto; padding: 5px 6px; border: 0; font-size: 13px; line-height: 1.35; white-space: normal; }
  .price-table td::before { content: attr(data-label) ":"; flex: 0 0 auto; margin-right: 7px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
  .price-table .price-drag-cell { grid-column: 1; grid-row: 1 / span 3; align-self: stretch; padding: 0 4px 0 0; }
  .price-table .price-drag-cell::before, .price-table .price-actions-cell::before { content: none; }
  .price-table .price-width-cell, .price-table .price-height-cell { display: none; }
  .price-table .price-mobile-size-cell {
    grid-column: 2;
    grid-row: 1;
    min-height: 44px;
    padding-block: 2px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    white-space: nowrap;
  }
  .price-table .price-mobile-size-cell::before { content: none; }
  .price-mobile-size-cell strong { font-size: 18px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
  .price-mobile-size-cell > b { font-size: 18px; line-height: 1; font-weight: 500; }
  .price-table .price-canvas-cell { grid-column: 2 / 5; grid-row: 2; overflow: hidden; }
  .price-table .price-value-cell { grid-column: 3; grid-row: 1; justify-content: flex-start; padding-inline: 4px; font-size: 22px; }
  .price-table .price-active-cell { grid-column: 4; grid-row: 1; justify-content: flex-end; padding-inline: 2px; }
  .price-table .price-active-cell .table-check span { display: none; }
  .price-table .price-active-cell .table-check { gap: 0; }
  .price-table .price-active-cell input { width: 22px; height: 22px; margin: 0; }
  .price-table .price-actions-cell { grid-column: 2 / 5; grid-row: 3; justify-content: flex-start; }
  .price-table .price-value-cell::before, .price-table .price-active-cell::before { display: none; }
  .price-table .row-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .price-table .row-actions .icon-button { min-width: 0; min-height: 40px; padding-inline: 8px; }
  #refresh-prices { margin-bottom: 22px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .theme-card { align-items: flex-start; flex-direction: column; }
  .admin-access-controls { grid-template-columns: 1fr 1fr; }
  .admin-access-controls label { grid-column: 1 / -1; }
  .bottom-nav { min-height: 74px; }
  .bottom-nav button { font-size: 10px; padding-inline: 4px; }
  .bottom-nav button span { font-size: 22px; }
  .canvas-setting-fields { grid-template-columns: 1fr; }
  .canvas-setting-fields .component-toggle { justify-content: flex-start; }
}

@media (min-width: 721px) and (max-width: 1023px) {
  .price-table tr { grid-template-columns: 40px 78px 78px minmax(96px, 1fr) 132px 88px 176px; }
  .price-table th, .price-table td { padding-inline: 10px; }
  .price-drag-cell { padding-inline: 4px; }
}

@media (max-width: 450px) {
  .app-header, .app-shell { width: min(100% - 22px, var(--content)); }
  .brand img { width: 92px; height: 92px; }
  .header-icon { width: 23px; height: 23px; }
  .number-field input { height: 78px; font-size: 37px; }
  .price-card strong { font-size: 64px; }
  .price-card em { font-size: 24px; }
  .settings-grid, .modal-grid { grid-template-columns: 1fr; }
  .admin-access-controls { grid-template-columns: 1fr; }
  .currency-info { grid-template-columns: 1fr; }
  .currency-info span:first-child { grid-column: auto; }
  .currency-info span, .currency-info span:nth-child(2), .currency-info span:last-child { text-align: left; }
  .page-heading { align-items: flex-start; }
  .page-heading .reset-settings-button { max-width: 145px; padding: 9px 10px; white-space: normal; font-size: 11px; line-height: 1.25; }
}

@media (max-width: 767px) {
  html, body { overflow-x: hidden; }
  .page { animation: none; backface-visibility: hidden; }
  .app-header { grid-template-columns: 1fr; justify-items: center; }
  .app-header .header-action { display: none; }
  .theme-quick-toggle { position: absolute; top: 18px; right: 0; }
  .admin-entry { min-height: 50px; padding: 0 18px; display: flex; align-items: center; justify-content: center; }
  .admin-entry h2 { display: none; }
  .admin-entry-row { width: 100%; align-items: center; flex-direction: row; justify-content: center; gap: 18px; }
  .admin-entry #admin-entry-button { flex: 0 1 auto; padding: 11px 0; justify-content: center; gap: 18px; text-align: center; font-size: 17px; }
}

@media (max-width: 720px) and (max-height: 1100px) {
  body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
  .app-header, .app-shell { width: min(100% - 40px, var(--content)); }
  .app-header { flex: 0 0 auto; padding: 14px 0; }
  .brand img { width: 52px; height: 52px; }
  .app-shell { flex: 1 1 auto; min-height: 0; padding-bottom: 0; }
  h1 { margin: 8px 0 12px; font-size: 20px; }
  .dimension-fields { grid-template-columns: 1fr 24px 1fr; gap: 8px; }
  .number-field { gap: 4px; font-size: 11px; }
  .number-field input { height: 54px; font-size: 31px; border-radius: 11px; }
  .multiply { padding-bottom: 12px; font-size: 29px; }
  .range-group { margin-top: 13px; }
  .range-group label { margin-bottom: 4px; font-size: 11px; }
  input[type="range"] { height: 5px; }
  input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; border-width: 3px; }
  input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-width: 3px; }
  .range-scale { margin-top: 7px; font-size: 9px; }
  .range-scale span::before { top: -8px; height: 5px; }
  .canvas-select-wrap { margin-top: 13px; padding-top: 0; border-top: 0; }
  .canvas-select-wrap > label { margin-bottom: 5px; font-size: 11px; }
  .select-shell select { min-height: 48px; padding-left: 15px; font-size: 17px; }
  .select-shell::after { right: 20px; width: 10px; height: 10px; border-width: 2px; }
  .calculator-options { margin-top: 7px; padding: 8px 0; border-top: 0; border-bottom: 0; }
  .option-switch > span { font-size: 11px; }
  .option-switch input { width: 42px; height: 24px; }
  .option-switch i, .component-toggle i { width: 42px; height: 24px; }
  .option-switch i::after, .component-toggle i::after { top: 3px; left: 3px; width: 18px; height: 18px; }
  .option-switch input:checked + i::after, .component-toggle input:checked + i::after { transform: translateX(18px); }
  .price-card { margin-top: 8px; padding: 26px 10px 28px; border-radius: 14px; }
  .price-card > span { margin-bottom: 3px; font-size: 13px; }
  .price-card strong { font-size: 66px; }
  .price-card em { font-size: 25px; }
  .details-toggle { margin-top: 6px; padding: 10px 12px; font-size: 14px; }
  .chevron { width: 11px; height: 11px; border-width: 2px; }
  .admin-entry { min-height: 60px; margin-top: 6px; padding: 0 14px; }
  .admin-entry #admin-entry-button { padding: 10px 0; gap: 13px; font-size: 14px; }
  .currency-info {
    margin-top: 8px;
    padding: 7px 0;
    grid-template-columns: auto auto auto;
    gap: 7px;
    font-size: 8px;
    white-space: nowrap;
  }
  .currency-info span:first-child { grid-column: auto; }
  .currency-info span:nth-child(2) { text-align: center; }
  .currency-info span:last-child { text-align: right; }
  .bottom-nav {
    position: static;
    left: auto;
    right: auto;
    flex: 0 0 auto;
    width: 100%;
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 8px env(safe-area-inset-bottom);
  }
  .bottom-nav button { padding: 6px 4px 5px; gap: 2px; font-size: 9px; }
  .bottom-nav button span { font-size: 18px; }
}

@media (max-width: 720px) and (max-height: 740px) {
  .app-header { padding: 8px 0; }
  .brand img { width: 42px; height: 42px; }
  h1 { margin: 5px 0 7px; font-size: 18px; }
  .number-field input { height: 48px; font-size: 28px; }
  .multiply { padding-bottom: 10px; font-size: 26px; }
  .range-group { margin-top: 10px; }
  .range-group label { margin-bottom: 2px; }
  .range-scale { margin-top: 5px; }
  .canvas-select-wrap { margin-top: 9px; }
  .select-shell select { min-height: 44px; }
  .calculator-options { margin-top: 5px; padding: 6px 0; }
  .price-card { margin-top: 5px; padding: 7px 8px 8px; }
  .price-card strong { font-size: 46px; }
  .price-card em { font-size: 19px; }
  .details-toggle { margin-top: 2px; padding-block: 3px; }
  .admin-entry { min-height: 36px; margin-top: 2px; }
  .currency-info { margin-top: 2px; padding-block: 4px; }
  .bottom-nav { min-height: calc(56px + env(safe-area-inset-bottom)); }
}

@media (min-width: 1024px) {
  body { min-height: 100vh; display: flex; flex-direction: column; }
  .theme-quick-toggle { position: absolute; z-index: 9; top: auto; right: 0; bottom: 12px; }
  .app-header, .app-shell { width: min(calc(100% - 48px), var(--content)); }
  .app-header { flex: 0 0 117px; margin: 0 auto; padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
  .app-header .header-action, .app-header .header-spacer { display: none; }
  .brand img { width: 61px; height: 61px; }
  .app-shell { flex: 1 0 auto; margin: 0 auto; padding-bottom: 8px; display: flex; flex-direction: column; }
  #calculator-page.page--active {
    position: relative;
    min-height: 0;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .desktop-calculator-grid {
    display: grid;
    grid-template-columns: minmax(475px, 1.35fr) minmax(298px, .85fr);
    gap: 30px;
    margin: max(12px, calc((100vh - 694px) / 2)) 0 0;
  }
  .desktop-left-column, .desktop-right-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .desktop-right-column { padding-top: 27px; }
  #calculator-title {
    position: absolute;
    z-index: 1;
    top: -75px;
    left: 88px;
    width: auto;
    margin: 0;
    text-align: left;
    white-space: nowrap;
    font-size: 27px;
  }
  #calculator-page > .currency-info {
    position: absolute;
    z-index: 1;
    top: -75px;
    right: 0;
    width: min(43%, 365px);
    margin: 0;
    padding: 8px 0;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
    font-size: 10px;
    border-top: 0;
  }
  .dimension-fields { grid-template-columns: 1fr 44px 1fr; gap: 15px; }
  .number-field { gap: 8px; font-size: 14px; }
  .number-field input { height: 99px; font-size: 56px; }
  .multiply { padding-bottom: 24px; font-size: 44px; }
  .range-group { margin-top: 0; }
  .range-group label { margin-bottom: 9px; font-size: 14px; }
  input[type="range"] { display: block; height: 7px; }
  input[type="range"]::-webkit-slider-thumb { width: 29px; height: 29px; border-width: 4px; }
  input[type="range"]::-moz-range-thumb { width: 21px; height: 21px; border-width: 4px; }
  .range-scale { margin-top: 12px; font-size: 13px; }
  .range-scale span::before { top: -15px; height: 9px; }
  .canvas-select-wrap { margin-top: 0; padding-top: 15px; border-top: 0; }
  .canvas-select-wrap > label { margin: 0 0 8px 10px; font-size: 14px; }
  .select-shell::after { right: 24px; width: 11px; height: 11px; }
  .select-shell select { min-height: 73px; padding: 0 60px 0 24px; font-size: 22px; }
  .calculator-options { margin-top: 0; padding: 15px 10px; border-top: 0; border-bottom: 0; }
  .option-switch > span { font-size: 12px; }
  .price-card { align-self: stretch; margin-top: 0; padding: 24px 20px 27px; }
  .price-card > span { font-size: 15px; }
  .price-card div { gap: 12px; white-space: nowrap; }
  .price-card strong { font-size: clamp(61px, 7.2vw, 99px); white-space: nowrap; }
  .price-card em { font-size: clamp(23px, 3vw, 34px); }
  .details-toggle { align-self: center; margin-top: 0; padding: 8px 15px; gap: 20px; font-size: 17px; }
  .details-panel { width: 100%; margin-top: 0; padding: 24px; }
  .details-panel .cost-lines { gap: 0 14px; }
  .details-panel .cost-lines span, .details-panel .cost-lines strong { padding: 8px 0; font-size: 12px; }
  .admin-entry { width: 100%; min-height: 50px; margin-top: auto; padding: 0 24px; display: flex; align-items: center; justify-content: center; }
  .admin-entry h2 { display: none; }
  .admin-entry-row { width: 100%; justify-content: center; }
  .admin-entry #admin-entry-button { flex: 0 1 auto; padding: 11px 0; justify-content: center; gap: 18px; text-align: center; font-size: 17px; }
  .admin-details { width: 100%; margin-top: 10px; padding: 24px; }
  .bottom-nav { position: static; flex: 0 0 58px; width: min(calc(100% - 48px), var(--content)); min-height: 58px; margin: 0 auto; padding: 0; }
  .bottom-nav button { padding: 7px 10px 6px; gap: 2px; font-size: 10px; }
  .bottom-nav button span { font-size: 18px; }
}

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