/* ===== BFB Punch List — Pine-led, cool, Apple-Reminders-clean ===== */
:root {
  /* Pine (primary) */
  --pine: #2e5e4e;
  --pine-600: #254f41;
  --pine-700: #1e4337;
  --pine-100: #c8dcd6;
  --pine-50: #dbebe6;
  /* Cool neutrals */
  --page: #f0f3f1;
  --card: #ffffff;
  --line: #dce3df;
  --line-strong: #c3cdc7;
  --ink: #2d2e28;      /* Forge — primary text */
  --body: #58524a;     /* body text */
  --muted: #8a938c;    /* secondary / done items */
  --placeholder: #a7afa9;
  /* Sparing accents */
  --ember: #db563d;    /* destructive only */
  --ember-hover: #bb4832;
  --ember-50: #fce8e1;
  --brass: #db942c;
  --kraft: #d6b07b;
  --shadow: 0 1px 2px rgba(45, 46, 40, 0.05), 0 1px 3px rgba(45, 46, 40, 0.06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Libre Franklin', system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ---- Layout shell ---- */
.wrap { max-width: 680px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.pad { padding: 0 16px; }

/* ---- Header ---- */
header.app {
  position: sticky; top: 0; z-index: 20;
  background: var(--pine);
  border-bottom: 1px solid var(--pine-700);
  /* Full-bleed: fill the whole viewport width even inside the centered content column. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* Pine top-nav theme */
header.app .wordmark { color: #c3e3d4; }              /* light green */
header.app .head-title { color: #ffffff; }            /* pure white */
header.app .head-sub { color: rgba(255, 255, 255, 0.7); }  /* 70% white */
header.app .head-sub .dot { background: rgba(255, 255, 255, 0.4); }
/* Nav buttons: white with a 3px gold stroke, light-green hover */
header.app .btn-secondary {
  background: #ffffff; color: var(--pine); border: 3px solid var(--brass);
}
header.app .btn-secondary:hover { background: #f8e6c8; }
header.app .btn-secondary:active { background: #f4ddb3; }
header.app .btn-secondary .material-symbols-rounded { color: var(--pine); }
/* Name tag: light gold, no stroke */
header.app .who-pill {
  background: #f8e6c8; color: var(--pine); border: 0;
}
header.app .who-pill:hover { background: #f4ddb3; }
header.app .who-pill .material-symbols-rounded { color: var(--pine); }
.head-inner { max-width: 680px; margin: 0 auto; padding: 12px 16px 13px; position: relative; }
.print-btn {
  position: absolute; top: 12px; right: 16px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; background: var(--brass); border: 0;
  color: #ffffff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.print-btn:hover { background: #f8e6c8; }
.print-btn:hover .material-symbols-rounded { color: var(--pine); }
.print-btn:active { background: #f4ddb3; }
.print-btn .material-symbols-rounded { font-size: 22px; color: #ffffff; }
.wordmark {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 3px; color: var(--pine); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.wordmark a { color: inherit; text-decoration: none; }
.head-title {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 30px; line-height: 1.05; color: var(--ink); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.head-sub {
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--muted); margin-top: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.head-sub .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--kraft); }
.head-actions { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---- Client banner ---- */
.banner {
  margin: 14px 16px 0; padding: 13px 15px; background: var(--pine-50);
  border: 1px solid var(--pine-100); border-radius: var(--radius);
  color: var(--pine-700); font-size: 14px; line-height: 1.45; display: flex; gap: 10px;
}
.banner .material-symbols-rounded { color: var(--pine); font-size: 20px; flex: 0 0 auto; }

/* ---- Buttons ---- */
.btn {
  font-family: 'Libre Franklin', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 1.4px; text-transform: uppercase; border: 0; border-radius: 9px;
  padding: 11px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background .12s ease, border-color .12s ease, transform .04s ease; white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 18px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:active { background: var(--pine-600); }
.btn-secondary { background: var(--card); color: var(--pine); border: 1.5px solid var(--line-strong); }
.btn-secondary:active { background: var(--pine-50); }
.btn-ghost { background: transparent; color: var(--body); padding: 9px 10px; }
.btn-ghost:active { background: rgba(45, 46, 40, 0.05); }
.btn-danger { background: var(--ember); color: #fff; }
.btn-danger:active { background: var(--ember-hover); }
.btn-lg { padding: 15px 20px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Cards / sections ---- */
main { flex: 1; padding: 14px 0 100px; }
.area {
  background: #eef6f0; border: 1px solid var(--line); border-radius: var(--radius);
  margin: 12px 16px; box-shadow: var(--shadow); overflow: hidden;
}
.area-head {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px 13px; cursor: pointer;
  user-select: none; background: #e5f1ea;
}
.area-head .chev {
  color: var(--muted); transition: transform .18s ease; flex: 0 0 auto; font-size: 22px;
}
.area.collapsed .chev { transform: rotate(-90deg); }
.area-name {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 21px;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--ink); flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.area-count {
  font-size: 12px; font-weight: 700; color: var(--muted); background: var(--page);
  border-radius: 20px; padding: 3px 9px; letter-spacing: .3px; flex: 0 0 auto;
}
.area-tools { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.icon-btn {
  background: transparent; border: 0; color: var(--muted); cursor: pointer; border-radius: 8px;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:active { background: rgba(45, 46, 40, 0.06); }
.icon-btn .material-symbols-rounded { font-size: 21px; }
.icon-btn.danger { color: var(--ember); }

.area-body { border-top: 1px solid var(--line); }
.area.collapsed .area-body { display: none; }

/* ---- Area-level photos (above content) ---- */
.area-photos-block { border-bottom: 1px solid var(--line); }
.area-photos {
  display: flex; gap: 8px; padding: 12px 14px 8px; overflow-x: auto;
}
.area-photos:empty { display: none; }
.thumb {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 10px; object-fit: cover;
  border: 0.5px solid var(--pine); cursor: pointer; background: var(--page);
}
.thumb.sm { width: 40px; height: 40px; border-radius: 8px; }

/* ---- Items ---- */
.item { border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item-row { display: flex; align-items: flex-start; gap: 12px; padding: 21px 14px; }
.check {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px; transition: background .12s ease, border-color .12s ease; padding: 0;
}
.check .material-symbols-rounded { font-size: 18px; color: #fff; opacity: 0; transition: opacity .1s ease; }
.check.done { background: var(--pine); border-color: var(--pine); }
.check.done .material-symbols-rounded { opacity: 1; }
.item-main { flex: 1; min-width: 0; }
.item-text {
  font-size: 16px; color: var(--ink); line-height: 1.35; word-break: break-word; cursor: text;
}
.item.done .item-text { text-decoration: line-through; color: var(--muted); }
.item-meta {
  display: flex; align-items: center; gap: 12px; margin-top: 7px; flex-wrap: wrap;
}
.by { font-size: 11px; color: var(--placeholder); letter-spacing: .2px; }
.chip {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 20px; cursor: pointer; border: 1.5px solid var(--line-strong);
  color: var(--muted); background: var(--card); display: inline-flex; align-items: center; gap: 4px;
}
.chip .material-symbols-rounded { font-size: 14px; }
.chip.sub-on { background: var(--brass); border-color: var(--brass); color: #fff; }
/* Assignment tags */
.chip.assignee.is-sub { background: var(--brass); border-color: var(--brass); color: #fff; }
.chip.assignee.is-emp { background: var(--pine-50); border-color: var(--pine-100); color: var(--pine-700); }

/* Option menu (assignee picker) */
.menu-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 13px 14px; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--ink); cursor: pointer;
}
.menu-item:active { background: var(--page); }
.menu-item.on { border-color: var(--pine); color: var(--pine); background: var(--pine-50); }
.menu-item .material-symbols-rounded { font-size: 18px; color: var(--pine); }
.chip.comment.has { color: var(--pine); border-color: var(--pine-100); background: var(--pine-50); }
.item-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.item-add-photo { color: var(--muted); }

/* ---- Comment editor ---- */
.comment-box { padding: 0 14px 13px 52px; }
.comment-box textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; color: var(--body); resize: vertical; min-height: 60px;
  background: var(--page);
}
.comment-box textarea:focus { outline: none; border-color: var(--pine); background: var(--card); }
.comment-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ---- Item photo preview (below the row) ---- */
.item-photos { padding: 6px 14px 8px 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-start; }
.item-photos:empty { display: none; }
.by .sep { color: var(--line-strong); margin: 0 5px; }

/* ---- Drag an area photo onto a task ---- */
.area-photos-hint {
  display: flex; align-items: center; gap: 6px; padding: 2px 14px 12px; color: var(--muted);
  font-size: 12px; font-weight: 500;
}
.area-photos-hint .material-symbols-rounded { font-size: 16px; color: var(--kraft); }
.thumb[data-draggable] { cursor: grab; }
body.dragging-photo { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.drag-ghost {
  position: fixed; z-index: 85; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  pointer-events: none; border-radius: 10px; overflow: hidden; opacity: .9;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); transform: rotate(-3deg);
}
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; }
.item.drop-target { background: var(--pine-50); box-shadow: inset 0 0 0 2px var(--pine); border-radius: 8px; }

/* ---- Photo preview inline panel ---- */
.preview {
  margin: 0 14px 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--page); display: grid; grid-template-columns: 1fr; gap: 0;
}
.preview.item-preview { margin-left: 52px; }
.preview-stage { position: relative; background: #1a1c1a; display: flex; align-items: center; justify-content: center; }
.preview-stage img { max-width: 100%; max-height: 60vh; display: block; }
/* Reserved space for a future annotation toolbar (draw / counter / comment) — no tools yet. */
.preview-toolbar {
  border-top: 1px dashed var(--line-strong); padding: 10px 14px; display: flex; align-items: center;
  justify-content: center; gap: 8px; color: var(--placeholder); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700; background: repeating-linear-gradient(
    45deg, transparent, transparent 8px, rgba(45,46,40,0.02) 8px, rgba(45,46,40,0.02) 16px);
}
.preview-controls { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.preview-controls input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.preview-controls input:focus { outline: none; border-color: var(--pine); }
.preview-controls .row { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.preview-controls .row > div { display: flex; gap: 8px; flex-wrap: wrap; }
.preview .by { padding: 0 2px; }

/* ---- Add rows ---- */
.add-item-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line);
}
.add-item-row .plus {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; color: var(--pine);
}
.add-item-row .plus .material-symbols-rounded { font-size: 24px; }
.add-item-row input {
  flex: 1; border: 0; background: transparent; font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 4px 0;
}
.add-item-row input:focus { outline: none; }
.add-item-row input::placeholder { color: var(--placeholder); }

.add-area {
  margin: 16px 16px 0; display: flex; justify-content: center;
}

/* ---- Empty states ---- */
.empty {
  text-align: center; color: var(--muted); padding: 40px 24px; font-size: 15px; line-height: 1.5;
}
.empty .material-symbols-rounded { font-size: 40px; color: var(--line-strong); display: block; margin: 0 auto 12px; }

/* ---- Home screen ---- */
.home { padding: 8px 16px 40px; }
.home-hero {
  text-align: center; padding: 30px 12px 22px;
}
.home-hero .wordmark { justify-content: center; }
.home-hero h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 40px; line-height: 1;
  text-transform: uppercase; color: var(--ink); margin-top: 8px; letter-spacing: .5px;
}
.home-hero p { color: var(--body); margin-top: 10px; font-size: 15px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 18px; margin-top: 18px;
}
.panel h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px;
  text-transform: uppercase; letter-spacing: .6px; color: var(--ink); margin-bottom: 14px;
}
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--card);
}
.field input:focus { outline: none; border-color: var(--pine); }

.link-box { margin-top: 12px; }
.link-row {
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; margin-top: 10px; background: var(--page);
}
.link-row .lr-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--pine);
  flex: 0 0 auto; width: 64px;
}
.link-row .lr-url {
  flex: 1; min-width: 0; font-size: 13px; color: var(--body); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-family: 'Roboto Mono', ui-monospace, monospace;
}
.recent { margin-top: 26px; }
.recent h2 { margin-bottom: 10px; }
.recent-item {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; text-decoration: none;
  color: var(--ink); box-shadow: var(--shadow);
}
.recent-item .ri-name { font-weight: 600; flex: 1; }
.recent-item .ri-client { font-size: 12px; color: var(--muted); }
.recent-item .material-symbols-rounded { color: var(--muted); }

/* ---- Modal (name prompt, dialogs) ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(45, 46, 40, 0.45); z-index: 60; display: flex;
  align-items: flex-end; justify-content: center; padding: 16px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 420px; padding: 22px 20px;
  transform: translateY(20px); transition: transform .2s cubic-bezier(.2,.9,.3,1.1);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 24px;
  text-transform: uppercase; letter-spacing: .5px; color: var(--ink); margin-bottom: 6px;
}
.modal p { color: var(--body); font-size: 14px; margin-bottom: 14px; }
.modal input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px;
  font-family: inherit; font-size: 16px; color: var(--ink); margin-bottom: 14px;
}
.modal input:focus { outline: none; border-color: var(--pine); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 560px) { .modal-overlay { align-items: center; } }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  font-weight: 600; z-index: 80; opacity: 0; transition: opacity .2s ease, transform .2s ease;
  pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Identity pill in header ---- */
.who-pill {
  font-size: 12px; font-weight: 600; color: var(--body); background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.who-pill .material-symbols-rounded { font-size: 15px; color: var(--pine); }

.loading { text-align: center; padding: 60px 20px; color: var(--muted); }
.hidden { display: none !important; }

/* Full-screen lightbox for tapping a thumbnail to enlarge only */
.lightbox {
  position: fixed; inset: 0; background: rgba(20,22,20,.92); z-index: 70; display: flex;
  align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity .18s ease;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 16px; right: 16px; color: #fff; background: rgba(0,0,0,.4);
  border: 0; border-radius: 50%; width: 42px; height: 42px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

/* ---- Photo markup: read-only overlay + thumbnail badge ---- */
.annot-holder { position: relative; display: inline-block; line-height: 0; max-width: 100%; }
.annot-holder img { max-width: 100%; max-height: 60vh; display: block; }
.annot-layer { position: absolute; top: 0; left: 0; pointer-events: none; }
.thumb-wrap { position: relative; flex: 0 0 auto; display: inline-flex; line-height: 0; }
.thumb-badge {
  position: absolute; right: -4px; bottom: -4px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--ember); color: #fff; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
}
.thumb-badge .material-symbols-rounded { font-size: 11px; }
.annot-btn { width: 100%; justify-content: center; }

/* ---- Photo markup editor ---- */
.annot-overlay {
  position: fixed; inset: 0; background: #141614; z-index: 90; display: flex; flex-direction: column;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.annot-holder img { -webkit-user-drag: none; user-drag: none; }
.annot-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.annot-title {
  color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 1px; text-transform: uppercase;
}
.annot-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 10px; }
.annot-stage .annot-holder { max-height: 100%; }
.annot-stage .annot-holder img { max-height: 100%; max-width: 100%; }
.annot-draw { position: absolute; top: 0; left: 0; touch-action: none; cursor: crosshair; }
/* In-place text entry (type directly on the image) */
.annot-textinput {
  position: absolute; z-index: 6; background: transparent; border: 1px dashed rgba(255,255,255,.85);
  outline: none; padding: 0 2px; margin: 0; min-width: 24px; line-height: 1.1;
  text-shadow: 0 0 3px rgba(0,0,0,.6); caret-color: #fff;
}
/* Delete button for the selected mark (Move tool) */
.annot-del {
  position: absolute; z-index: 7; display: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ember); color: #fff; border: 2px solid #fff; cursor: pointer;
  align-items: center; justify-content: center; transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.annot-del .material-symbols-rounded { font-size: 18px; }
.annot-hint { text-align: center; color: rgba(255,255,255,.6); font-size: 12px; padding: 2px 10px 8px; min-height: 20px; }
.annot-tools {
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: #1c1e1c;
  border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px;
}
.annot-row { display: flex; align-items: center; gap: 8px; }
.annot-tool {
  flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.15); border-radius: 10px;
  color: #cfd6d2; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.annot-tool .material-symbols-rounded { font-size: 20px; }
.annot-tool.on { background: var(--pine); border-color: var(--pine); color: #fff; }
.annot-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; }
.annot-color.on { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }
.annot-spacer { flex: 1; }
.annot-util {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,.08); border: 0;
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.annot-util .material-symbols-rounded { font-size: 22px; }

/* ---- Bottom nav / footer ---- */
.app-foot {
  text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7;
  padding: 26px 20px 40px; max-width: 680px; margin: 0 auto;
}
.app-foot a { color: var(--muted); text-decoration: underline; }
.app-foot a:hover { color: var(--pine); }
.app-foot .foot-sep { color: var(--line-strong); margin: 0 5px; }

/* ---- Print-only content (hidden on screen) ---- */
.print-only { display: none; }

/* ===== Print layout ===== */
@media print {
  @page { margin: 0.5in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
  .print-only { display: block; }

  /* Ink-light header */
  header.app {
    position: static; width: auto; margin: 0; background: #fff; border-bottom: 2px solid var(--pine);
  }
  header.app .wordmark { color: var(--pine); }
  header.app .head-title { color: var(--ink); }
  header.app .head-sub { color: var(--muted); }

  /* Hide interactive controls */
  .print-btn, .head-actions, .banner, .area-tools, .item-right, .add-item-row,
  .add-area, .area-photos-hint, .chip.comment, .preview, .toast, .app-foot { display: none !important; }

  /* Expand every section, keep sections/items whole across page breaks */
  .area { background: #fff; border: 1px solid #ccc; box-shadow: none; margin: 8px 0; break-inside: avoid; }
  .area.collapsed .area-body { display: block !important; }
  .area.collapsed .chev { transform: none; }
  .item { break-inside: avoid; }
  main { padding: 0; }

  .comment-print { padding: 4px 0 2px; font-size: 13px; font-style: italic; color: var(--body); }
  .area-photos .thumb, .item-photos .thumb { width: 96px; height: 96px; }
}
