/* ==========================================================================
   Otto -- one stylesheet for the shell, the board, and the skin that brings
   Cash and Pipeline into the same look.

   The look: bone ground, ink type, Fraunces for names and numbers that
   matter, Archivo for everything else. Colour fills the object instead of
   labelling it -- each client owns a tint -- and there is one black element
   per screen, for the thing you should act on.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--ot-bone);
  color: var(--ot-ink);
  font-family: var(--ot-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--ot-gold); }
a:hover { color: #5C4319; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ot-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ot-ink); outline-offset: 2px; }

/* ---- Top bar ------------------------------------------------------------ */

.ot-top {
  position: sticky; top: 0; z-index: 120;
  display: flex; align-items: center; gap: 18px;
  height: 64px; padding: 0 28px;
  padding-top: env(safe-area-inset-top);
  background: rgba(245, 241, 233, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.ot-brand {
  font-family: var(--ot-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ot-ink); text-decoration: none; margin-right: auto;
}
.ot-brand:hover { color: var(--ot-ink); }
.ot-nav { display: flex; gap: 4px; }
.ot-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 16px; color: var(--ot-ink-2); text-decoration: none;
}
.ot-nav-link:hover { color: var(--ot-ink); background: rgba(31, 27, 22, 0.05); }
.ot-nav-on { color: var(--ot-ink); font-weight: 600; background: rgba(31, 27, 22, 0.07); }
.ot-nav-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ot-ink); color: var(--ot-bone); font-size: 12px; font-weight: 700;
}
.ot-gear {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ot-ink-2); text-decoration: none; font-size: 21px;
}
.ot-gear:hover, .ot-gear.ot-nav-on { color: var(--ot-ink); background: rgba(31, 27, 22, 0.06); }

.ot-banner {
  display: block; margin: 4px 28px 0; padding: 14px 20px; border-radius: 18px;
  background: #F2DCD4; color: #6E2A1C; text-decoration: none; font-size: 15px; font-weight: 500;
}

.ot-main, .main-content {
  max-width: 1400px; margin: 0 auto; padding: 18px 28px 40px;
}
.ot-main.ot-has-capture { padding-bottom: 140px; }

/* ---- Capture bar -------------------------------------------------------- */

.ot-capture-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 0 20px calc(20px + env(safe-area-inset-bottom));
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ot-capture-wrap > * { pointer-events: auto; width: 100%; max-width: 720px; }
.ot-capture {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 4px 22px rgba(31, 27, 22, 0.12);
}
.ot-capture input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 17px; padding: 10px 0; color: var(--ot-ink);
}
.ot-capture input::placeholder { color: rgba(31, 27, 22, 0.5); }
.ot-mic {
  width: 48px; height: 48px; flex-shrink: 0; border: none; border-radius: 50%;
  background: var(--ot-bone); color: var(--ot-ink); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.ot-mic:hover { background: var(--ot-bone-2); }
.ot-mic.ot-listening { background: var(--ot-ink); color: var(--ot-bone); box-shadow: 0 0 0 10px rgba(31, 27, 22, 0.08); }

.ot-cap-sheet {
  background: #FFFFFF; border-radius: 28px; padding: 18px;
  box-shadow: 0 -6px 34px rgba(31, 27, 22, 0.13);
  display: flex; flex-direction: column; gap: 14px;
  max-height: calc(100vh - 160px); overflow: auto;
}
.ot-cap-label { font-size: 14px; color: var(--ot-ink-3); padding: 0 6px; }
.ot-cap-read { padding: 20px 22px; border-radius: 24px; background: var(--ot-bone-2); }
.ot-cap-client { font-size: 15px; font-weight: 600; color: var(--ot-ink-2); margin-bottom: 4px; }
.ot-cap-title {
  font-family: var(--ot-serif); font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em;
  margin-bottom: 14px; word-break: break-word;
}
.ot-cap-where { font-size: 14px; color: var(--ot-ink-2); margin-top: 12px; }
.ot-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ot-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: none;
  background: rgba(255, 255, 255, 0.66); color: var(--ot-ink); font-size: 15px; line-height: 1.2;
  min-height: 40px;
}
.ot-chip:hover { background: #FFFFFF; }
.ot-chip-quiet { background: var(--ot-bone); }
.ot-chip-quiet:hover { background: var(--ot-bone-2); }
.ot-chip-on { background: var(--ot-ink); color: var(--ot-bone); }
.ot-chip-on:hover { background: #2E2822; }
.ot-chip i { font-size: 16px; }
.ot-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.15); }
.ot-chip input[type="date"] {
  border: none; background: transparent; font-size: 15px; padding: 0; color: var(--ot-ink); min-width: 0;
}

