:root {
  --ground: #F3F4F8;
  --surface: #FFFFFF;
  --ink: #161A23;
  --muted: #535A68;
  --line: #E2E5EC;
  --brand: #4338CA;
  --brand-soft: #EEF0FF;
  --c1: #4F46E5; --c2: #0EA5A4; --c3: #F59E0B; --c4: #E11D48;
  --c5: #8B5CF6; --c6: #0284C7; --c7: #16A34A; --c8: #EA580C;
  --red-bg: #FDECEE; --red-ink: #9F1239;
  --amber-bg: #FEF3C7; --amber-ink: #92400E;
  --blue-bg: #E0EDFF; --blue-ink: #1E3A8A;
  --green-bg: #DCFCE7; --green-ink: #166534;
  --violet-bg: #EDE9FE; --violet-ink: #5B21B6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: 'Assistant', sans-serif; font-size: 15px; line-height: 1.5; }
h1, h2, h3, .num { font-family: 'Rubik', sans-serif; }
h2 { margin: 0; font-size: 19px; }
button, input, select, textarea { font-family: inherit; font-size: 15px; }
.loading { padding: 64px; text-align: center; color: var(--muted); }

/* header */
.topbar { background: linear-gradient(90deg, #312E81, #4338CA 55%, #0E7490); color: #fff; padding: 0 24px; }
.topbar-inner { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 0; }
.brand { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .5px; }
.brand small { font-family: 'Assistant', sans-serif; font-weight: 500; font-size: 14px; color: #D9DCFF; margin-inline-start: 10px; letter-spacing: 0; }
.who { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.who button { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 40px; }
nav.tabs { max-width: 1360px; margin: 10px auto 0; display: flex; flex-wrap: wrap; gap: 4px; }
nav.tabs a { color: #E4E6FF; text-decoration: none; padding: 12px 14px; border-radius: 12px 12px 0 0; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
nav.tabs a.on { background: var(--ground); color: var(--ink); }
nav.tabs .navback { background: rgba(255, 255, 255, .16); color: #fff; border: 0; border-radius: 12px; font: inherit; font-weight: 700; padding: 0 14px; min-height: 40px; margin: 0 0 6px; cursor: pointer; white-space: nowrap; }
nav.tabs .navback:hover, nav.tabs .navback:focus-visible { background: rgba(255, 255, 255, .28); }

main { max-width: 1360px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.row > .card { flex: 1 1 380px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.muted { color: var(--muted); }

/* alert + kpi tiles */
.tile { border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; border: 0; text-align: start; cursor: pointer; }
.tile .num { font-size: 34px; font-weight: 700; line-height: 1.1; }
.tile .t { font-weight: 700; font-size: 16px; }
.tile .s { font-size: 13.5px; opacity: .85; }
.t-red { background: var(--red-bg); color: var(--red-ink); }
.t-amber { background: var(--amber-bg); color: var(--amber-ink); }
.t-blue { background: var(--blue-bg); color: var(--blue-ink); }
.t-green { background: var(--green-bg); color: var(--green-ink); }
.t-violet { background: var(--violet-bg); color: var(--violet-ink); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; border-top: 5px solid var(--c1); }
.kpi .num { font-size: 30px; font-weight: 700; }
.kpi:nth-child(2) { border-top-color: var(--c2); } .kpi:nth-child(3) { border-top-color: var(--c3); }
.kpi:nth-child(4) { border-top-color: var(--c4); } .kpi:nth-child(5) { border-top-color: var(--c5); }

/* pie */
.pie-wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.legend { display: flex; flex-direction: column; gap: 8px; flex: 1 1 220px; }
.legend div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.sw { width: 14px; height: 14px; border-radius: 4px; }

/* bars */
.bar-row { display: grid; grid-template-columns: 170px minmax(0,1fr) 54px; gap: 12px; align-items: center; margin: 8px 0; }
.bar { height: 14px; background: #EEF0F5; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; }

/* tables */
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { text-align: start; font-size: 13px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid #EEF0F4; }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #CDD2DD; background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; cursor: pointer; min-height: 40px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #F7F8FC; }
.rowlink { color: inherit; text-decoration: none; }
.rowlink:hover { text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: embed; word-break: break-all; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* forms */
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { border: 1px solid #C9CED9; border-radius: 10px; padding: 10px 12px; background: #fff; min-height: 44px; }
.field textarea { min-height: 90px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.btn { background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 700; cursor: pointer; min-height: 46px; }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.msg { padding: 12px 14px; border-radius: 12px; }
.msg.ok { background: var(--green-bg); color: var(--green-ink); }
.msg.err { background: var(--red-bg); color: var(--red-ink); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(135deg, #312E81, #4338CA 50%, #0E7490); }
.login .card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { margin: 0; font-size: 24px; }
.linkbtn { background: none; border: 0; color: var(--brand); cursor: pointer; padding: 8px 0; font-weight: 600; text-align: start; }

@media (max-width: 640px) {
  .bar-row { grid-template-columns: 110px minmax(0,1fr) 44px; }
  main { padding: 16px; }
  .topbar { padding: 0 16px; }
}
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
a.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; } a.chip.on { color: #fff; }

/* planning */
.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; border-inline-start: 5px solid #CDD2DD; }
.pcard.week { border-inline-start-color: var(--c2); background: #F2FBFA; }
.pcard.late { border-inline-start-color: var(--c4); }
.pcard a { color: inherit; text-decoration: none; } .pcard a:hover { text-decoration: underline; }
.pc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qn { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-family: 'Rubik', sans-serif; font-size: 14px; }
.pc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13.5px; }
.pc-meta .badges { margin: 0; }
.pc-dates { font-size: 14px; font-weight: 600; }
.late-t { color: var(--red-ink); font-weight: 700; }
.pc-actions, .pc-assign { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-assign select { flex: 1 1 140px; min-height: 40px; border: 1px solid #C9CED9; border-radius: 10px; padding: 6px 8px; background: #fff; }
.chip:disabled { opacity: .4; cursor: default; }
.erow .section-title { margin-bottom: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pre { white-space: pre-wrap; background: #F7F8FC; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tiers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.langs { display: flex; gap: 6px; flex-wrap: wrap; }
.langs .chip { min-height: 36px; padding: 6px 12px; }
html[dir="ltr"] .rowlink, html[dir="ltr"] th { text-align: start; }
.login-cell { min-width: 250px; }
.login-cell input { flex: 1 1 120px; min-height: 40px; border: 1px solid #C9CED9; border-radius: 10px; padding: 6px 10px; }
.tr-link { font-size: 13.5px; font-weight: 600; display: inline-block; margin-top: 4px; }
.lang { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 8px; padding: 6px 9px; min-height: 34px; cursor: pointer; font-weight: 700; }
.lang.on { background: #fff; color: var(--brand); }
.who .langs { display: inline-flex; gap: 4px; }
.pc-assign input { flex: 1 1 140px; min-height: 40px; border: 1px solid #C9CED9; border-radius: 10px; padding: 6px 10px; }
.pcard .field textarea { min-height: 60px; }
.alert-card { border: 2px solid var(--c4); background: #FFF7F8; }
.alert-card a.pcard { text-decoration: none; color: inherit; }
.todo { background: var(--blue-bg); border-radius: 12px; padding: 10px 12px; }
.todo .pre { background: #fff; margin-top: 6px; }
details.answer { border-top: 1px dashed var(--line); padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
details.answer summary { cursor: pointer; font-weight: 700; color: var(--brand); }
details.answer .field { margin-top: 8px; }
a.pill { text-decoration: none; }
@media (prefers-reduced-motion: no-preference) { .pulse { animation: pulse 1.6s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .55; } } }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #CDD2DD; border-radius: 999px; padding: 6px 12px; min-height: 40px; cursor: pointer; background: #fff; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.field .label { font-weight: 600; font-size: 14px; }
.month-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modal { position: fixed; inset: 0; background: rgba(22,26,35,.55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-card { background: #fff; border-radius: 18px; padding: 22px; width: min(640px, 100%); max-height: 88vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.style-body { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.style-body b { display: block; margin-bottom: 4px; }
fieldset.fb { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; }
.fb-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #F0F1F5; }
.fb-row:last-child { border-bottom: 0; }
.scale { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sc { position: relative; }
.sc input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sc span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid #CDD2DD; border-radius: 10px; font-weight: 700; padding: 0 8px; background: #fff; }
.sc.wide span { min-width: 0; font-weight: 600; font-size: 13.5px; }
.sc input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.sc input:focus-visible + span { outline: 3px solid var(--c6); outline-offset: 2px; }
.loc { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.loc-box { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 10px; }
.fb-view { display: flex; flex-direction: column; }
input.rate { width: 110px; min-height: 40px; border: 1px solid #C9CED9; border-radius: 10px; padding: 6px 10px; }

/* couple review page */
.video-box { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #0B0D12; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
.video-box iframe, .video-box video, .video-box #yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box .empty { color: #C9CED9; }
.btn.big { font-size: 17px; padding: 14px 26px; min-height: 52px; }
.note-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.review-top .logo { height: 34px; vertical-align: middle; margin-inline-end: 10px; border-radius: 6px; background: #fff; }
main.review { max-width: 900px; }
a.tile-link { text-decoration: none; color: inherit; }
.ch-item { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.ch-item:last-of-type { border-bottom: 0; }
.note-form[hidden] { display: none; }

/* date entry (dates.js): typed digits + calendar button, date written out underneath */
.date-in { position: relative; display: flex; gap: 6px; align-items: stretch; }
.date-in > input { flex: 1; min-width: 0; text-align: left; }
.date-in > input.bad { border-color: #C2413A; }
.date-pick { position: relative; overflow: hidden; border: 1px solid var(--line, #D9DCE3); background: var(--surface); border-radius: 10px; padding: 0 10px; cursor: pointer; font-size: 18px; }
.date-pick input[type=date] { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.date-words { display: block; min-height: 1.2em; margin-top: 4px; color: var(--muted, #535A68); font-size: 13px; }
.date-words.err { color: #C2413A; }
.date-in.mini { display: inline-flex; gap: 4px; }
.date-in.mini > input { width: 8.2em; flex: none; padding: 4px 6px; }
.date-in.mini .date-pick { padding: 0 6px; font-size: 15px; }

/* photographer account */
.acct-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.acct-sum > div { border: 1px solid var(--line, #D9DCE3); border-radius: 12px; padding: 10px 12px; }
.acct-sum b { display: block; font-size: 20px; margin-top: 2px; }
.price-in { width: 92px; border: 1px solid #C9CED9; border-radius: 8px; padding: 6px 8px; min-height: 36px; text-align: left; }
.price-in::placeholder { color: #A0A6B3; }
.reply-box { background: var(--green-bg); color: var(--green-ink); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.reply-box .pre { color: #161A23; margin-top: 4px; }
/* a button in a form row: sits level with the inputs (the empty label takes the label's height) */
.btn-field .btn { min-height: 44px; }
@media (max-width: 640px) { .btn-field > .label { display: none; } }
.check[hidden] { display: none; }
.pkg-table td.c, .pkg-table th.c { text-align: center; }
.pkg-table input[type=checkbox] { width: 20px; height: 20px; }
.pkg-table tr.pkg-default td { color: var(--muted); background: #FAFBFC; }
.small { font-size: 12px; }
.pre { unicode-bidi: plaintext; }
/* projects search and filters */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px 12px; margin: 6px 0 14px; align-items: start; }
.filters .grow { grid-column: span 3; }
.filters .date-words { font-size: 12px; }
@media (max-width: 900px) { .filters .grow { grid-column: 1 / -1; } }
tr.row-hot td { background: #FFF5F5; }
/* songs table (office project page) */
.songs-table td { padding: 6px 6px; vertical-align: top; }
.songs-table input, .songs-table select { width: 100%; min-height: 38px; border: 1px solid #C9CED9; border-radius: 8px; padding: 6px 8px; background: #fff; }
.songs-table .sg-from, .songs-table .sg-to { width: 70px; }
.sg-link-w { display: flex; gap: 6px; align-items: center; }
.songs-view td { vertical-align: top; }
.pause-form { margin-top: 12px; border: 1px dashed #C9CED9; border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.pause-form[hidden] { display: none; }
/* review copy upload */
.progress { position: relative; height: 22px; background: #EEF0F5; border-radius: 11px; overflow: hidden; margin-top: 10px; }
.progress[hidden] { display: none; }
.progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--c2, #0EA5A4), var(--c1, #4F46E5)); transition: width .3s; }
[dir=rtl] .progress i { inset: 0 0 0 auto; }
.progress span { position: relative; display: block; text-align: center; font-size: 12px; line-height: 22px; font-weight: 600; }
.ok-pill { background: var(--green-bg); color: var(--green-ink); }
.wait-pill { background: var(--amber-bg); color: var(--amber-ink); }
.err-pill { background: var(--red-bg); color: var(--red-ink); }
.file-btn { cursor: pointer; }
.drive-row { margin-top: 12px; display: grid; gap: 6px; }
.drive-row .pc-assign input { flex: 1; min-width: 0; }
.pool-later { margin-top: 14px; }
.pool-later > summary { cursor: pointer; color: var(--muted, #535A68); font-weight: 600; padding: 8px 0; }
.pool-later > .queue { margin-top: 8px; opacity: .92; }
.pw-wrap { position: relative; display: inline-flex; align-items: center; }
.pw-wrap input { padding-right: 34px; }
.pw-eye { position: absolute; right: 4px; background: none; border: 0; cursor: pointer; font-size: 15px; padding: 4px 6px; color: #535A68; }
.unsaved-bar { position: sticky; bottom: 0; z-index: 20; background: #FEF3C7; color: #78350F; border: 1px solid #F59E0B; border-radius: 10px; padding: 10px 14px; margin-top: 12px; font-weight: 600; }
.card.dirty { box-shadow: 0 0 0 2px #F59E0B; }
.card, form.card { position: relative; }
.dirty-tag { position: absolute; top: -10px; inset-inline-start: 14px; background: #F59E0B; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; z-index: 2; }
.hello-line { font-size: 15px; font-weight: 600; color: var(--brand, #4338CA); margin-bottom: 2px; }
/* editor: steps of the work */
.steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0 0; counter-reset: st; }
.steps li { counter-increment: st; font-size: 13px; padding: 4px 10px 4px 12px; border-radius: 999px; background: #F1F3F7; color: #535A68; }
.steps li::before { content: counter(st) ". "; font-weight: 700; }
.steps li.now { background: var(--brand, #4338CA); color: #fff; font-weight: 600; }
.steps li.done { background: var(--green-bg); color: var(--green-ink); }
.steps li.done::before { content: "✓ "; }
.last-step { border: 2px solid var(--brand, #4338CA); }
/* weekly plan: ready list beside the editors' load */
.plan-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.plan-top > .card { margin: 0; }
.plan-top .loadc { position: sticky; top: 8px; max-height: 80vh; overflow: auto; }
@media (max-width: 900px) { .plan-top { grid-template-columns: 1fr; } .plan-top .loadc { position: static; max-height: none; } }
.bulk-bar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 10px; padding: 10px 12px; margin-top: 12px; z-index: 5; }
.bulk-bar[hidden] { display: none; }
.pcard .bulk { width: 18px; height: 18px; margin-inline-end: 4px; }
.small { font-size: 13px; }
.plan-top { margin-bottom: 18px; }
.loadc table { min-width: 0; }
/* links in the brand colour everywhere (not the browser's default blue) */
main a:not(.btn):not(.chip):not(.pill):not(.pcard):not([class*="tk-"]) { color: var(--brand); }
main a.muted { color: var(--muted, #535A68); }
/* office menu: daily places, a management menu, and "new project" as an action */
nav.tabs { align-items: flex-end; }
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px; background: #F43F5E; color: #fff; font-size: 12px; font-weight: 700; }
.navmore { position: relative; }
.navmore > summary { list-style: none; cursor: pointer; color: #E4E6FF; padding: 12px 18px; border-radius: 12px 12px 0 0; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.navmore > summary::-webkit-details-marker { display: none; }
.navmore.on > summary { background: var(--ground); color: var(--ink); }
.navmenu { position: absolute; top: 100%; inset-inline-start: 0; z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(22, 26, 35, .18); padding: 6px; display: flex; flex-direction: column; }
nav.tabs .navmenu a { color: var(--ink); border-radius: 8px; padding: 10px 14px; }
nav.tabs .navmenu a.on, nav.tabs .navmenu a:hover { background: var(--brand-soft); color: var(--brand); }
nav.tabs a.newp { margin-inline-start: auto; background: rgba(255, 255, 255, .16); border-radius: 12px; margin-bottom: 6px; min-height: 40px; }
nav.tabs a.newp.on { background: var(--ground); color: var(--ink); border-radius: 12px 12px 0 0; margin-bottom: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--brand); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 8px; }
.tile.t-zero { background: #F4F5F8; color: #6B7280; border-color: #E2E5EC; }
.tile.t-zero .num { color: #9CA3AF; }
@media (max-width: 700px) {
  .topbar .brand small { display: none; }
  nav.tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
  nav.tabs::-webkit-scrollbar { display: none; }
  nav.tabs a, .navmore > summary { padding: 10px 12px; white-space: nowrap; min-height: 40px; }
  .navmenu { position: fixed; top: auto; inset-inline-start: auto; inset-inline-end: 12px; }
  nav.tabs a.newp { margin-inline-start: 0; }
}
/* project page: stage bar and the folded rest */
.stagebar { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 14px 0 0; }
.stagebar li { flex: 1 1 100px; text-align: center; font-size: 13px; padding: 6px 8px; background: #F1F3F7; color: #535A68; border-radius: 8px; }
.stagebar li.done { background: var(--green-bg); color: var(--green-ink); }
.stagebar li.done::before { content: "✓ "; }
.stagebar li.now { background: var(--brand); color: #fff; font-weight: 700; }
details.more-cards { margin-top: 4px; }
details.more-cards > summary { cursor: pointer; padding: 14px 18px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; color: var(--brand); font-weight: 600; }

details.more-cards { display: flex; flex-direction: column; gap: 24px; }
details.more-cards:not([open]) { gap: 0; }
/* bigger click targets for links inside tables and small links */
td a, .muted a { display: inline-block; padding-block: 4px; }
/* folded sections: the title is a big button with an arrow and "click to open" */
.fold-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; font: inherit; color: inherit; border-radius: 10px; padding: 2px 6px; margin: -2px -6px; }
.fold-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.fold-btn:hover { background: rgba(67, 56, 202, .06); }
.fold-arrow { width: 0; height: 0; border-inline-start: 7px solid transparent; border-inline-end: 7px solid transparent; border-top: 9px solid currentColor; transition: transform .15s; flex: none; }
.fold-btn[aria-expanded="false"] .fold-arrow { transform: rotate(90deg); }
[dir="ltr"] .fold-btn[aria-expanded="false"] .fold-arrow, :root[dir="ltr"] .fold-btn[aria-expanded="false"] .fold-arrow { transform: rotate(-90deg); }
.fold-hint { font-size: 13px; font-weight: 500; color: var(--brand); font-family: 'Assistant', sans-serif; }
.card.folded { padding-block: 12px; }
.card.folded > .section-title { margin-bottom: 0; }
/* a colour per kind of section: a dot before the title */
.card[data-tone] > .section-title h2::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; background: var(--tone); }
.card[data-tone="blue"] { --tone: #2563EB; }
.card[data-tone="violet"] { --tone: #7C3AED; }
.card[data-tone="amber"] { --tone: #D97706; }
.card[data-tone="green"] { --tone: #16A34A; }
.card[data-tone="teal"] { --tone: #0D9488; }
.card[data-tone="red"] { --tone: #DC2626; }
.card[data-tone="gray"] { --tone: #6B7280; }
.card[data-tone="brand"] { --tone: #4338CA; }
/* colours for kinds of actions: WhatsApp green, removing things red */
a.btn[href^="https://wa.me"], a.chip[href^="https://wa.me"] { background: #1E8E4E; border-color: #1E8E4E; color: #fff; }
button[data-del], button[data-unassign], button[data-hide], .linkbtn[data-del] { color: #B42318; }
/* automatic translation: the translation first, the original folded below it */
.tr-wrap { display: flex; flex-direction: column; gap: 4px; }
.tr-auto { border-inline-start: 3px solid #A5B4FC; }
.tr-wait { color: #9CA3AF; }
.tr-orig > summary { cursor: pointer; font-size: 12px; color: var(--muted, #535A68); width: fit-content; }
.tr-orig > .pre { margin-top: 4px; font-size: 13px; color: #535A68; }
/* credit limit */
.credit-bar { height: 12px; border-radius: 999px; background: #EEF0F4; overflow: hidden; margin: 8px 0 12px; }
.credit-bar > i { display: block; height: 100%; border-radius: 999px; }
.credit-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
/* couple page: films, actions, swap picking */
.film-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.film-tab { min-height: 46px; border-radius: 12px; border: 1px solid #D5D9E2; background: #fff; font: 600 15px 'Assistant', sans-serif; color: var(--ink); cursor: pointer; }
.film-tab.on { border: 2px solid var(--brand); background: var(--brand-soft); color: #312E81; font-weight: 700; }
.pick-banner { background: #312E81; color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.pick-banner .btn.secondary { background: transparent; color: #fff; border-color: #fff; }
.note-form-in { display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #FBFBFE; }
.note-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: 16px; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.act { text-align: start; min-height: 58px; border-radius: 12px; border: 1px solid #D5D9E2; background: #fff; padding: 8px 14px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; font: inherit; color: var(--ink); }
.act span { font-size: 13px; color: var(--muted, #535A68); }
.act.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 46px; border: 1px solid #D5D9E2; border-radius: 12px; padding: 4px 12px; margin-top: 6px; background: #fff; cursor: pointer; }
.choice.on { border: 2px solid var(--brand); background: var(--brand-soft); }
.choice input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.film-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.film-group + .film-group { margin-top: 12px; }
.film-group-t { font-weight: 700; color: #312E81; margin-bottom: 4px; }
.pick-banner[hidden] { display: none; }

/* change notes grouped by film (office + editor) */
.film-group { margin: 10px 0; }
.film-group-t { font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 8px; background: var(--violet-bg); color: var(--violet-ink); display: inline-block; margin-bottom: 6px; }
.ch-q { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; border-top: 1px solid var(--line); padding: 10px 0; }
.ch-q .ch-why, .ch-q .chq-m { grid-column: 1 / -1; }
.ch-q-btns { display: flex; gap: 6px; }
.qbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.qbtn.on.q-done { background: var(--green-bg); color: var(--green-ink); border-color: currentColor; }
.qbtn.on.q-partial { background: var(--amber-bg); color: var(--amber-ink); border-color: currentColor; }
.qbtn.on.q-not_possible { background: var(--red-bg); color: var(--red-ink); border-color: currentColor; }
.small { font-size: 13px; }
/* office: open a change request */
.fix-table td { padding: 6px; vertical-align: top; }
.fix-table input:not([style]), .fix-table select { width: 100%; }
.fix-row.guess td { background: var(--amber-bg); }
#fxpaste { width: 100%; }
@media (max-width: 640px) { .ch-q { grid-template-columns: 1fr; } }
.ch-why[hidden] { display: none; }

/* WhatsApp inbox (office) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wa-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.wa-list { display: flex; flex-direction: column; max-height: 70vh; overflow: auto; margin: 0 -8px; }
.wa-conv { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-radius: 10px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.wa-conv:hover { background: #F7F8FC; }
.wa-conv.on { background: var(--blue-bg, #E0EAFF); }
.wa-conv.unread b { color: var(--green-ink); }
.wa-conv-top { display: flex; justify-content: space-between; gap: 8px; }
.wa-snip { min-width: 0; } .wa-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-thread { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; padding: 10px; background: #EFEAE2; border-radius: 12px; margin-top: 10px; }
.wa-msg { max-width: 85%; padding: 8px 10px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; position: relative; cursor: default; }
.wa-msg.in { background: #fff; align-self: flex-start; }
.wa-msg.out { background: #D9FDD3; align-self: flex-end; }
[dir="rtl"] .wa-msg.in { align-self: flex-start; }
.wa-msg .wapick { position: absolute; inset-inline-end: -26px; top: 8px; width: 18px; height: 18px; cursor: pointer; }
.wa-msg.in { margin-inline-end: 26px; }
.wa-msg:has(.wapick:checked) { outline: 2px solid var(--violet-ink); }
.wa-b { white-space: pre-wrap; }
.wa-reply { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.wa-reply textarea { flex: 1; }
@media (max-width: 800px) { .wa-grid { grid-template-columns: 1fr; } }
.card code.ltr { word-break: break-all; }
.approve-box { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--violet-bg); }
.approve-box .fb-row { background: #fff; border-radius: 10px; padding: 8px 10px; margin: 6px 0; }
.approve-box input[id^="oct"] { width: 100%; margin-top: 6px; }

/* task board: colored tabs, one panel per task, priority first and the action last */
.tk { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.tk-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }
.tk-tab { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--c) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c) 22%, #fff); border-top: 4px solid var(--c); font-size: 14px; line-height: 1.25; }
.tk-tab b { font-family: 'Rubik', sans-serif; font-size: 22px; color: var(--c); }
.tk-tab:hover { background: color-mix(in srgb, var(--c) 16%, #fff); }
.tk-tab.on { background: var(--c); color: #fff; font-weight: 600; box-shadow: 0 4px 14px color-mix(in srgb, var(--c) 35%, transparent); }
.tk-tab.on b { color: #fff; }
.tk-tab:focus-visible, .tk-subtabs a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.tk-subtabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-subtabs a { padding: 8px 14px; border-radius: 999px; background: #FFF1E6; color: #9A3412; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.tk-subtabs a.on { background: #EA580C; color: #fff; font-weight: 600; }
.tk-panel { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; }
.tk > * { min-width: 0; }
.tk-scroll { overflow-x: auto; position: relative; }
.tk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tk-table th { text-align: right; color: var(--muted); font-weight: 500; padding: 12px 10px; white-space: nowrap; }
.tk-table td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.tk-table tr:hover td { background: #FAFAFD; }
.tk-p { width: 1%; }
.tk-urg { min-height: 32px; border-radius: 6px; border: 1px dashed #D6CFC5; background: transparent; color: #B9AEA1; font: inherit; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.tk-urg:hover { color: var(--red-ink); border-color: #F5B5C0; }
.tk-urg.on { border: 1px solid #E11D48; background: var(--red-bg); color: var(--red-ink); font-weight: 700; }
.tk-vip { border: 0; background: none; color: #CFC5B8; font: inherit; font-size: 14px; padding: 0 4px; margin-inline-start: 4px; cursor: pointer; vertical-align: 1px; }
.tk-vip:hover { color: #B8860B; }
.tk-vip.on { font-size: 11px; font-weight: 700; color: #8A6A00; border: 1px solid #E5C76B; background: #FFF8E1; border-radius: 5px; padding: 0 5px; }
.vip-tag { display: inline-block; font-size: 11px; font-weight: 700; color: #8A6A00; border: 1px solid #E5C76B; background: #FFF8E1; border-radius: 5px; padding: 0 5px; margin-inline-start: 6px; vertical-align: 1px; line-height: 1.5; }
.tk-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.tk-name:hover { color: var(--brand); text-decoration: underline; }
.tk-sub { color: var(--muted); font-size: 13px; }
.tk-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; margin-inline-start: 4px; }
.tk-also { display: inline-block; border: 1px solid; border-radius: 999px; padding: 1px 8px; font-size: 12px; margin: 1px 0; background: #fff; }
.tk-also-cell { max-width: 180px; }
.tk-act { white-space: nowrap; text-align: left; width: 1%; }
.tk-btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; border: 0; background: var(--c, var(--brand)); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.tk-panel .tk-btn { background: var(--c); }
main a.tk-btn, main a.tk-tab { color: #fff; }
main a.tk-tab:not(.on) { color: var(--ink); }
main a.tk-btn.ghost, main .tk-btn.ghost { color: var(--ink); }
main .tk-subtabs a { color: #9A3412; } main .tk-subtabs a.on { color: #fff; }
main a.tk-name { color: var(--ink); } main .tk-also { text-decoration: none; }
.tk-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.tk-btn.wa { background: #16A34A; }
.tk-mini { min-height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; }
.tk-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.tk-late { color: var(--red-ink); font-weight: 600; }
.tk-drone { display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; }   /* the save button stays next to its field */
.tk-drone input { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; width: 150px; }
.tk-table select, .tk-table input[type=date] { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; }
.tk-hist summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.tk-empty { padding: 40px; text-align: center; color: var(--muted); margin: 0; }
.tk-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #FDF2F8; border-radius: 10px; padding: 10px 14px; }
.tk-form input { flex: 1 1 260px; min-height: 38px; border: 1px solid #F5C2DD; border-radius: 8px; padding: 0 10px; }
.tk-holdrow td { background: #FFFBEB; }
@media (max-width: 640px) { .tk-tabs { grid-template-columns: repeat(2, 1fr); } }

/* tabs inside a project page */
.ptabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.ptab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 58px; padding: 8px 12px; border-radius: 10px; cursor: pointer; text-align: right;
  background: color-mix(in srgb, var(--c, var(--brand)) 9%, #fff); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 24%, #fff); border-top: 4px solid var(--c, var(--brand)); color: var(--ink); font-size: 15px; font-weight: 600; }
.ptab small { font-weight: 400; font-size: 12px; color: var(--muted); }
.ptab:hover { background: color-mix(in srgb, var(--c, var(--brand)) 16%, #fff); }
.ptab.on { background: var(--c, var(--brand)); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--c, var(--brand)) 35%, transparent); }
.ptab.on small { color: rgba(255,255,255,.9); }
.ptab:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ptab-dot { position: absolute; top: 8px; left: 10px; width: 10px; height: 10px; border-radius: 50%; background: #DC2626; box-shadow: 0 0 0 2px #fff; }
@media (max-width: 640px) { .ptabs { grid-template-columns: repeat(2, 1fr); } }
.songs-view tr.song-new td { background: #FDECEE; }

/* ===================================================================
   THEME "ו2 בהיר": light sand ground, light top bar, rectangular controls.
   Strong colour is kept for things that need attention (a badge, an open task, the selected tab).
   =================================================================== */
:root {
  --ground: #F6F3EE; --surface: #FFFFFF; --ink: #2A1F17; --muted: #6B5848; --line: #E6DCCD;
  --brand: #B4471E; --brand-soft: #F8E9E1; --brand-ink: #8E3614;
  --r: 4px; --r-card: 6px;
  /* one colour per process, the same everywhere (task board, project tabs, cards) */
  --p-raw: #2B6E8F; --p-songs: #B0305A; --p-ours: #7A3E8E; --p-reels: #7A5A00; --p-assign: #1F6F66;
  --p-edit: #3956A6; --p-qc: #2F4F6F; --p-share: #3F7535; --p-fix: #B4471E; --p-miss: #A3302A; --p-names: #6B5848; --p-price: #1F6F66;
  --c1: #3956A6; --c2: #1F6F66; --c3: #7A5A00; --c4: #A3302A; --c5: #7A3E8E; --c6: #2B6E8F; --c7: #3F7535; --c8: #B4471E;
  --red-bg: #FBE7E4; --red-ink: #8F2A22; --amber-bg: #F8EDD5; --amber-ink: #6E4A00;
  --blue-bg: #E6EEF6; --blue-ink: #24476E; --green-bg: #E7F0E3; --green-ink: #2F5A28; --violet-bg: #F1E8F3; --violet-ink: #5E2E6E;
}
body { background: var(--ground); color: var(--ink); }

/* top bar: light, with the active place underlined */
.topbar { background: #FBF8F3; color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); }
.brand small { color: var(--muted); }
.who { color: var(--ink); }
.who button { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); }
.lang { background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r); }
.lang.on { background: var(--ink); color: #fff; border-color: var(--ink); }
nav.tabs a, .navmore > summary { color: var(--muted); border-radius: 0; border-bottom: 3px solid transparent; padding: 12px 12px 9px; }
nav.tabs a:hover, .navmore > summary:hover { color: var(--ink); background: #F3ECE2; }
nav.tabs a.on, .navmore.on > summary { background: transparent; color: var(--ink); border-bottom-color: var(--brand); font-weight: 700; }
/* a place with something waiting: strong colour */
nav.tabs > a:has(.nbadge) { background: var(--brand-soft); color: var(--brand-ink); }
nav.tabs > a.on:has(.nbadge) { background: var(--brand-soft); }
.nbadge { background: var(--brand); border-radius: 3px; }
nav.tabs a.newp { background: var(--brand); color: #fff; border-radius: var(--r); border-bottom: 0; padding: 0 16px; margin-bottom: 8px; }
nav.tabs a.newp.on { background: var(--brand-ink); color: #fff; border-radius: var(--r); margin-bottom: 8px; }
.navmenu { border-radius: var(--r-card); }
nav.tabs .navmenu a { border-radius: var(--r); border-bottom: 0; }
nav.tabs .navmenu a.on, nav.tabs .navmenu a:hover { background: var(--brand-soft); color: var(--brand-ink); }

/* rectangular everywhere */
.card, .kpi, .tile, .pcard, .table-box, .msg, .tk-panel, .navmenu, .sum, .approve-box, details.answer { border-radius: var(--r-card); }
.btn, .chip, .pill, .tk-btn, .tk-mini, .tk-chip, .tk-tab, .ptab, .tk-urg, .linkbtn,
.field input, .field select, .field textarea, input.rate, .tk-table select, .tk-table input, .songs-table input, .songs-table select, .tk-drone input, .tk-form input,
.tk-subtabs a, .stagebar li, .qbtn { border-radius: var(--r) !important; }
.tk-also { border-radius: 3px; }
.btn { background: var(--brand); }
.btn.secondary { color: var(--brand); border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); }
.card { border-color: var(--line); }
.field input, .field select, .field textarea { border-color: #D9CCB8; }
main a:not(.btn):not(.chip):not(.pill):not(.pcard):not([class*="tk-"]) { color: var(--brand-ink); }

/* task board tabs: calm when empty, coloured when there is work, filled when open */
.tk-tab { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c); color: var(--muted); }
.tk-tab b { color: var(--muted); }
.tk-tab.has { background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 30%, #fff); border-top-color: var(--c); color: var(--ink); }
.tk-tab.has b { color: var(--c); }
.tk-tab.on { background: var(--c); color: #fff; box-shadow: none; }
.tk-tab.on b { color: #fff; }
.ptab { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--c, var(--brand)); }
.ptab.on { background: var(--c, var(--brand)); color: #fff; box-shadow: none; }
.ptab:has(.ptab-dot):not(.on) { background: #FBE7E4; }
.tk-subtabs a { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tk-subtabs a.on { background: var(--p-fix); color: #fff; border-color: var(--p-fix); }
.card[data-tone="blue"] { --tone: var(--p-raw); } .card[data-tone="violet"] { --tone: var(--p-ours); } .card[data-tone="amber"] { --tone: var(--p-fix); }
.card[data-tone="green"] { --tone: var(--p-share); } .card[data-tone="teal"] { --tone: var(--p-price); } .card[data-tone="red"] { --tone: var(--p-miss); }
.card[data-tone="gray"] { --tone: var(--p-names); } .card[data-tone="brand"] { --tone: var(--p-edit); }

/* the three companies, on the main page of each portal */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.logos .lg { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.logos .lg img { max-height: 40px; max-width: 170px; object-fit: contain; }
.logos .lg b { font-family: 'Rubik', sans-serif; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.logos .lg small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.logos .sep { width: 1px; height: 28px; background: var(--line); }

/* buttons, option א: everyday buttons in a soft terracotta, only the main action of a screen in full colour */
.btn { background: #EBD3C6; color: #7A2E10; border: 1px solid #E0BFAE; font-weight: 700; }
.btn:hover { background: #E4C3B2; }
.btn.primary, .btn.big, nav.tabs a.newp { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover, .btn.big:hover { background: var(--brand-ink); }
.btn.secondary { background: #fff; color: #7A2E10; border: 1px solid #E0BFAE; }
.btn:disabled { opacity: .55; }
.chip.on { background: #EBD3C6; border-color: #C77A5A; color: #7A2E10; }
/* task board: the row action in a soft tint of the tab's colour */
.tk-panel .tk-btn, .tk-btn { background: color-mix(in srgb, var(--c, var(--brand)) 14%, #fff); color: color-mix(in srgb, var(--c, var(--brand)) 85%, #000); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 30%, #fff); }
.tk-panel .tk-btn:hover, .tk-btn:hover { background: color-mix(in srgb, var(--c, var(--brand)) 22%, #fff); }
.tk-btn.wa { --c: var(--p-share); }
.tk-btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
details.more-fields { border-top: 1px solid var(--line); padding-top: 12px; }
details.more-fields > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check, .steps li, .dirty-tag, .ops-chip { border-radius: var(--r) !important; }
.check { border-color: #D9CCB8; }
.check:has(input:checked) { border-color: #C77A5A; background: #FBF1EC; }

/* songs: what is ours to choose */
.ours-line { margin-top: 12px; padding: 8px 12px; border-inline-start: 4px solid var(--p-ours); background: #F4EDF6; border-radius: var(--r); }
.ours-line small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.ours-tag { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--p-ours); }
.sub-final { border: 1px solid var(--line, #E2D4C1); border-inline-start: 4px solid var(--p-names); background: #FBF8F3; border-radius: var(--r-card); padding: 14px 16px; }
.sub-final .sf-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.sub-final .sf-names { font: 600 24px/1.3 'Rubik', sans-serif; }
.sub-final .sf-date { font-size: 19px; font-weight: 500; margin-top: 4px; }
.form [hidden], .field[hidden] { display: none !important; }

/* film tab: the steps of the film, each with its date */
.film-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.film-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-inline-start: 4px solid var(--line, #E2D4C1); color: var(--muted); }
.film-steps li.done { border-color: var(--p-share); color: inherit; }
.film-steps li.done span:first-child::before { content: '✓ '; color: var(--p-share); font-weight: 700; }
.film-steps li.back { border-color: var(--p-fix); color: inherit; }
.film-steps li.now { border-color: var(--p-qc); background: #EEF2F6; color: inherit; font-weight: 600; }
details.old-round { margin-bottom: 10px; padding: 8px 12px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r-card); }
details.old-round[open] > summary { margin-bottom: 8px; }
details.fix-body > summary { cursor: pointer; }
.help-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line, #E2D4C1); border-inline-start: 4px solid var(--p-ours); border-radius: var(--r-card); background: #FBF8F3; }
.help-box ul { margin: 6px 0 0; padding-inline-start: 20px; }
.help-open { line-height: 1.6; }
.tk-sub { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* price tab */
.price-lines { width: 100%; max-width: 560px; border-collapse: collapse; }
.price-lines td { padding: 7px 4px; border-bottom: 1px solid var(--line, #E2D4C1); }
.price-lines td.ltr { text-align: end; white-space: nowrap; width: 1%; font-variant-numeric: tabular-nums; }
.price-lines tr.disc td { color: var(--p-share); font-size: 14px; }
.price-lines tr.total td { font-weight: 700; font-size: 18px; border-bottom: 0; border-top: 2px solid var(--ink, #2A1F17); }
.price-acct { margin-top: 12px; padding: 8px 12px; background: #F4F1EC; border-radius: var(--r); }
.price-acct.warn { background: #FBE3E1; }
.price-lines tr.vat td { color: var(--muted); font-size: 14px; }
.price-lines tr.gross td { font-weight: 600; }

/* reports */
.rep-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.rep-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r-card); background: #FBF8F3; text-decoration: none; color: inherit; }
.rep-tile:hover { border-color: var(--brand); }
.rep-tile:focus-visible { outline: 3px solid var(--ink, #2A1F17); outline-offset: 2px; }
.rep-tile .muted { font-size: 13px; }
.rep-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rep-table td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table tr.rep-group td { background: #F4EDE3; font-weight: 700; }
.rep-table tr.rep-total td { font-weight: 700; border-top: 2px solid var(--ink, #2A1F17); }
.rep-summary { margin: 0 0 10px; color: var(--muted); }
@media print {
  body.printing-report header, body.printing-report nav, body.printing-report .rep-filters, body.printing-report .no-print, body.printing-report .skip { display: none !important; }
  body.printing-report #repout { border: 0; box-shadow: none; }
  body.printing-report .table-box { overflow: visible; }
  body.printing-report .rep-table { font-size: 11px; }
}

/* task board: editing office colour, download window */
select.tk-office { border: 1px solid var(--oc); border-inline-start: 5px solid var(--oc); color: var(--oc); font-weight: 600; background: color-mix(in srgb, var(--oc) 8%, #fff); }
.dl-card { border-radius: var(--r-card); }
.dl-links { display: flex; flex-direction: column; gap: 8px; }
.dl-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r); }
.dl-link .check { margin: 0; }
.tk-btn.going { background: #FFF1D6; color: #7A4B00; border-color: #E8C77A; }
.dl-more { border: 1px solid var(--line, #E2D4C1); border-radius: var(--r); padding: 8px 12px; margin: 0; }
.dl-more legend { font-weight: 600; padding: 0 4px; }
.tk tr.tk-sep td { background: #F4EDE3; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 12px; }
.vow-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; max-height: 420px; overflow: auto; padding: 8px; background: #FBF8F3; border-radius: var(--r); }
.vow-lines .ltr { display: inline-block; min-width: 42px; }
.vow-pick label.check { display: flex; align-items: baseline; gap: 6px; padding: 3px 6px; border-radius: 6px; cursor: pointer; }
.vow-pick label.check:has(input:checked) { background: #E8F1E4; }

/* several reels: count + what each one is for */
.reels-box { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r, 8px); background: #FBF8F3; display: grid; gap: 8px; }
.reels-box[hidden] { display: none; }
.reels-n select { width: auto; margin-inline-start: 6px; }
.reels-list { display: grid; gap: 6px; }
.reels-line { display: flex; align-items: center; gap: 8px; }
.reels-line input { flex: 1; min-width: 0; }
.reels-k { white-space: nowrap; font-weight: 600; min-width: 52px; }
/* type-to-search lists (photographer, event type) */
.combo-in { width: 100%; }
.reel-notes { display: grid; gap: 6px; margin: 0 0 10px; }
.reel-note { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; }

/* photographer work instructions (three languages) */
.instr { display: grid; gap: 10px; }
.instr-sec h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink, #2A2118); }
.instr-sec p { margin: 0 0 4px; line-height: 1.55; white-space: pre-wrap; }
.instr-ed .chips { margin-bottom: 8px; }
.instr-ta { width: 100%; font: inherit; line-height: 1.5; padding: 10px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r, 8px); }
.modal-card .instr { max-height: 60vh; overflow: auto; }
/* instructions v2: seven parts, film structure as a flowchart */
.instr2 .instr-sec { padding: 10px 12px; border: 1px solid var(--line, #E2D4C1); border-radius: var(--r, 8px); background: #fff; }
.instr2 .instr-sec h4 { color: var(--brand, #9A3A12); }
.instr2 .instr-general { background: #FBF8F3; }
.instr-top { display: flex; gap: 8px; flex-wrap: wrap; }
.instr-kv { display: inline-flex; gap: 6px; align-items: baseline; margin: 0 12px 4px 0; }
.instr-kv span { color: var(--muted, #7A6A5A); font-size: 13px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.flow-film { font-weight: 700; min-width: 96px; }
.flow-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.flow-box { padding: 4px 10px; border-radius: 999px; background: #F3ECE2; border: 1px solid #E2D4C1; font-size: 13px; white-space: nowrap; }
.flow-box.flow-hupa, .flow-box.flow-hupa_clip { background: #EDE7F6; border-color: #D3C6EA; }
.flow-box.flow-first_play, .flow-box.flow-logo { background: #FFF1D6; border-color: #F0D9A8; }
.flow-box.flow-dances, .flow-box.flow-slow { background: #E8F1E4; border-color: #C9DEC1; }
.flow-arrow { color: var(--muted, #7A6A5A); }
.instr-ed .ie-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 8px; }
.ie-part { border: 1px solid var(--line, #E2D4C1); border-radius: var(--r, 8px); padding: 8px 12px 10px; margin: 0 0 10px; display: grid; gap: 6px; }
.ie-part legend { font-weight: 700; padding: 0 6px; }
.ie-f { display: grid; gap: 2px; font-size: 13px; }
.ie-f input, .ie-f select, .flow-ed select, .flow-ed input, .logo-ed select, .logo-ed input, .ex-ed input { min-height: 36px; border: 1px solid var(--line, #E2D4C1); border-radius: 8px; padding: 0 8px; background: #fff; font: inherit; }
.ie-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ie-row .ie-f { flex: 1 1 140px; }
.flow-ed, .logo-ed, .ex-ed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #EADFCF; }
.fe-chain { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 260px; }
.fe-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px; border-radius: 999px; background: #F3ECE2; border: 1px solid #E2D4C1; font-size: 13px; }
.fe-chip button { border: 0; background: none; cursor: pointer; padding: 0 4px; font: inherit; color: var(--muted, #7A6A5A); }
.lg-sec { width: 80px; }
.ex-ed .ex-url { flex: 1 1 240px; }
.songs-table .sg-cut { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.songs-table .sg-cut .sg-cutx { padding: 0 4px; }
.songs-table .sg-addcut { font-size: 13px; white-space: nowrap; }
.tk-filter input, .tk-filter select { min-height: 40px; border: 1px solid #C9CED9; border-radius: 8px; padding: 6px 10px; background: #fff; font: inherit; }



/* photographer page: quick jump to the parts below the long requirements */
.ph-top { margin: 0 0 12px; }
.ph-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
/* only the chosen part of the photographer page */
#main[data-phtab] [data-ptab] { display: none; }
#main[data-phtab="req"] [data-ptab~="req"], #main[data-phtab="pkg"] [data-ptab~="pkg"], #main[data-phtab="settings"] [data-ptab~="settings"],
#main[data-phtab="credit"] [data-ptab~="credit"], #main[data-phtab="account"] [data-ptab~="account"] { display: block; }
#main[data-phtab="pkg"] #pkgc > :not(.section-title):not(#pkgfold):not(#pkm) { display: none; }
#main[data-phtab="settings"] #pkgfold { display: none; }
details.pkg-fold > summary { background: var(--soft, #f4f1f7); border-radius: 10px; padding: 8px 12px; font-size: 1.05em; }
details.pkg-fold > summary::-webkit-details-marker { display: none; }
details.pkg-fold > summary { list-style: none; }
.pkg-arrow { display: inline-block; transition: transform .15s; }
details.pkg-fold[open] .pkg-arrow { transform: rotate(90deg); }
#pkgc .t-pkg { display: none; }
#main[data-phtab="pkg"] #pkgc .t-pkg { display: inline; }
#main[data-phtab="pkg"] #pkgc .t-set { display: none; }

/* task board: the sub-filter box (the choices of the open tab) */
.tk-sub-sel.on { border-color: var(--ink, #2a2420); font-weight: 600; }

/* ---------- one size for every box: inputs, selects, checkboxes ---------- */
:root { --box-h: 44px; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .pc-assign input, .pc-assign select, .tk-filter input, .tk-filter select { min-height: var(--box-h); height: var(--box-h); box-sizing: border-box; font-size: 15px; }
.field textarea { height: auto; }
.check { min-height: var(--box-h); padding: 8px 14px; box-sizing: border-box; }
/* a checkbox with a long explanation, in a form: title on the first line, the explanation under it */
.field > label.check { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; width: 100%; margin-top: 26px !important; font-weight: 600; }
.field > label.check .hint { flex-basis: 100%; font-weight: 400; padding-inline-start: 26px; }
.form .field > .chips { min-height: var(--box-h); }
.chips .check { white-space: nowrap; }

/* task board filter bar: search + office + photographer + editor on one row, sub-filter and sort under them, all the same height */
.tk-filter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: center; margin: 0 0 10px; }
.tk-filter input, .tk-filter select { width: 100%; min-width: 0; border: 1px solid #D9CCB8; border-radius: var(--r) !important; padding: 0 12px; background: #fff; font: inherit; }
.tk-filter #tkq { grid-column: span 3; }
.tk-filter #tksub { grid-column: 1 / 4; }
.tk-filter #tksort { grid-column: 4 / 7; }
.tk-filter #tkclr { grid-column: 1 / -1; justify-self: start; min-height: 32px; }
@media (max-width: 760px) {
  .tk-filter { grid-template-columns: 1fr 1fr; }
  .tk-filter #tkq, .tk-filter #tked, .tk-filter #tksub, .tk-filter #tksort { grid-column: 1 / -1; }
}
/* a checkbox inside a form field is a small box, not a 44px input */
.field input[type=checkbox], .field input[type=radio], .check input { min-height: 0 !important; height: 18px !important; width: 18px; padding: 0 !important; margin: 0; flex: none; }
/* explained checkboxes in a row share one height */
.field > label.check:has(.hint) { min-height: 84px; align-content: center; }
/* inputs next to a button (password, prices...) are rectangles like every other box */
.pc-assign input, .pc-assign select, .pw-wrap, .pw-wrap input { border-radius: var(--r) !important; }
/* songs table: the example in an empty box is pale, so nobody takes it for a real time */
.songs-table input::placeholder { color: #C4BCB1; opacity: 1; }

/* photographer portal, new project: two even columns like the couple's page; choices share their row evenly */
.pf-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-form .pf-full { grid-column: 1 / -1; }
.pf-form .field > .label .hint, .pf-form .field label .hint { display: block; font-weight: 400; }
.pf-form .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pf-form .checks .check { width: 100%; white-space: nowrap; }
.pf-form .check[hidden] { display: none; }
.pf-form .field > label.check.pf-inline { margin-top: 0 !important; height: var(--box-h); }
@media (max-width: 560px) { .pf-form { grid-template-columns: 1fr; } }
.pf-form .pf-full > label.check { margin-top: 0 !important; }
@media (max-width: 560px) { .pf-form .checks:has(input[type=radio]) { grid-template-columns: 1fr; } }

/* ---------- photographer portal: new project, one page on the whole width ---------- */
.nf2 { padding: 22px 28px; }
.nf2 .nf-sec { border-top: 1px solid #EFE7DB; padding: 14px 0; }
.nf2 .nf-sec > summary, .nf2 .nf-sec > h3 { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0; font-family: inherit; }
.nf2 .nf-sec > h3 { cursor: default; }
.nf2 .nf-sec > summary::-webkit-details-marker { display: none; }
.nf2 .nf-n { width: 24px; height: 24px; border-radius: 4px; background: var(--c, #6B5848); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.nf2 .nf-h { font-weight: 400; font-size: 13px; color: #6B5848; }
.nf2 .nf-arr { margin-inline-start: auto; color: #6B5848; transition: transform .15s; }
.nf2 details[open] > summary .nf-arr { transform: rotate(180deg); }
.nf2 .nf-body { padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.nf2 .nf-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.nf2 .nf-row.nf-mid { align-items: center; gap: 10px 22px; }
.nf2 .nf-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nf2 .nf-f > label, .nf2 .nf-lbl, .nf2 .nf-head > span { font-weight: 600; font-size: 14px; }
.nf2 .nf-head i { font-style: normal; font-weight: 400; color: #6B5848; }
.nf2 .w170 { width: 170px; } .nf2 .w200 { width: 200px; } .nf2 .w220 { width: 220px; } .nf2 .w320 { width: 320px; }
.nf2 input:not([type=checkbox]):not([type=radio]), .nf2 select { height: var(--box-h); min-height: var(--box-h); border: 1px solid #D9CCB8; border-radius: 4px; padding: 0 10px; font: inherit; background: #fff; box-sizing: border-box; width: 100%; min-width: 0; }
.nf2 textarea { width: 100%; min-height: 110px; border: 1px solid #D9CCB8; border-radius: 4px; padding: 10px; font: inherit; box-sizing: border-box; }
.nf2 .nf-en { height: 38px !important; min-height: 38px !important; background: #FBF8F4 !important; border-color: #E6DCCD !important; }
.nf2 .nf-en[hidden] { display: none; }
.nf2 .date-in .date-pick { height: var(--box-h); }
.nf2 .nf-hint { font-size: 13px; color: #6B5848; }
.nf2 .nf-hint[hidden], .nf2 [hidden] { display: none !important; }
.nf2 .nf-sub { font-weight: 700; font-size: 14px; color: #1F6F66; margin-top: 4px; }
.nf2 .nf-sub span { font-weight: 400; color: #6B5848; }
.nf2 .nf-chk { display: flex; flex-wrap: wrap; gap: 8px; }
.nf2 .nf-chk .check { width: 170px; height: var(--box-h); padding: 0 12px; border-radius: 4px; white-space: nowrap; }
.nf2 .nf-chk.nf-wide .check { width: 220px; }
.nf2 .nf-chk.nf-bad, .nf2 .nf-chk.bad-f .check { border-color: #C2413A; }
.nf2 .bad-f { border-color: #C2413A !important; box-shadow: 0 0 0 2px #F6D5D2; }
.nf2 .reels-box { margin-top: 0; max-width: 620px; border-radius: 4px; background: #F8F3EC; border-color: #EFE7DB; }
.nf2 .nf-opt { display: flex; flex-direction: column; gap: 2px; }
.nf2 .nf-opt .check { width: max-content; height: var(--box-h); padding: 0 12px; border-radius: 4px; }
.nf2 .nf-opt small { font-size: 12.5px; color: #8E3614; padding-inline-start: 4px; }
.nf2 .nf-link { display: grid; grid-template-columns: minmax(0, 520px) 190px 44px; gap: 10px; align-items: center; }
.nf2 #links { display: flex; flex-direction: column; gap: 8px; }
.nf2 .nf-x { width: 44px; height: var(--box-h); border: 1px solid #E6DCCD; background: #fff; border-radius: 4px; color: #8E3614; cursor: pointer; font-size: 14px; }
.nf2 .nf-x:hover { background: #FBF1EC; }
.nf2 .nf-wg { display: inline-flex; align-items: center; gap: 8px; }
.nf2 .nf-wg label { font-weight: 600; font-size: 14px; }
.nf2 .nf-wg input { width: 84px !important; text-align: center; }
.nf2 .nf-mid > .check { height: var(--box-h); padding: 0 12px; border-radius: 4px; }
.nf2 .linkish { background: none; border: 0; color: #3956A6; font-weight: 600; cursor: pointer; padding: 6px 0; font: inherit; font-weight: 600; }
.nf2 .nf-box { background: #F8F3EC; border-radius: 4px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.nf2 #songs { display: flex; flex-direction: column; gap: 8px; }
.nf2 .nf-song { display: grid; grid-template-columns: 180px minmax(0, 440px) 190px 44px; gap: 10px; align-items: center; }
.nf2 .nf-tc { display: flex; align-items: center; gap: 6px; }
.nf2 .nf-tc input { width: 84px !important; text-align: center; }
.nf2 .nf-tc input::placeholder { color: #C4BCB1; }
.nf2 .nf-st { grid-column: 2 / 3; font-size: 13px; color: #6B5848; margin-top: -4px; }
.nf2 .nf-st:empty { display: none; }
.nf2 .nf-subs { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.nf2 .nf-subs-set { display: flex; flex-direction: column; gap: 10px; flex: 1 1 460px; }
.nf2 #hdBox .check { width: auto; }
.nf2 #hdBox small { font-weight: 400; color: #6B5848; }
.nf2 .nf-prev { flex: 0 1 340px; min-height: 150px; border: 1px solid #E6DCCD; border-radius: 6px; background: linear-gradient(180deg, #FFFDF9, #F6EFE4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px; text-align: center; color: #2A1F17; }
.nf2 .nf-prev-t { font-size: 12px; color: #6B5848; letter-spacing: .3px; margin-bottom: 6px; }
.nf2 .nf-prev b { font-size: 24px; font-weight: 700; font-family: 'Rubik', sans-serif; }
.nf2 .nf-prev span:not(.nf-prev-t) { font-size: 15px; color: #4A3B30; }
.nf2 .nf-go { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-top: 1px solid #EFE7DB; padding-top: 16px; }
.nf-done h2 { color: #166534; margin-bottom: 6px; }
.nf-done .nf-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.btn.ghost { background: #fff; }
@media (max-width: 760px) {
  .nf2 { padding: 16px; }
  .nf2 .nf-f, .nf2 .w170, .nf2 .w200, .nf2 .w220, .nf2 .w320 { width: 100%; }
  .nf2 .nf-link { grid-template-columns: minmax(0, 1fr) 44px; }
  .nf2 .nf-link .tm { grid-column: 1 / 2; }
  .nf2 .nf-link.nf-head { display: none; }
  .nf2 .nf-song { grid-template-columns: minmax(0, 1fr) 44px; }
  .nf2 .nf-song .sp { grid-column: 1 / 2; }
  .nf2 .nf-song .sl, .nf2 .nf-song .nf-tc { grid-column: 1 / 2; }
  .nf2 .nf-song .nf-x { grid-row: 1; grid-column: 2; }
  .nf2 .nf-song.nf-head { display: none; }
  .nf2 .nf-st { grid-column: 1 / -1; }
  .nf2 .nf-chk .check, .nf2 .nf-chk.nf-wide .check { width: calc(50% - 4px); }
  .nf2 .nf-prev { flex-basis: 100%; }
}
.nf2 .reels-n { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.nf2 .reels-n select { width: 72px !important; }
.nf2 .reels-line input { max-width: 460px; }
.nf2 .reels-box:not(.open) { display: none; }
.nf2 .nf-cuts { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nf2 .nf-addcut { font-size: 13px; padding: 0; }
.nf2 .nf-song { align-items: start; }
.nf2 .nf-opt { align-items: flex-start; }

/* photographer portal: film status (steps, expected date, details) and WhatsApp to the office */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .15s; }
.wa-btn:hover { transform: scale(1.07); }
.wa-btn svg { width: 24px; height: 24px; }
.wa-film { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px; border-radius: 4px; border: 1px solid #25D366; color: #128C4A; background: #F1FBF4; text-decoration: none; font-weight: 600; width: max-content; }
.fs { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.fs-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; counter-reset: s; }
.fs-steps li { position: relative; padding: 10px 8px 8px; border-top: 4px solid #E6DCCD; font-size: 13.5px; color: #8A7B6C; counter-increment: s; }
.fs-steps li::before { content: counter(s) ". "; }
.fs-steps li.done { border-color: #7FB08A; color: #2E5E3A; }
.fs-steps li.on { border-color: #3956A6; color: #161A23; font-weight: 700; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 18px; }
.fs-grid > div { display: flex; flex-direction: column; gap: 2px; }
.fs-grid .muted { font-size: 13px; }
.fs-eta b { font-size: 20px; }
.fs-eta small { font-size: 12px; }
.fs-songs summary { cursor: pointer; font-weight: 600; }
.fs-songs ul { margin: 6px 0 0; padding-inline-start: 18px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 560px) { .fs-steps { grid-template-columns: 1fr 1fr; } }
.fs-grid > div { align-items: flex-start; }
.nf2 .nf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-end; padding-bottom: 8px; }
.nf2 .nf-chip { font-size: 13px; padding: 4px 10px; border-radius: 4px; background: #E8F2F0; color: #1F5A53; }

/* task board tabs, new style: a small square in the tab's colour, the open tab filled with it; its table under a line of that colour */
.tk-tab, .tk-tab.has { background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 6px !important; color: var(--ink); padding: 10px 12px; }
.tk-tab:hover { background: color-mix(in srgb, var(--c) 7%, #fff); }
.tk-tab .tk-n { display: flex; align-items: center; gap: 8px; }
.tk-tab .tk-sq { width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
.tk-tab b, .tk-tab.has b { color: var(--c); font-size: 24px; }
.tk-tab:not(.has) b { color: var(--muted); }
.tk-tab:not(.has) .tk-sq { opacity: .45; }
.tk-tab.on, .tk-tab.on.has { background: var(--c); border-color: var(--c); color: #fff; }
.tk-tab.on b { color: #fff; }
.tk-tab.on .tk-sq { background: #fff; opacity: 1; }
.tk-panel { border-top: 4px solid var(--c) !important; }

/* summary page: alert squares, numbers, pies */
.sp-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sp-title h1 { margin: 0; font-size: 26px; }
.sp-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.sp-alert { text-decoration: none; color: var(--ink) !important; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sp-alert:hover { background: color-mix(in srgb, var(--c) 7%, #fff); }
.sp-alert .sp-an { display: flex; align-items: center; gap: 8px; }
.sp-alert .sp-an i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.sp-alert b { font-size: 28px; color: var(--c); line-height: 1.1; }
.sp-alert .t { font-weight: 700; }
.sp-alert .s { font-size: 12.5px; color: var(--muted); }
.sp-alert.zero b { color: var(--muted); }
.sp-alert.zero .sp-an i { opacity: .4; }
.sp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.sp-kpi { border-top: 1px solid var(--line) !important; padding: 14px 18px; }
.sp-kpi .num { font-size: 30px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sp-card { display: flex; flex-direction: column; gap: 12px; }
.sp-head h2 { margin: 0; font-size: 18px; }
.sp-head .muted { font-size: 13px; }
.sp-head a { font-size: 13px; font-weight: 600; margin-inline-start: 8px; }
.sp-body { display: flex; gap: 22px; align-items: center; }
.sp-body svg { flex: none; }
.sp-legs { flex: 0 1 280px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sp-leg { display: grid; grid-template-columns: 12px minmax(0, 1fr) 40px 36px; gap: 8px; align-items: center; font-size: 14px; padding: 3px 6px; border-radius: 4px; color: var(--ink) !important; text-decoration: none; }
a.sp-leg:hover { background: #F5EFE6; }
a.sp-leg:hover span { text-decoration: underline; }
.sp-leg i { width: 12px; height: 12px; border-radius: 3px; }
.sp-leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-leg small { color: var(--muted); font-size: 12.5px; text-align: left; }
.sp-wide { grid-column: 1 / -1; }
.sp-note { font-size: 13px; color: var(--muted); border-top: 1px solid #EFE7DB; padding-top: 10px; }
/* nothing waiting: one quiet line instead of empty squares */
.sp-calm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.sp-calm > span:first-child { color: #2E5E3A; font-weight: 600; }
.sp-calm a { color: var(--muted); }
/* the steps of the work: one bar in order, then the list of steps */
.sp-flow { display: flex; gap: 2px; height: 34px; border-radius: 6px; overflow: hidden; }
.sp-flow a { display: flex; align-items: center; justify-content: center; min-width: 4px; color: #fff; text-decoration: none; font-size: 14px; }
.sp-flow a:hover { filter: brightness(1.1); }
.sp-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 10px; }
.sp-step { display: grid; grid-template-columns: 20px 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 4px; color: var(--ink) !important; text-decoration: none; font-size: 14px; }
.sp-step:hover { background: #F5EFE6; }
.sp-step .n { font-size: 12px; color: var(--muted); }
.sp-step i { width: 12px; height: 12px; border-radius: 3px; }
.sp-step .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-step.zero { opacity: .55; }
/* bars: one row per item */
.sp-bars { display: flex; flex-direction: column; gap: 2px; }
.sp-bars.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 24px; }
.sp-bgroup { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--muted); margin: 8px 0 2px; border-bottom: 1px solid #EFE7DB; padding-bottom: 3px; }
.sp-bgroup:first-child { margin-top: 0; }
.sp-bar { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) 28px; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 4px; color: var(--ink) !important; text-decoration: none; font-size: 14px; }
.sp-bar:hover { background: #F5EFE6; }
.sp-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-bar .t { height: 12px; background: #F2ECE3; border-radius: 4px; overflow: hidden; }
.sp-bar .t i { display: block; height: 100%; border-radius: 4px; }
.sp-bar b { text-align: left; }
/* weeks */
.sp-keys { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.sp-key { display: inline-flex; align-items: center; gap: 6px; }
.sp-key i { width: 12px; height: 12px; border-radius: 3px; }
.sp-weeks { width: 100%; height: auto; }
@media (max-width: 900px) { .sp-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .sp-body { flex-direction: column; align-items: stretch; } .sp-body svg { align-self: center; } .sp-legs { flex: none; } .sp-wscroll { overflow-x: auto; } .sp-wscroll .sp-weeks { min-width: 620px; } }

/* office project page: tiles under the steps, and numbered parts that open and close */
.ph-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.ph-tiles > div { background: #F8F3EC; border-radius: 4px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.ph-tiles span { font-size: 13px; color: var(--muted); }
.ph-tiles b { font-size: 19px; }
.ph-tiles small { font-size: 12px; color: #9F1239; }
.ph-tiles .late { background: #FDF0EC; }
.ph-tiles .late b { color: #9F1239; }
.ph-tiles .ed-tile small { color: #116B43; }
.psec { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.psec + .psec { margin-top: -14px; border-top-left-radius: 0; border-top-right-radius: 0; }
.psec:has(+ .psec) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: #EFE7DB; }
.psec-h { width: 100%; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: none; border: 0; padding: 16px 22px; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; text-align: start; min-height: 56px; }
.psec-h:hover { background: #FBF8F3; }
.psec-h .sec-n { width: 24px; height: 24px; border-radius: 4px; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.psec-h small { font-weight: 400; font-size: 13px; color: var(--muted); }
.psec-h .ptab-dot { position: static; }
.psec-h .psec-arr { margin-inline-start: auto; color: var(--muted); transition: transform .15s; }
.psec:not(.closed) .psec-arr { transform: rotate(180deg); }
.psec-b { padding: 0 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.psec-b > .card { border: 0; padding: 0; background: none; box-shadow: none; }
.psec-b > .card + .card { border-top: 1px solid #EFE7DB; padding-top: 14px; }
.psec-b > .card > .section-title h2 { font-size: 16px; }
@media (max-width: 600px) { .psec-h { padding: 14px; } .psec-b { padding: 0 14px 14px; } }
/* songs page: numbered parts in the colour of the kind of wait */
.songs-sec { border-top: 4px solid var(--c); }
.songs-sec h2 { display: flex; align-items: center; gap: 10px; }
.songs-sec .sec-n { width: 24px; height: 24px; border-radius: 4px; background: var(--c); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.small { font-size: 13px; }
/* the parts of the project page really close (display:flex would keep them open) */
.psec-b[hidden] { display: none !important; }
.mat-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
/* "reels before editing" under urgent and VIP, as wide as both */
.chips:has(.pf-wide) { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px; }
.chips .check.pf-wide { grid-column: 1 / -1; justify-content: flex-start; }
/* the steps of a film: a progress line (not buttons) — the status moves by the work itself */
.stagebar { counter-reset: st; gap: 6px; }
.stagebar li { counter-increment: st; background: none !important; border-radius: 0 !important; border-top: 4px solid #E6DCCD; color: #8A7B6C; text-align: start; padding: 8px 4px 2px; cursor: default; }
.stagebar li::before { content: counter(st) ". "; }
.stagebar li.done { border-top-color: #7FB08A; color: #2E5E3A; }
.stagebar li.done::before { content: "✓ "; }
.stagebar li.now { border-top-color: var(--brand); color: var(--ink); font-weight: 700; }
.ed-days input { width: 64px; min-height: 36px; height: 36px; text-align: center; border: 1px solid #D9CCB8; border-radius: 4px; }
.ed-days input::placeholder { color: #B9AE9F; }
.ed-days td, .ed-days th { padding: 6px; text-align: center; }
.ed-days td:first-child, .ed-days th:first-child { text-align: start; }
/* the editor is waiting for us: the row and its button stand out (always at the top of the list) */
.tk-btn.hot, main a.tk-btn.hot { background: #C2261D !important; color: #fff !important; border-color: #C2261D !important; font-weight: 700; box-shadow: 0 0 0 3px #FBD9D5; }
.tk-btn.hot:hover { background: #A11F18 !important; }
.tk-table tr:has(.tk-btn.hot) > td { background: #FFF4F2; }
.tk-table tr:has(.tk-btn.hot) > td:first-child { box-shadow: inset -4px 0 0 #C2261D; }
/* live updates: shown when the page could not redraw by itself (someone is typing) */
#livebar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; background: #2A1F17; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-weight: 600; }
#livebar button { background: #E9A37F; color: #2A1F17; border: 0; border-radius: 4px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; min-height: 36px; }
/* the urgent switch keeps its own look on a highlighted row: faint when off, red only when really urgent */
.tk-table tr:has(.tk-btn.hot) > td.tk-p { background: #fff; }
.tk-urg:not(.on) { color: #B9AEA1 !important; border-color: #E2D9CC !important; background: #fff !important; font-weight: 400; }
/* ---- the calendar page ---- */
.cal-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-top h1 { margin: 0; }
.cal-nav { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; }
.cal-nav a { text-decoration: none; font-size: 24px; padding: 0 6px; color: var(--muted, #6B5848); }
.cal-addbtn { margin-inline-start: auto; }
.cal-layers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cal-layer { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }
.cal-layer i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-layer input { margin: 0; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.cal-month { padding: 0; overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px; font-weight: 700; font-size: 13px; color: var(--muted, #6B5848); background: #F6F3EE; }
.cal-cell { min-height: 110px; padding: 6px; display: flex; flex-direction: column; gap: 3px; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); min-width: 0; background: #fff; }
.cal-cell.we, .cal-cell.out { background: #FBF8F3; }
.cal-cell.out .cal-num { color: #B3A595; }
.cal-cell.today .cal-num { background: #2A1F17; color: #fff; border-radius: 999px; min-width: 24px; text-align: center; align-self: flex-start; padding: 0 6px; }
.cal-num { font-size: 13px; font-weight: 700; }
.cal-chip { display: block; background: var(--bg); color: var(--c); border-inline-start: 3px solid var(--c); border-radius: 4px; padding: 2px 6px; font-size: 12.5px; line-height: 1.35; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.cal-chip:hover { filter: brightness(.95); }
.cal-side { display: flex; flex-direction: column; gap: 14px; }
.cal-side h2 { margin: 0 0 6px; font-size: 17px; }
.cal-wrow { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-top: 1px solid #F1EBE2; }
.cal-wrow small { display: block; color: var(--muted, #6B5848); }
.cal-wlist { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-wlist .cal-chip { white-space: normal; }
.cal-setup p { margin: 6px 0; }
.cal-steps { padding-inline-start: 20px; margin: 6px 0 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cal-sa { font-family: ui-monospace, monospace; font-size: 12.5px; background: #F6F3EE; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.cal-nf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal-new { margin-bottom: 14px; }
@media (max-width: 900px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .cal-chip { font-size: 11px; padding: 1px 3px; }
  .cal-nf { grid-template-columns: 1fr 1fr; }
}
#calform:empty { display: none; }
/* weekly plan: the "assign" button always sits under the editor box */
.pc-assign.pc-stack { flex-direction: column; align-items: stretch; }
.pc-assign.pc-stack select { flex: none; width: 100%; }
.pc-assign.pc-stack .btn { align-self: flex-start; }

/* יומן שינויים (auditlog.js) */
table.au td { vertical-align: top; }
table.au .au-what { font-size: 13px; max-width: 520px; }
table.au .au-what div { overflow-wrap: anywhere; }
table.au tr.au-undone td { opacity: .55; }
table.au .nowrap { white-space: nowrap; }

.au-sel { padding: 8px 10px; border: 1px solid var(--line, #D9DCE3); border-radius: 10px; background: var(--surface, #fff); font: inherit; min-width: 160px; }
/* the missing page opened from the task board for one film */
.pcard.focus { outline: 3px solid var(--p-miss, #A3302A); outline-offset: 2px; }
/* the editor lists on the board: one width for every film (a list sizes itself to its longest name, and each office has its own editors) */
.tk-table select[data-assign], .tk-table select[data-reditor] { width: 280px; max-width: 100%; }
.owa-msg { white-space: normal; max-width: 320px; margin-top: 4px; flex-basis: 100%; }
.owa-msg:empty { display: none; }
/* task board actions: the last button keeps its place at the edge, the one before it takes the changing width */
.tk-acts { display: inline-flex; gap: 6px; align-items: center; }
.tk-acts [data-songsopen] { min-width: 112px; justify-content: center; text-align: center; }

/* weekly plan: every card the same size, every row in the same place, buttons the same height at the bottom
   1 names · 2 event type, date, photographer · 3 office · 4 status, material, work days · (dates) · editor + assign / move buttons */
.queue.plan-q { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-rows: 1fr; align-items: stretch; }
.plan-q .pcard { min-height: 250px; gap: 0; padding: 12px 14px; }
.plan-q .pcard > * { margin: 0; }
.plan-q .pc-top { height: 30px; flex-wrap: nowrap; overflow: hidden; }
.plan-q .pc-top a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-q .pc-top .pill, .plan-q .pc-top .vip-tag, .plan-q .pc-top .qn, .plan-q .pc-top .bulk { flex: none; }
.plan-q .pc-ev { height: 22px; line-height: 22px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.plan-q .pc-off { height: 22px; line-height: 22px; font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.plan-q .pc-meta { min-height: 52px; align-content: flex-start; margin-top: 6px; }
.plan-q .pc-meta .pill { line-height: 1.3; }
.plan-q .pc-dates { min-height: 2.8em; line-height: 1.4; font-size: 13.5px; }
.plan-q .pc-actions, .plan-q .pc-assign { margin-top: auto; padding-top: 10px; }
.plan-q .pc-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.plan-q .pc-actions > * { height: 38px; min-height: 38px; margin: 0; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; white-space: nowrap; border-radius: 10px; box-sizing: border-box; }
.plan-q .pc-actions .linkbtn { border: 1px solid var(--line, #D9DCE3); background: #fff; text-decoration: none; }
.plan-q .pc-assign.pc-row { display: flex; flex-wrap: nowrap; gap: 6px; align-items: stretch; }
.plan-q .pc-assign.pc-row select { flex: 1 1 auto; min-width: 0; height: 40px; min-height: 40px; }
.plan-q .pc-assign.pc-row .btn { flex: none; height: 40px; min-height: 40px; padding: 0 18px; box-sizing: border-box; }
.plan-q.plan-pool .pcard { min-height: 212px; }

/* editor pay (editorpay.js) */
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pay-grid > div { background: #F8F3EC; border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.pay-grid b { font-size: 18px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pay-row label { font-weight: 600; }
.pay-in { width: 90px; height: 38px; box-sizing: border-box; border: 1px solid var(--line, #D9DCE3); border-radius: 10px; padding: 0 8px; text-align: left; }
.pay-reason { flex: 1 1 200px; min-width: 140px; height: 38px; box-sizing: border-box; border: 1px solid var(--line, #D9DCE3); border-radius: 10px; padding: 0 10px; }
.pay-inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay-inline .pay-reason { flex: 1 1 140px; }
table.pay-t td { vertical-align: middle; }
/* the editor's pay for the project (editor portal, project header) */
.pay-this { margin-top: 8px; display: inline-block; background: var(--green-bg); color: var(--green-ink); border-radius: 10px; padding: 4px 12px; }
/* the editor's pay inside "פרטים ועורך" › "עוד פרטים" */
.pay-box { border-top: 1px solid var(--line); margin-top: 14px; }
/* pies of money: room for "$12,345" in the legend */
.sp-money .sp-leg { grid-template-columns: 12px minmax(0, 1fr) 72px 36px; }
/* the editor's dashboard: the pie, films by month, pay by month side by side */
.sp-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sp-grid3 { grid-template-columns: minmax(0, 1fr); } }
.sp-grid3 .sp-body { flex-direction: column; align-items: stretch; }
.sp-grid3 .sp-body svg { align-self: center; }
.sp-grid3 .sp-legs { flex: none; }
.ef-pie { display: flex; flex-direction: column; gap: 8px; }
.ef-pie > [data-pie] > .card { height: 100%; }
/* the editor's details: office, QC and Save on one line, their boxes level */
.ef-row { align-items: end; }
.ef-row .field { margin: 0; }
.ef-row .check, .ef-row select, .ef-row .btn { min-height: 46px; box-sizing: border-box; }
/* "+ פתיחת תיקון" next to "+ פרויקט חדש" */
nav.tabs a.fixp + a.newp { margin-inline-start: 6px; }
/* ---------------- attendance (לוח נוכחות): timeline with an attendance lane and a films lane per editor ---------------- */
.att { --att-y: #F6C744; --att-b: #3B74D6; --att-r: #D2453B; --att-w: #EFE9E1; display: grid; gap: 12px; position: relative; }
.att-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.att-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.att-seg button { border: 0; background: var(--surface, #fff); color: var(--ink); padding: 6px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.att-seg button.on { background: var(--ink); color: var(--surface, #fff); }
.att-nav { display: inline-flex; gap: 8px; align-items: center; }
.att-nav button, .att-mini { border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.att-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.att-chips button { border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.att-chips button.on { background: var(--ink); color: var(--surface, #fff); border-color: var(--ink); }
.att-ro { font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; }
.att-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.att-legend span { display: inline-flex; gap: 6px; align-items: center; }
.att-sw { width: 20px; height: 20px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; font-style: normal; color: #2A1F17; flex: none; }
.s-y { background: var(--att-y); } .s-b { background: var(--att-b); color: #fff; } .s-r { background: var(--att-r); color: #fff; }
.s-n { background: #FBF7F0; box-shadow: inset 0 0 0 1px #EDE3D3; }
.s-x { background: var(--att-y); box-shadow: inset 0 0 0 2px var(--ink); } .s-w { background: #DCDCDC; color: var(--muted); } .s-h { background: #9E9E9E; color: #fff; font-size: 10px; }
.att-alert { display: flex; flex-wrap: wrap; gap: 4px 10px; background: var(--red-bg); color: var(--red-ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.att-scroll { overflow-x: auto; min-width: 0; }
.att-tl { display: grid; gap: 3px; font-variant-numeric: tabular-nums; }
.att-hd { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.15; }
.att-hd small { display: block; font-size: 12px; font-weight: 700; color: var(--ink); }
.att-hd.we small { color: #777; }
.att-hd.we { color: #777; }
.att-delay { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; margin-bottom: 6px; }
.att-delay a { color: var(--amber-ink, #8a5a00); text-decoration: none; }
.att-delay a.late { color: var(--red-ink); font-weight: 700; }
.att-hd.now { color: var(--ink); font-weight: 700; }
.att-off { font-weight: 700; color: var(--accent, #B4471E); font-size: 13px; padding-top: 8px; }
.att-who { align-self: center; font-size: 13px; line-height: 1.25; padding-inline-end: 6px; }
.att-who span { display: block; font-size: 11px; color: var(--muted); }
.att-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: underline dotted; }
.att-st { height: 22px; border-radius: 5px; border: 0; font-size: 11px; font-weight: 700; color: #2A1F17; padding: 0; cursor: pointer; }
.att-st:disabled { cursor: default; }
.att-st[tabindex="-1"] { cursor: default; }
.has-note { position: relative; }
.has-note::after { content: ''; position: absolute; top: 2px; inset-inline-end: 2px; width: 7px; height: 7px; border-radius: 50%; background: #7a2bd1; box-shadow: 0 0 0 1.5px #fff; }
.att-painting .att-tl, .att-painting .att-cards { touch-action: none; user-select: none; }
.att-painting [data-cell] { cursor: crosshair; }
button.att-hd { border: 0; background: none; font: inherit; font-size: 11px; cursor: pointer; border-radius: 6px; padding: 2px 0; }
button.att-hd:hover { background: var(--amber-bg, #fdf3dc); }
.att-all { display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.att-pop-t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.att-pop-d { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-pop-d label { display: grid; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.att-pop-d input { font: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.att-pop .att-impact { font-size: 13px; }
[data-cell] { touch-action: manipulation; }
.att-hd em { display: block; font-style: normal; font-size: 10px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-hd.hol small { color: #444; }
.att-dt { display: flex; gap: 4px; position: relative; }
.att-dt input:not(.att-native) { min-width: 0; width: 100%; flex: 1; box-sizing: border-box; }
.att-dt { min-width: 0; }
.att-cal { border: 1px solid var(--line); background: var(--surface, #fff); border-radius: 8px; cursor: pointer; padding: 0 6px; }
.att-native { position: absolute; inset-inline-end: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.att-how { font-size: 13px; color: var(--muted); }
.att-pop { position: absolute; z-index: 20; width: min(360px, calc(100% - 8px)); box-sizing: border-box; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.att-pop-h { display: flex; align-items: center; gap: 8px; }
.att-pop-h span { color: var(--muted); font-size: 13px; }
.att-x { margin-inline-start: auto; border: 0; background: none; font-size: 16px; cursor: pointer; color: var(--muted); }
.att-pop-k { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.att-pop-k button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.att-pop-k button.on { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.att-pop textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.att-pop-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.att-link { border: 0; background: none; color: var(--accent, #B4471E); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.att-paint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--amber-bg, #fdf3dc); border-radius: 12px; padding: 10px 12px; }
.att-brushes { display: flex; flex-wrap: wrap; gap: 6px; }
.att-brushes button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); border-radius: 999px; padding: 6px 14px 6px 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.att-brushes button.on { background: var(--ink); color: var(--surface, #fff); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .12); }
.att-tip { font-size: 13px; color: var(--muted); flex: 1 1 260px; }
.att-tip.warn { color: var(--red-ink); font-weight: 700; }
.att-sheet textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-sizing: border-box; }
button.att-sw { border: 0; padding: 0; cursor: pointer; width: 28px; height: 28px; }
.att-lane { display: grid; column-gap: 3px; row-gap: 3px; margin-bottom: 6px; min-width: 0; }
.att-fl { min-width: 0; height: 20px; border-radius: 5px; font-size: 11.5px; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface, #fff); color: var(--ink); text-decoration: none; }
.att-fl.late { border-color: var(--red-ink); color: var(--red-ink); background: var(--red-bg); }
.att-fl.stuck, .att-fl.empty { border-style: dashed; color: var(--muted); }
.att-fl .due { margin-inline-start: auto; font-weight: 700; }
.att-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.att-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.att-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.att-top .att-mini { margin-inline-start: auto; }
.att-muted { color: var(--muted); font-size: 13px; }
.att-film { font-size: 13px; } .att-film.late { color: var(--red-ink); font-weight: 600; }
.att-sheet { position: sticky; bottom: 0; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 -6px 24px rgba(0, 0, 0, .12); }
.att-sh-h, .att-sh-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.att-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.att-dates label, .att-note { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.att-dates input, .att-note input { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--ground, #fff); color: var(--ink); }
.att-impact { font-size: 13px; border-radius: 10px; padding: 8px 10px; background: var(--green-bg); color: var(--green-ink); }
.att-impact.bad { background: var(--red-bg); color: var(--red-ink); }
.att-save { border: 0; background: var(--accent, #B4471E); color: #fff; border-radius: 12px; padding: 10px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.att-msg { font-size: 13px; color: var(--red-ink); }
/* office manager pay (editor folder) */
.mg-form { display: grid; gap: 10px; }
.mg-opts { display: grid; grid-template-columns: max-content 160px; gap: 8px 14px; align-items: center; padding: 10px 12px; background: #F7F4EE; border-radius: 10px; }
.mg-opts[hidden] { display: none; }
.mg-amt { display: inline-flex; align-items: center; gap: 6px; }
.mg-amt input { width: 110px; }
.mg-amt input:disabled { opacity: .45; background: transparent; }
.mg-rule { grid-column: 1 / -1; margin: 0; }
.mg-month { margin: 10px 0; }
.mg-month summary { cursor: pointer; }
@media (max-width: 600px) { .mg-opts { grid-template-columns: 1fr; } }
.mg-tot { max-width: 520px; margin: 10px 0 4px; }
.mg-sum td { border-top: 2px solid var(--line); }
.ed-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.ed-find input { flex: 1 1 220px; max-width: 320px; }
/* the payslip (editor folder › pay): a clean document; printed alone from its own frame (SLIP_CSS in editorfolder.js) */
.slip-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.slip-wrap { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 20px 22px; overflow-x: auto; }
.slip-ed { width: 26px; height: 26px; margin-inline-start: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface, #fff); color: var(--accent, #B4471E); cursor: pointer; font-size: 14px; line-height: 1; vertical-align: middle; }
.slip-ed:hover { background: var(--amber-bg); }
.pay-pop { position: absolute; z-index: 50; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: 12px; display: grid; gap: 6px; }
.pay-pop-h { display: grid; gap: 2px; margin-bottom: 4px; }
.pay-pop label { font-size: 13px; color: var(--muted); }
.pay-pop input, .pay-pop textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; width: 100%; box-sizing: border-box; }
.pay-pop-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }

/* ---- photographer account (account.js) and the finance tabs ---- */
.acct-3 > div { display: flex; flex-direction: column; gap: 2px; }
.acct-3 .acct-due { border-color: var(--red-ink, #B42318); background: var(--red-bg, #FDECEC); }
.acct-3 .acct-due b { color: var(--red-ink, #B42318); }
.acct-3 .acct-credit { border-color: var(--green-ink, #146C2E); background: var(--green-bg, #E8F5EC); }
.acct-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acct-tools input { max-width: 150px; }
.acct-led td, .fin-t td { vertical-align: top; }
.led-void td { color: var(--muted, #6B7280); }
.void-ask { display: inline-flex; gap: 6px; align-items: center; }
.void-ask input { width: 160px; }
.fin-tabs { margin: 0 0 12px; }
.fin-t td.due b { color: var(--red-ink, #B42318); }
.ph-back { padding: 6px 12px; min-height: 0; }
.ed-find input, .ed-find select, .acct-tools input, .void-ask input { border: 1px solid #D9CCB8; border-radius: 10px; padding: 8px 12px; background: #fff; min-height: 40px; box-sizing: border-box; font-size: 15px; }
/* a date field in a one-line form row: the words line ("יום שבת, 31 באוקטובר") sits under the field without making it taller */
.ef-row .date-in { flex-wrap: nowrap; }
.ef-row .date-words { position: absolute; top: 100%; inset-inline-start: 0; margin-top: 3px; white-space: nowrap; }
.ef-row:has(.date-words) { margin-bottom: 20px; }
.ef-row .field input:not([type=checkbox]):not([type=radio]):not([type=date]), .ef-row .field select, .ef-row .field .btn, .ef-row .date-pick { height: 46px; min-height: 46px; box-sizing: border-box; }

/* project: all the data (owner only) */
.oa-g { border: 1px solid var(--line, #E3E6EE); border-radius: 12px; padding: 10px 14px 14px; margin: 0 0 14px; }
.oa-g legend { font-weight: 700; padding: 0 6px; }
.oa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.oa-grid .field:has(textarea) { grid-column: 1 / -1; }
.oa-changed { outline: 2px solid #D97706; outline-offset: 1px; }

/* tasks: the agent's messages waiting for approval */
.ag-body { width: 100%; min-height: 90px; font: inherit; }
.ag-q { white-space: pre-wrap; }

/* photographer portal on the phone: the two main actions at the top; the squares open their list */
.ph-quick { display: flex; gap: 10px; margin-bottom: 12px; }   /* phone: two columns, below */
.ph-quick .btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
/* the two ring charts side by side on a computer, one under the other on a phone */
.ph-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.ph-charts > .card { margin: 0; }
.ph-charts .ph-legend { max-width: 320px; }
@media (max-width: 700px) { .ph-charts { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .ph-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .ph-quick .btn { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none; padding: 10px; }
  .logos { display: none; }   /* three logos take a third of a phone screen */
}
a.kpi { display: block; cursor: pointer; }
a.kpi:hover, a.kpi:focus-visible { box-shadow: 0 0 0 2px var(--brand); }
/* the photographer's change request: film, minute, what to change */
.cf-row { display: grid; grid-template-columns: minmax(120px, 180px) 110px 1fr; gap: 8px; margin: 8px 0; align-items: start; }
@media (max-width: 640px) { .cf-row { grid-template-columns: 1fr 1fr; } .cf-row textarea { grid-column: 1 / -1; } }
/* the squares: two in a row on a phone */
@media (max-width: 700px) { .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grid.kpis .kpi { padding: 12px 14px; } .grid.kpis .kpi .num { font-size: 24px; } }
.kpi-go .num, .grid.kpis .kpi-go .num { font-size: 17px; color: var(--brand); margin-top: 6px; }
/* long change texts wrap inside their card on a phone (they used to run out of the box) */
.pcard, .fb-row, .fb-row > div { min-width: 0; overflow-wrap: anywhere; }
.fb-row textarea, .pcard textarea { width: 100%; max-width: 100%; box-sizing: border-box; }
.pre-wrap { white-space: pre-line; }
.pcard .pc-top { flex-wrap: wrap; }
.pcard .pill { white-space: normal; max-width: 100%; }
/* photographer home: tags on the squares, ring charts */
.kpi-tag { display: inline-block; background: #FFF1D6; color: #7A4B00; border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-inline-start: 4px; white-space: nowrap; }
.ph-donut { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ph-donut svg { flex: none; color: var(--ink); }
.ph-legend { display: grid; gap: 6px; font-size: 14px; flex: 1; min-width: 170px; }
.ph-legend div { display: flex; align-items: center; gap: 6px; }
.ph-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ph-legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
a.ph-acct { display: block; color: var(--ink); text-decoration: none; }
a.ph-acct h2, a.ph-acct .ph-legend { color: var(--ink); }
/* the photographer's "request changes" search: one normal-height box and the button next to it */
.fx-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.fx-row { display: flex; gap: 8px; align-items: stretch; }
.fx-row input { flex: 1; min-width: 0; height: 48px; min-height: 48px; border: 1px solid #C9CED9; border-radius: var(--r, 10px); padding: 0 12px; font-size: 16px; background: #fff; }
.fx-row .btn { flex: none; min-height: 48px; padding: 0 18px; }
/* long links (songs, material) wrap inside the card instead of running out of it */
.card a, .card li, .fs-songs li { overflow-wrap: anywhere; word-break: break-word; }
/* the film's place in its editor's queue (projects list) */
.qnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px;
  border: 0; background: var(--c, var(--brand)); color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; vertical-align: middle; }
.qnum:hover:not(:disabled) { box-shadow: 0 0 0 3px rgba(0,0,0,.15); }
/* the photographer and the office in the projects list: a coloured box of one size for all */
.phbox { display: inline-block; width: 132px; padding: 4px 8px; border-radius: 0; font-weight: 600; font-size: 13px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; box-sizing: border-box; }
.offbox { display: inline-block; width: 84px; padding: 4px 6px; border-radius: 0; font-weight: 700; font-size: 13px; text-align: center; box-sizing: border-box; }
.phcolors { display: flex; flex-wrap: wrap; gap: 6px; }
.phcolor input { position: absolute; opacity: 0; }
.phcolor span { display: inline-block; max-width: 120px; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border: 2px solid transparent; }
.phcolor input:checked + span { border-color: var(--ink); }
.phcolor input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.edc { display: inline-flex; align-items: center; gap: 8px; } .edc .qnum { margin: 0; } .qslot { display: inline-block; width: 26px; flex: none; }
.qnum:disabled { cursor: default; }
.qhold { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; cursor: help; }
.qhold svg { display: block; }

/* photographer account: the small circle that puts a film into the next statement (filled = in) */
.pick-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #1d1d1f; background: transparent; padding: 0; cursor: pointer; vertical-align: middle; }
.pick-dot.on { background: #1d1d1f; }
.pick-dot:disabled { cursor: default; opacity: .45; }
.pick-dot:focus-visible { outline: 2px solid #3D4E8A; outline-offset: 2px; }
.bill-pick > summary { cursor: pointer; }
