/* Keys Roofing CRM - brand-matched to keysroofing.com */
:root {
  --navy: #0D0D1A;
  --navy-2: #16162a;
  --navy-3: #1f1f38;
  --brass: #C9A645;
  --brass-2: #D4B85A;
  --slate: #6A9BB4;
  --cream: #F0EDE6;
  --paper: #FBFAF7;
  --ink: #2A2A38;
  --muted: #6E6E88;        /* darkened for WCAG AA on light backgrounds (was #8888A8) */
  --muted-soft: #9A9AB0;   /* the old lighter shade, for large/decorative text only */
  --line: #E4E0D7;
  --green: #2ECC71;
  --red: #C0392B;
  --amber: #E8A838;
  --material: #3E9B8F;
  --gutter: #3E7B5E;       /* gutter-program green (was hard-coded in 3 places) */
  --shadow: 0 1px 3px rgba(13,13,26,.08), 0 8px 24px rgba(13,13,26,.06);
  --radius: 12px;
  --focus-ring: 0 0 0 3px rgba(106,155,180,.4);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* Layout */
.app { display: grid; grid-template-columns: 232px 1fr; height: 100vh; }
.sidebar { background: var(--navy); color: #cfcfe0; display: flex; flex-direction: column; padding: 20px 14px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; }
.brand .k { width: 40px; height: 40px; border: 2px solid var(--brass); border-radius: 9px; display: grid; place-items: center; color: var(--brass); font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; }
.brand .wm { line-height: 1.1; }
.brand .wm b { color: #fff; font-family: 'Playfair Display', serif; font-size: 17px; display: block; letter-spacing: .3px; }
.brand .wm span { color: var(--brass); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #b9b9cf; text-decoration: none; font-weight: 500; font-size: 13.5px; }
.nav a .ic { width: 17px; text-align: center; opacity: .85; }
.nav a:hover { background: var(--navy-2); color: #fff; }
.nav a.active { background: var(--navy-3); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.nav .label { margin: 18px 12px 6px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #55556f; }
.nav a.soon { color: #6a6a86; cursor: default; }
.nav a.soon:hover { background: transparent; color: #6a6a86; }
.nav a.soon .tag { margin-left: auto; font-size: 9px; background: var(--navy-3); color: var(--brass); padding: 2px 6px; border-radius: 20px; letter-spacing: 1px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--navy-3); padding-top: 12px; }
.side-foot .who { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.side-foot .av { width: 30px; height: 30px; border-radius: 50%; background: var(--brass); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.side-foot .who b { color: #fff; font-size: 13px; display: block; }
.side-foot .who small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.foot-btns { display: flex; gap: 6px; margin-top: 8px; }
.side-foot button { flex: 1; background: transparent; border: 1px solid var(--navy-3); color: #9a9ab4; padding: 8px; border-radius: 8px; font-size: 12px; }
.side-foot button:hover { color: #fff; border-color: var(--brass); }
.pw-msg { font-size: 12.5px; margin-top: 12px; min-height: 16px; color: var(--slate); }

/* Main */
.main { overflow: hidden; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 20px; margin: 0; color: var(--navy); }
.filters { display: flex; gap: 6px; margin-left: 8px; }
.pill { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 13px; border-radius: 30px; font-size: 12.5px; font-weight: 500; }
.pill:hover { border-color: var(--slate); }
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.grow { flex: 1; }
.search { position: relative; }
.search input { border: 1px solid var(--line); background: #fff; padding: 9px 12px 9px 32px; border-radius: 9px; width: 220px; font-size: 13px; }
.search::before { content: '\1F50D'; position: absolute; left: 10px; top: 8px; font-size: 12px; opacity: .5; }
.btn { border: none; border-radius: 9px; padding: 10px 16px; font-weight: 600; font-size: 13px; }
.btn.brass { background: var(--brass); color: var(--navy); }
.btn.brass:hover { background: var(--brass-2); }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--slate); }

.content { overflow: auto; padding: 20px 24px; flex: 1; }
.view { display: none; }
.view.active { display: block; }

/* Stat strip */
.stats { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 18px; min-width: 118px; box-shadow: var(--shadow); }
.stat .n { font-size: 24px; font-weight: 700; color: var(--navy); font-family: 'Playfair Display', serif; }
.stat .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, var(--navy), var(--navy-3)); border-color: var(--navy); }
.stat.accent .n { color: var(--brass); }
.stat.accent .l { color: #b9b9cf; }
.stat[title] { cursor: help; }
.stat-i { opacity: .6; font-size: 10px; }

/* Pipeline board */
.board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 16px; }
.col { flex: 0 0 262px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: var(--radius); }
.col-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; position: sticky; top: 0; }
.col-head b { font-size: 13px; color: var(--navy); }
.col-head .cnt { font-size: 12px; color: #fff; background: var(--slate); border-radius: 20px; padding: 1px 8px; font-weight: 600; }
.col-head .hint { font-size: 10.5px; color: var(--muted); margin-left: auto; }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; max-height: calc(100vh - 230px); overflow-y: auto; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; box-shadow: var(--shadow); cursor: pointer; transition: transform .06s, box-shadow .12s; }
.card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13,13,26,.12); border-color: var(--slate); }
.card .name { font-weight: 600; color: var(--navy); font-size: 14px; }
.card .meta { color: var(--muted); font-size: 12px; margin: 3px 0 9px; }
.card .row { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.badge { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 20px; letter-spacing: .3px; }
.badge.Retail { background: #E8F0F5; color: #2C6C8C; }
.badge.Insurance { background: #EAE4F5; color: #6A3EA1; }
.badge.Repair { background: #FBE9E7; color: #B23A2E; }
.badge.WorkOrder, .badge.Work.Order { background: #EDEAE2; color: #7A6A3A; }
.card .val { font-weight: 700; color: var(--navy); font-size: 13px; }
.card select { font-size: 11px; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; background: var(--paper); color: var(--ink); max-width: 118px; }
.card-call { display: none; margin-left: auto; text-decoration: none; font-size: 12.5px; font-weight: 600; color: #1E8E4E; background: #E7F6EC; padding: 6px 11px; border-radius: 20px; }
.card .selrow { display: flex; gap: 6px; margin-top: 10px; }
.card .appt { font-size: 11px; color: var(--slate); margin-top: 8px; font-weight: 500; }
.card .appt b { color: var(--ink); }

/* Slide-over detail */
.overlay { position: fixed; inset: 0; background: rgba(13,13,26,.4); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 40; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 560px; max-width: 96vw; background: var(--paper); box-shadow: -12px 0 40px rgba(13,13,26,.2); transform: translateX(100%); transition: transform .2s; z-index: 50; overflow-y: auto; overflow-x: hidden; }
.drawer.open { transform: translateX(0); }
.drawer .dh { position: sticky; top: 0; background: var(--navy); color: #fff; padding: 18px 22px; display: flex; align-items: flex-start; gap: 10px; }
.drawer .dh h2 { margin: 0; font-size: 20px; color: #fff; }
.drawer .dh .sub { color: var(--brass); font-size: 12.5px; margin-top: 3px; }
.drawer .dh .x { margin-left: auto; background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; }
.dsec { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dsec h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-family: 'Inter', sans-serif; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.f { display: flex; flex-direction: column; gap: 4px; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 11px; color: var(--muted); font-weight: 500; }
.f input, .f select, .f textarea { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; background: #fff; font-family: inherit; color: var(--ink); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(106,155,180,.15); }
.activity { display: flex; flex-direction: column; gap: 9px; }
.act { display: flex; gap: 9px; font-size: 12.5px; }
.act .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-top: 5px; flex: 0 0 auto; }
.act .act-body { flex: 1; min-width: 0; }
.act-del { flex: 0 0 auto; background: transparent; border: none; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 2px; opacity: 0; transition: opacity .12s; align-self: center; }
.act:hover .act-del { opacity: 1; }
.act-del:hover { color: var(--red); }
/* Files & photos (job drawer) */
.file-count { font-size: 11px; background: var(--slate); color: #fff; border-radius: 20px; padding: 1px 8px; font-weight: 600; margin-left: 4px; }
.file-upload { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.file-msg { font-size: 12px; color: var(--slate); }
.file-empty { color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.file-item { position: relative; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; cursor: pointer; background: #fff; aspect-ratio: 1; }
.file-item.is-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-item.is-doc { display: flex; align-items: center; justify-content: center; padding: 8px; }
.file-item:hover { border-color: var(--slate); box-shadow: var(--shadow); }
.file-doc { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.file-ic { font-size: 26px; }
.file-name { font-size: 9.5px; color: var(--ink); line-height: 1.2; word-break: break-word; max-height: 24px; overflow: hidden; }
.file-del { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(13,13,26,.6); color: #fff; font-size: 14px; line-height: 1; display: none; align-items: center; justify-content: center; }
.file-item:hover .file-del { display: flex; }
.file-del:hover { background: var(--red); }
.file-subhead { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; }
.file-divider { height: 1px; background: var(--line); margin: 18px 0; }
.doc-list { display: flex; flex-direction: column; gap: 6px; }
.doc-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; cursor: pointer; }
.doc-row:hover { border-color: var(--slate); }
.doc-ic { font-size: 18px; flex: 0 0 auto; }
.doc-nm { flex: 1; font-size: 13px; color: var(--ink); word-break: break-word; }
.doc-row .file-del { position: static; display: block; width: 20px; height: 20px; background: transparent; color: var(--muted); }
.doc-row:hover .file-del { display: flex; }
.doc-row .file-del:hover { background: var(--red); color: #fff; }

/* Lightbox + markup */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,8,16,.94); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; }
.lb-stage img, .lb-stage canvas { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lb-stage canvas { background: #fff; cursor: crosshair; touch-action: none; }
.lb-close { position: absolute; top: 14px; right: 18px; z-index: 2; background: rgba(255,255,255,.12); border: none; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.24); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.12); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-bar { background: rgba(13,13,26,.85); backdrop-filter: blur(8px); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lb-info { color: #d5d5e5; font-size: 13px; display: flex; gap: 12px; align-items: baseline; min-width: 0; }
.lb-name { color: #8888a8; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.lb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lb-tools button, .lb-dl { background: rgba(255,255,255,.12); border: none; color: #fff; padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.lb-tools button:hover, .lb-dl:hover { background: rgba(255,255,255,.24); }
.lb-tools button.active { background: var(--slate); }
.lb-tools button.lb-brass { background: var(--brass); color: var(--navy); }
.lb-tools button.lb-brass:hover { background: var(--brass-2); }
.lb-tools input[type=color] { width: 38px; height: 34px; border: none; border-radius: 8px; background: transparent; cursor: pointer; padding: 0; }

@media (max-width: 820px) {
  .lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .lb-name { display: none; }
  .lb-bar { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .lb-tools button, .lb-dl { padding: 8px 11px; font-size: 12.5px; }
}

.danger-zone { display: flex; justify-content: flex-end; }
.btn.danger { background: #fff; border: 1px solid var(--red); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.act .t { color: var(--ink); }
.act .m { color: var(--muted); font-size: 11px; }
.noterow { display: flex; gap: 8px; margin-top: 12px; }
.noterow input { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.saved { font-size: 11px; color: var(--green); opacity: 0; transition: opacity .2s; }
.saved.show { opacity: 1; }

/* Calendar */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-head b { font-size: 17px; font-family: 'Playfair Display', serif; color: var(--navy); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { text-align: center; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 96px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; }
.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell.dim { background: #f4f1ea; }
.cal-cell .dn { font-size: 12px; color: var(--muted); font-weight: 600; }
.cal-cell.today .dn { color: var(--brass); }
.ev { font-size: 10.5px; padding: 3px 6px; border-radius: 6px; margin-top: 4px; color: #fff; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev.appointment { background: var(--slate); }
.ev.material { background: var(--material); }
.ev.install { background: var(--brass); color: var(--navy); font-weight: 600; }
.ev.gutter { background: #3E7B5E; }

/* Outbox */
.msg { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.msg .top { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.chan { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 2px 8px; border-radius: 20px; }
.chan.email { background: #E8F0F5; color: #2C6C8C; }
.chan.text { background: #E7F6EC; color: #1E8E4E; }
.msg .to { font-weight: 600; color: var(--navy); }
.msg .when { margin-left: auto; font-size: 11px; color: var(--muted); }
.msg .subj { font-weight: 600; font-size: 13px; }
.msg .body { color: #55556a; font-size: 12.5px; margin-top: 3px; }
.msg .status { font-size: 10.5px; color: var(--amber); margin-top: 6px; }

.empty { text-align: center; color: var(--muted); padding: 50px; font-size: 13px; }

.lbl-hint { font-weight: 400; color: var(--slate); font-size: 10px; text-transform: none; letter-spacing: 0; }
.backup-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* @mentions + notifications */
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; }
.mention { color: var(--slate); font-weight: 600; background: rgba(106,155,180,.13); padding: 0 3px; border-radius: 4px; }
.mention-drop { position: absolute; bottom: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 50; overflow: hidden; max-height: 200px; overflow-y: auto; }
.mention-opt { padding: 9px 12px; font-size: 14px; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.mention-opt.on { background: var(--paper); }
.mention-opt b { color: var(--navy); }
.mention-opt span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.notif { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; background: var(--paper); }
.notif:hover { border-color: var(--slate); }
.notif.unread { border-left: 3px solid var(--brass); background: #FBF6E9; }
.notif-top { font-size: 13px; color: var(--ink); }
.notif-top b { color: var(--navy); }
.notif-when { color: var(--muted); font-size: 11px; margin-left: 8px; }
.notif-text { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* Roof Material Calculator */
.rc-systems { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rc-sys { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.rc-sys.active { background: var(--navy); color: var(--brass); border-color: var(--navy); }
.rc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.rc-inputs .f label { font-size: 11.5px; }
.rc-inputs input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 14px; font-family: inherit; width: 100%; }
.rc-note { font-size: 11px; color: var(--muted); margin-top: 10px; font-style: italic; }
.rc-resulthead { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; font-family: 'Playfair Display', serif; font-size: 15px; color: var(--navy); }
.rc-resulthead span { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted); font-weight: 600; }
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rc-table .rc-q { text-align: right; font-weight: 700; color: var(--navy); width: 60px; }
.rc-table .rc-u { color: var(--muted); font-size: 12px; width: 100px; }
@media (max-width: 560px) { .rc-inputs { grid-template-columns: 1fr; } .rc-inputs input { font-size: 16px; } }

/* Company Documents */
.cd-wrap { max-width: 820px; }
.cd-wrap .file-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); margin-top: 4px; }
.cd-wrap .doc-row { padding: 11px 14px; }
.cd-wrap .doc-nm { font-size: 13.5px; }

/* Gutter Program */
.g-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.g-intro { color: var(--muted); font-size: 13px; margin: 0; max-width: 560px; }
.g-head-btns { display: flex; gap: 8px; }
/* Free-cleaning giveaway counter (door scarcity hook) */
.g-give { background: linear-gradient(135deg, var(--navy), var(--navy-3)); border: 1px solid var(--navy); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; color: #fff; box-shadow: var(--shadow); }
.g-give-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.g-give-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #b9b9cf; }
.g-give-num { font-size: 19px; margin-top: 3px; color: #fff; } .g-give-num b { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--brass); }
.g-give-right { text-align: right; }
.g-give-left { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--brass); line-height: 1; }
.g-give-leftlbl { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #b9b9cf; margin-top: 2px; }
.g-give-bar { height: 8px; background: rgba(255,255,255,0.12); border-radius: 20px; margin: 12px 0 8px; overflow: hidden; }
.g-give-fill { height: 100%; background: linear-gradient(90deg, var(--brass), var(--brass-2)); border-radius: 20px; transition: width .4s; }
.g-give-pitch { font-size: 12px; color: #cfcfe0; font-style: italic; }
.g-give-edit { background: none; border: none; color: var(--brass); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; font-style: normal; text-decoration: underline; margin-left: 4px; }
/* Gutter MRR trend bar chart */
.g-trend { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 14px 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.g-trend-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 10px; }
.g-trend-bars { display: flex; align-items: flex-end; gap: 10px; height: 90px; }
.g-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.g-trend-bar { width: 70%; min-height: 3px; background: linear-gradient(180deg, var(--brass-2), var(--brass)); border-radius: 4px 4px 0 0; }
.g-trend-lbl { font-size: 10px; color: var(--muted); margin-top: 5px; }
.g-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 6px; }
.g-enroll { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); }
.g-enroll:hover { border-color: var(--slate); transform: translateY(-1px); }
.g-enroll .name { font-weight: 600; color: var(--navy); font-size: 15px; }
.g-enroll .meta { color: var(--muted); font-size: 12.5px; margin: 3px 0 8px; }
.g-line { font-size: 13px; color: var(--ink); font-weight: 500; }
.g-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 20px; }
.g-badge.s-free-clean { background: #E8F0F5; color: #2C6C8C; }
.g-badge.s-plan-active { background: #E7F6EC; color: #1E8E4E; }
.g-badge.s-guards-sold { background: #EAE4F5; color: #6A3EA1; }
.g-badge.s-declined { background: #FBE9E7; color: var(--red); }
.gchk { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink); margin-top: 12px; cursor: pointer; }
.gchk input { width: auto; transform: scale(1.15); }
.g-sell-note { color: var(--slate); font-size: 12.5px; margin-top: 8px; min-height: 14px; }
.g-sellrow { display: flex; gap: 8px; margin-bottom: 8px; }
.g-sellrow select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 13px; background: #fff; font-family: inherit; }
.g-sellrow .btn { flex: 0 0 auto; padding: 9px 14px; }
.g-sold { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; font-size: 13px; }
.g-sold.ok { border-color: var(--green); background: #F1FBF5; }
.g-sold b { color: var(--navy); }
.g-sold-status { color: var(--slate); }
.g-sold.ok .g-sold-status { color: var(--green); font-weight: 600; }
.g-linkrow { display: flex; gap: 6px; margin-top: 8px; }
.comp-tag { color: var(--green); font-weight: 700; }
.g-sellrow .gcomp { flex: 0 0 auto; padding: 9px 11px; }
@media (max-width: 820px) { .g-sellrow { flex-wrap: wrap; } .g-sellrow select { font-size: 16px; } }
.dsec-h { margin: 0 0 8px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-family: 'Inter', sans-serif; }
.pr-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pr-row input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; font-family: inherit; }
.pr-row input:first-child { flex: 1; }
.pr-row input[type=number] { width: 90px; }
.pr-tag { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

@media (max-width: 820px) {
  .g-list { grid-template-columns: 1fr; }
  .pr-row input { font-size: 16px; }
}

/* Provider status bar (Automations) */
.prov { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow); font-size: 13px; }
.prov b { color: var(--navy); margin-right: 4px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.pdot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(46,204,113,.18); }
.pdot.off { background: var(--muted); }
.prov-hint { color: var(--amber); font-size: 12px; flex-basis: 100%; }

/* Import screen */
.import-wrap { max-width: 780px; }
.import-lead { color: #55556a; font-size: 13.5px; line-height: 1.55; margin: 0 0 16px; }
.import-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.import-file { color: var(--muted); font-size: 12.5px; }
.import-ta { width: 100%; min-height: 180px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; resize: vertical; background: #fff; }
.import-ta:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(106,155,180,.15); }
.import-buttons { display: flex; align-items: center; gap: 12px; margin: 14px 0; flex-wrap: wrap; }
.import-status { color: var(--slate); font-size: 13px; font-weight: 500; }
.import-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.import-tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.import-tbl td { padding: 9px 12px; font-size: 13px; border-bottom: 1px solid var(--line); }
.import-tbl tr:last-child td { border-bottom: none; }
.import-note { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* drawer inline notes */
.dsec-note { font-size: 11.5px; color: var(--slate); margin: 10px 0 0; line-height: 1.45; }

/* Estimates (job drawer) */
.est-list { display: flex; flex-direction: column; gap: 8px; }
.est-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.est-main { display: flex; align-items: center; gap: 8px; }
.est-main b { color: var(--navy); font-size: 14px; }
.est-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 2px 8px; border-radius: 20px; }
.est-badge.draft { background: var(--cream); color: var(--muted); }
.est-badge.sent { background: #E8F0F5; color: #2C6C8C; }
.est-badge.approved { background: #E7F6EC; color: #1E8E4E; }
.est-badge.declined { background: #FBE9E7; color: var(--red); }
.est-sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
.est-sub b { color: var(--navy); }
.est-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.mini:hover { border-color: var(--slate); }
.est-del:hover { border-color: var(--red); color: var(--red); }
.doc-status { margin-left: auto; font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px; background: var(--paper); color: var(--ink); text-transform: capitalize; }
.doc-del:hover { border-color: var(--red); color: var(--red); }

/* Estimate builder modal */
.est-table { width: 100%; border-collapse: collapse; }
.est-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 4px 6px; }
.est-table th.r { text-align: right; }
.est-table td { padding: 3px 6px; }
.est-table td.r { text-align: right; font-size: 13px; color: var(--navy); font-weight: 600; }
.est-table input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 8px 9px; font-size: 14px; font-family: inherit; }
.est-table input:focus { outline: none; border-color: var(--slate); }
.rowdel { background: transparent; border: none; color: var(--muted); font-size: 17px; line-height: 1; }
.rowdel:hover { color: var(--red); }
.est-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.est-tax { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.est-tax input { border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; font-size: 14px; }
.est-total { font-size: 15px; color: var(--ink); }
.est-total b { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); }

@media (max-width: 820px) {
  .est-table input, .est-tax input { font-size: 16px; }
}

/* Payments (job drawer) */
.pay-summary { display: flex; gap: 10px; margin-bottom: 12px; }
.pay-summary > div { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pay-summary span { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.pay-summary b { font-size: 16px; color: var(--navy); font-family: 'Playfair Display', serif; }
.pay-form { display: flex; gap: 8px; margin-bottom: 8px; }
.pay-form select, .pay-form input { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: inherit; }
.pay-form select { flex: 0 0 auto; }
.pay-form input { flex: 1; min-width: 0; }
.pay-form .btn { flex: 0 0 auto; padding: 9px 14px; }
.pay-msg { font-size: 12px; color: var(--slate); min-height: 16px; margin-bottom: 8px; }
.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-item { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.pay-item.paid { border-color: var(--green); background: #F1FBF5; }
.pay-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pay-line b { color: var(--navy); font-size: 14px; }
.pay-kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); background: var(--cream); border-radius: 20px; padding: 2px 8px; }
.pay-status { margin-left: auto; font-size: 11.5px; color: var(--slate); }
.pay-item.paid .pay-status { color: var(--green); font-weight: 600; }
.pay-actions { display: flex; gap: 6px; margin-top: 8px; }
.pay-actions .minibtn { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.pay-sublabel { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); margin-bottom: 6px; }
.pay-receipt-opt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); margin: 2px 0 10px; cursor: pointer; }
.pay-card { font-size: 11.5px; color: var(--slate); background: var(--cream); border-radius: 20px; padding: 2px 8px; }
.pay-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.pay-actions .minibtn:hover { border-color: var(--slate); }

@media (max-width: 820px) {
  .pay-summary { flex-wrap: wrap; }
  .pay-summary > div { min-width: 30%; }
  .pay-form { flex-wrap: wrap; }
  .pay-form select, .pay-form input { font-size: 16px; }
  .pay-form .btn { flex: 1; }
}

/* Automations section headers */
.sec-h { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); margin: 6px 0 10px; }

/* Message template editor */
.tpl-wrap { margin-bottom: 26px; }
.tpl-help { color: #55556a; font-size: 12.5px; line-height: 1.7; margin: 0 0 14px; }
.tag-chip { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; background: var(--navy); color: var(--brass); border: none; border-radius: 6px; padding: 3px 7px; margin: 2px 1px; cursor: pointer; }
.tag-chip:hover { background: var(--navy-3); }
.tpl { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.tpl-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tpl-top b { color: var(--navy); font-size: 14px; }
.tpl-when { color: var(--muted); font-size: 11.5px; }
.tpl-subject { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 13px; font-weight: 600; margin-bottom: 8px; font-family: inherit; }
.tpl-body { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; resize: vertical; line-height: 1.5; }
.tpl-subject:focus, .tpl-body:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 3px rgba(106,155,180,.15); }
.tpl-actions { display: flex; align-items: center; gap: 10px; margin-top: 4px; }

@media (max-width: 820px) {
  .tpl-subject, .tpl-body { font-size: 16px; }
  .tpl-actions { flex-wrap: wrap; }
  .tpl-actions .btn { flex: 1; }
}

@media (max-width: 820px) {
  .import-ta { font-size: 16px; min-height: 140px; }
  .prov { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* Modal (new job) */
.modal-bg { position: fixed; inset: 0; background: rgba(13,13,26,.5); display: none; place-items: center; z-index: 60; }
.modal-bg.open { display: grid; }
.modal { background: var(--paper); border-radius: 16px; width: 560px; max-width: 94vw; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal .mh { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal .mh h2 { margin: 0; font-size: 21px; color: var(--navy); }
.modal .mh .x { margin-left: auto; background: none; border: none; font-size: 24px; color: var(--muted); }
.modal .mb { padding: 20px 24px; }
.modal .mf { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

.withbtn { display: flex; gap: 6px; align-items: stretch; }
.withbtn input { flex: 1; min-width: 0; }
.minibtn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-size: 12.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; border: none; cursor: pointer; }
.minibtn.call { background: var(--green); color: #fff; }
.minibtn.email { background: var(--brass); color: var(--navy); }
.minibtn.email[disabled] { background: var(--line); color: var(--muted); cursor: not-allowed; }
.minibtn.maps { background: var(--slate); color: #fff; width: 100%; justify-content: center; }

/* ---- Mobile-only chrome (hidden on desktop) ---- */
.sidebar-backdrop, .mobile-topbar, .mobile-search, .bottom-nav, .stage-chips, .mobile-filterbar { display: none; }

/* ============================================================
   MOBILE  (<= 820px)  - field-first layout for Kaleb's phone
   ============================================================ */
@media (max-width: 820px) {
  body { font-size: 15px; }
  .app { display: block; height: auto; }

  /* Sidebar becomes a slide-in drawer */
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 310px); transform: translateX(-100%); transition: transform .22s ease; z-index: 80; padding-top: calc(20px + env(safe-area-inset-top)); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(13,13,26,.5); opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 70; }
  .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 12px; font-size: 15px; }

  /* Main column */
  .main { height: 100dvh; }
  .topbar { display: none; }

  .mobile-topbar { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px; position: sticky; top: 0; z-index: 30; }
  .mt-btn { background: transparent; border: none; color: #fff; font-size: 21px; line-height: 1; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; }
  .mt-btn:active { background: var(--navy-3); }
  .mt-title { flex: 1; font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; }

  .mobile-search { display: block; background: var(--navy); padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height .2s, padding .2s; }
  .mobile-search.open { max-height: 70px; padding: 0 14px 12px; }
  .mobile-search input { width: 100%; border: none; border-radius: 10px; padding: 12px 14px; font-size: 16px; }

  .content { padding: 14px 14px calc(88px + env(safe-area-inset-bottom)); }

  /* Type filter as a horizontal scroll strip */
  .mobile-filterbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mobile-filterbar::-webkit-scrollbar { display: none; }
  .mobile-filterbar .pill { flex: 0 0 auto; padding: 9px 16px; font-size: 14px; }

  /* Stats: compact horizontal scroller */
  .stats { flex-wrap: nowrap; overflow-x: auto; gap: 10px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .stats::-webkit-scrollbar { display: none; }
  .stat { flex: 0 0 auto; min-width: 104px; padding: 11px 15px; }
  .stat .n { font-size: 21px; }

  /* Stage chips - the mobile "column switcher" */
  .stage-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .stage-chips::-webkit-scrollbar { display: none; }
  .schip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 10px 15px; border-radius: 30px; font-size: 14px; font-weight: 600; }
  .schip i { font-style: normal; font-size: 12px; background: var(--line); color: var(--ink); border-radius: 20px; padding: 1px 8px; min-width: 20px; text-align: center; }
  .schip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
  .schip.active i { background: var(--brass); color: var(--navy); }

  /* Board -> single vertical list */
  .board { display: block; overflow: visible; padding-bottom: 0; }
  .mobile-list { display: flex; flex-direction: column; gap: 12px; }
  .card { padding: 15px; border-radius: 13px; }
  .card .name { font-size: 16px; }
  .card .meta { font-size: 13px; }
  .card select { font-size: 14px; padding: 9px 8px; max-width: none; flex: 1; }
  .card .selrow { gap: 8px; }
  .card-call { display: inline-flex; align-items: center; }

  /* Detail drawer -> full screen sheet */
  .drawer { width: 100vw; max-width: 100vw; }
  .drawer .dh { padding: calc(16px + env(safe-area-inset-top)) 18px 16px; }
  .drawer .dh .x { font-size: 30px; width: 40px; height: 40px; }
  .dsec { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); }
  .fgrid { gap: 12px 12px; }
  .f input, .f select, .f textarea { font-size: 16px; padding: 11px 12px; }
  .noterow input { font-size: 16px; padding: 11px 12px; }

  /* New-job modal -> full screen */
  .modal-bg { place-items: stretch; }
  .modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; display: flex; flex-direction: column; }
  .modal .mh { padding: calc(16px + env(safe-area-inset-top)) 20px 16px; }
  .modal .mb { flex: 1; overflow-y: auto; }
  .modal .mf { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .modal .mf .btn { flex: 1; padding: 14px; }
  .modal .f input, .modal .f select { font-size: 16px; padding: 11px 12px; }

  /* Bottom tab bar */
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(251,250,247,.96); backdrop-filter: saturate(1.4) blur(8px);
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav { flex: 1; background: transparent; border: none; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .2px; }
  .bnav .bic { font-size: 20px; line-height: 1; }
  .bnav.active { color: var(--navy); }
  .bnav.active .bic { color: var(--brass); }
  .bnav.new .bic { background: var(--brass); color: var(--navy); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; margin-top: -2px; box-shadow: 0 4px 12px rgba(201,166,69,.4); }
  .bnav.new { color: var(--navy); }
  .bnav { position: relative; }
  .bnav-badge { position: absolute; top: 4px; right: 50%; transform: translateX(14px); min-width: 16px; height: 16px; padding: 0 4px; background: var(--red); color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

  /* Agenda (mobile calendar) */
  .agenda-head { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--navy); margin: 2px 0 14px; }
  .agenda-day { margin-bottom: 18px; }
  .agenda-date { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); margin-bottom: 8px; padding-left: 2px; }
  .agenda-ev { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--slate); border-radius: 11px; padding: 13px 14px; margin-bottom: 9px; box-shadow: var(--shadow); }
  .agenda-ev.material { border-left-color: var(--material); }
.agenda-ev.install { border-left-color: var(--brass); }
.agenda-ev.gutter { border-left-color: #3E7B5E; }
  .ae-time { font-weight: 700; color: var(--navy); font-size: 13px; min-width: 62px; }
  .ae-title { flex: 1; font-weight: 600; font-size: 14px; }
  .ae-type { font-size: 11px; color: var(--muted); }
}

/* Small phones */
@media (max-width: 400px) {
  .stat { min-width: 96px; }
  .mt-title { font-size: 18px; }
}

/* ---------- Inspections (Meta-glasses AI adjustment report) ---------- */
.ai-tag { display:inline-block; background:var(--brass); color:var(--navy); font-size:10px; font-weight:800;
  letter-spacing:.06em; padding:2px 6px; border-radius:5px; vertical-align:middle; margin:0 2px; }
.insp-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--paper);
  margin-top:12px; overflow:hidden; }
.insp-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px;
  padding:12px 14px; border-bottom:1px solid var(--line); background:var(--cream); }
.insp-title b { display:block; font-size:14px; color:var(--ink); }
.insp-meta { font-size:12px; color:var(--muted); }
.insp-del { border:none; background:none; font-size:22px; line-height:1; color:var(--muted); cursor:pointer; padding:0 2px; }
.insp-del:hover { color:var(--red); }

.insp-progress { display:flex; align-items:center; gap:10px; padding:16px 14px 4px; font-weight:600; color:var(--ink); }
.insp-sub { padding:0 14px 14px; margin:2px 0 0; font-size:12px; color:var(--muted); }
.insp-spin { width:16px; height:16px; border:2px solid var(--line); border-top-color:var(--brass);
  border-radius:50%; animation:inspspin .8s linear infinite; }
@keyframes inspspin { to { transform:rotate(360deg); } }
.insp-error { margin:14px; padding:10px 12px; background:#fdecea; border:1px solid #f5c6cb; border-radius:8px;
  color:var(--red); font-size:13px; }
.insp-reprocess { margin:0 14px 14px; }

.insp-report { padding:14px; }
.insp-summary { font-size:14px; line-height:1.5; color:var(--ink); margin-bottom:12px; }
.insp-items { display:flex; flex-direction:column; gap:8px; }
.insp-item { display:flex; gap:9px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.insp-item b { font-size:13px; color:var(--ink); text-transform:capitalize; }
.insp-detail { font-size:12.5px; color:var(--muted); margin-top:2px; line-height:1.45; }
.sev-dot { width:9px; height:9px; border-radius:50%; margin-top:5px; flex:0 0 auto; background:var(--muted); }
.sev-severe .sev-dot { background:var(--red); }
.sev-moderate .sev-dot { background:var(--amber); }
.sev-minor .sev-dot { background:var(--green); }
.insp-scope { margin-top:12px; font-size:13px; }
.insp-scope b { color:var(--ink); }
.insp-scope ul { margin:6px 0 0; padding-left:18px; color:var(--ink); }
.insp-scope li { margin:3px 0; line-height:1.4; }
.insp-tr { margin-top:12px; }
.insp-tr summary { cursor:pointer; font-size:13px; color:var(--slate); font-weight:600; }
.insp-tr-body { margin-top:8px; font-size:12.5px; line-height:1.55; color:var(--muted); background:var(--cream);
  padding:10px 12px; border-radius:8px; max-height:220px; overflow:auto; }
.insp-actions { margin-top:12px; display:flex; gap:8px; flex-wrap:wrap; }

.insp-frames-head { padding:12px 14px 0; font-size:12px; color:var(--muted); }
.insp-frames { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:10px; padding:10px 14px 14px; }
.insp-frame { border:1px solid var(--line); border-radius:8px; overflow:hidden; background:#fff; transition:opacity .15s; }
.insp-frame.flagged { border-color:var(--amber); box-shadow:0 0 0 1px var(--amber) inset; }
.insp-frame.dropped { opacity:.4; filter:grayscale(1); }
.insp-frame-img { position:relative; aspect-ratio:4/3; background:var(--navy); }
.insp-frame-img img { width:100%; height:100%; object-fit:cover; display:block; cursor:zoom-in; }
.insp-keep { position:absolute; top:6px; left:6px; width:26px; height:26px; border-radius:6px;
  background:rgba(13,13,26,.6); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.insp-keep input { width:16px; height:16px; accent-color:var(--brass); cursor:pointer; }
.insp-badge { position:absolute; bottom:6px; right:6px; font-size:10px; font-weight:700; padding:2px 6px; border-radius:4px; color:#fff; }
.insp-badge.manual { background:var(--slate); }
.insp-badge.flag { background:var(--amber); color:var(--navy); left:6px; right:auto; }
.insp-frame-cap { display:flex; align-items:center; gap:6px; padding:6px 7px; }
.insp-ts { font-size:11px; font-weight:700; color:var(--brass); flex:0 0 auto; }
.insp-caption { flex:1; min-width:0; border:none; border-bottom:1px dashed var(--line); font-size:12px;
  color:var(--ink); padding:2px 0; background:none; }
.insp-caption:focus { outline:none; border-bottom-color:var(--brass); }

/* ---------- Warehouse / Inventory ---------- */
.inv-loading,.inv-empty{padding:30px;text-align:center;color:var(--muted);font-size:14px}
.inv-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.inv-stats{display:flex;gap:10px}
.inv-stat{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:9px 16px;text-align:center;min-width:88px}
.inv-stat b{display:block;font-size:22px;color:var(--ink);font-family:'Playfair Display',serif;line-height:1.1}
.inv-stat span{font-size:10.5px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.inv-stat.low b{color:var(--red)}
.inv-actions{display:flex;gap:8px}
.inv-reorder{background:#fdf6e9;border:1px solid var(--amber);border-radius:10px;padding:10px 14px;font-size:13px;color:var(--ink);margin-bottom:16px}
.inv-reorder b{color:#a76f00}
.inv-unit{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:16px;overflow:hidden}
.inv-unit-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--cream);border-bottom:1px solid var(--line)}
.inv-unit-head h3{margin:0;font-size:15px;color:var(--ink)}
.inv-count{display:inline-block;background:var(--navy);color:#fff;font-size:11px;padding:1px 7px;border-radius:9px;margin-left:4px}
.inv-unit-tools{display:flex;gap:6px;align-items:center}
.inv-additem-btn{border:1px solid var(--brass);background:none;color:#a5822f;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:600;cursor:pointer}
.inv-additem-btn:hover{background:var(--brass);color:var(--navy)}
.inv-unit-del{border:none;background:none;color:var(--muted);font-size:20px;cursor:pointer;line-height:1}
.inv-unit-del:hover{color:var(--red)}
.inv-table{padding:4px 8px 8px}
.inv-row{display:grid;grid-template-columns:1fr 104px 80px 132px 54px;align-items:center;gap:8px;padding:8px}
.inv-hrow{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--line)}
.inv-item{border-bottom:1px solid var(--line)}
.inv-item:last-child{border-bottom:none}
.inv-item.low{background:#fdeceb}
.inv-name{font-size:13.5px;color:var(--ink);font-weight:500}
.inv-pallet{display:inline-block;font-size:10px;color:var(--slate);background:#eef4f7;padding:1px 6px;border-radius:4px;margin-left:6px}
.inv-qty b{font-size:15px;color:var(--ink)}
.inv-lowtag{background:var(--red);color:#fff;font-size:9px;font-weight:700;padding:1px 5px;border-radius:4px;margin-left:4px;vertical-align:middle}
.inv-reorder-at{font-size:13px;color:var(--muted);text-align:center}
.inv-adjust{display:flex;align-items:center;gap:4px}
.inv-adjust button{width:26px;height:26px;border-radius:6px;border:1px solid var(--line);background:#fff;font-size:16px;font-weight:700;cursor:pointer;line-height:1;display:flex;align-items:center;justify-content:center}
.inv-pull{color:var(--red)}.inv-pull:hover{background:#fdeceb;border-color:var(--red)}
.inv-add{color:var(--green)}.inv-add:hover{background:#eafaf0;border-color:var(--green)}
.inv-delta{width:44px;text-align:center;border:1px solid var(--line);border-radius:6px;padding:4px;font-size:13px}
.inv-rowtools{display:flex;gap:2px;justify-content:flex-end}
.inv-rowtools button{border:none;background:none;color:var(--muted);font-size:15px;cursor:pointer;padding:2px 4px}
.inv-rowtools button:hover{color:var(--ink)}
.inv-emptyrow{color:var(--muted);font-size:13px;padding:12px 8px;grid-template-columns:1fr}
.inv-form{display:flex;flex-wrap:wrap;gap:8px;padding:12px 8px;background:var(--cream);border-radius:8px;margin-top:6px;align-items:center}
.inv-form input,.inv-form select{border:1px solid var(--line);border-radius:6px;padding:7px 9px;font-size:13px;background:#fff}
.inv-form .if-name{flex:1;min-width:180px}
.inv-form .if-qty{width:70px}
.inv-form .if-pallet,.inv-form .if-reorder{width:130px}
.inv-histpanel{display:block;background:var(--cream);border-radius:6px;padding:8px 12px;margin:0 8px 8px}
.inv-move{font-size:12.5px;color:var(--ink);padding:3px 0;display:flex;align-items:center;gap:8px}
.inv-mv{font-weight:700;min-width:36px;display:inline-block}
.inv-mv.in{color:var(--green)}.inv-mv.out{color:var(--red)}
.inv-move-meta{color:var(--muted);font-size:11px;margin-left:auto}
@media (max-width:640px){
  .inv-row{grid-template-columns:1fr auto;grid-row-gap:6px}
  .inv-hrow,.inv-item .inv-reorder-at{display:none}
  .inv-adjust{grid-column:1 / -1;justify-content:flex-start}
  .inv-rowtools{grid-column:2;grid-row:1}
}

/* ============================================================
   POLISH PASS - audit fixes (mobile stacking, focus, tap targets, iOS zoom)
   ============================================================ */

/* CRITICAL: the fixed bottom tab bar was painting over open drawers/modals on
   phones, so their buttons (Create Job, Add note, Delete) were unreachable.
   Hide it whenever any overlay surface is open. */
body:has(.drawer.open) .bottom-nav,
body:has(.modal-bg.open) .bottom-nav,
body:has(.lightbox.open) .bottom-nav { display: none !important; }

/* Visible keyboard focus on every interactive control (was missing entirely) */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-radius: 6px;
}
/* Sidebar role text stays legible on the dark sidebar after the muted darkening */
.side-foot .who small { color: var(--muted-soft); }
.nav a { color: #c3c3d6; } /* slightly brighter idle nav for AA on navy */
.agenda-ev.gutter { border-left-color: var(--gutter); }

@media (max-width: 820px) {
  /* Fallback for browsers without :has(): keep overlays above the nav by z-index. */
  .drawer { z-index: 65; }
  .modal-bg { z-index: 70; }

  /* iOS zooms the viewport when a focused input is < 16px. Bump the ones the
     mobile block missed (inventory, inspection caption, card + estimate inputs). */
  .inv-delta, .inv-form input, .inv-form select, .insp-caption,
  .card select, .est-table input, .est-tax input { font-size: 16px; }

  /* Warehouse controls were 26px / 20px - too small for a gloved thumb in the field. */
  .inv-adjust { gap: 8px; }
  .inv-adjust button { width: 40px; height: 40px; font-size: 20px; }
  .inv-delta { width: 54px; }
  .inv-rowtools button { min-width: 40px; min-height: 40px; }
}

/* Branded toast/snackbar (replaces silent success + some native alerts) */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(13,13,26,.3); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(10px);
  transition: opacity .2s, transform .2s; pointer-events: auto; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast .toast-act { background: var(--brass); color: var(--navy); border: none; border-radius: 6px;
  padding: 5px 11px; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; }
@media (max-width: 820px) { .toast-wrap { bottom: calc(78px + env(safe-area-inset-bottom)); } }

/* Consistent branded loading + error states for any view */
.view-state { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.view-state .spin { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--brass);
  border-radius: 50%; animation: inspspin .8s linear infinite; margin: 0 auto 12px; }
.view-state.err { color: var(--red); }
.view-state .retry { margin-top: 12px; }

/* Estimate builder: stack line items on phones so the Description field is usable */
@media (max-width: 560px) {
  .est-table thead { display: none; }
  .est-table, .est-table tbody, .est-table tr, .est-table td { display: block; width: auto; }
  .est-table tr { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
  .est-table td { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
  .est-table td::before { content: attr(data-label); flex: 0 0 62px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
  .est-table td input { flex: 1; width: auto; font-size: 16px; }
  .est-table td.amt { justify-content: flex-start; font-weight: 700; color: var(--navy); }
  .est-table td.rowdel-cell { justify-content: flex-end; padding-top: 2px; }
  .est-table td.rowdel-cell::before { display: none; }
  .est-table .rowdel { min-width: 40px; min-height: 40px; }
}

/* ---------- Roof Inspections inbox (Meta-glasses ingest) ---------- */
.ib-top { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:14px; }
.ib-intro { flex:1; min-width:240px; margin:0; font-size:13.5px; color:var(--ink); line-height:1.5; max-width:640px; }
.ib-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ib-warn { background:#fdf6e9; border:1px solid var(--amber); border-radius:10px; padding:10px 14px; font-size:13px; color:#8a5a00; margin-bottom:12px; }
.ib-empty { text-align:center; }
.ib-empty-ic { font-size:40px; }
.ib-empty p { max-width:520px; margin:10px auto; }
.ib-list { display:flex; flex-direction:column; gap:14px; }
.ib-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--paper); overflow:hidden; box-shadow:var(--shadow); }
.ib-head { display:flex; align-items:center; gap:14px; padding:12px 14px; border-bottom:1px solid var(--line); background:var(--cream); }
.ib-vid { flex:0 0 auto; width:150px; height:88px; border-radius:8px; overflow:hidden; background:var(--navy); }
.ib-vid video { width:100%; height:100%; object-fit:cover; display:block; }
.ib-metawrap { flex:1; min-width:0; }
.ib-name { display:block; font-size:14px; color:var(--ink); }
.ib-del { border:none; background:none; font-size:22px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px; align-self:flex-start; }
.ib-del:hover { color:var(--red); }
.ib-tr { margin:12px 14px 0; }
.ib-tr summary { cursor:pointer; font-size:13px; color:var(--slate); font-weight:600; }
.ib-tr-body { margin-top:8px; font-size:12.5px; line-height:1.55; color:var(--muted); background:var(--cream); padding:10px 12px; border-radius:8px; max-height:180px; overflow:auto; }
.ib-match { padding:12px 14px 14px; }
.ib-match-lead { font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:8px; }
.ib-conf { text-transform:none; letter-spacing:0; font-weight:700; font-size:11px; padding:2px 8px; border-radius:20px; margin-left:6px; }
.ib-conf.hi { background:#eafaf0; color:#1E8E4E; }
.ib-conf.mid { background:#eef4f7; color:#3B6F8A; }
.ib-attach.btn.brass { width:100%; text-align:center; }
.ib-others { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.ib-alt { border:1px solid var(--line); background:#fff; border-radius:8px; padding:8px 12px; font-size:12.5px; color:var(--ink); cursor:pointer; font-family:inherit; }
.ib-alt:hover { border-color:var(--slate); background:var(--cream); }
.ib-pick { margin-top:12px; }
/* Photo Inbox: texted-in photos */
.pi-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:6px; padding:12px; }
.pi-thumb { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; border:1px solid var(--line); background:var(--cream); }
.pi-del { margin-left:auto; background:none; border:none; font-size:22px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px; }
.pi-del:hover { color:var(--red); }
.pi-search { width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:13px; font-family:inherit; }
.pi-results { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.pi-nums { display:flex; flex-wrap:wrap; gap:8px; }
.pi-num { display:inline-flex; align-items:center; gap:6px; background:var(--cream); border:1px solid var(--line); border-radius:20px; padding:5px 6px 5px 12px; font-size:12.5px; }
.pi-numx { background:none; border:none; font-size:16px; line-height:1; color:var(--muted); cursor:pointer; }
.pi-numx:hover { color:var(--red); }
.ib-search { width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px; font-size:13px; font-family:inherit; }
.ib-search:focus { outline:none; border-color:var(--slate); box-shadow:var(--focus-ring); }
.ib-results { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
.ib-results .ib-alt { text-align:left; }

/* Glasses setup modal */
.gs-modal .mb { max-height:70vh; overflow-y:auto; }
.gs-lead { font-size:13.5px; color:var(--ink); line-height:1.5; margin:0 0 16px; }
.gs-field { margin-bottom:14px; }
.gs-field > label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); font-weight:600; margin-bottom:5px; }
.gs-field code { font-size:12px; }
.gs-copyrow { display:flex; align-items:stretch; gap:8px; }
.gs-copyrow code { flex:1; min-width:0; background:var(--navy); color:#e8e8f4; padding:9px 11px; border-radius:8px; font-family:'JetBrains Mono',ui-monospace,monospace; overflow-x:auto; white-space:nowrap; }
.gs-copy { flex:0 0 auto; }
.gs-steps { margin:6px 0 14px; padding-left:20px; font-size:13px; color:var(--ink); line-height:1.6; }
.gs-steps li { margin:7px 0; }
.gs-steps ul { margin:5px 0; padding-left:18px; }
.gs-steps code { background:var(--cream); padding:1px 5px; border-radius:4px; font-size:12px; }
.gs-tip { background:var(--cream); border-left:3px solid var(--brass); padding:10px 12px; border-radius:6px; font-size:12.5px; color:var(--ink); line-height:1.5; }
.gs-rotate { margin-top:14px; color:var(--red); border-color:#f0c8c4; }
@media (max-width:640px){
  .ib-head { flex-wrap:wrap; }
  .ib-vid { width:100%; height:160px; }
}

/* ---------- AI Copilot panel ---------- */
.cop-overlay { position: fixed; inset: 0; background: rgba(13,13,26,.4); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 88; }
.cop-overlay.open { opacity: 1; pointer-events: auto; }
.cop-panel { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: 420px; max-width: 96vw; background: var(--paper);
  box-shadow: -12px 0 40px rgba(13,13,26,.24); transform: translateX(100%); transition: transform .22s ease; z-index: 89; display: flex; flex-direction: column; }
.cop-panel.open { transform: translateX(0); }
.cop-head { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; padding-top: calc(16px + env(safe-area-inset-top)); }
.cop-title b { font-size: 17px; font-family: 'Playfair Display', serif; }
.cop-title span { display: block; color: var(--brass); font-size: 11.5px; margin-top: 2px; }
.cop-x { background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.cop-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }
.cop-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: normal; position: relative; }
.cop-msg.user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; }
.cop-msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow); }
.cop-msg.ai strong { color: var(--navy); }
.cop-msg.ai ul { margin: 6px 0; padding-left: 18px; } .cop-msg.ai li { margin: 3px 0; }
.cop-msg.ai code { background: var(--cream); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.cop-msg.cop-err { background: #fdeceb; border-color: #f5c6cb; color: var(--red); }
.cop-copy { display: inline-block; margin-top: 8px; background: var(--cream); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cop-copy:hover { color: var(--ink); border-color: var(--slate); }
.cop-dots { display: inline-flex; gap: 4px; }
.cop-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: copbounce 1.2s infinite; }
.cop-dots i:nth-child(2) { animation-delay: .18s; } .cop-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes copbounce { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.cop-welcome { text-align: center; margin: auto 0; padding: 10px; }
.cop-hi { font-size: 40px; }
.cop-welcome p { color: var(--ink); font-size: 13.5px; line-height: 1.55; max-width: 320px; margin: 10px auto 16px; }
.cop-sugg { display: flex; flex-direction: column; gap: 8px; }
.cop-chip { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--ink); cursor: pointer; font-family: inherit; text-align: left; }
.cop-chip:hover { border-color: var(--brass); background: var(--cream); }
/* Agentic Copilot: actions taken + confirm-before-destructive card */
.cop-actions { margin-top: 9px; display: flex; flex-direction: column; gap: 4px; }
.cop-act { font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: var(--cream); border: 1px solid var(--line); }
.cop-act.ok { color: #1a7a4a; border-color: #bfe3cf; background: #f0faf4; }
.cop-act.bad { color: var(--red); border-color: #f5c6cb; background: #fdeceb; }
.cop-act-err { opacity: .8; }
.cop-confirm { margin-top: 10px; border: 1px solid var(--brass); border-radius: 12px; background: linear-gradient(180deg, #fffdf5, #fff); padding: 12px 13px; box-shadow: var(--shadow); }
.cop-confirm .cc-h { font-weight: 700; color: var(--navy); font-size: 13px; margin-bottom: 6px; }
.cop-confirm .cc-steps { margin: 0 0 10px; padding-left: 18px; }
.cop-confirm .cc-steps li { margin: 4px 0; font-size: 13px; color: var(--ink); line-height: 1.45; }
.cop-confirm .cc-btns { display: flex; gap: 8px; }
.cop-confirm .cc-go { background: var(--brass); color: var(--navy); border: none; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.cop-confirm .cc-go:hover { background: var(--brass-2); }
.cop-confirm .cc-no { background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.cop-confirm .cc-no:hover { color: var(--ink); border-color: var(--slate); }
.cop-confirm .cc-done { font-size: 13px; color: var(--muted); padding: 2px; }
.cop-confirm .cc-done.bad { color: var(--red); }
/* Status pill modifiers (used by QuickBooks billing + integrations panel) */
.pill.good { background: #eafaf1; border-color: #bfe6cf; color: #1a7a4a; padding: 3px 10px; font-size: 11.5px; }
.pill.warn { background: #fff7e6; border-color: #f0dca8; color: #9a6b00; padding: 3px 10px; font-size: 11.5px; }
.pill.bad { background: #fdeceb; border-color: #f5c6cb; color: var(--red); padding: 3px 10px; font-size: 11.5px; }
/* QuickBooks billing block in the job drawer */
.qbo-badge { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: #2ca01c; border: 1px solid #bfe6cf; background: #eafaf1; padding: 2px 6px; border-radius: 20px; margin-left: 6px; vertical-align: middle; }
.qbo-list { display: flex; flex-direction: column; gap: 8px; }
.qbo-inv { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.qbo-line { display: flex; justify-content: space-between; align-items: baseline; }
.qbo-line b { color: var(--ink); font-size: 13.5px; }
.qbo-total { font-weight: 700; color: var(--navy); }
.qbo-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.qbo-date { font-size: 11.5px; color: var(--muted); }
.qbo-sum { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }
/* QuickBooks integrations panel (Team view) */
.qbo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qbo-head b { font-size: 14.5px; color: var(--ink); }
.cop-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.cop-input textarea { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font-size: 16px; font-family: inherit; resize: none; max-height: 130px; line-height: 1.4; color: var(--ink); }
.cop-input textarea:focus { outline: none; border-color: var(--slate); box-shadow: var(--focus-ring); }
.cop-send { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--brass); color: var(--navy); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.cop-send:hover { background: var(--brass-2); }
@media (max-width: 820px) { .cop-panel { width: 100vw; max-width: 100vw; } }

/* ---------- Google Reviews ---------- */
.rv-config { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.rv-config .withbtn input:disabled { background: var(--cream); color: var(--muted); }
.rv-toggle { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 13.5px; color: var(--ink); cursor: pointer; line-height: 1.45; }
.rv-toggle input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--brass); flex: 0 0 auto; }
.rv-list { display: flex; flex-direction: column; gap: 8px; }
.rv-row { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; }
.rv-info { flex: 1; min-width: 0; }
.rv-info b { display: block; font-size: 14px; color: var(--ink); }
.rv-act { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.rv-sent { font-size: 12.5px; color: var(--green); font-weight: 600; }
@media (max-width: 560px) { .rv-row { flex-wrap: wrap; } .rv-act { width: 100%; justify-content: flex-start; } }

/* Copilot mic + header buttons + SMS setup */
.cop-head-btns { display: flex; align-items: center; gap: 6px; }
.cop-icon-btn { background: rgba(255,255,255,.12); border: none; color: #fff; width: 34px; height: 34px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.cop-icon-btn:hover { background: rgba(255,255,255,.22); }
.cop-mic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.cop-mic:hover { border-color: var(--slate); }
.cop-mic.listening { background: var(--red); border-color: var(--red); animation: micpulse 1s infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.4); } 50% { box-shadow: 0 0 0 6px rgba(192,57,43,0); } }
.cs-nums { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-num { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 4px 6px 4px 12px; font-size: 13px; }
.cs-num button { background: none; border: none; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.cs-num button:hover { color: var(--red); }

/* Notes input above the activity feed - give it room */
.dsec .noterow { margin-bottom: 12px; }
/* Photo gallery: comfortable thumbs, clean wrap (fixes the nested-grid overflow) */
#fileGrid .file-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

/* Inspection draft estimate (in-CRM panel) */
.insp-estimate { margin-top: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.insp-estimate > b { display: block; color: var(--navy); margin-bottom: 8px; font-size: 13.5px; }
.ie-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ie-desc { flex: 1; min-width: 0; } .ie-asm { font-size: 9px; background: #fdf3d6; color: #8a6d1a; padding: 1px 6px; border-radius: 10px; }
.ie-qty { color: var(--muted); font-size: 12px; white-space: nowrap; } .ie-tot { font-weight: 700; color: var(--navy); white-space: nowrap; min-width: 68px; text-align: right; }
.ie-total { display: flex; justify-content: space-between; background: var(--navy); color: #fff; border-radius: 7px; padding: 8px 12px; margin-top: 9px; font-weight: 700; } .ie-total b { color: var(--brass); }
.ie-disc { font-size: 11px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ---------- Sales activity tracker ---------- */
.act-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 10px; margin-bottom: 14px; }
.act-btn { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font-family: inherit; transition: transform .12s, border-color .12s, box-shadow .12s; }
.act-btn:hover { border-color: var(--brass); }
.act-btn:active { transform: scale(.95); }
.act-btn.bump { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,166,69,.28); }
.act-ic { font-size: 22px; line-height: 1; }
.act-lbl { font-size: 12px; color: var(--ink); font-weight: 600; text-align: center; }
.act-cnt { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--navy); }
.act-today { font-size: 14px; color: var(--ink); margin-bottom: 18px; } .act-today b { color: var(--navy); font-size: 17px; font-family: 'Playfair Display', serif; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 14px; }
.act-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 15px; box-shadow: var(--shadow); }
.act-card h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 14.5px; margin-bottom: 10px; }
.aw-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; } .aw-row b { color: var(--navy); }
.aw-tot { margin-top: 10px; font-size: 13px; color: var(--muted); } .aw-tot b { color: var(--brass); font-size: 16px; }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 14px; }
.trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 4px; }
.trend-bar { width: 68%; background: var(--brass); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; display: flex; justify-content: center; }
.trend-n { position: absolute; top: -15px; font-size: 10px; color: var(--muted); font-weight: 600; }
.trend-d { font-size: 9.5px; color: var(--muted); }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.lb-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 11px; flex: 0 0 auto; }
.lb-row:first-child .lb-rank { background: var(--brass); }
.lb-name { flex: 1; } .lb-row b { color: var(--navy); }
@media (max-width: 560px) { .act-quick { grid-template-columns: repeat(3, 1fr); } }

/* Turn-into-estimate button (inspection draft) */
.ie-create { width: 100%; margin-top: 12px; }

/* ---------- Owner lookup ---------- */
.lk-search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 560px; }
.lk-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink); }
.lk-search input:focus { outline: none; border-color: var(--slate); box-shadow: var(--focus-ring); }
.lk-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px; max-width: 560px; box-shadow: var(--shadow); }
.lk-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lk-score { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--brass); display: grid; place-items: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; flex: 0 0 auto; }
.lk-score-lbl { font-size: 13px; color: var(--navy); font-weight: 700; }
.lk-cov { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.lk-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lk-row:last-child { border-bottom: none; }
.lk-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto; }
.lk-row b { text-align: right; color: var(--ink); }
.lk-occ { color: var(--green); } .lk-abs { color: #C8912B; }

/* Owner lookup - address autocomplete */
.lk-inwrap { position: relative; flex: 1; }
.lk-inwrap input { width: 100%; }
.lk-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 40; overflow: hidden; display: none; }
.lk-suggest.open { display: block; }
.lk-sug { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; text-align: left; padding: 9px 13px; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; font-family: inherit; }
.lk-sug:last-child { border-bottom: none; }
.lk-sug:hover { background: rgba(0,0,0,.04); }
.lk-sug b { font-size: 14px; color: var(--ink); font-weight: 600; }
.lk-sug span { font-size: 11.5px; color: var(--muted); }

/* ---------- Warehouse QR scanner + deep-link flash ---------- */
.scan-overlay { position: fixed; inset: 0; background: rgba(10,10,20,.85); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.scan-box { background: var(--paper); border-radius: 16px; overflow: hidden; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.scan-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-size: 15px; font-weight: 600; }
.scan-head button { background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; }
.scan-box video { width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; display: block; }
.scan-hint { padding: 12px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.inv-flash { animation: invFlash 2.2s ease; }
@keyframes invFlash { 0%, 100% { background: transparent; } 15%, 60% { background: rgba(200,145,43,.22); } }

/* Tap-to-email button (mirrors the phone Call button) */
.minibtn.email { color: var(--slate); }
.file-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- To-Do / tasks ---------- */
.tk-add { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.tk-add > input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); margin-bottom: 8px; }
.tk-add > input:focus, .tk-add-row input:focus, .tk-add-row select:focus { outline: none; border-color: var(--slate); box-shadow: var(--focus-ring); }
.tk-add-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tk-add-row select, .tk-add-row input { border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; }
.tk-add-row #tkLink { flex: 1; min-width: 130px; }
.tk-add-row .btn { margin-left: auto; }
.tk-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tk-chip { border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-family: inherit; cursor: pointer; }
.tk-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-item { display: flex; align-items: flex-start; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tk-item.done { opacity: .55; }
.tk-item.done .tk-title { text-decoration: line-through; }
.tk-check { flex: 0 0 auto; width: 24px; height: 24px; border: 2px solid var(--slate); border-radius: 7px; background: #fff; cursor: pointer; color: #fff; font-size: 15px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.tk-item.done .tk-check { background: var(--green); border-color: var(--green); }
.tk-body { flex: 1; min-width: 0; }
.tk-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.tk-detail { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 7px; }
.tk-who { font-size: 11.5px; font-weight: 700; color: var(--navy); background: rgba(0,0,0,.05); padding: 2px 9px; border-radius: 999px; }
.tk-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.tk-tag.high { color: #b3261e; background: rgba(179,38,30,.1); }
.tk-tag.low { color: var(--muted); background: rgba(0,0,0,.05); }
.tk-due { font-size: 12px; color: var(--muted); }
.tk-due.over { color: #b3261e; font-weight: 700; }
.tk-link { font-size: 12.5px; font-weight: 600; color: var(--slate); text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.tk-del { flex: 0 0 auto; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; padding: 0 2px; }
.tk-done-head { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 2px; font-weight: 700; }

/* ---------- Canvass map ---------- */
.cv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.cv-search { display: flex; gap: 8px; flex: 1; min-width: 200px; }
.cv-search input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; font-size: 15px; font-family: inherit; color: var(--ink); }
.cv-search input:focus { outline: none; border-color: var(--slate); box-shadow: var(--focus-ring); }
.cv-stats { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.cv-stats b { color: var(--navy); font-size: 16px; }
.cv-maprow { position: relative; }
#cvMap { width: 100%; height: 64vh; min-height: 400px; border-radius: 14px; border: 1px solid var(--line); z-index: 1; background: #e9e9ee; }
.cv-locate { position: absolute; right: 12px; bottom: 12px; z-index: 500; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--navy); color: var(--brass); font-size: 22px; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.28); }
.cv-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.cv-pop { font-family: 'Inter', sans-serif; min-width: 200px; }
.cv-pop-loading { color: #666; font-size: 13px; padding: 4px 0; }
.cv-pop-addr { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.cv-pop-owner { font-size: 14px; color: var(--ink); }
.cv-pop-owner.cv-muted { color: #777; font-style: italic; }
.cv-pop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.cv-pop-tags span { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cv-occ { color: var(--green); background: rgba(47,158,111,.12); }
.cv-abs { color: #C8912B; background: rgba(200,145,43,.12); }
.cv-score { color: var(--navy); background: rgba(0,0,0,.06); }
.cv-pop-inc { font-size: 12px; color: #666; margin-bottom: 6px; }
.cv-pop-loglbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #888; margin: 8px 0 4px; }
.cv-pop-log { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-log-btn { font-size: 12px; font-weight: 600; padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); font-family: inherit; }
.cv-log-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cv-del-pin { font-size: 12px; color: #b3261e; background: none; border: none; cursor: pointer; padding: 4px 0; font-family: inherit; }

/* ---- Sales/Commissions + Team views (Jul 14) ---- */
.r-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.r-stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; flex: 1; min-width: 140px; }
.r-stat b { display: block; font-size: 20px; color: var(--navy); font-family: 'Playfair Display', serif; }
.r-stat span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.rtbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtbl th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); }
.rtbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtbl tbody tr:last-child td { border-bottom: none; }
.rtbl td.r, .rtbl th.r { text-align: right; }
.rtbl .fnt, td.fnt { color: var(--muted); }
.fnt { color: var(--muted); font-size: 12px; }
.team-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.team-add input, .team-add select { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: inherit; }
.btn.sm { padding: 5px 10px; font-size: 12px; }

/* ---- Proposal builder ---- */
.pb-h { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--brass); margin: 18px 0 6px; }
.pb-sec { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.pb-sechd { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pb-sechd input { flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; font-weight: 600; }
.pb-item { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.pb-item input, .pb-item select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 8px; font-size: 13px; font-family: inherit; }
.pb-desc { flex: 1; min-width: 0; }
.pb-price { width: 84px; }
.pb-kind { width: 130px; }
.pb-grp { width: 120px; }

/* ---------- Damage mailers ---------- */
.ml-card { display: flex; flex-direction: column; gap: 10px; }
.ml-row { display: flex; gap: 14px; align-items: flex-start; }
.ml-thumb { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: 0 0 92px; border: 1px solid var(--line); }
.ml-nophoto { display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--panel-2, #f4f4f7); color: var(--muted); }
.ml-info { min-width: 0; flex: 1; }
.ml-addr { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ml-owner { font-size: 13px; margin: 3px 0 2px; }
.ml-chip { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 20px; letter-spacing: .3px; }
.ml-draft { background: rgba(91,107,140,.14); color: #5b6b8c; }
.ml-printed { background: rgba(31,122,166,.13); color: #1f7aa6; }
.ml-mailed { background: rgba(47,158,111,.14); color: #1f7a4d; }
.ml-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .ml-thumb { width: 72px; height: 72px; flex-basis: 72px; }
  .ml-actions .btn { flex: 1 1 auto; }
}
