/* Studio dashboard: "The album, opened" in operate mode.
   Calm surfaces, one clear next action per card, 44px+ tap targets, Newsreader only for page and card titles. */

body.studio { background: var(--bg); }

/* ---------- sign in ---------- */
.login { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: #17130f; overflow: hidden; }
.login-photo, .login-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.login-photo img { object-fit: cover; object-position: 50% 25%; }
.login::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 9, 7, .92) 0%, rgba(12, 9, 7, .55) 45%, rgba(12, 9, 7, .1) 75%); }
.login-panel { position: relative; z-index: 1; width: 100%; max-width: 440px; padding: 0 20px calc(36px + env(safe-area-inset-bottom)); color: #f3eee8; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand img { height: 48px; width: auto; }
.login-brand span { font: 400 1.5rem/1 var(--serif); }
.login-panel h1 { color: #fff; font-size: clamp(2.6rem, 10vw, 3.4rem); margin-bottom: 10px; }
.login-panel p { color: #d8d0c6; font-size: 1.0625rem; }
.login-panel label { color: #f3eee8; }
.login-btn { min-height: 56px; font-size: 17px; background: #fbfaf8; color: #17130f; border-color: #fbfaf8; margin-top: 8px; }
.login-btn:hover { background: #fff; }
.login-panel input { margin-bottom: 8px; }
.login-note { font-size: 15px; margin: 14px 0 0; color: #d8d0c6 !important; }
@media (min-width: 900px) {
  .login { align-items: center; justify-content: flex-start; }
  .login-photo { left: 42%; width: auto; }
  .login-photo img { left: 0; }
  .login::after { display: none; }
  .login-panel { width: 42%; max-width: none; padding: 0 min(6vw, 96px); }
  .login-panel > * { max-width: 400px; }
}

/* ---------- the shell: sidebar on a laptop, top bar and five tabs on a phone ---------- */
.side { display: none; }
.mob-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 12px 0 16px; padding-top: env(safe-area-inset-top); }
.mob-bar .logo { height: 34px; }
.bar-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: rgba(243, 238, 232, .12); color: var(--bar-ink); font: 600 15px var(--sans); text-decoration: none; }
.bar-btn .ic { width: 20px; height: 20px; }
.bar-btn:hover { background: rgba(243, 238, 232, .2); color: #fff; }
.tabs-bottom {
  display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: var(--bar); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(243, 238, 232, .08);
}
.tabs-bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 54px; font-size: 12px; font-weight: 500; color: var(--bar-muted); text-decoration: none; border-radius: 12px; }
.tabs-bottom .ic { width: 24px; height: 24px; }
.tabs-bottom a.active { color: var(--bar-ink); }
.tabs-bottom a.active .ic { color: #fff; }
.tabs-bottom a.active::after { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--accent-on-dark); margin-top: 1px; }
#view { width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 16px calc(110px + env(safe-area-inset-bottom)); }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--bar) 248px, transparent 248px); }
  .mob-bar, .tabs-bottom { display: none; }
  .side {
    display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
    background: var(--bar); color: var(--bar-ink); padding: 22px 16px 24px;
  }
  .side-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 2px 8px; }
  .side-brand img { height: 40px; width: auto; }
  .side-brand span { display: flex; flex-direction: column; font: 500 1.3rem/1.1 var(--serif); }
  .side-brand small { font: 500 12.5px/1.4 var(--sans); color: var(--bar-muted); letter-spacing: .02em; }
  .side-cta { background: var(--bar-ink); color: var(--bar); border-color: var(--bar-ink); min-height: 44px; font-size: 15px; }
  .side-cta:hover { background: #fff; }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-group { margin: 14px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--bar-muted); }
  .side-group:first-child { margin-top: 0; }
  .side-nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; color: var(--bar-muted); text-decoration: none; font-weight: 500; font-size: 15.5px; transition: background-color .15s, color .15s; }
  .side-nav a:hover { color: var(--bar-ink); background: rgba(243, 238, 232, .06); }
  .side-nav a.active { color: #fff; background: rgba(243, 238, 232, .1); }
  .side-nav a.active .ic { color: var(--accent-on-dark); }
  .side-nav .ic { width: 20px; height: 20px; }
  #view { padding: 40px 40px 72px; }
}
@media (min-width: 1440px) { #view { padding-left: 56px; padding-right: 56px; } }

/* ---------- page furniture ---------- */
.page-head { margin: 0 0 24px; }
.page-head h1 { font-size: clamp(2.1rem, 6.4vw, 2.9rem); margin-bottom: 6px; letter-spacing: -.012em; }
.page-head p { margin: 0; font-size: 1.0625rem; max-width: 60ch; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.head-row h1 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 600; color: var(--muted); margin: -8px 0 8px; }
.back:hover { color: var(--text); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-head h2 { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.005em; margin: 0; }
.card-title { font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.008em; margin: 0 0 16px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-title small { font: 500 15px var(--sans); color: var(--muted); }
.card-title .pill { font-family: var(--sans); align-self: center; }
.card .sub { margin: 28px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.card-actions { margin-top: 18px; }
.fld { display: block; font-weight: 400; margin: 0; }
.fld > span, .fld-t { display: block; font: 600 15px/1.4 var(--sans); margin: 0 0 6px; }
.form-card .card-title:not(:first-child), .form-card .card-title + * { margin-top: 0; }
.form-card .card-title:not(:first-child) { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 1.125rem; }
.checks { display: grid; gap: 12px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.savebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 10; padding: 12px 0 0; background: linear-gradient(transparent, var(--bg) 30%); }
.savebar .btn { box-shadow: 0 8px 24px rgba(23, 19, 15, .18); min-height: 54px; }
@media (min-width: 1024px) { .savebar { bottom: 16px; } }
@media (min-width: 900px) and (max-width: 1023px) { .studio .toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 12px 14px; margin: 16px 0 0; font-weight: 500; }
.stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- headline numbers (studio-kpi.js) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
@media (min-width: 1024px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.kpi {
  position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px;
  color: inherit; text-decoration: none; transition: border-color .15s;
}
a.kpi:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.kpi-label { font-size: 14px; font-weight: 500; color: var(--muted); line-height: 1.3; }
.kpi-value { font: 600 clamp(1.35rem, 5.4vw, 1.9rem)/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.kpi-foot { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.kpi-sub { color: var(--muted); }
.kpi .spk { position: absolute; right: 12px; top: 14px; opacity: .9; }
.kpi:has(.spk) .kpi-label { padding-right: 112px; }
@media (max-width: 520px) { .kpi .spk { display: none; } .kpi:has(.spk) .kpi-label { padding-right: 0; } }
.kpi-alert .kpi-sub { color: var(--accent); font-weight: 600; }
.delta { font-weight: 600; white-space: nowrap; }
.d-good { color: var(--ok); }
.d-bad { color: var(--accent); }
.d-flat { color: var(--muted); }
.spk-line { fill: none; stroke: var(--chart-1); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spk-area { fill: color-mix(in srgb, var(--chart-1) 10%, transparent); }
.spk-dot { fill: var(--chart-1); }

/* The dark lead tile on Today and Business: the one number to look at first. */
.kpis > .kpi:first-child { background: var(--bar); border-color: var(--bar); color: var(--bar-ink); }
.kpis > .kpi:first-child .kpi-label, .kpis > .kpi:first-child .kpi-sub { color: var(--bar-muted); }
.kpis > .kpi:first-child.kpi-alert .kpi-sub { color: var(--accent-on-dark); }
.kpis > .kpi:first-child .d-good { color: #8fd6a8; }
.kpis > .kpi:first-child .d-bad { color: var(--accent-on-dark); }
.kpis > .kpi:first-child .spk-line { stroke: var(--bar-ink); }
.kpis > .kpi:first-child .spk-area { fill: rgba(243, 238, 232, .1); }
.kpis > .kpi:first-child .spk-dot { fill: var(--bar-ink); }
.kpis > a.kpi:first-child:hover { border-color: var(--bar); background: color-mix(in srgb, var(--bar) 92%, #fff); }

/* ---------- Today ---------- */
.stage-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stage-strip a { display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; color: inherit; text-decoration: none; min-height: 64px; transition: background-color .15s; }
.stage-strip a + a { border-left: 1px solid var(--line); }
.stage-strip a:hover { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.stage-strip b { font: 600 1.35rem/1.15 var(--sans); }
.stage-strip span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 400px) { .stage-strip a { padding: 10px; } .stage-strip span { font-size: 12.5px; } }
.today-grid { display: grid; gap: 8px 28px; }
@media (min-width: 1100px) { .today-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .today-side { position: sticky; top: 24px; margin-top: 40px; } }
.today-side { display: grid; gap: 14px; }
.section-head .count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 14px var(--sans); margin-right: auto; margin-left: 10px; }

.todos { display: grid; gap: 10px; }
.todo { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; }
.todo h3 { font-size: 1.0625rem; margin: 0 0 4px; }
.todo p { margin: 0 0 14px; color: var(--muted); }
.todo .row { gap: 8px; }
.todo-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); }
.todo-ic .ic { width: 22px; height: 22px; }
.todo-ic.k-message { color: var(--wa); background: color-mix(in srgb, var(--wa) 12%, var(--surface)); }
.todo.first .todo-ic { background: var(--accent-soft); color: var(--accent); }
.flag { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent); margin-right: 4px; }
.flag::after { content: ' ·'; color: var(--muted); font-weight: 400; }
@media (min-width: 900px) { .todo { padding: 20px 22px; gap: 18px; } }

/* Side panels: next shoots and the delivery queue */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.panel-head h2 { font: 600 1.0625rem/1.3 var(--sans); margin: 0; letter-spacing: 0; }
.panel-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 36px; }
.panel-head a:hover { color: var(--text); }
.panel-head a .ic { width: 16px; height: 16px; }
.panel-empty { margin: 4px 0 12px; font-size: 15px; }
.panel-more { margin: 0; padding: 10px 0 8px; border-top: 1px solid var(--line); font-size: 14.5px; }
.panel-more a { font-weight: 600; color: var(--muted); }
.agenda-list, .dq-list { list-style: none; margin: 0; padding: 0; }
.agenda-list li + li, .dq-list li + li { border-top: 1px solid var(--line); }
.agenda-list a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
.agenda-list a:hover strong, .dq-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: var(--surface-2); }
.day b { font: 600 1.25rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.day small { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.ag-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ag-main strong { font-weight: 600; }
.ag-main small { color: var(--muted); font-size: 14px; line-height: 1.4; }
.warn-text { color: var(--warn) !important; font-weight: 500; }
.dq-list a { display: grid; gap: 4px; padding: 12px 0; color: inherit; text-decoration: none; }
.dq-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dq-top strong { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.dq-list small { color: var(--muted); font-size: 14px; }
.dq-days { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dq-days.late { color: var(--accent); }
.meter { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 6px; background: var(--text); }
.meter.late > span { background: var(--accent); }

/* ---------- More (phones) ---------- */
.more-links { padding: 0; overflow: hidden; margin-bottom: 14px; }
.more-links a { display: grid; grid-template-columns: 24px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 16px; min-height: 68px; color: inherit; text-decoration: none; }
.more-links a + a { border-top: 1px solid var(--line); }
.more-links a:hover { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.more-links span { display: flex; flex-direction: column; gap: 1px; }
.more-links small { color: var(--muted); font-size: 14px; }
.more-links .ic:last-child { color: var(--muted); width: 18px; height: 18px; }
.limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.limits li { display: grid; gap: 6px; }
.lim-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.lim-top b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Bookings ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 8px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip-f { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 15px var(--sans); cursor: pointer; }
.chip-f span { font-size: 13px; color: var(--muted); font-variant-numeric: lining-nums; }
.chip-f.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-f.on span { color: color-mix(in srgb, var(--bg) 70%, transparent); }
/* Search and the list/board switch */
.b-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.search { position: relative; flex: 1 1 280px; margin: 0; font-weight: 400; }
.search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; border-radius: 999px; min-height: 48px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 14.5px var(--sans); cursor: pointer; }
.seg button .ic { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgb(23 19 15 / .12); }

/* List: stacked on a phone, a table from 900px */
.b-table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.b-thead { display: none; }
.b-table [role="listitem"] + [role="listitem"] { border-top: 1px solid var(--line); }
.b-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "av who money" "av stage money" "av when when"; gap: 4px 12px; align-items: center; padding: 14px 16px; color: inherit; text-decoration: none; transition: background-color .15s; }
.b-row:hover { background: color-mix(in srgb, var(--surface-2) 55%, var(--surface)); }
.b-row .avatar { grid-area: av; width: 40px; height: 40px; align-self: start; }
.b-who { grid-area: who; display: flex; flex-direction: column; min-width: 0; }
.b-who strong { font-size: 1.0625rem; font-weight: 600; }
.b-who small { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-stage { grid-area: stage; display: flex; gap: 6px; flex-wrap: wrap; }
.b-when { grid-area: when; font-size: 14px; color: var(--muted); }
.b-when.soon, .deal-foot .soon { color: var(--text); font-weight: 600; }
.b-money { grid-area: money; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; align-self: start; }
.b-money b { font-weight: 600; font-size: 1.0625rem; }
.b-money small { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.paid { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 110px; }
.paid .meter { width: 100%; height: 5px; }
.paid .meter > span { background: var(--ok); }
@media (min-width: 900px) {
  .b-thead, .b-row { display: grid; grid-template-columns: 40px minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1.4fr) 170px; grid-template-areas: none; gap: 16px; align-items: center; }
  .b-thead { padding: 12px 20px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
  .b-thead span:last-child { text-align: right; }
  .b-row { padding: 14px 20px; }
  .b-row > .avatar, .b-row > .b-who, .b-row > .b-stage, .b-row > .b-when, .b-row > .b-money { grid-area: auto; }
  .b-row .avatar { align-self: center; }
  .b-money { align-self: center; }
}
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 600 14px var(--sans); color: var(--muted); }

/* Board: one column per stage, scrolls sideways on a phone */
.board { display: grid; align-items: start; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82vw); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 12px; margin: 0 -16px; }
@media (min-width: 1024px) { .board { grid-auto-columns: minmax(220px, 1fr); margin: 0; padding: 0 0 12px; } }
.col { scroll-snap-align: start; background: var(--surface-2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px; }
.col-head h2 { font: 600 15px/1.3 var(--sans); margin: 0; display: flex; align-items: center; gap: 8px; letter-spacing: 0; }
.col-head h2 span { font-size: 13px; color: var(--muted); font-weight: 600; }
.col-head b { font-size: 14px; font-weight: 600; color: var(--muted); }
.col-body { display: grid; gap: 8px; }
.col-empty { margin: 4px; font-size: 14px; }
.deal { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: inherit; text-decoration: none; transition: border-color .15s; }
.deal:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.deal strong { font-weight: 600; }
.deal small { color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.deal-foot { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.deal-foot b { color: var(--text); font-size: 15px; }
.deal .paid { align-items: stretch; min-width: 0; }
.deal .paid small { font-size: 12.5px; color: var(--muted); }

/* ---------- Booking detail ---------- */
.deal-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 22px; }
@media (min-width: 760px) { .deal-strip { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.deal-strip > div { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.deal-strip dt { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.deal-strip dd { margin: 0; font: 600 1.3rem/1.2 var(--sans); letter-spacing: -.01em; }
.deal-strip small { font-size: 13px; color: var(--muted); }
.deal-strip .due dd { color: var(--accent); }
.deal-strip .meter { height: 5px; }
.meter.ok > span { background: var(--ok); }
.b-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.b-head h1 { margin: 0 0 8px; font-size: clamp(2.3rem, 7vw, 3.2rem); }
.b-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; color: var(--muted); }
.b-contact { display: flex; gap: 10px; }
@media (max-width: 600px) { .b-contact { width: 100%; } .b-contact .btn { flex: 1; } }
.section-card { margin-bottom: 14px; }
@media (min-width: 900px) { .section-card { padding: 28px 30px; margin-bottom: 18px; } }
.more { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.more summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; gap: 8px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; margin-right: 4px; }
.more[open] summary::before { transform: rotate(45deg); }
.preview { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 14px 16px; font-size: 15px; margin: 18px 0 0; }
.money-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.money-grid > div { margin: 0 -1px -1px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.money-grid div { background: var(--surface); padding: 14px 16px; }
.money-grid dt { color: var(--muted); font-size: 14px; }
.money-grid dd { margin: 2px 0 0; font: 600 1.3rem/1.2 var(--sans); letter-spacing: -.01em; }
.money-grid .due dd { color: var(--accent); }
@media (min-width: 700px) { .money-grid { grid-template-columns: repeat(4, 1fr); } }

.team-row, .fn-edit { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 8px; margin-bottom: 12px; align-items: end; }
.team-row { grid-template-columns: 1.2fr 1fr 1fr 120px auto; }
.team-row.with-mode { grid-template-columns: 1.2fr 1fr 1fr 120px 140px auto; }
.team-row > .icon-btn, .fn-tail > .icon-btn { margin-bottom: 2px; }
/* A small label above each box in team and function rows. */
.mini { display: flex; flex-direction: column; gap: 4px; margin: 0; min-width: 0; font: 500 13.5px/1.3 var(--sans); color: var(--muted); }
.mini input, .mini select { width: 100%; min-width: 0; }
.fn-tail { display: flex; gap: 8px; align-items: flex-end; }
.fn-tail .mini { width: 140px; }
#new-fns .fn-edit { grid-template-columns: 1.2fr 1fr 1fr auto; }
.link-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; margin-bottom: 10px; align-items: center; }
@media (max-width: 640px) {
  .link-row { grid-template-columns: 1fr 44px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .link-row [data-title] { grid-column: 1; }
}
@media (max-width: 640px) {
  .team-row, .fn-edit, #new-fns .fn-edit { grid-template-columns: 1fr 1fr; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
  .fn-edit [data-f="v"] { grid-column: span 2; }
  .fn-tail { grid-column: span 2; }
  .fn-tail .mini { flex: 1; width: auto; }
  .team-row { grid-template-columns: 1fr 1fr 44px; grid-template-areas: "n r x" "p c ."; }
  .team-row [data-f="n"] { grid-area: n; } .team-row [data-f="r"] { grid-area: r; } .team-row [data-f="p"] { grid-area: p; }
  .team-row [data-f="c"] { grid-area: c; } .team-row [data-rm] { grid-area: x; }
  .team-row.with-mode { grid-template-columns: 1fr 1fr 44px; grid-template-areas: "n r x" "p p ." "c m ."; }
  .team-row [data-f="m"] { grid-area: m; }
  #new-fns .fn-edit [data-f="t"] { grid-column: 1; }
}
.runsheet { min-height: 320px; font: 15px/1.6 ui-monospace, Menlo, monospace; }
.upload-btn { width: max-content; margin: 0; }
.photo .del, .photo.picked .del { width: 40px; height: 40px; background: rgba(23, 19, 15, .55); }
.photo .del .ic { width: 19px; height: 19px; }
.qr-box { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.qr-box .qr { width: 168px; background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.qr-box .qr svg { width: 100%; height: auto; display: block; }
.album-count { font-size: 1.0625rem; }
.album-count b { font: 500 1.75rem var(--sans); }
.progress { height: 8px; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.inline-fld { margin: 0; }
.num-sm { width: 96px; }
.msgs { border-top: 1px solid var(--line); }
.msg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.msg-l { display: flex; flex-direction: column; font-weight: 500; }
.msg-l small { color: var(--muted); font-weight: 400; font-size: 14px; }

/* ---------- Prices ---------- */
.price-table input { min-height: 48px; }
.price-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 56px 48px; gap: 8px; margin-bottom: 8px; align-items: center; }
.price-head small { color: var(--muted); font-weight: 600; }
.video-tick { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; cursor: pointer; }
.video-tick input { width: 22px; height: 22px; accent-color: var(--accent); }
.video-tick span { display: none; font-size: 14px; }
@media (max-width: 560px) { .video-tick span { display: inline; } }
@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr 1fr 56px 48px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .price-row [data-name] { grid-column: 1 / -1; }
  .price-head { display: none; }
}
.pkg-edit { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 12px; display: grid; gap: 14px; }
.pkg-edit .grid { gap: 14px; }
.months { display: flex; flex-wrap: wrap; gap: 8px; }
.months label { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 44px; font-weight: 500; cursor: pointer; margin: 0; }
.months label:has(input:checked) { background: var(--text); color: var(--bg); border-color: var(--text); }
.months input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--accent); }


/* ---------- booking page tabs ---------- */
.btabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; background: var(--surface-2); border-radius: 999px; position: sticky; top: 70px; z-index: 15; }
@media (max-width: 1023px) { .btabs { top: 64px; } }
@media (min-width: 1024px) { .btabs { top: 12px; } }
.btabs [role="tab"] { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 15px var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btabs [aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(23, 19, 15, .12); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; }

/* ---------- settings as rows ---------- */
.set-rows { border-top: 1px solid var(--line); margin: 0 0 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 400; margin: 0; cursor: pointer; }
.set-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.set-row b { font-weight: 600; }
.set-row small { color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.set-row select, .set-row input:not(.switch) { width: auto; max-width: 220px; flex: none; }
.set-row.stack-row { flex-direction: column; align-items: stretch; }
.set-row.stack-row textarea { min-height: 70px; }
.set-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 52px; min-height: 0; height: 32px; padding: 0; border-radius: 999px; border: 0; background: var(--line); position: relative; cursor: pointer; transition: background-color .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.switch:checked { background: var(--ok); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- uploads, faces, calendar ---------- */
.upload-box { margin-top: 14px; }
.upload-btn input { display: none; }
.face-pick { position: relative; margin-top: 10px; }
.face-pick img { width: 100%; height: auto; border-radius: 8px; }
.face-box { position: absolute; border: 2px solid #fff; border-radius: 8px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); cursor: pointer; padding: 0; min-width: 24px; min-height: 24px; }
.face-box.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.cal-month + .cal-month { margin-top: 28px; }
.cal-month-h { display: flex; align-items: baseline; gap: 12px; font: 600 1.25rem/1.3 var(--sans); letter-spacing: -.005em; margin: 0 0 10px; }
.cal-month-h span { font: 500 14px var(--sans); color: var(--muted); }
.cal-list { padding: 4px 18px; margin: 0; }
.cal-list a { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 14px 0; }
.ag-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.clash { color: var(--warn) !important; font-weight: 600; }
.notice a { color: inherit; }

/* ---------- Booking type switch ---------- */
.seg-s { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 26px; width: fit-content; max-width: 100%; }
.seg-s-opt { position: relative; margin: 0; cursor: pointer; }
.seg-s-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-s-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 500 15px var(--sans); color: var(--muted); transition: background-color .15s ease, color .15s ease; }
.seg-s-opt input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.seg-s-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-s-opt:hover span { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .seg-s-opt span { transition: none; } }

/* ---------- Bookings filters ---------- */
.filter-help { margin: -2px 0 14px; font-size: 14.5px; }

/* ---------- Team picker ---------- */
.team-pick { min-height: 44px; max-width: 100%; flex: 1 1 220px; }

/* ---------- Gallery activity ---------- */
.money-grid.stat-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-grid dt { font-size: 13.5px; }
.alert-box ul { margin: 8px 0 12px; padding-left: 20px; font-weight: 400; }
.alert-box p { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: lining-nums; }
.activity-table th, .activity-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.activity-table th:first-child { text-align: left; font-weight: 500; white-space: normal; }
.activity-table thead th { font: 600 13px var(--sans); color: var(--muted); }
.activity-table tr.flagged th, .activity-table tr.flagged td { background: var(--warn-bg); }

/* ---------- Costs on a booking ---------- */
.expense-row { display: grid; grid-template-columns: 170px 1fr 130px 140px auto; gap: 8px; margin-bottom: 10px; align-items: center; }
@media (max-width: 640px) {
  .expense-row { grid-template-columns: 1fr 1fr 44px; grid-template-areas: "c a x" "l m ."; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .expense-row [data-ec] { grid-area: c; } .expense-row [data-ea] { grid-area: a; } .expense-row [data-el] { grid-area: l; } .expense-row [data-erm] { grid-area: x; } .expense-row [data-m] { grid-area: m; }
}

/* ---------- Business page ---------- */
.biz-kpis { margin: 0 0 6px; }
.cmp-note { font-size: 13.5px; margin: 0 0 16px; }
.chart-note { margin: 18px 0 0; font-size: 14.5px; }
.biz-grid { display: grid; gap: 0 18px; }
.biz-grid > * { min-width: 0; }
@media (min-width: 1200px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .biz-wide { grid-column: 1 / -1; } }
.biz-grid .section-card { height: calc(100% - 18px); }
.biz-wide > .section-card { height: auto; }
.tile-sub { margin: 4px 0 0 !important; font: 400 13px/1.35 var(--sans) !important; color: var(--muted); }
.insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ins { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: baseline; font-size: 15.5px; line-height: 1.45; }
.ins-tag { font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .04em; padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); min-width: 52px; text-align: center; }
.ins-watch .ins-tag { background: var(--warn-bg); color: var(--warn); }
.ins-good .ins-tag { background: var(--ok-bg); color: var(--ok); }
.best-months { margin: 12px 0 0; font-size: 15px; }
.funnel { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.funnel li { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; }
.funnel b { font: 500 1.4rem/1.2 var(--sans); }
.funnel span { color: var(--muted); font-size: 13.5px; }
.funnel .lost b { color: var(--muted); }
@media (max-width: 520px) { .funnel { grid-template-columns: repeat(2, 1fr); } }
.shares { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.shares li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; font-size: 14.5px; }
.sh-label { min-width: 0; overflow-wrap: anywhere; }
.sh-bar { grid-column: 1 / -1; grid-row: 2; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.sh-bar span { display: block; height: 100%; background: var(--chart-1); border-radius: 999px; }
.sh-val { color: var(--muted); font-size: 13.5px; white-space: nowrap; text-align: right; }
.sells { gap: 20px 28px; }
.sells .sub { margin-top: 4px; }
.activity-table th small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }

/* Chart colours from the brand: income in ink, costs in sindoor, quotes (not yet money) in warm stone. */
:root { --chart-1: #2b2520; --chart-2: #c4553f; --chart-3: #cbbfb2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-1: #ebe4dc; --chart-2: #e2826f; --chart-3: #6e645a; } }
:root[data-theme="dark"] { --chart-1: #ebe4dc; --chart-2: #e2826f; --chart-3: #6e645a; }
.chart { position: relative; margin-top: 8px; }
.ch-legend { list-style: none; display: flex; gap: 18px; margin: 0 0 6px; padding: 0; font-size: 14px; color: var(--muted); }
.ch-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw-income { background: var(--chart-1); }
.sw-costs { background: var(--chart-2); }
.ch-scroll { overflow-x: auto; }
.ch-scroll svg { display: block; max-width: none; height: auto; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-base { stroke: var(--muted); }
.ch-axis { fill: var(--muted); font: 500 11px var(--sans); }
.ch-income { fill: var(--chart-1); }
.ch-costs { fill: var(--chart-2); }
.ch-quoted { fill: var(--chart-3); }
.sw-quoted { background: var(--chart-3); }
.ch-hit { fill: transparent; }
.ch-month { outline: none; cursor: default; }
.ch-month:focus-visible .ch-hit { fill: color-mix(in srgb, var(--text) 6%, transparent); }
.ch-focus .ch-month:not(.on) path { opacity: .35; }
.ch-month path { transition: opacity .15s ease; }
@media (prefers-reduced-motion: reduce) { .ch-month path { transition: none; } }
.ch-tip { position: absolute; top: 28px; z-index: 5; display: grid; gap: 3px; min-width: 180px; padding: 10px 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgb(0 0 0 / .14); font-size: 13.5px; pointer-events: none; }
.ch-tip[hidden] { display: none; }
.ch-tip i.sw { margin-right: 6px; vertical-align: -1px; }
.biz-sort { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 500; }
.biz-sort select { width: auto; min-height: 40px; }

/* ---------- Photos page ---------- */
.ev-search { width: 100%; max-width: 420px; margin: 0 0 16px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ev-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; }
.ev-card[hidden] { display: none; }
.ev-card:hover, .ev-card:focus-visible { border-color: var(--text); }
.ev-thumb { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 3 / 2; background: var(--surface-2); color: var(--muted); }
.ev-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-thumb .ic { width: 36px; height: 36px; }
.ev-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ev-text strong { font-size: 1.0625rem; }
.ev-text small { color: var(--muted); }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* Dark mode: the bar colour is close to the page, so the sidebar gets an edge and the lead tile a lighter surface. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .side { border-right: 1px solid var(--line); }
  :root:not([data-theme="light"]) .kpis > .kpi:first-child { background: var(--surface-2); border-color: var(--line); }
}
:root[data-theme="dark"] .side { border-right: 1px solid var(--line); }
:root[data-theme="dark"] .kpis > .kpi:first-child { background: var(--surface-2); border-color: var(--line); }

/* ---------- Business tabs: team pay and extra costs ---------- */
.biz-tabs { margin-top: 4px; }
.biz-tab-tiles { margin: 0 0 18px; }
@media (min-width: 720px) { .biz-tab-tiles { grid-template-columns: repeat(3, 1fr); } }
.activity-table td small { display: block; color: var(--muted); font-size: 12.5px; }
.activity-table tfoot th, .activity-table tfoot td { border-bottom: 0; border-top: 2px solid var(--line); font-weight: 600; }
.pay-people .pay-person { margin-top: 0; }
.pay-person summary span:first-of-type { flex: 1; }
.pay-person summary .money { font-variant-numeric: lining-nums; }
@media (max-width: 479px) { .pay-table th:nth-child(4), .pay-table td:nth-child(4) { display: none; } }

/* ---------- gallery tools: share links, sections, guests, reels, period picker ---------- */
.share-links { display: grid; gap: 12px; }
.share-link { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.share-link-text { display: grid; gap: 2px; min-width: 0; }
.share-link-text small { color: var(--muted); font-size: 14px; }
.share-link-text code { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.section-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px 12px; align-items: center; margin-bottom: 10px; }
.section-row .section-count { font-size: 14px; white-space: nowrap; }
.section-pub { margin: 0; white-space: nowrap; }
@media (max-width: 560px) {
  .section-row { grid-template-columns: 1fr auto; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .section-row [data-sname] { grid-column: 1 / -1; }
}
.upload-into { max-width: 360px; margin-top: 8px; }
.owner-filter { margin-top: 16px; align-items: center; }
.select-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-top: 10px; border-radius: 14px; background: var(--text); color: var(--bg); }
.select-bar select { width: auto; min-width: 160px; }
.photo .sec-tag { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.photo .sel-tick { display: none; position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; place-items: center; background: rgba(255,255,255,.85); border: 2px solid #fff; color: transparent; pointer-events: none; }
.photo .sel-tick svg { width: 16px; height: 16px; }
.photos.selecting .photo .sel-tick { display: grid; }
.photos.selecting .photo.sel-on .sel-tick { background: var(--accent); color: #fff; }
.photos.selecting .photo.sel-on img { outline: 3px solid var(--accent); outline-offset: -3px; }
.guests-table td { overflow-wrap: anywhere; }
.period-pick { gap: 8px; align-items: center; margin: 0 0 10px; }
.period-pick select { width: auto; min-width: 120px; }
.period-now { margin: 0 0 12px; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table-wrap .lines th { text-align: left; font: 600 13.5px var(--sans); color: var(--muted); padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap .lines td { padding-right: 12px; font-size: 14.5px; }
.table-wrap .lines td:last-child { text-align: left; }
.pay-list select { width: auto; min-width: 140px; flex: none; }

/* Prices: what happened to the last save, right above the Save button. */
.save-msg { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(23, 19, 15, .08); }
.save-msg.ok { color: var(--ok, inherit); }
.save-msg.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.save-msg.error { background: var(--danger); color: #fff; border-color: transparent; }
/* Album pages on the enquiry and booking forms (empty = skip the album). */
.album-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.album-pick > span { flex: 1 1 200px; }
.album-pick input[type="number"] { width: 96px; }
/* Pending / Confirmed / Not confirmed on a booking. */
.inquiry-status { margin-top: 16px; }
.seg-s-btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 500 15px var(--sans); color: var(--muted); cursor: pointer; }
.seg-s-btn:hover:not(:disabled) { color: var(--text); }
.seg-s-btn.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12); cursor: default; }
.seg-s-btn:disabled:not(.on) { opacity: .45; cursor: not-allowed; }
.filter-gap { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.staff-person [data-staff-form] { padding: 4px 0 14px; border-bottom: 1px solid var(--line); }
.staff-login-text { white-space: pre-wrap; font: 14px/1.5 var(--sans); background: var(--surface-2); padding: 12px; border-radius: 8px; margin: 8px 0; }

/* Unsaved edits: the card says so until Save is pressed. */
.unsaved-note { margin: -6px 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-weight: 500; }
.card.is-dirty { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 45%, transparent); }
/* Jump chips at the top of a long page (a booking, Settings). */
.chips.jump { margin-top: 0; margin-bottom: 12px; }
.chips.jump .chip { text-decoration: none; min-height: 40px; font-size: 14.5px; }
.card[id] { scroll-margin-top: 80px; }
/* On wide screens the first row's labels work as column headings. */
@media (min-width: 641px) {
  .team-row + .team-row .mini > span, .fn-edit + .fn-edit .mini > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .team-row + .team-row, .fn-edit + .fn-edit { margin-top: -2px; }
}

/* Build your own: kinds of people on Prices, and people per function on a booking */
.crew-price, .crew-head { grid-template-columns: 1.2fr 1.4fr 1fr 56px; }
.crew-price .check { display: flex; justify-content: center; align-items: center; min-height: 48px; margin: 0; }
.crew-price .check input { width: 22px; height: 22px; accent-color: var(--accent); }
@media (max-width: 560px) { .crew-price { grid-template-columns: 1fr 1fr 56px; } }
.crew-ed { border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.crew-ed-days { display: grid; gap: 6px; padding: 4px 0 10px; }
.crew-ed-days[hidden] { display: none; }
.crew-ed-day { display: grid; grid-template-columns: minmax(0, 1fr) 76px 9em; align-items: center; gap: 8px; margin: 0; }
.crew-ed-day input { min-height: 44px; text-align: center; }
.crew-ed-day small { color: var(--muted); }
.crew-films-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
