:root {
  --bg-page: #FAF8F5; --bg-surface: #FFF; --bg-dark: #1E242B; --text-main: #222831; --text-muted: #5F6B7A;
  --gold: #B88E44; --gold-hover: #9E7736; --green: #217346; --border: #E8E2D8; --cream: #F4F1EA;
  --radius: 12px; --shadow: 0 10px 30px rgba(30,36,43,.07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--bg-page); color: var(--text-main); padding: calc(18px + env(safe-area-inset-top)) 14px calc(60px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
.container { max-width: 1400px; margin: 0 auto; }
header { text-align: center; margin-bottom: 22px; }
header h1 { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--bg-dark); margin-bottom: 6px; }
header p { color: var(--text-muted); font-size: .92rem; }
.badge { display: inline-block; background: rgba(184,142,68,.12); color: var(--gold); padding: 5px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.tabs { display: inline-flex; gap: 6px; margin-top: 16px; background: var(--cream); padding: 5px; border-radius: 10px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 7px; font: inherit; font-weight: 600; font-size: .88rem; color: var(--text-muted); cursor: pointer; }
.tab.active { background: var(--bg-dark); color: #fff; }
.tab-panel { display: none; } .tab-panel.active { display: block; }
.tab-ico, .tab-more { display: none; }
.more-menu { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.more-menu[hidden] { display: none; }
.more-menu button { text-align: left; border: 0; background: none; font: inherit; font-size: .92rem; padding: 12px 12px; border-radius: 8px; cursor: pointer; color: var(--text-main); }
.more-menu button:hover, .more-menu button:focus-visible, .more-menu button.on { background: var(--cream); }
.grid-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-bottom: 20px; align-items: start; }
@media (max-width: 1000px) { .grid-top { grid-template-columns: 1fr; } }
.side { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px; }
.side .card { margin-bottom: 0; }
.card h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--bg-dark); border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fg { margin-bottom: 11px; }
label { display: block; font-weight: 600; font-size: .76rem; margin-bottom: 4px; color: var(--bg-dark); }
input, select, textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: .88rem; background: #FAFAFA; color: var(--text-main); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
textarea { resize: vertical; margin-bottom: 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 16px; background: var(--cream); padding: 10px 12px; border-radius: 8px; margin: 4px 0 12px; }
.checks label, .check-inline { display: flex; align-items: center; gap: 7px; margin: 0; cursor: pointer; font-size: .82rem; }
.check-inline { margin: 4px 0 10px; }
.checks input, .check-inline input { width: 16px; height: 16px; accent-color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; border: 0; padding: 11px; border-radius: 8px; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; transition: filter .15s; }
.btn:hover { filter: brightness(.93); } .btn:disabled { opacity: .55; cursor: wait; }
.btn-gold { background: var(--gold); color: #fff; } .btn-dark { background: var(--bg-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; } .btn-light { background: var(--border); color: var(--bg-dark); }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 8px; }
.btn-row.tight { grid-template-columns: 1fr 1fr; margin: 0; }
.small-btn { width: auto; padding: 8px 14px; margin-top: 10px; font-size: .82rem; }
.hint { color: var(--text-muted); font-size: .8rem; margin-bottom: 10px; line-height: 1.45; } .small { font-size: .76rem; margin-top: 8px; }
code { background: var(--cream); padding: 1px 5px; border-radius: 4px; font-size: .78rem; }
.muted { color: var(--text-muted); font-family: 'Plus Jakarta Sans'; font-size: .8rem; font-weight: 500; }
.sum-lines div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.total-box { margin: 12px 0 6px; background: var(--bg-dark); color: #fff; padding: 14px; border-radius: 8px; text-align: right; }
.total-box h4 { font-size: .74rem; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.total-box .price { font-family: 'Cinzel', serif; font-size: 1.7rem; font-weight: 700; }
.table-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.table-head h3 { border: 0; margin: 0; }
.legend { font-size: .75rem; color: var(--text-muted); padding-bottom: 8px; }
.table-wrap { overflow-x: auto; }
table.items { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.items th { background: var(--bg-dark); color: #fff; text-align: left; padding: 8px; font-size: .74rem; font-weight: 600; white-space: nowrap; }
table.items td { padding: 5px 4px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.items tr.group td { background: var(--cream); font-weight: 700; font-size: .78rem; color: var(--gold-hover); padding: 6px 8px; text-transform: uppercase; letter-spacing: .04em; }
table.items input, table.items select { padding: 6px 7px; font-size: .82rem; }
table.items .num { width: 80px; text-align: right; } table.items .unit { width: 80px; } table.items .cat { width: 140px; }
td.ext { text-align: right; font-weight: 700; white-space: nowrap; padding-right: 8px; min-width: 90px; }
.sku-cell { display: flex; gap: 4px; align-items: center; }
.sku-cell select { width: 78px; flex: none; }
.icon-btn { border: 0; background: var(--cream); border-radius: 6px; padding: 6px 8px; cursor: pointer; font-size: .85rem; flex: none; }
.icon-btn:hover { background: var(--border); } .icon-btn.del { color: #c0392b; }
.name-cell { display: flex; gap: 6px; align-items: center; }
.name-cell img { width: 30px; height: 30px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid var(--border); flex: none; }
.tag { display: inline-block; font-size: .64rem; font-weight: 700; padding: 2px 6px; border-radius: 10px; text-transform: uppercase; flex: none; }
.tag.est { background: #FFF1D6; color: #9A6B00; } .tag.live { background: #DFF3E6; color: #1E7A43; } .tag.warn { background: #FDE2E1; color: #B42318; }
a.tag { text-decoration: none; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--bg-dark); color: #fff; padding: 11px 18px; border-radius: 8px; font-size: .85rem; max-width: 90vw; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 9; }
#toast.show { opacity: 1; } #toast.err { background: #B42318; }

#loginOverlay { position: fixed; inset: 0; background: var(--bg-page); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
#loginOverlay[hidden] { display: none; }
.login-card { width: 100%; max-width: 380px; text-align: center; }
.login-card h1 { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--bg-dark); margin-bottom: 4px; }
.login-card .fg { text-align: left; }
.login-error { color: #B42318; font-size: .82rem; margin-top: 10px; min-height: 1em; }

/* ---------- auth ---------- */
#authOverlay { position: fixed; inset: 0; background: var(--bg-page); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; overflow-y: auto; }
#authOverlay[hidden] { display: none; }
.auth-logo { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 10px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--cream); padding: 4px; border-radius: 9px; margin: 6px 0 14px; }
.auth-tab { border: 0; background: transparent; padding: 9px; border-radius: 7px; font: inherit; font-weight: 600; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.auth-tab.active { background: var(--bg-dark); color: #fff; }
.login-card a, .center a { color: var(--gold-hover); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- settings ---------- */
.btn-red { background: #B42318; color: #fff; }
.card.danger { border-color: #F3C6C2; }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-row img { max-height: 54px; max-width: 140px; border: 1px solid var(--border); border-radius: 6px; padding: 3px; background: #fff; }
.logo-row input[type=file] { flex: 1; }

/* ---------- projects / invoices ---------- */
.btn-sm { width: auto; padding: 6px 10px; font-size: .78rem; }
.tar { text-align: right; } .mt-2 { margin-top: 12px; }
.inv-filters { margin-bottom: 10px; }
table.items tr.clickable { cursor: pointer; } table.items tr.clickable:hover td { background: var(--cream); }
table.items tr.selected td { background: #FFF8EA; }
#invItems .num { width: 90px; }
.total-box h4 span { color: #fff; opacity: .85; text-transform: none; letter-spacing: 0; }
.tag.void { background: #ECECEC; color: #666; }
dialog { border: 0; border-radius: var(--radius); padding: 22px; width: min(420px, 92vw); box-shadow: var(--shadow); margin: auto; }
dialog::backdrop { background: rgba(30,36,43,.45); }
dialog h3 { font-family: 'Cinzel', serif; margin-bottom: 8px; }
dialog .btn-row { margin-top: 12px; }

/* ---------- CRM: dashboard ---------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { text-align: left; font: inherit; cursor: pointer; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius);
       padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; color: var(--text-main); }
.kpi:hover { border-color: var(--gold); }
.kpi-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--bg-dark); line-height: 1.15; }
.kpi-sub { font-size: .78rem; color: var(--text-muted); }
.stage-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.stage { font: inherit; cursor: pointer; border: 0; background: var(--cream); border-radius: 8px; padding: 10px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; color: var(--text-main); }
.stage:hover { background: var(--border); }
.stage span { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.stage b { font-size: 1.3rem; color: var(--bg-dark); }
.stage small { font-size: .74rem; color: var(--text-muted); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.due-late { color: #B42318; } .due-today { color: var(--gold-hover); }
.plain-link { color: inherit; text-decoration: none; }

/* ---------- CRM: lists ---------- */
.task-list, .timeline { list-style: none; }
.task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.task input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--green); }
.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .88rem; }
.task-body small { font-size: .76rem; color: var(--text-muted); }
.task-body a, .timeline a { color: var(--gold-hover); }
.task.done .task-body span { text-decoration: line-through; color: var(--text-muted); }
.task a.icon-btn { text-decoration: none; }
.task-form { display: grid; grid-template-columns: 1fr 150px auto; gap: 8px; margin-top: 12px; }
.task-form .btn { width: auto; padding: 8px 14px; }
.timeline li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .86rem; align-items: flex-start; }
.timeline li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.timeline small { font-size: .74rem; color: var(--text-muted); }
.timeline li.system .tl-body { color: var(--text-muted); }
.tl-icon { width: 22px; text-align: center; flex: none; }
.note-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; }
.note-row .btn { width: auto; padding: 8px 16px; }
.contact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.contact-row .btn { padding: 9px 4px; font-size: .82rem; }
.proj { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.proj-head { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; }
.proj-row { margin: 6px 0 8px; }
.docs { display: flex; flex-direction: column; gap: 4px; }
.doc { font: inherit; font-size: .82rem; text-align: left; border: 0; background: var(--cream); border-radius: 6px; padding: 7px 9px; cursor: pointer; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.doc:hover { background: var(--border); }

/* ---------- CRM: pipeline board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { background: var(--cream); border-radius: 10px; padding: 10px; min-height: 120px; scroll-snap-align: start; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 8px; font-size: .84rem; }
.col-head span { font-size: .74rem; color: var(--text-muted); }
.col-empty { text-align: center; margin: 14px 0; }
.job { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 3px; font-size: .86rem; }
.job .hint { margin: 0; }
.stage-label { display: flex; flex-direction: column; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--text-muted); margin: 6px 0 2px; }
.stage-label select { width: 100%; font-size: .84rem; padding: 6px 8px; color: var(--text-main); }
.job-actions, .proj-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.job-actions .icon-btn, .proj-row .icon-btn { font-size: .78rem; padding: 6px 8px; }

/* ---------- phones: tables become cards ---------- */
@media (max-width: 720px) {
  header h1 { font-size: 1.45rem; }
  /* bottom navigation bar: primary tabs always visible, the rest under More */
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0; border-radius: 0; display: grid; grid-template-columns: repeat(5, 1fr);
          gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bg-surface); border-top: 1px solid var(--border);
          box-shadow: 0 -4px 18px rgba(30,36,43,.08); }
  .tab { padding: 6px 2px; font-size: .7rem; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 8px; }
  .tab .tab-ico { display: block; font-size: 1.15rem; line-height: 1.1; }
  .tab.tab-secondary { display: none; }
  .tab.tab-more { display: flex; }
  .tab.active { background: var(--cream); color: var(--bg-dark); }
  .more-menu { position: fixed; right: 8px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 16; width: min(260px, calc(100vw - 16px)); }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi-value { font-size: 1.35rem; }
  .stage-strip { grid-template-columns: repeat(3, 1fr); }
  .board { grid-auto-columns: 82%; }
  .task-form { grid-template-columns: 1fr 1fr; }
  .task-form input[name=title] { grid-column: 1 / -1; }
  .card { padding: 15px; }
  .row2 { grid-template-columns: 1fr; }
  .btn-row { grid-template-columns: repeat(3, 1fr); }
  .table-wrap { overflow: visible; }
  table.responsive thead { display: none; }
  table.responsive, table.responsive tbody { display: block; width: 100%; }
  table.responsive tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px; margin-bottom: 10px;
                        border: 1px solid var(--border); border-radius: 10px; background: #fff; }
  table.responsive tr.group { display: block; padding: 4px 2px; border: 0; background: none; margin: 14px 0 4px; }
  table.responsive tr.group td { background: none; padding: 0; }
  table.responsive td { display: block; border: 0; padding: 0; min-width: 0; }
  table.responsive td[data-label]::before { content: attr(data-label); display: block; font-size: .68rem; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: .03em; }
  table.responsive td.wide { grid-column: 1 / -1; }
  table.responsive td.ext { text-align: left; font-size: 1rem; align-self: end; }
  table.responsive td.actions { display: flex; justify-content: flex-end; gap: 6px; align-items: end; }
  table.items .num, table.items .unit, table.items .cat { width: 100%; text-align: left; }
  table.items input, table.items select { font-size: 16px; } /* prevents zoom-on-focus */
  input, select, textarea { font-size: 16px; }
  .icon-btn { padding: 9px 12px; }
  #invItems tr { grid-template-columns: 1fr 1fr 1fr auto; padding: 10px; }
  #invItems td.ext { font-size: .9rem; }
}

/* ---------- client view (/c/<token>) ---------- */
.narrow { max-width: 820px; }
.co-head { display: flex; gap: 16px; align-items: center; }
.co-head img { max-width: 110px; max-height: 70px; object-fit: contain; }
.co-head h1 { font-family: 'Cinzel', serif; font-size: 1.45rem; color: var(--bg-dark); }
.co-head .hint { margin: 2px 0 6px; }
.co-contact { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; }
.co-contact a { color: var(--gold-hover); text-decoration: none; font-weight: 600; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 16px; }
.meta-grid span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.meta-grid b { font-weight: 600; font-size: .92rem; }
.banner { border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: .92rem; line-height: 1.5; }
.banner.ok { background: #DFF3E6; color: #1E5B36; border: 1px solid #B7E1C5; }
.banner.no { background: #FDECEB; color: #8A1C12; border: 1px solid #F3C6C2; }
.banner img { display: block; max-width: 240px; max-height: 72px; margin-top: 8px; background: #fff; border-radius: 6px; padding: 4px; }
.prewrap { white-space: pre-wrap; line-height: 1.5; font-size: .9rem; }
.pay-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: .88rem; }
.client #pdfBtn { margin-bottom: 20px; }
#jumpApprove { margin-top: 10px; }
#matToggle { margin-bottom: 4px; }
#matWrap { margin-top: 10px; }
.approve-card { border: 2px solid var(--gold); }
.sig-wrap { position: relative; margin-bottom: 12px; }
#sig { width: 100%; height: 170px; border: 1.5px dashed #B9AE9C; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sig-wrap .icon-btn { position: absolute; top: 8px; right: 8px; }
.agree { align-items: flex-start !important; line-height: 1.4; font-weight: 500; }
.agree input { margin-top: 2px; }
.link-btn { background: none; border: 0; color: var(--text-muted); text-decoration: underline; font: inherit; font-size: .82rem; margin-top: 12px; cursor: pointer; }
.share-status { font-size: .8rem; margin: 6px 0 2px; line-height: 1.45; }
.share-status a { color: var(--gold-hover); }
.share-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.co-sig { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.co-sig img { display: block; max-width: 220px; max-height: 66px; }
.co-sig span { font-size: .75rem; color: var(--text-muted); }
.sig-preview-wrap { position: relative; }
#mySig { width: 100%; height: 140px; border: 1.5px dashed #B9AE9C; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.sig-preview-wrap .icon-btn { position: absolute; top: 8px; right: 8px; }

/* ---------- project photos ---------- */
.wide-dialog { width: min(900px, 96vw); max-height: 92vh; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.dlg-head h3 { margin: 0; }
.photo-upload { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.photo-group { font-size: .9rem; margin: 16px 0 8px; color: var(--bg-dark); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.thumb { position: relative; border: 0; padding: 0; background: var(--cream); border-radius: 8px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shared-badge, .tag-badge { position: absolute; top: 5px; right: 5px; background: rgba(30,36,43,.75); color: #fff; font-size: .7rem; border-radius: 10px; padding: 2px 7px; }
.tag-badge { right: auto; left: 5px; }
.viewer .pv-stage { position: relative; display: flex; align-items: center; justify-content: center; background: #111; border-radius: 8px; margin-bottom: 12px; min-height: 240px; }
.viewer #pvImg { max-width: 100%; max-height: 58vh; display: block; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.85); width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.pv-nav:disabled { opacity: .3; cursor: default; }
#pvPrev { left: 8px; } #pvNext { right: 8px; }
#lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.96); backdrop-filter: blur(4px); z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; }
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 100%; max-height: 82vh; border-radius: 6px; }
#lightbox p { color: #fff; margin-top: 10px; font-size: .9rem; }
#lbClose { position: absolute; top: 14px; right: 14px; }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 5px; } .wide-dialog { padding: 14px; } }

/* ---------- product picker / store price list ---------- */
.pick-search { margin-bottom: 6px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; border: 1px solid var(--border); background: #fff;
        border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; color: var(--text-main); }
button.pick:hover { border-color: var(--gold); background: #FFFCF5; }
.pick.static { cursor: default; }
.pick img, .pick-noimg { width: 44px; height: 44px; object-fit: contain; flex: none; border-radius: 6px; background: var(--cream); display: grid; place-items: center; }
.pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .86rem; }
.pick-body small { color: var(--text-muted); font-size: .74rem; }
.pick-body a { color: inherit; }
.pick-price { font-weight: 700; white-space: nowrap; }
.cat-sub { font-size: .9rem; margin: 16px 0 8px; color: var(--bg-dark); }

@keyframes flash { from { background: #FFF1C9; } to { background: transparent; } }
table.items tr.flash td { animation: flash 2.5s ease-out; }

/* ---------- search products ---------- */
.ps-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-bottom: 8px; }
.ps-bar .btn { width: auto; padding: 8px 14px; }
.ps-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid var(--border); background: var(--cream); border-radius: 16px; padding: 5px 10px; font: inherit; font-size: .76rem; cursor: pointer; color: var(--text-main); }
.chip:hover, .chip.on { background: var(--bg-dark); color: #fff; border-color: var(--bg-dark); }
#psResults { max-height: 420px; overflow-y: auto; margin-bottom: 6px; }
.ps-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.ps-qty { width: 64px; padding: 4px 6px; text-align: right; }

.ps-hd { margin-bottom: 8px; flex-wrap: wrap; font-size: .84rem; }
.ps-hd small { font-weight: 500; color: var(--text-muted); width: 100%; font-size: .72rem; }
.pick-body small a { color: var(--gold-hover); }

/* ---------- password reset ---------- */
.auth-title { font-size: 1.05rem; color: var(--bg-dark); margin: 8px 0 12px; }
.auth-info { background: #DFF3E6; color: #1E5B36; border-radius: 8px; padding: 10px 12px; font-size: .84rem; margin-top: 10px; text-align: left; line-height: 1.45; }
.auth-links { margin: 6px 0 10px; }
.auth-links .link-btn { margin-top: 0; }

/* ---------- invoice actions ---------- */
.btn-row.two { grid-template-columns: 1fr 1fr; }
.inv-secondary { margin-top: 2px; }
.menu-wrap { position: relative; }
.menu-wrap > .btn { width: 100%; }
.action-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 12; min-width: 200px; background: var(--bg-surface); border: 1px solid var(--border);
               border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.action-menu[hidden] { display: none; }
.action-menu button { text-align: left; border: 0; background: none; font: inherit; font-size: .88rem; padding: 10px 12px; border-radius: 6px; cursor: pointer; color: var(--text-main); }
.action-menu button:hover, .action-menu button:focus-visible { background: var(--cream); }
.action-menu .danger-item { color: #B42318; }

/* ---------- onboarding ---------- */
.onboarding { width: min(560px, 96vw); }
.ob-steps { display: flex; gap: 6px; margin-bottom: 14px; }
.ob-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.ob-steps span.on { background: var(--gold); }
.ob-h { font-size: .92rem; margin: 6px 0 10px; color: var(--bg-dark); }
.ob-next { margin: 4px 0 16px 18px; font-size: .9rem; line-height: 1.5; }
.ob-next li { margin-bottom: 8px; }
#obSig { width: 100%; height: 120px; border: 1.5px dashed #B9AE9C; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.getting-started { border-color: var(--gold); }
.gs-list { list-style: none; display: grid; gap: 6px; }
.gs-list button { width: 100%; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text-main); }
.gs-list li.done button { color: var(--text-muted); text-decoration: line-through; background: var(--cream); }

/* ---------- job type & work sections ---------- */
.job-includes { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 4px; margin: 6px 0 4px; }
.job-includes legend { font-weight: 700; font-size: .84rem; padding: 0 6px; color: var(--bg-dark); }
.sec-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.sec-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff;
            font-size: .82rem; font-weight: 600; cursor: pointer; user-select: none; }
.sec-chip input { width: 16px; height: 16px; accent-color: var(--gold); margin: 0; }
.sec-chip.on { background: #FFF6E5; border-color: var(--gold); }
.sections-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 2px 10px; }
.sections-head h3 { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--bg-dark); }
details.sec { padding: 0; overflow: hidden; }
details.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--cream); }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before { content: '▸'; color: var(--gold-hover); transition: transform .15s; }
details.sec[open] > summary::before { transform: rotate(90deg); }
.sec-name { font-family: 'Cinzel', serif; font-weight: 700; color: var(--bg-dark); }
.sec-meta { font-size: .76rem; color: var(--text-muted); }
.sec-sub { margin-left: auto; font-size: 1rem; color: var(--bg-dark); }
.sec-body { padding: 12px 18px 16px; }
.sec-params { background: #FCFBF8; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 10px; }
.sec-stale { background: #FFF6E5; border: 1px solid #F0D9A8; border-radius: 8px; padding: 8px 10px; font-size: .84rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sec-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 12px 0 6px; }
.tile-opts { display: grid; gap: 6px; }
.tile-opt { border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.tile-opt:last-of-type { border-bottom: 0; }
.task-row select { min-width: 120px; }
.sum-sections { margin-bottom: 8px; }
.sum-sec-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 4px 0 2px; }
.sum-sec { display: flex; justify-content: space-between; width: 100%; border: 0; background: none; font: inherit; font-size: .86rem; padding: 5px 0; border-bottom: 1px dashed var(--border); cursor: pointer; color: var(--text-main); text-align: left; }
.sum-sec:hover span { color: var(--gold-hover); text-decoration: underline; }
@media (max-width: 720px) {
  details.sec > summary { padding: 12px 14px; }
  .sec-body { padding: 10px 12px 14px; }
  .sec-chip { padding: 8px 12px; font-size: .84rem; }
}

/* Keep the existing visual design usable with long text, narrow screens and keyboards. */
.grid-top > *, .row2 > *, .row3 > *, .sec-name { min-width: 0; }
.pick-body, .price-review, .tl-body, .proj-head, .meta-grid b { overflow-wrap: anywhere; }
.price-review { display: block; max-width: 160px; white-space: normal; color: #8A5815; font-size: .74rem; }
#authOverlay { align-items: flex-start; }
#authOverlay .login-card { margin: auto; flex-shrink: 0; }
dialog { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
:focus-visible { outline: 2px solid var(--gold-hover); outline-offset: 3px; }
@media (min-width: 721px) and (max-width: 1100px) { .tabs { display: flex; flex-wrap: wrap; justify-content: center; } }
@media (max-width: 720px) {
  .btn, .icon-btn, .chip, .sec-chip, .tab, .link-btn { min-height: 44px; }
  .icon-btn { min-width: 44px; }
  .sec-name { overflow-wrap: anywhere; }
  .sec-meta { display: none; }
  .sec-sub { flex-shrink: 0; font-size: .9rem; }
  .row3 { grid-template-columns: minmax(0, 1fr); }
  .photo-upload { grid-template-columns: minmax(0, 1fr); }
  #invItems tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pick.static { flex-wrap: wrap; }
  .pick-body { min-width: 100px; }
  .pick.static .ps-buy { flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%; }
  .ps-buy .price-review { max-width: none; flex-basis: 100%; }
  .co-head { flex-wrap: wrap; }
}

/* Estimate materials: one list shared by manual entries and selected products. */
#estimateMaterials { margin:24px 0; scroll-margin-top:20px; min-width:0; }
.materials-heading, .materials-subtotal { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.materials-heading h3 { margin:0; }
.materials-heading .hint { margin:6px 0 12px; }
.materials-heading .btn-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:100%; }
.materials-subtotal { padding:16px; font-size:1.05rem; }
.material-category { padding:0; overflow:hidden; margin-bottom:12px; }
.material-category > summary { padding:16px; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:52px; }
.material-category > summary::before { content:'▸'; flex:none; }
.material-category[open] > summary::before { content:'▾'; }
.material-category > summary > span { flex:1; min-width:0; overflow-wrap:anywhere; font-weight:700; }
.material-category > summary small { font-weight:400; }
.material-category > summary b { white-space:nowrap; }
.material-category-body { padding:0 16px 16px; }
.material-card { padding:16px 0; border-top:1px solid #e5e5e5; display:grid; grid-template-columns:minmax(180px,1fr) minmax(300px,1fr) auto; gap:12px; align-items:center; min-width:0; scroll-margin-top:20px; }
.material-title { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.material-title img { width:44px; height:44px; object-fit:contain; flex:none; }
.material-title > div { min-width:0; }
.material-title strong, .material-title small { display:block; overflow-wrap:anywhere; }
.material-title small { color:#626262; margin-top:4px; font-size:12px; }
.material-values { display:grid; grid-template-columns:minmax(55px,.8fr) minmax(55px,.8fr) minmax(85px,1.1fr) minmax(75px,1fr); gap:10px; min-width:0; align-items:end; }
.material-card label { display:grid; gap:5px; font-size:12px; min-width:0; }
.material-card input, .material-card select { width:100%; min-width:0; box-sizing:border-box; min-height:44px; }
.material-amount { display:grid; gap:5px; align-self:center; overflow-wrap:anywhere; }
.material-actions { display:flex; flex-wrap:wrap; gap:8px; }
.material-actions .btn, .material-category-body > .btn { min-height:44px; width:auto; }
.material-editor { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:12px; background:#f8f8f6; border-radius:8px; }
.material-editor > details { grid-column:1/-1; }
.material-editor summary { cursor:pointer; padding:10px 0; min-height:44px; }
.material-product-details { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.material-product-details p, .material-product-details a { overflow-wrap:anywhere; }
#tab-products { max-width:1000px; margin-inline:auto; }
.product-search-nav { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:16px; }
#tab-products #productEstimateContext { min-width:0; overflow-wrap:anywhere; }
#tab-products .ps-bar { display:flex; gap:8px; }
#tab-products .ps-bar input { flex:1; min-width:0; }
#tab-products .ps-bar .btn { width:auto; flex:none; }
#tab-products .ps-row { flex-wrap:wrap; min-width:0; }
#tab-products .pick-body { min-width:0; overflow-wrap:anywhere; }
#tab-products .ps-buy { flex-wrap:wrap; min-width:0; }
#tab-products .ps-buy button { min-height:44px; white-space:normal; }
@media(max-width:1000px) {
  .material-card { grid-template-columns:minmax(0,1fr); }
  .material-values { max-width:620px; }
}
@media(max-width:480px) {
  .materials-heading .btn-row { width:100%; }
  .materials-heading .btn-row > .btn { flex:1; min-width:0; }
  .material-category-body { padding-inline:12px; }
  .material-category > summary { padding:12px; }
  .material-values { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .material-editor, .material-product-details { grid-template-columns:minmax(0,1fr); }
  .material-card input, .material-card select { font-size:16px; }
  #tab-products .ps-buy { width:100%; justify-content:flex-start; gap:10px; }
}

/* Navigation inside Estimate only; main app tabs and dashboard keep their styles. */
#tab-estimate .creator-tabs { display:flex; gap:6px; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; padding:4px; margin-bottom:12px; background:var(--cream); border-radius:10px; }
#tab-estimate .creator-tabs [role="tab"] { flex:1 0 84px; min-height:46px; padding:10px 14px; border:1px solid transparent; border-radius:7px; background:transparent; color:var(--text-main); font:inherit; font-weight:600; cursor:pointer; }
#tab-estimate .creator-tabs [aria-selected="true"] { background:var(--bg-dark); color:#fff; border-color:var(--gold); box-shadow:0 2px 4px #0002; }
#tab-estimate .creator-tabs [role="tab"]:focus-visible { outline:2px solid var(--gold-hover); outline-offset:-2px; }
#tab-estimate .creator-panel { min-width:0; max-width:100%; }
#tab-estimate .creator-summary { position:sticky; top:8px; z-index:5; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; padding:12px 16px; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
#tab-estimate .creator-summary div { display:grid; gap:4px; min-width:0; }
#tab-estimate .creator-summary span { font-size:.76rem; color:var(--text-muted); }
#tab-estimate .creator-summary strong { overflow-wrap:anywhere; }
#tab-estimate .creator-summary div:last-child strong { color:var(--gold-hover); }
#tab-estimate .creator-panel :is(input,select,textarea,button,details,[tabindex]) { scroll-margin-top:110px; }
#tab-estimate .creator-review-project { display:flex; align-items:flex-start; gap:16px; justify-content:space-between; margin-bottom:12px; }
#tab-estimate .creator-review-project > div { min-width:0; overflow-wrap:anywhere; }
#tab-estimate .creator-review-project .btn { width:auto; flex:none; min-height:44px; }
#tab-estimate #reviewNotes { white-space:pre-wrap; }
#tab-estimate .creator-review-links { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
#tab-estimate .creator-review-links .btn { width:auto; min-height:44px; }
#tab-estimate #previewEstimateBtn { margin:12px 0 8px; }
#tab-estimate #estimateMaterials { margin-top:0; }
#tab-estimate .creator-panel > .job-includes { background:var(--bg-surface); margin-bottom:16px; }
@media(max-width:720px), (max-height:550px) {
  #tab-estimate .creator-summary { position:static; padding:10px; gap:8px; }
  #tab-estimate .creator-summary strong { font-size:.9rem; }
  #tab-estimate .creator-review-project { flex-wrap:wrap; }
  #tab-estimate .creator-panel :is(input,select,textarea,button,details,[tabindex]) { scroll-margin-top:12px; }
}

.guided-start { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.guided-start .hint { margin: 4px 0 0; }
.guided-dialog { overflow-wrap: anywhere; }
.guided-dialog .fg, .guided-line { min-width: 0; }
.guided-dialog input:not([type="checkbox"]), .guided-dialog select, .guided-dialog textarea { width: 100%; min-width: 0; max-width: 100%; }
.guided-dialog h4 { margin: 16px 0 12px; }
.guided-line { margin-bottom: 12px; }
#guidedManual { margin-top: 16px; }
@media (max-width: 600px) {
  .guided-start { align-items: stretch; flex-direction: column; }
  .guided-dialog .row2 { grid-template-columns: minmax(0, 1fr); }
  .guided-dialog .table-head { align-items: flex-start; gap: 8px; }
}

/* Compact job folders and reviewed home notes. */
.job-folders { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; margin-top:18px; }
.job-folder-card { display:flex; flex-direction:column; gap:9px; padding:20px; text-align:left; border:1px solid #d9dce1; border-radius:12px; background:#fff; color:#243047; cursor:pointer; font:inherit; }
.job-folder-card:hover,.job-folder-card:focus-visible { border-color:#94732e; background:#fffaf0; }
.job-folder-card strong { font-size:1.1rem; }
#jobFolderContent { padding-top:20px; }
#jobFolderTabs [aria-pressed="true"] { background:#243047; color:#fff; }
.folder-note { white-space:pre-wrap; border-bottom:1px solid #e5e7eb; padding-bottom:12px; }
.folder-note small { display:block; color:#667085; margin-top:6px; }
.dispatcher textarea { width:100%; box-sizing:border-box; }
.dispatcher label { display:block; margin:10px 0; }
.dispatcher select { width:100%; }
#dispatchReview { border-top:1px solid #e5e7eb; padding-top:12px; margin-top:12px; }
#clientDetails summary, .quick-grid + details summary { cursor:pointer; padding:12px 0; }
@media(max-width:600px) { .job-folders { grid-template-columns:1fr; } #jobFolderTabs { display:grid; grid-template-columns:1fr 1fr; } }

/* Draft selection stays inside the guide; the four estimate tabs keep their layout. */
.draft-method { display:flex; flex-wrap:wrap; gap:12px 24px; padding:12px; border:1px solid var(--border); border-radius:8px; margin:12px 0; }
.draft-method legend { font-size:.82rem; font-weight:600; padding-inline:5px; }
.draft-method .check-inline { min-height:44px; margin:0; }
#draftTradeChooser > .hint { margin-top:12px; }
#draftTrades .sec-chip { min-height:44px; }
.draft-more { flex-basis:100%; margin:4px 0 8px; }
.draft-more summary { cursor:pointer; padding:10px 0; font-size:.82rem; }
.draft-trade { padding:0; margin-bottom:10px; box-shadow:none; }
.draft-trade > summary { cursor:pointer; padding:14px; font-weight:700; background:var(--cream); border-radius:10px; }
.draft-trade > div { padding:8px 14px 14px; }
.draft-trade .check-inline { min-height:44px; padding:8px 0; margin:0; line-height:1.4; }
.draft-trade input { flex:none; }
.draft-method .check-inline { flex:1 1 120px; }
.guided-dialog .draft-method input[type="radio"] { width:16px; min-width:16px; height:16px; flex:none; accent-color:var(--gold); }

.labor-pricing { display: flex; flex-wrap: wrap; gap: 8px; min-width: 220px; align-items: end; }
.labor-pricing label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; flex: 1 1 85px; }
.labor-pricing select, .labor-pricing input { width: 100%; min-width: 0; box-sizing: border-box; }
.labor-pricing .ext { flex-basis: 100%; text-align: right; }
.estimate-appearance { margin: 16px 0; }
.estimate-appearance summary { cursor: pointer; font-weight: 700; }
.estimate-appearance .check-inline { display: flex; margin: 10px 0; }
@media (max-width: 600px) { .labor-pricing { min-width: 0; width: 100%; } }

/* Keep estimate creation focused on the current job and the next step. */
.scope-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#scopeStatus:empty { display:none; }
#scopeRestore { margin-bottom:10px; }
#guidedDescription { margin:12px 0; }
#guidedDescription > summary { cursor:pointer; padding:10px 0; font-weight:600; }
#guidedScopeSummary { white-space:normal; }
#guidedPriceHelp { margin-top:12px; }
#guidedPriceHelp > summary { cursor:pointer; padding:10px 0; }
#guidedPriceGenerate { margin-top:12px; }
#guidedPriceStatus:empty { display:none; }
#guidedPriceResult { padding:12px; border:1px solid var(--border); border-radius:8px; }
#guidedPriceRange { display:block; font-size:1.1rem; }
#tab-estimate .creator-tabs [role="tab"] { flex:1 1 0; min-width:0; padding-inline:8px; }
#tab-estimate .creator-summary.fixed-quote { grid-template-columns:minmax(0,1fr); }
#tab-estimate .creator-summary.fixed-quote strong { font-size:1.25rem; }
#creatorPriceHint { margin:-6px 0 16px; }
#tab-estimate .guided-start .btn { flex:0 0 auto; width:auto; }
#tab-estimate .guided-start > div { flex:1; }
#tab-estimate .estimate-next { display:flex; justify-content:flex-end; margin:18px 0; }
#tab-estimate .estimate-next .btn { width:auto; min-width:180px; }
.project-contact { margin:12px 0; }
.project-contact summary,.estimate-options summary,.work-picker summary,.more-work summary { cursor:pointer; padding:12px 0; }
.estimate-options { margin:12px 0; }
.estimate-finish { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0 10px; }
#tab-estimate .estimate-finish #previewEstimateBtn { margin:0; }
.estimate-secondary { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-bottom:12px; }
.more-work { flex-basis:100%; }
.work-picker { margin-bottom:16px; }
.work-picker > summary { font-weight:600; }
.work-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:4px 16px; padding:4px 0 12px; }
.work-choices .check-inline { min-height:44px; margin:0; align-items:center; }
.work-choices input { flex:none; }
.work-choices small { display:block; color:var(--text-muted); font-weight:400; }
#guidedDialog .table-head { display:flex; align-items:center; justify-content:space-between; }
#guidedDialog .table-head h3 { margin:0; }
#guidedDialog #guidedClose { width:auto; flex:none; padding-inline:12px; }
#guidedDialog #guidedStatus:empty { display:none; }
#guidedDialog #guidedReviewTitle { margin-top:4px; }
#guidedDialog #guidedMethodToggle,#guidedDialog #guidedBack { margin-top:10px; }
#guidedDialog #guidedManual { display:none; }
@media(max-width:600px) {
  .scope-actions { grid-template-columns:minmax(0,1fr); }
  #tab-estimate .creator-tabs { gap:2px; }
  #tab-estimate .creator-tabs [role="tab"] { padding-inline:3px; font-size:13px; white-space:nowrap; }
  #tab-estimate .guided-start .btn { width:100%; }
  .estimate-finish,.estimate-secondary,.work-choices { grid-template-columns:minmax(0,1fr); }
  #tab-estimate .estimate-next .btn { width:100%; }
  #guidedDialog { padding:16px; }
  #guidedDialog input,#guidedDialog textarea { font-size:16px; }
}
