:root {
  --blue: #1E5EAD; --blue-d: #174a88; --navy: #0d1b2a; --ink: #111418; --gray: #4a5361; --line: #d5dae1;
  --bg: #dbe8f7; --card: #fff; --ok: #1e7d46; --warn: #b26a00; --bad: #b3261e;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bot: env(safe-area-inset-bottom, 0px);
  /* Space for Netlify's free-plan badge (~52px tall, ~12px from the bottom-right).
     Injected as #nl-badge-frame (isolated iframe). Do not hide it with CSS. */
  --badge-clear: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }

.splash { position: fixed; inset: 0; z-index: 100; background: var(--blue); display: flex; align-items: center; justify-content: center; transition: opacity .4s; }
.splash img { width: 100%; height: 100%; object-fit: cover; }
.splash.hide { opacity: 0; pointer-events: none; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-top)) 14px 10px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--blue); }
.topbar-logo { height: 30px; width: auto; }
.topbar-title { font-weight: 700; font-size: 18px; letter-spacing: .3px; flex: 1; white-space: nowrap; }
.topbar-user { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.2; max-width: 40vw; overflow: hidden; }
.topbar-user span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.role-pill { background: #34465c; border-radius: 10px; padding: 1px 8px; margin-top: 2px; font-weight: 600; }
.role-pill.admin, .role-pill.mgr { background: var(--blue); }
.btn-signout-unused { background: none; border: 1px solid #5c6f86; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; min-height: 40px; }

.outbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff4dc; color: #6b4300; padding: 8px 14px; font-size: 14px; border-bottom: 1px solid #f0d9a8; }

main { max-width: 720px; margin: 0 auto; padding: 14px 14px calc(96px + var(--badge-clear) + var(--safe-bot)); }
.view { display: none; }
.view.active { display: block; }
.view-title { margin: 6px 4px 12px; font-size: 22px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); min-width: 0; }
fieldset.card { display: block; }
legend { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--navy); padding: 0; margin-bottom: 8px; float: left; width: 100%; }
legend + * { clear: both; }
label, .label { display: block; font-size: 13px; font-weight: 600; color: var(--gray); margin: 10px 0 0; }
label.check { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink); min-height: 44px; cursor: pointer; }
/* Global input{appearance:none} was hiding the native checkmark, so this
   checkbox looked like it "wouldn't check." Draw a clear checked state. */
label.check input[type=checkbox] {
  display: inline-block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  min-width: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid #6b7480;
  border-radius: 6px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  box-shadow: none;
}
label.check input[type=checkbox]:checked {
  background-color: var(--blue);
  border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}
label.check input[type=checkbox]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31,95,174,.2);
}
input, select, textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 17px; color: var(--ink); background: #fff;
  border: 1.5px solid #c3cad3; border-radius: 10px; padding: 11px 12px; min-height: 48px; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,174,.2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2 > * { min-width: 0; }

