:root {
  --orange: #F26A1B;
  --ink: #1C1C1E;
  --bg: #F6F6F3;
  --muted: #6B6F76;
  --faint: #A3A7AD;
  --hair: #EDEDEA;
  --green: #1E7A3A;
  --change: #B4500F;
  --white: #FFFFFF;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 6px 20px rgba(20, 20, 20, 0.06);
  --radius-card: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #E8E8E4; color: var(--ink); }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

#app {
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Header */
.hero {
  background: linear-gradient(165deg, #2A2A2E 0%, #1C1C1E 55%, #161618 100%);
  color: #FFFFFF;
  padding: calc(20px + var(--safe-top)) 20px 22px;
}
.hero-row { display: flex; align-items: center; gap: 8px; }
.brand-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--orange); flex-shrink: 0; }
.brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.2px;
  color: #D9D9D6;
  text-transform: uppercase;
}
.hero-main { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.hero h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.4px; line-height: 1.15; }
.hero .sub { font-size: 14px; color: #A9AAAD; margin-top: 2px; }
.stats {
  display: flex;
  margin-top: 18px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
}
.stat { flex: 1; padding: 10px 12px; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.08); }
.stat .n { font-size: 17px; font-weight: 600; }
.stat .l { font-size: 12px; color: #A9AAAD; margin-top: 1px; }

.ring { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.ring svg { display: block; }
.ring span {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}

/* Nav in hero */
.hero-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 20px; border: none;
  background: rgba(255,255,255,0.12); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icon-btn.light {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.icon-btn svg { display: block; }

/* Page body */
.page { padding: 16px 14px calc(28px + var(--safe-bottom)); flex: 1; }

.seg {
  display: flex;
  background: #EAEAE6;
  border-radius: 12px;
  padding: 3px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.seg button {
  flex: 1;
  min-height: 36px;
  min-width: 72px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  white-space: nowrap;
}
.seg button.on {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.room-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  padding-bottom: 2px;
}
.chip {
  flex-shrink: 0;
  border: 1px solid var(--hair);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  min-height: 34px;
}
.chip.on { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-transform: uppercase;
  margin: 22px 4px 10px;
}
.label:first-child, .page > .label:first-of-type { margin-top: 8px; }

.card {
  background: #FFFFFF;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card.tap { display: flex; gap: 14px; align-items: center; padding: 12px; cursor: pointer; }
.card.tap:active { transform: scale(0.995); }

.thumb {
  width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--ink);
  background: #EEEDE8;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.thumb.sm { width: 44px; height: 44px; border-radius: 12px; font-size: 12px; }

.grow { flex: 1; min-width: 0; }
.item-name { font-size: 16px; font-weight: 600; letter-spacing: -0.2px; }
.item-meta { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-tags { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: #EFEFEC;
  color: var(--muted);
}
.pill.ok { background: #E7F3EA; color: var(--green); }
.pill.change { background: #FDECE1; color: var(--change); }
.pill.progress { background: transparent; color: var(--faint); padding: 4px 0; }

.chev { flex-shrink: 0; color: var(--faint); }

/* Project cards */
.proj-card .item-name { font-size: 17px; }
.proj-card .item-meta { white-space: normal; }

/* Detail */
.detail-title { padding: 0 4px 16px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 1.2px; color: var(--orange); text-transform: uppercase; }
.detail-title h2 { margin: 6px 0 0; font-size: 23px; font-weight: 600; letter-spacing: -0.4px; line-height: 28px; }
.detail-title .brand-line { font-size: 15px; color: var(--muted); margin-top: 4px; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 500; text-align: right; }

/* Forms */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow);
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}
.field textarea { min-height: 96px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  box-shadow: 0 0 0 2px rgba(242,106,27,0.35), var(--shadow);
}
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.add-new { margin-top: 8px; }
.hint { font-size: 12px; color: var(--muted); margin: 0 4px 12px; line-height: 1.4; }
.err { color: #9B1C31; font-size: 13px; font-weight: 600; margin: 0 4px 12px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0 16px;
}
.btn.primary { background: var(--orange); color: #FFFFFF; box-shadow: 0 6px 16px rgba(242,106,27,0.30); }
.btn.primary:disabled { background: #D3D3CF; box-shadow: none; color: #FFFFFF; }
.btn.dark { background: var(--ink); color: #FFFFFF; }
.btn.ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--hair);
  min-height: 50px;
  box-shadow: var(--shadow);
}
.btn.danger { background: #FFFFFF; color: #9B1C31; border: 1px solid var(--hair); min-height: 50px; }
.btn + .btn { margin-top: 10px; }
.actions { margin-top: 8px; }
.actions.inline { display: flex; gap: 10px; }
.actions.inline .btn { margin-top: 0; }

.page.has-fab { padding-bottom: calc(100px + var(--safe-bottom)); }
.fab {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 402px;
  z-index: 5;
  margin: 0;
}

.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; color: var(--ink); }
.empty p { margin: 0; font-size: 14px; line-height: 1.45; }

.foot-note { font-size: 12px; color: var(--muted); line-height: 1.45; text-align: center; margin: 18px 8px 0; }
.ok-note { font-size: 14px; color: var(--green); font-weight: 600; margin: 8px 0; }
.warn { font-size: 13px; color: var(--change); margin: 8px 0; }

table.preview { width: 100%; border-collapse: collapse; font-size: 14px; }
table.preview th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--hair); }
table.preview td { padding: 10px 0; border-bottom: 1px solid var(--hair); }
table.preview td.num { text-align: right; font-weight: 600; }
table.preview tr:last-child td { border-bottom: none; }

.banner {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 14px;
}

.money-over { color: #9B1C31; }
.money-under { color: var(--green); }

/* Logo */
.brand-logo {
  height: 22px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Subtle cropped house-plan texture (no address, names or title block) */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/plan-texture-white.png") 72% 42% / 175% auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero > * { position: relative; z-index: 1; }

.page.setup-page { position: relative; }
.page.setup-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/plan-texture-ink.png") 50% 0 / 200% auto no-repeat;
  opacity: 0.065;
  pointer-events: none;
  z-index: 0;
}
.page.setup-page > * { position: relative; z-index: 1; }

/* Setup form */
.section-card { margin-bottom: 14px; }
.section-card .label { margin-top: 0; }
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
}
.stepper:last-child { border-bottom: none; }
.stepper .step-label { font-size: 15px; font-weight: 500; }
.step-ctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step-btn {
  width: 36px; height: 36px; border-radius: 18px;
  border: 1px solid var(--hair); background: #FFFFFF; color: var(--ink);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.step-btn:active { background: #EAEAE6; }
.step-val { min-width: 22px; text-align: center; font-weight: 600; font-size: 16px; }
.room-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.room-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--hair);
  border-radius: 999px; padding: 6px 8px 6px 12px;
  font-size: 13px; font-weight: 600;
}
.room-chip button {
  width: 22px; height: 22px; border: none; border-radius: 11px;
  background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  padding: 0; font-size: 16px; line-height: 1;
}
.room-chip button:active { background: #EAEAE6; }
.custom-row { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.custom-row input { flex: 1; min-height: 46px; }
.custom-row .btn { width: auto; min-height: 46px; padding: 0 16px; margin: 0; flex-shrink: 0; }
.details-card p { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.details-card p strong { color: var(--ink); font-weight: 600; }
.details-card .btn { margin-top: 10px; }

/* Piece 2: approval, tracker, photos, confirm */
.pair { display: flex; gap: 10px; }
.pair .btn { margin-top: 0; flex: 1; min-height: 50px; }
.btn-approve.on { background: var(--green); color: #FFFFFF; border-color: var(--green); }
.btn-change.on { background: var(--orange); color: #FFFFFF; border-color: var(--orange); box-shadow: none; }
.approval-meta { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }
.approval-meta strong { color: var(--ink); font-weight: 600; }
.linkish {
  display: inline-block; margin-top: 10px;
  border: none; background: transparent; padding: 0;
  font-size: 14px; font-weight: 600; color: var(--orange);
  width: auto; min-height: 0;
}
.linkish.muted { color: var(--muted); }

.tracker { position: relative; display: flex; justify-content: space-between; padding: 4px 6px 0; }
.tracker-line, .tracker-fill {
  position: absolute; left: 24px; right: 24px; top: 17px; height: 2px; background: var(--hair);
  pointer-events: none;
}
.tracker-fill { background: var(--ink); right: auto; }
.track-step {
  position: relative; border: none; background: transparent; padding: 0;
  width: 72px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.track-dot {
  width: 26px; height: 26px; border-radius: 13px;
  background: #FFFFFF; border: 2px solid var(--hair); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.track-step.done .track-dot { background: var(--ink); border-color: var(--ink); }
.track-label { font-size: 12px; font-weight: 500; color: var(--faint); text-align: center; line-height: 15px; }
.track-step.done .track-label { color: var(--ink); }
.track-step.current .track-label { font-weight: 600; }
.track-date { font-size: 10px; color: var(--faint); text-align: center; line-height: 13px; min-height: 13px; }

.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 120px; border-radius: 14px;
  border: 1.5px dashed #D6D6D2; background: var(--bg);
  color: var(--ink); cursor: pointer; text-align: center; padding: 16px;
}
.photo-drop .cam {
  width: 44px; height: 44px; border-radius: 22px;
  background: var(--ink); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.photo-drop .t { font-size: 15px; font-weight: 600; }
.photo-drop .s { font-size: 12px; color: var(--muted); }
.photo-frame img, .cover-frame img {
  width: 100%; border-radius: 14px; display: block;
  background: #EEEDE8;
}
.photo-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; gap: 10px; flex-wrap: wrap;
}
.photo-meta span { font-size: 13px; color: var(--muted); }

.thumb { position: relative; overflow: hidden; background-size: cover; background-position: center; }
.thumb.has-photo { color: transparent; }
.cam-badge {
  position: absolute; right: -4px; bottom: -4px;
  width: 24px; height: 24px; border-radius: 12px;
  background: var(--ink); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #FFFFFF;
}

.cover-preview {
  width: 100%; height: 140px; border-radius: 14px;
  background: #EEEDE8 center / cover no-repeat;
  margin-bottom: 10px;
}

.modal-back {
  position: fixed; inset: 0; background: rgba(28,28,30,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 20; padding: 16px 16px calc(16px + var(--safe-bottom));
}
.modal {
  width: 100%; max-width: 398px;
  background: #FFFFFF; border-radius: 22px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.modal h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
.modal p { margin: 0 0 18px; font-size: 15px; color: var(--muted); line-height: 1.45; }
.modal .btn + .btn { margin-top: 10px; }

.field.tight input, .field.tight textarea { box-shadow: none; border: 1px solid var(--hair); background: var(--bg); }
#approval-card .field { margin-top: 12px; margin-bottom: 0; }
#approval-card .field + .field { margin-top: 10px; }
#approval-card .field textarea { min-height: 84px; }

.photo-meta .linkish + .linkish { margin-left: 14px; }

/* Home hero: v5 cover house elevation, faded so the title stays readable */
.hero.home-hero { padding-bottom: 24px; }
.hero.home-hero::before {
  background: url("images/cover-hero-house.png") right 6% center / auto 150% no-repeat;
  opacity: 1;
  mix-blend-mode: normal;
}
.hero.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, #1C1C1E 0%, rgba(28,28,30,0.94) 34%, rgba(28,28,30,0.40) 66%, rgba(28,28,30,0.10) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Tab bar */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  display: flex;
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,0.96);
  padding: 6px 0 calc(10px + var(--safe-bottom));
  z-index: 6;
}
.tabbar button {
  flex: 1;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 0;
  min-height: 0;
  width: auto;
}
.tabbar button.on { color: var(--orange); }
.page.has-tabs { padding-bottom: calc(88px + var(--safe-bottom)); }
.page.has-tabs.has-fab { padding-bottom: calc(168px + var(--safe-bottom)); }
.page.has-tabs.has-fab + .tabbar ~ * { }
.fab.has-tabs, .page.has-tabs.has-fab ~ .fab, .page.has-tabs .fab {
  bottom: calc(72px + var(--safe-bottom));
}
/* the FAB is inside .page.has-fab */
.page.has-tabs.has-fab .fab { bottom: calc(72px + var(--safe-bottom)); }

.pill.changed { background: #FDECE1; color: var(--change); }

.flag-list { margin: 0; padding: 0; list-style: none; }
.flag-list li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--hair); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.flag-list li:last-child { border-bottom: none; }
.flag-list .nm { font-weight: 500; }
.flag-list .meta { font-size: 12px; color: var(--muted); }
.signed-banner { text-align: center; padding: 18px 12px; }
.signed-banner .tick {
  width: 52px; height: 52px; border-radius: 26px;
  background: #E7F3EA; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.signed-banner h2 { margin: 0; font-size: 18px; font-weight: 600; }
.signed-banner p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

.declaration { font-size: 15px; line-height: 1.5; margin: 0 0 8px; }
.draft-note {
  font-size: 12px; color: var(--change); font-weight: 600;
  margin: 0 0 12px; line-height: 1.4;
}

.pad-wrap { position: relative; background: #FFFFFF; border-radius: 16px; box-shadow: var(--shadow); margin-top: 8px; }
.pad-wrap canvas { width: 100%; height: 140px; display: block; touch-action: none; position: relative; border-radius: 16px; }
.pad-line { position: absolute; left: 20px; right: 20px; bottom: 34px; border-bottom: 1px solid var(--hair); pointer-events: none; }
.pad-x { position: absolute; left: 20px; bottom: 40px; font-size: 16px; color: var(--faint); pointer-events: none; }
.pad-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.pad-head .k { font-size: 13px; font-weight: 600; color: var(--muted); }
.signer-block { margin-top: 16px; scroll-margin-top: 64px; }
.status-row.jump { cursor: pointer; }
.status-row.jump:active { opacity: 0.7; }
.sig-preview { background: #FFFFFF; border-radius: 16px; box-shadow: var(--shadow); padding: 10px; }
.sig-preview img { width: 100%; height: 90px; object-fit: contain; display: block; background: #FAFAF8; border-radius: 12px; }
.sig-preview .meta { font-size: 13px; color: var(--muted); margin-top: 8px; }

.pdf-tools { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.pdf-tools label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.pdf-tools input { width: 18px; height: 18px; accent-color: var(--orange); }

/* Print / Save as PDF view */
.print-page { background: #FFFFFF; color: #1C1C1E; padding: 16px; }
.print-actions { margin-bottom: 16px; }
.print-sheet { background: #fff; color: #111; font-size: 12px; line-height: 1.35; }
.print-sheet h1 { font-size: 20px; margin: 0 0 4px; }
.print-sheet h2 { font-size: 14px; letter-spacing: 0.8px; text-transform: uppercase; color: #6B6F76; margin: 18px 0 8px; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: 11px; }
.print-sheet th, .print-sheet td { border-bottom: 1px solid #EDEDEA; padding: 5px 4px; text-align: left; vertical-align: top; }
.print-sheet th { font-size: 9px; letter-spacing: 0.6px; text-transform: uppercase; color: #6B6F76; }
.print-sheet td.num, .print-sheet th.num { text-align: right; }
.print-sheet .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.print-sheet .brand-row img { height: 22px; width: auto; }
.print-sheet .foot { font-size: 10px; color: #6B6F76; margin-top: 16px; }
.print-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.print-photos figure { width: calc(50% - 5px); margin: 0; }
.print-photos img { width: 100%; border-radius: 8px; display: block; }
.print-photos figcaption { font-size: 10px; color: #6B6F76; margin-top: 4px; }
.print-sig img { height: 80px; border: 1px solid #EDEDEA; border-radius: 8px; background: #fafafa; }

@media print {
  html, body, #app { background: #fff !important; max-width: none !important; margin: 0 !important; }
  .print-actions, .tabbar, .fab, .hero, .modal-back { display: none !important; }
  .print-page { padding: 0; }
  .print-sheet { font-size: 10pt; }
  @page { size: A4 landscape; margin: 12mm; }
}

/* Trades on setup */
.trade-row { border-top: 1px solid var(--hair); padding-top: 12px; margin-top: 12px; }
.trade-row:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.trade-row .trade-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.trade-row .trade-head .nm { font-size: 15px; font-weight: 600; }

.status-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.status-row:last-child { border-bottom: none; }
.status-row .who { font-weight: 500; }
.st-pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: #EFEFEC; color: var(--muted); white-space: nowrap;
}
.st-pill.signed { background: #E7F3EA; color: var(--green); }
.st-pill.re-sign { background: #FDECE1; color: var(--change); }

/* Viewing as + lock */
.view-bar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hair);
}
.view-bar label[for="view-as"] {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.view-bar select {
  flex: 1;
  min-width: 150px;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: #F6F6F3;
  color: var(--ink);
}
.hide-others {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  color: var(--ink);
}
.hide-others input { width: 16px; height: 16px; accent-color: var(--orange); }
.lock-icon {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  margin-left: 6px;
  vertical-align: middle;
}
.lock-icon svg { display: block; }
#lock-banner { border: 1px solid rgba(242, 106, 27, 0.28); }
.item-readonly { pointer-events: none; opacity: 0.72; }
