/* Planbox: same family as the Handwerks-Autopilot landing page. See DESIGN.md. */
:root {
  --ink: #f4f2ea;
  --ink-2: rgba(244, 242, 234, 0.76);
  --ink-3: rgba(244, 242, 234, 0.55);
  --line: rgba(244, 242, 234, 0.24);
  --line-2: rgba(244, 242, 234, 0.13);
  --char: #23251f;
  --char-2: #5c5f55;
  --char-3: #8a8c82;
  --char-line: rgba(35, 37, 31, 0.12);
  --paper: #f6f5f0;
  --paper-2: #eeebe1;
  --tile: #e6e1cb;
  --signal: #d6ec50;
  --moss: #2e3125;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.2);
  --glass-dark: rgba(30, 33, 25, 0.58);
  --sans: 'Urbanist', system-ui, -apple-system, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sheet-shadow: 0 1px 2px rgba(10, 12, 8, 0.18), 0 14px 34px rgba(10, 12, 8, 0.32);
  --float: 0 18px 50px rgba(10, 12, 8, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--moss);
  color: var(--ink);
  font: 400 15.5px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  color-scheme: dark;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 10px; }
.eyebrow { margin: 0; font: 400 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.s { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }

/* ---------- the day behind everything ---------- */
.stage { position: fixed; inset: 0; z-index: -1; background: #3b3f2e; overflow: hidden; }
.stage .scene { position: absolute; inset: -2%; background: url(img/scene-morning.jpg) 62% 50% / cover; transition: opacity 1.6s; }
[data-scene='noon'] .stage .scene { background-image: url(img/scene-noon.jpg); }
[data-scene='afternoon'] .stage .scene { background-image: url(img/scene-afternoon.jpg); }
[data-scene='dusk'] .stage .scene { background-image: url(img/scene-dusk.jpg); }
.stage .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 21, 15, 0.5), rgba(18, 21, 15, 0.3) 45%, rgba(18, 21, 15, 0.56)); }
[data-scene='noon'] .stage .shade { background-color: rgba(22, 30, 14, 0.18); }
[data-scene='afternoon'] .stage .shade { background-color: rgba(32, 24, 10, 0.14); }

/* ---------- pills (every button is one) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 17px; border: 0; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color 0.25s, transform 0.25s;
}
.btn:hover { background: rgba(255, 255, 255, 0.17); }
.btn:active { transform: scale(0.98); }
.btn-quiet { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink-2); }
.btn-quiet:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.btn-primary, .btn-orange { background: var(--paper); color: var(--char); box-shadow: none; }
.btn-primary:hover, .btn-orange:hover { background: #fff; }
.btn-green { background: var(--char); color: var(--paper); box-shadow: none; }
.btn-green:hover { background: #34372e; }
/* The main action carries the signal dot (only when it has no icon of its own). */
.btn-primary:not(:has(.ic))::before, .btn-orange:not(:has(.ic))::before, .btn-green:not(:has(.ic))::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none;
}
.btn-primary::before, .btn-orange::before { box-shadow: 0 0 0 1.5px var(--char); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; position: relative;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--ink); }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
  background: var(--signal); color: var(--char); font: 500 10.5px/17px var(--mono); text-align: center;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}
