/* The capture screen (B14): one column the height of what she can see
   (above the keyboard on a phone), the box filling it, the buttons at the
   bottom within a thumb. */
.capture-page { margin: 0; }
.cap {
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 10px;
  height: var(--cap-h, 100dvh);
  max-width: 640px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 12px);
}
.cap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cap-head h1 { margin: 0; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cap-link { color: var(--accent); font-size: 16px; text-decoration: none; padding: 8px 0; min-width: 64px; }
.cap-link:last-child { text-align: right; }
.cap textarea {
  flex: 1; min-height: 120px; width: 100%; box-sizing: border-box; resize: none;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); color: var(--ink);
  font: 400 20px/1.5 var(--sans);
}
.cap textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.cap-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cap-photos:empty { display: none; }
.cap-photos li { position: relative; }
.cap-photos img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.cap-photo-x {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: var(--ink); color: var(--bg);
  font: 400 18px/1 var(--sans); cursor: pointer;
}
.cap-status, .cap-waiting { margin: 0; min-height: 1.2em; color: var(--soft); font-size: 15px; }
.cap-waiting { color: var(--accent); font-weight: 600; }
.cap-waiting[hidden] { display: none; }
.cap-bar { display: flex; gap: 10px; }
.cap-tool, .cap-save {
  min-height: 52px; border-radius: 999px; font: 600 17px/1 var(--sans); cursor: pointer;
}
.cap-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.cap-tool { display: flex; align-items: center; justify-content: center; gap: 6px; box-sizing: border-box; flex: 1; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.cap-tool[hidden] { display: none; }
.cap-tool[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.cap-save { flex: 1.3; border: 0; background: var(--accent); color: #fff; }
.cap-save:disabled { opacity: .6; }
.cap-tool:focus-visible, .cap-save:focus-visible, .cap-link:focus-visible, .cap-photo-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-inbox-count] {
  display: inline-block; min-width: 1.6em; margin-left: 2px; padding: 1px 7px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font: 700 14px/1.4 var(--sans); text-align: center;
}
[data-inbox-count][hidden] { display: none; }
