
/* Presentation rules retain their original cascade order. */
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:#f2f2f8;
  color:#191c21;
  font:14px system-ui
}
header {
  padding:16px 24px;
  border-bottom:2px solid transparent;
  border-image:linear-gradient(90deg,#f60,#db00ad,#9000ff) 1;
  display:flex;
  justify-content:space-between
}
.brand {
  font-size:22px;
  background:linear-gradient(90deg,#f60,#db00ad,#9000ff);
  background-clip:text;
  color:transparent
}
main {
  padding:24px;
  max-width:1400px;
  margin:auto
}
h1 {
  margin:0 0 16px
}
h2 {
  font-size:18px
}
.controls {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:end
}
label {
  display:block;
  color:#566174;
  font-size:12px
}
input,select,button,textarea {
  font:inherit;
  border:1px solid #d5dae4;
  border-radius:6px;
  padding:8px;
  background:#fff;
  color:#191c21
}
button {
  cursor:pointer
}
button:hover {
  border-color:#db00ad
}
button:disabled {
  opacity:.5;
  cursor:wait
}
.card {
  background:#fff;
  border:1px solid #d5dae4;
  border-radius:var(--bridge-window-radius);
  padding:18px;
  margin-top:16px
}
.table {
  overflow:auto
}
table {
  border-collapse:collapse;
  width:100%;
  margin-top:12px
}
th,td {
  text-align:left;
  padding:6px;
  border-bottom:1px solid #e3e5ed
}
th {
  font-size:12px;
  color:#566174
}
td input {
  width:65px
}
td select {
  max-width:170px;
  width:100%;
  min-width:110px
}
tfoot {
  font-weight:750
}
.status {
  color:#566174;
  min-height:22px;
  margin:12px 0
}
.error {
  color:#d00000
}
.ok {
  color:#328c00
}
[hidden] {
  display:none!important
}
.admin-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px
}
textarea {
  width:100%;
  min-height:85px
}
.hint {
  color:#566174;
  font-size:12px
}
#admin input {
  max-width:100%
}
.day-entries {
  display:flex;
  flex-direction:column;
  gap:8px
}
.entry {
  display:flex;
  gap:8px;
  align-items:end;
  flex-wrap:wrap
}
.entry label {
  display:flex;
  flex-direction:column;
  gap:3px
}
.day-label {
  white-space:nowrap;
  vertical-align:top;
  padding-top:14px
}
td select,select {
  max-width:none;
  width:auto;
  min-width:110px
}
.warning {
  color:#936000;
  background:#fff4d8;
  padding:8px;
  border-radius:6px;
  font-size:12px
}
.day-total {
  font-weight:700;
  white-space:nowrap
}
dialog {
  border:1px solid #d5dae4;
  border-radius:var(--bridge-window-radius);
  padding:24px
}
dialog::backdrop {
  background:#0006
}
#rows>tr>td {
  padding:12px 6px
}
/* AFTERGLOW light palette, typography and gradient detailing. */
:root {
  --line:#d5dae4;
  --muted:#566174;
  --accent:#db00ad;
  --raised:#eef0f5;
  --gradient:linear-gradient(90deg,#ff6600,#ff0048 40%,#db00ad 65%,#9000ff)
}
body {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  line-height:1.45;
  background:#f2f2f8
}
header {
  padding:14px 24px;
  border-bottom:1px solid;
  border-image:var(--gradient) 1;
  align-items:center
}
.brand {
  font:400 21px "Helvetica Neue",Arial,sans-serif;
  letter-spacing:.02em;
  background-image:var(--gradient)
}
main {
  max-width:1560px;
  padding:28px 24px
}
.eyebrow {
  font-size:11px;
  letter-spacing:.13em;
  color:var(--muted);
  font-weight:650
}
h1 {
  font-size:29px;
  letter-spacing:normal;
  margin:5px 0 6px
}
h2 {
  font-size:17px;
  letter-spacing:normal
}
.intro {
  color:var(--muted);
  margin:0 0 22px
}
main>.controls,#artistView>.controls {
  padding:16px 18px;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--bridge-window-radius);
  gap:16px
}
label {
  font-size:12px;
  font-weight:600;
  margin-bottom:4px
}
input,select {
  background:var(--raised);
  border-color:var(--line);
  min-height:38px
}
button {
  min-height:36px;
  border-color:var(--line);
  font-weight:550;
  padding:7px 12px
}
button:hover {
  background:#f8f2fa
}
:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:2px
}
#unlock,#submitWeek {
  background:#211728;
  color:white;
  border-color:#211728
}
#submitWeek {
  margin-left:auto
}
#submitWeek:hover,#unlock:hover {
  background:#45243e
}
.card {
  border-radius:var(--bridge-window-radius);
  padding:18px;
  box-shadow:0 2px 8px #29304705
}
.card>.controls {
  padding-bottom:12px;
  border-bottom:1px solid var(--line)
}
.card h2 {
  margin:0
}
#admin h2 {
  margin:18px 0 10px
}
.table {
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:var(--bridge-window-radius)
}
table {
  margin:0;
  table-layout:auto
}
thead {
  background:#eef0f5
}
th {
  padding:12px 10px;
  font-weight:700;
  white-space:nowrap
}
td {
  vertical-align:top
}
#rows>tr>td {
  padding:14px 10px;
  border-bottom:1px solid var(--line)
}
#rows>tr:nth-child(even) {
  background:#fafafe
}
.day-label {
  font-weight:650;
  color:#303a4c;
  min-width:115px
}
.day-total {
  font:700 17px "Courier New",monospace;
  text-align:right;
  padding-top:22px!important;
  color:#303a4c
}
.entry,.entry-columns {
  display:grid;
  grid-template-columns:var(--project-width,210px) var(--sequence-width,110px) var(--shot-width,330px) 76px 36px;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap
}
.entry label {
  margin:0;
  min-width:0
}
.entry select {
  width:100%!important;
  min-width:0;
  max-width:none
}
.entry input {
  width:76px;
  min-width:0;
  font-variant-numeric:tabular-nums
}
.day-entries {
  gap:8px
}
.remove-entry {
  width:34px;
  min-height:34px;
  padding:0;
  font-size:22px;
  font-weight:400;
  color:#7d8493;
  background:transparent;
  border-color:transparent
}
.remove-entry:hover {
  background:#fff0f0;
  color:#c92135;
  border-color:#f0c4c9
}
:is(.add-entry,.entry-note) {
  margin-top:9px;
  border:0;
  background:transparent;
  color:#a50084;
  font-size:12px;
  padding:3px 0;
  min-height:26px
}
:is(.add-entry,.entry-note):hover {
  background:transparent;
  text-decoration:underline
}
.warning {
  margin:8px 0 0;
  border-left:3px solid #c58c19;
  background:#fff6e6
}
.status {
  font-size:12px;
  margin:10px 2px
}
tfoot td {
  background:#eef0f5;
  padding:12px 10px
}
tfoot td:last-child {
  text-align:right
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
@media(max-width:700px) {
  main {
    padding:18px 12px
  }
  .card {
    padding:12px
  }
  h1 {
    font-size:25px
  }
  .controls {
    gap:10px
  }
  #submitWeek {
    margin-left:0
  }
}
/* Compact timesheet: entries first, daily totals below. */
header {
  padding:7px 20px
}
.brand {
  font-size:19px
}
main {
  padding:14px 20px
}
.eyebrow {
  font-size:10px
}
h1 {
  font-size:24px;
  margin:2px 0 3px
}
.intro {
  font-size:12px;
  margin:0 0 10px
}
main>.controls,#artistView>.controls {
  padding:9px 12px;
  gap:12px
}
.controls label {
  margin-bottom:2px
}
input,select {
  min-height:30px;
  padding:4px 8px
}
button {
  min-height:29px;
  padding:4px 10px;
  font-size:12px
}
.status {
  min-height:16px;
  margin:5px 2px
}
.card {
  margin-top:8px;
  padding:10px 12px
}
.card>.controls {
  padding-bottom:6px
}
.card h2 {
  font-size:15px
}
.table {
  margin-top:6px
}
th {
  padding:6px 8px;
  font-size:11px
}
#rows>tr>td {
  padding:5px 8px
}
.day-label {
  font-size:12px;
  min-width:105px;
  padding-top:11px!important
}
.day-total {
  font-size:14px;
  padding-top:11px!important
}
.day-entries {
  gap:4px
}
.entry,.entry-columns {
  gap:8px
}
.entry select,.entry input {
  font-size:13px;
  min-height:29px;
  padding-top:3px;
  padding-bottom:3px
}
.remove-entry {
  font-size:19px;
  min-height:27px
}
:is(.add-entry,.entry-note) {
  font-size:11px;
  min-height:18px;
  margin-top:2px;
  padding:0
}
.warning {
  margin:3px 0 0;
  padding:4px 7px;
  font-size:11px
}
tfoot td {
  padding:6px 8px;
  font-size:12px
}
.card>.hint {
  font-size:10px;
  margin:5px 0 0
}
.totals-section h2 {
  font-size:14px;
  margin:0 0 4px
}
@media(max-width:700px) {
  main {
    padding:10px
  }
  .card {
    padding:8px
  }
  .controls {
    gap:8px
  }
  h1 {
    font-size:22px
  }
}
#rows>tr.weekend:not(.weekend-active) {
  background:#edeef3
}
#rows>tr.weekend:not(.weekend-active) .day-label,#rows>tr.weekend:not(.weekend-active) .day-total {
  color:#818797
}
#rows>tr.weekend:not(.weekend-active) input,#rows>tr.weekend:not(.weekend-active) select {
  background:#f5f5f8
}
.weekly-total {
  white-space:nowrap
}
.weekly-total span {
  font-weight:500;
  color:#566174
}
/* Compact daily entries with neutral weekdays and subdued weekends. */
#rows>tr:not(.weekend),#rows>tr.weekend-active {
  background:#fff
}
#rows>tr.weekend:not(.weekend-active) {
  background:#edeef3
}
#rows>tr>td {
  padding:2px 8px
}
.entry select,.entry input {
  min-height:24px;
  height:24px;
  padding:1px 7px;
  font-size:13px;
  line-height:20px
}
.entry,.entry-columns {
  gap:8px
}
.day-entries {
  gap:2px
}
.day-label,.day-total {
  padding-top:5px!important
}
.remove-entry {
  min-height:24px;
  height:24px;
  line-height:22px;
  font-size:19px
}
:is(.add-entry,.entry-note) {
  display:block;
  min-height:14px;
  height:14px;
  line-height:14px;
  font-size:11px;
  margin:0;
  padding:0
}
.warning {
  padding:2px 6px;
  margin:2px 0;
  font-size:11px
}
tfoot {
  background:#C58C19
}
tfoot td {
  background:transparent!important;
  color:#fff;
  font-size:18px;
  font-weight:750;
  padding:10px 12px;
  border:0
}
tfoot .hint,tfoot .weekly-total span {
  color:#fff;
  font-size:13px
}
.weekly-total {
  font-size:22px;
  font-variant-numeric:tabular-nums
}
#passwordDialog {
  max-width:440px
}
#passwordDialog input {
  width:100%;
  margin:3px 0 10px
}
#rows .day-label {
  font-size:16px;
  font-weight:700;
  min-width:110px
}
.entry select {
  height:21px;
  min-height:21px;
  font-size:11px;
  padding:0 6px;
  line-height:19px
}
tfoot td {
  padding:3px 12px;
  font-size:16px;
  line-height:1.2
}
tfoot td:first-child,tfoot td:first-child .hint {
  color:#000
}
tfoot .weekly-total,tfoot .weekly-total span {
  color:#fff
}
.weekly-total {
  font-size:20px
}
#adminLogin {
  width:min(640px,calc(100vw - 32px));
  padding:26px
}
#adminPassword {
  width:100%;
  min-width:0;
  margin:8px 0 16px
}
#adminLogin h2 {
  margin:0 0 18px
}
tfoot td:first-child,tfoot td:first-child .hint {
  color:#fff
}
#rows .day-label {
  text-align:right;
  padding-right:16px
}
#submitWeek {
  background:#c58c19;
  color:#191c21;
  border-color:#c58c19
}
#submitWeek:hover {
  background:#c58c19;
  border-color:#c58c19
}
header {
  align-items:center;
  padding:12px 24px
}
.portal-heading .eyebrow {
  margin-bottom:3px
}
.gradient-title {
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:750;
  letter-spacing:normal;
  background:var(--gradient);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent
}
#unlock {
  background:#c58c19;
  color:#191c21;
  border-color:#c58c19
}
#unlock:hover {
  background:#c58c19;
  border-color:#c58c19
}
#rows>tr>td,#rows .day-label,#rows .day-total {
  vertical-align:middle;
  padding-top:2px!important;
  padding-bottom:2px!important
}
#rows .day-total {
  font-size:21px
}
tfoot td {
  vertical-align:middle;
  font-size:24px
}
tfoot .weekly-total {
  font-size:30px
}
tfoot td .hint,tfoot .weekly-total span {
  font-size:19.5px
}
header {
  padding:16px 24px
}
.brand {
  font-size:25px
}
#artistView>.eyebrow {
  margin-top:8px;
  font-size:12px;
  letter-spacing:.14em
}
#artistView>h1 {
  font-size:30px;
  margin:5px 0 8px;
  color:#191c21
}
#artistView>.intro {
  font-size:14px;
  margin-bottom:16px
}
tfoot td:first-child .hint {
  font-size:12px;
  font-weight:400
}
#undo {
  margin-left:auto
}
#submitWeek {
  margin-left:0
}
header {
  padding:18px 26px;
  background:#f2f2f8;
  border-radius:var(--bridge-window-radius) var(--bridge-window-radius) 0 0
}
.brand {
  font-family:"Helvetica Neue",Arial,sans-serif;
  font-size:28px;
  font-weight:400;
  letter-spacing:0;
  background-image:linear-gradient(90deg,#ff6600,#ff0048 40%,#db00ad 65%,#9000ff)
}
main {
  padding:22px 26px
}
#artistView>.eyebrow {
  margin:0 0 8px;
  font-size:13px;
  letter-spacing:.16em;
  font-weight:700
}
#artistView>h1 {
  font-size:34px;
  font-weight:750;
  letter-spacing:normal;
  line-height:1.15;
  margin:0 0 12px;
  background:none;
  color:#191c21
}
#artistView>.intro {
  font-size:16px;
  color:#566174;
  margin:0 0 20px;
  line-height:1.5
}
#message.error {
  color:#d00000
}
#execution {
  padding:7px 26px;
  background:#fff;
  border-bottom:1px solid #d5dae4
}
.execution-label {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:#566174
}
#executionBar {
  display:block;
  width:100%;
  height:7px;
  margin-top:4px;
  accent-color:#db00ad
}
#execution.execution-error .execution-label {
  color:#d00000
}
#execution.execution-error progress {
  accent-color:#d00000
}
/* Keep the execution strip in the layout when its contents are hidden. */
#execution {
  height:48px;
  min-height:48px;
  max-height:48px;
  overflow:hidden
}
#execution[hidden] {
  display:block!important;
  visibility:hidden
}
.execution-track {
  height:7px;
  margin-top:4px;
  border-radius:4px;
  background:#e4e8f0;
  position:relative;
  overflow:hidden
}
.execution-fill {
  position:absolute;
  inset:0 auto 0 0;
  width:40%;
  border-radius:4px;
  background:linear-gradient(90deg,#ff6600,#ff0048 40%,#db00ad 65%,#9000ff);
  animation:execution-sweep 1.4s ease-in-out infinite
}
#execution .execution-track #executionBar {
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  opacity:0
}
#execution.execution-complete .execution-fill {
  animation:none;
  transform:none;
  width:100%
}
#execution.execution-error .execution-fill {
  animation:none;
  width:0
}
@keyframes execution-sweep {
  from {
    transform:translateX(-100%)
  }
  to {
    transform:translateX(350%)
  }
}
@media(prefers-reduced-motion:reduce) {
  .execution-fill {
    animation:none;
    width:100%;
    opacity:.75
  }
}
#rows .day-label {
  vertical-align:top;
  padding-top:6px!important
}
#rows>tr.weekend:not(.weekend-active) {
  background:#f5f5f8;
  color:#969ba7
}
#rows>tr.weekend:not(.weekend-active) .day-label,#rows>tr.weekend:not(.weekend-active) .day-total {
  color:#a3a8b2
}
#rows>tr.weekend:not(.weekend-active) input,#rows>tr.weekend:not(.weekend-active) select {
  background:#fafafd;
  color:#858c99;
  border-color:#e6e8ee
}
#rows>tr.weekend:not(.weekend-active) :is(.add-entry,.entry-note) {
  color:#95849a
}
#thead {
  background:#fff
}
#thead th {
  background:#fff;
  box-shadow:inset 0 3px #c58c19;
  color:#191c21
}
#thead th:first-child,#thead th:last-child,#rows .day-total {
  text-align:right
}
.admin-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px
}
#admin .admin-heading h2 {
  margin:0
}
#adminLock {
  margin-left:auto;
  white-space:nowrap
}
.admin-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px
}
.admin-column {
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0
}
.admin-category {
  padding:18px;
  background:#f5f5fa;
  border:1px solid #d5dae4;
  border-radius:var(--bridge-window-radius);
  min-width:0;
  border-top:3px solid #c58c19
}
#admin .admin-category h2 {
  margin:0 0 14px;
  font-size:16px
}
.admin-category label {
  margin-top:10px
}
.admin-category>input,.admin-category>select {
  display:block;
  max-width:100%;
  margin-bottom:8px
}
.admin-category>button {
  margin-top:8px
}
.admin-column:last-child .admin-category {
  border-top-color:#db00ad
}
@media(max-width:760px) {
  .admin-grid {
    grid-template-columns:1fr
  }
  .admin-heading {
    align-items:flex-start
  }
}
#unlock,#submitWeek {
  background:#fff;
  color:#191c21;
  border-color:#d5dae4
}
#unlock:hover,#submitWeek:hover {
  background:#f8f2fa;
  border-color:#db00ad
}
#message.ok {
  color:#328c00
}
.login-actions {
  display:flex;
  justify-content:space-between;
  gap:12px
}
#cancelAdmin {
  margin-left:0;
  margin-right:auto
}
.password-fields {
  display:flex;
  gap:10px;
  align-items:center
}
.password-fields select,.password-fields input {
  min-width:0;
  max-width:100%;
  margin:0
}
.password-fields input {
  flex:1
}
.admin-grid {
  align-items:stretch
}
.admin-column {
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:18px
}
.admin-category {
  height:100%
}
@media(max-width:760px) {
  .admin-column {
    grid-template-rows:auto auto
  }
  .password-fields {
    flex-wrap:wrap
  }
}
#sheet>.card>.controls {
  border-bottom:0;
  padding-bottom:0
}
#submitWeek {
  margin-left:auto
}
#undo {
  margin-left:0
}
#submissionStatus:empty {
  display:none
}
#rows>tr.weekend:not(.weekend-active) {
  background:#f7f7fa
}
#rows>tr.weekend:not(.weekend-active) .day-label,#rows>tr.weekend:not(.weekend-active) .day-total {
  color:#b0b4be
}
#rows>tr.weekend:not(.weekend-active) input,#rows>tr.weekend:not(.weekend-active) select {
  background:#fafafd;
  color:#979dab;
  border-color:#eceef3
}
#rows>tr.weekend:not(.weekend-active) :is(.add-entry,.entry-note) {
  color:#a8a1b0
}
#rows>tr.weekend:not(.weekend-active):first-of-type {
  border-top:2px solid #788294
}
#rows>tr:nth-child(6)>td {
  border-top:2px solid #788294
}
html,body {
  height:auto;
  min-height:0
}
#sheet,.card,.day-entries {
  max-height:none
}
.table {
  max-height:none
}
/* Fade the status strip without changing its reserved height. */
#execution {
  opacity:1;
  visibility:visible;
  transition:opacity .6s ease,visibility 0s linear 0s
}
#execution[hidden] {
  opacity:0;
  visibility:hidden;
  transition:opacity .6s ease,visibility 0s linear .6s
}
@media(prefers-reduced-motion:reduce) {
  #execution,#execution[hidden] {
    transition:none
  }
}
/* Compact header and title rhythm. */
header {
  padding:5px 26px
}
.brand {
  font-size:25px;
  line-height:1.15
}
main {
  padding-top:10px
}
#artistView>.eyebrow {
  margin:0 0 3px;
  font-size:12px;
  line-height:1.2
}
#artistView>h1 {
  margin:0 0 5px;
  font-size:32px;
  line-height:1.1
}
#artistView>.intro {
  margin:0 0 10px;
  font-size:14px;
  line-height:1.3
}
button {
  text-transform:lowercase
}
#sheet>.card>.controls #weekTitle {
  order:0
}
#submissionStatus {
  order:1
}
#sheet>.card>.controls #undo {
  order:2;
  margin-left:auto
}
#sheet>.card>.controls #toggleNotes {
  order:3;
  margin-left:0
}
#sheet>.card>.controls #submitWeek {
  order:4;
  margin-left:0
}
#rows>tr:nth-child(6)>td {
  border-top:1px solid #4b5363
}