.ot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border: none; border-radius: 999px; min-height: 48px;
  background: var(--ot-ink); color: var(--ot-bone); font-size: 16px; font-weight: 600; text-decoration: none;
}
.ot-btn:hover { background: #2E2822; color: var(--ot-bone); }
.ot-btn-wide { width: 100%; }
.ot-btn-soft { background: var(--ot-bone); color: var(--ot-ink); }
.ot-btn-soft:hover { background: var(--ot-bone-2); color: var(--ot-ink); }
.ot-btn-line { background: transparent; color: var(--ot-ink); box-shadow: inset 0 0 0 1.5px rgba(31, 27, 22, 0.28); }
.ot-btn-line:hover { background: rgba(31, 27, 22, 0.05); color: var(--ot-ink); }
.ot-btn-amber { background: var(--ot-amber); color: var(--ot-ink); }
.ot-btn-amber:hover { background: #DDB873; color: var(--ot-ink); }
.ot-btn-danger { background: transparent; color: var(--ot-red); }
.ot-btn-danger:hover { background: rgba(168, 67, 47, 0.08); color: var(--ot-red); }
.ot-btn-sm { padding: 9px 16px; min-height: 40px; font-size: 15px; }

/* ---- Toast --------------------------------------------------------------- */

.ot-toast {
  position: fixed; left: 50%; bottom: calc(108px + env(safe-area-inset-bottom)); z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 14px;
  max-width: calc(100vw - 40px); padding: 13px 14px 13px 20px; border-radius: 18px;
  background: var(--ot-ink); color: var(--ot-bone); font-size: 15px;
  box-shadow: 0 10px 30px rgba(31, 27, 22, 0.25);
  transition: opacity 0.2s, transform 0.2s;
}
.ot-toast.ot-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ot-toast button, .ot-toast a {
  border: none; background: rgba(245, 241, 233, 0.14); color: var(--ot-amber);
  padding: 7px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 14px;
}
body:not(:has(.ot-capture-wrap)) .ot-toast { bottom: calc(28px + env(safe-area-inset-bottom)); }

/* ---- Sheets (bottom sheet on a phone, centred card on a desktop) ------- */

.ot-sheet-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(31, 27, 22, 0.32);
  display: flex; align-items: flex-end; justify-content: center;
}
.ot-sheet-backdrop[hidden] { display: none; }
.ot-sheet {
  width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  background: #FFFFFF; border-radius: 30px 30px 0 0;
  padding: 14px 22px calc(24px + env(safe-area-inset-bottom));
  animation: ot-sheet-up 0.24s cubic-bezier(.2, .8, .25, 1);
}
.ot-sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: rgba(31, 27, 22, 0.16); margin: 0 auto 14px; }
.ot-sheet h2 { font-family: var(--ot-serif); font-size: 28px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 18px; }
.ot-sheet-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.ot-sheet-foot .ot-spacer { flex: 1; }
@keyframes ot-sheet-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 760px) {
  .ot-sheet-backdrop { align-items: center; }
  .ot-sheet { border-radius: 30px; padding: 26px 28px; }
  .ot-sheet-grip { display: none; }
}

.ot-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ot-field > label, .ot-field > .ot-field-label { font-size: 14px; color: var(--ot-ink-2); }
.ot-field input[type="text"], .ot-field input[type="date"], .ot-field input[type="number"],
.ot-field input[type="password"], .ot-field select, .ot-field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: none;
  background: var(--ot-bone); color: var(--ot-ink); font-size: 17px; outline: none;
}
.ot-field textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
.ot-field input:focus, .ot-field select:focus, .ot-field textarea:focus { box-shadow: inset 0 0 0 2px rgba(31, 27, 22, 0.3); }
.ot-row { display: flex; gap: 12px; }
.ot-row > * { flex: 1; min-width: 0; }
.ot-seg { display: flex; padding: 4px; border-radius: 999px; background: var(--ot-bone); gap: 4px; }
.ot-seg button {
  flex: 1; border: none; background: transparent; padding: 10px 12px; border-radius: 999px;
  font-size: 15px; color: var(--ot-ink-2); min-height: 42px;
}
.ot-seg button.ot-on { background: #FFFFFF; color: var(--ot-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 27, 22, 0.1); }
.ot-hint { font-size: 14px; color: var(--ot-ink-3); line-height: 1.4; }
.ot-error { font-size: 14px; color: var(--ot-red); min-height: 1em; }

/* ---- Board --------------------------------------------------------------- */

.ob-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin: 8px 0 22px;
}
.ob-title {
  font-family: var(--ot-serif); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.025em;
}
.ob-sub { font-size: 17px; color: var(--ot-ink-2); margin-top: 8px; }

.ob-file {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 16px 16px 24px; border-radius: 24px; margin-bottom: 22px;
  background: var(--ot-ink); color: var(--ot-bone); text-decoration: none;
}
.ob-file:hover { color: var(--ot-bone); background: #2E2822; }
.ob-file-n { font-size: 18px; font-weight: 600; }
.ob-file-what { font-size: 15px; color: rgba(245, 241, 233, 0.7); flex: 1; min-width: 160px; }
.ob-file .ot-btn { pointer-events: none; }

.ob-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ob-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ob-col-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 8px 2px; }
.ob-col-name { font-size: 16px; font-weight: 600; }
.ob-col-n { font-size: 15px; color: var(--ot-ink-3); }
.ob-empty {
  padding: 18px 22px; border-radius: 22px; border: 1.5px dashed rgba(31, 27, 22, 0.16);
  font-size: 15px; color: var(--ot-ink-3); line-height: 1.4;
}

