/* Houzz Pro layout, mirrored for RTL. Black and white, with green only on positive amounts. */
:root { --pos: #1c8c45; }
body { background: #fff; font-size: 13px; line-height: 18px; font-family: Heebo, "Noto Naskh Arabic", "Noto Sans SC", "Noto Sans", Arial, sans-serif; }
html[lang="en"] body, html[lang="ru"] body { font-family: "Noto Sans", Arial, sans-serif; }
html[lang="zh-CN"] body { font-family: "Noto Sans SC", "Noto Sans", sans-serif; }
html[lang="ar"] body { font-family: "Noto Naskh Arabic", Heebo, sans-serif; }
#app { min-height: 100vh; background: #fff; }
h1 { font-size: 20px; line-height: 28px; font-weight: 600; }
h1:empty { display: none; }
h2 { font-size: 14px; line-height: 20px; font-weight: 600; }

.hz { display: flex; min-height: 100vh; background: #fff; }
.rail {
  width: 56px;
  flex: none;
  background: #1c1c1c;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 10px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 5;
}
.rail a, .rail button {
  width: 40px;
  height: 40px;
  margin: 2px 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}
.rail a.on, .rail a:hover, .rail button:hover { background: #333; }
.rail a.on { background: #fff; color: #111; }
.rail a.upgrade { color: #1faf78; }
.rail a.upgrade.on, .rail a.upgrade:hover { color: #1faf78; background: #333; }
.rail .grow { flex: 1; }
.rail svg { display: block; }
.rail .brand-mark { width: 40px; height: 40px; margin-bottom: 8px; background: #fff; border-radius: 8px; }
.rail .brand-mark img, .avatar-btn img { width: 28px; height: 28px; object-fit: contain; display: block; }
.avatar-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: #111; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; overflow: hidden;
}
.avatar-btn.salmon, .dash-who .avatar-btn.salmon { background: #f0a8a0; color: #fff; }

.sub {
  width: 228px;
  flex: none;
  background: #fafafa;
  border-inline-start: 1px solid #eee;
  padding: 18px 10px 24px;
  font-size: 13px;
}
.sub .sec { margin: 14px 10px 4px; color: #888; font-size: 12px; font-weight: 600; }
.sub button, .sub a.sublink {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  text-align: start;
  cursor: pointer;
  color: #222;
  text-decoration: none;
}
.sub button.on, .sub a.on, .sub button:hover, .sub a.sublink:hover { background: #eee; }
.sub .n { color: #888; font-size: 12px; }

.work { flex: 1; min-width: 0; padding: 18px 20px 72px; background: #fff; }
.work-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn, button.btn {
  min-height: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn.black, button.btn.black { background: #111; color: #fff; border-color: #111; }
.btn.ghost { background: #fff; }

.filterbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.filterbar select, .filterbar input {
  width: auto;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  background: #fff;
  padding: 0 12px;
  font-size: 13px;
}
.filterbar input[type="search"] { width: 240px; border-radius: 6px; }
.viewtog { margin-inline-start: auto; display: flex; background: #ececec; border-radius: 999px; padding: 2px; }
.viewtog button { height: 28px; min-height: 28px; border: 0; background: transparent; border-radius: 999px; padding: 0 10px; cursor: pointer; }
.viewtog button.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

.table-wrap { overflow: auto; border-top: 1px solid #eee; }
table.dense { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th .sort { background: transparent; border: 0; font: inherit; font-weight: 600; padding: 0; min-height: 0; cursor: pointer; color: inherit; }
th .sort.on { text-decoration: underline; }
.when { display: block; white-space: nowrap; }
.when .muted { display: block; font-size: 11px; }
.arrived { margin: 0 0 8px; color: #444; font-size: 13px; }
.dense th {
  position: sticky; top: 0;
  background: #fafafa;
  color: #777;
  font-weight: 500;
  font-size: 12px;
  text-align: start;
  padding: 8px;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}
.dense td { padding: 6px 8px; border-bottom: 1px solid #f2f2f2; white-space: nowrap; vertical-align: middle; height: 44px; }
.dense tr:hover td { background: #fafafa; }
.dense .sticky { position: sticky; inset-inline-start: 0; background: #fff; z-index: 2; min-width: 180px; }
.dense th.sticky { z-index: 3; background: #fafafa; }
.dense tr:hover .sticky { background: #fafafa; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.av {
  width: 22px; height: 22px; border-radius: 50%;
  background: #111; color: #fff; font-size: 11px; font-weight: 700;
  display: inline-grid; place-items: center;
}
.pos { color: var(--pos); }
.seg { display: inline-flex; background: #ececec; border-radius: 999px; padding: 3px; gap: 2px; margin-bottom: 12px; }
.seg button { border: 0; background: transparent; border-radius: 999px; min-height: 28px; height: 28px; padding: 0 14px; font: inherit; font-size: 13px; cursor: pointer; }
.seg button.on { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); font-weight: 600; }
.dense select, .sidebox select, .est-table select, .est-table input, .line input {
  width: auto; min-height: 28px; height: 28px; border: 0; background: transparent; padding: 0 4px; font-size: 13px;
}
.tag { border: 1px solid #ddd; border-radius: 10px; padding: 0 6px; font-size: 11px; line-height: 18px; color: #444; }

.board { display: flex; gap: 10px; overflow-x: auto; align-items: flex-start; padding-bottom: 12px; }
.col { width: 210px; flex: none; background: transparent; border: 0; min-height: 0; }
.col h3 { font-size: 12px; font-weight: 600; color: #666; margin: 0 0 8px; padding: 0; border: 0; }
.kcard {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 8px;
  cursor: grab;
  font-size: 13px;
}
.kcard b { font-size: 13px; font-weight: 600; }
.kcard .muted { display: block; }

.htabs { display: flex; gap: 4px; border-bottom: 1px solid #eee; margin-bottom: 14px; overflow-x: auto; }
.htabs button, .htabs a {
  border: 0; background: transparent; min-height: 36px; padding: 0 12px;
  font: inherit; font-size: 13px; color: #555; cursor: pointer; text-decoration: none;
  border-bottom: 2px solid transparent; white-space: nowrap; flex: 0 0 auto;
}
.htabs .on { color: #111; font-weight: 600; border-bottom-color: #111; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.widget { border: 1px solid #eee; border-radius: 8px; padding: 14px; margin-bottom: 12px; background: #fff; }
.widget .big { font-size: 28px; font-weight: 600; line-height: 34px; }
.sidebox { border: 1px solid #eee; border-radius: 8px; padding: 12px; font-size: 13px; background: #fff; }
.sidebox + .sidebox, .sidebox .blk { border-top: 1px solid #f2f2f2; margin-top: 10px; padding-top: 10px; }
.sidebox .lbl { color: #888; font-size: 12px; display: block; margin-bottom: 4px; }
.empty {
  color: #888; background: #fafafa; border-radius: 8px; padding: 28px 16px; text-align: center; font-size: 13px;
}
.banner { background: #111; color: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.banner.warn { background: #fff; color: #111; border: 1px solid #111; }
.shots { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.shots img { width: 120px; height: 90px; object-fit: cover; border: 1px solid #eee; background: #fafafa; display: block; }
figure.shot { margin: 0; width: 128px; height: auto; }
figure.shot figcaption, .file-name { font-size: 12px; margin-top: 4px; }
.tpls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tpl { border: 1px solid #111; background: #fff; color: #111; border-radius: 8px; padding: 10px 12px; text-align: start; min-width: 140px; }
.tpl b, .tpl span { display: block; }
.tpl span { font-weight: 400; color: #555; font-size: 12px; margin-top: 4px; }

.est-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.est-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.est-table th { font-size: 12px; color: #777; font-weight: 500; text-align: start; padding: 6px; border-bottom: 1px solid #eee; }
.est-table td { padding: 4px 6px; border-bottom: 1px solid #f3f3f3; }
.est-table input { width: 72px; }
.est-table input.wide { width: 100%; }
.item-cell { display: flex; gap: 4px; align-items: center; }
.item-cell input { flex: 1; min-width: 0; }
.item-cell button, .picker-field { min-height: 40px; border: 1px solid #111; background: #fff; color: #111; text-align: start; font: inherit; }
.picker-field { display: block; width: 100%; padding: 8px 12px; }
.item-picker-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); display: flex; }
.item-picker { background: #fff; color: #111; width: 100%; height: 100%; display: flex; flex-direction: column; }
.item-picker header { display: flex; align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid #111; }
.item-picker header h2 { margin: 0; font-size: 18px; flex: 1; }
.item-picker > input, .picker-custom input { min-height: 44px; border: 1px solid #111; padding: 8px 12px; font: inherit; background: #fff; color: #111; }
.item-picker > input { margin: 8px 12px; }
.picker-list { overflow: auto; flex: 1; }
.picker-cat, .picker-item { display: flex; width: 100%; text-align: start; background: #fff; color: #111; border: 0; border-bottom: 1px solid #eee; min-height: 48px; padding: 10px 14px; gap: 8px; align-items: center; justify-content: space-between; font: inherit; }
.picker-cat { font-weight: 700; border-bottom-color: #111; position: sticky; top: 0; }
.picker-item b, .picker-item .muted { display: block; }
.picker-item.on { background: #f4f4f4; }
.picker-custom { display: flex; gap: 8px; padding: 8px 12px; border-top: 1px solid #111; }
.picker-custom input { flex: 1; min-width: 0; }
@media (min-width: 861px) {
  .item-picker-wrap { align-items: center; justify-content: center; }
  .item-picker { width: min(640px, calc(100% - 48px)); height: min(84vh, 820px); border: 1px solid #111; }
}
.totals { width: 260px; margin-inline-start: auto; margin-top: 12px; font-size: 13px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { font-weight: 700; border-top: 1px solid #111; margin-top: 4px; padding-top: 8px; }
.cat-panel { border: 1px solid #eee; border-radius: 8px; padding: 10px; max-height: 70vh; overflow: auto; background: #fff; }
.cat-panel input, .cat-panel select { width: 100%; min-height: 32px; height: 32px; }
.cat-item, .cat-panel button.item {
  display: block; width: 100%; text-align: start; border: 0; background: transparent;
  border-bottom: 1px solid #f4f4f4; padding: 8px 2px; cursor: pointer; font: inherit; font-size: 13px;
}
.cat-item:hover { background: #fafafa; }
.gen { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 14px; }
.gen .box { border: 1px solid #eee; border-radius: 8px; min-height: 72px; padding: 10px; font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.card { border: 1px solid #eee; border-radius: 8px; padding: 12px; background: #fff; }
.card b { display: block; font-size: 22px; line-height: 28px; }
.muted { color: #777; font-size: 12px; }
.err { color: #b00020; }
.login { max-width: 380px; margin: 64px auto; border: 1px solid #eee; border-radius: 8px; padding: 24px; background: #fff; }
.login input { width: 100%; }

.hz.editor .sub, .hz.home .sub { display: none; }
.rail-menu { position: relative; }
.rail-menu summary { width: 40px; height: 40px; list-style: none; display: grid; place-items: center; cursor: pointer; border-radius: 8px; }
.rail-menu summary::-webkit-details-marker { display: none; }
.rail-menu summary:hover { background: #333; }
.rail-menu div { position: absolute; inset-inline-start: 48px; bottom: 0; background: #fff; color: #111; border: 1px solid #ddd; min-width: 140px; z-index: 8; }
.rail-menu a, .rail-menu button { width: 100% !important; height: auto !important; min-height: 36px; color: #111 !important; background: #fff !important; justify-content: flex-start; padding: 0 10px; }
.est-page { display: flex; align-items: flex-start; }
.est-main { flex: 1; min-width: 0; }
.crumb { color: #777; font-size: 12px; margin-bottom: 6px; }
.create-strip { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; border-bottom: 1px solid #eee; margin-bottom: 12px; }
.gen-card { display: grid; grid-template-columns: 140px 1.1fr 1fr; gap: 16px; border: 1px solid #eee; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.logo-drop { border: 1px dashed #ccc; border-radius: 6px; min-height: 96px; display: grid; place-items: center; color: #888; font-size: 12px; text-align: center; position: relative; overflow: hidden; }
.logo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.logo-drop img { max-width: 100%; max-height: 88px; }
.est-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 4px 0 10px; }
.est-title { font-size: 22px; font-weight: 600; border: 0; background: transparent; width: 100%; padding: 0; }
.est-meta { color: #777; font-size: 12px; white-space: nowrap; }
.cat-row td { background: #fafafa; font-weight: 600; }
.cat-row button { background: transparent; border: 0; font-weight: 600; padding: 0; min-height: 28px; }
.toolstrip { width: 72px; flex: none; border-inline-start: 1px solid #eee; display: flex; flex-direction: column; position: sticky; top: 0; background: #fff; }
.toolstrip button { width: 72px; height: auto; min-height: 64px; border: 0; border-bottom: 1px solid #f3f3f3; background: #fff; font-size: 10px; line-height: 1.2; padding: 8px 4px; }
.toolstrip button.on { background: #f4f4f4; }
.toolpanel { width: 240px; flex: none; border-inline-start: 1px solid #eee; padding: 10px; max-height: calc(100vh - 24px); overflow: auto; position: sticky; top: 0; background: #fff; }
.menu { position: relative; }
.menu-pop { position: absolute; inset-inline-end: 0; top: 36px; background: #fff; border: 1px solid #eee; border-radius: 6px; min-width: 180px; z-index: 6; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.menu-pop button, .menu-pop a { display: block; width: 100%; text-align: start; background: transparent; border: 0; min-height: 32px; padding: 6px 8px; text-decoration: none; color: inherit; }
.gantt { border: 1px solid #eee; border-radius: 8px; overflow: auto; }
.gantt-row { display: grid; grid-template-columns: 180px minmax(420px, 1fr); border-bottom: 1px solid #f3f3f3; min-height: 36px; align-items: center; }
.gantt-row b, .gantt-row span { padding: 0 8px; font-size: 12px; font-weight: 500; }
.gantt-track { position: relative; height: 36px; background: repeating-linear-gradient(to left, transparent, transparent calc(14.28% - 1px), #f3f3f3 calc(14.28% - 1px), #f3f3f3 14.28%); }
html[dir="ltr"] .gantt-track { background: repeating-linear-gradient(to right, transparent, transparent calc(14.28% - 1px), #f3f3f3 calc(14.28% - 1px), #f3f3f3 14.28%); }
.gantt-bar { position: absolute; top: 11px; height: 14px; background: #111; border-radius: 2px; }
.sch-phase { margin: 12px 0; padding: 8px 12px; background: #fff; }
.sch-phase header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sch-phase header input { font-weight: 700; min-width: 160px; }
.sch-task { display: grid; gap: 8px; grid-template-columns: minmax(140px, 1.4fr) repeat(4, minmax(90px, 1fr)); align-items: end; border-top: 1px solid #eee; padding: 8px 0; }
.sch-task label { display: grid; gap: 2px; font-size: 12px; color: #555; }
.sch-task input, .sch-task select { width: 100%; }
.sch-task .lag { width: 64px; }
.sch-strip { color: #fff; font-weight: 700; padding: 4px 8px; margin-top: 8px; }
.sch-base { position: absolute; top: 8px; height: 20px; border: 1px dashed #111; background: transparent; }
.sch .filterbar { margin-bottom: 12px; }
@media (max-width: 860px) {
  .sch-task { grid-template-columns: 1fr 1fr; }
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal.week { align-items: start; }
@media (max-width: 720px) {
  .cal.week { grid-template-columns: 1fr; }
}
.cal .day { min-height: 78px; border: 1px solid #eee; border-radius: 4px; padding: 4px; font-size: 11px; }
.cal .dow { min-height: 0; border: 0; color: #888; font-weight: 600; }
.profit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profit .big { font-size: 28px; font-weight: 600; line-height: 34px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.chips button { border: 1px solid #ddd; background: #fff; border-radius: 999px; min-height: 32px; padding: 0 10px; }
.chips button.on { background: #111; color: #fff; border-color: #111; }
.site-min { border: 1px solid #111; padding: 16px; max-width: 720px; }
.site-min img { width: 100%; max-height: 280px; object-fit: cover; margin: 12px 0; }
.dash-head, .dash-who { display: flex; align-items: center; gap: 10px; }
.dash-head { justify-content: space-between; width: 100%; }
.dash-who { min-width: 0; }
.dash-who b, .dash-who span { display: block; }
.dash-who span { color: #666; font-size: 12px; font-weight: 400; }
.dash-who .avatar-btn { width: 36px; height: 36px; flex: none; }
.start-card, .dash-block, .promo-card { border: 1px solid #eee; border-radius: 10px; padding: 14px; margin: 0 0 14px; background: #fff; }
.start-grid, .proj-grid, .create-grid { display: grid; gap: 12px; }
.start-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proj-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.start-item { display: grid; gap: 6px; justify-items: start; }
.start-item .illo { width: 72px; height: 56px; border-radius: 8px; display: block; }
.start-item.blue .illo { background: linear-gradient(135deg, #d7e6ff, #7aa2ff); }
.start-item.violet .illo { background: linear-gradient(135deg, #efe4ff, #b08cff); }
.start-item.amber .illo { background: linear-gradient(135deg, #ffe7bf, #f0b429); }
.start-item.green .illo { background: linear-gradient(135deg, #d9f5e3, #3cba6a); }
.proj-card { display: grid; gap: 4px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; padding-bottom: 10px; }
.proj-card .stripe { height: 8px; }
.proj-card b, .proj-card span, .proj-card em { padding: 0 10px; }
.proj-card em { justify-self: start; background: #eee; color: #444; border-radius: 10px; font-style: normal; font-size: 12px; padding: 2px 8px; }
.dash-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo-card { background: #F5F5F5; }
.new-tag { display: inline-block; background: #ffe14a; color: #111; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.week-strip { display: flex; gap: 6px; overflow-x: auto; margin: 8px 0; }
.week-day { min-width: 44px; text-align: center; color: #666; }
.week-day b { display: block; color: #111; }
.week-day.on { background: #111; color: #fff; border-radius: 16px; padding: 4px 0; }
.week-day.on b { color: #fff; }
.week-day .dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #d32f2f; margin: 2px auto 0; }
.todo-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f2f2f2; text-decoration: none; color: inherit; }
.todo-dot { width: 10px; height: 10px; border-radius: 3px; background: #2f6fed; flex: none; }
.date-pill { margin-inline-start: auto; background: #eee; color: #444; border-radius: 10px; padding: 2px 8px; font-size: 12px; }
.date-pill.today { background: #f8d7d2; color: #b42318; }
.create-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.create-grid a, .create-grid button { display: grid; justify-items: center; gap: 6px; background: transparent; border: 0; color: inherit; text-decoration: none; font: inherit; font-size: 12px; text-align: center; }
.create-grid .round { width: 54px; height: 54px; border: 1px solid #ccc; border-radius: 50%; }
.create-grid button:disabled { opacity: .45; }
.chat-bubble { position: fixed; inset-inline-end: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #6F8B37; color: #fff; font-size: 28px; z-index: 20; cursor: pointer; }
.filterbar button.on { background: #111; color: #fff; border-color: #111; }
.prod-form { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 8px; margin: 0 0 12px; }
.prod-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #444; }
.prod-form input, .prod-form select, .prod-form textarea { width: 100%; border: 1px solid #e3e3e3; border-radius: 6px; min-height: 32px; padding: 6px 8px; background: #fff; }
.prod-form .wide { grid-column: 1 / -1; }
.prod-form .checks { flex-direction: row; align-items: center; }
.prod-form .btn { align-self: end; }
.dense td.clip { white-space: normal; max-width: 280px; }

.bottom-nav, .install, .msheet { display: none; }
.msheet[hidden] { display: none !important; }
.m-card, .m-row { display: block; width: 100%; text-align: start; background: #fff; border: 0; border-bottom: 1px solid #eee; padding: 12px 2px; text-decoration: none; color: inherit; }
.m-card b, .m-row b { display: block; font-size: 15px; }
.m-card span, .m-row span { display: block; color: #444; font-size: 13px; }
.m-card .tag, .m-row .tag, .kcard .tag { display: inline; }
.lost-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 60; }
.lost-opt { display: flex; gap: 8px; align-items: center; min-height: 36px; }
.lost-sum .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lost-sum .chips button { border: 1px solid #ddd; background: #fff; border-radius: 999px; min-height: 32px; padding: 0 10px; }
.lost-sum .chips button.on { background: #111; color: #fff; border-color: #111; }
.m-search { width: 100%; height: 40px; border: 1px solid #e3e3e3; border-radius: 8px; margin-bottom: 8px; padding: 0 12px; }
  .m-icons { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; max-width: 100%; }
  .htabs { width: 100%; max-width: 100%; }
.m-icon, .m-more summary { min-height: 36px; border: 1px solid #e3e3e3; border-radius: 18px; background: #fff; padding: 0 12px; text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.m-more { margin-bottom: 8px; }
.m-more button, .msheet button { display: block; width: 100%; text-align: start; background: #fff; border: 0; border-bottom: 1px solid #eee; min-height: 44px; }
.quick { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 8px; }
.quick button { width: auto; border: 1px solid #e3e3e3; border-radius: 16px; min-height: 32px; padding: 0 10px; }
.lead-photo { width: 100%; border-radius: 8px; margin: 6px 0; }
.install { position: sticky; top: 0; z-index: 6; background: #111; color: #fff; padding: 10px 12px; display: flex; gap: 8px; align-items: center; }
.install p { margin: 0; color: #ddd; font-size: 12px; }
.install .btn { background: #fff; color: #111; }
.install-x { background: transparent; color: #fff; border: 0; min-height: 32px; }
.m-create { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-create button { min-height: 44px; border: 1px solid #e3e3e3; background: #fff; border-radius: 8px; }
@media (max-width: 860px) {
  html, body, #app { overflow-x: hidden; max-width: 100%; }
  .hz, .work, .work-head, .actions, .filterbar, .create-strip, .install, .m-icons, .quick, .est-page, .est-main, .split, .gantt, .table-wrap { max-width: 100%; min-width: 0; }
  .rail, .sub { display: none; }
  .work { padding: 12px 12px 128px; }
  .work-head, .actions, .filterbar, .create-strip, .install { flex-wrap: wrap; }
  .actions { width: 100%; }
  .gantt-row { grid-template-columns: minmax(0, 1fr); }
  .m-est, .m-line, .m-add, .m-who, .m-line input, .m-add input, .m-search, #cat-q { width: 100%; max-width: 100%; box-sizing: border-box; }
  .m-line { display: grid; gap: 4px; border-bottom: 1px solid #eee; padding: 12px 0; }
  .m-line label, .m-add { display: grid; gap: 4px; }
  .m-who p { margin: 0 0 4px; }
  .m-send { position: fixed; inset-inline: 12px; bottom: 64px; z-index: 25; width: auto; height: 44px; justify-content: center; }
  input, select, textarea, button, img { max-width: 100%; }
  .split, .est-wrap, .cards, .gen, .gen-card, .profit { grid-template-columns: 1fr; }
  .est-page { flex-direction: column; }
  .toolstrip { flex-direction: row; width: 100%; overflow: auto; }
  .toolpanel { width: 100%; max-height: none; position: static; }
  .totals { width: 100%; }
  .start-grid { grid-template-columns: 1fr 1fr; }
  .chat-bubble { bottom: 76px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: 20;
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 11px; font-weight: 600; background: transparent; border: 0; color: #555;
  }
  .bottom-nav .on { color: #111; }
  .bottom-nav button { color: #111; }
  .msheet:not([hidden]) { display: block; position: fixed; inset-inline: 0; bottom: 56px; z-index: 30; max-height: 58vh; overflow: auto; margin: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.08); background: #fff; padding: 10px; }
  .filterbar { flex-wrap: wrap; overflow: visible; }
  .filterbar input, .filterbar select, .filterbar button, .filterbar a { flex: 1 1 140px; min-width: 0; }
  .filterbar input[type="file"] { flex: 1 1 100%; }
  .tpl { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .notify-row { flex-wrap: wrap; }
  .notify-row label { white-space: normal; }
  .dense td, .dense th { white-space: normal; }
  .shots { max-width: 100%; }
  .sidebox, .widget, .review, .panel { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
  .est-table { display: block; overflow-x: auto; }
  .add-row form { display: flex; flex-wrap: wrap; gap: 6px; }
  .waitbox { inset: 12px; max-width: none; }
  .prod-form { grid-template-columns: 1fr; }
}
input[type="checkbox"] { accent-color: #111; }
.notify-row { display: flex; gap: 16px; align-items: center; border-bottom: 1px solid #eee; padding: 10px 0; }
.notify-row b { flex: 1; }
.notify-row label { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.attn { border: 1px solid #eee; padding: 12px; margin-bottom: 12px; }
.attn-card { display: block; border: 1px solid #111; padding: 12px; text-decoration: none; color: inherit; }
.late { color: #111; font-size: 12px; font-weight: 700; margin: 4px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { border-top: 1px solid #eee; padding: 8px 0; }
.timeline .meta { color: #666; font-size: 12px; }
.stage-row { display: flex; gap: 8px; align-items: center; border-bottom: 1px solid #eee; padding: 8px 0; flex-wrap: wrap; background: #fff; }
.stage-row .locked { flex: 1; }
.stage-row input[type="text"] { flex: 1; min-width: 140px; }
.stage-handle { width: 44px; height: 44px; flex: none; border: 1px solid #111; background: #fff; color: #111; cursor: grab; touch-action: none; font: inherit; }
.stage-row.dragging { opacity: 0.45; pointer-events: none; }
.task-cell { display: flex; align-items: center; gap: 6px; max-width: 240px; background: transparent; border: 0; padding: 0; text-align: start; color: inherit; font: inherit; cursor: pointer; }
.task-title, .tag-cell .tag, td .tag { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.tag-cell { display: flex; gap: 4px; max-width: 180px; overflow: hidden; }
.date-pill { background: #eee; color: #444; border-radius: 10px; padding: 2px 8px; font-size: 12px; white-space: nowrap; }
.date-pill.today { background: #f8d7d2; color: #b42318; }
.date-pill.bad { background: transparent; color: #c62828; font-weight: 700; }
.ad-player { width: 100%; max-width: 360px; max-height: 240px; background: #111; display: block; margin: 8px 0; }
.due-overdue { color: #c62828; font-weight: 700; }
.due-soon { background: #fff3bf; color: #111; font-weight: 700; }
.due-done { color: var(--pos); font-weight: 700; }
.tag-bad { color: #c62828; border-color: #c62828; }
.tag-soon { background: #fff3bf; color: #111; border-color: #e6d48a; }
.tag-good { color: var(--pos); border-color: var(--pos); }
.waitbox { position: fixed; inset: 16px; margin: auto; max-width: 420px; height: fit-content; background: #fff; border: 1px solid #111; padding: 16px; z-index: 40; display: grid; gap: 8px; }
.talk-card, .ad-card, .notice-card, .call-card {
  background: #FFFFFF;
  border: 1px solid #111;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.talk-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.talk-card p, .ad-card p, .notice-card p, .call-card p { margin: 0 0 6px; }
.ad-card a.watch, .notice-card a.watch, .call-card a.watch { color: #111; text-decoration: underline; }
.notice-card { white-space: normal; }
.notice-card .open-lead { display: flex; width: 100%; margin-top: 8px; min-height: 44px; height: auto; justify-content: center; background: #111111; color: #fff; border-color: #111111; text-decoration: none; }
.sample-flag { color: #6F8B37; font-weight: 700; }
.call-btn { width: 100%; margin-top: 8px; min-height: 48px; height: auto; justify-content: center; }
.call-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.call-outcomes button { min-height: 36px; border: 1px solid #111; background: #fff; border-radius: 16px; padding: 0 10px; }
.call-outcomes button.on { background: #111; color: #fff; }
.transcript { white-space: pre-wrap; }
.q-row { border: 1px solid #eee; padding: 8px; margin-bottom: 8px; display: grid; gap: 6px; }
.q-row input, .q-row select, #thanks, .widget input, .widget textarea, .widget select, .sidebox input, .sidebox textarea, .sidebox select { width: 100%; max-width: 100%; box-sizing: border-box; }
.meet-free { display: grid; gap: 10px; margin-top: 8px; }
.meet-when { display: grid; gap: 8px; }
.meet-free label { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.meet-free input, .meet-free select { min-height: 44px; border: 1px solid #111; border-radius: 8px; background: #fff; color: #111; font: inherit; padding: 8px 10px; }
.meet-free input:focus, .meet-free select:focus, .slot-row .btn:focus { outline: 2px solid #6F8B37; outline-offset: 1px; }
.slot-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot-row .btn { width: auto; background: #fff; color: #111; border: 1px solid #111; }
.when-cell { display: grid; gap: 6px; min-width: 0; }
@media (min-width: 720px) {
  .meet-when { grid-template-columns: 1fr 1fr 1fr; }
}

.hz.cream, .work.cream { background: #FFFFFF; }
.svc { display: grid; gap: 8px; width: 100%; max-width: 720px; min-width: 0; }
@media (min-width: 720px) {
  .work.cream { display: flex; flex-direction: column; align-items: center; }
  .work.cream > .work-head,
  .work.cream > .svc,
  .work.cream > form { width: min(720px, 100%); }
  .work.cream > form .svc { width: 100%; max-width: none; }
}
.svc .lbl { display: block; margin-top: 8px; color: #5f5f5f; font-size: 12px; font-weight: 600; }
.svc-search,
.svc input[type="text"],
.svc input[type="search"],
.svc input[type="date"],
.svc .widget input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  padding: 8px 12px;
  font: inherit;
}
.file-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.file-btn [data-file-name] { font-weight: 400; color: #5f5f5f; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-search { padding-inline-end: 36px; }
.src .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.svc .widget { background: #fff; }
.svc .widget h2 { margin-top: 12px; }
.svc .widget h2:first-child { margin-top: 0; }
.suggest { background: #fff; border: 1px solid #111; max-height: 240px; overflow: auto; }
.suggest button {
  width: 100%;
  min-height: 44px;
  display: grid;
  gap: 2px;
  text-align: start;
  background: #fff;
  color: #111;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.suggest button span, .area-name span, .src, .trust-status { color: #5f5f5f; font-size: 12px; }
.suggest-empty { padding: 8px 12px; }
.area-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #e6e6e6; }
.area-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #e6e6e6; }
.area-row:last-child { border-bottom: 0; }
.area-name { flex: 1; min-width: 0; }
.area-name b, .area-name span { display: block; overflow-wrap: anywhere; }
.area-row .btn { flex: none; min-height: 44px; height: 44px; }
.trade-list { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid #e6e6e6; }
.trade { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-bottom: 1px solid #e6e6e6; }
.trade:last-child { border-bottom: 0; }
.work.cream input[type="checkbox"], .work.cream input[type="radio"] { accent-color: #6F8B37; width: 18px; height: 18px; flex: none; }
.svc a.text-link { font-weight: 600; display: inline-block; margin-top: 4px; }
.src { overflow-wrap: anywhere; margin: 8px 0 0; }
.badge { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #111; padding: 4px 8px; font-size: 13px; font-weight: 600; background: #fff; }
.badge.verified { background: #F5F5F5; }
.badge.verified::before { content: ""; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #6F8B37; flex: none; }
.badge.specimen { margin-top: 8px; }
@media (min-width: 720px) {
  .trade-list { grid-template-columns: 1fr 1fr; }
  .trade:nth-last-child(-n + 2) { border-bottom: 0; }
}