.seg { display: flex; gap: 8px; margin-top: 6px; }
.seg-opt { flex: 1; margin: 0; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { display: flex; align-items: center; justify-content: center; min-height: 50px; border: 2px solid #c3cad3; border-radius: 10px; font-size: 16px; color: var(--ink); background: #fff; font-weight: 700; }
.seg-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 18px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 17px; border: 2px solid transparent; cursor: pointer; width: 100%; margin-top: 10px; text-decoration: none; text-align: center; }
.btn:disabled { opacity: .6; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.upload { background: var(--blue); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--blue-d); border-color: transparent; }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.btn.small { min-height: 48px; font-size: 15px; padding: 0 12px; width: auto; }
.filebtn { margin-top: 0; color: var(--ink); font-size: 15px; }

.sig-wrap { position: relative; margin-top: 6px; border: 2px dashed #9aa4b1; border-radius: 12px; background: #fff; height: 170px; overflow: hidden; }
.sig-wrap::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1.5px solid #c3cad3; pointer-events: none; }
.sig { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; -ms-touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; z-index: 1; }
.sig-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #9aa4b1; font-size: 13px; pointer-events: none; }
.sig-wrap.signed .sig-hint { display: none; }
.sig-wrap.signed { border-style: solid; border-color: var(--navy); }

.item { border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; padding: 10px 12px 12px; margin: 12px 0; background: #fafbfc; }
.item-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--navy); }
.item-actions { display: flex; align-items: center; gap: 6px; }
.btn-dup { height: 44px; padding: 0 14px; border: 0; background: #eceff3; border-radius: 22px; font: inherit; font-size: 14px; font-weight: 700; color: var(--blue-d); }
.btn-x { width: 44px; height: 44px; border: 0; background: #eceff3; border-radius: 22px; font-size: 18px; color: var(--bad); }
.loc-fields { display: grid; gap: 0; }
.loc-custom { margin-top: 6px; }
.btn-add-size, .btn-hide-size { width: auto; margin-top: 8px; }
.size-wrap { margin-top: 4px; }
.btn-add-billto, .btn-add-contact { margin-top: 4px; }
.billto-wrap, .contact-wrap { margin-top: 4px; }
.btn-hide-billto, .btn-hide-contact { width: auto; margin-top: 8px; }
.price-line .price-meta { font-size: 15px; color: var(--gray); margin: 0 0 4px; }
.price-line .price-loc { font-weight: 800; color: var(--navy); font-size: 17px; white-space: pre-line; }
.price-room-head { font-weight: 800; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin: 14px 4px 8px; }
.room-card { border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 14px; padding: 10px 12px 14px; margin: 0 0 16px; background: #fff; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; margin: 12px 0; background: #f5f8fc; }
.btn-add-panel { margin-top: 8px; }
.stepper { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.stepper input { width: 100%; text-align: center; font-variant-numeric: tabular-nums; text-transform: uppercase; }
.step-btn { flex: 0 0 52px; width: 52px; height: 52px; border: 1.5px solid #c3cad3; border-radius: 10px; background: #fff; font-size: 24px; font-weight: 700; color: var(--navy); line-height: 1; }
.chip-row { display: flex; gap: 8px; margin-top: 8px; }
.chip { flex: 1; min-height: 52px; margin: 0; padding: 0 8px; border: 1.5px solid #c3cad3; border-radius: 22px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-row[data-chip-group=side] .chip { font-size: 12px; line-height: 1.15; padding: 4px 4px; white-space: normal; }
.tech-chips { flex-wrap: wrap; }
.tech-chips .chip { flex: 0 1 auto; min-width: 64px; padding: 0 16px; }
.tech-hint { font-weight: 500; font-size: 12px; color: var(--gray); margin-left: 8px; text-transform: none; letter-spacing: 0; }
.tech-custom { margin-top: 8px; }
.loc-pick-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 4px; min-height: 52px; padding: 11px 12px; font: inherit; font-size: 17px; color: var(--ink); text-align: left; background: #fff; border: 1.5px solid #c3cad3; border-radius: 10px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #555 50%), linear-gradient(135deg, #555 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.loc-pick-btn:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,95,174,.2); }
.loc-pick-btn.placeholder { color: #8b95a1; }
.loc-pick-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-sheet { position: fixed; inset: 0; z-index: 70; }
.loc-sheet-backdrop { position: absolute; inset: 0; background: rgba(10,16,24,.45); }
.loc-sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: min(86vh, 720px); display: flex; flex-direction: column; background: #fff; border-radius: 18px 18px 0 0; padding: 10px 14px calc(14px + var(--badge-clear) + var(--safe-bot)); box-shadow: 0 -8px 28px rgba(0,0,0,.18); }
.loc-sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 2px 4px; }
.loc-sheet-head b { font-size: 18px; }
#lp-search { margin: 0 0 8px; }
.loc-sheet-list { overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.lp-row { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 10px 12px; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; border-radius: 0; }
.lp-row:last-child { border-bottom: 0; }
.lp-row.selected { color: var(--blue); }
.lp-row.lp-custom, .lp-row.lp-use { color: var(--blue-d); margin-top: 6px; border: 1.5px solid #c7d9f1; border-radius: 12px; background: #eef4fc; }
.lp-row .lp-short { margin-left: auto; color: var(--gray); font-weight: 600; font-size: 14px; padding-left: 10px; }
.size { display: flex; align-items: center; gap: 8px; }
.size span { font-weight: 800; color: var(--gray); }

.status-line { display: flex; align-items: center; gap: 10px; margin: 2px 4px 10px; font-size: 14px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 10px; border-radius: 20px; background: #e3e7ec; color: #39424e; white-space: nowrap; }
.badge.completed { background: #dbe8f8; color: var(--blue-d); }
.badge.queued, .badge.rc-pending { background: #fff0cf; color: #7a4b00; }
.badge.uploaded, .badge.rc-paid { background: #d9f2e2; color: var(--ok); }
.badge.rc-approved { background: #dbe8f8; color: var(--blue-d); }
.badge.rc-rejected, .badge.role-none { background: #fbe0de; color: var(--bad); }
.badge.role-admin, .badge.role-manager { background: var(--blue); color: #fff; }
.muted { color: var(--gray); }
.small { font-size: 13px; }
.center { text-align: center; }
.error { color: var(--bad); font-weight: 600; }
.mgr-note { background: #eef4fc; border-radius: 8px; padding: 6px 8px; margin-top: 6px; }

.actions { position: static; padding: 14px 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.actions #btn-submit, .actions #btn-new, .actions #price-save { grid-column: 1 / -1; }
body.can-print .actions #btn-complete { grid-column: 1 / -1; }
.actions .btn { margin-top: 8px; }
#print-frame { position: fixed; width: 0; height: 0; border: 0; right: 0; bottom: 0; opacity: 0; pointer-events: none; }
.addr-suggest { position: fixed; z-index: 55; background: #fff; border: 1.5px solid #c3cad3; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.16); overflow: auto; -webkit-overflow-scrolling: touch; }
.addr-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 12px; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.addr-row:last-child { border-bottom: 0; }
.addr-row:active, .addr-row:hover { background: #eef4fc; }
.addr-label { flex: 1; line-height: 1.25; }
.addr-tag { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--blue-d); background: #eef4fc; border-radius: 999px; padding: 3px 8px; }

.search { margin-bottom: 12px; }
.tech-filter { display: block; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--gray); }
.tech-filter select, #sf-tech { min-height: 64px; font-size: 20px; font-weight: 700; color: var(--navy); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 18px; }
.order-top-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tag.unsigned { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gray); background: #eceff3; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.order-actions .btn { margin-top: 0; flex: 1 0 auto; }

.signin { max-width: 460px; margin: 0 auto; padding: 22px 16px; }
.signin-logo { display: block; width: 100%; max-width: 360px; margin: 6px auto 18px; }
.signin h2 { margin: 0 0 4px; font-size: 21px; }
.role-seg { margin-bottom: 14px; }
.notice { background: #eef4fc; border-color: #c7d9f1; }
code { background: #e3e7ec; padding: 1px 5px; border-radius: 5px; }

.rc-preview { margin-top: 10px; text-align: center; }
.rc-preview img { max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--line); }
.pdf-chip { padding: 14px; background: #eef1f5; border-radius: 10px; font-weight: 700; }
.totals table { width: 100%; border-collapse: collapse; font-size: 15px; }
.totals th, .totals td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.totals th:not(:first-child), .totals td:not(:first-child) { text-align: right; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(10,16,24,.6); display: flex; align-items: flex-end; justify-content: center; }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--badge-clear) + var(--safe-bot)); }
.modal-box h3 { margin: 0 44px 8px 0; }
.modal-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: #eceff3; font-size: 18px; }
.rc-full { width: 100%; border-radius: 10px; }

.toast { position: fixed; left: 50%; bottom: calc(84px + var(--badge-clear) + var(--safe-bot)); transform: translate(-50%, 40px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: 92vw; z-index: 80; transition: .25s; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 700px) { .item { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 10px; } .item > * { grid-column: span 2; } .item-head, .loc-fields, .size-wrap, .btn-add-size { grid-column: 1 / -1; } .loc-fields { grid-template-columns: 1fr 1fr; gap: 0 10px; } }
.preview-step { background: #eef4fc; border-color: #c7d9f1; }
.preview-pages img { display: block; width: 100%; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.15); margin: 0 0 12px; background: #fff; }

/* ---------- bottom tab bar ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: calc(var(--badge-clear) + var(--safe-bot)); box-shadow: 0 -2px 10px rgba(0,0,0,.05); }
.bottomnav .tab { flex: 1; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: 0; color: #5d6673; font: inherit; font-size: 11.5px; font-weight: 700; padding: 6px 2px; }
.bottomnav .tab svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav .tab.active { color: var(--blue); }
.bottomnav .tab.active svg { stroke-width: 2.4; }
body.pad-open .bottomnav, body.pad-open .topbar { visibility: hidden; }
.role-pill { margin-left: auto; font-size: 12px; color: #fff; }

/* ---------- sub navigation + steps ---------- */
.subnav { display: flex; background: #e3e7ed; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.subtab { flex: 1; min-height: 44px; border: 0; background: none; border-radius: 9px; font: inherit; font-size: 15px; font-weight: 700; color: var(--gray); }
.subtab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 12px; gap: 6px; counter-reset: s; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #6b7480; position: relative; }
.steps li span { width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid #c3cad3; color: #6b7480; font-size: 15px; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: #c3cad3; }
.steps li.done span { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps li.done span::before { content: "✓"; }
.steps li.done span { font-size: 0; } .steps li.done span::before { font-size: 16px; }
.steps li.done::after { background: var(--blue) !important; }
.steps li.current { color: var(--ink); }
.steps li.current span { border-color: var(--ink); color: var(--ink); }

/* ---------- signature fields ---------- */
.sig-box { margin-top: 6px; height: 96px; border: 2px dashed #9aa4b1; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sig-box img { max-height: 88px; max-width: 96%; }
.sig-box.signed { border-style: solid; border-color: var(--blue); }
.sig-empty { color: #7d8693; font-size: 15px; }
.btn.big { min-height: 64px; font-size: 20px; border-radius: 14px; }
.btn.pulse { animation: pulse 0.8s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(31,95,174,.25); } }

/* ---------- full-screen signing pad ---------- */
.signpad { position: fixed; inset: 0; z-index: 90; background: #fff; overflow: hidden; touch-action: none; }
.sp-stage { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: max(10px, var(--safe-top)) max(14px, env(safe-area-inset-right)) max(10px, calc(var(--badge-clear) + var(--safe-bot))) max(14px, env(safe-area-inset-left)); }
.signpad.rotated .sp-stage { width: 100vh; height: 100vw; width: 100dvh; transform-origin: top left; transform: translateX(100vw) rotate(90deg); padding: 12px 14px calc(12px + var(--badge-clear)) 14px; }
.sp-top { display: flex; align-items: baseline; gap: 12px; padding: 2px 4px 8px; font-size: 18px; }
.sp-sub { color: var(--gray); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-area { position: relative; flex: 1; border: 2px solid #c3cad3; border-radius: 14px; background: #fff; min-height: 0; }
#sp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; z-index: 2; }
.sp-line { position: absolute; left: 24px; right: 24px; bottom: 28%; border-bottom: 2px solid #8b95a1; z-index: 1; pointer-events: none; }
.sp-line span { position: absolute; left: 0; bottom: 4px; font-size: 26px; font-weight: 700; color: #8b95a1; }
.sp-hint { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; color: #8b95a1; font-size: 15px; pointer-events: none; z-index: 1; }
.sp-bar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; padding-top: 10px; }
.sp-bar .btn { margin-top: 0; min-height: 56px; }
.sp-cancel { color: var(--bad) !important; }
.profile-name { font-size: 20px; font-weight: 800; }
.install-card p { margin: 6px 0 0; }
.size input { flex: 1 1 0; min-width: 0; width: auto; }
input, select, textarea { min-width: 0; max-width: 100%; }
input[type=date] { -webkit-appearance: none; appearance: none; min-height: 48px; }
html, body { overflow-x: hidden; }
.seg-opt { position: relative; }
.seg-opt input { width: 1px; height: 1px; min-height: 0; left: 0; top: 0; margin: 0; }
.topbar-logo.square { height: 34px; border-radius: 8px; }