.ob-card {
  display: block; position: relative; padding: 20px 22px 18px; border-radius: 26px;
  background: var(--tint, #EFE7DC); color: var(--ot-ink); text-decoration: none;
  transition: transform 0.18s cubic-bezier(.2, .8, .25, 1), box-shadow 0.18s;
}
.ob-card:hover { color: var(--ot-ink); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(31, 27, 22, 0.08); }
.ob-card-top { display: flex; align-items: baseline; gap: 12px; }
.ob-card-name {
  font-family: var(--ot-serif); font-size: 27px; font-weight: 600; line-height: 1.05; letter-spacing: -0.015em;
  flex: 1; min-width: 0; overflow-wrap: anywhere;
}
.ob-card-meta { font-size: 15px; color: var(--ot-ink-2); white-space: nowrap; }
.ob-card-eng { font-size: 15px; font-weight: 600; color: var(--ot-ink-2); margin-top: 3px; }
.ob-card-line { font-size: 16px; line-height: 1.4; color: var(--ot-ink-2); margin-top: 6px; }
.ob-card-when { font-weight: 600; color: var(--ot-ink); }
.ob-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(31, 27, 22, 0.09); font-size: 13px; font-weight: 600; color: var(--ot-ink-2);
  white-space: nowrap;
}
.ob-lines { display: none; flex-direction: column; gap: 6px; margin-top: 14px; }
.ob-line {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.6); font-size: 15px;
}
.ob-line span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-line-when { color: var(--ot-ink-2); white-space: nowrap; }
.ob-line-when.ob-soon { font-weight: 600; color: #6B4A12; }
.ob-line i { color: var(--ot-ink-3); font-size: 15px; }
.ob-card-foot { display: none; font-size: 14px; color: var(--ot-ink-2); margin-top: 12px; padding: 0 2px; }

/* Staleness is fade: the tint washes toward the ground and the type lightens. */
.ob-fade-1 { background: color-mix(in srgb, var(--tint) 78%, #E9E5DB); }
.ob-fade-2 { background: color-mix(in srgb, var(--tint) 52%, #E9E5DB); }
.ob-fade-3 { background: color-mix(in srgb, var(--tint) 28%, #E9E5DB); }
.ob-fade-2 .ob-card-name { color: rgba(31, 27, 22, 0.8); }
.ob-fade-3 .ob-card-name { color: rgba(31, 27, 22, 0.7); }

.ob-shelf {
  margin-top: 8px; border-radius: 22px; border: 1.5px dashed rgba(31, 27, 22, 0.18);
}
.ob-shelf summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 22px; font-size: 16px; color: var(--ot-ink-2);
}
.ob-shelf summary::-webkit-details-marker { display: none; }
.ob-shelf summary .ob-shelf-n { margin-left: auto; font-size: 15px; color: var(--ot-ink-3); }
.ob-shelf-list { display: flex; flex-direction: column; gap: 4px; padding: 0 10px 12px; }
.ob-shelf-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px;
  color: var(--ot-ink); text-decoration: none; font-size: 16px;
}
.ob-shelf-row:hover { background: rgba(31, 27, 22, 0.04); color: var(--ot-ink); }
.ob-shelf-row span:nth-child(2) { flex: 1; }
.ob-shelf-row .ob-col-n { white-space: nowrap; }

.ob-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Wide screens: three columns, and cards show their top lines. */
@media (min-width: 900px) {
  .ob-lines { display: flex; }
  .ob-card-foot { display: block; }
  .ob-card .ob-card-line { display: none; }
  .ob-card.ob-nothing .ob-card-line { display: block; }
}

/* Phones: one stack, sections in order, cards set down slightly askew. */
@media (max-width: 899px) {
  .ob-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ob-card:nth-child(4n+1) { transform: rotate(-0.5deg); }
  .ob-card:nth-child(4n+2) { transform: rotate(0.4deg); }
  .ob-card:nth-child(4n+3) { transform: rotate(-0.3deg); }
  .ob-card:nth-child(4n+4) { transform: rotate(0.35deg); }
  .ob-card:hover { transform: none; box-shadow: none; }
  .ob-col-empty-them, .ob-col-empty-steady { display: none; }
}

@media (max-width: 700px) {
  .ot-top { padding: 0 14px 0 20px; gap: 6px; height: 58px; }
  .ot-brand { font-size: 24px; }
  .ot-nav-link { padding: 8px 11px; font-size: 15px; }
  .ot-gear { width: 40px; height: 40px; }
  .ot-main, .main-content { padding: 12px 16px 32px; }
  .ot-main.ot-has-capture { padding-bottom: 130px; }
  .ot-capture-wrap { padding: 0 14px calc(14px + env(safe-area-inset-bottom)); }
  .ot-banner { margin: 4px 16px 0; }
  .ob-title { font-size: 38px; }
  .ob-file { border-radius: 22px; }
}

/* Phones narrower than the nav plus the brand: drop the gear's label room. */
@media (max-width: 380px) {
  .ot-nav-link { padding: 8px 8px; font-size: 14px; }
  .ot-brand { font-size: 22px; }
}

/* ---- One engagement ------------------------------------------------------ */

body[data-page="engagement"] { background: var(--tint, var(--ot-bone)); }
body[data-page="engagement"] .ot-top { background: color-mix(in srgb, var(--tint, #F5F1E9) 92%, transparent); }

.oe { max-width: 760px; margin: 0 auto; }
.oe-back {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ot-ink-2); text-decoration: none;
  font-size: 16px; margin: 4px 0 18px;
}
.oe-back i {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(31, 27, 22, 0.08);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ot-ink); font-size: 18px;
}
.oe-back:hover { color: var(--ot-ink); }
.oe-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.oe-name {
  flex: 1; min-width: 0; font-family: var(--ot-serif); font-size: 52px; font-weight: 600;
  line-height: 0.98; letter-spacing: -0.03em; overflow-wrap: anywhere;
}
.oe-eng { font-size: 18px; font-weight: 600; color: var(--ot-ink-2); margin-bottom: 6px; }
.oe-sum { font-size: 18px; line-height: 1.45; color: var(--ot-ink-2); margin-bottom: 22px; }
.oe-menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex-shrink: 0; margin-top: 4px;
  background: rgba(31, 27, 22, 0.08); color: var(--ot-ink); font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.oe-menu-btn:hover { background: rgba(31, 27, 22, 0.13); }
.oe-links { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 20px; }

.oe-sec { background: var(--ot-bone); border-radius: 28px; padding: 18px 16px 10px; margin-bottom: 14px; }
.oe-sec.oe-sec-soft { background: rgba(245, 241, 233, 0.55); }
.oe-sec-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 8px 10px; gap: 12px; }
.oe-sec-name { font-size: 15px; color: var(--ot-ink-2); }
.oe-sec-act { border: none; background: transparent; color: var(--ot-ink-2); font-size: 15px; padding: 4px 6px; border-radius: 8px; }
.oe-sec-act:hover { color: var(--ot-ink); background: rgba(31, 27, 22, 0.05); }

.oe-row-wrap { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 8px; }
.oe-reveal {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px; font-size: 15px; font-weight: 600; color: #FFFFFF;
}
.oe-reveal-done { background: #4F8A66; }
.oe-reveal-hand { background: #B98A3A; justify-content: flex-end; }
.oe-reveal span { display: inline-flex; align-items: center; gap: 8px; }
.oe-row {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 13px 10px 13px 14px; border-radius: 18px; background: #FFFFFF;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  transition: transform 0.22s cubic-bezier(.2, .8, .25, 1);
}
.oe-row.oe-dragging { transition: none; }
.oe-check {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 2px solid rgba(31, 27, 22, 0.22);
  background: transparent; display: inline-flex; align-items: center; justify-content: center;
  color: transparent; font-size: 16px; padding: 0;
}
.oe-check:hover { border-color: #4F8A66; color: #4F8A66; }
.oe-check.oe-check-on { background: #4F8A66; border-color: #4F8A66; color: #FFFFFF; }
.oe-row-main { flex: 1; min-width: 0; cursor: pointer; }
.oe-row-title { font-size: 17px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.oe-row-sub { font-size: 14px; color: var(--ot-ink-2); margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.oe-row-sub i { font-size: 15px; }
.oe-row-when { font-size: 15px; color: var(--ot-ink-2); white-space: nowrap; }
.oe-row-when.ob-soon { font-weight: 600; color: #6B4A12; }
.oe-row-more {
  width: 38px; height: 38px; border: none; border-radius: 50%; background: transparent; flex-shrink: 0;
  color: var(--ot-ink-3); font-size: 18px; display: inline-flex; align-items: center; justify-content: center;
}
.oe-row-more:hover { background: var(--ot-bone); color: var(--ot-ink); }
.oe-row.oe-them { background: rgba(255, 255, 255, 0.6); }
.oe-row.oe-done .oe-row-title { text-decoration: line-through; color: var(--ot-ink-3); }
.oe-empty { padding: 4px 8px 12px; font-size: 15px; color: var(--ot-ink-3); }

.oe-rec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 6px; cursor: pointer; }
.oe-rec:hover { background: rgba(255, 255, 255, 0.6); }
.oe-rec-main { flex: 1; min-width: 0; }
.oe-rec-title { font-size: 16px; }
.oe-rec-cad { font-size: 14px; color: var(--ot-ink-2); }
.oe-rec-next { font-size: 15px; color: var(--ot-ink-2); white-space: nowrap; }

.oe-log { padding: 6px 8px 8px; }
.oe-log-add { display: flex; gap: 8px; margin-bottom: 12px; }
.oe-log-add input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: none; background: #FFFFFF;
  font-size: 16px; outline: none;
}
.oe-log-row { display: flex; gap: 14px; font-size: 15px; line-height: 1.4; padding: 5px 0; color: var(--ot-ink-2); }
.oe-log-date { width: 56px; flex-shrink: 0; color: var(--ot-ink-3); }
.oe-log-note { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.oe-done-list summary { list-style: none; cursor: pointer; }
.oe-done-list summary::-webkit-details-marker { display: none; }

/* New from the client: the one dark block on the page, sorted in a pass. */
.oe-sec.oe-sec-new { background: var(--ot-ink); color: var(--ot-bone); padding-bottom: 14px; }
.oe-sec-new .oe-sec-name { color: var(--ot-bone); font-weight: 600; }
.oe-new { background: #2E2822; border-radius: 18px; padding: 14px; margin-bottom: 8px; }
.oe-new:last-child { margin-bottom: 0; }
.oe-new-title { font-size: 17px; font-weight: 500; line-height: 1.3; cursor: pointer; overflow-wrap: anywhere; }
.oe-new-note { font-size: 15px; line-height: 1.4; color: rgba(245, 241, 233, 0.78); margin-top: 6px; white-space: pre-line; overflow-wrap: anywhere; }
.oe-new-meta { font-size: 13px; color: rgba(245, 241, 233, 0.66); margin: 4px 0 12px; }
.oe-new-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.oe-new-acts button {
  padding: 9px 14px; min-height: 40px; border: none; border-radius: 999px;
  background: rgba(245, 241, 233, 0.14); color: var(--ot-bone); font-size: 14px;
}
.oe-new-acts button:hover { background: rgba(245, 241, 233, 0.24); }
.oe-new-acts button:first-child { background: var(--ot-amber); color: var(--ot-ink); font-weight: 600; }

.oe-group { font-size: 13px; font-weight: 600; color: var(--ot-ink-2); padding: 6px 10px 6px; }
.oe-row-answer {
  margin-top: 6px; padding: 8px 12px; border-radius: 12px; background: var(--ot-bone);
  font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere;
}
.oe-row-sub b { font-weight: 600; color: var(--ot-ink); }
.oe-answer { padding: 14px 16px; border-radius: 16px; background: var(--ot-bone); margin-bottom: 16px; white-space: pre-line; line-height: 1.45; }
.oe-answer-who { font-size: 13px; font-weight: 600; color: var(--ot-ink-2); margin-bottom: 4px; }
.oe-check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: 0 0 14px; cursor: pointer; }
.oe-check-line input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ot-ink); flex-shrink: 0; }
.oe-check-line span { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oe-share-box { padding: 16px 18px; border-radius: 18px; background: var(--ot-bone); margin-bottom: 4px; }
.oe-share-box .ot-hint { margin: -6px 0 12px 30px; }
.oe-share-link { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.oe-share-link input {
  flex: 1 1 200px; min-width: 0; padding: 10px 14px; border-radius: 999px; border: none; background: #FFFFFF;
  font-size: 14px; color: var(--ot-ink-2);
}
.oe-lock { font-size: 15px; color: var(--ot-ink-3); }
.ob-line.ob-line-client { background: rgba(255, 255, 255, 0.85); font-weight: 500; }

/* A text shared in from another app. */
.sh-title {
  width: 100%; border: none; outline: none; background: transparent; padding: 0;
  font-family: var(--ot-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; color: var(--ot-ink);
  margin-bottom: 12px;
}
.sh-quote {
  padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.6);
  font-size: 15px; line-height: 1.4; color: rgba(31, 27, 22, 0.8); white-space: pre-line; overflow-wrap: anywhere;
  max-height: 180px; overflow: auto;
}
.ot-cap-where i { font-size: 15px; vertical-align: -2px; }

/* ---- To file -------------------------------------------------------------- */

.oi { max-width: 760px; margin: 0 auto; }
.oi-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 4px 18px; }
.oi-title { font-family: var(--ot-serif); font-size: 42px; font-weight: 600; letter-spacing: -0.025em; }
.oi-card { position: relative; border-radius: 26px; overflow: hidden; margin-bottom: 12px; }
.oi-card-in {
  position: relative; padding: 20px 22px; background: #FFFFFF; border-radius: 26px;
  display: flex; flex-direction: column; gap: 12px;
  touch-action: pan-y; transition: transform 0.22s cubic-bezier(.2, .8, .25, 1);
}
.oi-card-in.oe-dragging { transition: none; }
.oi-drop-reveal {
  position: absolute; inset: 0; background: #8E8577; color: #FFFFFF; font-weight: 600;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 24px; gap: 8px;
}
.oi-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ot-ink-2); flex-wrap: wrap; }
.oi-subject {
  font-family: var(--ot-serif); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.oi-snippet { font-size: 15px; color: var(--ot-ink-2); line-height: 1.4; }
.oi-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.oi-sugg {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px;
  font-size: 15px; font-weight: 600; flex: 1; min-width: 0;
}
.oi-sugg small { font-weight: 400; color: var(--ot-ink-2); font-size: 14px; }
.oi-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ot-ink-2); }
.oi-remember input { width: 18px; height: 18px; accent-color: var(--ot-ink); }

/* ---- Settings ------------------------------------------------------------- */

.os { max-width: 860px; margin: 0 auto; }
.os-title { font-family: var(--ot-serif); font-size: 42px; font-weight: 600; letter-spacing: -0.025em; margin: 8px 4px 22px; }
.os-sec { background: #FFFFFF; border-radius: 28px; padding: 22px 24px; margin-bottom: 18px; }
.os-sec h2 { font-family: var(--ot-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.os-sec > p { color: var(--ot-ink-2); margin-bottom: 16px; line-height: 1.5; }
.os-client {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--ot-line);
}
.os-client:first-of-type { border-top: none; }
.os-swatch { width: 44px; height: 44px; border-radius: 14px; border: none; box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.08); }
.os-client-name { font-size: 17px; font-weight: 600; }
.os-client-sub { font-size: 14px; color: var(--ot-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.os-acct { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--ot-line); flex-wrap: wrap; }
.os-acct:first-of-type { border-top: none; }
.os-acct-main { flex: 1; min-width: 200px; }
.os-acct-email { font-size: 17px; font-weight: 600; }
.os-status { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.os-ok { color: var(--ot-green); }
.os-bad { color: var(--ot-red); }
.os-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.os-swatches button { width: 42px; height: 42px; border-radius: 12px; border: none; box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.1); }
.os-swatches button.ot-on { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--ot-ink); }
.os-steps { margin: 0 0 6px; padding-left: 22px; color: var(--ot-ink-2); line-height: 1.6; }

/* ---- Login ---------------------------------------------------------------- */

.ol { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ol-card { width: 100%; max-width: 380px; padding: 32px 28px; border-radius: 30px; background: #FFFFFF; }
.ol-brand { font-family: var(--ot-serif); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 4px; }
.ol-sub { color: var(--ot-ink-2); margin-bottom: 24px; }

/* ==========================================================================
   Cash and Pipeline, in the same look.

   Their own stylesheets still load (src/views/timeline.js, pipeline.js and
   the page in routes/cashflow.js) and still do the layout. Everything here
   is surface: cards lose their outlines and get room, headings move to
   Fraunces, verdicts become tinted cards, controls round off. Where a rule
   below overrides one of theirs, it is scoped under .cf-page so it wins on
   specificity and not on load order.
   ========================================================================== */

/* The button classes Cash and Pipeline use (they lived in the old layout). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 10px 18px; min-height: 42px;
  font-family: var(--ot-sans); font-size: 15px; font-weight: 500; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-primary { background: var(--ot-ink); color: var(--ot-bone); }
.btn-primary:hover { background: #2E2822; color: var(--ot-bone); }
.btn-secondary { background: #FFFFFF; color: var(--ot-ink); box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.14); }
.btn-secondary:hover { background: var(--ot-bone); color: var(--ot-ink); }
.btn-ghost { background: transparent; color: var(--ot-ink-2); }
.btn-ghost:hover { background: rgba(31, 27, 22, 0.05); color: var(--ot-ink); }
.btn-sm { padding: 8px 15px; min-height: 38px; font-size: 14px; }

.cf-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.cf-pagehead .ob-title { margin: 0; }
.cf-page .cf-tabs { margin: 0; padding: 4px; gap: 4px; border-radius: 999px; background: var(--ot-bone-2); }
.cf-page .cf-tab {
  border: none; background: transparent; color: var(--ot-ink-2);
  font-size: 15px; padding: 9px 16px; min-height: 40px;
}
.cf-page .cf-tab.active { background: #FFFFFF; color: var(--ot-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(31, 27, 22, 0.1); }
.cf-page[data-view="pipeline"] .cf-tabs { display: none; }

.cf-page .btn { border-radius: 999px; padding: 10px 18px; font-size: 15px; min-height: 42px; }
.cf-page .btn-sm { padding: 8px 15px; font-size: 14px; min-height: 38px; }
.cf-page .btn-primary { background: var(--ot-ink); color: var(--ot-bone); }
.cf-page .btn-secondary { background: #FFFFFF; border: none; box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.14); color: var(--ot-ink); }
.cf-page .btn-ghost { color: var(--ot-ink-2); }
.cf-modal .btn { border-radius: 999px; padding: 10px 18px; font-size: 15px; min-height: 42px; }
.cf-modal .btn-primary { background: var(--ot-ink); color: var(--ot-bone); }

.cf-page .cf-anchor { border: none; border-radius: 28px; padding: 20px 24px; gap: 20px; box-shadow: none; }
.cf-page .cf-field label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ot-ink-2); font-weight: 400; }
.cf-page .cf-field input, .cf-page .cf-field select { border: none; background: var(--ot-bone); border-radius: 12px; padding: 10px 14px; font-size: 16px; }
.cf-page .cf-field-balance input { font-family: var(--ot-serif); font-size: 24px; font-weight: 600; }
.cf-page .cf-stat-label, .cf-page .tl-stat-label, .cf-page .tl-verdict-eyebrow, .cf-page .pl-stat-label,
.cf-page .tl-month-name, .cf-page .tl-day-eod-label, .cf-page .pl-due-when {
  text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500;
}

.cf-page .cf-alert { border-radius: 18px; border-left: none; padding: 14px 18px; font-size: 15px; }
.cf-page .cf-alert-danger { background: #F2DCD4; color: #6E2A1C; }
.cf-page .cf-alert-warn { background: #F5E2C2; color: #5A4214; }

/* Timeline */
.cf-page .tl-verdict { border: none; border-radius: 28px; padding: 26px 28px; background: #F5E2C2; gap: 24px; }
.cf-page .tl-verdict.tl-danger { background: #F2DCD4; }
.cf-page .tl-verdict.tl-clear { background: #DCE8DB; }
.cf-page .tl-verdict-line { font-family: var(--ot-serif); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cf-page .tl-verdict-note { font-size: 16px; color: var(--ot-ink-2); }
.cf-page .tl-stat-val { font-family: var(--ot-serif); font-size: 28px; font-weight: 600; }
.cf-page .tl-scn { border: none; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(31, 27, 22, 0.1); padding: 8px 10px 8px 14px; font-size: 15px; }
.cf-page .tl-scn.tl-scn-on { box-shadow: inset 0 0 0 1.5px var(--ot-ink); }
.cf-page .tl-scn-add { padding: 8px 16px; font-size: 15px; }
.cf-page .tl-chart-card, .cf-page .tl-solver, .cf-page .tl-month, .cf-page .tl-day,
.cf-page .cf-panel, .cf-page .pl-stat, .cf-page .pl-cover, .cf-page .pl-card, .cf-page .pl-empty {
  border: none; border-radius: 24px; box-shadow: none;
}
.cf-page .tl-chart-card { padding: 20px 22px 10px; }
.cf-page .tl-chart-title, .cf-page .tl-agenda-title { font-family: var(--ot-serif); font-size: 22px; font-weight: 600; color: var(--ot-ink); letter-spacing: -0.01em; }
.cf-page .tl-chart-hint { font-size: 13px; }
.cf-page .tl-solver { padding: 20px 24px; font-size: 18px; }
.cf-page .tl-solver input[type="date"] { border: none; border-radius: 12px; background: var(--ot-bone); font-size: 16px; padding: 10px 14px; }
.cf-page .tl-solver-answer { font-family: var(--ot-serif); font-size: 30px; }
.cf-page .tl-month { border-top: none; padding: 16px 18px; }
.cf-page .tl-month.tl-month-breach { background: #F7E6E0; }
.cf-page .tl-month-net { font-family: var(--ot-serif); font-size: 24px; font-weight: 600; }
.cf-page .tl-month-divider, .cf-page .cf-month-divider, .cf-page .cf-cal-month-label {
  font-family: var(--ot-serif); font-size: 24px; font-weight: 600; color: var(--ot-ink); letter-spacing: -0.015em;
  border-bottom: none; padding-bottom: 0;
}
.cf-page .tl-day { padding: 14px 18px; }
.cf-page .tl-day.tl-day-breach { background: #F7E6E0; border: none; }
.cf-page .tl-day.tl-day-today { box-shadow: inset 0 0 0 2px var(--ot-amber); }
.cf-page .tl-day-date { font-size: 16px; }
.cf-page .tl-item { border-radius: 12px; padding: 7px 10px; background: var(--ot-bone); }
.cf-page .tl-item:hover { background: var(--ot-bone-2); }
.cf-page .tl-item-label, .cf-page .tl-item-amt { font-size: 15px; }

/* Ledger and calendar */
.cf-page .cf-row { border: none; border-radius: 12px; padding: 9px 10px; margin-bottom: 4px; }
.cf-page .cf-row-label, .cf-page .cf-row-amt, .cf-page .cf-row-bal { font-size: 15px; }
.cf-page .cf-day-date { font-size: 15px; }
.cf-page .cf-day-today .cf-day-head { background: rgba(232, 200, 138, 0.3); border-radius: 12px; }
.cf-page .cf-cal-cell { border: none; border-radius: 14px; }
.cf-page .cf-cal-empty { background: transparent; }
.cf-page .cf-cal-today { box-shadow: inset 0 0 0 2px var(--ot-amber); }
.cf-page .cf-cal-neg { background: #F7E6E0; }
.cf-page .cf-row.cf-cal-item { border-radius: 8px; background: var(--ot-bone); }
.cf-page .cf-panel-head { font-size: 16px; padding: 16px 20px; }
.cf-page .cf-panel-body { border-top: 1px solid var(--ot-line); }
.cf-page .cf-rec-row { border-bottom: 1px solid var(--ot-line); }
.cf-page .cf-rec-day { border-radius: 999px; }

/* Pipeline */
.cf-page .pl-due { border: none; border-radius: 28px; padding: 24px 26px; background: #F5E2C2; }
.cf-page .pl-due.pl-due-none { background: #DCE8DB; }
.cf-page .pl-due.pl-due-late { background: #F2DCD4; }
.cf-page .pl-due-head { font-family: var(--ot-serif); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.cf-page .pl-due-row { border-radius: 12px; padding: 8px 10px; font-size: 16px; }
.cf-page .pl-due-row:hover { background: rgba(255, 255, 255, 0.55); }
.cf-page .pl-stat { padding: 16px 20px; }
.cf-page .pl-stat-val { font-family: var(--ot-serif); font-size: 28px; font-weight: 600; }
.cf-page .pl-cover { padding: 20px 24px; }
.cf-page .pl-cover-line { font-size: 17px; }
.cf-page .pl-cover-line b { font-family: var(--ot-serif); font-size: 24px; }
.cf-page .pl-cover-bar { height: 8px; border-radius: 4px; }
.cf-page .pl-client-name {
  font-family: var(--ot-serif); font-size: 26px; font-weight: 600; color: var(--ot-ink); letter-spacing: -0.015em;
  border-bottom: none; padding: 0 6px;
}
.cf-page .pl-card { margin-bottom: 10px; }
.cf-page .pl-card.pl-card-due { box-shadow: inset 0 0 0 2px #E2B7A9; }
.cf-page .pl-card.pl-card-modelled { border-left: none; box-shadow: inset 4px 0 0 var(--ot-amber); }
.cf-page .pl-card-head { padding: 16px 20px; }
.cf-page .pl-card-title { font-size: 18px; }
.cf-page .pl-card-meta { font-size: 14px; }
.cf-page .pl-card-amt { font-family: var(--ot-serif); font-size: 22px; font-weight: 600; }
.cf-page .pl-card-body { padding: 0 20px 18px; border-top: 1px solid var(--ot-line); }
.cf-page .pl-chip { font-size: 12px; text-transform: none; letter-spacing: 0; padding: 4px 10px; }
.cf-page .pl-log-entry, .cf-page .pl-card-notes { font-size: 15px; }
.cf-page .pl-log-add input { border: none; border-radius: 999px; background: var(--ot-bone); padding: 10px 16px; font-size: 15px; }
.cf-page .pl-closed-head { font-family: var(--ot-serif); font-size: 22px; font-weight: 600; color: var(--ot-ink); }
.cf-page .pl-board-link { font-size: 14px; }

/* Modals and the row menu */
.cf-modal { border-radius: 28px; }
.cf-modal-head { border-bottom: none; padding: 22px 24px 6px; }
.cf-modal-head h3 { font-family: var(--ot-serif); font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.cf-modal-body { padding: 14px 24px; }
.cf-modal-foot { border-top: none; padding: 8px 24px 22px; }
.cf-modal-field label { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ot-ink-2); font-weight: 400; }
.cf-modal-field input, .cf-modal-field select { border: none; background: var(--ot-bone); border-radius: 12px; padding: 12px 14px; font-size: 16px; }
.cf-seg { border: none; background: var(--ot-bone); border-radius: 999px; padding: 4px; gap: 4px; }
.cf-seg button { border-radius: 999px; background: transparent; padding: 9px; }
.cf-ctx { border: none; border-radius: 16px; padding: 6px; }
.cf-ctx button { border-radius: 10px; font-size: 15px; padding: 10px 12px; }

@media (max-width: 700px) {
  .cf-page .tl-verdict { padding: 22px 22px; }
  .cf-page .tl-verdict-line { font-size: 27px; }
  .cf-page .cf-anchor { padding: 18px; }
  .cf-pagehead { margin-bottom: 16px; }
  .cf-page .cf-tab { padding: 8px 12px; }
  .cf-page .pl-due { padding: 20px; }
  .cf-page .pl-due-head { font-size: 25px; }
  .cf-page .pl-due-row { flex-wrap: wrap; gap: 0 10px; }
  .cf-page .pl-due-when { min-width: 0; flex-basis: 100%; }
  .cf-page .pl-due-what { white-space: normal; }
  .cf-page .pl-worth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cf-page .pl-stat-val { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .ob-card, .oe-row, .oi-card-in, .ot-toast, .ot-sheet { transition: none; animation: none; }
  .ob-card:nth-child(n) { transform: none; }
}

/* ---- Time ------------------------------------------------------------------ */

.ob-card-hours { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ot-ink-2); margin-top: 10px; }
.ob-card-hours i { font-size: 15px; }

/* The board's catch-up question: a day you worked and logged nothing. */
.ob-catch {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 16px 14px 22px; border-radius: 22px; margin-bottom: 12px;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(31, 27, 22, 0.12);
}
.ob-catch-q { flex: 1 1 260px; font-size: 15px; line-height: 1.4; color: var(--ot-ink-2); }
.ob-catch-q b { color: var(--ot-ink); font-weight: 600; }
.ob-catch-more { font-size: 13px; color: var(--ot-ink-3); white-space: nowrap; }
.ob-catch-a { display: flex; flex-wrap: wrap; gap: 6px; }
.ob-catch-a button {
  min-height: 40px; padding: 8px 14px; border: none; border-radius: 999px;
  background: var(--ot-bone); color: var(--ot-ink); font-size: 15px; font-weight: 600;
}
.ob-catch-a button:hover { background: var(--ot-bone-2); }
.ob-catch-a .ob-catch-no { font-weight: 400; color: var(--ot-ink-2); background: transparent; }
.ob-catch-a .ob-catch-no:hover { background: rgba(31, 27, 22, 0.05); }

.oe-time-sum { padding: 2px 8px 12px; }
.oe-time-big { font-size: 17px; color: var(--ot-ink-2); }
.oe-time-big b { font-family: var(--ot-serif); font-size: 34px; font-weight: 600; color: var(--ot-ink); letter-spacing: -0.02em; margin-right: 2px; }
.oe-time-bar { height: 8px; border-radius: 4px; background: rgba(31, 27, 22, 0.08); margin: 8px 0 8px; overflow: hidden; }
.oe-time-bar span { display: block; height: 100%; border-radius: 4px; background: var(--ot-ink); }
.oe-time-pace { font-size: 15px; color: var(--ot-ink-2); }
.oe-time-inv { font-size: 15px; font-weight: 600; margin-top: 6px; }
.oe-time-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.oe-time-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
  width: 100%; text-align: left; border: none; background: #FFFFFF; border-radius: 14px; padding: 10px 14px;
  font-size: 15px; color: var(--ot-ink);
}
.oe-time-row:hover { background: rgba(255, 255, 255, 0.7); }
.oe-time-day { color: var(--ot-ink-2); white-space: nowrap; }
.oe-time-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oe-time-h { font-weight: 600; white-space: nowrap; }
.oe-time-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 8px; }
.oe-report-text { width: 100%; min-height: 260px; border: none; border-radius: 14px; background: var(--ot-bone); padding: 14px 16px; font-family: var(--ot-sans); font-size: 15px; line-height: 1.5; }

/* A toast with a few one-tap answers ("Done. How long?"). */
.ot-toast.ot-toast-many { flex-wrap: wrap; gap: 8px; max-width: min(520px, calc(100vw - 32px)); }
.ot-toast.ot-toast-many > span { flex-basis: 100%; }

/* ---- Time Tracker page ----------------------------------------------------- */

body[data-page="tracker"] { background: var(--tint, var(--ot-bone)); }
body[data-page="tracker"] .ot-top { background: color-mix(in srgb, var(--tint, #F5F1E9) 92%, transparent); }
.ot-tracker { max-width: 760px; margin: 0 auto; }
.ot-tracker .oe-head { align-items: center; }
.tt-form { display: grid; grid-template-columns: 110px minmax(0, 1fr) 170px; gap: 12px; padding: 0 8px; align-items: end; }
.tt-form .ot-field { margin-bottom: 8px; }
.tt-hint { padding: 0 8px; }
.tt-settings .ot-sheet-foot { padding: 0 8px 8px; }
.tt-period .oe-time-big b { font-size: 30px; }
@media (max-width: 600px) {
  .tt-form { grid-template-columns: 1fr 1fr; }
  .tt-form .tt-per { grid-column: 1 / -1; grid-row: 2; }
}
.tt-settings .ot-field input { background: #FFFFFF; }
.oe-time-more { display: block; padding: 6px 14px 2px; font-size: 14px; color: var(--ot-ink-2); }

/* ---- Notes ------------------------------------------------------------------ */
/* Loose notes on the bone ground: white paper cards, pinned ones in amber.
   The editor is the whole screen on a phone and a card in the middle on a
   desktop. */

.on-head { align-items: center; }
.on-head .ot-btn i { font-size: 18px; }

.on-search {
  display: flex; align-items: center; gap: 10px; max-width: 520px;
  margin: 0 0 22px; padding: 0 18px; border-radius: 999px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--ot-line);
}
.on-search i { color: var(--ot-ink-3); font-size: 19px; }
.on-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 13px 0; font-size: 16px; color: var(--ot-ink);
}
.on-search:focus-within { box-shadow: inset 0 0 0 2px rgba(31, 27, 22, 0.3); }

.on-section { font-size: 14px; font-weight: 600; color: var(--ot-ink-3); margin: 6px 6px 10px; letter-spacing: 0.02em; }
.on-section + .on-grid { margin-bottom: 26px; }

.on-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; align-items: start;
}

.on-card {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 20px 14px; border-radius: 22px;
  background: #FFFFFF; color: var(--ot-ink); cursor: text;
  box-shadow: 0 1px 2px rgba(31, 27, 22, 0.05);
  transition: box-shadow 0.15s, transform 0.15s;
}
.on-card:hover { box-shadow: 0 8px 22px rgba(31, 27, 22, 0.08); transform: translateY(-1px); }
.on-card.on-pinned { background: #F7EAD0; }
.on-card.on-archived { background: var(--ot-bone-2); cursor: default; }
.on-card.on-archived:hover { transform: none; box-shadow: none; }

/* Long notes are cut at a height and fade out; the editor has the rest. */
.on-face {
  max-height: 330px; overflow: hidden; overflow-wrap: anywhere;
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
          mask-image: linear-gradient(to bottom, #000 82%, transparent);
  -webkit-mask-size: 100% 330px; mask-size: 100% 330px; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.on-title {
  font-family: var(--ot-serif); font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.on-line { font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.on-gap { height: 0.6em; }
.on-face a { color: var(--ot-gold); }

.on-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 3px 0;
  padding-left: calc(var(--indent, 0) * 0.5em);
  font-size: 15px; line-height: 1.4; cursor: pointer;
}
.on-check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px rgba(31, 27, 22, 0.4); background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.on-check input:checked { background: var(--ot-ink); box-shadow: none; }
.on-check input:checked::after {
  content: ''; width: 5px; height: 10px; margin-top: -2px;
  border: solid var(--ot-bone); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.on-check.on-done span { color: var(--ot-ink-3); text-decoration: line-through; }

.on-foot {
  display: flex; align-items: center; gap: 8px; min-height: 22px; margin-top: 10px;
  font-size: 13px; color: var(--ot-ink-3);
}
.on-foot .ti { font-size: 16px; color: var(--ot-gold); }
.on-foot .on-when { margin-left: auto; white-space: nowrap; }
.on-foot .ot-btn { margin-left: 6px; }

.on-empty { max-width: 560px; }
.on-empty code { font-size: 14px; background: rgba(31, 27, 22, 0.06); padding: 1px 6px; border-radius: 6px; }

/* ---- Notes: the editor ---- */

body.on-editing .ot-capture-wrap { display: none; }
body.on-editing { overflow: hidden; }

.on-editor-wrap {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(31, 27, 22, 0.32);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.on-editor {
  width: 100%; max-width: 760px; height: min(78vh, 780px);
  display: flex; flex-direction: column;
  background: #FFFFFF; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: ot-sheet-up 0.2s cubic-bezier(.2, .8, .25, 1);
}
.on-ed-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 10px 12px; border-bottom: 1px solid var(--ot-line);
}
.on-ed-btn {
  width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--ot-ink-2); font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
}
.on-ed-btn:hover { background: rgba(31, 27, 22, 0.06); color: var(--ot-ink); }
.on-ed-btn.on-ed-on { color: var(--ot-gold); }
.on-status { flex: 1; min-width: 0; padding: 0 8px; font-size: 13px; color: var(--ot-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-status.on-status-off { color: #8A5A12; white-space: normal; }
.on-phone { display: none; }

.on-ta {
  flex: 1; width: 100%; border: none; outline: none; resize: none;
  padding: 22px 28px 40px; background: transparent; color: var(--ot-ink);
  font-size: 17px; line-height: 1.55;
}
.on-ta::placeholder { color: rgba(31, 27, 22, 0.4); }

@media (max-width: 759px) {
  .on-editor-wrap { padding: 0; background: #FFFFFF; align-items: stretch; }
  .on-editor {
    max-width: none; height: 100%; border-radius: 0; box-shadow: none; animation: none;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .on-phone { display: inline; }
  .on-desk { display: none; }
  .on-ta { padding: 16px 20px 40px; }
  .on-head .ot-btn { padding-left: 16px; padding-right: 18px; }
  .on-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .on-card:hover { transform: none; box-shadow: 0 1px 2px rgba(31, 27, 22, 0.05); }
  .on-face { max-height: 260px; -webkit-mask-size: 100% 260px; mask-size: 100% 260px; }
}
