/* Smart Space Photo Library — matches smartspacellc.com: warm paper, ink greys, Georgia headlines,
   Raleway wordmark, square edges, small letter-spaced uppercase labels. */
:root {
  color-scheme: light;
  --ink: #191917;
  --ink-soft: #4a4844;
  --muted: #908b82;
  --line: #e7e3dc;
  --line-2: #d6d1c8;
  --paper: #fff;
  --paper-warm: #f7f5f1;
  --paper-deep: #efece6;
  --navy: #232220;
  --accent: #232220;
  --accent-soft: rgba(35, 34, 32, 0.08);
  --warn: #a8641e;
  --danger: #a33b3b;
  --ok: #3e7a52;
  --sans: "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --display: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --rail-w: 260px;
  --top-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper-warm); color: var(--ink); font: 14px/1.5 var(--sans); overflow: hidden; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: 0.01em; line-height: 1.15; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); font-size: 11.5px; word-break: break-all; color: var(--ink-soft); }
.hint { color: var(--muted); font-size: 12.5px; }
.eyebrow { display: block; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand { font-family: var(--display); font-size: 17px; letter-spacing: 0.144em; text-transform: uppercase; color: var(--navy); font-weight: 400; white-space: nowrap; }
.brand b { font-weight: 700; }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; background: var(--paper-warm); display: grid; place-items: center; padding: 24px; z-index: 100; }
.gate-box { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); padding: 44px 40px 36px; display: grid; gap: 14px; }
.gate-box .brand { font-size: 15px; }
.gate-box .eyebrow { margin-top: 18px; }
.gate-box h1 { font-size: 30px; font-weight: 300; margin-bottom: 10px; }
.gate-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; margin-bottom: 6px; }
.gate-box input { width: 100%; border: 1px solid var(--line-2); background: var(--paper); padding: 12px 12px; font: 15px var(--sans); color: var(--ink); margin-bottom: 14px; }
.gate-box input:focus { outline: none; border-color: var(--ink); }
.gate-box .btn { width: 100%; justify-content: center; }
.gate-err { color: var(--danger); font-size: 13px; margin: -6px 0 10px; }
.gate-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* ---------- buttons ---------- */
.btn { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 9px 16px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: #000; border-color: #000; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink-soft); }
.btn.ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.small { padding: 6px 11px; font-size: 10.5px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- top bar ---------- */
.top { height: var(--top-h); display: flex; align-items: center; gap: 22px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.96); }
.top-sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-left: -8px; white-space: nowrap; }
.top-nav { display: flex; gap: 26px; margin-left: 12px; }
.top-nav a { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); opacity: 0.75; padding: 6px 0; border-bottom: 1px solid transparent; }
.top-nav a:hover { opacity: 1; }
.top-nav a.active { opacity: 1; border-bottom-color: var(--ink); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.status.edit { color: var(--ok); }
.rail-toggle { display: none; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail-w) 1fr; height: calc(100% - var(--top-h)); }
.shell.viewer { grid-template-columns: 1fr; }
.rail { border-right: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; min-height: 0; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px; }
.rail-head h2 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.rail-hint { margin: 0 18px 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.col-list { list-style: none; margin: 0; padding: 0 10px; overflow: auto; flex: 1; }
.col-list li { display: flex; align-items: center; gap: 10px; padding: 8px 8px; cursor: pointer; border: 1px dashed transparent; }
.col-list li:hover { background: var(--paper-warm); }
.col-list li.active { background: var(--paper-warm); border-color: var(--line); border-style: solid; }
.col-list li.drop { border-color: var(--ink); background: var(--accent-soft); }
.col-list .cover { width: 36px; height: 36px; background: var(--paper-deep); object-fit: cover; flex: none; border: 1px solid var(--line); }
.col-list .cover.blank { display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.col-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.col-list .n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.rail-foot { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }

.main { min-width: 0; overflow: auto; padding: 18px 24px 100px; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 14px; }
.field { display: grid; gap: 5px; }
.field span { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, textarea { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); padding: 8px 10px; font: inherit; min-width: 150px; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--ink); outline: none; }
.field.grow { flex: 1 1 220px; }
.field.grow input { width: 100%; min-width: 0; }
.toggles { display: flex; gap: 14px; align-items: center; padding-bottom: 7px; }
.tog { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.tog input { accent-color: var(--navy); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); padding: 5px 11px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; font-variant-numeric: tabular-nums; transition: background 0.15s, color 0.15s; }
.chip .n { color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active .n { color: rgba(255, 255, 255, 0.7); }
.chip.drop { outline: 2px dashed var(--ink); outline-offset: 2px; }

.grid-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ---------- grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { margin: 0; position: relative; background: var(--paper); border: 1px solid var(--line); overflow: hidden; min-width: 0; user-select: none; transition: border-color 0.2s; }
.tile:hover { border-color: #c6bfb3; }
.tile.selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent-soft); }
.tile.hidden-photo { opacity: 0.45; }
.tile .ph { display: block; aspect-ratio: 1; background: #fff; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.tile .ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile .chk { position: absolute; top: 8px; left: 8px; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); cursor: pointer; opacity: 0.5; }
.tile:hover .chk, .tile.selected .chk { opacity: 1; }
.tile .flag { position: absolute; top: 8px; right: 8px; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; background: rgba(25, 25, 23, 0.72); color: #fff; }
.tile .flag.low { background: var(--warn); }
.tile .flag.hid { background: var(--danger); }
.tile .cap { padding: 8px 10px 9px; display: grid; gap: 2px; }
.tile .pr { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .sub { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .sub b { color: var(--ink-soft); font-weight: 500; }
.tile .rm { position: absolute; bottom: 8px; right: 8px; background: rgba(25, 25, 23, 0.75); color: #fff; border: 0; width: 24px; height: 24px; cursor: pointer; }
.tile .idx { position: absolute; bottom: 8px; left: 8px; background: rgba(25, 25, 23, 0.75); color: #fff; font-size: 11px; padding: 2px 6px; font-variant-numeric: tabular-nums; }
.tile.dragging { opacity: 0.4; }
.tile.drop-before { box-shadow: -3px 0 0 var(--ink); }
.tile.drop-after { box-shadow: 3px 0 0 var(--ink); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; font-family: var(--serif); font-size: 18px; }
.sentinel { height: 2px; }

/* ---------- selection bar ---------- */
.selbar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--ink); padding: 10px 14px; box-shadow: 0 14px 40px rgba(25, 25, 23, 0.18); z-index: 20; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center; }
.selbar #sel-count { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- collection view ---------- */
.col-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.col-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.crumb { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.crumb:hover { color: var(--ink); }
.col-title h1 { font-size: 30px; font-weight: 300; min-width: 60px; padding: 2px 4px; }
.col-title h1[contenteditable="true"] { border: 1px dashed var(--line-2); }
.col-count { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.col-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.col-notes { width: 100%; max-width: 820px; margin-bottom: 10px; resize: vertical; font: 14px var(--sans); }
.col-notes-ro { max-width: 80ch; color: var(--ink-soft); margin: 0 0 10px; white-space: pre-wrap; font-family: var(--serif); font-size: 16px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(25, 25, 23, 0.92); z-index: 40; }
.lb-inner { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 360px; }
.lb-image { display: grid; place-items: center; padding: 48px 56px; min-width: 0; }
.lb-image img { max-width: 100%; max-height: calc(100vh - 96px); object-fit: contain; background: #fff; }
.lb-meta { background: var(--paper); border-left: 1px solid var(--line); padding: 54px 24px 24px; overflow: auto; }
.lb-meta h2 { font-size: 24px; margin: 6px 0 18px; text-wrap: balance; }
.lb-meta dl { margin: 0 0 18px; display: grid; gap: 12px; }
.lb-meta dl div { display: grid; gap: 3px; }
.lb-meta dt { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.lb-meta dd { margin: 0; color: var(--ink-soft); }
.lb-meta dd a { color: var(--ink); border-bottom: 1px solid var(--line-2); }
.lb-meta dd select { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); padding: 6px 8px; font: inherit; }
.lb-actions { display: grid; gap: 8px; }
.lb-actions .btn { justify-content: center; }
.lb-note { color: var(--muted); font-size: 12.5px; margin: 16px 0 0; }
.lb-close, .lb-nav { position: absolute; z-index: 2; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); width: 42px; height: 42px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close { top: 14px; right: 374px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 374px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- modal + toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(25, 25, 23, 0.55); z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-box { background: var(--paper); border: 1px solid var(--line); padding: 26px; width: min(440px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(25, 25, 23, 0.25); }
.modal-box h3 { font-size: 22px; font-weight: 300; }
.modal-box p { margin: 0; color: var(--muted); font-size: 13px; }
.modal-box input[type="text"], .modal-box input[type="password"] { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); padding: 10px 10px; font: inherit; }
.modal-box input:focus { border-color: var(--ink); outline: none; }
.modal-box .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-box .list { display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.modal-box .list button { text-align: left; justify-content: space-between; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.modal-box .err { color: var(--danger); font-size: 13px; }
.toast { position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; font-size: 12.5px; letter-spacing: 0.04em; z-index: 60; box-shadow: 0 10px 30px rgba(25, 25, 23, 0.25); max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .top { gap: 10px; padding: 0 12px; }
  .top .brand { font-size: 12.5px; letter-spacing: 0.112em; }
  .top-sub, .top-nav, .status { display: none; }
  .top-right { gap: 8px; min-width: 0; }
  .top .btn.small { padding: 6px 8px; font-size: 10px; letter-spacing: 0.1em; }
  .rail-toggle { display: inline-flex; }
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; left: 0; top: var(--top-h); bottom: 0; width: 270px; transform: translateX(-100%); transition: transform 0.2s; z-index: 30; box-shadow: 0 0 40px rgba(25, 25, 23, 0.2); }
  .rail.open { transform: none; }
  .main { padding: 14px 16px 100px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lb-inner { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lb-image { padding: 56px 14px 10px; }
  .lb-image img { max-height: 52vh; }
  .lb-meta { border-left: 0; border-top: 1px solid var(--line); padding: 16px 16px; max-height: 44vh; }
  .lb-close { right: 14px; }
  .lb-next { right: 12px; }
  .lb-nav { top: 28vh; }
  .gate-box { padding: 32px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { .rail, .btn, .chip, .tile { transition: none; } }

/* wordmark: open A (chevron), matches smartspacellc.com */
.brand .lam { display: inline-block; margin-right: 0.144em; width: .74em; height: .71em; vertical-align: baseline; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M6 100 L50 3 L94 100' fill='none' stroke='%23000' stroke-width='7' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M6 100 L50 3 L94 100' fill='none' stroke='%23000' stroke-width='7' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E") center/100% 100% no-repeat; font-style: normal; }
.brand b .lam { width: .78em; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M9 100 L50 7 L91 100' fill='none' stroke='%23000' stroke-width='17' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M9 100 L50 7 L91 100' fill='none' stroke='%23000' stroke-width='17' stroke-linejoin='miter' stroke-miterlimit='10'/%3E%3C/svg%3E"); }
@media (max-width: 820px) { .top .brand .lam { margin-right: 0.112em; } }

/* ---------- client spaces ---------- */
.col-list li.grp { cursor: default; padding: 14px 8px 4px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; border: 0; background: none; }
.col-list li.grp:hover { background: none; }
.owner-sel { background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); padding: 8px 10px; font: inherit; font-size: 12.5px; max-width: 220px; }
.modal-box.wide { width: min(720px, 100%); }
.modal-box h4 { margin: 8px 0 0; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 600; font-family: var(--sans); }
.cl-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); }
.cl { width: 100%; border-collapse: collapse; font-size: 13px; }
.cl th { text-align: left; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--paper-warm); position: sticky; top: 0; }
.cl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cl tr.off td { color: var(--muted); }
.cl tr.off .code { text-decoration: line-through; }
.cl .num { text-align: right; font-variant-numeric: tabular-nums; }
.cl .code { font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.cl .acts { white-space: nowrap; text-align: right; }
.cl .acts .btn { margin-left: 4px; }
.pill { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--muted); margin-left: 4px; }
.cl-new { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-new input { width: 100%; background: var(--paper); color: var(--ink); border: 1px solid var(--line-2); padding: 10px; font: inherit; }
.cl-new input:focus { border-color: var(--ink); outline: none; }
@media (max-width: 640px) { .cl-new { grid-template-columns: 1fr; } .cl th:nth-child(3), .cl td:nth-child(3) { display: none; } .cl .acts .btn { padding: 5px 7px; } }

/* ---------- print / PDF sheet ---------- */
.print-sheet { display: none; }
@media print {
  @page { size: letter; margin: 0.5in; }
  html, body { height: auto; overflow: visible; background: #fff; }
  body.printing > *:not(.print-sheet) { display: none !important; }
  body.printing .print-sheet { display: block !important; color: #191917; font: 10.5pt/1.4 var(--sans); }
  .ps-head { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid #d6d1c8; padding-bottom: 10px; margin-bottom: 18px; }
  .ps-head .brand { font-size: 15pt; color: #232220; }
  .ps-meta { text-align: right; font-size: 9pt; color: #6b675f; line-height: 1.5; }
  .ps-title { font-family: var(--serif); font-weight: 400; font-size: 22pt; margin: 0 0 6px; }
  .ps-notes { font-family: var(--serif); font-size: 11pt; color: #4a4844; margin: 0 0 14px; white-space: pre-wrap; }
  .ps-group { margin-top: 16px; }
  .ps-group h2 { font-family: var(--sans); font-size: 8.5pt; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: #6b675f; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e7e3dc; break-after: avoid; }
  .ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
  .ps-item { margin: 0; break-inside: avoid; }
  .ps-ph { aspect-ratio: 4 / 3; border: 1px solid #e7e3dc; display: grid; place-items: center; background: #fff; overflow: hidden; }
  .ps-ph img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
  .ps-item figcaption { padding-top: 5px; font-size: 9.5pt; display: grid; gap: 1px; }
  .ps-item figcaption span { color: #6b675f; font-size: 8.5pt; }
  .ps-foot { margin-top: 22px; padding-top: 8px; border-top: 1px solid #e7e3dc; font-size: 8pt; color: #908b82; letter-spacing: 0.04em; }
  .print-sheet .brand .lam { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- add photos ---------- */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-grid .field input, .add-grid .field select { width: 100%; min-width: 0; }
.modal-box .field textarea { width: 100%; resize: vertical; font-size: 12.5px; }
.drop { border: 1px dashed var(--line-2); background: var(--paper-warm); padding: 18px; display: grid; gap: 4px; justify-items: center; text-align: center; cursor: pointer; color: var(--ink-soft); transition: border-color 0.15s, background 0.15s; }
.drop b { font-weight: 600; color: var(--ink); }
.drop span { font-size: 12.5px; color: var(--muted); }
.drop:hover, .drop.over { border-color: var(--ink); background: var(--paper-deep); }
.drop.off { pointer-events: none; opacity: 0.5; }
.ad-progress { display: grid; gap: 6px; }
.ad-bar { height: 4px; background: var(--paper-deep); }
.ad-bar i { display: block; height: 100%; width: 0; background: var(--navy); transition: width 0.2s; }
#ad-status { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ad-log { margin: 0; padding: 8px 10px 8px 26px; max-height: 160px; overflow: auto; border: 1px solid var(--line); font-size: 12px; color: var(--danger); }
.ad-log b { color: var(--ink); font-weight: 600; margin-right: 4px; }
@media (max-width: 560px) { .add-grid { grid-template-columns: 1fr; } }
