/*
 * Ottoman Creative Group.
 *
 * Every colour here is taken from the logo, the sample invoice and the sample
 * estimate. Green is a rule, a marker and a bar fill, the way the documents
 * use it: white on #00B050 only reaches 2.9:1, so green never fills a button.
 * Buttons take the dark grey of the invoice table header.
 */

/* Roboto is served from this app, so the screens and the PDFs use the same
   files and nothing depends on an outside font host. */
@font-face { font-family: Roboto; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/Roboto-Light.ttf") format("truetype"); }
@font-face { font-family: Roboto; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/Roboto-Regular.ttf") format("truetype"); }
@font-face { font-family: Roboto; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/Roboto-Medium.ttf") format("truetype"); }
@font-face { font-family: Roboto; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/Roboto-Bold.ttf") format("truetype"); }

:root {
  --green: #00b050;
  --green-ink: #00803a;
  --ink: #434343;
  --ink-soft: #4a4a4a;
  --display: #666666;
  --muted: #6b6b6b;
  --label: #767676;
  --slate: #4e535c;
  --line: #e3e3e3;
  --hairline: #eeeeee;
  --paper: #f5f5f4;
  --card: #ffffff;
  --amber: #d18b00;
  --amber-ink: #8a5b00;
  --red: #c0392b;
  --red-ink: #a33227;
  --sidebar: #434343;
  --sidebar-active: #4f4f4f;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: #333333;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.grow { flex-grow: 1; }
.muted { color: var(--muted); }
.negative { color: var(--red-ink); }
.positive { color: var(--green-ink); }

/* ---------------------------------------------------------------- shell -- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 192px;
  flex-shrink: 0;
  background: var(--sidebar);
  color: #ffffff;
  padding: 30px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar__logo { padding: 0 18px; }
.appbar, .nav-scrim { display: none; }
.sidebar__logo img { width: 77px; height: auto; display: block; }

.sidebar__nav { display: flex; flex-direction: column; }

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-left: 3px solid transparent;
  font-size: 14px;
  color: #d2d2d2;
}

.sidebar__link:hover { color: #ffffff; }

.sidebar__link--on {
  border-left-color: var(--green);
  background: var(--sidebar-active);
  color: #ffffff;
  font-weight: 500;
}

.sidebar__link svg { flex-shrink: 0; }


.main { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  padding: 24px 36px 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.topbar h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 300;
  color: var(--display);
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.topbar .lede { font-size: 13px; color: var(--muted); margin-top: 3px; }
.topbar__actions { display: flex; gap: 9px; flex-shrink: 0; }

.crumb { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 5px; }

.content { padding: 20px 36px 40px; display: flex; flex-direction: column; gap: 18px; }

/* ---------------------------------------------------------------- pieces -- */

.cap {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.card__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
/* A button in a stacked card takes its own width, not the card's. */
.card__body > .btn, .card__body > form > .btn { align-self: flex-start; }

.cards { display: flex; gap: 18px; flex-wrap: wrap; }
.cards > .card { flex: 1 1 220px; min-width: 200px; }
.cards--tabs { flex-wrap: nowrap; }
.cards--tabs > .card { flex-basis: 0; min-width: 0; }

.tile { padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.tile__figure { font-size: 30px; font-weight: 300; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.tile__note { font-size: 12px; color: var(--muted); }

.columns { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.columns > .grow { flex: 1 1 0; min-width: 320px; }
.columns__side { width: 320px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid #cfcfcf;
  background: var(--card);
  color: #333333;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { border-color: #b4b4b4; }

.btn--primary { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn--primary:hover { background: #333333; border-color: #333333; }
.btn--danger { color: var(--red); border-color: #e0b4ae; }
.btn--danger:hover { border-color: var(--red); }
.btn--small { height: 31px; padding: 0 13px; font-size: 12.5px; }

.share-link { width: 100%; font-size: 12.5px; color: var(--label); text-overflow: ellipsis; }

/* The filter above a table. This was a row of chips, one per choice, which
   outgrew a line as the lists filled up and wrapped into three on a phone. */
.filters { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.filters .cap { color: var(--ink-soft); }
/* Form controls here are full width by default, which is right in a form and
   wrong in a toolbar: the dropdown takes the width of what is in it. */
.filters select { width: auto; min-width: 190px; height: 33px; padding: 0 30px 0 10px; font-size: 12.5px; }
.filters__search { width: 260px; flex: 0 1 260px; }

/* Only a browser without JavaScript presses this; the rest apply the filter by
   changing it. The class is on <html> before the page paints, so the button
   never flashes up and disappears. */
.js .filters__apply { display: none; }

/* The tools in a list's header: search and filter as icons that open, and a
   small add button beside them. */
.toolbar { display: flex; align-items: center; gap: 8px; }

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #d4d4d4;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.iconbtn::-webkit-details-marker { display: none; }
.iconbtn:hover { border-color: #b4b4b4; }
.iconbtn:active { background: #efefef; }
/* A search or a filter other than the usual one is in force. */
.iconbtn--on::after {
  content: ""; position: absolute; top: 1px; right: 1px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--card);
}

.toolbar__add { height: 36px; gap: 6px; padding: 0 14px 0 12px; }
.toolbar__add span {
  display: inline-block; max-width: 110px; overflow: hidden; white-space: nowrap;
  transition: max-width 0.3s var(--ease-out), opacity 0.2s ease;
}

:root { --ease-out: cubic-bezier(0.22, 0.8, 0.24, 1); }

.toolsearch { display: flex; align-items: center; gap: 8px; margin: 0; }
/* Two classes, so the ordinary field rule (input[type="search"]) cannot win
   and open it at full width with no animation. */
.toolsearch .toolsearch__field {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  height: 36px;
  width: 0;
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: -8px;
  border-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition: width 0.34s var(--ease-out), flex-grow 0.34s var(--ease-out), padding 0.34s var(--ease-out),
              margin 0.34s var(--ease-out), opacity 0.2s ease, border-color 0.2s ease, visibility 0s linear 0.34s;
}
.toolsearch .toolsearch__toggle:checked ~ .toolsearch__field {
  width: 240px;
  padding: 0 12px;
  margin-left: 0;
  border-color: #cfcfcf;
  opacity: 1;
  visibility: visible;
  transition: width 0.34s var(--ease-out), flex-grow 0.34s var(--ease-out), padding 0.34s var(--ease-out),
              margin 0.34s var(--ease-out), opacity 0.25s ease 0.05s, border-color 0.2s ease, visibility 0s;
}
.iconbtn svg { transition: transform 0.3s var(--ease-out); }

.toolsearch__toggle:checked ~ .iconbtn { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.toolsearch__toggle:focus-visible ~ .iconbtn,
.toolmenu__summary:focus-visible .iconbtn { outline: 2px solid var(--green); outline-offset: 2px; }

.toolmenu { position: relative; min-width: 0; }
/* The filter icon with the name of what the list is showing beside it; either
   opens the menu. */
.toolmenu__summary {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  cursor: pointer; list-style: none; outline: none;
  -webkit-tap-highlight-color: transparent;
}
.toolmenu__summary::-webkit-details-marker { display: none; }
.toolmenu__summary:hover .iconbtn { border-color: #b4b4b4; }
.toolmenu__label {
  display: inline-block; max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13.5px; color: var(--ink-soft);
  transition: max-width 0.34s var(--ease-out), opacity 0.2s ease;
}

/* A list's tools sit right after its heading, so the search icon has room to
   stay put while its field opens to the right, and the add button keeps the
   far end. */
.topbar:has(.toolbar) { align-items: center; }
.topbar:has(.toolbar) > div:first-child { margin-right: 0; }
.topbar__actions:has(.toolbar) { flex: 1 1 auto; min-width: 0; }
.topbar__actions .toolbar { flex: 1 1 auto; min-width: 0; }
/* A second filter (the year beside a category) keeps its short label whole. */
.topbar__actions .toolbar + .toolbar { flex: 0 0 auto; }
.toolbar__add { margin-left: auto; }
.toolmenu[open] > summary > .iconbtn { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.toolmenu__panel {
  transform-origin: top right;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  min-width: 210px;
  padding: 12px 6px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  animation: toolmenu-in 0.22s var(--ease-out);
}
/* Played on the way out by app.js before the menu is actually closed. */
.toolmenu.is-closing .toolmenu__panel { animation: toolmenu-out 0.16s ease-in forwards; }
.toolmenu.is-closing > summary > .iconbtn { background: var(--card); border-color: #d4d4d4; color: var(--ink); }
.toolmenu__item { animation: toolmenu-item 0.28s var(--ease-out) backwards; }
.toolmenu__item:nth-child(3) { animation-delay: 0.02s; }
.toolmenu__item:nth-child(4) { animation-delay: 0.04s; }
.toolmenu__item:nth-child(5) { animation-delay: 0.06s; }
.toolmenu__item:nth-child(6) { animation-delay: 0.08s; }
.toolmenu__item:nth-child(n+7) { animation-delay: 0.1s; }
.toolmenu__panel .cap { padding: 0 12px 6px; }
.toolmenu__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 5px; font-size: 14px; white-space: nowrap;
}
.toolmenu__item:hover { background: #f4f4f3; }
.toolmenu__item--on { font-weight: 500; color: var(--ink); }
.toolmenu__item--on svg { color: var(--green-ink); }

@keyframes toolmenu-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes toolmenu-out { to { opacity: 0; transform: translateY(-4px) scale(0.97); } }
@keyframes toolmenu-item { from { opacity: 0; transform: translateY(-3px); } }

/* The initials in the top right corner, and the menu behind them. */
.topbar__user { flex-shrink: 0; align-self: flex-start; }
/* With the initials beside them, the page's own buttons keep to the right. */
.topbar > div:first-child { margin-right: auto; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #ffffff;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer; list-style: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.2s ease;
}
.avatar::-webkit-details-marker { display: none; }
.avatar:hover, .usermenu[open] > .avatar { box-shadow: 0 0 0 3px rgba(67, 67, 67, 0.16); }
.avatar:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.usermenu .toolmenu__panel { min-width: 230px; padding-top: 6px; }
.usermenu__who { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--hairline); }
.usermenu__name { font-size: 14px; font-weight: 500; color: #333333; }
.usermenu__email { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.usermenu form { margin: 0; display: flex; }
.usermenu__signout { width: 100%; border: 0; background: none; font-family: inherit; color: inherit; cursor: pointer; text-align: left; }

/* Settings: a row of section links, then each section under its own heading. */
.segments { display: flex; gap: 6px; flex-wrap: wrap; }
.segments a {
  padding: 7px 14px; border-radius: 999px; border: 1px solid #d4d4d4; background: var(--card);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.segments a:hover { border-color: #b4b4b4; }
.settings-section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.settings-section + .settings-section { margin-top: 14px; }
.section-title { margin: 0; font-size: 22px; font-weight: 300; color: var(--display); letter-spacing: -0.005em; }
.columns > .card.grow { flex: 1 1 0; }
.columns > .card.columns__side { align-self: flex-start; }

.field__error { font-size: 12.5px; color: var(--red-ink); }

/* A password field with an eye to show what has been typed. */
.password { position: relative; }
.password input { padding-right: 44px; }
.password__reveal {
  display: none; position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  width: 36px; height: 36px; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.js .password__reveal { display: inline-flex; }
.password__reveal:hover { color: var(--ink); }
.password__eye-off, .password--shown .password__eye { display: none; }
.password--shown .password__eye-off { display: block; }

.letterhead-preview { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.letterhead-preview__name { font-size: 20px; font-weight: 300; color: var(--display); }
.letterhead-preview__lines { display: flex; gap: 24px; font-size: 11.5px; line-height: 1.6; color: #999999; }

/* ---------------------------------------------------------------- tables -- */

.table { width: 100%; border-collapse: collapse; }

.table thead th {
  background: var(--ink);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  padding: 11px 20px;
  white-space: nowrap;
}

.table tbody td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  vertical-align: middle;
}

.table tbody tr:hover td { background: #fafaf9; }

/* A whole row opens what it is about, so it should look like it will. Only
   once the script that does it is running: without it the link in the row is
   still the way in, and a hand pointing at dead space would be a lie. */
.js .table tbody tr[data-href] { cursor: pointer; }
.table .right { text-align: right; }

.table__foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fafaf9;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.table__empty { padding: 28px 20px; font-size: 13.5px; color: var(--muted); }

/* In a flex row, min-width:0 is what lets a child shrink and ellipsise.
   Inside a table it takes max-width instead, so both are covered. */
.ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .ellipsis { max-width: 1px; }

/* A 3px bar in the status colour, exactly like the rule on your documents. */
.mark { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mark::before { content: ""; width: 3px; height: 15px; background: #cfcfcf; flex-shrink: 0; }
.mark--green::before { background: var(--green); }
.mark--slate::before { background: var(--slate); }
.mark--amber::before { background: var(--amber); }
.mark--red::before { background: var(--red); }
.mark--grey::before { background: #cfcfcf; }
.mark span { font-size: 12px; font-weight: 500; }

/* ----------------------------------------------------------------- forms -- */

.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--row { display: flex; gap: 16px; flex-wrap: wrap; }
.field--row > .field { flex: 1 1 180px; }

label.cap { cursor: default; }

input[type="text"], input[type="email"], input[type="date"], input[type="number"],
input[type="password"], input[type="search"], select, textarea {
  font-family: inherit;
  font-size: 13.5px;
  color: #333333;
  background: var(--card);
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 9px 11px;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(67, 67, 67, 0.12);
}

textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

/* Example text in an empty field. Lighter and in italic, so "e.g. 3,500.00"
   can never be mistaken for a figure that is really there. */
::placeholder { color: #a9a9a9; font-style: italic; opacity: 1; }

/* A section that stays closed until it is wanted, like the change order form.
   The summary is the button. */
.disclosure > summary { list-style: none; cursor: pointer; align-self: flex-start; width: max-content; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary svg { transition: transform 0.2s ease; }
.disclosure[open] > summary svg { transform: rotate(45deg); }
.disclosure__close, .disclosure[open] .disclosure__open { display: none; }
.disclosure[open] .disclosure__close { display: inline; }
.disclosure__body { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--hairline); }

.hint { font-size: 12px; color: var(--muted); line-height: 1.55; }

/* Only there when the script is, like the Add line button. */
.no-js .js-only { display: none; }

/* A proposal's writing: a toolbar joined to the top of its box. */
.rte { display: flex; flex-direction: column; }
.rte__bar {
  display: none; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid #cfcfcf; border-bottom: 0; border-radius: 4px 4px 0 0; background: #fafaf9;
}
.js .rte__bar { display: flex; }
.js .rte textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.rte__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer;
}
.rte__btn:hover { background: #ececea; }
.rte__btn:active { background: #e2e2df; }
.rte__gap { width: 1px; height: 18px; margin: 0 5px; background: #dcdcd9; }
.rte:focus-within .rte__bar { border-color: var(--ink); }

/* The formatting as it reads on a proposal's page in the app. */
.prose { font-size: 13.5px; line-height: 1.65; color: #333333; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 8px; }
.prose ol, .prose ul { margin: 0 0 8px; padding-left: 22px; }
.prose blockquote { margin: 0 0 8px; padding-left: 22px; border: 0; }

/* The lines of a proposal on its form. */
.proposal-lines td { vertical-align: top; }
.proposal-lines__foot { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.proposal-lines__total { font-size: 18px; font-weight: 500; }
.iconbtn--quiet { width: 32px; height: 32px; border-color: transparent; color: var(--muted); margin-top: 3px; }
.iconbtn--quiet:hover { border-color: #d4d4d4; color: var(--ink); }

.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); }

.actions { display: flex; align-items: center; gap: 10px; padding-top: 4px; flex-wrap: wrap; }

/* --------------------------------------------------------------- notices -- */

.notice {
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  background: var(--card);
  font-size: 13.5px;
}

.notice--bad { border-left-color: var(--red); }

.errors { margin: 0; padding-left: 18px; font-size: 13px; color: var(--red-ink); line-height: 1.7; }

/* ---------------------------------------------------------------- ledger -- */

.ledger { display: flex; flex-direction: column; }

.ledger__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
}

.ledger__rule { height: 1px; background: var(--slate); margin-top: 8px; }

.ledger__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
}

.ledger__figure {
  font-size: 30px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1;
}

.facts { display: flex; gap: 34px; flex-wrap: wrap; padding-top: 14px; }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts .value { font-size: 15px; font-weight: 500; }

.timeline { display: flex; flex-direction: column; }

.timeline__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}

.timeline__date { width: 96px; flex-shrink: 0; font-size: 12.5px; color: var(--label); }

/* ---------------------------------------------------------------- login -- */

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
}

.login__card {
  width: 360px;
  background: var(--card);
  border-radius: 4px;
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login__card img { width: 77px; height: auto; }

/* The client's page for accepting a proposal: the sign-in card, on paper. */
.login--light { background: #f5f5f4; padding: 24px 16px; box-sizing: border-box; }
.login--light .login__card { box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); }
.accept { width: 420px; max-width: 100%; box-sizing: border-box; }
.accept__job { margin: 4px 0 0; font-size: 26px; font-weight: 300; line-height: 1.2; color: #434343; }
.accept__for { margin-top: 4px; font-size: 14px; color: var(--label); }
.accept__facts { display: flex; gap: 32px; flex-wrap: wrap; }
.accept__facts > div { display: flex; flex-direction: column; gap: 4px; }
.accept__total { font-size: 26px; font-weight: 300; color: #434343; }
.accept__facts .value { font-size: 15px; font-weight: 500; padding-top: 8px; }
.accept__form { display: flex; flex-direction: column; gap: 18px; }
.accept__form input[type="text"] { font-size: 16px; }
.check--top { align-items: flex-start; line-height: 1.5; }
.check--top input { flex-shrink: 0; margin-top: 3px; }
.accept__done { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-left: 3px solid #00b050; background: #f5f5f4; font-size: 14px; line-height: 1.5; }
.accept__back { font-size: 13.5px; color: var(--label); }

/* ------------------------------------------------------------ registers -- */

.tile-link { color: inherit; text-decoration: none; border: 1px solid transparent; }
.tile-link:hover { border-color: #d4d4d4; }
.tile-link--on { border-color: var(--ink); }
.attention { color: #9a5b00; font-weight: 500; }
.categories td { vertical-align: middle; }
.category-row { display: flex; gap: 8px; align-items: center; }
.category-row input[type="text"] { flex: 1 1 auto; min-width: 0; }
.category-row select { flex: 0 0 120px; }
.category-row .category-row__line { flex: 0 0 220px; min-width: 0; }
@media (max-width: 700px) {
  .category-row { flex-wrap: wrap; }
  .category-row input[type="text"] { flex-basis: 100%; }
  .category-row .category-row__line { flex: 1 1 0; }
}
.is-archived .category-row input { color: var(--muted); }
.merge { position: relative; }
.merge > summary { list-style: none; cursor: pointer; }
.merge > summary::-webkit-details-marker { display: none; }
.merge[open] > form { display: flex; gap: 8px; margin-top: 8px; }

/* ------------------------------------------------------- client link -- */

/* The proposal as a web page for the client: the document's look, reflowing
   on a phone. The PDF keeps the fixed design. */
.cl { background: #f5f5f4; color: #434343; }
.cl__bar { position: sticky; top: 0; z-index: 2; background: rgba(245, 245, 244, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid #e4e4e2; padding-top: env(safe-area-inset-top); }
.cl__bar-inner { max-width: 816px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px; box-sizing: border-box; }
.cl__bar-title { flex: 1; font-size: 13.5px; font-weight: 500; }
.cl__sheet { max-width: 816px; margin: 24px auto 48px; background: #ffffff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14); padding: 48px 72px 56px; box-sizing: border-box; }
.cl__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cl__agency { font-size: 32px; font-weight: 300; line-height: 1.2; color: #666666; }
.cl__contact { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; line-height: 1.25; color: #999999; }
.cl__logo { width: 58px; height: auto; flex-shrink: 0; }
.cl__for { margin-top: 44px; }
.cl__cap { margin: 0; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #999999; line-height: 1.35; }
.cl__cap--section { font-size: 10.7px; }
.cl__client { margin-top: 3px; font-size: 11.5px; font-weight: 700; }
.cl__small { margin-top: 8px; font-size: 11.5px; line-height: 1.25; color: #999999; }
.cl__body { display: flex; margin-top: 60px; }
.cl__side { width: 145px; flex-shrink: 0; margin-right: 30px; }
.cl__display { font-size: 32px; font-weight: 300; line-height: 1.1; color: #666666; margin: -6px 0 0 -3px; }
.cl__details { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.cl__value { font-size: 18.7px; font-weight: 700; line-height: 1.3; }
.cl__main { flex: 1; min-width: 0; border-left: 1px solid var(--green); padding-left: 30px; }
.cl__line + .cl__line { margin-top: 10px; }
.cl__line-row { display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; font-weight: 700; }
.cl__section { margin-top: 30px; }
.cl__prose { margin-top: 4px; font-size: 13px; line-height: 1.8; }
.cl__prose p { margin: 0; }
.cl__prose ol, .cl__prose ul { margin: 0 0 4px; padding-left: 25px; }
.cl__prose blockquote { margin: 0; padding-left: 25px; }
.cl__total { margin-top: 44px; text-align: right; }
.cl__figure { font-size: 30px; font-weight: 300; line-height: 1.3; }
.cl__clause { margin: 20px 0 0; max-width: 260px; font-size: 10.7px; line-height: 1.35; }
.cl__accept { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e4e4e2; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; scroll-margin-top: 72px; }
.cl__accept .accept__form { width: 100%; max-width: 420px; }
.cl__paid { margin-top: 4px; font-size: 13px; color: #666666; }
.pay { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; width: 100%; max-width: 420px; }
.pay form { width: 100%; }
.pay__button { width: 100%; justify-content: center; font-size: 16px; padding-top: 14px; padding-bottom: 14px; }
.pay__ways { font-size: 12.5px; color: #777777; line-height: 1.45; margin-top: -6px; }
.pay__check { margin-top: 6px; padding-top: 14px; border-top: 1px solid #eeeeee; width: 100%; font-size: 13.5px; line-height: 1.5; color: #434343; }

@media (max-width: 720px) {
  .cards--tabs { flex-wrap: nowrap; gap: 8px; }
  .cards.cards--tabs > .card { flex: 1 0 96px; min-width: 96px; }
  .cards--tabs { overflow-x: auto; scrollbar-width: none; }
  .cards--tabs .tile__figure { white-space: nowrap; }
  .cards--tabs .tile { padding: 10px 11px; gap: 4px; }
  .cards--tabs .cap { font-size: 9px; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cards--tabs .tile__figure { font-size: 17px; }
  .cards--tabs .tile__note { display: none; }
}

@media (max-width: 720px) {
  .cl__sheet { margin: 0; box-shadow: none; padding: 28px 20px 40px; }
  .cl__agency { font-size: 25px; }
  .cl__contact { gap: 20px; }
  .cl__logo { width: 46px; }
  .cl__for { margin-top: 28px; }
  .cl__body { display: block; margin-top: 32px; }
  .cl__side { width: auto; margin: 0; }
  .cl__display { margin: 0; }
  .cl__details { flex-direction: row; flex-wrap: wrap; gap: 14px 28px; margin: 14px 0 0; padding-left: 14px; border-left: 1px solid var(--green); }
  .cl__value { font-size: 16px; }
  .cl__main { border-left: 0; padding-left: 0; margin-top: 32px; }
  .cl__line-row { font-size: 13px; }
  .cl__prose { font-size: 14px; line-height: 1.7; }
  .cl__clause { max-width: none; font-size: 11.5px; }
}

/* ------------------------------------------------------------ narrower -- */

/* Hidden by the script. Only ever applied to something that is optional
   anyway, so a browser without the script simply shows it. */
.is-hidden { display: none !important; }

/*
 * On a phone the menu lives underneath the page, off to the left. The round
 * button at the top left slides the page across to reveal it, the way the
 * Claude app does, and a tap on the page slides it back. The open state is the
 * checkbox at the top of the shell, so all of this works with no script;
 * app.js only lets a finger drag it.
 */
@media (max-width: 860px) {
  :root { --drawer: min(80vw, 300px); --slide: 0.34s cubic-bezier(0.22, 0.8, 0.24, 1); }

  /* The page slid aside runs off the right edge, and the browser measures
     that as a wider page. Clipped here, or leaving a page from the open menu
     cannot animate: the old page and the new would be different sizes. */
  .shell { display: block; background: var(--sidebar); overflow-x: clip; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--drawer);
    padding: calc(28px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));
    gap: 26px;
    overflow-y: auto;
    z-index: 0;
    /* The dark comes from the shell behind it. Safari colours its toolbars
       from a fixed element that touches the edge of the screen, and a dark
       one here put a dark band under the page even with the menu shut. */
    background: transparent;
    /* Tucked a little to the left and dimmed, and it eases into place as the
       page moves off it. Hidden outright once closed, so its links are not
       reachable by keyboard behind the page. */
    transform: translateX(-28px);
    opacity: 0.4;
    visibility: hidden;
    transition: transform var(--slide), opacity var(--slide), visibility 0s linear 0.34s;
  }

  .nav-toggle:checked ~ .sidebar {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform var(--slide), opacity var(--slide), visibility 0s;
  }

  .sidebar__logo { padding: 0 24px; }
  .sidebar__logo img { width: 72px; }
  .sidebar__link { padding: 14px 24px 14px 21px; font-size: 16px; gap: 14px; -webkit-tap-highlight-color: transparent; }
  .sidebar__link:active { background: var(--sidebar-active); color: #ffffff; }
  .sidebar__link svg { width: 18px; height: 18px; }

  .main {
    position: relative;
    z-index: 1;
    /* The tall viewport, not the one between the toolbars: Safari draws its
       bottom bar over the page, and a page cut short at the bar leaves the
       dark shell showing beneath it. */
    min-height: 100vh;
    min-height: 100lvh;
    background: var(--paper);
    transition: transform var(--slide), border-radius var(--slide), box-shadow var(--slide);
  }

  .nav-toggle:checked ~ .main {
    transform: translateX(var(--drawer));
    border-radius: 18px 0 0 18px;
    box-shadow: -10px 0 36px rgba(0, 0, 0, 0.28);
    /* clip, not hidden: hidden would make the page a scroll box of its own
       and unstick the bar at the top. */
    overflow: clip;
  }

  /* While a finger is dragging the page, it follows the finger exactly. */
  .nav-dragging .main, .nav-dragging .sidebar { transition: none; }

  /* The page cannot scroll underneath while the menu is open. */
  html:has(.nav-toggle:checked) { overflow: hidden; }

  .nav-scrim { position: absolute; inset: 0; z-index: 30; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .nav-toggle:checked ~ .main .nav-scrim { display: block; }

  .appbar {
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
  }

  .appbar__menu { width: 40px; height: 40px; flex-shrink: 0; }
  .appbar .avatar { width: 40px; height: 40px; }

  .appbar__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dcdcdc;
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
  }

  .appbar__menu:active { background: #efefef; }
  .appbar__menu svg { transition: transform var(--slide); }
  .nav-toggle:checked ~ .main .appbar__menu svg { transform: rotate(180deg); }
  .nav-toggle:focus-visible ~ .main .appbar__menu { outline: 2px solid var(--green); outline-offset: 2px; }

  .topbar__user { display: none; }
  .usermenu .toolmenu__panel { left: auto; right: 0; transform-origin: top right; }

  .topbar {
    padding: 6px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .topbar h1 { font-size: 26px; }

  /* A phone zooms the whole page in on any field set smaller than 16px the
     moment it is tapped, and leaves it zoomed. */
  input[type="text"], input[type="email"], input[type="date"], input[type="number"],
  input[type="password"], input[type="search"], select, textarea { font-size: 16px; }

  /* On a phone the heading has the top line to itself, with what the list is
     showing on one line beneath it, and the tools take the full row below:
     search and filter at the left, the add button at the right. */
  .topbar .lede { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar:has(.toolbar) { align-items: stretch; gap: 16px; }
  .topbar:has(.toolbar) .topbar__actions { flex-wrap: nowrap; }
  .toolbar .toolsearch { flex: 0 1 auto; min-width: 0; }
  /* The filter sits at the left here, so its menu opens rightwards from it. */
  .toolmenu__panel { right: auto; left: 0; transform-origin: top left; max-width: calc(100vw - 32px); }

  /* Searching, the field grows into the row and the add button folds down to
     its plus sign to make room, both as one movement. */
  .toolbar:has(.toolsearch__toggle:checked) .toolsearch { flex: 1 1 auto; }
  .toolsearch .toolsearch__field { flex: 0 1 0; }
  .toolsearch .toolsearch__toggle:checked ~ .toolsearch__field { width: 0; flex-grow: 1; }
  .toolbar:has(.toolsearch__toggle:checked) .toolbar__add { gap: 0; padding: 0 11px; }
  .toolbar:has(.toolsearch__toggle:checked) .toolbar__add span,
  .toolbar:has(.toolsearch__toggle:checked) .toolmenu__label { max-width: 0; opacity: 0; }
  .toolbar:has(.toolsearch__toggle:checked) .toolmenu__summary { gap: 0; }
  .toolmenu__summary { transition: gap 0.34s var(--ease-out); }
  .toolbar__add { transition: padding 0.34s var(--ease-out), gap 0.34s var(--ease-out); }
  .topbar__actions { flex-wrap: wrap; }
  .content { padding: 16px 16px 32px; }

  /* Side-by-side columns stack, and the main column stops demanding 320px it
     cannot have. */
  .columns > .grow { min-width: 0; flex-basis: 100%; }
  .columns__side { width: 100%; }

  /* A flex item will not shrink below the width of its contents unless it is
     told it may, which is the usual reason a page runs off the right. */
  .main, .content, .card, .card__body { min-width: 0; max-width: 100%; }

  /* The other usual reason: one long unbroken run of characters — an email
     address, a Dropbox path, a file name — with no space to break at. Unlike a
     table it has nothing to scroll inside, so it wraps. */
  .content, .card__body, .hint { overflow-wrap: break-word; }
}

@media (max-width: 560px) {
  .topbar h1 { font-size: 23px; }
  .topbar__actions > .btn { flex: 1 1 auto; justify-content: center; }

  .cards > .card { flex-basis: 100%; }
  .card__body { padding: 16px 16px; }

  /* A fixed-width label in a row is what pushes a narrow screen sideways. */
  .ledger__row { flex-wrap: wrap; gap: 8px; }
  .ledger__row > .mark[style] { width: auto !important; }
  .timeline__date { width: 72px; }
  .facts { gap: 20px; }
  .ledger__figure, .tile__figure { font-size: 25px; }

  .field--row { gap: 12px; }
  .field--row > .field { flex-basis: 100%; }

  /* The filter and its search box take a line each rather than squeezing. */
  .filters { flex-wrap: wrap; }
  .filters select { flex: 1 1 auto; }
  .filters__search { flex: 1 1 100%; width: auto; }

  .login__card { width: 100%; max-width: 360px; padding: 28px 22px; }
  .login { padding: 16px; }
}

/*
 * A table is the one thing here with a genuine minimum width: squashing an
 * invoice column into 40px helps nobody. So the table keeps its shape and scrolls
 * inside its card instead of pushing the whole page sideways.
 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 700px) {
  /* Ellipsising every cell to fit a phone leaves "Bridg…" against "Brand Grap…",
     which is worse than scrolling. Below this width the table takes the room it
     needs and the card scrolls sideways instead. */
  .table .ellipsis { max-width: none; }
  .table thead th, .table tbody td { padding-left: 14px; padding-right: 14px; }
}

/*
 * On a phone a list reads as a list, the way it does in an app: one tappable
 * row per item, what it is in bold on the left, the figure on the right, and
 * the rest in small grey underneath. Each cell says which part it is:
 *   l-title  the name of the thing       l-amount  the figure
 *   l-sub    the line under it           l-meta    small print, run together
 *   l-hide   left off on a phone
 *   l-pipe   small print set off from the one before by a rule
 *   l-end    small print at the far right of the last line
 */
@media (max-width: 860px) {
  /* The table itself has to stop being a table too. Left as one, it sizes
     itself to its longest line and every row runs off the right of the card. */
  .table--list, .table--list tbody, .table--stack, .table--stack tbody { display: block; width: 100%; }
  .table--list thead { display: none; }
  .table--list tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 12px;
    row-gap: 3px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--hairline);
  }
  .table--list tbody tr:last-child { border-bottom: 0; }
  .table--list tbody td { display: block; padding: 0; border: 0; background: none !important; max-width: none; }
  .js .table--list tbody tr[data-href]:active { background: #f1f1f0; }
  .table--list td.l-title {
    order: 1; flex: 1 1 0; min-width: 0; font-size: 15px; font-weight: 500; color: #333333;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .table--list td.l-amount { order: 2; font-size: 14.5px; font-weight: 500; text-align: right; white-space: nowrap; }
  .table--list td.l-sub {
    order: 3; flex: 1 0 100%; font-size: 13px; font-weight: 400; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .table--list td.l-meta { order: 4; font-size: 12px; color: var(--label); text-align: left; }
  .table--list td.l-meta .mark span { font-size: 12px; }
  .table--list td.l-meta .hint { display: inline; margin-left: 6px; }
  .table--list td.l-pipe::before { content: "|"; margin: 0 8px 0 -4px; color: #c4c4c4; }
  .table--list td.l-end { order: 5; margin-left: auto; text-align: right; }
  .table--list td[data-label]::before { content: attr(data-label) " "; }
  .table--list td.l-hide { display: none; }
  .table--list td.table__empty { flex: 1 1 100%; padding: 12px 0; }

  /* A form laid out as a table (the lines of a new invoice): every cell takes
     a line of its own, except the small ones that sit together on the first. */
  .table--stack thead { display: none; }
  .table--stack tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
  .table--stack tbody td { display: block; flex: 1 0 100%; padding: 0; border: 0; background: none !important; text-align: left; }
  .table--stack tbody td.l-inline { flex: 0 0 auto; }
  .table--stack tbody td input.right { text-align: left; }
  .proposal-lines tbody tr { align-items: flex-end; }
  .proposal-lines tbody td.l-inline { flex: 1 1 0; min-width: 0; text-align: left; }
  .proposal-lines tbody td.l-inline.right { flex-grow: 1.6; }
  .proposal-lines tbody td.l-inline:last-child { flex: 0 0 auto; padding-bottom: 4px; }
  .proposal-lines tbody td.l-inline input { width: 100%; }
  .table--stack tbody td[data-label]::before {
    content: attr(data-label); display: block; margin: 4px 0 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label);
  }
  .table-wrap:has(> .table--list), .table-wrap:has(> .table--stack) { overflow: visible; }
}

/* Moving from one page to the next fades across rather than blinking, in the
   browsers that can. Nothing here changes for the ones that cannot. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; }
}

/* On a phone the page and the menu move as two pieces. Picking a page from the
   open menu, the page slides back over the menu from where it was, turning
   into the new page on the way, and the menu tucks away underneath the way
   it does when it closes. With the menu shut the page is in the same place either side, so
   it only fades across as before. */
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .sidebar { view-transition-name: menu; }
  .main { view-transition-name: page; }

  ::view-transition-group(page) { animation-duration: 0.34s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(page), ::view-transition-new(page) { animation-duration: 0.2s; }

  ::view-transition-group(menu) { animation-duration: 0.34s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(menu), ::view-transition-new(menu) { animation-duration: 0.34s; }
}

@media (prefers-reduced-motion: reduce) {
  .main, .sidebar, .appbar__menu svg, .disclosure > summary svg, .toolsearch__field, .toolbar__add, .toolbar__add span, .toolmenu__label, .toolmenu__summary, .iconbtn svg { transition: none !important; }
  .toolmenu__panel, .toolmenu__item, .toolmenu.is-closing .toolmenu__panel { animation: none; }
}

/* A register row's category: a link that becomes a dropdown with the script. */
.cat-pick { color: inherit; text-decoration: none; white-space: nowrap; }
.cat-pick.attention { color: #9a5b00; }
.js .cat-pick::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: 0.55; }
.cat-pick:hover { text-decoration: underline; }
.cat-select { max-width: 100%; font: inherit; padding: 4px 6px; border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; }
.category-row .check { flex: 0 0 auto; gap: 6px; white-space: nowrap; font-size: 13px; }

/* A transaction's receipt, and its split lines. */
.receipt-on { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.split { margin-top: 28px; }
.split > summary { list-style: none; cursor: pointer; display: inline-flex; }
.split > summary::-webkit-details-marker { display: none; }
.split[open] > summary { margin-bottom: 14px; }
.split-lines select, .split-lines input { width: 100%; }
.row-tags { margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.row-tag { font-size: 12px; color: var(--muted); }
.cat-split { color: inherit; text-decoration: none; }
.cat-split:hover { text-decoration: underline; }

/* Reports. On screen a card per section; printed, plain tables on white. */
.report { display: flex; flex-direction: column; gap: 18px; max-width: 980px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.report-table th, .report-table td { padding: 9px 16px; text-align: left; vertical-align: top; }
.report-table thead th { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6b6b; border-bottom: 1px solid #e6e6e6; }
.report-table .report-table__heading th { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); padding-top: 16px; }
.report-table tbody td { border-bottom: 1px solid #f0f0ef; }
.report-table .right { text-align: right; }
.report-table__date { width: 110px; white-space: nowrap; }
.report-table__total td { font-weight: 700; border-top: 1px solid #4e535c; }
.report__period-screen { margin-top: -6px; }
.report-table__group td { font-weight: 500; color: var(--ink); }
.report-table__sub td { color: var(--muted); font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
.report-table__sub td:nth-child(2) { padding-left: 28px; }
.report__notes { margin: 0; padding: 0 0 0 18px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.print-only { display: none; }

/* A report's charts are tables with their sizes written in, so the PDF can
   draw the same markup. Green is money in and blue money out; ranked bars
   each take a colour from Reports::BAR_COLOURS, which the totals table
   repeats as a swatch. */
.rchart table { width: 100%; border-collapse: collapse; }
.rchart td { padding: 0; }
.rchart__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding-bottom: 10px; }
.rchart__none { font-size: 12px; color: var(--muted); }
.rchart--in { background: var(--green); }
.rchart--out { background: #3a6ea5; }
.rchart--in, .rchart--out { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rchart-figures td { width: 33.3%; vertical-align: top; padding-right: 12px; }
.rchart-figures .rchart__label { padding-bottom: 6px; }
.rchart-figures__value { font-size: 30px; font-weight: 300; line-height: 1; color: var(--ink); letter-spacing: -0.01em; }
.rchart-head .rchart-legend { text-align: right; font-size: 12px; color: var(--muted); padding-bottom: 10px; vertical-align: top; }
.rchart-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; vertical-align: -1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.report-table__swatch { margin: 0 8px 0 0; }
.js .report-table tbody tr[data-href] { cursor: pointer; }
.report-table tbody tr[data-href]:hover td { background: #fafaf9; }
.report-table tbody a { color: inherit; text-decoration: none; }
.report-table tbody a:hover { text-decoration: underline; }
.rchart-months { table-layout: fixed; }
.rchart-months__cell { vertical-align: bottom; border-bottom: 1px solid var(--line); }
.rchart-months__bar { border-radius: 3px 3px 0 0; }
.rchart-months__scale, .rchart-months__scale td { font-size: 10.5px; color: var(--label); vertical-align: top; }
.rchart-months__name { text-align: center; font-size: 11px; color: var(--label); padding-top: 6px !important; }
.rchart-bars td { padding: 4px 0; vertical-align: middle; font-size: 13px; }
.rchart-bars__name { width: 40%; padding-right: 12px !important; }
.rchart-bars__track div { height: 10px; min-width: 2px; border-radius: 0 3px 3px 0; }
.rchart-bars__amount { width: 80px; text-align: right; }
@media (max-width: 700px) {
  .rchart-figures__value { font-size: 22px; }
  .rchart-months__rest { display: none; }
  .rchart-bars__name { width: 46%; }
}
@media (prefers-reduced-motion: no-preference) {
  .rchart-months__bar { transform-origin: bottom; animation: chart-rise 0.6s var(--ease-out) both; }
  .rchart-bars__track div { transform-origin: left; animation: chart-grow 0.6s var(--ease-out) both; }
}

@media print {
  @page { margin: 14mm 12mm; }
  body { background: #fff !important; }
  .sidebar, .appbar, .nav-scrim, .notice, .nav-toggle, .report__period-screen { display: none !important; }
  .main, .page, .content { margin: 0 !important; padding: 0 !important; transform: none !important; box-shadow: none !important; }
  .topbar { display: none !important; }
  .print-only { display: block; }
  .report__title { margin-bottom: 8px; }
  .report__name { display: block; font-size: 22px; font-weight: 300; }
  .report__period { display: block; font-size: 11px; color: #6b6b6b; margin-top: 2px; }
  .card { box-shadow: none !important; border: 0 !important; }
  .report-table { font-size: 10.5px; }
  .report-table th, .report-table td { padding: 4px 6px; }
  .report-table tr { page-break-inside: avoid; }
}
.split-lines input.num { text-align: right; }
@media (max-width: 700px) {
  .report-table th, .report-table td { padding: 8px 10px; }
  .report-table__extra { display: none; }
  .report-table__date { width: 78px; white-space: normal; }
}

/* Receipts waiting for their bank row. The photo sits beside what was read
   off it and the rows it might be; on a phone it stacks above them. */
.receipt-upload { margin-bottom: 18px; }
.receipt-upload .card__body { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.receipt-upload__pick { position: relative; gap: 8px; align-self: center; }
.receipt-upload__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.receipt-upload.is-busy .receipt-upload__pick { opacity: 0.6; pointer-events: none; }
.receipts { display: flex; flex-direction: column; gap: 18px; }
.receipt { display: flex; gap: 0; overflow: hidden; }
.receipt__image { flex: 0 0 168px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-right: 1px solid var(--hairline); color: var(--muted); font-size: 12.5px; text-decoration: none; padding: 10px; min-height: 168px; }
.receipt__image img { display: block; max-width: 100%; max-height: 260px; object-fit: contain; }
.receipt__body { flex: 1 1 auto; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.receipt__buttons { display: flex; gap: 10px; margin-top: 10px; }
.receipt__guesses { display: flex; flex-direction: column; gap: 6px; }
.receipt__guess { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); font: inherit; font-size: 13.5px; color: inherit; text-align: left; cursor: pointer; }
.receipt__guess:hover { border-color: var(--ink); }
.receipt__guess-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt__guess-go { font-size: 12.5px; font-weight: 500; color: var(--green-ink); }

/* A deposit that may be an invoice being paid, and the invoices it may be paying. */
.payment { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.payment__deposit { display: flex; align-items: baseline; gap: 14px; font-size: 15px; }
.payment__deposit > .num { white-space: nowrap; }
.payment__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.payment__offers { display: flex; flex-direction: column; gap: 10px; }
.payment-offer { border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.payment-offer__head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.payment-offer__kind { color: var(--muted); }
.payment-offer__shares input { width: 110px; text-align: right; }
.payment-offer__go { display: flex; justify-content: flex-end; }
.payment__other { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.payment__pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment__pick select { width: auto; max-width: 340px; height: 33px; padding: 0 30px 0 10px; font-size: 12.5px; }
@media (max-width: 700px) {
  .receipt { flex-direction: column; }
  .receipt__image { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--hairline); }
  .receipt__body { padding: 16px; }
  .receipt__guess { flex-wrap: wrap; gap: 4px 12px; }
  .receipt__guess-name { flex-basis: 100%; order: -1; white-space: normal; }
  .payment { padding: 16px; }
  .payment__name { white-space: normal; }
  .payment-offer { padding: 12px 10px; }
  .payment-offer__shares input { width: 88px; }
  .payment__pick, .payment__pick select { width: 100%; max-width: none; }
}

/* ------------------------------------------------------------ dashboard -- */

/* The charts are drawn by the server as plain boxes sized in percent, so they
   need no script and print as they look. Green is only ever the paid bar and
   the accepted dot; money owed and money out are greys. */
.chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.chart-head .cap { flex-grow: 1; }
.chart-figure { font-size: 30px; font-weight: 300; color: var(--ink); letter-spacing: -0.01em; line-height: 1; }
.chart-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 18px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.key--paid { background: var(--green); }
.key--owed { background: #c9c9c9; }
.key--last { width: 14px; height: 2px; border-radius: 1px; background: var(--ink); }
.key--dot { width: 9px; height: 9px; border-radius: 50%; }

.months, .agebar, .month__bar, .spend__track span, .stage__bar span, .dot, .key { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

.months { position: relative; display: flex; gap: 6px; height: 186px; padding: 8px 0 0 38px; }
.months__scale { position: absolute; inset: 8px 0 22px 38px; pointer-events: none; }
.months__scale span { position: absolute; left: -38px; right: 0; border-top: 1px solid var(--hairline); font-size: 10.5px; line-height: 0; color: var(--label); }
.month { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.month__plot { position: relative; flex-grow: 1; width: 100%; display: flex; justify-content: center; }
.month__bar { width: min(26px, 72%); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.month__bar span { display: block; flex-shrink: 0; }
.month__bar span:first-child { border-radius: 4px 4px 0 0; }
.month__paid { background: var(--green); }
.month__owed { background: #c9c9c9; }
.month__last { position: absolute; left: 50%; width: min(38px, 96%); height: 2px; margin-bottom: -1px; transform: translateX(-50%); background: var(--ink); border-radius: 1px; z-index: 1; }
.month__name { font-size: 11px; line-height: 14px; color: var(--label); }
.month--ahead .month__name { color: #bdbdbd; }

.agebar { display: flex; gap: 2px; height: 12px; border-radius: 3px; overflow: hidden; }
.agebar span { flex: 1 1 0; min-width: 3px; }
.age-0 { background: #d9d9d9; }
.age-1 { background: #b3b3b3; }
.age-2 { background: #8c8c8c; }
.age-3 { background: #666666; }
.age-4 { background: var(--ink); }
.agerow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.agerow:first-child { border-top: 0; }
.agerow--none { color: var(--muted); }
.agerow__count { width: 18px; text-align: right; font-size: 12px; color: var(--muted); }
.agerow__amount { width: 72px; text-align: right; }

.stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.stage { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stage__bar { height: 6px; margin-bottom: 10px; border-radius: 3px; background: var(--hairline); overflow: hidden; }
.stage__bar span { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.stage__count { font-size: 28px; font-weight: 300; line-height: 1; color: var(--ink); }
.stage__name { font-size: 12.5px; color: #333333; }
.stage__amount { font-size: 12px; color: var(--muted); }
.stage:hover .stage__name { text-decoration: underline; text-underline-offset: 3px; }

.dots { display: flex; flex-wrap: wrap; gap: 7px; }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; }
.dot--won { background: var(--green); }
.dot--lost { border: 1.5px solid #8c8c8c; }
.dot--out { border: 1.5px dashed #a6a6a6; }
a.dot:hover { box-shadow: 0 0 0 3px rgba(67, 67, 67, 0.16); }

.spend { display: flex; flex-direction: column; gap: 10px; }
.spend__row { display: grid; grid-template-columns: minmax(0, 1fr) 34% 56px; gap: 10px; align-items: center; font-size: 13px; }
.spend__track span { display: block; height: 10px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--slate); }
.spend__amount { text-align: right; }

/* On a phone the months shrink to their first letter, and the stages turn
   into rows, each with its bar underneath. */
@media (max-width: 860px) {
  .months { gap: 3px; }
  .month__rest { display: none; }
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage { display: grid; grid-template-columns: 34px 1fr auto; column-gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); }
  .stage:first-child { border-top: 0; padding-top: 0; }
  .stage__count { grid-row: 1 / span 2; align-self: center; font-size: 24px; }
  .stage__bar { grid-column: 2 / span 2; grid-row: 2; height: 4px; margin: 6px 0 0; }
  .stage__amount { grid-column: 3; grid-row: 1; }
}

/* The bars grow into place when the page opens. */
@media (prefers-reduced-motion: no-preference) {
  .month__bar { transform-origin: bottom; animation: chart-rise 0.6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
  .agebar, .stage__bar span, .spend__track span { transform-origin: left; animation: chart-grow 0.6s var(--ease-out) both; }
  .dot { animation: chart-pop 0.4s var(--ease-out) both; }
}
@keyframes chart-rise { from { transform: scaleY(0); } }
@keyframes chart-grow { from { transform: scaleX(0); } }
@keyframes chart-pop { from { transform: scale(0.4); opacity: 0; } }

/* ── Project board ───────────────────────────────────────────────────────
   Schedule, budget and table bars are tables sized in percent, the way the
   report charts are, so the PDF engine draws the same markup. */
.board { max-width: 980px; display: flex; flex-direction: column; gap: 18px; }
.board__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: -6px; }
.board .columns > .grow { min-width: 0; }
.board table { border-collapse: collapse; }

.gantt { width: 100%; table-layout: fixed; }
.gantt td { padding: 0; vertical-align: middle; }
.gantt__name { width: 30%; padding-right: 14px !important; }
.gantt__title { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt__when { font-size: 11.5px; color: var(--muted); }
.gantt__ticks { width: 100%; table-layout: fixed; }
.gantt__ticks td { font-size: 11px; color: var(--label); padding: 0 0 6px 4px !important; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.gantt__year { color: var(--muted); font-weight: 500; }
.gantt__row > td { padding: 6px 0 !important; border-top: 1px solid var(--hairline); }
.gantt__lane { position: relative; }
.gantt__bar-row { width: 100%; table-layout: fixed; }
.gantt__bar-row td { padding: 0; }
.gantt__bar { height: 14px; border-radius: 3px; min-width: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gantt__bar--point { width: 12px; height: 12px; border-radius: 50%; }
.gantt__today { position: absolute; top: -7px; bottom: -7px; width: 0; border-left: 1.5px dashed var(--ink); pointer-events: none; }
.gantt__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.gantt__legend > span { display: inline-flex; align-items: center; gap: 6px; }
.gantt__key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gantt__key--today { width: 0; height: 12px; border-left: 1.5px dashed var(--ink); border-radius: 0; }

.bitems { display: flex; flex-direction: column; border-top: 1px solid var(--hairline); }
.bitem { border-bottom: 1px solid var(--hairline); }
.bitem > summary { list-style: none; cursor: pointer; }
.bitem > summary::-webkit-details-marker { display: none; }
.bitem__row { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 13.5px; }
.bitem__row:hover .bitem__edit { color: var(--ink); }
.bitem__date { width: 112px; flex-shrink: 0; font-size: 12.5px; color: var(--label); }
.bitem__name { min-width: 0; }
.bitem__name .hint { display: block; }
.bitem__status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.bitem__money { white-space: nowrap; }
.bitem__edit { font-size: 12px; color: var(--label); text-decoration: underline; text-underline-offset: 2px; }
.bitem[open] .bitem__edit { color: var(--ink); }
.bitem__body { padding: 6px 0 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bitem__body > .form { align-self: stretch; }
.bitem--quiet { border: 0; }
.bitem--quiet > summary { display: inline-block; }

.bfigures { width: 100%; }
.bfigures td { width: 33.3%; vertical-align: top; padding: 0 12px 0 0; }
.bfigures__label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding-bottom: 6px; }
.bfigures__value { font-size: 30px; font-weight: 300; line-height: 1; color: var(--ink); }
.is-over { color: var(--red-ink); }
.bbars { width: 100%; table-layout: fixed; }
.bbars td { padding: 6px 0; vertical-align: middle; font-size: 13px; }
.bbars__head td { font-size: 11px; color: var(--label); padding-bottom: 2px; }
.bbars__legend { font-size: 12px; }
.bbars__name { width: 30%; padding-right: 14px !important; }
.bbars__note { font-size: 11.5px; color: var(--muted); }
.bbars__amount { width: 84px; text-align: right; }
.bbars tr + tr td { border-top: 1px solid var(--hairline); }
.bbars__budget, .bbars__spent { height: 7px; border-radius: 0 3px 3px 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bbars__budget { background: #d6d6d6; }
.bbars__spent { background: #3a6ea5; margin-top: 3px; }
.bkey { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 10px; vertical-align: -1px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.bkey:first-child { margin-left: 0; }
.bkey--budget { background: #d6d6d6; }
.bkey--spent { background: #3a6ea5; }

.bupdate { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.bupdate__date { font-size: 12px; color: var(--label); }
.bfile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); font-size: 13.5px; color: inherit; }
.bfile .hint { display: block; }
.bfile form { margin: 0; }
.bfile__remove { border: 0; background: none; color: var(--label); padding: 6px; cursor: pointer; border-radius: 4px; }
.bfile__remove:hover { color: var(--red); background: var(--paper); }

.btable-block { display: flex; flex-direction: column; gap: 10px; }
.btable-block + .btable-block { padding-top: 14px; border-top: 1px solid var(--hairline); }
.btable-block__title { font-size: 15px; font-weight: 500; }
.tbars { width: 100%; table-layout: fixed; }
.tbars td { padding: 4px 0; vertical-align: middle; font-size: 13px; }
.tbars__name { width: 30%; padding-right: 14px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbars__track div { height: 10px; min-width: 2px; border-radius: 0 3px 3px 0; background: #3a6ea5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tbars__amount { width: 96px; text-align: right; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

@media (max-width: 700px) {
  .gantt__name, .bbars__name, .tbars__name { width: 38%; }
  .gantt__ticks td { font-size: 10px; }
  .bfigures__value { font-size: 22px; }
  .bbars__amount { width: 64px; }
  .bbars__head .right { display: none; }
  .bbars td:nth-child(3), .bbars__head td:nth-child(3) { display: none; }
  .bitem__date { width: 84px; }
  .bitem__status { display: none; }
}
@media print {
  .print-hide, .bitems, .bitem--quiet { display: none !important; }
  .board__print-title { margin-bottom: 4px; }
  .board section { break-inside: avoid; }
}
.card--link { display: block; color: inherit; text-decoration: none; transition: box-shadow 0.15s ease; }
.card--link:hover { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 14px rgba(0, 0, 0, 0.08); }
.board .disclosure__body.bitems { margin-top: 12px; padding-top: 0; }
.board .card__body > .disclosure + .disclosure { margin-top: -6px; }

/* Board tasks: a tick that is its own small form, so it works with no script. */
.tgroup { display: flex; flex-direction: column; }
.tgroup + .tgroup { padding-top: 6px; }
.tgroup__head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.tgroup__name { font-size: 13.5px; font-weight: 500; }
.tgroup__count { font-size: 12px; color: var(--muted); }
.task { display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--hairline); }
.task__tick-form { margin: 0; padding-top: 8px; }
.task__tick { width: 20px; height: 20px; padding: 0; display: grid; place-items: center; border: 1.5px solid #9a9a9a; border-radius: 4px; background: #fff; color: transparent; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.task__tick:hover { border-color: var(--ink); color: #b5b5b5; }
.task--done .task__tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.task__details { flex: 1 1 auto; min-width: 0; }
.task__details > summary { list-style: none; cursor: pointer; }
.task__details > summary::-webkit-details-marker { display: none; }
.task__row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; min-height: 36px; }
.task__row:hover .bitem__edit { color: var(--ink); }
.task__details[open] .bitem__edit { color: var(--ink); }
.task__title { min-width: 0; }
.task--done .task__title { color: var(--muted); text-decoration: line-through; }
.task__due { font-size: 12.5px; color: var(--label); white-space: nowrap; }
@media print {
  .task__tick { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.task__due.is-over { color: var(--red-ink); }

/* Board progress: green is the done share, the way paid is green on the dashboard. */
.tprogress { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
.tprogress__head { display: flex; align-items: baseline; gap: 10px; }
.tprogress__track { height: 10px; border-radius: 5px; background: var(--hairline); overflow: hidden; }
.tprogress__track span, .tpeople__track span { display: block; height: 100%; background: var(--green); border-radius: inherit; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tpeople { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.tpeople__row { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 13px; }
.tpeople__track { display: block; height: 7px; border-radius: 4px; background: var(--hairline); overflow: hidden; }
.tpeople__count { text-align: right; color: var(--muted); font-size: 12.5px; }
.task__who { font-size: 12px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 2px 9px; white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .tpeople__row { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 56px; }
}
@media (max-width: 700px) {
  .task__row { flex-wrap: wrap; row-gap: 4px; }
  .task__title { flex: 1 0 100%; }
  .task__who { max-width: 60%; }
  .task__row .bitem__edit { margin-left: auto; }
}

/* A person's task list from their private link. */
.tl { max-width: 680px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.tl__name { font-size: 30px; font-weight: 300; color: var(--display); margin: 0; }
.tl__count { font-size: 13px; color: var(--muted); margin-top: -10px; }
.tl__job-name { font-size: 15px; font-weight: 500; }
.tl__row { flex: 1 1 auto; min-width: 0; }
.tl__step { display: block; text-decoration: none; }
.task--done .tl__step { text-decoration: none; }

/* Email invoice: who it goes to, then the email as the client gets it. */
.email-head { padding: 12px 18px; margin-bottom: 18px; max-width: 680px; }
.email-head__row { display: flex; gap: 12px; padding: 4px 0; }
.email-head__cap {
  width: 64px; flex: none; color: var(--muted, #6b6b6b);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 22px;
}
.email-frame {
  display: block; width: 100%; max-width: 680px; height: 1200px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