#rows>tr.weekend:not(.weekend-active)>td {
  opacity:.5
}
.entry,.entry-columns {
  grid-template-columns:var(--project-width,210px) var(--sequence-width,110px) var(--shot-width,240px) var(--task-width,160px) 76px 36px
}
/* Equal sequence/shot/task widths; responsive tracks prevent horizontal overflow. */
.entry,.entry-columns {
  grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,var(--sequence-width,110px))) 62px 28px;
  gap:6px;
  width:100%
}
.table {
  overflow:visible
}
table {
  table-layout:fixed;
  width:100%
}
#thead th:first-child {
  width:105px
}
#thead th:last-child {
  width:85px
}
.entry label {
  min-width:0
}
.entry select {
  width:100%!important;
  min-width:0;
  max-width:100%
}
.entry input {
  width:100%;
  min-width:0
}
.remove-entry {
  width:28px
}
.day-label {
  min-width:0
}
.weekly-total {
  white-space:normal
}
#rows>tr>td {
  padding-left:6px;
  padding-right:6px
}
#artistView>.controls>div {
  min-width:0;
  max-width:100%
}
#artistView>.controls select {
  max-width:100%
}
#weekTitle {
  overflow-wrap:anywhere
}
.admin-category select {
  max-width:100%
}
@media(max-width:700px) {
  #thead th:first-child {
    width:78px
  }
  #thead th:last-child {
    width:60px
  }
  .entry,.entry-columns {
    grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr)) 40px 20px;
    gap:3px
  }
  #rows .day-label {
    font-size:12px;
    padding-right:5px
  }
  #rows .day-total {
    font-size:14px
  }
  .entry select {
    padding-left:2px;
    padding-right:2px;
    font-size:10px
  }
  .entry input {
    padding:1px 2px
  }
  .remove-entry {
    width:20px
  }
  #thead th {
    font-size:10px;
    padding:5px 3px
  }
  .entry-columns span {
    overflow-wrap:anywhere;
    white-space:normal
  }
}
/* Give daily labels and totals distinct, wider rails. */
#thead th:first-child {
  width:145px
}
#thead th:last-child {
  width:125px
}
#rows>tr>td:first-child,#rows>tr>td:last-child {
  background:#f0f0f7
}
#rows>tr.weekend:not(.weekend-active)>td:first-child,#rows>tr.weekend:not(.weekend-active)>td:last-child {
  background:#eeeef4
}
#rows>tr>td:first-child {
  padding-left:12px;
  padding-right:14px
}
#rows>tr>td:last-child {
  padding-left:12px;
  padding-right:14px
}
.entry label:first-child select {
  width:50%!important
}
#rows :is(.add-entry,.entry-note) {
  margin-top:5px;
  margin-bottom:0
}
@media(max-width:700px) {
  #thead th:first-child {
    width:90px
  }
  #thead th:last-child {
    width:78px
  }
  #rows>tr>td:first-child,#rows>tr>td:last-child {
    padding-left:5px;
    padding-right:5px
  }
}
.entry,.entry-columns {
  grid-template-columns:minmax(0,1.05fr) repeat(3,minmax(0,var(--sequence-width,110px))) minmax(62px,.65fr) 28px
}
.entry label:first-child select {
  width:100%!important
}
.entry label {
  text-align:left
}
.entry-columns span {
  text-align:left
}
.entry-columns span:nth-child(5) {
  text-align:right
}
.entry label:nth-child(5) {
  justify-self:end;
  width:62px
}
.entry label:nth-child(5) input {
  text-align:right
}
@media(max-width:700px) {
  .entry,.entry-columns {
    grid-template-columns:minmax(0,1.05fr) repeat(3,minmax(0,.883333fr)) 40px 20px
  }
  .entry label:nth-child(5) {
    width:40px
  }
}
.brand {
  text-decoration:none
}
#thead th:last-child {
  width:165px
}
#rows .day-total {
  font-size:14px
}
tfoot td,tfoot .weekly-total {
  white-space:nowrap
}
.weekly-total {
  font-size:20px
}
tfoot td:first-child {
  font-size:20px
}
@media(max-width:700px) {
  #thead th:last-child {
    width:110px
  }
  #rows .day-total {
    font-size:12px
  }
  tfoot td:first-child {
    font-size:14px
  }
  tfoot td:first-child .hint {
    font-size:10px
  }
  tfoot .weekly-total {
    font-size:16px
  }
}
.header-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}
.hub-button {
  display:inline-block;
  border:1px solid #d5dae4;
  background:#fff;
  color:#191c21;
  border-radius:6px;
  padding:4px 10px;
  font-size:12px;
  line-height:20px;
  font-weight:550;
  text-decoration:none
}
.hub-button:hover {
  background:#f8f2fa;
  border-color:#db00ad
}
#submitDialog {
  width:min(480px,calc(100vw - 32px))
}
#submitDialog p {
  line-height:1.5;
  color:#566174
}
#passwordSetup {
  box-sizing:border-box;
  width:min(560px,calc(100vw - 24px));
  padding:16px;
  max-height:calc(100dvh - 24px)
}
#passwordSetup h2 {
  font-size:20px;
  line-height:1.2;
  margin:0 0 8px
}
#passwordSetupArtist {
  font-size:14px;
  line-height:1.4;
  margin:0 0 12px
}
#passwordSetup .setup-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
#passwordSetup label {
  display:block;
  font-size:12px;
  margin:0 0 4px
}
#passwordSetup input {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:34px;
  padding:6px 8px;
  margin:0;
  font-size:14px
}
#passwordSetupError {
  font-size:12px;
  margin:8px 0 0
}
#passwordSetupError:empty {
  display:none
}
#passwordSetup .login-actions {
  justify-content:flex-end;
  gap:8px;
  margin-top:12px
}
#passwordSetup button {
  font-size:13px;
  min-height:32px;
  padding:6px 12px;
  margin:0
}
.admin-page main {
  padding-top:10px;
  padding-bottom:10px
}
.admin-page #execution {
  height:36px;
  min-height:36px;
  padding-top:3px;
  padding-bottom:3px
}
#admin.card {
  padding:12px;
  margin-top:0
}
#admin .admin-heading {
  margin-bottom:10px
}
#admin .admin-heading h2 {
  font-size:18px
}
#admin .admin-grid,#admin .admin-column {
  gap:10px
}
#admin .admin-category {
  padding:10px 12px
}
#admin .admin-category h2 {
  font-size:15px;
  margin:0 0 8px
}
#admin .admin-category label {
  margin-top:4px;
  font-size:12px
}
#admin .admin-category input,#admin .admin-category select {
  font-size:12px;
  padding:5px 7px;
  margin-bottom:5px;
  min-height:29px
}
#admin button {
  font-size:12px;
  padding:5px 10px;
  min-height:29px
}
#admin .hint {
  font-size:11px;
  line-height:1.35;
  margin:5px 0
}
#admin .export-filter {
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  align-items:center;
  gap:8px;
  margin-bottom:5px
}
#admin .export-filter label {
  margin:0
}
#admin .export-filter select {
  width:100%;
  min-width:0;
  max-width:100%;
  margin:0
}
#adminMessage {
  margin:6px 0 0;
  font-size:12px
}
main,.admin-page main {
  max-width:1560px;
  width:100%
}
.admin-page header,.admin-page #execution {
  max-width:1560px;
  margin-left:auto;
  margin-right:auto
}
#artistView.week-locked #sheet {
  filter:grayscale(1)
}
#artistView.week-locked #sheet {
  opacity:.72
}
#artistView.week-locked #sheet .card {
  background:#f0f1f4
}
#artistView.week-locked #sheet input:disabled,#artistView.week-locked #sheet select:disabled {
  opacity:1;
  color:#4c535d;
  -webkit-text-fill-color:#4c535d;
  background:#e8eaee;
  cursor:default
}
#artistView.week-locked #sheet button:disabled {
  cursor:default
}
#weekLock {
  font-size:.7em;
  vertical-align:middle
}
html:has(body.admin-page) {
  background:#fff
}
body.admin-page {
  max-width:1560px;
  width:calc(100% - 48px);
  margin:28px auto;
  background:#f2f2f8;
  border-radius:var(--bridge-window-radius);
  overflow-x:clip
}
.admin-page header {
  padding:7px 28px
}
.admin-page main {
  padding:18px 28px 24px
}
.admin-page #admin.card {
  background:transparent;
  border:0;
  padding:0
}
#admin .admin-heading {
  align-items:flex-start;
  margin-bottom:14px
}
#admin .admin-heading h1 {
  font-size:32px;
  line-height:1.1;
  margin:4px 0 6px
}
#admin .admin-heading .intro {
  font-size:14px;
  margin:0
}
#admin .admin-category {
  background:#fff;
  border:1px solid #d5dae4;
  border-radius:var(--bridge-window-radius);
  padding:12px 14px
}
@media(max-width:700px) {
  body.admin-page {
    width:calc(100% - 20px);
    margin:10px auto
  }
  .admin-page main {
    padding:12px
  }
  .admin-page header {
    padding:7px 12px
  }
}
body.admin-page {
  max-width:var(--portal-width,1280px);
  width:calc(100% - 48px)
}
#admin .admin-column:first-child .admin-category {
  border-top:3px solid #c58c19
}
#admin .admin-column:last-child .admin-category {
  border-top:3px solid #9000ff
}
.header-actions #adminToggle {
  order:0
}
.header-actions .hub-button {
  order:1
}
.header-actions #adminLock {
  order:2;
  margin-left:0
}
#thead th {
  font-size:14px;
  vertical-align:middle;
  text-transform:lowercase
}
#thead .entry-columns {
  align-items:center;
  min-height:26px
}
#thead .entry-columns span {
  align-self:center;
  line-height:1.2
}
@media(max-width:700px) {
  #thead th {
    font-size:12px
  }
  body.admin-page {
    width:calc(100% - 20px)
  }
}
body.admin-page {
  width:min(var(--portal-width,1280px),100%);
  max-width:none
}
.admin-page header,.admin-page #execution {
  max-width:none
}
.admin-page main {
  max-width:1560px
}
.admin-page main {
  padding-left:24px;
  padding-right:24px
}
#weekLock {
  font-size:1.05em;
  filter:none;
  font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif
}
#admin .admin-column:first-child .admin-category {
  border-top:1px solid #d5dae4;
  border-left:3px solid #c58c19
}
#admin .admin-column:last-child .admin-category {
  border-top:1px solid #d5dae4;
  border-left:3px solid #9000ff
}
#adminLogin {
  width:min(480px,calc(100vw - 32px))
}
#artistView.week-locked .remove-entry,#artistView.week-locked #undo,#artistView.week-locked #submitWeek {
  display:none!important
}
#activityDialog {
  width:min(1100px,calc(100vw - 32px));
  max-height:calc(100dvh - 32px);
  padding:18px
}
.activity-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px
}
.activity-heading h2 {
  margin:0
}
.activity-table {
  overflow:auto
}
#activityGrid {
  table-layout:fixed
}
#activityGrid th:first-child {
  width:24%;
  text-align:left
}
#activityGrid th,#activityGrid td {
  text-align:center;
  padding:10px 5px;
  vertical-align:middle
}
#activityGrid small {
  display:block;
  font-size:11px;
  color:#566174;
  margin-top:3px
}
#activityGrid .active-week {
  background:#fff1d5;
  border-left:1px solid #c58c19;
  border-right:1px solid #c58c19
}
#activityGrid .week-entered {
  color:#46a400;
  font-size:20px
}
#activityGrid .week-submitted {
  font-size:20px
}
#activityGrid .week-empty {
  color:#a1a7b0
}
#adminLogin {
  top:125px;
  bottom:auto;
  margin:0 auto;
  max-height:calc(100dvh - 141px)
}
#admin .admin-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:auto auto;
  gap:8px;
  align-items:stretch
}
#admin .admin-column {
  display:contents
}
#admin .admin-column:first-child .admin-category:first-child {
  grid-column:1;
  grid-row:1
}
#admin .admin-column:first-child .admin-category:last-child {
  grid-column:1;
  grid-row:2
}
#admin .admin-column:last-child .admin-category:first-child {
  grid-column:2;
  grid-row:1
}
#admin .admin-column:last-child .admin-category:last-child {
  grid-column:2;
  grid-row:2
}
#admin .admin-category {
  display:flex;
  flex-direction:column;
  height:auto;
  padding:8px 10px;
  gap:3px
}
#admin .admin-category h2 {
  margin:0 0 4px
}
#admin .admin-category label,#admin .admin-category>input,#admin .admin-category>select,#admin .admin-category>button {
  margin:0
}
#admin .admin-category>button {
  align-self:flex-start
}
#admin .admin-category select {
  width:100%!important;
  min-width:0;
  max-width:100%
}
#admin .password-fields {
  margin-left:56px
}
#admin .admin-category>select {
  width:calc(100% - 56px)!important;
  margin-left:56px
}
#admin .hint {
  margin:3px 0;
  font-size:11px
}
#admin #generalInfo,#admin #catalogueInfo {
  margin-top:auto;
  padding-top:6px;
  border-top:1px solid #d5dae4
}
@media(max-width:760px) {
  #admin .admin-grid {
    grid-template-columns:1fr
  }
  #admin .admin-column .admin-category {
    grid-column:1!important;
    grid-row:auto!important
  }
}
#overrideDialog {
  width:min(460px,calc(100vw - 32px));
  padding:18px
}
#overrideDialog h2 {
  margin:0 0 8px
}
#overrideDialog p {
  font-size:13px;
  line-height:1.4
}
#overridePassword {
  width:100%;
  margin:4px 0 10px
}
#overrideDialog .login-actions {
  justify-content:flex-end
}
#requestAdminOverride {
  margin:4px 0 8px
}
#admin .admin-column:first-child .admin-category:nth-child(1) {
  grid-column:1;
  grid-row:1
}
#admin .admin-column:first-child .admin-category:nth-child(2) {
  grid-column:1;
  grid-row:2
}
#admin .admin-column:last-child .admin-category:nth-child(1) {
  grid-column:2;
  grid-row:1
}
#admin .admin-column:last-child .admin-category:nth-child(2) {
  grid-column:2;
  grid-row:2
}
#admin .admin-column:last-child .admin-category:nth-child(3) {
  grid-column:1;
  grid-row:3
}
#admin .admin-column:last-child .admin-category:nth-child(4) {
  grid-column:2;
  grid-row:3
}
#deleteTimesheets {
  color:#b42318;
  border-color:#d7a6a1
}
@media(max-width:760px) {
  #admin .admin-column .admin-category {
    grid-column:1!important;
    grid-row:auto!important
  }
}
/* Accent follows the visible grid column, including the unlocking panel. */
#admin .admin-column:first-child .admin-category,
#admin .admin-column:last-child .admin-category:nth-child(3) {
  border-left-color:#c58c19
}
#admin .admin-column:last-child .admin-category:nth-child(1),
#admin .admin-column:last-child .admin-category:nth-child(2),
#admin .admin-column:last-child .admin-category:nth-child(4) {
  border-left-color:#9000ff
}
#admin .export-actions {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:3px
}
#admin .export-actions button {
  margin:0;
  padding:5px 8px;
  font-size:12px;
  line-height:1.2;
  white-space:nowrap
}
/* Compact overview: status and hours share a line rather than stacking. */
#activityDialog { padding:12px 16px; }
#activityDialog .activity-heading h2 { font-size:18px; line-height:1.2; }
#activityDialog>.hint { margin:6px 0; font-size:12px; line-height:1.3; }
#activityStatus { margin:4px 0; font-size:12px; }
#activityGrid { margin-top:6px; }
#activityGrid th,#activityGrid td { padding:5px; line-height:1.25; }
#activityGrid th { font-size:12px; }
#activityGrid thead small { margin-top:1px; font-size:10px; }
#activityGrid td small { display:inline; margin:0 0 0 5px; font-size:11px; vertical-align:middle; }
#activityGrid .week-entered,#activityGrid .week-submitted { font-size:16px; }
/* Embedded branding keeps both portal views independent of external image hosting. */
.brand { display:inline-flex; align-items:center; background:none; }
.brand img { display:block; width:185px; height:auto; max-width:100%; }
/* Admin reporting stays compact and uses text totals alongside proportional bars. */
#hoursDialog { width:min(1050px,94vw); max-height:90vh; padding:20px; }
.hours-filters,.hours-metrics,.hours-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:16px 0; }
.hours-filters label { display:grid; gap:5px; min-width:0; }
.hours-filters select { width:100%; min-width:0; }
.hours-metrics>div { background:#f2f2f8; border-radius:var(--bridge-window-radius); padding:12px; }
.hours-metrics strong { display:block; font-size:28px; }
.hours-charts { grid-template-columns:repeat(2,minmax(0,1fr)); }
.hours-charts section { border:1px solid #d9ddea; border-radius:var(--bridge-window-radius); padding:14px; min-width:0; }
.hours-charts h3 { margin:0 0 12px; }
.hours-bar { margin:10px 0; }
.hours-bar-label { display:flex; justify-content:space-between; gap:12px; font-size:13px; }
.hours-bar-label span { overflow-wrap:anywhere; }
.hours-bar-track { height:8px; background:#f2f2f8; border-radius:8px; margin-top:5px; overflow:hidden; }
.hours-bar-fill { height:100%; background:linear-gradient(90deg,#ff6900,#ec008c,#9000ff); border-radius:8px; }
@media(max-width:650px) { .hours-filters,.hours-charts { grid-template-columns:1fr; } }
/* Notes occupy their own compact column without changing the dropdown widths. */
.entry,.entry-columns { grid-template-columns:minmax(0,1.05fr) repeat(3,minmax(0,var(--sequence-width,110px))) 82px minmax(50px,.65fr) 24px; }
.entry .entry-note { min-width:0; align-self:center; }
.entry label:nth-child(6) { justify-self:end; width:50px; }
.entry label:nth-child(6) input { text-align:right; }
.entry-columns span:nth-child(5) { text-align:left; }
.entry-columns span:nth-child(6) { text-align:right; }
/* Notes use a quiet fieldset label, separate from editable task controls. */
:is(#rows,#detailsResults) .entry-note-box { grid-column:1/-1; min-width:0; margin:2px 0 0; padding:4px 8px 6px; border:1px solid #d5dae4; border-radius:8px; background:transparent; }
:is(#rows,#detailsResults) .entry-note-box legend { padding:0 4px; font-size:10px; line-height:1.2; font-weight:400; color:#697386; }
:is(#rows,#detailsResults) .entry-note-box .entry-note-text { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font-size:10px; line-height:1.35; font-weight:400; color:#596477; }
#noteDialog { width:min(460px,90vw); padding:20px; }
#noteText { width:100%; min-height:100px; resize:vertical; font:inherit; }
.note-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
@media(max-width:700px) { .entry,.entry-columns { grid-template-columns:minmax(0,1.05fr) repeat(3,minmax(0,.88fr)) 65px 40px 20px; } .entry label:nth-child(6) { width:40px; } }
.build-version { text-align:right; color:#8b919e; font-size:9px; padding:4px 24px 10px; }
#deleteWeekDialog { width:min(500px,calc(100vw - 32px)); padding:22px; border:1px solid #d5dae4; border-radius:var(--bridge-window-radius); }
#deleteWeekDialog h2 { margin:0 0 14px; font-size:22px; }
#deleteWeekDialog dl { background:#f2f2f8; border-left:3px solid #e24755; padding:12px 14px; border-radius:6px; }
#deleteWeekDialog dt { color:#596477; font-size:12px; margin-bottom:4px; }
#deleteWeekDialog dd { margin:0 0 12px; overflow-wrap:anywhere; }
#deleteWeekDialog dd:last-child { margin-bottom:0; }
#deleteWeekDialog button[value="delete"] { color:#b42332; border-color:#e24755; }
/* Reserve room for decimal hours; the work-type badge needs only a compact fixed column. */
.entry,.entry-columns { grid-template-columns:minmax(0,1.35fr) 48px repeat(3,minmax(0,1fr)) 70px 80px 22px; gap:7px; }
.entry label { min-width:0; width:auto!important; justify-self:stretch; }
.entry select { width:100%!important; min-width:0!important; max-width:100%; }
.entry .work-type-field { display:flex; flex-direction:column; gap:3px; }
.work-type-badge { align-self:center; justify-self:start; font-size:9px; line-height:12px; padding:0 5px; border-radius:4px; background:#cce8ce; color:#191c21; }
.work-type-badge.asset { background:#d9c8f5; }
.work-type-badge.overhead { background:#dedfe3; }
.entry label:nth-child(7) input { text-align:right; box-sizing:border-box; padding-left:4px; padding-right:4px; font-variant-numeric:tabular-nums; }
.entry-columns span:nth-child(6) { text-align:left; }
.entry-columns span:nth-child(7) { text-align:right; }
.entry-add-actions { display:flex; gap:16px; flex-wrap:wrap; }
#thead .entry-columns span { white-space:normal; }
@media(max-width:700px) { .entry,.entry-columns { grid-template-columns:minmax(0,1.2fr) 42px repeat(3,minmax(0,1fr)) 48px 72px 18px; gap:3px; } .entry select { font-size:10px; padding-left:2px; padding-right:2px; } }
/* Keep the task control aligned with the other selectors, overriding legacy hours-column rules. */
.entry label:nth-child(5) { justify-self:stretch; width:auto!important; text-align:left; }
.entry label:nth-child(5) select { text-align:left; }
#rows .day-label { vertical-align:top; }
/* Reserve space for the collapse arrow, full weekday and short date. */
#sheet #thead th:first-child,#sheet #rows .day-label { width:230px; min-width:230px; }
@media(max-width:700px) { #sheet #thead th:first-child,#sheet #rows .day-label { width:170px; min-width:170px; } }
#sheet #weekCard .timesheet-actions :is(#undo,#toggleDays,#toggleNotes,#submitWeek) { order:0; margin-left:0; }
/* Keep the compact action group at the right, including when the toolbar wraps. */
#weekCard > .controls .timesheet-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px; margin-left:auto; order:2; max-width:100%; }
#weekCard .timesheet-actions button { font-size:11px; line-height:1.3; padding:3px 7px; min-height:24px; margin:0; }
#weekCard .timesheet-actions :is(#undo,#toggleNotes,#submitWeek) { margin-left:0; }

/* A collapsed day keeps its total and mounted controls, without triggering a save. */
:is(#rows,#detailsResults) .day-collapse-toggle { position:relative; display:block; width:100%; min-height:36px; padding:0 0 0 34px; margin:0; border:0; border-radius:3px; background:transparent; color:inherit; font:inherit; text-align:right; text-transform:none; white-space:nowrap; }
:is(#rows,#detailsResults) .day-collapse-toggle:hover { color:#db00ad; }
:is(#rows,#detailsResults) .day-collapsed .day-entries,:is(#rows,#detailsResults) .day-collapsed .entry-add-actions,:is(#rows,#detailsResults) .day-collapsed .warning { display:none!important; }
#detailsDialog { width:min(1280px,94vw); max-height:calc(100vh - 40px); margin:20px auto auto; inset-block-start:0; padding:14px 18px; background:#f2f2f8; }
.details-filters { display:flex; gap:16px; margin:12px 0; }
.details-filters label { display:flex; flex-direction:column; gap:4px; flex:1; min-width:0; }
.details-filters select { width:100%; min-width:0!important; }
.details-table { width:100%; table-layout:fixed; border-collapse:collapse; }
.details-table th { background:#fff; box-shadow:inset 0 3px #c58c19; text-align:left; padding:5px 6px; font-size:13px; }
.details-table td { padding:3px 6px; background:white; vertical-align:middle; border-bottom:1px solid #d5d9e5; overflow-wrap:anywhere; }
.details-table .details-day,.details-table .details-day-total { background:#eeeef5; text-align:right; }
.details-table thead th.details-day,.details-table thead th.details-day-total { background:#fff; }
.details-projects { display:flex; flex-wrap:wrap; gap:6px 18px; border:0; padding:0; margin:8px 0; }
.details-projects label { display:flex; align-items:center; gap:5px; font-size:12px; }
.details-projects input { width:auto; min-width:0; margin:0; }
.details-table .details-day { width:85px; font-size:12px; }
.details-table .details-day-total { width:50px; font-size:11px; }
.details-table .details-weekend td { background:#f4f4f7; color:#7b8190; }
.details-entry { display:grid; grid-template-columns:minmax(0,1fr) 52px minmax(0,.7fr) minmax(0,.7fr) minmax(0,.75fr) minmax(0,2.6fr) 32px; gap:6px; align-items:center; padding:2px 0; font-size:11px; line-height:1.25; }
.details-entry .details-note { font-size:9px; color:#858b97; white-space:pre-wrap; }
.details-entry span { min-width:0; }
.details-entry span:last-child { text-align:right; }
.details-total { display:flex; justify-content:space-between; background:linear-gradient(90deg,#ff6b00,#ff0055,#9000ff); color:white; padding:10px; font-size:18px; }
.header-actions .hub-button { order:3; }
#artistTabs { display:contents; }
#artistTabs .artist-tab-group { display:flex; flex-wrap:wrap; align-content:start; gap:4px; min-width:0; }
#artistTabs #artistPersonalTabs { grid-column:1; grid-row:1; padding:18px 8px 0; border-bottom:1px solid #c9ccda; }
#artistTabs #artistSupervisorTabs { grid-column:1; grid-row:2; padding:7px 8px 0; }
#artistTabs button { border-radius:9px 9px 0 0; background:#e7e7ef; border:1px solid #c9ccda; margin-bottom:-1px; padding:9px 18px; color:#747c8b; }
#artistTabs button[aria-selected="true"] { background:white; color:#191c21; border-bottom-color:white; box-shadow:inset 0 3px #c58c19; }
#artistTabs #artistSupervisorTabs button { color:#0079e1; text-transform:none; }
#artistTabs #artistSupervisorTabs button[aria-selected="true"] { box-shadow:inset 0 3px #008cff; }
#assignedTasksPanel { background:white; border:1px solid #d5d9e5; border-top:0; padding:14px; border-radius:0 0 var(--bridge-window-radius) var(--bridge-window-radius); }
.assignment-heading { display:flex; justify-content:space-between; align-items:center; }
.assignment-project { margin:12px 0; }
.assignment-project h3 { font-size:14px; padding:6px 8px; background:#f9e7bc; margin:0; }
.assignment-row { display:grid; grid-template-columns:28px 65px 1fr 1fr 1.2fr 160px; gap:8px; padding:7px 8px; align-items:center; border-bottom:1px solid #e5e6ed; font-size:12px; }
.assignment-row select { width:100%; min-width:0!important; font-size:12px; }
#artistView.week-locked #artistTabs,#artistView.week-locked #assignedTasksPanel { opacity:1; filter:none; }
#assignmentMessage.error { color:#bc2436; }
@media(max-width:700px){.assignment-row { grid-template-columns:25px 50px 1fr 1fr; }.assignment-row select { grid-column:3 / 5; }}
/* Dense assignment overview while keeping statuses readable. */
.assignment-project { margin:6px 0; }
.assignment-project h3 { padding:4px 7px; }
.assignment-row { padding:3px 7px; gap:6px; line-height:1.2; }
.assignment-row select { height:25px; padding:2px 5px; }
.assignment-development{background:#fff1cb;border:1px solid #c58c19;border-radius:6px;padding:10px 12px;color:#614300;font-weight:600}
.assignment-project{margin:3px 0}.assignment-project h3{padding:2px 7px;font-size:12px}.assignment-row{padding:0 6px;gap:4px;font-size:10px;line-height:16px;min-height:16px}.assignment-row select{height:16px;min-height:16px;font-size:10px;line-height:14px;padding:0 3px}.assignment-row .work-type-badge{font-size:8px;line-height:11px}
/* Keep task content compact and status feedback local to each task. */
.assignment-row{grid-template-columns:24px 48px 100px 130px 150px 145px;justify-content:start}
.assignment-row span{min-width:0;overflow-wrap:anywhere}
/* Every task keeps its own status and accessible status text. */
.assignment-row{--task-fill:#fff;--task-ink:#000;background:transparent;color:#191c21}
.assignment-row select{background:var(--task-fill);color:var(--task-ink)}
.assignment-row[data-status="waiting_to_start"],.assignment-row[data-status="on_hold"],.assignment-row[data-status="omit"],.assignment-row[data-status="not_applicable"]{--task-fill:#f1f2f5;--task-ink:#7b8290;opacity:.45}
.assignment-row[data-status="in_progress"]{--task-fill:var(--bridge-progress-tint);--task-ink:#245c30}
.assignment-row[data-status="pending_review"]{--task-fill:#e8d8f7;--task-ink:#633980}
.assignment-row[data-status="approved_internal"]{--task-fill:#d6eee9;--task-ink:#266b61}
.assignment-row[data-status="final"]{--task-fill:var(--bridge-complete-tint);--task-ink:#795714}
.assignment-row[data-status="retake"]{--task-fill:#ffdbb5;--task-ink:#814409}

@media(max-width:800px){.assignment-row{grid-template-columns:24px 44px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 125px}.assignment-row select{grid-column:auto}}
@media(max-width:520px){.assignment-row{grid-template-columns:24px 44px 1fr 1fr}.assignment-row select{grid-column:3/5}}
/* Reserve the status line so selecting tasks does not move the tab strip. */
#message{min-height:20px;margin:6px 0}html{background:white;overflow-anchor:none}
/* Both artist tabs use a separate rounded card below the tab strip. */
body{border-radius:var(--bridge-window-radius);overflow-x:clip}#sheet>.intro{margin:14px 0 12px}
#assignedTasksPanel{margin-top:14px;border:1px solid #d5d9e5;border-radius:var(--bridge-window-radius);background:white;padding:14px}
.assignment-development{background:#e00024;color:white;border-color:#e00024}
/* Reserve sign-in space before the iframe's first resize; never clip modal content. */
body:has(#adminLogin[open]){min-height:460px}
dialog[open],#adminLogin[open]{max-height:none}
#adminLogin::backdrop{background:#fff}
body:has(#adminLogin[open]){background:white}

#adminLogin,#adminLogin.login{top:125px;bottom:auto;margin:0 auto;width:min(480px,calc(100vw - 32px));max-width:480px;padding:26px;border:1px solid #d5dae4;border-radius:var(--bridge-window-radius);background:white;color:#191c21;font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;box-shadow:none}
#adminLogin h2{font-size:21px;line-height:1.3;margin:0 0 18px}#adminLogin label{font-size:14px;font-weight:600;color:#566174;margin:0;display:block}
#adminPassword{width:100%;margin:8px 0 16px;min-height:36px;padding:8px;border:1px solid #d5dae4;border-radius:6px;background:#eef0f5;font:inherit}
#adminLogin .actions,#adminLogin .login-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}#adminLogin button{font:inherit;padding:8px 12px;border:1px solid #d5dae4;border-radius:6px;background:white;color:#191c21}
#supervisorRoles{display:flex;flex-wrap:wrap;gap:4px}
#supervisorRoles button{font-size:11px;line-height:1.2;padding:4px 6px;margin:0!important;min-height:0;border-radius:5px}
body.admin-page{margin:0 auto;width:100%;overflow:visible;height:auto;min-height:0}
#admin,.admin-page main,.admin-grid,.admin-column,.admin-category{overflow:visible;max-height:none}
/* Shared header geometry across artist, admin and supervisor views. */
body>header,.admin-page header{box-sizing:border-box;width:100%;max-width:none;min-height:42px;margin:0;padding:5px 26px;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid transparent;border-image:linear-gradient(90deg,#ff6600,#ff0048 40%,#db00ad 65%,#9000ff) 1}
header .brand img{display:block;width:185px;height:auto}
header button,header .hub-button{font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;padding:6px 10px;min-height:30px;margin:0;border:1px solid #d5dae4;border-radius:6px;background:white;color:#191c21}
header .actions,header .header-actions{display:flex;align-items:center;gap:6px}
.timesheet-week{display:flex;align-items:center;gap:10px;margin:14px 0}.timesheet-week select{width:auto;max-width:100%}
#switchArtist{order:-1}
#adminLogin #cancelAdmin{margin-right:auto}
.assignment-filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.assignment-filters label{display:flex;align-items:center;gap:6px}
/* Shared title spacing matches the supervisor portal's progress strip. */
main,.admin-page main { padding-top:10px; margin-top:0; }
#execution,#execution[hidden] { box-sizing:border-box; height:36px; min-height:36px; max-height:36px; padding:4px 26px; margin:0 auto; }
#artistView>.eyebrow,.admin-heading .eyebrow { margin-top:0; }
.admin-activation-list { display:flex; flex-direction:column; gap:5px; }
.admin-activation-list button { text-align:left; padding:6px 10px; }
.admin-activation-list button[aria-pressed="true"] { background:#cce8ce; border-color:#83b68a; }
.admin-activation-list button[aria-pressed="false"] { background:#eef0f4; color:#8a909c; }
/* Four independent columns keep commander windows compact without stretching. */
#admin .admin-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:none; gap:12px; align-items:start; }
#admin .admin-column { display:flex; flex-direction:column; gap:12px; min-width:0; }
#admin .admin-column .admin-category { height:auto; min-height:0; flex:none; margin:0; grid-row:auto; grid-column:auto; }
#adminCrewActivation { flex-direction:row; flex-wrap:wrap; gap:4px; }
#adminCrewActivation button { font-size:11px; line-height:1.2; padding:4px 6px; margin:0!important; min-height:0; border-radius:5px; }
@media(max-width:1200px) {
  #admin .admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

}
@media(max-width:800px) {
  #admin .admin-grid { grid-template-columns:minmax(0,1fr); }

}
#adminProjectActivation { flex-direction:row; flex-wrap:wrap; gap:4px; }
#adminProjectActivation button { text-transform:uppercase; font-size:11px; line-height:1.2; padding:4px 6px; margin:0!important; min-height:0; border-radius:5px; }
#admin .admin-column:first-child .admin-category { border-left:3px solid #c58c19; }
#admin .admin-column:last-child .admin-category { border-left:3px solid #9000ff; }
#adminMessage { position:absolute; top:46px; right:26px; margin:0; font-size:11px; text-align:right; max-width:65%; }
body.admin-page { position:relative; }
.admin-page:has(#execution:not([hidden])) #adminMessage { visibility:hidden; }
.assignment-filters fieldset { border:1px solid #d5dae4; border-radius:var(--bridge-window-radius); padding:6px; min-width:0; }
.assignment-filter-options { display:flex; flex-wrap:wrap; gap:4px; }
.assignment-filter-options button { font-size:11px; padding:3px 6px; }
.assignment-filter-options button[aria-pressed="true"] { background:#e8d8f7; border-color:#9b65bf; }
/* Keep each column's accent when the layout wraps on smaller screens. */
#admin .admin-column[data-accent="pink"] { --admin-accent:#ec167d; }
#admin .admin-column[data-accent="green"] { --admin-accent:#179c32; }
#admin .admin-column[data-accent="gold"] { --admin-accent:#c58c19; }
#admin .admin-column[data-accent="purple"] { --admin-accent:#9000ff; }
#admin .admin-column[data-accent] .admin-category:nth-child(n) { border-left:3px solid var(--admin-accent); border-top:1px solid #d5dae4; min-width:0; grid-column:auto; grid-row:auto; }
#admin .admin-category :is(input,select,button) { min-width:0; max-width:100%; box-sizing:border-box; }
#admin .admin-category .hint { overflow-wrap:anywhere; }
#admin .password-fields { display:flex; flex-direction:row; align-items:center; gap:8px; margin-left:0; }
#admin .password-fields #passwordArtist { flex:1; width:auto!important; min-width:0; }
#admin .password-fields #setPassword { flex:none; white-space:nowrap; margin:0; }
#assignedTasksPanel button { font-family:inherit; font-size:11px; line-height:1.2; padding:4px 6px; min-height:0; height:auto; border-radius:5px; margin:0; }
#assignmentProject button[aria-pressed] { text-transform:uppercase; }
/* Equal-height filter panels on each row; give status options a full row when space is tight. */
#assignedTasksPanel { container-type:inline-size; }
#assignedTasksPanel .assignment-filters { display:grid; grid-template-columns:108px 150px 100px minmax(0,1fr) clamp(150px,15cqi,240px) max-content; align-items:stretch; width:100%; gap:8px; }
#assignedTasksPanel .assignment-filters fieldset { box-sizing:border-box; min-width:0; max-width:100%; margin:0; padding:5px 7px 7px; }
#assignedTasksPanel .assignment-filters .assignment-grouping { display:block; }
#assignedTasksPanel .assignment-grouping select { width:100%; min-width:0; max-width:100%; box-sizing:border-box; font-size:11px; padding:4px 6px; }
#assignedTasksPanel .assignment-status-options { display:flex; align-items:stretch; gap:8px; }
#assignedTasksPanel .assignment-action-filter { flex:none; display:flex; align-items:flex-start; padding-right:8px; border-right:1px solid #aeb5c0; }
#assignedTasksPanel #assignmentStatus { flex:1; min-width:0; width:auto; }
#assignedTasksPanel #assignmentArtistAction { font-size:10px; padding:3px 5px; white-space:nowrap; }
#assignedTasksPanel .assignment-filters>#clearAssignmentFilters { align-self:start; padding:6px 8px; }
@container (max-width:1200px) {
 #assignedTasksPanel .assignment-filters { grid-template-columns:96px 90px 100px minmax(0,1fr) 150px max-content; }
}
@container (max-width:1000px) {
 #assignedTasksPanel .assignment-filters { grid-template-columns:108px 150px 100px minmax(0,1fr) max-content; }
 #assignedTasksPanel .assignment-status-filter { grid-column:1 / -1; grid-row:2; }
 #assignedTasksPanel .assignment-project-filter { grid-column:4; grid-row:1; }
 #assignedTasksPanel #clearAssignmentFilters { grid-column:5; grid-row:1; }
}
@container (max-width:650px) {
 #assignedTasksPanel .assignment-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
 #assignedTasksPanel .assignment-status-filter { grid-column:1 / -1; }
 #assignedTasksPanel .assignment-status-options { flex-wrap:wrap; gap:4px; }
 #assignedTasksPanel .assignment-action-filter { margin-right:4px; }
 #assignedTasksPanel #assignmentStatus { display:contents; }
 #assignedTasksPanel .assignment-project-filter { grid-column:1 / 3; grid-row:3; }
 #assignedTasksPanel #clearAssignmentFilters { grid-column:3; grid-row:3; justify-self:start; }
}
#assignedTasksPanel .assignment-filters legend { font-size:11px; line-height:16px; padding:0 3px; }
#assignedTasksPanel .assignment-filter-options { display:flex; flex-wrap:wrap; align-content:flex-start; align-items:flex-start; gap:4px; width:100%; }
#assignedTasksPanel .assignment-filter-options button { flex:0 1 auto; max-width:100%; min-width:0; font-family:inherit; font-size:10px; font-weight:400; line-height:1.2; padding:3px 5px; min-height:0; height:auto; border-radius:5px; white-space:normal; overflow-wrap:anywhere; }
/* Fieldset borders start halfway down the legend line; align the clear action. */
#assignedTasksPanel #clearAssignmentFilters { margin-top:8px; }

/* Import differences remain readable for large workbooks without widening the portal. */
:is(#weekCard,#detailsResults).notes-hidden .entry-note-box { display:none; }
#refreshPortal.has-updates { border-color:#b000d0; background:#f0ddfa; box-shadow:0 0 0 1px #b000d0; }
.portal-tab-actions { display:flex; justify-content:flex-end; margin-bottom:10px; }
#weekRefreshHost { order:3; margin-left:auto; }
.assignment-grouping { display:flex; align-items:center; gap:8px; margin:10px 0; }
.assignment-grouping select { width:auto; font-size:12px; padding:5px 8px; }
/* Keep grouped task rows compact, single-line, and aligned across the full list. */
.assignment-display-controls { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:8px 0; }
.assignment-collapse { margin:0; padding:4px 7px 7px; border:1px solid #d5dae4; border-radius:var(--bridge-window-radius); }
.assignment-collapse legend { font-size:11px; padding:0 3px; }
.assignment-collapse button { font-size:11px; padding:3px 7px; margin-right:4px; }
#assignmentList { overflow-x:auto; }
#assignmentList .artist-assignment-table { width:100%; border-collapse:collapse; table-layout:auto; }
#assignmentList .assignment-row { display:table-row; }
#assignmentList .artist-assignment-table th, #assignmentList .artist-assignment-table td { white-space:nowrap; overflow-wrap:normal; text-align:left; padding:0 6px; font-size:10px; line-height:15px; }
#assignmentList .artist-assignment-table thead th { background:#f2f2f8; font-weight:600; }
#assignmentList .assignment-row td { border-bottom:1px solid #e5e6ed; }
/* Pack identifying columns to the left; the task column takes remaining space. */
#assignmentList .artist-assignment-table th, #assignmentList .artist-assignment-table td { width:1%; }
#assignmentList .artist-assignment-table th:nth-child(6), #assignmentList .artist-assignment-table td:nth-child(6) { width:auto; }
#assignmentList .assignment-row td:nth-child(2) { text-transform:uppercase; }
#assignmentList .artist-assignment-table thead th:last-child, #assignmentList .assignment-row td:last-child { text-align:right; }
#assignmentList .assignment-row select { width:auto; min-width:125px!important; height:17px; min-height:17px; padding:0 3px; line-height:15px; }
#assignmentList .assignment-group-title { background:#f9e7bc; }
#assignmentList .assignment-group-title button { text-transform:none; border:0; background:transparent; font:inherit; font-weight:600; padding:0; text-align:left; width:100%; }
#assignmentList tbody[hidden] { display:none!important; }
/* Keep daily add actions at the bottom without making the controls larger. */
#rows > tr > td:nth-child(2) { vertical-align:bottom; }
.entry-add-actions { align-items:flex-end; margin-top:4px; }
.entry-add-actions .add-entry { font-size:10px; line-height:1.2; padding:2px 0; }
#artistTabs .task-detail-tab { border-top:1px solid #cbd0df; box-shadow:none; text-transform:none; }
#artistTabs #workspaceTimelogsTab[aria-selected="true"] { box-shadow:inset 0 3px #c58c19; }
#artistTabs #studioPlanningTab[aria-selected="true"],
#artistTabs .task-detail-tab[aria-selected="true"] { box-shadow:inset 0 3px #c58c19; }
.task-detail-panel { padding-top:12px; }
/* Keep closing independent from tab activation, including for inactive tabs. */
.task-detail-tab-wrap { position:relative; display:flex; }
#artistTabs .task-detail-tab { padding-right:30px; text-align:left; }
.task-detail-tab > span { display:block; line-height:1.05; }
.task-detail-tab > span + span { font-size:0.7em; margin-top:0; }
#artistTabs .task-detail-close { position:absolute; top:5px; right:5px; padding:0; margin:0; width:22px; height:22px; min-height:0; border:0; border-radius:4px; background:transparent; box-shadow:none; font-size:18px; line-height:22px; color:#747c8b; }
#artistTabs .task-detail-close:hover { background:#d5d8e2; color:#191c21; }
.task-dashboard-frame { display:block; width:100%; height:1100px; border:0; border-radius:var(--bridge-window-radius); }
#assignmentList .assignment-row button { font-size:10px; padding:1px 5px; min-height:18px; }
/* Keep short dates subordinate to the weekday and aligned with the column edge. */
#rows .day-label, .details-table .details-day { text-align:right; vertical-align:top; }
.weekday-date { display:inline-block; font-size:0.65em; font-weight:400; line-height:1.1; white-space:nowrap; }
/* Compact side-by-side reporting filters, wrapping only on narrow screens. */
.hours-filters { grid-template-columns:auto minmax(180px,1fr) minmax(180px,1fr) minmax(180px,1fr); gap:8px; align-items:stretch; }
.hours-filters fieldset { min-width:0; margin:0; padding:8px; border:1px solid #d5dae4; border-radius:var(--bridge-window-radius); }
.hours-options { display:flex; flex-wrap:wrap; gap:4px; }
.hours-filters button { font-size:12px; padding:3px 7px; min-height:24px; }
.hours-filters button[aria-pressed="true"] { background:#e5d8f3; border-color:#a56ad0; }
.hours-filters .hours-all-none { border-style:dashed; }
.hours-artist-fill { background:#aeb4c0; border:1px solid #cbd0df; box-sizing:border-box; }
@media(max-width:800px) { .hours-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .hours-filters { grid-template-columns:1fr; } }
/* Report controls stay compact; the period and date share one column. */
.hours-filters { grid-template-columns:minmax(190px,.8fr) minmax(0,1fr) minmax(0,1fr); }
.hours-period-column { display:flex; flex-direction:column; gap:6px; min-width:0; }
.hours-filters button { font-size:10px; padding:1px 5px; min-height:20px; line-height:1.2; }
.hours-options { gap:3px; }
.hours-team { margin-top:3px; }
.hours-team summary { font-size:11px; line-height:1.2; cursor:pointer; }
.hours-team-artists { padding:2px 0 0 10px; }
.hours-team .hours-bar { margin:3px 0; }
.hours-team .hours-bar-label { font-size:11px; line-height:1.2; }
.hours-team .hours-bar-track { height:4px; margin-top:2px; }
#csvDialog { width:min(1100px,95vw); max-height:90vh; overflow:auto; }
@media(max-width:700px) { .hours-filters { grid-template-columns:1fr; } }
/* Project labels remain uppercase even where general button styles use lowercase. */
#csvProjects button[aria-pressed], #hoursProject button[aria-pressed],
#detailsProjects label, #managementProjects button[aria-pressed],
#projectSelect, #projects h3, .unassign-project h3,
#assignmentProject button[aria-pressed] { text-transform:uppercase; }
/* Export views share the same top position, with room above and scrollable content. */
#csvDialog, #hoursDialog, #activityDialog, #detailsDialog {
  top:0; bottom:auto; margin:100px auto 0; max-height:calc(100dvh - 120px); overflow:auto;
}
@media(max-height:400px) {
  #csvDialog, #hoursDialog, #activityDialog, #detailsDialog { margin-top:20px; max-height:calc(100dvh - 40px); }
}

/* Commander Excel preview stays bounded and scrolls with long imports. */
#toggleTimeImportNotes { padding:4px 9px; font-size:11px; }
/* Let content size the columns; long identifiers scroll instead of making tall rows. */
.time-import-errors { color:#bb243b; }
.time-import-warnings { margin:6px 0; padding:7px 10px; border:1px solid #e5bc60; border-left:4px solid #c58c19; border-radius:8px; background:#fff8e6; color:#654800; }
.time-import-warnings ul { margin:4px 0; padding-left:18px; }
.time-import-warnings p { margin-bottom:0; }
.activity-range { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px; margin:10px 0; }
.activity-range label { display:flex; flex-direction:column; gap:4px; font-size:12px; }
.activity-range select { min-width:230px; font-size:12px; padding:6px 8px; }
.activity-range button { padding:6px 12px; }
/* Keep artist names at their natural width; weeks scroll rather than compress. */
#activityDialog { width:min(1600px,calc(100vw - 32px)); max-width:calc(100vw - 32px); }
#activityGrid { table-layout:auto; width:max-content; min-width:0; }
#activityGrid th:first-child { width:1%; min-width:0; white-space:nowrap; padding-right:12px; }
#activityGrid th,#activityGrid td { padding:3px 6px; line-height:1.15; white-space:nowrap; font-size:11px; }
#activityGrid th:not(:first-child),#activityGrid td { min-width:0; }
#activityGrid .week-entered,#activityGrid .week-submitted { font-size:12px; }
#activityGrid td small { font-size:11px; margin-left:4px; }
#activityGrid tfoot { background:#e9ebf0; color:#20242a; }
#activityGrid tfoot th,#activityGrid tfoot td { padding:6px; font-size:12px; font-weight:700; color:#000; white-space:nowrap; overflow:visible; }
#activityGrid tfoot td { min-width:0; }
.details-edit-actions { display:flex; justify-content:flex-end; gap:6px; margin:8px 0; }
.details-edit-actions button { padding:5px 10px; font-size:12px; }
#detailsResults { overflow-x:auto; }
/* Commander corrections keep the artist's daily entry grid and compact controls. */
#detailsDialog {width:min(1800px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
#detailsResults {overflow-x:auto}
#detailsResults .details-timesheet {min-width:1150px}
#detailsResults .details-day {width:230px;font-size:16px;vertical-align:top}
#detailsResults .details-day-total {width:80px;font-size:13px}
#detailsResults .entry-columns {display:grid;text-transform:lowercase}
#detailsResults .entry-note-box {grid-column:1/-1}
#detailsResults .entry input {font-size:13px}
#detailsResults .entry-add-actions {margin-top:8px;align-items:end}
#detailsResults :is(select,input):disabled {opacity:1;color:inherit;cursor:default}
#detailsNoteDialog {width:min(500px,calc(100vw - 32px))}
#detailsNoteText {width:100%}
/* Confirmed timesheet saves share the status strip without an animated bar. */
#execution.execution-saved .execution-label { color:#C58C19; font-size:10.03px; }
#execution.execution-saved #executionText { letter-spacing:normal; }
#execution.execution-saved .saved-lambda { color:#C58C19; }
#execution.execution-saved .execution-track { visibility:hidden; }
/* Workspace pages use available browser width; cards and dialogs keep their own limits. */
main,.admin-page main { max-width:none; }
/* Solid work-type link colours retain the label hue without a ghosted appearance. */
#rows .entry-add-actions .add-entry[data-work-type="shot"]{color:#4b946a;opacity:1}
#rows .entry-add-actions .add-entry[data-work-type="asset"]{color:#9563cc;opacity:1}
#rows .entry-add-actions .add-entry[data-work-type="overhead"]{color:#7b8190;opacity:1}

/* Timesheet week total: white row with a dark label and gold amount. */
:is(#tfoot,.timesheet-summary),:is(#tfoot,.timesheet-summary) td { background:#fff; color:#191c21; }
:is(#tfoot,.timesheet-summary) td:first-child,:is(#tfoot,.timesheet-summary) td:first-child .hint { color:#191c21; }
:is(#tfoot,.timesheet-summary) td:first-child { text-align:right; line-height:1.05; }
:is(#tfoot,.timesheet-summary) td:first-child .hint { display:block; line-height:1.1; }
:is(#tfoot,.timesheet-summary) .weekly-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 24px; }
/* Let long totals grow into the summary row instead of the fixed hours column. */
:is(#tfoot,.timesheet-summary) .weekly-total { flex:0 1 auto; min-width:min(141px,100%); max-width:100%; line-height:1.2; white-space:normal; overflow-wrap:anywhere; color:#c58c19; }
@media(max-width:700px) { :is(#tfoot,.timesheet-summary) .weekly-total { min-width:min(86px,100%); } }
/* Continuous timesheet outline; round the cells without clipping entry controls. */
#weekCard { border-radius:8px; }
#weekCard > .table { border-radius:8px; }
#weekCard > .table > table { border-collapse:separate; border-spacing:0; border-radius:7px; }
#weekCard #thead,#weekCard #tfoot { background:transparent; }
#weekCard #thead th:first-child { border-top-left-radius:7px; }
#weekCard #thead th:last-child { border-top-right-radius:7px; }
#weekCard #rows > tr:nth-child(5) > td { border-bottom:1px solid #d5dae4; }
#weekCard #rows > tr:nth-child(6) > td { border-top:0; }
#weekCard #rows > tr:last-child > td { border-bottom:0; }
#weekCard #tfoot td { border-top:1px solid #000; border-bottom:0; }
#weekCard #tfoot td:first-child { border-bottom-left-radius:7px; }
#weekCard #tfoot td:last-child { border-bottom-right-radius:7px; }

/* Shared timelog presentation in the commander's artist submissions. */
.project-data-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-data-actions>button{margin:0;white-space:nowrap;font-size:11px;padding:6px 9px;min-height:30px}
#detailsWeekCard{background:#fff;border:1px solid #d5dae4;border-radius:8px;padding:12px;margin-top:12px}
#detailsWeekCard>.controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 10px}
#detailsWeekTitle{font-size:20px;line-height:1.2;margin:0}
#detailsWeekCard .details-edit-actions{flex-wrap:wrap;margin:0 0 0 auto;gap:4px}
#detailsWeekCard .details-edit-actions button{font-size:11px;line-height:1.3;padding:3px 7px;min-height:24px;margin:0}
#detailsWeekCard:has(#detailsResults:empty){display:none}
#detailsResults{border:1px solid #d5dae4;border-radius:8px}
#detailsResults .details-timesheet{border-collapse:separate;border-spacing:0;border-radius:7px}
#detailsResults .details-day{font-size:16px;font-weight:700;width:230px;min-width:230px;vertical-align:top;padding-top:6px!important}
#detailsResults .details-day-total{width:165px;font-size:14px}
#detailsResults .details-table tbody td{padding:2px 6px}
#detailsResults .details-table thead th{color:#191c21}
#detailsResults .details-table thead th:first-child{border-top-left-radius:7px}
#detailsResults .details-table thead th:last-child{border-top-right-radius:7px}
#detailsResults .details-weekend td{background:#f5f5f8;color:#a3a8b2}
#detailsResults .details-table tbody tr:last-child td{border-bottom:0}
#detailsResults .timesheet-summary td{padding:3px 12px;border-top:1px solid #000;border-bottom:0;border-radius:0 0 7px 7px;font-size:20px}
#detailsResults .timesheet-summary .weekly-total{font-size:30px}
#detailsResults .entry-add-actions .add-entry[data-work-type="shot"]{color:#4b946a}
#detailsResults .entry-add-actions .add-entry[data-work-type="asset"]{color:#9563cc}
#detailsResults .entry-add-actions .add-entry[data-work-type="overhead"]{color:#7b8190}
/* Keep the weekly entry columns readable; scroll within the card on narrow screens. */
#weekCard>.table,#detailsResults{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
#weekCard>.table>table,#detailsResults .details-timesheet{width:100%;min-width:1280px}
:is(#sheet,#detailsResults) :is(.entry,.entry-columns){grid-template-columns:minmax(180px,1.35fr) 48px repeat(3,minmax(110px,1fr)) 70px 80px 22px;gap:7px}
#sheet #thead th:first-child,#sheet #rows .day-label{width:230px;min-width:230px}
#sheet #thead th:last-child{width:165px}
#sheet #thead th{font-size:16px;padding:6px}
:is(#sheet,#detailsResults) .entry-columns span{white-space:nowrap;overflow-wrap:normal}
#sheet #rows .day-label{font-size:16px;padding-left:12px;padding-right:14px}
#sheet #rows .day-total{font-size:14px;padding-left:12px;padding-right:14px}
:is(#sheet,#detailsResults) .entry select{font-size:11px;padding-left:5px;padding-right:5px}
:is(#sheet,#detailsResults) .entry input{padding:1px 4px}
:is(#sheet,#detailsResults) .remove-entry{width:22px}
#weekCard>.table:focus-visible,#detailsResults:focus-visible{outline:2px solid #c58c19;outline-offset:2px}
/* bridge-dark-palette:start */
@media screen{
html[data-bridge-theme=dark] body{background:#202a34!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] label{color:#929292!important}
html[data-bridge-theme=dark] input,html[data-bridge-theme=dark] select,html[data-bridge-theme=dark] button,html[data-bridge-theme=dark] textarea{border:1px solid #383838!important;background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] button:hover{border-color:#aa4f86!important}
html[data-bridge-theme=dark] .card:not(#admin){background:#202020!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] th,html[data-bridge-theme=dark] td{border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] th{color:#929292!important}
html[data-bridge-theme=dark] .status{color:#929292!important}
html[data-bridge-theme=dark] .error{color:#d36b9e!important}
html[data-bridge-theme=dark] .ok{color:#63da57!important}
html[data-bridge-theme=dark] .hint{color:#929292!important}
html[data-bridge-theme=dark] .warning{color:#ad9667!important;background:#30291d!important}
html[data-bridge-theme=dark] dialog{border:1px solid #383838!important}
html[data-bridge-theme=dark] body{background:#202a34!important}
html[data-bridge-theme=dark] main>.controls,html[data-bridge-theme=dark] #artistView>.controls{background:#202020!important}
html[data-bridge-theme=dark] button:hover{background:#3b2033!important}
html[data-bridge-theme=dark] #unlock,html[data-bridge-theme=dark] #submitWeek{color:#bdbdbd!important;border-color:#383838!important}
html[data-bridge-theme=dark] thead{background:#181818!important}
html[data-bridge-theme=dark] #rows>tr:nth-child(even){background:#202a34!important}
html[data-bridge-theme=dark] .day-label{color:#929292!important}
html[data-bridge-theme=dark] .day-total{color:#929292!important}
html[data-bridge-theme=dark] .remove-entry{color:#929292!important}
html[data-bridge-theme=dark] .remove-entry:hover{background:#332229!important;color:#d36b9e!important;border-color:#383838!important}
html[data-bridge-theme=dark] :is(.add-entry,.entry-note){color:#d36b9e!important}
html[data-bridge-theme=dark] .warning{background:#30291d!important}
html[data-bridge-theme=dark] tfoot td{background:#181818!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active){background:#292929!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-label,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-total{color:#929292!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) input,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) select{background:#202020!important}
html[data-bridge-theme=dark] .weekly-total span{color:#929292!important}
html[data-bridge-theme=dark] #rows>tr:not(.weekend),html[data-bridge-theme=dark] #rows>tr.weekend-active{background:#202020!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active){background:#292929!important}
html[data-bridge-theme=dark] tfoot td{color:#bdbdbd!important}
html[data-bridge-theme=dark] tfoot .hint,html[data-bridge-theme=dark] tfoot .weekly-total span{color:#bdbdbd!important}
html[data-bridge-theme=dark] tfoot td:first-child,html[data-bridge-theme=dark] tfoot td:first-child .hint{color:#bdbdbd!important}
html[data-bridge-theme=dark] tfoot .weekly-total,html[data-bridge-theme=dark] tfoot .weekly-total span{color:#bdbdbd!important}
html[data-bridge-theme=dark] tfoot td:first-child,html[data-bridge-theme=dark] tfoot td:first-child .hint{color:#bdbdbd!important}
html[data-bridge-theme=dark] #submitWeek{color:#bdbdbd!important}
html[data-bridge-theme=dark] #unlock{color:#bdbdbd!important}
html[data-bridge-theme=dark] #artistView>h1{color:#bdbdbd!important}
html[data-bridge-theme=dark] header{background:#202a34!important}
html[data-bridge-theme=dark] #artistView>h1{color:#bdbdbd!important}
html[data-bridge-theme=dark] #artistView>.intro{color:#929292!important}
html[data-bridge-theme=dark] #message.error{color:#d36b9e!important}
html[data-bridge-theme=dark] #execution{background:#202020!important}
html[data-bridge-theme=dark] .execution-label{color:#929292!important}
html[data-bridge-theme=dark] #execution.execution-error .execution-label{color:#d36b9e!important}
html[data-bridge-theme=dark] .execution-track{background:#202a34!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active){background:#202020!important;color:#929292!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-label,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-total{color:#929292!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) input,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) select{background:#202a34!important;color:#929292!important;border-color:#383838!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) :is(.add-entry,.entry-note){color:#929292!important}
html[data-bridge-theme=dark] #thead{background:#202020!important}
html[data-bridge-theme=dark] #thead th{background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] .admin-category{background:#202a34!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] #unlock,html[data-bridge-theme=dark] #submitWeek{background:#202020!important;color:#bdbdbd!important;border-color:#383838!important}
html[data-bridge-theme=dark] #unlock:hover,html[data-bridge-theme=dark] #submitWeek:hover{background:#2b2330!important}
html[data-bridge-theme=dark] #message.ok{color:#63da57!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active){background:#202020!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-label,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) .day-total{color:#929292!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) input,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) select{background:#202a34!important;color:#929292!important;border-color:#383838!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active) :is(.add-entry,.entry-note){color:#929292!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active):first-of-type{border-top:2px solid #383838!important}
html[data-bridge-theme=dark] #rows>tr:nth-child(6)>td{border-top:2px solid #383838!important}
html[data-bridge-theme=dark] #rows>tr:nth-child(6)>td{border-top:1px solid #383838!important}

html[data-bridge-theme=dark] #rows>tr>td:first-child,html[data-bridge-theme=dark] #rows>tr>td:last-child{background:#202a34!important}
html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active)>td:first-child,html[data-bridge-theme=dark] #rows>tr.weekend:not(.weekend-active)>td:last-child{background:#181818!important}
html[data-bridge-theme=dark] .hub-button{border:1px solid #383838!important;background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] .hub-button:hover{background:#3b2033!important;border-color:#aa4f86!important}
html[data-bridge-theme=dark] #submitDialog p{color:#929292!important}
html[data-bridge-theme=dark] #artistView.week-locked #sheet .card{background:#181818!important}
html[data-bridge-theme=dark] #artistView.week-locked #sheet input:disabled,html[data-bridge-theme=dark] #artistView.week-locked #sheet select:disabled{color:#929292!important;background:#292929!important}
html[data-bridge-theme=dark]:has(body.admin-page){background:#0b0b0b!important}
html[data-bridge-theme=dark] body.admin-page{background:#202a34!important}
html[data-bridge-theme=dark] #admin .admin-category{background:#202020!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] #admin .admin-column:first-child .admin-category{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #admin .admin-column:last-child .admin-category{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #activityGrid small{color:#929292!important}
html[data-bridge-theme=dark] #activityGrid .active-week{background:#30291d!important}
html[data-bridge-theme=dark] #activityGrid .week-entered{color:#63da57!important}
html[data-bridge-theme=dark] #activityGrid .week-empty{color:#929292!important}
html[data-bridge-theme=dark] #admin #generalInfo,html[data-bridge-theme=dark] #admin #catalogueInfo{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #deleteTimesheets{color:#d36b9e!important}
html[data-bridge-theme=dark] .hours-metrics>div{background:#202a34!important}
html[data-bridge-theme=dark] .hours-charts section{border:1px solid #383838!important}
html[data-bridge-theme=dark] .hours-bar-track{background:#202a34!important}
html[data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-note-box{border:1px solid #383838!important}
html[data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-note-box legend{color:#929292!important}
html[data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-note-box .entry-note-text{color:#929292!important}
html[data-bridge-theme=dark] .build-version{color:#929292!important}
html[data-bridge-theme=dark] #deleteWeekDialog{border:1px solid #383838!important}
html[data-bridge-theme=dark] #deleteWeekDialog dl{background:#202a34!important}
html[data-bridge-theme=dark] #deleteWeekDialog dt{color:#929292!important}
html[data-bridge-theme=dark] #deleteWeekDialog button[value="delete"]{color:#ff627b!important;border-color:#bf4960!important}
html[data-bridge-theme=dark] .work-type-badge{background:#1d2a1c!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] .work-type-badge.asset{background:#2b2330!important}
html[data-bridge-theme=dark] .work-type-badge.overhead{background:#292929!important}
html[data-bridge-theme=dark] :is(#rows,#detailsResults) .day-collapse-toggle:hover{color:#d36b9e!important}
html[data-bridge-theme=dark] #detailsDialog{background:#202a34!important}
html[data-bridge-theme=dark] .details-table th{background:#202020!important}
html[data-bridge-theme=dark] .details-table td{background:#202020!important;border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] .details-table .details-day,html[data-bridge-theme=dark] .details-table .details-day-total{background:#181818!important}
html[data-bridge-theme=dark] .details-table thead th.details-day,html[data-bridge-theme=dark] .details-table thead th.details-day-total{background:#202020!important}
html[data-bridge-theme=dark] .details-table .details-weekend td{background:#181818!important;color:#929292!important}
html[data-bridge-theme=dark] .details-entry .details-note{color:#929292!important}
html[data-bridge-theme=dark] .details-total{color:#bdbdbd!important}
html[data-bridge-theme=dark] #artistTabs #artistPersonalTabs{border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] #artistTabs button{background:#292929!important;border:1px solid #383838!important;color:#929292!important}
html[data-bridge-theme=dark] #artistTabs button[aria-selected="true"]{background:#202020!important;color:#bdbdbd!important;border-bottom-color:#383838!important}
html[data-bridge-theme=dark] #artistTabs #artistSupervisorTabs button{color:#369dff!important}
html[data-bridge-theme=dark] #assignedTasksPanel{background:#202020!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] .assignment-project h3{background:#30291d!important}
html[data-bridge-theme=dark] .assignment-row{border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] #assignmentMessage.error{color:#d36b9e!important}
html[data-bridge-theme=dark] .assignment-development{background:#30291d!important;color:#ad9667!important}
html[data-bridge-theme=dark] .assignment-row{color:#bdbdbd!important}
html[data-bridge-theme=dark]{background:#0b0b0b!important}
html[data-bridge-theme=dark] #assignedTasksPanel{border:1px solid #383838!important;background:#202020!important}
html[data-bridge-theme=dark] .assignment-development{color:#bdbdbd!important}
html[data-bridge-theme=dark] #adminLogin::backdrop{background:#202020!important}
html[data-bridge-theme=dark] body:has(#adminLogin[open]){background:#202020!important}
html[data-bridge-theme=dark] #adminLogin,html[data-bridge-theme=dark] #adminLogin.login{border:1px solid #383838!important;background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] #adminLogin label{color:#929292!important}
html[data-bridge-theme=dark] #adminPassword{border:1px solid #383838!important;background:#181818!important}
html[data-bridge-theme=dark] #adminLogin button{border:1px solid #383838!important;background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] header button,html[data-bridge-theme=dark] header .hub-button{border:1px solid #383838!important;background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] .admin-activation-list button[aria-pressed="true"]{background:#1d2a1c!important;border-color:#383838!important}
html[data-bridge-theme=dark] .admin-activation-list button[aria-pressed="false"]{background:#181818!important;color:#929292!important}
html[data-bridge-theme=dark] .assignment-filters fieldset{border:1px solid #383838!important}
html[data-bridge-theme=dark] .assignment-filter-options button[aria-pressed="true"]{background:#302243!important;border-color:#805ab0!important}
html[data-bridge-theme=dark] #admin .admin-column[data-accent] .admin-category:nth-child(n){border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #refreshPortal.has-updates{background:#2b2330!important}
html[data-bridge-theme=dark] .assignment-collapse{border:1px solid #383838!important}
html[data-bridge-theme=dark] #assignmentList .artist-assignment-table thead th{background:#202a34!important}
html[data-bridge-theme=dark] #assignmentList .assignment-row td{border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] #assignmentList .assignment-group-title{background:#30291d!important}
html[data-bridge-theme=dark] #artistTabs .task-detail-tab{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #artistTabs .task-detail-close{color:#929292!important}
html[data-bridge-theme=dark] #artistTabs .task-detail-close:hover{background:#292929!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] .hours-filters fieldset{border:1px solid #383838!important}
html[data-bridge-theme=dark] .hours-filters button[aria-pressed="true"]{background:#302243!important;border-color:#805ab0!important}
html[data-bridge-theme=dark] .hours-artist-fill{background:#292929!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] .time-import-errors{color:#d36b9e!important}
html[data-bridge-theme=dark] .time-import-warnings{background:#30291d!important;color:#ad9667!important}
html[data-bridge-theme=dark] #activityGrid tfoot{background:#292929!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] #activityGrid tfoot th,html[data-bridge-theme=dark] #activityGrid tfoot td{color:#bdbdbd!important}
html[data-bridge-theme=dark] #execution.execution-saved .execution-label{color:#ad9667!important}
html[data-bridge-theme=dark] #execution.execution-saved .saved-lambda{color:#ad9667!important}
html[data-bridge-theme=dark] #rows .entry-add-actions .add-entry[data-work-type="shot"]{color:#63da57!important}
html[data-bridge-theme=dark] #rows .entry-add-actions .add-entry[data-work-type="overhead"]{color:#929292!important}
html[data-bridge-theme=dark] :is(#tfoot,.timesheet-summary),html[data-bridge-theme=dark] :is(#tfoot,.timesheet-summary) td{background:#202020!important;color:#bdbdbd!important}
html[data-bridge-theme=dark] :is(#tfoot,.timesheet-summary) td:first-child,html[data-bridge-theme=dark] :is(#tfoot,.timesheet-summary) td:first-child .hint{color:#bdbdbd!important}
html[data-bridge-theme=dark] :is(#tfoot,.timesheet-summary) .weekly-total{color:#ad9667!important}
html[data-bridge-theme=dark] #weekCard #rows > tr:nth-child(5) > td{border-bottom:1px solid #383838!important}
html[data-bridge-theme=dark] #weekCard #tfoot td{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #detailsWeekCard{background:#202020!important;border:1px solid #383838!important}
html[data-bridge-theme=dark] #detailsResults{border:1px solid #383838!important}
html[data-bridge-theme=dark] #detailsResults .details-table thead th{color:#bdbdbd!important}
html[data-bridge-theme=dark] #detailsResults .details-weekend td{background:#202020!important;color:#929292!important}
html[data-bridge-theme=dark] #detailsResults .timesheet-summary td{border-top:1px solid #383838!important}
html[data-bridge-theme=dark] #detailsResults .entry-add-actions .add-entry[data-work-type="shot"]{color:#63da57!important}
html[data-bridge-theme=dark] #detailsResults .entry-add-actions .add-entry[data-work-type="overhead"]{color:#929292!important}
}
/* bridge-dark-palette:end */


@media screen{
/* Full portals own their scroll boundary. Embedded supervisor tools grow to
   their content height, so vertical gestures must reach the parent portal. */
html[data-bridge-theme=dark],html[data-bridge-theme=dark] > body{overscroll-behavior:none}
html[data-bridge-theme=dark].workspace-embedded,html[data-bridge-theme=dark].workspace-embedded > body{overscroll-behavior-y:auto}

html[data-bridge-theme=dark][data-bridge-theme=dark]{color-scheme:dark;--bridge-theme-bg:#0b0b0b;--bridge-theme-workspace:#181818;--bridge-theme-card:#202020;--bridge-theme-line:#383838;--bridge-theme-ink:#bdbdbd;--bridge-theme-muted:#929292;--bridge-theme-gold:#ad9667;--bridge-theme-green:#63da57;--bridge-theme-green-tint:#1d2a1c;--bridge-theme-blue:#369dff;--bridge-status-progress:var(--bridge-theme-green);--bridge-status-complete:#ad9667;background:var(--bridge-theme-bg)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body,html[data-bridge-theme=dark][data-bridge-theme=dark] body>header,html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-row,html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-status{background:var(--bridge-theme-bg)!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] main,html[data-bridge-theme=dark][data-bridge-theme=dark] #artistView,html[data-bridge-theme=dark][data-bridge-theme=dark] #admin{background:var(--bridge-theme-workspace)!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(h1,h2,h3,h4,h5,strong,label,summary){color:inherit}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(input,select,textarea,button,.hub-button){background:#292929!important;border-color:#414141!important;color:#bdbdbd!important;box-shadow:none}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(input,select,textarea)::placeholder{color:#888!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(button,a,summary,select,input,textarea):focus-visible{outline:2px solid var(--bridge-theme-gold)!important;outline-offset:3px}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.bridge-header-title,.bridge-header-status,.build-version,.build-timestamp){color:#929292!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .brand img{filter:none;opacity:1}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-brand-shield{filter:grayscale(.4) brightness(.8)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistHeading{color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#artistHeading .portal-person-name,.build-number){color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.artist-tabs-row,#artistTabs,.workspace-tools-tabs,.bridge-supervisor-tabs){background:transparent!important;border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs .artist-tab-group{border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs [role=tab]{background:#252525!important;color:#969696!important;border-color:#3b3b3b!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs [role=tab][aria-selected=true]{background:var(--bridge-theme-workspace)!important;color:#c6c6c6!important;box-shadow:inset 0 3px var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs :is(#briefsTab,#workspaceManagementTab,#workspaceAssignmentsTab,#workspaceProjectsTab,#stationsTab,#pipelineTab){color:var(--bridge-theme-blue)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs :is(#briefsTab,#workspaceManagementTab,#workspaceAssignmentsTab,#workspaceProjectsTab,#stationsTab,#pipelineTab)[aria-selected=true]{box-shadow:inset 0 3px var(--bridge-theme-blue)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs [role=tab]:is(.has-unread-updates,.has-unread-briefs,.has-unread-tasks){background:var(--bridge-theme-green-tint)!important;color:var(--bridge-theme-green)!important;box-shadow:inset 0 3px var(--bridge-theme-green)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#timesheetTodayDate,.intel-masthead){color:var(--bridge-theme-ink)!important;border-color:#474137!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetTodayDate span{color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetTodayDate{border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.wa-today,#timesheetToday){background:transparent!important;color:#949494!important;border-color:#383838!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetToday .wa-today-list{background:transparent!important;color:#999!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetToday .wa-today-group{color:#999!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=remote] strong{color:var(--bridge-theme-green)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-row details>summary{background:#292929!important;border-color:#414141!important;color:#bdbdbd!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-wordmark,.intel-project-heading h3){color:#bdbdbd!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-title h2,.intel-kicker,#operationsPanel .ops-own-name code,.intel-metric strong,.intel-progress-label strong){color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .intel-title p{color:var(--bridge-theme-muted)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.ops-card,.ops-project){background:var(--bridge-theme-card)!important;border:1px solid #3c3c3c!important;border-top:2px solid #746448!important;box-shadow:none!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(h2,h3,h4,.ops-project>summary,.static-summary){color:#c2c2c2!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.ops-specs dt,.ops-status,.intel-project-body>p,.intel-project-footnote,.intel-project-note,.intel-metric span,.intel-mini span,.intel-crew-row p,.intel-crew-heading>span,.intel-update-empty){color:var(--bridge-theme-muted)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(details>summary,.ops-update-post>summary,.ops-update-body>small,.ops-update-controls button){color:#a29b8d!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .closure-calendar>summary{color:#bdbdbd!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(summary)::before{filter:grayscale(.45) brightness(.9)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.ops-update-post,.intel-project-body,.intel-crew-row,.intel-progress,.intel-project-heading){border-color:#3b3b3b!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.ops-update-label,.intel-deadline){color:var(--bridge-theme-green)!important;border-color:var(--bridge-theme-green)!important;background:transparent!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-deadline strong{color:var(--bridge-theme-green)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-deadline span{color:#999!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.closure-row,.ops-person,.ops-station,.ops-fields){background:#292929!important;border-color:#414141!important;color:#bdbdbd!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.closure-row time,.closure-row strong){color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.closure-calendar p,.project-summary-footnote){color:#999!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(progress,.intel-bar,.intel-progress-track){background:#3b3b3b!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-mini-bar{background:#3b3b3b!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-mini-bar>i{background:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .intel-task-shield{filter:saturate(.35) brightness(.8)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .intel-task-shield[data-status="in progress"]{opacity:.65}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.intel-metric-label,.intel-approval-count){color:#999!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-approval-heading strong{color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-title h2{color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body>footer.bridge-page-build{background:var(--bridge-theme-bg)!important;color:#929292!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-status .execution-track{background:#333!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-status .execution-fill{background:#746448!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(progress)::-webkit-progress-bar{background:#3b3b3b!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(progress)::-webkit-progress-value{background:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.bridge-progress-shield,.bridge-achievement-shield,.bridge-ready-shield){filter:saturate(.4) brightness(.8)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .intel-shield-row{filter:none}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.bridge-pending-review,.ops-update-label,.brief-unread-count){color:var(--bridge-theme-green)!important;border-color:var(--bridge-theme-green)!important;background:var(--bridge-theme-green-tint)!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.update-rich-editor,.update-rich-toolbar,.brief-composer,.brief-sequence,.brief-images img,.brief-media-thumb){background:#292929!important;color:var(--bridge-theme-ink)!important;border-color:#414141!important}
/* Midpoint green accents retain dark surfaces in the suite theme. */
html[data-bridge-theme=dark][data-bridge-theme=dark]{--bridge-progress-tint:var(--bridge-theme-green-tint);--bridge-progress-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='.5' stop-color='%2363da57' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%2363da57' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 2 29 7v10c0 8-7 14-13 17C10 31 3 25 3 17V7Z' fill='url(%23p)' stroke='%2363da57' stroke-width='1.5'/%3E%3C/svg%3E")}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-task-shield[data-status="in progress"],.bridge-progress-shield):not([data-shield-budget=over]):not([data-shield-budget=critical]){filter:none!important;opacity:.75}
/* Replace near-black critical in-progress shields with readable neutral grey. */
html[data-bridge-theme=dark][data-bridge-theme=dark]{--bridge-progress-critical-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='.5' stop-color='%234b4d50' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%234b4d50' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 2 29 7v10c0 8-7 14-13 17C10 31 3 25 3 17V7Z' fill='url(%23p)' stroke='%235a5b5e' stroke-width='1.5'/%3E%3C/svg%3E")}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-task-shield[data-status="in progress"],.bridge-progress-shield)[data-shield-budget=critical]{filter:none!important;opacity:.85}
html[data-bridge-theme=dark][data-bridge-theme=dark]{--bridge-critical-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cpath d='M16 2 29 7v10c0 8-7 14-13 17C10 31 3 25 3 17V7Z' fill='%234b4d50' stroke='%235a5b5e' stroke-width='1.5'/%3E%3Cpath d='m9 17 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-task-shield[data-status=approved],.bridge-achievement-shield)[data-shield-budget=critical]{filter:none!important;opacity:.85}
html[data-bridge-theme=dark][data-bridge-theme=dark]{--bridge-progress-overrun-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cdefs%3E%3ClinearGradient id='p' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='.5' stop-color='%23d63d51' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%23d63d51' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 2 29 7v10c0 8-7 14-13 17C10 31 3 25 3 17V7Z' fill='url(%23p)' stroke='%23da495b' stroke-width='1.5'/%3E%3C/svg%3E");--bridge-overrun-shield:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 36'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23f7727a'/%3E%3Cstop offset='1' stop-color='%23cd3246'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 2 29 7v10c0 8-7 14-13 17C10 31 3 25 3 17V7Z' fill='url(%23g)' stroke='%23da495b' stroke-width='1.5'/%3E%3Cpath d='m9 17 5 5 9-10' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-task-shield,.bridge-progress-shield,.bridge-achievement-shield)[data-shield-budget=over]{filter:saturate(.675) brightness(.9)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.intel-task-shield[data-status="in progress"],.bridge-progress-shield)[data-shield-budget=over]{opacity:.775}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.artist-brief-unread,.ops-station button[data-state=up]){color:var(--bridge-theme-green)!important;border-color:var(--bridge-theme-green)!important;background:var(--bridge-theme-green-tint)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .artist-brief-entry[data-new=true]{border-left-color:var(--bridge-theme-green)}
html[data-bridge-theme=dark][data-bridge-theme=dark] .pipeline-station summary[data-state=up]{color:var(--bridge-theme-green)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #whereaboutsPanel{--wa-remote:var(--bridge-theme-green)}
/* Embedded supervisor tools share the dark palette without changing day mode. */
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#workspaceToolsPanel,.workspace-tools-frame){background:var(--bridge-theme-card)!important;border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark]:has(>body.workspace-tools){background:var(--bridge-theme-card)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools{background:var(--bridge-theme-card)!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools :is(#portal,#saveBlock,.panel,.artist-column,.sequence-group,dialog){background:var(--bridge-theme-card)!important;color:var(--bridge-theme-ink)!important;border-color:var(--bridge-theme-line)!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools :is(.project,.project-queue,.task-group,.queue-item){background:var(--bridge-theme-workspace)!important;border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools :is(.muted,.drop-hint){color:var(--bridge-theme-muted)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools .splitter::after{background:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools .splitter:is(:hover,:focus-visible)::after{background:var(--bridge-theme-blue)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools .assigned{background:#292929!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.workspace-tools :is(.assigned button,.project-toggle.active){background:#292929!important}
html[data-bridge-theme=dark][data-bridge-theme=dark],html[data-bridge-theme=dark][data-bridge-theme=dark] body{--bg:var(--bridge-theme-bg);--panel:var(--bridge-theme-card);--raised:#292929;--line:var(--bridge-theme-line);--text:var(--bridge-theme-ink);--ink:var(--bridge-theme-ink);--muted:var(--bridge-theme-muted);--paper:var(--bridge-theme-card);--gold:var(--bridge-theme-gold);--ok:var(--bridge-theme-green);--danger:#d96575;--bridge-complete-tint:#30291d;color-scheme:dark!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.identity-card,.identity-authenticator-setup,dialog,.card,.panel,.weekly-card,.client-summary-card,.wa-card,.artist-brief-day,.brief-composer){background:var(--bridge-theme-card)!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.identity-page.clean-login{background:var(--bridge-theme-bg)!important;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.clean-login .identity-card{background:#141414!important;border-color:var(--bridge-theme-line)!important;border-left-color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.identity-entry-progress,.execution-track){background:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .identity-entry-progress::after{background:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#whereaboutsPanel,.wa-today){--wa-site:#ad9667;--wa-flanders:#b58aff;--wa-remote:#63da57;--wa-off:#929ba8;--wa-set:#369dff;--wa-location:#58adff;color:var(--bridge-theme-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is([data-value=site],[data-value=headquarters]){--wa-tint:#30291d}html[data-bridge-theme=dark][data-bridge-theme=dark] [data-value=flanders]{--wa-tint:#302243}html[data-bridge-theme=dark][data-bridge-theme=dark] [data-value=remote]{--wa-tint:#1d2a1c}html[data-bridge-theme=dark][data-bridge-theme=dark] [data-value=off]{--wa-tint:#292d33}html[data-bridge-theme=dark][data-bridge-theme=dark] [data-value=set]{--wa-tint:#202a34}html[data-bridge-theme=dark][data-bridge-theme=dark] [data-value=location]{--wa-tint:#17283b}
html[data-bridge-theme=dark][data-bridge-theme=dark] .identity-qr canvas{background:white!important} /* QR pixels remain unchanged. */
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.update-rich-content,.brief-copy) [style*="color"]{color:inherit}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.build-number,.portal-person-name){color:var(--bridge-theme-gold)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.build-timestamp,.hint,.muted){color:var(--bridge-theme-muted)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs :is(#briefsTab,#workspaceManagementTab,#workspaceAssignmentsTab,#workspaceProjectsTab,#stationsTab,#pipelineTab)[aria-selected=true]{box-shadow:inset 0 3px #168cff!important}
html .bridge-header-row{padding-right:0}
html[data-bridge-theme] .bridge-theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex:none;width:23.8px;height:27.2px;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;filter:none!important;cursor:pointer}
html[data-bridge-theme] .bridge-header-row .bridge-header-emblem.bridge-theme-toggle{margin:0 0 0 4px!important}
html .bridge-header-row .bridge-header-title .bridge-theme-toggle{font:inherit;width:1.6em;height:1.8em;margin:0!important;vertical-align:middle}
html .identity-login-brand .bridge-theme-toggle{width:22px;height:26px;margin:0!important}
html .intel-wordmark .bridge-theme-toggle{font:inherit;width:1.6em;height:1.8em;margin:0!important;vertical-align:middle}
html[data-bridge-theme] .bridge-theme-toggle::after{display:none}
.bridge-theme-toggle svg{display:block;width:100%;height:100%;pointer-events:none}
.bridge-theme-toggle .bridge-theme-outline{fill:none;stroke:#b98319;stroke-width:1;stroke-linejoin:round}
.bridge-theme-toggle .bridge-theme-fill{fill:#b98319;stroke:none;fill-opacity:0;transform-box:view-box;transform-origin:50% 50%;transition:fill-opacity .65s ease-out}
html[data-bridge-theme=dark] .bridge-theme-toggle .bridge-theme-outline{stroke:#dfb24d}
html[data-bridge-theme=dark] .bridge-theme-toggle .bridge-theme-fill{fill:#dfb24d}
html[data-bridge-theme=light] .bridge-theme-toggle .bridge-theme-fill{transform:scaleX(-1)}
@media (hover:hover){.bridge-theme-toggle:hover .bridge-theme-fill{fill-opacity:1;transition-duration:.14s}}
.bridge-theme-toggle:focus-visible .bridge-theme-fill{fill-opacity:1}
@media (prefers-reduced-motion:reduce){.bridge-theme-toggle .bridge-theme-fill{transition:none}}
.bridge-theme-toggle:focus-visible{outline:2px solid #ad9667!important;outline-offset:5px}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel :is(.ops-card,.ops-project){background:#202020!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #operationsPanel .ops-update-controls button{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-header-status :is(#execution,#superExecution,.execution-label,#executionText,#superExecutionText){background:transparent!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#bridgePendingReviews,#artistBriefNotice){color:#63da57!important;background:#1d2a1c!important;border-color:#63da57!important}
html[data-bridge-theme] .bridge-header-row .bridge-theme-toggle{background:none!important;border:0!important;box-shadow:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .bridge-theme-toggle{filter:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #whereaboutsPanel .wa-table th:first-child{box-shadow:1px 0 #383838!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #whereaboutsPanel .wa-table .wa-own th:first-child{box-shadow:inset 3px 0 #ad9667,1px 0 #383838!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #admin .admin-column[data-accent=green]{--admin-accent:#63da57}
html[data-bridge-theme=dark][data-bridge-theme=dark] #admin .admin-column[data-accent=gold]{--admin-accent:#ad9667}
html[data-bridge-theme=dark][data-bridge-theme=dark] #admin .admin-column[data-accent] .admin-category:nth-child(n){border-left:3px solid var(--admin-accent)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark]{--bridge-shot-text:#bdbdbd;--bridge-shot-ready:#292d33;--bridge-shot-omit:#292929;--bridge-shot-idle:#252525}
html[data-bridge-theme=dark][data-bridge-theme=dark] #shotList>button[aria-pressed=true]{border-color:#ad9667!important;box-shadow:inset 2px 0 #ad9667!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.sequence-shield.in-progress .approval-shield-icon,#status.tag.in-progress::after){opacity:.75!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] [data-shield-budget=critical] :is(.approval-shield-icon,.bridge-progress-shield,.bridge-achievement-shield){opacity:.85!important;filter:none!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] [data-shield-budget=over] :is(.approval-shield-icon,.bridge-progress-shield,.bridge-achievement-shield){opacity:.775!important;filter:saturate(.675) brightness(.9)!important}
html #artistTabs button[aria-selected=true]:not(#artistSupervisorTabs button):not(.has-unread-updates,.has-unread-briefs,.has-unread-tasks){color:#c58c19!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #artistTabs button[aria-selected=true]:not(#artistSupervisorTabs button):not(.has-unread-updates,.has-unread-briefs,.has-unread-tasks){color:var(--bridge-theme-gold)!important}
/* Personal notices have priority over the active gold tab in both portals. */
html[data-bridge-theme]{--bridge-notice-ink:#20b83f;--bridge-notice-tint:#edf8ed}
html[data-bridge-theme=dark]{--bridge-notice-ink:#63da57;--bridge-notice-tint:#1d2a1c}
html[data-bridge-theme] #artistTabs #artistPersonalTabs [role=tab]:is(.has-unread-updates,.has-unread-briefs,.has-unread-tasks){background:var(--bridge-notice-tint)!important;color:var(--bridge-notice-ink)!important;box-shadow:inset 0 3px var(--bridge-notice-ink)!important}
/* Brand shields and artist name labels have no button surface. */
html[data-bridge-theme][data-bridge-theme] .bridge-theme-toggle,
html[data-bridge-theme][data-bridge-theme] .intel-wordmark .bridge-theme-toggle,
html[data-bridge-theme=dark][data-bridge-theme=dark] #stationsPanel .ops-person-name{background:transparent!important;box-shadow:none!important}
/* Keep location labels distinct from the neutral crew names. */
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#whereaboutsPanel,.wa-today){--wa-site:#e4ae3d;--wa-set:#58adff;--wa-location:#58adff}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group:is([data-location=site],[data-location=headquarters]){--wa-group-color:#e4ae3d}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=flanders]{--wa-group-color:#b58aff}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=remote]{--wa-group-color:#63da57}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=set]{--wa-group-color:#58adff}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=location]{--wa-group-color:#58adff}
html[data-bridge-theme=dark] #timesheetToday .wa-today-group[data-location=off]{--wa-group-color:#929ba8}
html[data-bridge-theme=dark][data-bridge-theme=dark] #timesheetToday .wa-today-group strong{color:var(--wa-group-color)!important}
/* Selected coloured filters retain their semantic hue in dark mode. */
/* Intel retains its approved palette; these accents belong to the working tabs. */
html[data-bridge-theme=dark][data-bridge-theme=dark] #briefsPanel .brief-sequence>summary{background:#211b2a!important;color:#b58aff!important;box-shadow:inset 0 0 0 1px #805ab0}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.assignment-filter-options,.hours-filters,.task-status-filter,.management-filter,.my-time-filters,.planning-zoom,.identity-access-filters,.identity-usage-shortcuts,.identity-usage-crew) button[aria-pressed=true]:not(.bridge-task-status){color:#b58aff!important;border-color:#805ab0!important;background:#302243!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.identity-people-filters,.importReviewTabs,.weekly-period-toggle) button[aria-pressed=true]{color:#e4ae3d!important;border-color:#a78032!important;background:#382d16!important}

html[data-bridge-theme=dark][data-bridge-theme=dark] .ops-filter-group button[data-filter=up][aria-pressed=true]{border-color:#49a16f!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .ops-filter-group button[data-filter=down][aria-pressed=true]{border-color:#bf4960!important}
/* Task state selects use the same colours as their status chips. */
html[data-bridge-theme=dark] .assignment-row[data-status=in_progress]{--task-fill:#1d2a1c;--task-ink:#63da57}
html[data-bridge-theme=dark] .assignment-row[data-status=pending_review]{--task-fill:#302243;--task-ink:#b58aff}
html[data-bridge-theme=dark] .assignment-row[data-status=approved_internal]{--task-fill:#183631;--task-ink:#68cbb8}
html[data-bridge-theme=dark] .assignment-row[data-status=final]{--task-fill:#382d16;--task-ink:#e4ae3d}
html[data-bridge-theme=dark] .assignment-row[data-status=retake]{--task-fill:#3c2919;--task-ink:#ffae61}
html[data-bridge-theme=dark][data-bridge-theme=dark] .assignment-row:is([data-status=in_progress],[data-status=pending_review],[data-status=approved_internal],[data-status=final],[data-status=retake]) select{background:var(--task-fill)!important;color:var(--task-ink)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .management-status[data-status=pending_review]{background:#302243!important;color:#b58aff!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .management-status[data-status=approved_internal]{background:#183631!important;color:#68cbb8!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .management-status[data-status=final]{background:#382d16!important;color:#e4ae3d!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .management-status[data-status=retake]{background:#3c2919!important;color:#ffae61!important}
/* Working controls keep their day-mode categories, including embedded tools. */
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView .task-chip{background:#1d2a1c!important;color:#63da57!important;border-color:#49a16f!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView .task-chip.asset{background:#302243!important;color:#b58aff!important;border-color:#805ab0!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView .task-chip.overhead{background:#292929!important;color:#bdbdbd!important;border-color:#414141!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView :is(.sequence-title,.group-head>button,.queue-group-title){background:#302243!important;color:#b58aff!important;border-color:#805ab0!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView #taskArtistFilter button[aria-pressed=true]{background:#1d2a1c!important;color:#63da57!important;border-color:#49a16f!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView .current-project .project-priority{background:#1d2a1c!important;color:#63da57!important;border-color:#49a16f!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #taskView .queue-item.related-task :is(.chip,.remove){background:transparent!important;color:#e4ae3d!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #saveAssignments:not(:disabled){background:#382d16!important;color:#e4ae3d!important;border-color:#a78032!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .management-status[data-status=in_progress]{background:#1d2a1c!important;color:#63da57!important}
/* Preserve each multi-project artist's existing palette identity. */
html[data-bridge-theme=dark] #projectView [data-artist-colour="0"]{--artist-fill:#18334d;--artist-ink:#58adff;--artist-line:#467eb1}
html[data-bridge-theme=dark] #projectView [data-artist-colour="1"]{--artist-fill:#382d16;--artist-ink:#e4ae3d;--artist-line:#a78032}
html[data-bridge-theme=dark] #projectView [data-artist-colour="2"]{--artist-fill:#302243;--artist-ink:#b58aff;--artist-line:#805ab0}
html[data-bridge-theme=dark] #projectView [data-artist-colour="3"]{--artist-fill:#173929;--artist-ink:#64d99b;--artist-line:#3b9e69}
html[data-bridge-theme=dark] #projectView [data-artist-colour="4"]{--artist-fill:#3b2033;--artist-ink:#ee77bc;--artist-line:#aa4f86}
html[data-bridge-theme=dark] #projectView [data-artist-colour="5"]{--artist-fill:#153a3c;--artist-ink:#59cfdb;--artist-line:#368f98}
html[data-bridge-theme=dark] #projectView [data-artist-colour="6"]{--artist-fill:#323716;--artist-ink:#c6d85a;--artist-line:#909f3b}
html[data-bridge-theme=dark] #projectView [data-artist-colour="7"]{--artist-fill:#38291f;--artist-ink:#d1a27e;--artist-line:#946a4c}
html[data-bridge-theme=dark][data-bridge-theme=dark] #projectView [data-artist-colour]{background:var(--artist-fill)!important;color:var(--artist-ink)!important;border-color:var(--artist-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #projectView .assigned button{background:transparent!important;color:inherit!important;border-color:transparent!important}
/* Catalogue colours follow projects in time entries, including admin edits. */
html[data-bridge-theme=dark][data-bridge-theme=dark] select.bridge-project-coloured,
html[data-bridge-theme=dark][data-bridge-theme=dark] select.bridge-project-coloured option{background:color-mix(in srgb,var(--bridge-project-colour) 32%,#111)!important;color:color-mix(in srgb,var(--bridge-project-colour) 85%,white)!important;border-color:color-mix(in srgb,var(--bridge-project-colour) 70%,#111)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.work-type-badge,.management-type){background:#192519!important;color:#63da57!important;box-shadow:inset 0 0 0 1px #49a16f}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.work-type-badge,.management-type).asset{background:#211b2a!important;color:#b58aff!important;box-shadow:inset 0 0 0 1px #805ab0}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(.work-type-badge,.management-type).overhead{background:#25272c!important;color:#a6adba!important;box-shadow:inset 0 0 0 1px #5a6474}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-add-actions .add-entry{background:transparent!important;border-color:transparent!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-add-actions .add-entry[data-work-type=shot]{color:#63da57!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-add-actions .add-entry[data-work-type=asset]{color:#b58aff!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] :is(#rows,#detailsResults) .entry-add-actions .add-entry[data-work-type=overhead]{color:#a6adba!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #briefsPanel :is(.update-rich-toolbar .update-gold,#briefSave:not(:disabled)){color:#e4ae3d!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #briefsPanel #briefSave:not(:disabled){background:#382d16!important;border-color:#a78032!important}
/* Crew editors use the same location colours as the saved badges. */
html[data-bridge-theme=dark][data-bridge-theme=dark] #whereaboutsPanel .wa-table select{background-color:var(--wa-tint,#292929)!important;color:var(--wa-color,#bdbdbd)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #whereaboutsPanel .wa-table .wa-weekend select:not(:hover):not(:focus-visible){background-color:color-mix(in srgb,var(--wa-tint,#292929) 65%,#202020)!important;color:color-mix(in srgb,var(--wa-color,#bdbdbd) 80%,#929292)!important}

}
@media print{.bridge-theme-toggle{display:none!important}}


@media screen{
html[data-bridge-theme=dark][data-bridge-theme=dark] body.bridge-dashboard-page>main{background:transparent!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body.bridge-dashboard-page>main>section,html[data-bridge-theme=dark][data-bridge-theme=dark] #dashboardBrief{background:var(--bridge-theme-workspace)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark]:has(body[data-dashboard-panel]) body{background:var(--bridge-theme-workspace)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body:is([data-dashboard-panel],.task-detail-embed)>main{background:var(--bridge-theme-workspace)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body:is([data-dashboard-panel],.task-detail-embed) :is(.workspace,.panel,.card,.sequence-group,.picker),html[data-bridge-theme=dark][data-bridge-theme=dark] .dashboard-brief-card{background:var(--bridge-theme-card)!important;border-color:var(--bridge-theme-line)!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] body[data-dashboard-panel] :is(.sequence-totals,#summary,#results th){background:#292929!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] .sequence-shields button.sequence-shield{background:transparent!important;border-color:transparent!important}
html[data-bridge-theme=dark][data-bridge-theme=dark] #status.tag:is(.approved,.ready,.in-progress){background:transparent!important;border:0!important}
}

/* Approved Silver depth surfaces; Soft light accents retained. Screen-only: exported documents retain their own design. */
@media screen {
html[data-bridge-theme=light][data-bridge-theme=light]{color-scheme:light;--bridge-fluo-ink:#008013;--bridge-theme-bg:#cfd3d6;--bridge-theme-workspace:#e2e5e7;--bridge-theme-panel:#eef0f2;--bridge-theme-card:#fafbfc;--bridge-theme-line:#aeb6be;--bridge-theme-ink:#292929;--bridge-theme-muted:#595959;--bridge-theme-gold:#946000;--bridge-theme-green:#008013;--bridge-theme-blue:#006fe8;--line:#c6c6c6;--ink:#292929;--muted:#595959;--gold:#946000;--bg:#cfd3d6;--card:#fafbfc}
html[data-bridge-theme=light][data-bridge-theme=light] body{background:#ededed!important;color:#292929!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(dialog,#startPanel.bridge-portal,.assignment-panel,.admin-card,.delivery-card,.intel-card,.task-grid-card){background:#f7f7f7!important;color:#292929;border-color:#c6c6c6!important;--line:#c6c6c6;--ink:#292929;--muted:#595959;--card:#fff}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(input,select,textarea,button){color:#474747;background-color:#fff;border-color:#c6c6c6;color-scheme:light}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(.hint,.muted,legend,.intro,.artist-tasks-note,.delivery-note,.admin-note){color:#595959!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(table,tbody,tr,td){color:#292929}
html[data-bridge-theme=light][data-bridge-theme=light] body table :is(thead,th){background:#e4e9ec;color:#292929;border-color:#c6c6c6}
html[data-bridge-theme=light][data-bridge-theme=light] body table td{border-color:#c6c6c6}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .portal-person-name{color:#946000}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.task-view-toggle,.station-view-actions,.planning-zoom,.crew-navigation,.project-board-toggle,#financialsPeriod,#cashflowZoom,#cashflowGranularity,#cashflowAmounts)>button[aria-pressed=true],
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is([data-bridge-view-toggle],#settlementForecast>button,#projectDataSingleLine,#projectDataDeleted,#financialsReviewMatching,#projectDataAssignmentBoard .task-assignment-source)[aria-pressed=true]{background:#fff5ee!important;color:#bc4300!important;border-color:#fa6a00!important;box-shadow:inset 0 0 0 1px #fa6a00!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(button.primary,button.gold,.gold-button,.btn-primary){background:#fff!important;color:#946000!important;border-color:#c48200!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.chips,.bridge-filter-chips,.assignment-filter-options,.activity-filter-options,.activity-artists,#financialsArtists,.task-grid-info) button[aria-pressed=true]:not(.bridge-project-coloured):not([data-status]){background:#f5edfe!important;color:#7c20d6!important;border-color:#9637f5!important;box-shadow:inset 0 0 0 1px #9637f5!important}
/* Project identity remains coloured; selected state uses a pale hue and a double edge. */
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.bridge-project-coloured,.planning-project .planning-name){--bridge-project-accent:var(--bridge-project-light-ink,hsl(from var(--bridge-project-colour) h 100% 26%));--bridge-project-edge:hsl(from var(--bridge-project-colour) h 95% 44%)}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel button.bridge-project-coloured[aria-pressed=true]{color:var(--bridge-project-accent)!important;border-color:var(--bridge-project-edge)!important;background:color-mix(in srgb,var(--bridge-project-edge) 9%,white)!important;box-shadow:inset 0 0 0 1px var(--bridge-project-edge)!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel button.bridge-project-coloured[aria-pressed=false]{color:#595959!important;background:#fff!important;border-color:#b6bbc7!important;box-shadow:none!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(.assignment-group-title,.delivery-sequence th,.delivery-group td,.delivery-group-row td,.management-group-row td){background:#fff1e9!important;color:#b04400!important;border-color:#ee6814!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(.settlement-positive,.financials-income){color:#008013!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(.settlement-negative,.status-error,.error,.financials-negative){color:#db0026!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(.settlement-margin-percent,.financials-unpaid){color:#006fe8!important}
html[data-bridge-theme=light][data-bridge-theme=light] body [data-status]{--bridge-status-ink:#595959;--bridge-status-edge:#808080}
html[data-bridge-theme=light][data-bridge-theme=light] body [data-status=in_progress]{--bridge-status-ink:#008013;--bridge-status-edge:#20ac20}
html[data-bridge-theme=light][data-bridge-theme=light] body :is([data-status=pending_review],[data-status=review_external]){--bridge-status-ink:#7b20d9;--bridge-status-edge:#9b40fa}
html[data-bridge-theme=light][data-bridge-theme=light] body :is([data-status=approved_internal],[data-status=approved_external]){--bridge-status-ink:#007a4c;--bridge-status-edge:#00b877}
html[data-bridge-theme=light][data-bridge-theme=light] body :is([data-status=on_hold],[data-status=need_assistance]){--bridge-status-ink:#d60026;--bridge-status-edge:#f20b3d}
html[data-bridge-theme=light][data-bridge-theme=light] body :is([data-status=retake],[data-status=retake_external]){--bridge-status-ink:#bd4300;--bridge-status-edge:#f16a0a}
html[data-bridge-theme=light][data-bridge-theme=light] body :is([data-status=pending_elements],[data-status=final]){--bridge-status-ink:#946000;--bridge-status-edge:#c48200}
html[data-bridge-theme=light][data-bridge-theme=light] body [data-status=tech_check]{--bridge-status-ink:#0060cb;--bridge-status-edge:#0084ff}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(select.bridge-task-status[data-status],.bridge-task-status[data-status]>select,.assignment-row[data-status] select,.management-status[data-status],.task-grid-card>span.bridge-task-status[data-status],button.bridge-status-filter[data-status]){background:color-mix(in srgb,var(--bridge-status-edge) 9%,white)!important;color:var(--bridge-status-ink)!important;border-color:var(--bridge-status-edge)!important;color-scheme:light;box-shadow:none!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel button.bridge-status-filter[data-status][aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--bridge-status-edge)!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel button.bridge-status-filter[data-status][aria-pressed=false]{background:#fff!important;border-color:color-mix(in srgb,var(--bridge-status-edge) 55%,white)!important;box-shadow:none!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(select.bridge-task-status,.bridge-task-status>select,.assignment-row[data-status] select) option{color:#292929!important;background:#fff!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel table tfoot :is(th,td){background:#e4e9ec!important;border-top:2px solid #c48200!important;color:#292929}
/* The bright green foreground uses the same readable light-mode token everywhere. */
html[data-bridge-theme=light][data-bridge-theme=light] body #crewLocationsDialog [data-location=remote],
html[data-bridge-theme=light][data-bridge-theme=light] body .station-filter-group button[data-filter=up][aria-pressed=true]{color:#008013!important;background:#edf9ee!important;border-color:#20ac20!important}
/* One page-wide composite fade keeps every panel, dialog and text row in sync. */
html.bridge-theme-snapshot,html.bridge-theme-snapshot body *,html.bridge-theme-snapshot body *::before,html.bridge-theme-snapshot body *::after,html.bridge-theme-snapshot dialog::backdrop{transition:none!important}
html.bridge-theme-snapshot body *{view-transition-name:none!important}
html.bridge-theme-snapshot::view-transition-group(root){animation-duration:510ms;animation-timing-function:ease}
html.bridge-theme-snapshot::view-transition-old(root){animation:bridge-theme-fade-out 510ms ease both;mix-blend-mode:normal;z-index:2}
html.bridge-theme-snapshot::view-transition-new(root){animation:none;mix-blend-mode:normal;z-index:1}
@keyframes bridge-theme-fade-out{from{opacity:1}to{opacity:0}}
/* Apply transitions only during a theme change; ordinary filters remain immediate. */
html.bridge-theme-changing body,html.bridge-theme-changing body *,html.bridge-theme-changing body *::before,html.bridge-theme-changing body *::after{transition:color 510ms ease,background-color 510ms ease,border-color 510ms ease,box-shadow 510ms ease,fill 510ms ease,stroke 510ms ease!important}
@media(prefers-reduced-motion:reduce){html.bridge-theme-changing body,html.bridge-theme-changing body *,html.bridge-theme-changing body *::before,html.bridge-theme-changing body *::after{transition:none!important}}
}

@media screen {
html[data-bridge-theme=light][data-bridge-theme=light],html[data-bridge-theme=light][data-bridge-theme=light] body{background:#cfd3d6!important}
html[data-bridge-theme=light][data-bridge-theme=light] body{--bg:#cfd3d6;--card:#fafbfc;--line:#aeb6be}
html[data-bridge-theme=light][data-bridge-theme=light] body>header.bridge-header{background:#cfd3d6!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel.bridge-portal{background:#e2e5e7!important;--card:#fafbfc;--line:#aeb6be}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel dialog.bridge-workspace-content{background:transparent!important}
html[data-bridge-theme=light][data-bridge-theme=light] body :is(dialog:not(.bridge-workspace-content),.assignment-panel,.admin-card,.delivery-card,.intel-card){background:#eef0f2!important;border-color:#aeb6be!important;--card:#fafbfc;--line:#aeb6be}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .station-panel{background:#eef0f2!important;border-color:#aeb6be!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.station-available>.station-machine,.station-person,.task-grid-card){background:#fafbfc!important;border-color:#aeb6be!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.station-available>.station-machine,.station-person.station-assigned){background:color-mix(in srgb,#008fff 4%,#fafbfc)!important;border-color:#aeb6be!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .station-person-name{background:transparent!important;border-color:transparent!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .station-person-name[aria-pressed=true]{background:#fff5ee!important;color:#bc4300!important;border-color:#fa6a00!important}
/* Approved clearance shading: neutral artist tools, pale blue Supervisor tools,
   and the user's adjusted orange Commander palette. Keep tab geometry stable. */
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.bridge-workspace-tabs [role=tab],.bridge-mobile-current){--bridge-nav-ink:#41464b;--bridge-nav-fill:#eef0f2;--bridge-nav-border:#acb4bc;--bridge-nav-accent:#7b8793}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.bridge-workspace-tabs [role=tab],.bridge-mobile-current)[data-tab-scope=supervisor]{--bridge-nav-ink:#0061d5;--bridge-nav-fill:#dfedfc;--bridge-nav-border:#a3b9d1;--bridge-nav-accent:#168aff}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel :is(.bridge-workspace-tabs [role=tab],.bridge-mobile-current)[data-tab-scope=commander]{--bridge-nav-ink:#d16f00;--bridge-nav-fill:#fbecde;--bridge-nav-border:#bbaa9a;--bridge-nav-accent:#ff7e00}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .bridge-workspace-tabs :is([role=tab],#workspace-home-tab){background:var(--bridge-nav-fill)!important;color:var(--bridge-nav-ink)!important;border-color:var(--bridge-nav-border)!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .bridge-workspace-tabs :is([role=tab],#workspace-home-tab)[aria-selected=true]{box-shadow:inset 0 4px var(--bridge-nav-accent)!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #startPanel .bridge-mobile-current{color:var(--bridge-nav-ink)!important}
html[data-bridge-theme=light][data-bridge-theme=light] body #crewLocationsDialog{--crew-island-surface:#e2e5e7;--crew-card:#fafbfc}
}

/* Same release colors and size as the original Bridge, fixed bottom right. */
.bridge-release-badge{position:fixed;inset:auto 10px 5px auto;z-index:2147483647;display:block;width:max-content;max-width:calc(100vw - 20px);margin:0;padding:3px 6px;border:0;border-radius:8px;background:#0b0b0b;color:#929292;font:400 9px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:0;white-space:normal;text-align:right;pointer-events:none}
.bridge-release-badge .build-number{color:#ad9667;white-space:nowrap}.bridge-release-badge .build-timestamp{color:#929292;white-space:nowrap}
dialog>.bridge-release-badge{display:none}dialog:modal>.bridge-release-badge{display:block}
html[data-bridge-theme=light] .bridge-release-badge{background:#f2f3f7;color:#8b919e}
html[data-bridge-theme=light] .bridge-release-badge .build-number{color:#c58c19}
body{padding-bottom:28px!important}
@media print{.bridge-release-badge,dialog:modal>.bridge-release-badge{display:none!important}}

/* Reveal the shared badge on activity without changing page geometry. */
.bridge-release-badge{opacity:1;visibility:visible;transition:none}
html.bridge-release-idle .bridge-release-badge{opacity:0;visibility:hidden;transition:opacity 5s linear,visibility 0s linear 5s}
@media(prefers-reduced-motion:reduce){html.bridge-release-idle .bridge-release-badge{transition:none}}

html,body{min-height:100%;background:var(--bridge-theme-bg,#0b0b0b);color:var(--bridge-theme-ink,#bdbdbd)}
body{margin:0;padding:16px 24px 40px;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.proposal-tool-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #ad9667}
.proposal-tool-header img{width:240px;max-width:45vw;height:auto}.proposal-tool-header>div{display:flex;align-items:center;gap:16px}.proposal-back{color:var(--bridge-theme-ink);white-space:nowrap}
#proposalWorkspace{margin:0;padding:0;max-width:none;width:100%;border-radius:12px}#proposalPanel{width:100%}
#proposalPanel .brief-rich-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border:1px solid var(--bridge-theme-line);border-radius:6px 6px 0 0}
#proposalPanel .brief-rich-toolbar button{padding:3px 7px;font-size:12px}#proposalPanel .brief-rich-editor{padding:10px;min-height:90px;border:1px solid var(--bridge-theme-line);border-radius:0 0 6px 6px;background:var(--bridge-theme-card);white-space:pre-wrap}
.status-error{color:#ff1646}.hint{color:var(--bridge-theme-muted)}[hidden]{display:none!important}
#proposalText .text-proposal-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:12px 0 4px}#proposalText .text-proposal-toolbar p{margin:3px 0;font-size:12px}#proposalText>p{margin:4px 0 14px}#proposalText .text-proposal-preview{position:relative;width:100%;max-width:none;overflow:hidden;margin:0 auto;background:transparent;box-shadow:none}#proposalText iframe{position:absolute;inset:0;border:0!important;max-width:none;transform-origin:top left;background:transparent}
html.bridge-theme-snapshot::view-transition-old(root){animation:proposal-fade-out .51s ease both}html.bridge-theme-snapshot::view-transition-new(root){animation:proposal-fade-in .51s ease both}
@keyframes proposal-fade-out{to{opacity:0}}@keyframes proposal-fade-in{from{opacity:0}}
html.bridge-theme-changing :is(body,main,section,button,input,select,textarea,header){transition:background-color .51s ease,color .51s ease,border-color .51s ease}
@media(max-width:600px){body{padding:10px 8px 36px}.proposal-tool-header{gap:8px}.proposal-tool-header>div{gap:8px;font-size:12px}.proposal-tool-header img{width:180px}#proposalPanel{padding:10px}}

/* Shared Bridge masthead geometry and compact proposal navigation. */
body{padding:0 18px 40px}
.proposal-tool-header{display:block;margin:0 0 14px;padding:0;border:0;position:sticky;top:0;z-index:10;background:var(--bridge-theme-bg,#0b0b0b)}
.proposal-header-row{display:flex;align-items:center;gap:22px;min-height:44px;padding:5px 18px 5px 18px;box-sizing:border-box}
.proposal-tool-header .proposal-brand{display:block;width:185px;max-width:none;height:auto}
.proposal-tool-header .proposal-studio{display:inline-flex;align-items:center;gap:7px;font-size:14px;font-weight:700;letter-spacing:1.8px;color:var(--bridge-theme-muted,#929292);white-space:nowrap}
.proposal-tool-header #themeToggle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:28px;min-height:28px;padding:0;margin:0;border:0!important;background:none!important;box-shadow:none!important;cursor:pointer}
#themeToggle svg{display:block;width:24px;height:28px}.shield-outline{fill:none;stroke:#ad9667;stroke-width:1px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.shield-fill{fill:#ad9667;fill-opacity:0}
#themeToggle:focus-visible .shield-fill{fill-opacity:1}@media(hover:hover){#themeToggle:hover .shield-fill{fill-opacity:1}}
.proposal-back{margin-left:auto;font-size:11px;font-weight:600;padding:3px 9px;border:1px solid var(--bridge-theme-line,#414141);border-radius:6px;text-decoration:none}
.proposal-header-line{height:1px;margin-inline:18px;background:linear-gradient(90deg,#ff6600,#ff0048 40%,#db00ad 65%,#9000ff)}
#proposalPanel>h2{display:none}
#proposalPanel>.proposal-actions{display:flex;align-items:end;justify-content:flex-start;gap:8px;margin:0 0 8px;padding-bottom:12px;border-bottom:1px solid var(--bridge-theme-line,#414141)}
#proposalPanel>.proposal-actions label{font-size:11px;gap:4px;min-width:0}
#proposalProject{width:265px;max-width:100%}
#proposalPanel .text-proposal-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#proposalPanel>.proposal-actions :is(button,select,input){box-sizing:border-box;font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;min-height:30px;padding:5px 9px;margin:0}
#proposalText .text-proposal-toolbar{justify-content:flex-start;gap:8px;margin:10px 0 4px}
#proposalText .text-proposal-toolbar h3{font-size:16px}
#proposalPanel>#proposalStatus{font-size:12px;margin:4px 0;min-height:0}
@media(max-width:1050px){.proposal-tool-header .proposal-brand{width:145px}.proposal-tool-header .proposal-studio{font-size:12px;letter-spacing:1px}.proposal-header-row{gap:12px}}
@media(max-width:650px){body{padding:0 8px 36px}.proposal-header-row{flex-wrap:wrap;padding:8px 12px;gap:8px 12px}.proposal-tool-header .proposal-brand{width:145px}.proposal-tool-header .proposal-studio{margin-left:auto;gap:4px}.proposal-back{margin-left:0}.proposal-header-line{margin-inline:8px}#proposalPanel{padding:10px}#proposalPanel .text-proposal-actions{flex-basis:100%}#proposalProject{width:min(265px,60vw)}}

body{padding:0 44px 40px}.proposal-tool-header{margin-inline:-18px;margin-bottom:28px}.proposal-studio{text-transform:uppercase}
@media(max-width:650px){body{padding:0 26px 36px}.proposal-tool-header{margin-inline:-8px}}

@media(max-width:650px){.proposal-tool-header>.proposal-header-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}.proposal-tool-header .proposal-brand{width:100%;max-width:145px;min-width:0}.proposal-tool-header .proposal-studio{font-size:12px;letter-spacing:1px;margin:0}.proposal-back{grid-column:1/-1;justify-self:end}}

/* Match Bridge wordmark text nodes, font metrics and action alignment exactly. */
.proposal-tool-header>.proposal-header-row{gap:22px;padding-right:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.proposal-tool-header .proposal-studio{line-height:1.45}
.proposal-header-row>.bridge-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.proposal-tool-header #bridgeFullscreenToggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:26px;min-height:26px;padding:4px;margin:0;background:transparent!important;border:0!important;box-shadow:none!important;color:#9000ff!important;cursor:pointer}
#bridgeFullscreenToggle svg{width:16px;height:16px;flex:none}
.proposal-tool-header{margin-bottom:0}
.proposal-tool-header>.proposal-header-feedback{position:relative;display:block;height:28px;min-height:28px}
#bridgeLoadingSpeed{position:absolute;top:0;right:18px;margin-top:2px;font:400 9px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:#9000ff;text-align:right}
@media(max-width:1050px){.proposal-tool-header>.proposal-header-row{gap:12px}}
@media(max-width:650px){.proposal-tool-header>.proposal-header-row{gap:6px 8px}.proposal-header-row>.bridge-header-actions{grid-column:1/-1;width:100%;justify-content:flex-end;margin:0}.proposal-tool-header #themeToggle,.proposal-tool-header #themeToggle svg{width:26px;height:30px;min-height:30px}#bridgeLoadingSpeed{right:8px;font-size:10px;top:4px}}
.bridge-header-row .bridge-fullscreen-toggle{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;cursor:pointer}
.bridge-fullscreen-toggle svg{width:14px;height:14px;flex:none}
.bridge-fullscreen-toggle:focus-visible{outline:2px solid #ac7717;outline-offset:3px}
.bridge-fullscreen-toggle[aria-pressed=true]{background:#fff7e8;border-color:#c58c19}
.bridge-fullscreen-message{position:fixed;right:26px;top:calc(var(--bridge-header-height,76px) + 8px);z-index:10001;max-width:320px;padding:10px 14px;border:1px solid #d5dae4;border-radius:8px;background:#fff;color:#191c21;font:13px/1.5 system-ui;box-shadow:0 4px 18px #0002}
html[data-bridge-theme=dark] .bridge-fullscreen-message{background:#202020;color:#bdbdbd;border-color:#555}
.bridge-fullscreen-message:empty{display:none}
html.bridge-is-fullscreen{--bridge-max-width:100vw}
@media print{.bridge-fullscreen-toggle,.bridge-fullscreen-message{display:none!important}}

.proposal-signin{max-width:420px!important;margin:40px auto!important;padding:24px!important;border:1px solid var(--bridge-theme-line);border-radius:12px;background:var(--bridge-theme-card)}.proposal-signin h1{font-size:24px}.proposal-signin label{display:grid;gap:5px;margin:14px 0}.proposal-signin input{width:100%;box-sizing:border-box}.proposal-signin button{margin:4px 6px 4px 0}

/* A single fitted page keeps editing and page navigation together. */
#proposalPanel>.proposal-actions{position:sticky;top:82px;z-index:9;background:var(--bridge-theme-bg,#0b0b0b);flex-wrap:wrap;padding-top:8px}
.text-proposal-pager{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#proposalText .text-proposal-preview{background:var(--bridge-theme-card,#202020)}
@media(max-width:650px){#proposalPanel>.proposal-actions{top:116px}.text-proposal-pager{flex-basis:100%}}

/* Bridge 3.0 shell: identical outer geometry and workspace surfaces. */
body{font:14px system-ui}
body>.proposal-tool-header{width:auto!important;max-width:none}
.proposal-header-row>.bridge-header-actions{gap:6px}
.proposal-tool-header .proposal-back{display:inline-flex;align-items:center;box-sizing:border-box;min-height:26px;font:600 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;padding:3px 9px}
.proposal-tool-header #bridgeFullscreenToggle{min-width:28px;border-radius:0!important;font:600 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;gap:6px;padding:3px 9px}
.proposal-tool-header>.proposal-header-feedback{height:29px;min-height:29px}
#bridgeLoadingSpeed{min-height:12px}
html[data-bridge-theme][data-bridge-theme] #proposalWorkspace{padding:22px 26px 26px;box-sizing:border-box;background:var(--bridge-theme-workspace)!important}
html[data-bridge-theme][data-bridge-theme] #proposalPanel{padding:0;border:0;background:transparent!important;box-shadow:none;border-radius:0}
html[data-bridge-theme][data-bridge-theme] #proposalPanel>.proposal-actions{margin:0 0 8px;padding:0 0 12px;background:var(--bridge-theme-workspace);gap:8px 12px}
#proposalPanel>.proposal-actions :is(button,select,input){font-family:system-ui}
html[data-bridge-theme][data-bridge-theme] #proposalText .text-proposal-preview{background:transparent}
html[data-bridge-theme=light][data-bridge-theme=light] #proposalWorkspace,html[data-bridge-theme=light][data-bridge-theme=light] #proposalPanel>.proposal-actions{background:#f7f7f7!important}
@media(max-width:650px){html[data-bridge-theme][data-bridge-theme] #proposalWorkspace{padding:16px 14px 20px}.proposal-tool-header>.proposal-header-row{padding:4px 8px;align-items:start}.proposal-header-row>.bridge-header-actions{gap:4px}.proposal-tool-header>.proposal-header-feedback{height:24px;min-height:24px}}
/* Related controls share one titled, softly surfaced window. */
html[data-bridge-theme][data-bridge-theme] #proposalPanel>.proposal-control-panel{padding:14px 16px 16px;margin:0 0 14px;border:1px solid var(--bridge-theme-line);border-radius:12px;background:var(--bridge-theme-card)!important;align-items:flex-end;gap:12px 20px}
#proposalPanel .control-panel-title{flex-basis:100%;font:600 14px/1.4 system-ui;color:var(--bridge-theme-ink)}
#proposalPanel .proposal-project-group{display:flex;align-items:flex-end;gap:6px;flex-wrap:wrap}
#proposalPanel .text-proposal-actions{display:flex;align-items:flex-end;gap:20px;flex-wrap:wrap}
#proposalPanel .proposal-control-group{display:flex;flex-direction:column;gap:4px}
#proposalPanel .proposal-control-group h4{margin:0;font:500 11px/1.4 system-ui;color:var(--bridge-theme-muted)}
#proposalPanel .proposal-control-row,#proposalPanel .proposal-page-buttons,#proposalPanel .text-proposal-pager{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
#proposalPanel .proposal-page-buttons button{min-width:30px;padding:5px}
html[data-bridge-theme][data-bridge-theme] #proposalPanel .proposal-page-buttons button[aria-current=page]{color:#b98aff!important;border-color:#9f5fff!important;background:#30213f!important}
html[data-bridge-theme=light][data-bridge-theme=light] #proposalPanel .proposal-page-buttons button[aria-current=page]{color:#7300ff!important;border-color:#7300ff!important;background:#eee5ff!important}
#proposalPanel .text-proposal-actions .proposal-control-group:nth-child(2) button:first-of-type{color:var(--bridge-theme-green);border-color:var(--bridge-theme-green)}
@media(max-width:650px){#proposalPanel .proposal-project-group{width:100%}#proposalPanel .proposal-project-group label{flex:1}#proposalProject{width:100%;max-width:100%}#proposalPanel .text-proposal-actions{gap:12px}html[data-bridge-theme][data-bridge-theme] #proposalPanel>.proposal-control-panel{padding:12px;gap:12px}}
#proposalText .proposal-format-bar{display:flex;flex-wrap:wrap;gap:5px;padding:10px;margin:10px 0;border:1px solid var(--bridge-theme-line);border-radius:8px;background:var(--bridge-theme-card)}
#proposalText .proposal-format-bar :is(button,select){font:500 12px/1.4 system-ui;padding:5px 8px;min-height:30px;margin:0}

#proposalPanel .proposal-project-group label{margin:0;font:500 11px/1.4 system-ui;color:var(--bridge-theme-muted)}

/* Financial proposals use the same section and action hierarchy throughout. */
#proposalEditor>.proposal-settings-group{margin:14px 0;border:1px solid var(--bridge-theme-line);border-radius:8px;background:var(--bridge-theme-card)}
#proposalEditor>.proposal-settings-group>summary{display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer;list-style:none;font:600 15px/1.4 system-ui;color:var(--bridge-theme-ink)}
#proposalEditor>.proposal-settings-group>summary::-webkit-details-marker{display:none}
#proposalEditor>.proposal-settings-group>summary::before{content:'›';font:400 24px/1 system-ui;width:14px;transform-origin:center;flex:none}
#proposalEditor>.proposal-settings-group[open]>summary::before{transform:rotate(90deg)}
#proposalEditor>.proposal-settings-group>summary small{font:400 12px/1.4 system-ui;color:var(--bridge-theme-muted);margin-left:auto}
#proposalEditor .proposal-group-body{padding:0 16px 16px;min-width:0}
#proposalEditor .proposal-group-body label:has(>input[type=checkbox]){display:flex;align-items:center;gap:10px;justify-content:flex-start;font-size:13px;margin:12px 0}
#proposalEditor .proposal-group-body input[type=checkbox]{appearance:auto;width:17px;height:17px;min-width:17px;margin:0;order:-1;accent-color:#947b4a}
#proposalEditor .proposal-group-body .hint{font:400 12px/1.5 system-ui;color:var(--bridge-theme-muted)}
#proposalEditor .proposal-table tfoot :is(th,td){border-top:1px solid var(--bridge-theme-line);font-weight:600;white-space:nowrap}
html[data-bridge-theme][data-bridge-theme] #proposalEditor .proposal-table tfoot :is(th,td){font:600 13px/1.5 system-ui!important;color:var(--bridge-theme-ink)!important;background:transparent!important;padding:8px 7px}
html[data-bridge-theme][data-bridge-theme] #proposalPanel:has(#proposalEditor:not([hidden]))>.proposal-control-panel{position:static}
#proposalEditor #proposalRoles td:nth-child(7),#proposalEditor #proposalRoles td:nth-child(8){font-variant-numeric:tabular-nums;white-space:nowrap}
#proposalEditor .proposal-cover-layout{container-type:inline-size;border-top:1px solid var(--bridge-theme-line);padding-top:10px;margin-top:10px}
#proposalEditor .proposal-cover-heading{display:flex;align-items:baseline;gap:8px 16px;flex-wrap:wrap;margin-bottom:10px}
#proposalEditor .proposal-cover-heading .hint{margin:0}
#proposalEditor .proposal-cover-workspace{display:grid;grid-template-columns:minmax(440px,1.45fr) minmax(280px,1fr);gap:24px;align-items:start;max-width:1104px}
#proposalEditor .proposal-cover-settings{min-width:0}
#proposalEditor .proposal-cover-rows{display:grid;gap:0;margin:0 0 8px}
#proposalEditor :is(.proposal-cover-row,.proposal-cover-columns){display:grid;grid-template-columns:100px minmax(100px,1fr) minmax(100px,1fr) 60px;gap:12px;align-items:center}
#proposalEditor .proposal-cover-columns{padding:0 0 5px;font:400 11px/1.4 system-ui;color:var(--bridge-theme-muted)}
#proposalEditor .proposal-cover-row{padding:5px 0;border-bottom:1px solid var(--bridge-theme-line);min-height:40px}
#proposalEditor .proposal-cover-row>strong{font:500 12px/1.4 system-ui}
#proposalEditor .proposal-cover-pair{display:flex;gap:6px;align-items:center;min-width:0}
#proposalEditor .proposal-cover-pair input[type=range]{width:100%;min-width:30px;accent-color:#947b4a;padding:0;min-height:20px;margin:0}
#proposalEditor .proposal-cover-pair input[type=number]{box-sizing:border-box;flex:none;width:52px;min-width:52px;font:400 12px/1.4 system-ui;padding:3px 4px;min-height:28px;margin:0}
#proposalEditor .proposal-cover-order{display:flex;gap:4px}
#proposalEditor .proposal-cover-order button{min-width:28px;min-height:28px;padding:3px 6px;margin:0;font:500 13px/1.4 system-ui}
#proposalEditor .proposal-cover-reset{font:500 12px/1.4 system-ui;padding:4px 8px;min-height:28px}
#proposalEditor .proposal-cover-preview-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
#proposalEditor .proposal-cover-preview-heading strong{font:500 12px/1.4 system-ui}
#proposalEditor .proposal-cover-live{min-width:0;width:100%;max-width:440px;justify-self:start}
#proposalEditor .proposal-cover-viewport{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;background:#fff;box-shadow:0 0 0 1px var(--bridge-theme-line)}
#proposalEditor .proposal-cover-viewport iframe{position:absolute;inset:0;display:block;width:1408px;height:792px;border:0;transform-origin:top left;margin:0;background:#fff;max-width:none}
#proposalEditor .proposal-cover-live>p{margin:6px 0 0;min-height:1.5em}
@container (max-width:780px){#proposalEditor .proposal-cover-workspace{grid-template-columns:minmax(0,1fr);gap:14px}#proposalEditor .proposal-cover-live{justify-self:center;max-width:440px}}
@container (max-width:470px){#proposalEditor .proposal-cover-columns{display:none}#proposalEditor .proposal-cover-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 12px;padding:8px 0}#proposalEditor .proposal-cover-row>strong{grid-column:1}#proposalEditor .proposal-cover-order{grid-row:1;grid-column:2;justify-content:flex-end}#proposalEditor .proposal-cover-field:before{content:attr(data-label);display:block;font:400 11px/1.4 system-ui;color:var(--bridge-theme-muted);margin-bottom:3px}}
#proposalEditor .proposal-export-area{position:sticky;bottom:0;z-index:5;padding:12px 16px;border:1px solid var(--bridge-theme-line);border-radius:8px;background:var(--bridge-theme-card);box-shadow:0 -4px 16px #0001;margin:18px 0}
#proposalEditor .proposal-export-area .proposal-actions{margin:8px 0}
#proposalEditor #proposalSaveStatus{margin:4px 0 0;min-height:1.4em;font:500 12px/1.4 system-ui}
html[data-bridge-theme][data-bridge-theme] #proposalSave{display:inline-block!important}
#proposalEditor .proposal-preview-pages{padding:12px;background:var(--bridge-theme-card);border:1px solid var(--bridge-theme-line);border-radius:8px}
#proposalEditor .proposal-preview-nav{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 12px}
#proposalEditor .proposal-preview-nav label{display:flex;align-items:center;gap:8px}
#proposalEditor .proposal-preview-nav :is(button,select){min-height:32px;font-size:13px;padding:5px 10px}
#proposalEditor .proposal-preview-pages iframe{display:block;box-sizing:border-box;width:100%;border:1px solid var(--bridge-theme-line);background:#363636}
@media(max-width:750px){#proposalEditor>.proposal-settings-group>summary{flex-wrap:wrap;gap:8px}#proposalEditor>.proposal-settings-group>summary small{flex-basis:100%;margin-left:22px}#proposalEditor .proposal-preview-nav{gap:7px;flex-wrap:wrap}#proposalEditor .proposal-export-area{position:static}}
/* Bridge action colors retain meaning across tools. */
#proposalPanel{--proposal-purple:#b98aff;--proposal-gold:#ffb000;--proposal-blue:#25a5ff;--proposal-green:#51cf66}
html[data-bridge-theme=light] #proposalPanel{--proposal-purple:#7300ff;--proposal-gold:#946000;--proposal-blue:#006fe8;--proposal-green:#008013}
#proposalPanel [data-tone=gold]{--action-color:var(--proposal-gold)}
#proposalPanel [data-tone=purple]{--action-color:var(--proposal-purple)}
#proposalPanel [data-tone=green]{--action-color:var(--proposal-green)}
#proposalPanel [data-tone=blue],#proposalReload{--action-color:var(--proposal-blue)}
html[data-bridge-theme][data-bridge-theme] #proposalPanel :is([data-tone=gold],[data-tone=purple],[data-tone=green],[data-tone=blue],#proposalReload){color:var(--action-color)!important;border-color:color-mix(in srgb,var(--action-color) 65%,transparent)!important;background:color-mix(in srgb,var(--action-color) 7%,var(--bridge-theme-card))!important}
html[data-bridge-theme][data-bridge-theme] #proposalProject.proposal-project-colored{color:var(--project-dark)!important;border-color:var(--project-dark)!important;background:color-mix(in srgb,var(--project-dark) 8%,var(--bridge-theme-card))!important}
#proposalProject option.proposal-project-colored{color:var(--project-dark);background:var(--bridge-theme-card)}
html[data-bridge-theme=light][data-bridge-theme=light] #proposalProject.proposal-project-colored,html[data-bridge-theme=light] #proposalProject option.proposal-project-colored{color:var(--project-light)!important;border-color:var(--project-light)!important}
#proposalText .proposal-color-picker{position:relative;min-width:125px}
#proposalText .proposal-color-picker summary{display:flex;align-items:center;gap:7px;cursor:pointer;list-style:none;border:1px solid var(--bridge-theme-line);border-radius:5px;padding:5px 8px;min-height:30px;box-sizing:border-box;font:500 12px/1.4 system-ui;color:var(--bridge-theme-ink);background:var(--bridge-theme-card)}
#proposalText .proposal-color-picker summary::-webkit-details-marker{display:none}
#proposalText .proposal-color-picker summary:after{content:'⌄';margin-left:auto}
#proposalText .proposal-color-picker[open] summary{border-color:var(--proposal-purple)}
#proposalText .proposal-color-options{position:absolute;z-index:20;top:calc(100% + 5px);left:0;min-width:160px;padding:5px;display:grid;gap:3px;border:1px solid var(--bridge-theme-line);border-radius:8px;background:var(--bridge-theme-card);box-shadow:0 5px 18px #0004}
html[data-bridge-theme][data-bridge-theme] #proposalText .proposal-color-option{display:flex;align-items:center;gap:9px;width:100%;text-align:left;color:var(--preset-color)!important;background:var(--bridge-theme-card)!important;border:1px solid transparent!important}
html[data-bridge-theme][data-bridge-theme] #proposalText .proposal-color-option[data-neutral]{color:var(--bridge-theme-ink)!important}
html[data-bridge-theme][data-bridge-theme] #proposalText .proposal-color-option:hover{border-color:var(--preset-color)!important}
#proposalText .proposal-color-swatch{display:inline-block;flex:none;width:14px;height:14px;border-radius:3px;border:1px solid #8888;background:linear-gradient(135deg,#f09800 0 50%,#7300ff 50%)}
#proposalText .proposal-color-option .proposal-color-swatch{background-image:none}
/* Formatting belongs beside the editable page, not among document actions. */
#proposalText:has(.proposal-format-bar:not([hidden])){display:grid;grid-template-columns:230px minmax(0,1fr);column-gap:18px;align-items:start}
#proposalText>.text-proposal-toolbar,#proposalText>p{grid-column:1/-1}
#proposalText .proposal-format-bar{grid-column:1;display:flex;flex-direction:column;flex-wrap:nowrap;gap:14px;margin:0;padding:12px;overflow:auto;box-sizing:border-box;min-width:0}
#proposalText:has(.proposal-format-bar:not([hidden])) .text-proposal-preview{grid-column:2;min-width:0}
#proposalText .proposal-format-bar>h3{font:600 14px/1.4 system-ui;margin:0;color:var(--bridge-theme-ink)}
#proposalText .format-section{display:grid;gap:6px;min-width:0}
#proposalText .format-section h4{margin:0;font:600 11px/1.4 system-ui;text-transform:uppercase;letter-spacing:.5px;color:var(--proposal-purple)}
#proposalText .format-section[data-format-tone=gold] h4{color:var(--proposal-gold)}
#proposalText .format-section[data-format-tone=blue] h4{color:var(--proposal-blue)}
#proposalText .format-section-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px;min-width:0}
#proposalText .format-section-controls>select,#proposalText .proposal-color-picker{width:100%;min-width:0}
#proposalText .proposal-color-options{position:static;min-width:0;margin-top:5px;box-shadow:none}
html[data-bridge-theme=dark] #proposalText .proposal-color-option:not([data-neutral]){color:color-mix(in srgb,var(--preset-color) 72%,white)!important}
html[data-bridge-theme=light] #proposalText .proposal-color-option:not([data-neutral]){color:color-mix(in srgb,var(--preset-color) 65%,black)!important}
@media(max-width:850px){#proposalText:has(.proposal-format-bar:not([hidden])){display:block}#proposalText .proposal-format-bar{margin:0 0 14px;max-height:300px!important}.format-section-controls{align-items:center}}

/* The formatting tools and page form one centered, closely spaced work area. */
#proposalText:has(.proposal-format-bar:not([hidden])){display:block}
#proposalText .proposal-editing-stage{display:flex;justify-content:center;align-items:flex-start;gap:24px;min-width:0}
#proposalText .proposal-format-bar{flex:0 0 230px;width:230px;margin-top:40px}
#proposalText .proposal-page-column{flex:none;min-width:0;max-width:100%}
#proposalText .text-proposal-pager{display:flex;align-items:center;justify-content:center;gap:8px;min-height:32px;margin:0 0 8px}
#proposalText .proposal-page-buttons{display:flex;gap:5px;flex-wrap:wrap;justify-content:center}
html[data-bridge-theme][data-bridge-theme] #proposalText .text-proposal-pager>button{font-size:20px;line-height:1;min-width:62px;height:30px;min-height:30px;padding:3px 18px;box-sizing:border-box;color:var(--proposal-purple)!important;border-color:var(--proposal-purple)!important}
#proposalText .text-proposal-pager>button:disabled{opacity:.35}
@media(max-width:850px){#proposalText .proposal-editing-stage{flex-direction:column;align-items:center}#proposalText .proposal-format-bar{flex:auto;width:100%;margin:0;max-height:300px!important}}

#proposalText .proposal-color-swatch[data-no-highlight]{background:linear-gradient(135deg,transparent 44%,#dd5555 45% 55%,transparent 56%)!important}

#proposalText .proposal-font-size{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:5px;width:100%;white-space:nowrap;font:500 11px/1.4 system-ui;margin:0;color:var(--proposal-purple)}
#proposalText .proposal-font-size input{flex:0 0 52px;width:52px;min-width:0;font:500 12px/1.4 system-ui;padding:5px 4px;box-sizing:border-box}
#proposalText .proposal-font-size button{flex:0 0 auto;padding:5px 6px;margin:0}
#proposalText .proposal-format-bar>h3,#proposalText .format-section h4{text-align:right}

#proposalText .proposal-layout-warning{color:#d97c47;border:1px solid #d97c47;border-radius:8px;padding:10px 12px;margin:8px 0;font-size:12px;line-height:1.5}

/* Consistent flat shield, matching Bridge and Bidding. */
#themeToggle .shield-outline{stroke-width:2.2px;vector-effect:none}
#themeToggle svg{filter:none!important}#themeToggle .shield-fill{display:none!important}

/* Consistent flat shield, matching Bridge and Bidding. */
#themeToggle .shield-outline{stroke-width:2.2px;vector-effect:none}
#themeToggle svg{filter:none!important}#themeToggle .shield-fill{display:none!important}

/* Aligned mobile masthead across all three workspaces. */
@media(max-width:650px){
 html body{padding:0 20px 28px!important}
 .proposal-tool-header{--mobile-logo-width:145px;margin:0 0 14px!important;padding:0!important;width:100%}
 .proposal-tool-header .proposal-header-row{display:grid;grid-template-columns:var(--mobile-logo-width) minmax(0,1fr);grid-template-rows:44px;gap:0 12px;min-height:44px;padding:0!important;align-items:center}
 .proposal-tool-header .proposal-brand{width:var(--mobile-logo-width)!important;height:calc(var(--mobile-logo-width) * .1209)!important;max-width:none!important;object-fit:contain;margin:0;grid-column:1;grid-row:1}
 .proposal-tool-header .proposal-studio{grid-column:2;grid-row:1;justify-self:start;align-self:center;gap:4px;margin:0;padding:0;font-size:12px;letter-spacing:1px}
 .proposal-tool-header #themeToggle,.proposal-tool-header #themeToggle svg{width:26px;height:30px;min-height:30px}
 .proposal-tool-header .bridge-header-actions{display:none!important}
 .proposal-tool-header .proposal-header-line{margin-inline:0!important}
}

@media(max-width:380px){.proposal-tool-header{--mobile-logo-width:100px}}

/* Match the Proposals app icon in both themes. */
#themeToggle .shield-outline{stroke:#9F5FFF}
#themeToggle .shield-fill{fill:#9F5FFF}

#proposalEditor .proposal-cover-zoom{display:flex;align-items:center;gap:6px;margin:0 0 6px}
#proposalEditor .proposal-cover-zoom button{min-height:26px;padding:2px 8px;font-size:12px}
#proposalEditor .proposal-cover-zoom output{min-width:42px;text-align:center;font-size:12px;color:var(--bridge-theme-muted)}
#proposalEditor .proposal-cover-viewport{overflow:auto}
#proposalEditor .proposal-cover-canvas{position:relative;min-width:100%;min-height:100%}

#proposalEditor :is(.proposal-cover-row,.proposal-cover-columns){grid-template-columns:130px minmax(100px,1fr) minmax(100px,1fr) 92px}
#proposalEditor .proposal-cover-row>select{min-width:0;width:100%;font-size:12px;min-height:28px;padding:3px}
#proposalEditor .proposal-cover-add{font-size:12px;min-height:28px;padding:4px 8px;margin-right:8px}
@container (max-width:470px){#proposalEditor .proposal-cover-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#proposalEditor .proposal-cover-row>select{grid-column:1}}

#proposalEditor .proposal-cover-custom-text{grid-column:1/-1;width:100%;min-height:48px;box-sizing:border-box;resize:vertical;font-size:12px;padding:6px 8px}

#proposalEditor .proposal-cover-text-format{grid-column:1/-1;display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding-bottom:6px}
#proposalEditor .proposal-cover-text-colors{display:flex;gap:4px;flex-wrap:wrap}
#proposalEditor .proposal-cover-text-format button{display:inline-flex;align-items:center;gap:5px;font-size:11px;padding:3px 6px;min-height:26px}
#proposalEditor .proposal-cover-text-format button[aria-pressed=true]{border-color:#947B4A;background:color-mix(in srgb,#947B4A 25%,var(--bridge-theme-card,#202020))}
#proposalEditor .proposal-cover-text-swatch{display:inline-block;width:11px;height:11px;border:1px solid #888;border-radius:3px}

#proposalEditor .proposal-cover-font{width:145px;min-height:26px;padding:3px 6px;font-size:12px}
