:root {
  --forest: #062c1a;
  --forest-button: #0b3d23;
  --sand: #f9e3c1;
  --page: #fbf6f0;
  --card: #fffbf6;
  --line: #eadfd2;
  --head: #f6ece1;
  --ink: #161b17;
  --soft: #55564f;
  --gold: #a9661a;
  --green: #ddf0cf;
  --green-ink: #174d22;
  --amber: #fbe5bf;
  --amber-ink: #7a4300;
  --grey: #ece3da;
  --red: #8f2419;
  --serif: "Source Serif 4", Cambria, Georgia, serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--ink); font: 15px/1.45 Inter, "Segoe UI", system-ui, sans-serif; }
h1, h2, p, ul, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select, input[type=checkbox] { cursor: pointer; }
:focus-visible { outline: 3px solid #c8871f; outline-offset: 2px; }
.icon { display: inline-flex; flex: none; width: 18px; height: 18px; }
.icon svg { width: 100%; height: 100%; }

input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; background: var(--card); border: 1px solid #dccdbb; border-radius: 8px; padding: 8px 11px; }
textarea { resize: vertical; }
select { appearance: none; padding-right: 32px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161b17' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 15px; text-overflow: ellipsis; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--forest-button); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #cdbda8; border-radius: 8px; background: var(--card); padding: 8px 15px; font-weight: 600; white-space: nowrap; }
.button:hover { background: var(--head); }
.button.primary { background: var(--forest-button); border-color: var(--forest-button); color: #fff; }
.button.primary:hover { background: #12532f; }
.button.gold { border-color: var(--gold); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.link { border: 0; background: none; padding: 2px 4px; color: var(--green-ink); font-weight: 600; text-decoration: underline; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row.end { justify-content: flex-end; }

/* shell */
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--forest) 200px, var(--page) 200px); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: var(--forest); color: #fff; padding: 20px 12px; }
.brand { text-align: center; }
.mark { display: block; width: 66px; margin: 0 auto 2px; color: #e8bd72; }
.brand strong { display: block; font: 700 19px/1.05 var(--serif); letter-spacing: .08em; text-transform: uppercase; color: #fbeed8; }
.brand p { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ffffff24; font-size: 10px; font-weight: 600; letter-spacing: .09em; line-height: 1.8; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 6px; margin-top: 30px; }
.sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.sidebar nav a:hover { background: #ffffff14; }
.sidebar nav a[aria-current=page] { background: var(--sand); color: var(--forest); }
.sidebar nav .icon { width: 21px; height: 21px; }
.mode { margin-top: auto; padding-top: 20px; text-align: center; font-size: 12px; color: #b9d3c2; }
main { min-width: 0; padding: 0 22px 32px; }
main > * { max-width: 1240px; }
main > * + * { margin-top: 14px; }

.page-header { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 132px; padding: 14px 0; margin: 0 -22px; max-width: 1284px; }
.page-header img { position: absolute; top: 0; right: 0; width: min(50%, 480px); height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.heading { position: relative; margin-left: 22px; padding-left: 16px; border-left: 3px solid var(--gold); max-width: 66%; }
.heading h1 { font: 700 clamp(26px, 3.2vw, 38px)/1.12 var(--serif); }
.heading p { margin-top: 4px; color: var(--soft); font-size: 16px; }
.back { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px 22px; padding: 5px 14px; border-radius: 20px; background: var(--grey); font-weight: 600; text-decoration: none; }

.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 8px #5a3a1410; }
.panel { overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 11px 18px; background: var(--forest); color: #fff; font-size: 17px; }
.panel-head span:not(.icon) { font-weight: 400; font-size: 14px; }
.panel-head .icon { width: 22px; height: 22px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; }
.toolbar select { width: auto; max-width: 220px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 150px; }
.search .icon { position: absolute; left: 11px; pointer-events: none; }
.search input { padding-left: 38px !important; }
.hint { color: var(--soft); font-size: 12.5px; }
.empty { display: grid; justify-items: center; gap: 12px; padding: 26px 18px; text-align: center; color: var(--soft); }
.empty .row { justify-content: center; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill .icon { width: 15px; height: 15px; }
.green { background: var(--green); color: var(--green-ink); }
.amber { background: var(--amber); color: var(--amber-ink); }
.grey { background: var(--grey); color: #302d2a; }
.lavender { background: #e6dbf1; color: #4a2d6b; }
.tag { padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge, .avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--sand); color: var(--forest); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #f6e6d3; }
.avatar.green, .badge.green, .avatar.green.large { background: var(--green); }
.avatar.large { width: 46px; height: 46px; }
.avatar .icon { width: 23px; height: 23px; }

/* inbox */
.inbox { display: grid; grid-template-columns: minmax(260px, 4fr) minmax(0, 5fr); gap: 10px; align-items: start; }
.list .toolbar select { flex: 0 0 auto; }
.messages { max-height: calc(100vh - 220px); min-height: 200px; overflow-y: auto; padding: 0 6px 8px; }
.messages li + li { border-top: 1px solid var(--line); }
.message { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 9px; border: 0; border-radius: 9px; background: none; text-align: left; }
.message:hover { background: var(--head); }
.message[aria-current=true] { background: var(--green); }
.summary { display: grid; flex: 1; min-width: 0; }
.summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.when { display: grid; justify-items: end; gap: 4px; align-self: flex-start; font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.message .tag { background: #fff9; }
.list-foot { padding: 10px; border-top: 1px solid var(--line); text-align: center; }
.conversation { padding: 10px 14px 14px; }
.contact { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact > div { flex: 1; min-width: 0; }
.contact h2 { font-size: 17px; overflow-wrap: anywhere; }
.contact p { font-size: 13px; }
.info { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--head); }
.details { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin-top: 10px; font-size: 13px; }
.details dt { color: var(--soft); }
.details dd { overflow-wrap: anywhere; }
.bubble { margin-top: 12px; padding: 12px 14px 8px; border-radius: 10px; background: var(--green); }
.forwarded { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-style: italic; }
.body { font-size: 16px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; text-align: right; font-size: 12px; color: #2e4030; }
.review { display: grid; gap: 12px; margin-top: 14px; }
.reply { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.reply-head { display: flex; align-items: center; gap: 9px; padding: 7px 11px; background: var(--head); }
.reply-head .link { margin-left: auto; font-size: 13px; }
.reply textarea { display: block; border: 0 !important; border-radius: 0 !important; background: #fff !important; }
.reply + .hint { margin-top: -7px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > span, legend { font-size: 12.5px; font-weight: 600; }
.wide { grid-column: 1 / -1; }
.amount { display: grid; grid-template-columns: 84px 1fr; gap: 6px; }
.decide { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 -14px -14px; padding: 10px 14px 14px; border-radius: 0 0 12px 12px; background: var(--card); box-shadow: 0 -1px 0 var(--line); }
.decide .button:disabled { opacity: 1; background: var(--grey); border-color: var(--grey); color: #6d675f; }
.decide .button { padding-block: 10px; }
.outcome { display: grid; justify-items: start; gap: 8px; margin-top: 14px; padding: 14px; border-radius: 10px; border: 1px solid #bcdca9; background: #eff8e8; font-weight: 600; overflow-wrap: anywhere; }
.outcome.muted { border-color: var(--line); background: var(--head); }

/* tasks */
.notice { display: block; padding: 10px 14px; border-radius: 9px; background: var(--amber); color: var(--amber-ink); font-weight: 600; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 10px; background: var(--head); text-align: left; font-size: 13px; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pick { width: 46px; padding-left: 18px; }
.name strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.name a { font-size: 12.5px; color: var(--soft); }
tr.done .name strong, li.done label span { text-decoration: line-through; color: var(--soft); }
.due { white-space: nowrap; }
.due .icon { margin-right: 8px; vertical-align: -4px; }
.late { color: var(--red); font-weight: 600; }
.status select.pill { width: 136px; border: 0; padding-block: 5px; background-color: var(--grey); }
.status select.pill.amber { background-color: var(--amber); }
.actions { white-space: nowrap; width: 100px; }
.square { display: inline-grid; place-items: center; width: 34px; height: 32px; margin-right: 6px; border: 1px solid var(--gold); border-radius: 8px; background: var(--card); }
.square.green { border-color: #cde6bd; background: var(--green); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 18px; background: var(--green); }
.add-task { display: grid; grid-template-columns: minmax(160px, 3fr) minmax(100px, 1fr) minmax(140px, 1fr) auto; gap: 8px; padding: 12px; }

/* events */
.calendar { padding: 12px; }
.calendar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.calendar-bar h2 { font-size: 19px; min-width: 190px; text-align: center; }
.step { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.segmented { display: flex; margin-left: auto; border: 1px solid #cdbda8; border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; background: var(--card); padding: 7px 20px; font-weight: 600; }
.segmented button[aria-pressed=true] { background: var(--forest-button); color: #fff; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.day { display: grid; justify-items: center; gap: 4px; padding: 10px 2px; border: 0; background: var(--card); font-size: 13px; }
.day:hover { background: var(--head); }
.day.today strong { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.day[aria-pressed=true] { background: var(--green); }
.day.outside { color: #8b857d; }
.days.month .day { min-height: 70px; padding-block: 7px; }
.days.month .day strong { display: none; }
.days.month .day:nth-child(-n+7) strong { display: block; }
.dot { width: 9px; height: 9px; margin-top: 8px; border: 1.5px solid #77726a; border-radius: 50%; }
.dot.ready { border-color: #146b30; background: #146b30; }
.dot.waiting { border-color: #c27c0e; background: #c27c0e; }
.dot.tentative { background: #b9b2a8; }
.bookings { padding: 10px; display: grid; gap: 10px; }
.bookings a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px 120px 20px; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.bookings a:hover { background: var(--head); }
.bookings img { width: 96px; height: 76px; border-radius: 8px; object-fit: cover; }
.what, .meta { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.what strong { font-size: 16px; overflow-wrap: anywhere; }
.what span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.meta > span:first-child { font-size: 13px; }

/* event detail */
.overview { display: grid; grid-template-columns: minmax(200px, 2fr) 3fr; overflow: hidden; }
.overview > img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px; align-content: center; }
.fact { display: flex; align-items: center; gap: 12px; }
.fact div, .highlight div { display: grid; }
.fact div strong, .highlight strong { font-size: 13px; }
.fact.edit { padding-top: 10px; border-top: 1px solid var(--line); }
.fact.edit .button { margin-left: auto; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pair.top { align-items: start; }
.highlight { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.highlight div { flex: 1; font-size: 16px; font-weight: 500; }
.highlight.paid { background: var(--green); border-color: #c6e0b4; }
.highlight .badge { width: 44px; height: 44px; }
.checklist, .spend-list { padding: 4px 14px; }
.checklist li, .spend-list li { border-bottom: 1px solid var(--line); }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist label { display: flex; flex: 1; align-items: center; gap: 12px; padding: 11px 2px; font-weight: 500; min-width: 0; }
.checklist a { display: grid; place-items: center; padding: 6px; }
.spend-list a { display: flex; align-items: center; gap: 12px; padding: 10px 2px; text-decoration: none; }
.spend-list a > span:nth-child(2) { flex: 1; font-weight: 500; overflow-wrap: anywhere; }
.panel .add-task { grid-template-columns: 1fr 1fr; }
.panel .add-task input:first-child { grid-column: 1 / -1; }
.link-expense { padding: 12px 14px; }
.space > img { width: 128px; height: 96px; margin: 14px 14px 4px; border-radius: 8px; object-fit: cover; }

/* spending, settings */
.totals { display: flex; flex-wrap: wrap; gap: 12px; }
.total, .subtotal { display: grid; align-content: center; padding: 14px 20px; }
.total { background: var(--forest); color: #fff; border-radius: 12px; min-width: 240px; }
.total strong { display: grid; font: 700 28px/1.25 var(--serif); }
.subtotal strong { font-size: 18px; }
.ledger select { max-width: 230px; }
.number { text-align: right; font-weight: 700; white-space: nowrap; }
.ledger th:last-child { text-align: right; }
.text { display: grid; gap: 12px; padding: 18px; }
.text h2 { font: 700 21px var(--serif); }
pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--head); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }

/* payroll */
.red { background: #f8d9d3; color: var(--red); }
.toolbar.bare { padding: 0; }
.toolbar.between { justify-content: space-between; }
.toolbar h2, .importer h2 { font: 700 19px var(--serif); }
button.notice { width: 100%; border: 0; text-align: left; cursor: pointer; }
small { display: block; font-size: 12px; font-weight: 400; color: var(--soft); }
.total span + strong { margin-top: 2px; }
.flag { color: var(--amber-ink); font-size: 12px; }
.pad { padding: 0 14px 12px; }
.pay-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); border-radius: 8px; overflow: hidden; }
.weekday { padding: 6px; background: var(--head); text-align: center; font-size: 12px; font-weight: 600; }
.pay-day { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; min-height: 78px; padding: 6px; border: 0; background: var(--card); text-align: left; }
button.pay-day:hover { background: var(--head); }
.pay-day.blank { background: var(--page); }
.pay-day[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--forest-button); }
.number-of-day { font-size: 13px; }
.pay-day.today .number-of-day { align-self: flex-start; min-width: 22px; border-radius: 11px; background: var(--forest-button); color: #fff; text-align: center; font-weight: 700; }
.chip { display: grid; padding: 3px 6px; border-radius: 6px; font-size: 11px; line-height: 1.3; }
.chip strong { font-size: 13px; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .short { display: none; }
.dues { padding: 2px 14px; }
.dues li { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 104px; align-items: center; gap: 14px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.dues .pill { justify-self: start; }
.who { min-width: 0; }
.sum { white-space: nowrap; }
.panel-foot { display: flex; justify-content: flex-end; padding: 12px 14px; }
.people, .factory { overflow: hidden; }
.roster td { font-size: 14px; }
.roster .actions { width: auto; }
.wide-actions .button { margin-right: 6px; padding: 5px 10px; font-size: 13px; }
tr.inactive { opacity: .55; }
.pay-lines { display: grid; gap: 8px; }
.pay-lines label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-lines .cedi { display: flex; align-items: center; gap: 8px; width: 170px; flex: none; font-size: 13px; }

/* reports */
.file { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.button { position: relative; cursor: pointer; }
label.button:focus-within { outline: 3px solid #c8871f; outline-offset: 2px; }
.order { width: auto; }
.import-result { padding: 10px 12px; border-radius: 8px; background: var(--green); color: var(--green-ink); font-weight: 600; }
.segmented.first { margin-left: 0; }
.scroll { overflow-x: auto; }
.report-table td { font-size: 14px; }
.report-table .notes { min-width: 180px; max-width: 320px; font-size: 12.5px; }
details { padding: 10px 14px 14px; }
summary { cursor: pointer; font-weight: 600; }
details ul { margin-top: 8px; font-size: 13.5px; overflow-wrap: anywhere; }
.report-note { margin-top: 10px; }
.breakdown dl { margin: 0; padding: 4px 16px 8px; }
.breakdown dl div { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.breakdown dl div:last-child { border-bottom: 0; }
.breakdown dt { color: var(--soft); font-size: 13.5px; }
.breakdown dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.breakdown dd.flag { font-size: inherit; }
.breakdown dd span { display: block; }

/* staff */
.staff-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; padding: 10px; }
.staff-list li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.staff-list .who { display: grid; flex: 1; justify-items: start; gap: 3px; overflow-wrap: anywhere; }
.staff-list .who span { font-size: 14px; }
.staff-list .link { padding-inline: 0; }
.staff-list li.inactive { opacity: .55; }

/* overlays */
dialog { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--page); color: var(--ink); }
dialog::backdrop { background: #031a0f99; }
dialog form { display: grid; gap: 14px; }
dialog h2 { font: 700 23px var(--serif); }
fieldset { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 6px; padding: 0; }
.check { display: flex; align-items: center; gap: 8px; }
.check.paid { padding-bottom: 9px; }
.form-error { color: var(--red); font-weight: 600; }
.form-error:empty { display: none; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100vw - 28px); padding: 11px 18px; border-radius: 10px; background: var(--forest); color: #fff; box-shadow: 0 8px 24px #0004; }
.toast button { border: 0; background: none; color: var(--sand); font-weight: 700; text-decoration: underline; }
.toast.error { bottom: 78px; background: var(--red); }
.access { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--forest); }
.access-box { display: grid; gap: 14px; width: min(400px, 100%); padding: 28px; border-radius: 14px; background: var(--page); }
.access form { display: grid; gap: 12px; }
.access h1 { font: 700 28px var(--serif); }
.access input { font-size: 16px; }

/* accounts */
.mode strong, .mode span { display: block; }
.mode strong { color: #fbeed8; font-size: 13px; overflow-wrap: anywhere; }
.mode button { margin: 2px 0 10px; padding: 2px 6px; border: 0; background: none; color: var(--sand); font-weight: 600; text-decoration: underline; }
.team { overflow: hidden; }
.team h2 { font: 700 19px var(--serif); }
.team ul { padding: 0 14px 6px; }
.team li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 2px; border-top: 1px solid var(--line); }
.team .who { flex: 1 1 180px; }
.steps { display: grid; gap: 6px; }

@media (max-width: 1080px) {
  .inbox, .overview, .pair { grid-template-columns: minmax(0, 1fr); }
  .messages { max-height: 360px; }
  .bookings a { grid-template-columns: 96px minmax(0, 1fr) auto 20px; }
  .bookings .what { grid-row: span 2; }
  .bookings img { grid-row: span 2; }
  .bookings a > .icon { grid-column: 4; grid-row: 1 / span 2; }
  .bookings .meta { grid-column: 3; }
}
@media (max-width: 760px) {
  .app { display: block; background: none; }
  .sidebar { z-index: 10; height: auto; padding: 8px 8px 6px; overflow: visible; }
  .brand .mark, .brand p, .mode { display: none; }
  .brand strong { font-size: 15px; }
  .brand br { display: none; }
  .messages { min-height: 0; }
  .decide { position: static; }
  .sidebar nav { display: flex; gap: 2px; margin-top: 8px; overflow-x: auto; }
  .sidebar nav a { flex: 1 0 auto; flex-direction: column; gap: 2px; padding: 6px 8px; font-size: 11.5px; }
  main { padding: 0 12px 90px; }
  .page-header { margin: 0 -12px; min-height: 108px; }
  .page-header img { opacity: .35; }
  .heading { margin-left: 12px; max-width: 94%; }
  .back { margin-left: 12px; }
  .toolbar select { flex: 1 1 140px; max-width: none; }
  .add-task, .panel .add-task { grid-template-columns: 1fr 1fr; }
  .add-task input:first-child { grid-column: 1 / -1; }
  .segmented { margin-left: 0; }
  .day { font-size: 11.5px; }
  .facts { grid-template-columns: 1fr; }
  .bookings a { grid-template-columns: 72px minmax(0, 1fr); }
  .bookings img { width: 72px; height: 64px; grid-row: auto; }
  .bookings .what { grid-row: auto; }
  .bookings .meta { grid-column: auto; }
  .bookings a > .icon { display: none; }
  /* tables become stacked records */
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  td { padding: 2px 0; border: 0; }
  .pick { width: auto; padding: 0; }
  .name { flex: 1 1 calc(100% - 40px); }
  .actions { margin-left: auto; width: auto; }
  .ledger td:nth-child(2) { flex-basis: 100%; order: -1; }
  .ledger .number { margin-left: auto; }
  .pay-day { min-height: 58px; padding: 3px; }
  .chip { padding: 2px 1px; text-align: center; }
  .chip strong { font-size: 11px; }
  .chip span, .chip .full { display: none; }
  .chip .short { display: block; }
  .dues li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .roster td:not(.name):not(.actions) { margin-right: 8px; }
  .roster .name { flex-basis: 100%; }
  .roster .actions { margin-left: 0; flex-basis: 100%; padding-top: 4px; }
  .breakdown dl div { grid-template-columns: 112px minmax(0, 1fr); }
  .report-table td { display: flex; gap: 6px; flex: 1 1 45%; align-items: baseline; }
  .report-table td[data-label]::before { content: attr(data-label) ":"; font-size: 12px; color: var(--soft); }
  .report-table td[data-label=Date], .report-table td.notes { flex-basis: 100%; max-width: none; }
  .report-table td[data-label=Date] { flex-direction: column; }
  .report-table td[data-label=Date]::before { content: none; }
}