.tag-open { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.tag-open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.tag-fixed { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.tag-fixed::before { content: ''; width: 5px; height: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px currentColor; }
.tag-new { background: var(--char); color: var(--paper); }
.tag-new::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.tag-current { background: var(--char); color: var(--paper); }
.tag-old { color: var(--char-3); text-decoration: line-through; }
.open-n { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button {
  border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 999px;
  font: 400 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.seg button.is-on { background: var(--paper); color: var(--char); }

.spinner { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); border-top-color: var(--signal); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top bar ---------- */
.top {
  height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 18px 0 24px; border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; letter-spacing: -0.015em; justify-self: start; min-width: 0; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-company { color: var(--ink-3); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-company::before { content: '/'; margin: 0 9px 0 1px; color: var(--line); }
.clock { display: flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.clock b { font-weight: 400; color: var(--ink); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.lang { display: flex; align-items: center; gap: 2px; font: 400 12px/1 var(--mono); letter-spacing: 0.12em; color: var(--ink-3); }
.lang button { background: none; border: 0; padding: 8px 4px; color: var(--ink-3); letter-spacing: 0.12em; }
.lang button[aria-pressed='true'] { color: var(--ink); }

/* ---------- office layout ---------- */
.office { display: grid; grid-template-columns: 264px minmax(0, 1fr) 380px; height: calc(100dvh - 64px); }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line-2); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 12px 10px 24px; }
.side-head h2, .reports-head h2 { margin: 0; font: 400 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.proj-list { list-style: none; margin: 0; padding: 0 0 8px; overflow: auto; flex: 1; }
.proj {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start;
  margin: 0 12px; padding: 13px 12px; cursor: pointer; border-top: 1px solid var(--line-2); color: var(--ink-2);
  border-radius: 0; transition: color 0.2s, background-color 0.2s;
}
.proj:first-child { border-top-color: transparent; }
.proj .ic { display: none; }
.proj:hover { color: var(--ink); }
.proj.is-active { color: var(--ink); }
.proj.is-active::before { content: ''; position: absolute; left: -6px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.proj-name { font-weight: 500; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.proj-meta { margin-top: 4px; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.drop-new {
  margin: 12px 18px 20px; padding: 20px 16px; border-radius: 22px; border: 1px dashed rgba(244, 242, 234, 0.34);
  display: grid; justify-items: center; gap: 8px; text-align: center;
  font: 400 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
body.is-dragging .drop-new { border-color: var(--signal); color: var(--ink); }
.drop-hover.proj { background: rgba(214, 236, 80, 0.12); border-radius: 14px; color: var(--ink); }
.drop-hover.drop-new { background: rgba(214, 236, 80, 0.12); border-style: solid; }

.main { overflow: auto; padding: 34px 40px 150px; position: relative; }
.main.drop-hover { background: rgba(214, 236, 80, 0.05); outline: 1px dashed var(--signal); outline-offset: -14px; border-radius: 30px; }
.ph { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.ph-title { flex: 1; min-width: 260px; }
.ph .eyebrow { margin-bottom: 12px; }
.ph h1 {
  margin: 0 0 0 -8px; padding: 0 8px; border-radius: 12px; outline: none; cursor: text;
  font: 300 clamp(36px, 3.6vw, 52px)/1.04 var(--sans); letter-spacing: -0.035em; text-wrap: balance;
}
.ph h1:hover { background: rgba(255, 255, 255, 0.06); }
.ph h1:focus { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--signal); }
.ph-meta { margin-top: 14px; display: flex; gap: 8px 18px; flex-wrap: wrap; align-items: center; font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.ph-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-3);
}
.share-btn b { font-weight: 400; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.share-btn:hover b { text-decoration-color: var(--ink); }

.hint {
  margin: 30px 0 34px; padding: 14px 0; display: flex; gap: 10px; align-items: center;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: var(--ink-3); font-size: 14.5px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 40px 28px; }
.plan { position: relative; cursor: pointer; min-width: 0; }
.sheet {
  position: relative; aspect-ratio: 1.414; background: #fff; box-shadow: var(--sheet-shadow); border-radius: 4px;
  overflow: hidden; display: grid; place-items: center; transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.plan:hover .sheet { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 12, 8, 0.2), 0 22px 44px rgba(10, 12, 8, 0.36); }
.sheet img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.4s; }
.sheet img.is-ready { opacity: 1; }
.sheet .tag { position: absolute; left: 9px; top: 9px; }
.sheet-drop {
  position: absolute; inset: 0; display: none; place-items: center; padding: 14px; text-align: center;
  background: rgba(35, 37, 31, 0.86); color: var(--ink); font: 400 11px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
}
.drop-hover .sheet-drop { display: grid; }
.drop-hover .sheet { box-shadow: 0 0 0 2px var(--signal), var(--sheet-shadow); }
.plan-name { margin-top: 14px; font-weight: 500; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.plan-meta { margin-top: 5px; display: flex; gap: 12px; align-items: center; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.plan-more {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 999px; border: 0; z-index: 2;
  display: grid; place-items: center; background: var(--char); color: var(--paper); opacity: 0; transition: opacity 0.2s;
}
.plan:hover .plan-more, .plan-more:focus-visible { opacity: 1; }

.empty {
  margin: 9vh auto 0; max-width: 620px; padding: 64px 48px; border-radius: 30px; border: 1px dashed rgba(244, 242, 234, 0.34);
  display: grid; justify-items: start; gap: 20px;
}
.empty .ic { display: none; }
.empty h2 { margin: 0; font: 300 clamp(36px, 3.4vw, 50px)/1.04 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.empty p { margin: 0 0 6px; color: var(--ink-2); font-size: 17px; max-width: 30em; }
.empty-inline { color: var(--ink-3); padding: 30px 0; font-size: 15px; }

/* ---------- reports: one glass column ---------- */
.reports {
  margin: 14px 14px 14px 0; border-radius: 26px; display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
}
.reports-head { padding: 22px 20px 16px; display: grid; gap: 14px; border-bottom: 1px solid var(--line-2); }
.reports-head .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-list { overflow: auto; flex: 1; padding: 0 0 12px; }
.rep {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start;
  margin: 0 12px; padding: 14px 8px; border-bottom: 1px solid var(--line-2); cursor: pointer; border-radius: 0;
  transition: background-color 0.2s;
}
.rep:hover { background: rgba(255, 255, 255, 0.05); border-radius: 14px; }
.rep-photo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: var(--ink-3); }
.rep-title { font-weight: 500; font-size: 15px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rep-num { font: 400 12px var(--mono); color: var(--signal); margin-right: 7px; letter-spacing: 0.04em; }
.rep.is-fixed .rep-num { color: var(--ink-3); }
.rep-meta { margin-top: 5px; font: 400 10.5px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.rep.is-fresh { animation: fresh 2.6s var(--ease); }
@keyframes fresh { 0%, 35% { background: rgba(214, 236, 80, 0.16); border-radius: 14px; } 100% { background: transparent; } }
.rep-empty { padding: 24px 22px; color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

/* ---------- paper: dialogs, menus, sheets, side panels ---------- */
.pop, dialog.dlg, .sheet-panel, .full-side, .rp-card {
  color-scheme: light; color: var(--char); background: var(--paper);
  --ink: var(--char); --ink-2: var(--char-2); --ink-3: var(--char-3); --line: var(--char-line); --line-2: var(--char-line);
}
.pop .btn, dialog.dlg .btn, .sheet-panel .btn, .full-side .btn, .rp-card .btn {
  background: transparent; color: var(--char); box-shadow: inset 0 0 0 1px rgba(35, 37, 31, 0.2); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.pop .btn:hover, dialog.dlg .btn:hover, .sheet-panel .btn:hover, .full-side .btn:hover { background: rgba(35, 37, 31, 0.05); }
dialog.dlg .btn-primary, .sheet-panel .btn-orange, .sheet-panel .btn-green, .full-side .btn-green, dialog.dlg .btn-green, .rp-card .btn-green {
  background: var(--char); color: var(--paper); box-shadow: none;
}
dialog.dlg .btn-primary::before, .sheet-panel .btn-orange::before { box-shadow: none; }
dialog.dlg .btn-primary:hover, .sheet-panel .btn-orange:hover, .sheet-panel .btn-green:hover, .full-side .btn-green:hover { background: #34372e; }
.pop .icon-btn, dialog.dlg .icon-btn, .sheet-panel .icon-btn { color: var(--char-2); }
.pop .icon-btn:hover, dialog.dlg .icon-btn:hover { background: rgba(35, 37, 31, 0.06); color: var(--char); }

.pop { position: fixed; z-index: 60; min-width: 230px; max-width: 340px; padding: 6px; border-radius: 20px; box-shadow: var(--float); }
.pop button.item, .pop a.item {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none;
  border-radius: 14px; text-align: left; font-size: 14.5px; color: var(--char); text-decoration: none;
}
.pop .item:hover { background: var(--paper-2); }
.pop .item.danger { color: #8b2c1d; }
.pop-pad { padding: 12px 14px 8px; }
.pop h3 { margin: 0 0 4px; font: 500 16px/1.3 var(--sans); }
.pop p { margin: 0 0 6px; color: var(--char-2); font-size: 13.5px; line-height: 1.45; }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; cursor: pointer; font-size: 14.5px; }
.check:hover { background: var(--paper-2); }
.check input { width: 18px; height: 18px; accent-color: var(--char); }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(16, 18, 13, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.dlg { width: min(560px, calc(100vw - 32px)); border-radius: 28px; overflow: hidden; box-shadow: var(--float); }
.card-head { height: 108px; background: url(img/tile-morning.jpg) center 40% / cover; position: relative; }
[data-scene='noon'] .card-head { background-image: url(img/tile-noon.jpg); }
[data-scene='afternoon'] .card-head { background-image: url(img/tile-afternoon.jpg); }
[data-scene='dusk'] .card-head { background-image: url(img/tile-dusk.jpg); }
.card-head .icon-btn { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, 0.22); color: #fff; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.card-head .icon-btn:hover { background: rgba(255, 255, 255, 0.34); color: #fff; }
.card-mark { width: 62px; height: 62px; border-radius: 18px; background: var(--tile); color: var(--char); display: grid; place-items: center; margin: -31px 0 0 26px; position: relative; box-shadow: 0 0 0 3px var(--paper); }
.card-mark svg { width: 30px; height: 30px; }
.dlg-head { padding: 16px 26px 4px; }
.dlg-head h2 { margin: 0; font: 500 23px/1.2 var(--sans); letter-spacing: -0.02em; }
.dlg-head p { margin: 6px 0 0; color: var(--char-2); font-size: 14.5px; }
.dlg-body { padding: 14px 26px 6px; max-height: 62vh; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 26px 24px; border-top: 1px solid var(--char-line); }
.field { display: grid; gap: 7px; margin-bottom: 16px; font: 400 10.5px/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--char-2); }
.field input, .field select, .input {
  height: 46px; border: 0; border-radius: 14px; padding: 0 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--char-line);
  font: 400 15.5px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--char);
}
.field input:focus, .input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--char); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.section-title { margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--char-line); font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--char-2); }
.note { display: flex; gap: 10px; align-items: baseline; font: 400 11px/1.6 var(--mono); letter-spacing: 0.06em; color: var(--char-2); margin: 4px 0 2px; }
.note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1.5px var(--char); flex: none; transform: translateY(-1px); }
.crew-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--char-line); }
.crew-row .name { flex: 1; font-weight: 500; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--tile); color: var(--char); font: 500 11.5px var(--mono); letter-spacing: 0.04em;
}
.add-row { display: flex; gap: 8px; margin-top: 12px; }
.add-row .input { flex: 1; }
.qr-box { display: grid; justify-items: center; gap: 14px; padding: 6px 0 4px; text-align: center; }
.qr-box #qr { padding: 14px; background: #fff; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--char-line); }
.qr-box .url { font: 400 12px var(--mono); letter-spacing: 0.04em; word-break: break-all; color: var(--char); }
.qr-box p { color: var(--char-2) !important; font-size: 14.5px; line-height: 1.5; }

/* plan modal (office) */
dialog.full { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: linear-gradient(165deg, #2b2d26, #1d1f1a); color: var(--ink); }
dialog.full::backdrop { background: #1d1f1a; }
.full-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: 64px minmax(0, 1fr); height: 100%; }
.full-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.full-top h2 { margin: 0; font: 500 18px/1.2 var(--sans); letter-spacing: -0.015em; }
.full-top .sub { font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.full-side { overflow: auto; border-radius: 26px 0 0 0; }
.side-sec { padding: 20px 24px; border-bottom: 1px solid var(--char-line); }
.side-sec h3 { margin: 0 0 12px; font: 400 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.16em; color: var(--char-2); }
.full-side .side-sec:first-child h3 { margin: 0; }
.full-side .rep { margin: 0 14px; border-bottom-color: var(--char-line); }
.full-side .rep:hover { background: var(--paper-2); }
.full-side .rep-photo { background: var(--paper-2); }
.full-side .rep-num { color: var(--char); }
.full-side .rep-num::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1.3px var(--char); margin-right: 7px; vertical-align: 1px; }
.full-side .rep.is-fixed .rep-num::before { background: transparent; }
.ver { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--char-line); }
.ver:first-of-type { border-top: 0; }
.ver .v { font: 400 13px var(--mono); width: 26px; }
.ver .d { color: var(--char-2); flex: 1; font: 400 11px var(--mono); letter-spacing: 0.06em; }
.ver a { color: var(--char-2); display: grid; }
.detail-photo { width: 100%; border-radius: 20px; display: block; background: var(--paper-2); max-height: 340px; object-fit: cover; }
.detail-comment { font: 400 21px/1.32 var(--sans); letter-spacing: -0.015em; margin: 18px 0 8px; }
.detail-meta { font: 400 10.5px/1.7 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-2); margin-bottom: 18px; }
.link-back { border: 0; background: none; padding: 0; color: var(--char-2); font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.link-back:hover { color: var(--char); }

/* ---------- plan viewer: the drawing on dark moss ---------- */
.pv { position: relative; overflow: hidden; background: linear-gradient(165deg, #2b2d26, #1d1f1a); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.pv-content { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pv-content.animate { transition: transform 0.45s var(--ease); }
.pv-sheet { position: absolute; inset: 0; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), 0 30px 60px rgba(0, 0, 0, 0.35); }
.pv-sheet canvas, .pv-sheet img { display: block; pointer-events: none; }
.pv-pins { position: absolute; inset: 0; }
.pv-loading { position: absolute; inset: 0; display: grid; place-items: center; }
.pv-zoom, .pv-pages {
  position: absolute; display: flex; overflow: hidden; border-radius: 999px; color: var(--ink);
  background: var(--glass-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.pv-zoom { right: 16px; bottom: 16px; flex-direction: column; }
.pv-zoom button { width: 46px; height: 46px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.pv-zoom button:hover { color: var(--ink); }
.pv-zoom button + button { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.pv-pages { left: 50%; bottom: 16px; transform: translateX(-50%); align-items: center; gap: 6px; padding: 4px; font: 400 12px var(--mono); letter-spacing: 0.08em; }
.pv-pages button { width: 34px; height: 34px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.pv-pages .flip svg { transform: scaleX(-1); }
.pv.is-placing { cursor: crosshair; }
.pin {
  position: absolute; width: 30px; height: 40px; cursor: pointer; color: var(--signal);
  transform-origin: 0 0; transform: scale(var(--inv, 1)) translate(-50%, -100%);
}
.pin svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--char); stroke-width: 1.8; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28)); overflow: visible; }
.pin span { position: absolute; top: 8.5px; left: 0; right: 0; text-align: center; color: var(--char); font: 500 11px/1 var(--mono); pointer-events: none; }
.pin-fixed { color: var(--char); }
.pin-fixed svg { stroke: var(--paper); }
.pin-fixed span { color: var(--paper); }
.pin.is-temp { color: var(--signal); animation: pin-drop 0.4s var(--ease); }
.pin.is-temp svg { stroke-width: 2.4; }
.pin.is-active { transform: scale(calc(var(--inv, 1) * 1.3)) translate(-50%, -100%); z-index: 2; }
@keyframes pin-drop { from { margin-top: -18px; opacity: 0; } }

/* ---------- phone preview (office) ---------- */
.phone-dock { position: fixed; right: 410px; bottom: 24px; z-index: 50; display: grid; justify-items: end; gap: 10px; }
.phone-pill { height: 44px; padding: 0 18px 0 16px; }
.phone-pill .tag { background: rgba(255, 255, 255, 0.12); color: var(--ink-2); height: 20px; }
.phone { width: 290px; height: 560px; border-radius: 46px; background: #151612; padding: 10px; box-shadow: var(--float), inset 0 0 0 1px rgba(255, 255, 255, 0.08); transform-origin: bottom right; animation: phone-in 0.5s var(--ease); }
@keyframes phone-in { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
.phone-screen { height: 100%; border-radius: 37px; background: #fff; overflow: hidden; display: flex; flex-direction: column; position: relative; color: #111; }
.phone-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #151612; }
.phone-head { padding: 44px 14px 10px; text-align: center; border-bottom: 1px solid #ececec; background: #f7f7f5; }
.phone-head .av { width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 50%; background: var(--char); color: var(--paper); display: grid; place-items: center; }
.phone-head .av svg { width: 22px; height: 22px; }
.phone-head .nm { font: 12px -apple-system, system-ui, sans-serif; color: #222; }
.phone-msgs { flex: 1; overflow: auto; padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.bubble-time { text-align: center; font: 10.5px -apple-system, system-ui, sans-serif; color: #8e8e93; margin: 8px 0 2px; }
.bubble { align-self: flex-start; max-width: 88%; background: #e9e9eb; color: #111; border-radius: 17px; padding: 8px 12px; font: 13.5px/1.35 -apple-system, system-ui, sans-serif; animation: bubble-in 0.4s var(--ease); }
.bubble a { color: #0a66e8; word-break: break-all; }
@keyframes bubble-in { from { transform: translateY(8px); opacity: 0; } }
.mail-line { align-self: flex-start; display: flex; gap: 6px; align-items: center; font: 11px -apple-system, system-ui, sans-serif; color: #8e8e93; margin-left: 4px; }
.phone-empty { margin: auto; padding: 0 30px; text-align: center; color: #8e8e93; font: 13px -apple-system, system-ui, sans-serif; }
.phone-close { position: absolute; top: 46px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.06); display: grid; place-items: center; color: #555; }

/* ---------- toasts: dark glass notes ---------- */
#toasts { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: baseline; gap: 12px; padding: 13px 18px; border-radius: 18px; max-width: 100%;
  background: var(--glass-dark); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), var(--float);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  font-size: 14.5px; line-height: 1.45; animation: toast-in 0.45s var(--ease);
}
.toast.ok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; transform: translateY(-1px); }
.toast.err::before { content: ''; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ---------- office responsive ---------- */
.reports-toggle { display: none !important; }
@media (max-width: 1180px) {
  .office { grid-template-columns: 236px minmax(0, 1fr); }
  .reports { position: fixed; top: 64px; right: 0; bottom: 0; width: 380px; z-index: 30; transform: translateX(105%); transition: transform 0.35s var(--ease); background: rgba(35, 37, 31, 0.82); }
  .reports.is-open { transform: none; }
  .reports-toggle { display: inline-flex !important; }
  .phone-dock { right: 22px; }
  .clock { display: none; }
  .top { grid-template-columns: 1fr auto; }
}
@media (max-width: 760px) {
  .office { grid-template-columns: 1fr; height: auto; }
  .side { border-right: 0; border-bottom: 1px solid var(--line-2); }
  .main { padding: 26px 16px 120px; }
  .full-grid { grid-template-columns: 1fr; grid-template-rows: 64px 60vh auto; }
  .brand-company { display: none; }
}

/* =================================================================== */
/* ---------- site (iPad) ---------- */
.site { min-height: 100dvh; display: flex; flex-direction: column; }
.site .top { position: sticky; top: 0; z-index: 20; grid-template-columns: 1fr auto; background: rgba(30, 33, 25, 0.28); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); }
.site-title { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 18px/1.2 var(--sans); letter-spacing: -0.015em; }
.site-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-body { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 44px 32px 90px; }
.greet { margin: 14px 0 0; font: 300 clamp(44px, 6vw, 72px)/1 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.greet-sub { margin: 18px 0 40px; display: flex; gap: 14px; align-items: center; font: 400 11.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.who-switch { border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.site-projects { list-style: none; margin: 0; padding: 0; }
.site-proj {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 24px 2px; border-top: 1px solid var(--line); cursor: pointer;
}
.site-proj:last-child { border-bottom: 1px solid var(--line); }
.site-proj .ico { display: none; }
.site-proj .nm { font: 400 clamp(24px, 2.6vw, 30px)/1.15 var(--sans); letter-spacing: -0.02em; }
.site-proj .mt { margin-top: 6px; font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.site-proj .chev { color: var(--ink-2); transform: scaleX(-1); }
.site-proj:active .nm { color: var(--ink-2); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 44px 28px; }
.site-grid .plan-name { font-size: 17px; }

.viewer-page { height: 100dvh; display: grid; grid-template-rows: 64px minmax(0, 1fr); overflow: hidden; background: #1d1f1a; }
.viewer-page .top { position: static; grid-template-columns: minmax(0, 1fr) auto auto; background: #23251f; }
.viewer-page .pv { height: 100%; }
.ver-chip { font: 400 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.report-fab { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; box-shadow: var(--float); }
.report-fab:active { transform: translateX(-50%) scale(0.98); }
.placing-bar, .version-banner {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 14px; padding: 7px 7px 7px 20px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-dark); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), var(--float);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); font-size: 15px;
}
.placing-bar .ic, .version-banner .ic { display: none; }
.placing-bar::before, .version-banner::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }
.placing-bar .btn, .version-banner .btn { height: 36px; }
.version-banner .btn { background: var(--paper); color: var(--char); box-shadow: none; }

.sheet-panel {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(660px, 100vw); z-index: 40;
  border-radius: 30px 30px 0 0; box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.3);
  padding: 12px 26px calc(24px + env(safe-area-inset-bottom)); animation: sheet-up 0.42s var(--ease);
  max-height: 88dvh; overflow: auto;
}
@keyframes sheet-up { from { transform: translate(-50%, 100%); } }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: rgba(35, 37, 31, 0.16); margin: 0 auto 16px; }
.sheet-panel h3 { margin: 4px 0 18px; font: 500 24px/1.2 var(--sans); letter-spacing: -0.02em; }
.photo-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.photo-btn {
  height: 116px; border-radius: 22px; border: 1px dashed rgba(35, 37, 31, 0.28); background: var(--paper-2);
  display: grid; place-items: center; align-content: center; gap: 8px; font: 500 16px var(--sans); color: var(--char);
}
.photo-preview { position: relative; }
.photo-preview img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 22px; display: block; }
.photo-preview .btn { position: absolute; right: 12px; bottom: 12px; background: rgba(35, 37, 31, 0.6) !important; color: #fff !important; box-shadow: none !important; -webkit-backdrop-filter: blur(12px) !important; backdrop-filter: blur(12px) !important; }
textarea.comment {
  width: 100%; min-height: 100px; resize: vertical; border: 0; border-radius: 20px; padding: 14px 16px;
  box-shadow: inset 0 0 0 1px var(--char-line); background: #fff; color: var(--char); font: 400 17px/1.45 var(--sans);
}
textarea.comment::placeholder { color: var(--char-3); }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn-lg { flex: 1; }
.label { display: block; margin: 0 0 10px; font: 400 11px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--char-2); }
.sheet-panel .rp-num { color: var(--char); }
.sheet-panel .detail-photo { max-height: 240px; }

/* notices: glass notes, exactly like the landing hero feed */
.banner {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80; width: min(460px, calc(100vw - 24px));
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 14px; align-items: start; padding: 15px 16px; cursor: pointer;
  border-radius: 20px; background: var(--glass-dark); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), var(--float);
  -webkit-backdrop-filter: blur(22px) saturate(1.25); backdrop-filter: blur(22px) saturate(1.25);
  animation: banner-in 0.6s var(--ease);
}
@keyframes banner-in { from { transform: translate(-50%, -130%); } }
.banner.is-out { transform: translate(-50%, -150%); transition: transform 0.4s var(--ease); }
.banner .t { grid-row: span 2; font: 400 12px/1.6 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.banner .ttl { font-weight: 500; font-size: 15px; line-height: 1.35; }
.banner .sub { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner .s { grid-row: span 2; width: 6px; height: 6px; margin-top: 8px; }

.notice-pop {
  width: min(400px, calc(100vw - 24px)); max-width: none; padding: 4px 0; border-radius: 22px;
  background: var(--glass-dark) !important; color: var(--ink) !important; color-scheme: dark;
  --ink: #f4f2ea; --ink-2: rgba(244, 242, 234, 0.76); --ink-3: rgba(244, 242, 234, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), var(--float);
  -webkit-backdrop-filter: blur(24px) saturate(1.25); backdrop-filter: blur(24px) saturate(1.25);
}
.notice-pop .hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; }
.notice-pop .hd b { font: 400 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.notice-pop .hd button { border: 0; background: none; color: var(--ink); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.notice { display: grid; grid-template-columns: 1fr 10px; gap: 10px; margin: 0 8px; padding: 13px 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; border-radius: 0; }
.notice:hover { background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
.notice > div { grid-column: 1; grid-row: 1; }
.notice .dot { grid-column: 2; grid-row: 1; width: 6px; height: 6px; border-radius: 50%; margin-top: 8px; }
.notice.is-unread .dot { background: var(--signal); }
.notice .ttl { font-weight: 500; font-size: 14.5px; line-height: 1.35; }
.notice .sub { font-size: 13px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.notice .when { font: 400 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.notice-empty { padding: 18px 18px 20px; color: var(--ink-3); font-size: 14px; }

/* name gate: the landing hero */
.gate { min-height: 100dvh; display: flex; align-items: flex-end; padding: 0 0 8vh; position: relative; }
.gate::before { content: ''; position: fixed; inset: 0; z-index: -1; background: radial-gradient(110% 85% at 0% 78%, rgba(20, 26, 24, 0.55), rgba(20, 26, 24, 0) 62%), linear-gradient(180deg, rgba(18, 21, 15, 0.3), rgba(18, 21, 15, 0.1) 42%, rgba(18, 21, 15, 0.45)), url(img/hero-morning.jpg) 62% 50% / cover; }
.gate-card { width: min(620px, 100%); padding: 0 40px; }
.gate-card .eyebrow { display: flex; align-items: center; gap: 10px; }
.gate-card .eyebrow svg { width: 22px; height: 22px; }
.gate-card h1 { margin: 22px 0 18px; font: 300 clamp(48px, 7vw, 84px)/0.98 var(--sans); letter-spacing: -0.04em; text-wrap: balance; }
.gate-card p { margin: 0 0 30px; color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 30em; }
.names { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.name-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 10px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font: 500 17px var(--sans);
  transition: background-color 0.25s, transform 0.25s;
}
.name-btn:hover { background: rgba(255, 255, 255, 0.2); }
.name-btn:active { transform: scale(0.98); }
.name-btn .avatar { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.16); color: var(--ink); }
.gate-new { display: flex; gap: 10px; max-width: 460px; }
.gate-new .input {
  flex: 1; height: 56px; border-radius: 999px; padding: 0 22px; font-size: 17px; color: var(--ink);
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.gate-new .input::placeholder { color: var(--ink-3); }
.gate-new .input:focus { box-shadow: inset 0 0 0 1.5px var(--signal); }
.gate-new .btn-primary { height: 56px; }

/* =================================================================== */
/* ---------- report page (the CEO's phone) ---------- */
.rp { max-width: 640px; margin: 0 auto; padding: 0 14px 40px; }
.rp-head { padding: 22px 6px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-head .brand { font-size: 16px; }
.rp-card { border-radius: 30px; overflow: hidden; box-shadow: var(--float); }
.rp-photo { width: 100%; height: 300px; display: block; object-fit: cover; background: url(img/tile-noon.jpg) center / cover; }
.rp-nophoto { height: 120px; background: url(img/tile-morning.jpg) center 40% / cover; }
.rp-body { padding: 0 22px 6px; }
.rp-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.rp-numtile { width: 64px; height: 64px; border-radius: 18px; background: var(--tile); display: grid; place-items: center; margin-top: -32px; position: relative; box-shadow: 0 0 0 3px var(--paper); font: 300 26px/1 var(--sans); letter-spacing: -0.03em; color: var(--char); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--char); color: var(--paper); font: 500 13px/1 var(--sans); flex: none; }
.chip.is-fixed { background: transparent; color: var(--char); box-shadow: inset 0 0 0 1px rgba(35, 37, 31, 0.24); }
.chip.is-fixed .s { background: transparent; box-shadow: inset 0 0 0 1.3px var(--char); }
.rp-num { font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--char-2); display: flex; gap: 8px; align-items: center; }
.rp-comment { font: 400 25px/1.25 var(--sans); letter-spacing: -0.02em; margin: 18px 0 10px; }
.rp-meta { font: 400 10.5px/1.8 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-2); }
.rp-plan { height: 46vh; min-height: 300px; margin: 20px 0 0; border-radius: 22px; }
.rp-foot { margin-top: 18px; padding: 14px 0 20px; border-top: 1px solid var(--char-line); display: flex; align-items: center; gap: 9px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-2); }
.rp-foot .s { box-shadow: 0 0 0 1.5px var(--char); }
.rp-actions { padding: 18px 0 0; display: grid; gap: 10px; }
.rp-actions .btn { width: 100%; }

/* ---------- small additions for the restyle ---------- */
.brand-mark { display: grid; place-items: center; }
.brand-mark .mark { width: 26px; height: 26px; display: block; }
.eyebrow .mark { width: 22px; height: 22px; }
.phone-head .av .mark { width: 22px; height: 22px; }
.card-mark .mark { width: 30px; height: 30px; }
.checks { display: flex; gap: 4px; margin-left: -12px; }
.field .check { font: 400 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; color: var(--char); }
.help { margin: 0 0 8px; color: var(--char-2); font-size: 14px; line-height: 1.5; }
.side-head .icon-btn { width: 32px; height: 32px; }
.proj .open-n { font: 400 11px var(--mono); letter-spacing: 0.06em; margin-top: 3px; }
.plan-meta .open-n { color: var(--ink); }
.reports-toggle .open-n { margin-left: 4px; font: 400 11px var(--mono); }
.rp .brand-company::before { color: var(--line); }
.rp-plan .pv-zoom { display: none; }

/* ---------- who can see a plan ---------- */
.plan-meta.hid { margin-top: 4px; gap: 6px; color: var(--ink-2); }
.plan-meta.hid .ic { flex: none; }
.vis { display: grid; }
.side-sec .vis { margin: 0 -12px; }
.vis .check { gap: 12px; }
.vis .vis-name { flex: 1; }
.vis .check .ic { color: var(--char-3); }
.vis .check:has(input:checked) .ic { color: var(--char); }
.vis .help { margin: 0 12px 8px; }
.pop .vis { padding: 0 0 6px; }

/* ---------- what was fixed ---------- */
.fix-form { margin: 2px 0 14px; }
textarea.fix-note { min-height: 84px; font-size: 16px; }
.fix-done { margin: 4px 0 16px; padding-top: 14px; border-top: 1px solid var(--char-line); }
.fix-done .label { margin-bottom: 8px; }
.fix-text { margin: 0 0 10px; font: 400 17px/1.45 var(--sans); color: var(--char); white-space: pre-wrap; }
.fix-meta { margin: 0; display: flex; align-items: center; gap: 8px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--char-2); }
.fix-meta .s { background: transparent; box-shadow: inset 0 0 0 1.3px var(--char); width: 7px; height: 7px; }
.rp-fix { padding-top: 18px; }
.rp-fix .btn { width: 100%; }
.rep-fix { margin-top: 7px; display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.rep-fix .ic { margin-top: 1px; }
.rep-fix span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* toasts sit above the phone pill in the office */
body:has(.office) #toasts { bottom: 84px; }

/* ---------- office notes + highlighted areas ---------- */
.pv-marks { position: absolute; inset: 0; }
.hl {
  position: absolute; cursor: pointer; mix-blend-mode: multiply;
  background: rgba(214, 236, 80, 0.46); outline: calc(2px * var(--inv, 1)) solid #a3bb22; border-radius: calc(4px * var(--inv, 1));
}
.hl.is-draft { background: rgba(214, 236, 80, 0.3); outline-style: dashed; pointer-events: none; }
.hl.is-active { background: rgba(214, 236, 80, 0.7); outline-color: var(--char); }
.hl span {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--inv, 1)) translate(-45%, -45%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--char); color: var(--signal); font: 500 12px/1 var(--mono);
}
.pv.is-drawing { cursor: crosshair; }
.pv-hint {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; align-items: center;
  padding: 11px 20px; border-radius: 999px; white-space: nowrap; font-size: 14.5px;
  background: var(--glass-dark); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), var(--float);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.pv-hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.crew-note { min-height: 92px; font-size: 16px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.hl-list { list-style: none; margin: 4px 0 14px; padding: 0; }
.hl-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; border-top: 1px solid var(--char-line); cursor: pointer; }
.hl-list li:first-child { border-top: 0; }
.hl-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--char); color: var(--signal); font: 500 12px/1 var(--mono); }
.hl-list li.is-active .hl-num { background: var(--signal); color: var(--char); box-shadow: inset 0 0 0 1.5px var(--char); }
.hl-text { font-size: 15.5px; line-height: 1.45; padding-top: 3px; white-space: pre-wrap; }
.hl-list .icon-btn { width: 30px; height: 30px; }
.mark-draft { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--char-line); }
.plan-meta.notes { margin-top: 4px; color: var(--ink-2); }
/* iPad */
.office-pill {
  position: absolute; left: 16px; top: 16px; z-index: 5; display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 16px;
  border: 0; border-radius: 999px; background: var(--paper); color: var(--char); font: 500 14.5px var(--sans); box-shadow: var(--float);
}
.office-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 1.5px var(--char); }
.office-note { font: 400 19px/1.45 var(--sans); letter-spacing: -0.01em; margin: 6px 0 16px; white-space: pre-wrap; }
/* the pin and highlight layers let taps through; only the marks themselves catch them */
.pv-pins, .pv-marks { pointer-events: none; }
.pin, .hl:not(.is-draft) { pointer-events: auto; }
