:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --surface-2: #f8f7f3;
  --ink: #1f2328;
  --muted: #687078;
  --line: #dedbd2;
  --line-strong: #c8c3b8;
  --black: #151515;
  --green: #668c4a;
  --green-soft: #dfead6;
  --gold: #c59a38;
  --gold-soft: #f2dfaa;
  --rose: #a83c62;
  --rose-soft: #f4d9e2;
  --blue: #426b9f;
  --blue-soft: #dce7f4;
  --teal: #347f7a;
  --teal-soft: #d9eeeb;
  --shadow: 0 18px 42px rgba(38, 35, 28, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
  width: 100%;
  max-width: 100%;
}

html {
  scrollbar-gutter: auto;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 681px) {
  html {
    scrollbar-gutter: stable;
  }

  body {
    overflow-y: scroll;
  }
}

body:not([data-auth="signed-in"]) {
  overflow: hidden;
  background: #f7f5ef;
}

body:not([data-auth="signed-in"]) .app-shell {
  display: none;
}

body[data-auth="signed-in"]:not([data-auth-mode="recovery"]) .auth-modal {
  display: none !important;
}

body[data-auth-mode="recovery"] .auth-modal {
  display: grid !important;
}

body[data-role="artist"] [data-internal-only] {
  display: none !important;
}

body[data-role="internal"] .artist-preview-only {
  display: none !important;
}

body[data-profile-role="artist"] #roleSelect,
body[data-profile-role="artist"] .artist-preview-only {
  display: none !important;
}

body[data-role="artist"] .view-subtitle,
body[data-role="artist"] .save-state,
body[data-role="artist"] #resetDataBtn,
body[data-role="artist"] #openAuthBtn,
body[data-role="artist"] [data-admin-dashboard] {
  display: none !important;
}

body[data-role="artist"] .nav-list {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  gap: 6px;
  overflow: visible;
  padding: 0;
}

body[data-role="artist"] .nav-list .nav-item:not([data-artist-nav]) {
  display: none !important;
}

body[data-role="artist"] .nav-list .nav-item {
  width: auto;
  white-space: nowrap;
}

body[data-role="artist"] .drawer-actions {
  display: none !important;
}

body[data-role="artist"] .drawer-save-button,
body[data-role="artist"] .drawer-edit-button {
  display: none !important;
}

body[data-role="artist"] .app-shell {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
}

body[data-role="artist"] .sidebar {
  height: auto;
  max-height: none;
}

body[data-role="artist"] .workspace {
  padding-top: 18px;
}

body[data-profile-role="artist"] .sidebar,
body[data-profile-role="internal"][data-role="artist"] .sidebar {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: auto;
  max-height: none;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: #191919;
  color: #f8f7f3;
  padding: 14px 22px;
}

body[data-profile-role="artist"] .brand-block,
body[data-profile-role="internal"][data-role="artist"] .brand-block {
  display: grid !important;
  padding: 0;
}

body[data-profile-role="artist"] .brand-logo-frame,
body[data-profile-role="internal"][data-role="artist"] .brand-logo-frame {
  width: 116px;
}

body[data-profile-role="artist"] .account-panel,
body[data-profile-role="internal"][data-role="artist"] .account-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  border-top: 0;
  padding: 0;
}

body[data-profile-role="artist"] .account-panel .auth-status,
body[data-profile-role="internal"][data-role="artist"] .account-panel .auth-status {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

body[data-profile-role="artist"] .account-panel .account-meta-row,
body[data-profile-role="artist"] .account-panel .account-button-row,
body[data-profile-role="internal"][data-role="artist"] .account-panel .account-meta-row,
body[data-profile-role="internal"][data-role="artist"] .account-panel .account-button-row {
  width: auto;
}

body[data-profile-role="artist"] .account-panel .secondary-button,
body[data-profile-role="internal"][data-role="artist"] .account-panel .secondary-button {
  width: auto;
  min-height: 31px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

body[data-role="artist"] .controls-bar {
  grid-template-columns: minmax(260px, 1fr);
}

body[data-role="artist"] .table-scroll {
  max-height: calc(100vh - 210px);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-width: 0;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: visible;
  border-right: 1px solid var(--line);
  background: #191919;
  color: #f8f7f3;
  padding: 22px 16px;
}

.brand-block {
  flex: 0 0 auto;
  display: grid;
  justify-items: start;
  padding: 6px 6px 16px;
  text-align: left;
}

.brand-logo-frame {
  display: grid;
  place-items: center;
  width: 132px;
  height: auto;
  padding: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
  opacity: 0.9;
}

.brand-title {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  flex: 0 1 auto;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.24) transparent;
}

.nav-list::-webkit-scrollbar {
  width: 6px;
}

.nav-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px 10px;
  text-align: left;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 800;
}

.nav-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 24px 28px 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.topbar > div:first-child {
  min-width: 0;
}

.global-quick-search {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: -12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
  z-index: 20;
}

.global-quick-search[hidden] {
  display: none;
}

.global-search-field {
  position: relative;
  display: block;
}

.global-search-field .search-icon {
  top: 50%;
}

.global-search-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px 8px 38px;
  outline: none;
  font-weight: 600;
}

.sidebar .global-search-field input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar .global-search-field input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.sidebar .global-search-field .search-icon {
  color: rgba(255, 255, 255, 0.62);
}

.sidebar .global-search-field input:focus {
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.global-search-field input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.08);
}

.global-search-field input:disabled {
  cursor: wait;
  opacity: 0.68;
}

.global-search-results {
  position: absolute;
  top: 13px;
  right: auto;
  left: calc(100% + 18px);
  width: min(560px, calc(100vw - 284px));
  max-height: min(560px, calc(100vh - 140px));
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(20, 18, 15, 0.2);
  padding: 6px;
}

.global-search-results[hidden] {
  display: none;
}

.global-search-group-label {
  color: var(--muted);
  padding: 8px 10px 5px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.global-search-result:hover,
.global-search-result.active {
  background: var(--surface-2);
}

.global-result-type,
.global-result-status {
  width: fit-content;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-result-status.archived {
  background: #ece8e1;
  color: #665f55;
}

.global-result-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.global-result-copy strong,
.global-result-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-result-copy strong {
  font-size: 12px;
}

.global-result-copy span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.global-search-empty {
  color: var(--muted);
  padding: 18px 12px;
  font-size: 12px;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.15;
}

.view-subtitle,
.drawer-subtitle {
  color: var(--muted);
  margin-top: 4px;
}

.topbar-actions,
.button-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-panel {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 6px 0;
}

.account-control-row,
.account-meta-row,
.account-button-row {
  display: flex;
  min-width: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.account-control-row {
  align-items: stretch;
}

.account-meta-row {
  display: grid;
  gap: 1px;
  align-items: start;
  line-height: 1.25;
}

.account-button-row {
  align-items: center;
  width: 100%;
  flex-wrap: nowrap;
}

.account-panel .role-select,
.account-panel .secondary-button {
  width: 100%;
}

.account-panel .icon-button {
  flex: 0 0 30px;
  width: 30px;
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.76);
}

.account-panel .icon-button svg {
  width: 15px;
  height: 15px;
}

.account-panel .save-state,
.account-panel .auth-status {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.62);
}

.account-panel .auth-status {
  color: rgba(255, 255, 255, 0.82);
}

.account-panel .role-select {
  min-height: 31px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.account-panel .role-select option {
  color: var(--ink);
}

.account-panel .secondary-button {
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.account-panel #signOutBtn,
.account-panel #openAuthBtn,
.account-panel .account-admin-button {
  flex: 0 1 auto;
  width: auto;
}

.account-panel .account-admin-button {
  padding-inline: 8px;
}

.account-panel .account-admin-button.active {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.button-cluster {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.controls-bar .button-cluster {
  justify-content: flex-start;
}

.save-state {
  color: var(--muted);
  font-size: 12px;
  transition: color 180ms ease;
}

.role-select {
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font-weight: 700;
}

.save-state.pulse {
  color: var(--green);
}

.auth-status {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-hidden {
  display: none !important;
}

.icon-button,
.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.icon-button {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
}

.secondary-button:hover,
.icon-button:hover {
  border-color: var(--black);
}

.danger-button {
  border-color: #b94a48;
  background: #fff7f6;
  color: #8d2725;
}

.danger-button:hover {
  border-color: #8d2725;
  background: #f8dfdc;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(112px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.metric {
  display: grid;
  grid-template-rows: minmax(62px, 1fr) auto;
  min-height: 96px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #050505;
  color: #ffffff;
  padding: 0;
  box-shadow: 0 8px 18px rgba(31, 28, 23, 0.16);
}

.metric span {
  order: 2;
  display: grid;
  place-items: center;
  min-height: 30px;
  background: #f2dfaa;
  color: #111111;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.12;
  padding: 5px 6px;
  text-align: center;
  text-transform: uppercase;
}

.metric strong {
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.tile-upcoming span,
.tile-booked span {
  background: #b7d99f;
}

.tile-inquiries span,
.tile-leads span {
  background: #e4ded4;
}

.controls-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(auto-fit, minmax(140px, 180px));
  column-gap: 10px;
  row-gap: 24px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 12px;
}

.search-wrap {
  min-width: 0;
  position: relative;
  display: grid;
  gap: 4px;
}

.search-scope-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.search-scope-hint[hidden] {
  display: none;
}

.search-scope-action {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.search-scope-action:hover {
  color: var(--accent);
}

.search-wrap input,
.controls-bar select,
.date-filter input,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

.search-wrap input {
  padding-left: 34px;
}

.date-filter {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-filter-unlabeled {
  gap: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 8px;
  padding-bottom: 2px;
}

.view-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 13px;
  font-weight: 700;
  white-space: nowrap;
}

.view-chip.active,
.view-chip:hover {
  border-color: var(--black);
  color: var(--black);
}

.table-panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 11px 14px;
}

.table-header > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.table-header span {
  color: var(--muted);
}

.table-add-lead {
  flex: 0 0 auto;
  color: #ffffff;
}

.table-add-lead span {
  color: #ffffff;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: calc(100vh - 350px);
  min-height: 360px;
  -webkit-overflow-scrolling: touch;
}

.users-scroll {
  max-height: calc(100vh - 260px);
}

.admin-tools-panel {
  margin-bottom: 12px;
}

.admin-workflow-panel {
  margin-bottom: 12px;
}

.admin-workflow-button {
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
}

.admin-workflow-preview {
  display: block;
  padding: 14px;
  background: #f7f6f2;
}

.admin-workflow-preview img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
}

.admin-calendar-sync-panel {
  margin-bottom: 12px;
}

.calendar-sync-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.calendar-sync-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calendar-sync-summary > div {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 12px;
  border-right: 1px solid var(--line);
}

.calendar-sync-summary > div:last-child {
  border-right: 0;
}

.calendar-sync-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.calendar-sync-summary strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.calendar-sync-summary small {
  color: var(--muted);
  font-size: 10px;
}

.calendar-sync-status {
  width: fit-content;
  border-radius: 999px;
  background: #eceae5;
  padding: 3px 8px;
  text-transform: uppercase;
}

.calendar-sync-status.is-queued,
.calendar-sync-status.is-running,
.calendar-sync-status.is-stale {
  background: #fff0b9;
  color: #765500;
}

.calendar-sync-status.is-succeeded,
.calendar-sync-status.is-unchanged {
  background: #dff1d5;
  color: #315f2d;
}

.calendar-sync-status.is-failed {
  background: #f9d8d3;
  color: #a52c23;
}

.calendar-sync-feed-link {
  display: inline-block;
  margin: 10px 0 10px 12px;
  font-size: 12px;
}

.calendar-sync-error {
  margin: 0 12px 12px;
  border-left: 3px solid #b42318;
  background: #fff1ef;
  color: #8d2119;
  padding: 9px 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .calendar-sync-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-sync-summary > div:nth-child(3) {
    border-right: 0;
  }

  .calendar-sync-summary > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .admin-workflow-panel .table-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-workflow-button {
    width: 100%;
  }

  .admin-workflow-preview {
    padding: 8px;
  }

  .admin-workflow-preview img {
    max-height: 240px;
  }

  .admin-calendar-sync-panel .table-header {
    align-items: stretch;
  }

  .calendar-sync-button {
    width: 100%;
  }

  .calendar-sync-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-sync-summary > div:nth-child(3) {
    border-right: 1px solid var(--line);
  }

  .calendar-sync-summary > div:nth-child(even) {
    border-right: 0;
  }

  .calendar-sync-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .calendar-sync-summary > div:last-child {
    grid-column: 1 / -1;
  }
}

.users-panel {
  margin-bottom: 12px;
}

.admin-tools-panel .button-cluster {
  grid-column: auto;
  justify-content: flex-end;
}

.audit-panel {
  margin-bottom: 12px;
}

.audit-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(120px, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.audit-filters input,
.audit-filters select {
  min-height: 38px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
}

.audit-filters label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-list {
  display: grid;
  gap: 0;
  max-height: 520px;
  overflow: auto;
}

.audit-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.audit-history-footer strong {
  color: var(--muted);
  font-size: 12px;
}

.audit-event {
  border-bottom: 1px solid var(--line);
}

.audit-event summary {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) auto minmax(160px, 1.2fr) minmax(120px, 0.8fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 11px 14px;
}

.audit-event summary > :nth-child(5) {
  grid-column: 1 / 3;
}

.audit-event summary > :nth-child(6) {
  grid-column: 3 / 5;
}

.audit-event summary:hover {
  background: #fbfaf6;
}

.audit-event summary em,
.audit-event summary span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audit-time {
  color: var(--ink) !important;
  font-weight: 700;
}

.audit-details {
  display: grid;
  gap: 6px;
  background: var(--surface-2);
  padding: 10px 14px 14px;
}

.audit-group-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.audit-group-section {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.audit-group-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.audit-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.audit-details.empty {
  color: var(--muted);
}

.audit-change {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 8px;
}

.audit-change span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-change-header {
  border: 0;
  background: transparent;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-change-header span {
  color: var(--muted);
}

.audit-action-insert {
  background: var(--green-soft);
  color: var(--green);
}

.audit-action-update {
  background: #fff0b8;
  color: #7a5a00;
}

.audit-action-delete {
  background: #f8d0c8;
  color: #b3261e;
}

.audit-action-save {
  background: #e4edf7;
  color: #1e3a5f;
}

@media (min-width: 1500px) {
  .metric-grid {
    grid-template-columns: repeat(9, minmax(108px, 1fr));
  }

  .metric-recent {
    grid-column: span 1;
  }

  .audit-filters {
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr)) repeat(2, minmax(140px, 0.8fr));
  }

  .audit-event summary {
    grid-template-columns: minmax(145px, 0.8fr) auto minmax(180px, 1.2fr) minmax(130px, 0.8fr) minmax(140px, 0.9fr) minmax(180px, 1fr);
  }

  .audit-event summary > :nth-child(5),
  .audit-event summary > :nth-child(6) {
    grid-column: auto;
  }
}

.artist-ops-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.artist-ops-list-panel,
.artist-ops-editor-panel,
.artist-ops-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.artist-ops-list-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.artist-ops-search {
  display: grid;
  gap: 6px;
}

.artist-ops-mobile-field {
  display: none;
}

.artist-ops-add {
  display: flex;
}

.artist-ops-mobile-field,
.artist-ops-pricing-row label {
  min-width: 0;
}

.artist-ops-search label,
.artist-ops-field span,
.artist-ops-mobile-field span,
.artist-ops-pricing-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-ops-search input,
.artist-ops-mobile-field select,
.artist-ops-field input,
.artist-ops-field select,
.artist-ops-field textarea,
.artist-ops-calculator-header input,
.artist-ops-calculator-header select,
.artist-ops-pricing-row input,
.artist-ops-gallery-row input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 10px;
}

.artist-ops-coded-select.choice-neutral {
  background: #eceff1;
  border-color: #d5d9dc;
}

.artist-ops-coded-select.choice-good {
  background: #dfead6;
  border-color: #c4d8b5;
}

.artist-ops-coded-select.choice-warning {
  background: #f4d9e2;
  border-color: #e7b9c8;
}

.artist-ops-coded-select.choice-alert {
  background: #b80f18;
  border-color: #9e1016;
  color: #ffffff;
  font-weight: 700;
}

.artist-ops-coded-select.choice-alert option {
  color: var(--ink);
}

.artist-ops-field input[type="date"] {
  height: 40px;
  align-self: start;
}

.artist-ops-field:has(input[type="date"]) {
  align-self: start;
  align-content: start;
}

.artist-ops-multi-select {
  display: grid;
  min-height: 126px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.artist-ops-multi-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  padding: 5px 10px;
  cursor: pointer;
}

.artist-ops-multi-option + .artist-ops-multi-option {
  border-top: 1px solid var(--line);
}

.artist-ops-multi-option:hover {
  background: var(--surface-2);
}

.artist-ops-multi-option:has(input:checked) {
  background: #e8efe1;
}

.artist-ops-field .artist-ops-multi-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--green);
}

.artist-ops-field .artist-ops-multi-option span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.artist-ops-add .secondary-button {
  min-height: 40px;
  width: 100%;
  padding: 0 13px;
}

.artist-ops-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.artist-ops-status-tabs .view-chip {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.artist-ops-list {
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.artist-ops-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.artist-ops-list-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.artist-ops-list-item strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.artist-ops-list-item.active {
  border-color: var(--black);
  background: #111111;
  color: #ffffff;
}

.artist-ops-list-item.active strong {
  color: rgba(255, 255, 255, 0.66);
}

.artist-ops-editor-panel {
  overflow: hidden;
}

.artist-ops-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px;
}

.artist-ops-editor-header div {
  display: grid;
  gap: 2px;
}

.artist-ops-editor-header .artist-ops-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.artist-ops-editor-header strong {
  font-size: 18px;
}

.artist-ops-editor-header span {
  color: var(--muted);
}

.artist-ops-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.artist-ops-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.artist-ops-section {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.artist-ops-section h3 {
  font-size: 14px;
  text-transform: uppercase;
}

.artist-ops-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.artist-ops-section-header strong {
  color: var(--green);
}

.artist-ops-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.artist-ops-field {
  display: grid;
  gap: 5px;
}

.artist-ops-read-field {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.artist-ops-read-section .artist-ops-field-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 18px;
}

.artist-ops-read-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-ops-read-field > div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 9px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.artist-ops-field-wide {
  grid-column: 1 / -1;
}

.artist-ops-read-field.artist-ops-field-wide {
  flex-basis: 100%;
  width: 100%;
}

.artist-ops-field-wide.artist-ops-read-field > div {
  display: block;
  width: 100%;
}

.artist-ops-field textarea {
  resize: vertical;
}

.artist-photo-edit-row {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.artist-photo-control-stack {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
}

.artist-photo-edit-row input[type="file"] {
  max-width: 270px;
}

.artist-photo-crop-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.artist-photo-crop-preview {
  width: 154px;
  height: 154px;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #eeeeee;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.artist-photo-crop-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--photo-x, 0), var(--photo-y, 0)) scale(var(--photo-zoom, 1.25));
  transform-origin: center;
}

.artist-photo-crop-controls {
  display: grid;
  gap: 8px;
}

.artist-photo-crop-controls label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-photo-crop-controls input {
  min-height: auto;
  padding: 0;
}

.artist-photo-crop-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.artist-photo-delete {
  justify-self: start;
}

.artist-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--artist-color, #434343) 52%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--artist-color, #434343) 18%, #ffffff);
  color: color-mix(in srgb, var(--artist-color, #434343) 76%, #111111);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.artist-avatar.large {
  width: 58px;
  height: 58px;
  font-size: 16px;
}

.artist-avatar.upload-preview {
  width: 54px;
  height: 54px;
}

.artist-avatar.list {
  width: 34px;
  height: 34px;
  font-size: 10px;
}

.artist-avatar.marked-delete {
  opacity: 0.42;
  filter: grayscale(1);
}

.artist-avatar img,
.artist-profile-photo-read {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-profile-photo-read {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.artist-ops-pricing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0 -2px;
}

.artist-ops-calculator-list {
  display: grid;
  gap: 14px;
}

.artist-ops-calculator-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 8px;
  align-items: end;
  margin-bottom: 12px;
}

.artist-ops-calculator-header label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.artist-ops-calculator-header label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artist-ops-calculator-footer {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.artist-ops-calculator-footer-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.artist-ops-delete-calculator {
  border-color: #d7a19d;
  color: #9f2f29;
}

.artist-ops-calculator-total {
  display: grid;
  min-width: 210px;
  gap: 3px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 12px 16px;
  text-align: right;
}

.artist-ops-calculator-total span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-ops-calculator-total strong {
  font-size: 21px;
  line-height: 1.1;
}

.artist-ops-pricing-table,
.artist-ops-gallery-list,
.artist-ops-login-list,
.artist-ops-login-read-list {
  display: grid;
  gap: 6px;
}

.artist-ops-pricing-head,
.artist-ops-pricing-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.8fr) minmax(110px, 1fr) minmax(95px, 0.9fr) minmax(86px, 0.8fr) 34px;
  gap: 6px;
  align-items: center;
}

.artist-ops-pricing-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-ops-pricing-row strong {
  color: var(--ink);
  text-align: right;
}

.artist-ops-pricing-row label {
  display: grid;
  gap: 4px;
}

.artist-ops-pricing-row label span {
  display: none;
}

.artist-ops-gallery-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(150px, 1fr) minmax(180px, 1.3fr) minmax(130px, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.artist-ops-login-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(120px, 0.9fr) minmax(150px, 1fr) minmax(170px, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.artist-ops-login-read-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 14px;
}

.artist-ops-login-read-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.artist-ops-login-read-field small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.artist-ops-login-read-field strong,
.artist-ops-login-read-field span,
.artist-ops-login-read-field code {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.artist-ops-login-read-field code {
  color: var(--ink);
  font-family: inherit;
  font-weight: 800;
}

.artist-ops-login-read-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid rgba(222, 219, 210, 0.7);
  padding-top: 10px;
}

.artist-ops-login-read-actions .secondary-button {
  min-height: 34px;
}

.password-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.password-toggle-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.artist-ops-gallery-read-list {
  display: grid;
  gap: 8px;
}

.artist-ops-gallery-read-row {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px;
}

.artist-ops-gallery-read-row p {
  color: var(--muted);
  font-size: 12px;
}

.artist-color-input-row {
  display: grid;
  grid-template-columns: 48px 156px;
  gap: 8px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
}

.artist-color-input-row input[type="color"] {
  height: 40px;
  padding: 3px;
}

.artist-color-input-row input[name="artistColorHex"] {
  max-width: 156px;
}

.artist-color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid color-mix(in srgb, var(--artist-color) 55%, #000000);
  border-radius: 999px;
  background: var(--artist-color);
  vertical-align: middle;
}

.artist-ops-choice {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.artist-ops-choice.choice-neutral {
  background: #eceff1;
  color: #41474d;
}

.artist-ops-choice.choice-good {
  background: #dfead6;
  color: #315720;
}

.artist-ops-choice.choice-warning {
  background: #f4d9e2;
  color: #7b344b;
}

.artist-ops-choice.choice-alert {
  background: #b80f18;
  color: #ffffff;
}

.muted-icon-button {
  min-height: 34px;
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

@media (max-width: 1200px) {
  .artist-ops-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-list-panel {
    position: static;
    padding: 10px;
  }

  .artist-ops-mobile-field {
    display: grid;
    gap: 6px;
  }

  .artist-ops-search,
  .artist-ops-list {
    display: none;
  }

  .artist-ops-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-ops-pricing-head {
    display: none;
  }

  .artist-ops-pricing-row,
  .artist-ops-gallery-row,
  .artist-ops-login-row {
    grid-template-columns: minmax(0, 1.5fr) minmax(130px, 0.8fr) minmax(120px, 0.8fr) auto 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px;
    background: var(--surface-2);
  }

  .artist-ops-login-read-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-ops-pricing-row label span {
    display: block;
  }

  .artist-ops-pricing-row strong {
    align-self: end;
    min-height: 38px;
    display: grid;
    place-items: center end;
    padding: 0 4px;
  }
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  text-transform: uppercase;
}

.table-sort-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
  font-weight: 900;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button.active {
  color: #ffffff;
}

.sort-indicator {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.82);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 5px;
}

td {
  max-width: 220px;
  color: #252525;
}

th:first-child,
td:first-child {
  min-width: 116px;
  white-space: nowrap;
}

.artist-cell {
  max-width: 220px;
}

.assignment-status-cell {
  min-width: 220px;
  max-width: 320px;
}

.users-table select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 7px 9px;
}

.user-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
}

.user-actions button {
  min-height: 34px;
  white-space: nowrap;
}

.user-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.cell-muted {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fbfaf6;
}

tbody tr.is-booked {
  background: color-mix(in srgb, var(--green-soft) 54%, #ffffff);
}

tbody tr.is-booked:hover {
  background: color-mix(in srgb, var(--green-soft) 72%, #ffffff);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-open {
  background: var(--green-soft);
  color: #315720;
}

.status-under-contract,
.outcome-pending {
  background: var(--gold-soft);
  color: #6c4f0f;
}

.status-closed,
.status-muted {
  background: #ece9e2;
  color: #68645d;
}

.outcome-booked {
  background: var(--green-soft);
  color: #315720;
}

.booked-text {
  color: #315720;
  font-weight: 900;
}

.artist-name-chip {
  --artist-color: #434343;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--artist-color) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--artist-color) 13%, #ffffff);
  color: color-mix(in srgb, var(--artist-color) 82%, #111111);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 3px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-name-chip.large {
  font-size: 16px;
  padding: 5px 10px;
}

.artist-name-chip.no-color {
  border-color: var(--line);
  background: #f3f2f0;
  color: var(--ink);
}

.artist-service-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.artist-service-icons {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.artist-service-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: #5f5b54;
}

.artist-service-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.artist-status-stack {
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.artist-status-line {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(max-content, 1fr);
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.artist-status-line .artist-service-label {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}

.artist-status-line .artist-name-chip {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.artist-status-value {
  justify-self: end;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.artist-status-line.is-booked .artist-status-value {
  color: #315720;
  font-weight: 900;
}

.external-link {
  color: #1b5ca8;
  font-weight: 700;
  text-decoration: none;
}

.external-link:hover {
  text-decoration: underline;
}

.outcome-not-booked {
  background: var(--rose-soft);
  color: #85304d;
}

.lane-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.payment-tracker {
  display: grid;
  gap: 12px;
}

.payment-tracker-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.payment-tracker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-filter-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.payment-filter-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
}

.payment-filter-chip.active,
.payment-filter-chip:hover {
  border-color: var(--black);
  background: var(--surface);
  color: var(--black);
}

.payment-filter-chip.active strong {
  background: var(--black);
  color: #fff;
}

.payment-filter-chip.compact {
  min-height: 32px;
}

.payment-sort-control {
  display: inline-flex;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  min-width: 220px;
}

.payment-tracker-panel {
  max-width: 100%;
  overflow: auto;
  max-height: calc(100vh - 360px);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.payment-tracker-header,
.payment-tracker-row {
  display: grid;
  grid-template-columns: 54px minmax(96px, 0.7fr) minmax(94px, 0.75fr) minmax(128px, 1.05fr) minmax(128px, 1fr) minmax(76px, 0.65fr) 72px minmax(84px, 0.72fr) minmax(92px, 0.85fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: center;
  width: max(100%, 1140px);
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.user-access-badge {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-access-badge.disabled {
  background: #fbe1dc;
  color: #9c2f24;
}

.calendar-sync-warning {
  margin: 0 12px 12px;
  border-left: 3px solid #c59a38;
  background: #fff7e1;
  color: #6c4f0f;
  padding: 9px 10px;
  font-size: 12px;
}

.payment-tracker-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--black);
  color: #fff;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-sort-button {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  padding: 0;
  font: inherit;
  line-height: 1.2;
  text-align: left;
  text-transform: inherit;
  white-space: normal;
}

.payment-sort-button > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.payment-sort-button:hover,
.payment-sort-button.active {
  color: #ffffff;
}

.payment-sort-button .sort-indicator {
  flex: 0 0 auto;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  padding: 1px 3px;
  font-size: 8px;
}

.payment-mobile-sort {
  display: none;
}

.payment-tracker-row {
  cursor: pointer;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.payment-tracker-row:hover {
  background: var(--surface-2);
}

.payment-tracker-row.paidComplete {
  background: color-mix(in srgb, var(--green-soft) 34%, #fff);
}

.payment-tracker-row.late {
  background: #fff0dc;
}

.payment-tracker-row.is-client-payment-flagged {
  box-shadow: inset 4px 0 0 #c83c3c;
}

.payment-tracker-row.is-contract-waiting {
  border-color: #dfa340;
  border-left: 4px solid #c77700;
  background: #fff7e6;
}

.payment-tracker-row.is-contract-waiting:hover {
  background: #ffefcf;
}

.payment-tracker-cell {
  min-width: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.payment-tracker-cell strong,
.payment-tracker-cell.clients-cell {
  color: var(--ink);
}

.payment-tracker-cell.artist-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.payment-tracker-cell.artist-cell .artist-service-label {
  justify-content: flex-end;
}

.payment-tracker-cell.flag-cell {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.payment-star-button,
.payment-star-static {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #a7a29a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.payment-star-button {
  cursor: pointer;
}

.payment-star-button.payment-star-client.active {
  border-color: #c83c3c;
  background: #ffe0e0;
  color: #ad2525;
}

.payment-status-pill {
  display: inline-flex;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.payment-status-pill.clientBalanceDue,
.payment-status-pill.due {
  background: var(--gold-soft);
  color: #7a5a00;
}

.payment-status-pill.formaInvoiceNeeded,
.payment-status-pill.needed {
  background: #ffe6bf;
  color: #8a4b00;
}

.payment-status-pill.artistPaymentDue {
  background: var(--rose-soft);
  color: #85304d;
}

.payment-status-pill.late {
  background: #ffc681;
  color: #7a3e00;
}

.payment-status-pill.paidComplete,
.payment-status-pill.complete {
  background: var(--green-soft);
  color: #1f6a43;
}

@media (max-width: 760px) {
  .payment-tracker-toolbar {
    align-items: stretch;
  }

  .payment-mobile-sort {
    display: flex;
    align-items: end;
    gap: 8px;
    width: 100%;
  }

  .payment-mobile-sort label {
    display: grid;
    flex: 1 1 auto;
    gap: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .payment-mobile-sort select {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    padding: 6px 9px;
    font-weight: 700;
  }

  .compact-sort-direction {
    flex: 0 0 64px;
    min-height: 38px;
  }

  .payment-tracker-header {
    display: none;
  }

  .payment-tracker-panel {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .payment-tracker-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    min-width: 0;
  }

  .payment-tracker-cell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    overflow-wrap: anywhere;
    text-align: right;
    font-size: 13px;
  }

  .payment-tracker-cell::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .payment-tracker-cell.artist-cell {
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
  }

  .payment-tracker-cell.artist-cell::before {
    margin-right: auto;
  }

  .payment-tracker-cell.flag-cell {
    justify-content: flex-end;
  }

  .payment-tracker-cell.flag-cell::before {
    margin-right: auto;
  }
}

.lane {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.lane-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.lane-title > div:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lane-helper {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.lane-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.lane-filter-button,
.lane-sort-select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
}

.lane-filter-button {
  padding-inline: 10px;
}

.lane-filter-button.active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.mini-card,
.timeline-item,
.payment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.mini-card:hover {
  border-color: var(--black);
}

.payment-card.is-late {
  border-color: #e0a152;
  background: #fff0dc;
}

.payment-card.is-contract-waiting {
  border-color: #dfa340;
  background: #fff7e6;
  box-shadow:
    inset 4px 0 0 #c77700,
    0 1px 0 rgba(0, 0, 0, 0.02);
}

.mini-card.is-booked {
  border-color: color-mix(in srgb, var(--green) 46%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 48%, #ffffff);
  box-shadow:
    inset 4px 0 0 var(--green),
    0 1px 0 rgba(0, 0, 0, 0.02);
}

.mini-card.is-open-pending:not(.is-booked) {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold-soft) 42%, #ffffff);
  box-shadow:
    inset 4px 0 0 var(--gold),
    0 1px 0 rgba(0, 0, 0, 0.02);
}

.mini-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mini-meta,
.mini-action {
  color: var(--muted);
  margin-top: 6px;
}

.mini-action {
  color: var(--ink);
  font-weight: 700;
}

.followup-date-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.followup-age {
  color: var(--ink);
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.money-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 8px;
}

.payment-track-title {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.booked-view-toggle {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 4px;
}

.booked-view-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
  margin-left: 0;
  min-width: 0;
}

.booked-calendar-subscription-links {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.booked-calendar-subscription-link {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.controls-bar .booked-view-toggle {
  align-self: stretch;
}

.booked-calendar-shell {
  display: grid;
  gap: 10px;
  max-width: 1180px;
}

.booked-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.booked-calendar-toolbar strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.booked-calendar-nav {
  display: inline-flex;
  gap: 8px;
}

.booked-calendar-month-nav {
  display: inline-flex;
  gap: 8px;
}

.booked-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--black);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.booked-calendar-weekdays span {
  padding: 8px 6px;
  text-align: center;
}

.booked-calendar {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--line);
}

.booked-calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  min-width: 0;
  background: var(--surface);
}

.booked-calendar-day {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 6px;
  min-height: 112px;
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px;
  font-size: 11px;
  font-weight: 900;
}

.booked-calendar-day:nth-child(7n) {
  border-right: 0;
}

.booked-calendar-day.is-muted {
  background: var(--surface-2);
  color: var(--muted);
}

.booked-calendar-date-button {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 24px;
  min-width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 0;
  font: inherit;
}

.booked-calendar-date-button:hover,
.booked-calendar-date-button:focus-visible {
  background: var(--surface-2);
  outline: 2px solid color-mix(in srgb, var(--black) 25%, transparent);
}

.booked-calendar-day.is-today .booked-calendar-date-button {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
}

.booked-calendar-day-events {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.booked-calendar-inquiry-events {
  display: grid;
  align-content: end;
  gap: 4px;
  min-width: 0;
}

.booked-calendar-event {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--artist-color) 70%, #ffffff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--artist-color) 18%, #ffffff);
  color: color-mix(in srgb, var(--artist-color) 80%, #111111);
  padding: 4px 8px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}

.booked-calendar-event:hover {
  border-color: var(--artist-color);
  background: color-mix(in srgb, var(--artist-color) 28%, #ffffff);
}

.booked-calendar-event.is-inquiry {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--artist-color) 62%, #ffffff);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--artist-color) 5%, #ffffff) 0,
      color-mix(in srgb, var(--artist-color) 5%, #ffffff) 6px,
      color-mix(in srgb, var(--artist-color) 13%, #ffffff) 6px,
      color-mix(in srgb, var(--artist-color) 13%, #ffffff) 8px
    );
  color: color-mix(in srgb, var(--artist-color) 58%, #4b5563);
  font-weight: 800;
  opacity: 0.76;
  box-shadow: none;
}

.booked-calendar-event.is-inquiry:hover {
  opacity: 1;
  border-color: var(--artist-color);
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--artist-color) 8%, #ffffff) 0,
      color-mix(in srgb, var(--artist-color) 8%, #ffffff) 6px,
      color-mix(in srgb, var(--artist-color) 18%, #ffffff) 6px,
      color-mix(in srgb, var(--artist-color) 18%, #ffffff) 8px
    );
}

.booked-calendar-event.is-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #b91c1c;
  border-radius: 5px;
  background: #fee2e2;
  color: #991b1b;
  box-shadow: inset 3px 0 0 #b91c1c;
  opacity: 0.94;
}

.booked-calendar-event.is-availability:hover {
  border-color: #7f1d1d;
  background: #fecaca;
  color: #7f1d1d;
  opacity: 1;
}

.availability-event-dot {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border: 1px solid color-mix(in srgb, var(--artist-color) 72%, #111111);
  border-radius: 999px;
  background: var(--artist-color);
}

.availability-calendar-notice {
  border: 1px solid #ef4444;
  border-radius: 7px;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.timeline-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
}

.date-block {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-radius: 6px;
  background: var(--black);
  color: #ffffff;
  min-height: 72px;
}

.date-block span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.date-block em {
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.date-block strong {
  font-size: 26px;
  line-height: 1;
}

.date-block-range {
  gap: 3px;
  padding: 8px 4px;
}

.date-block-range span {
  font-size: 10px;
  line-height: 1.1;
}

.date-block-range strong {
  font-size: 20px;
  line-height: 1.05;
  text-align: center;
}

.date-block-range em {
  font-size: 10px;
  text-align: center;
}

.booked-calendar-availability-events {
  display: grid;
  align-content: end;
  gap: 4px;
  min-width: 0;
}

.booked-conflicts-list {
  display: grid;
  gap: 10px;
  max-width: 1100px;
}

.booked-conflict-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold-soft) 28%, #ffffff);
  padding: 12px;
  box-shadow: inset 4px 0 0 var(--gold);
}

.booked-conflict-card.is-double-booked {
  border-color: color-mix(in srgb, #c2410c 52%, var(--line));
  background: color-mix(in srgb, #fee2e2 42%, #ffffff);
  box-shadow: inset 4px 0 0 #c2410c;
}

.booked-conflict-card.is-unavailable {
  border-color: color-mix(in srgb, #b91c1c 48%, var(--line));
  background: color-mix(in srgb, #fee2e2 42%, #ffffff);
  box-shadow: inset 4px 0 0 #b91c1c;
}

.booked-conflict-content {
  min-width: 0;
}

.booked-conflict-heading,
.booked-conflict-record-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booked-conflict-heading {
  margin-bottom: 9px;
}

.booked-conflict-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.booked-conflict-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.booked-conflict-badge,
.booked-conflict-record-kind {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.booked-conflict-badge {
  padding: 6px 8px;
}

.booked-conflict-badge.is-overlap {
  background: var(--gold-soft);
  color: #785d0b;
}

.booked-conflict-badge.is-double-booked {
  background: #c2410c;
  color: #ffffff;
}

.booked-conflict-badge.is-unavailable {
  background: #b91c1c;
  color: #ffffff;
}

.booked-conflict-availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0 0 9px;
  border: 1px solid #fecaca;
  border-radius: 7px;
  background: #fff7f7;
  color: #991b1b;
  padding: 9px 10px;
  text-align: left;
}

.booked-conflict-availability span {
  color: var(--muted);
  font-size: 11px;
}

.booked-conflict-records {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.booked-conflict-record {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.booked-conflict-record:hover {
  border-color: var(--black);
  background: #ffffff;
}

.booked-conflict-record > span:not(.booked-conflict-record-top) {
  color: var(--muted);
  font-size: 12px;
}

.booked-conflict-record .booked-conflict-clients {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.booked-conflict-record-kind {
  color: var(--muted);
  font-size: 9px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.empty-state.compact {
  padding: 12px;
  text-align: left;
}

.loading-state {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 48px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(38, 35, 28, 0.08);
  color: var(--muted);
  padding: 18px;
}

.loading-state > div:last-child {
  display: grid;
  gap: 3px;
}

.loading-state strong,
.sync-error-state strong {
  color: var(--ink);
}

.loading-spinner {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 850ms linear infinite;
}

.sync-error-state {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin: 48px auto;
}

.sync-error-state .secondary-button {
  justify-self: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.pending-setup {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin: 42px auto;
}

.pending-setup strong {
  color: var(--ink);
  font-size: 18px;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.34);
}

.drawer.open {
  display: flex;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(247, 245, 239, 0.98)),
    var(--bg);
  padding: 28px;
}

.auth-modal.open {
  display: grid;
}

.import-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(20, 20, 20, 0.36);
  padding: 20px;
}

.import-modal.open {
  display: grid;
}

.import-panel {
  width: min(720px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
}

.unsaved-panel {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.artist-delete-panel {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.artist-add-panel {
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.unsaved-panel h2,
.unsaved-panel p,
.artist-add-panel h2,
.artist-add-panel p,
.artist-delete-panel h2,
.artist-delete-panel p {
  margin: 0;
}

.unsaved-panel p,
.artist-add-panel p,
.artist-delete-panel p {
  color: var(--muted);
  line-height: 1.45;
}

.artist-delete-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.artist-delete-counts div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.artist-delete-counts strong {
  font-size: 24px;
  line-height: 1;
}

.artist-delete-counts span,
.artist-delete-note {
  color: var(--muted);
  font-size: 12px;
}

.artist-delete-replacement {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-add-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.artist-add-field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  padding: 10px 11px;
  text-transform: none;
}

.artist-delete-replacement select {
  color: var(--text);
  font-size: 14px;
  text-transform: none;
}

.unsaved-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.artist-report-panel {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #d8d5ce;
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
  padding: 28px;
}

.artist-report-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.artist-report-modal-header h2 {
  margin: 5px 0 3px;
  font-size: 24px;
  line-height: 1.15;
}

.artist-report-modal-header p {
  margin: 0;
  color: #6b7078;
}

.artist-report-kicker {
  display: block;
  color: #111111;
  font-size: 10px;
  font-weight: 800;
}

.artist-report-panel > label,
.artist-report-custom-dates label {
  display: grid;
  gap: 7px;
  color: #5f646d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-report-panel select,
.artist-report-panel input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbc8c0;
  background: #ffffff;
  color: #202329;
  font: inherit;
  text-transform: none;
}

.artist-report-custom-dates {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.artist-report-custom-dates:not([hidden]) {
  display: grid;
}

.artist-report-comparison-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 16px;
  color: #2d3035 !important;
  font-size: 12px !important;
  text-transform: none !important;
}

.artist-report-comparison-option input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #111111;
}

.artist-calculator-modal-panel {
  display: grid;
  gap: 16px;
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.artist-calculator-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.artist-calculator-modal-header h2,
.artist-calculator-modal-header p {
  margin: 0;
}

.artist-calculator-modal-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.artist-calculator-modal-list {
  display: grid;
  gap: 12px;
}

.artist-calculator-modal-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.artist-calculator-modal-select {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.artist-calculator-modal-select > span {
  display: grid;
  gap: 2px;
}

.artist-calculator-modal-select small {
  color: var(--muted);
  font-weight: 800;
}

.artist-calculator-modal-rows {
  display: grid;
  gap: 6px;
}

.artist-calculator-modal-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(100px, auto) 90px minmax(100px, auto);
  align-items: center;
  gap: 10px;
}

.artist-calculator-modal-row > b,
.artist-calculator-modal-row > strong {
  text-align: right;
}

.artist-calculator-combined-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  padding: 14px 16px;
}

.artist-calculator-combined-card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.artist-calculator-combined-card strong {
  font-size: 20px;
}

.artist-calculator-modal-actions {
  margin-top: 0;
}

@media (max-width: 760px) {
  .artist-ops-calculator-header,
  .artist-calculator-modal-row,
  .proposal-amount-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-calculator-modal-row > b,
  .artist-calculator-modal-row > strong {
    text-align: left;
  }

  .artist-calculator-modal-panel {
    max-height: 94vh;
    padding: 16px;
  }

  .artist-ops-calculator-footer {
    display: grid;
  }

  .artist-ops-calculator-footer-actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .artist-ops-calculator-total {
    min-width: 0;
    text-align: left;
  }
}

.artist-report-quality-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  border-left: 3px solid #cbc8c0;
  background: #f7f6f2;
  padding: 12px 14px;
}

.artist-report-quality-options[hidden] {
  display: none;
}

.artist-report-quality-options .artist-report-comparison-option {
  margin-top: 0;
}

.artist-report-quality-options > label:not(.artist-report-comparison-option) {
  display: grid;
  gap: 7px;
  color: #5f646d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-report-quality-options > p {
  margin: 0;
  color: #6a6f77;
  font-size: 10px;
  line-height: 1.5;
}

.artist-report-range-card {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid #111111;
  background: #f4f3ef;
}

.artist-report-range-card span {
  color: #6d7178;
  font-size: 9px;
  font-weight: 800;
}

.artist-report-range-card strong {
  font-size: 16px;
}

.artist-report-range-card small {
  color: #666b73;
  font-size: 11px;
}

.artist-report-saved-note {
  margin: 15px 0 0;
  color: #6a6f77;
  font-size: 11px;
  line-height: 1.55;
}

.artist-report-message {
  min-height: 20px;
  margin-top: 10px;
  color: #555b64;
  font-size: 11px;
  font-weight: 600;
}

.artist-report-message.is-error {
  color: #a42f28;
}

.artist-report-actions {
  margin-top: 8px;
}

.artist-report-export-button {
  border-color: #111111;
}

@media (max-width: 640px) {
  .artist-report-panel {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .artist-report-custom-dates {
    grid-template-columns: 1fr;
  }

  .artist-report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .artist-ops-header-actions .artist-report-export-button {
    order: -1;
  }
}

.import-header,
.import-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.import-summary div {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.import-summary strong {
  font-size: 24px;
  line-height: 1;
}

.import-summary span,
.import-warnings {
  color: var(--muted);
}

.import-warnings ul {
  margin: 0;
  padding-left: 20px;
}

.import-actions {
  align-items: center;
  margin-top: 18px;
}

.auth-panel {
  width: min(390px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 54px rgba(38, 35, 28, 0.12);
}

.login-panel {
  display: grid;
  gap: 8px;
  padding: 28px 28px 24px;
}

.login-brand {
  display: grid;
  justify-items: center;
  padding: 6px 0 2px;
}

.login-logo {
  display: block;
  width: min(180px, 76vw);
  height: auto;
}

.login-title {
  margin: 8px 0 2px;
  font-size: 18px;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 14px;
  padding: 0;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 2px 0 0;
  font-weight: 800;
  text-decoration: underline;
}

.text-button:hover {
  color: var(--black);
}

.auth-message {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-message.error {
  color: var(--rose);
}

.auth-message.success {
  color: var(--green);
}

.login-actions {
  display: grid;
  gap: 8px;
}

.login-actions .primary-button,
.login-actions .secondary-button {
  width: 100%;
}

.drawer-panel {
  width: min(760px, 100vw);
  height: 100vh;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(176px, 240px) auto auto auto;
  align-items: start;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 20px 22px;
}

.drawer-edit-button {
  align-self: start;
  margin-top: 24px;
  min-height: 38px;
  padding-inline: 14px;
}

.drawer-save-button {
  align-self: start;
  margin-top: 24px;
  min-height: 38px;
  padding-inline: 16px;
}

.lead-read-summary {
  display: grid;
  gap: 18px;
  padding: 20px 22px 28px;
}

.lead-read-summary[hidden],
.lead-form[hidden] {
  display: none;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: 20px 22px 28px;
}

.form-section,
.lead-read-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.form-section:first-child,
.lead-read-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-section h3,
.lead-read-section h3 {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lead-drawer-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.form-section > .lead-drawer-section-header,
.lead-read-section > .lead-drawer-section-header {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.payment-subsection-title-button {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 4px 6px;
  text-align: left;
}

.payment-subsection-title {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.payment-subsection-icon-toggle {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
}

.payment-subsection-title-button:hover,
.payment-subsection-icon-toggle:hover {
  background: var(--blue-soft);
}

.payment-subsection-title-button:focus-visible,
.payment-subsection-icon-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.lead-drawer-section-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.lead-drawer-section.is-collapsed {
  gap: 0;
}

.lead-read-subsection .lead-drawer-section-body {
  display: grid;
  gap: 10px;
}

.payment-tracker-body {
  display: grid;
  gap: 12px;
}

.form-subsection,
.lead-read-subsection {
  display: grid;
  gap: 10px;
}

.form-subsection.is-contract-waiting,
.lead-read-subsection.is-contract-waiting {
  border: 1px solid #dfa340;
  border-radius: 6px;
  background: #fff7e6;
  box-shadow: inset 4px 0 0 #c77700;
  padding: 12px;
}

.contracted-services-field,
.contract-waiting-warning {
  grid-column: 1 / -1;
}

.contracted-services-field textarea {
  min-height: 116px;
  resize: vertical;
}

.contract-waiting-warning {
  border: 1px solid #e0a13a;
  border-radius: 5px;
  background: #ffefc8;
  color: #784700;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
}

.form-subsection + .form-subsection,
.lead-read-subsection + .lead-read-subsection {
  margin-top: 4px;
}

.form-subsection h4,
.lead-read-subsection h4 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.availability-block-panel {
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 20px;
}

.availability-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.availability-block-header h2,
.availability-block-header p {
  margin: 0;
}

.availability-block-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.availability-block-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.availability-block-field input,
.availability-block-field select,
.availability-block-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 10px 11px;
  text-transform: none;
}

.availability-block-field textarea {
  resize: vertical;
}

.availability-block-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.availability-block-message {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.availability-block-message.error {
  color: var(--red);
}

.availability-block-actions {
  align-items: center;
}

.availability-block-action-spacer {
  flex: 1 1 auto;
}

.payment-subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 5px 7px;
}

.artist-forma-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.artist-forma-grid > label {
  align-self: start;
}

.artist-forma-grid > label > input,
.artist-forma-grid > label > select,
.artist-forma-grid > label > textarea {
  height: 42px;
}

.artist-forma-grid > label > textarea {
  min-height: 42px;
  resize: vertical;
}

.artist-payment-task-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 10px 12px;
}

.artist-payment-task-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.artist-payment-task-copy strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.artist-payment-task-copy span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.artist-payment-task-button {
  flex: 0 0 auto;
  min-width: 112px;
}

.artist-forma-read-grid {
  align-items: stretch;
}

.artist-forma-read-cell {
  grid-template-rows: auto 1fr;
}

.artist-forma-read-cell > div {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 42px;
}

.artist-forma-task-cell > div {
  border: 0;
  background: transparent;
  padding: 0;
}

.lead-read-field > .artist-payment-task-panel {
  min-height: 64px;
}

.artist-payment-task-panel-readonly {
  width: 100%;
  align-items: center;
}

.artist-forma-value-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #1f2328;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.artist-forma-read-notes > div {
  align-items: flex-start;
  line-height: 1.45;
  padding-top: 12px;
}

.field-grid,
.lead-read-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.lead-read-field {
  display: grid;
  gap: 5px;
}

.lead-read-field-wide {
  grid-column: 1 / -1;
}

.lead-read-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-read-field > div {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.lead-read-field .assignment-status-list {
  border: 0;
  background: transparent;
  padding: 0;
}

.event-date-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.55fr);
  gap: 12px;
  align-items: end;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  align-self: end;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

label input,
label select,
label textarea {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
}

.master-status-control {
  align-self: start;
  min-width: 176px;
}

.master-status-select {
  border-color: #e0c75c;
  background: #fff4b8;
  color: #3f370b;
  font-weight: 900;
}

.master-status-select.is-closed {
  border-color: #c8ced3;
  background: #e8ecef;
  color: #3a4147;
}

.invoice-status-select {
  --invoice-status-color: #dfe3e6;
  background-image:
    radial-gradient(circle at 18px center, var(--invoice-status-color) 0 9px, transparent 10px),
    linear-gradient(to right, color-mix(in srgb, var(--invoice-status-color) 28%, #ffffff), #ffffff 64%);
  background-repeat: no-repeat;
  padding-left: 38px;
}

.invoice-status-select.has-status-color {
  border-color: color-mix(in srgb, var(--invoice-status-color) 70%, #8f948c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--invoice-status-color) 48%, transparent);
}

.payment-state-select {
  --invoice-status-color: #dfe3e6;
  background-image:
    radial-gradient(circle at 18px center, var(--invoice-status-color) 0 9px, transparent 10px),
    linear-gradient(to right, color-mix(in srgb, var(--invoice-status-color) 28%, #ffffff), #ffffff 64%);
  background-repeat: no-repeat;
  padding-left: 38px;
}

.payment-state-select.has-status-color {
  border-color: color-mix(in srgb, var(--invoice-status-color) 70%, #8f948c);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--invoice-status-color) 48%, transparent);
  background-position: left center, left center;
}

select.has-reason-color {
  border-color: color-mix(in srgb, var(--reason-status-bg) 74%, #8f948c);
  background: var(--reason-status-bg);
  color: var(--reason-status-fg);
  font-weight: 800;
}

.assignment-status-list {
  display: grid;
  gap: 12px;
}

.artist-lead-boxes-region,
.artist-lead-boxes-single,
.artist-lead-boxes-group {
  display: grid;
  gap: 10px;
}

.artist-lead-boxes-region {
  margin-top: 12px;
}

.artist-lead-boxes-label,
.artist-lead-boxes-group-header {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.artist-lead-boxes-group {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.artist-lead-boxes-group.is-collapsed {
  gap: 0;
}

.artist-lead-boxes-group.has-booked-artist.is-collapsed {
  border-top-color: #92b985;
  box-shadow: inset 4px 0 0 #4f8b3b;
  padding-left: 10px;
}

.artist-lead-boxes-group-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 24px;
  align-items: center;
}

.artist-lead-boxes-group-title {
  white-space: nowrap;
}

.artist-lead-boxes-count {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-lead-boxes-booked-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px 8px;
  min-width: 0;
}

.artist-lead-boxes-booked-artist,
.artist-lead-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.artist-lead-boxes-booked-artist {
  text-transform: none;
}

.artist-booked-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 22px;
  border: 1px solid #8bb17d;
  border-radius: 999px;
  background: var(--green-soft);
  color: #315720;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.assignment-row,
.artist-lead-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 10px;
}

.artist-lead-box.is-booked {
  border-color: #92b985;
  background: color-mix(in srgb, var(--green-soft) 45%, var(--surface-2));
  box-shadow: inset 4px 0 0 #4f8b3b;
}

.artist-lead-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
}

.artist-lead-header-toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.artist-calculator-icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.artist-calculator-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.artist-calculator-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.proposal-amount-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(145px, 0.8fr);
  gap: 8px;
}

.proposal-amount-fields label {
  min-width: 0;
}

.artist-lead-header-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.assignment-row strong,
.artist-lead-header strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-row span,
.artist-lead-header-copy > span,
.assignment-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-lead-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
}

.artist-lead-box.is-collapsed {
  gap: 0;
  padding-block: 6px;
}

.artist-lead-box.is-collapsed .artist-lead-header {
  min-height: 30px;
}

.artist-lead-box.is-collapsed .artist-lead-header-copy {
  gap: 0;
}

.artist-lead-box.is-collapsed .artist-lead-toggle {
  flex-basis: 22px;
  width: 22px;
  height: 22px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .artist-lead-boxes-group-header {
    grid-template-columns: minmax(0, 1fr) 24px;
  }

  .artist-lead-boxes-group-title {
    grid-column: 1;
    grid-row: 1;
  }

  .artist-lead-boxes-group-header > .lead-drawer-section-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .artist-lead-boxes-count,
  .artist-lead-boxes-booked-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    margin-top: 6px;
    text-align: left;
  }
}

.artist-lead-remove-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.assignment-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 12px;
}

.artist-booking-conflict-warning {
  display: grid;
  gap: 4px;
  border: 1px solid #d59a32;
  border-left-width: 4px;
  border-radius: 6px;
  background: #fff4d8;
  color: #5f430d;
  padding: 10px 12px;
  font-size: 12px;
}

.artist-booking-conflict-warning[hidden] {
  display: none;
}

.artist-booking-conflict-warning > strong {
  color: #3f2a00;
  font-size: 13px;
}

.artist-booking-conflict-warning ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.read-only-link-field {
  display: grid;
  gap: 5px;
}

.read-only-link-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.read-only-link-field > div {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 9px 10px;
}

.wide-label {
  display: grid;
}

.other-pitched-control {
  display: grid;
  gap: 6px;
}

.service-pitched-control {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-clear-button {
  justify-self: start;
  min-height: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-clear-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

textarea {
  resize: vertical;
}

.today-page {
  display: grid;
  gap: 18px;
  max-width: 1320px;
}

.daily-hq-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
}

.daily-hq-tabs button {
  min-width: 100px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.daily-hq-tabs button.active {
  background: var(--ink);
  color: #ffffff;
}

.daily-hq-briefing,
.daily-hq-section,
.daily-hq-evidence {
  display: grid;
  gap: 14px;
}

.daily-hq-date-toolbar,
.daily-hq-date-actions,
.daily-hq-badges,
.daily-hq-section-heading {
  display: flex;
  align-items: center;
}

.daily-hq-date-toolbar,
.daily-hq-section-heading {
  justify-content: space-between;
  gap: 16px;
}

.daily-hq-date-toolbar h2,
.daily-hq-section h3 {
  margin: 0;
  font-size: 18px;
}

.daily-hq-date-toolbar p,
.daily-hq-section-heading p,
.daily-hq-evidence > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.daily-hq-date-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.daily-hq-date-actions input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.daily-hq-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
}

.daily-hq-message.error {
  border-color: #d8a0a0;
  background: #fff1f1;
  color: #7f1d1d;
}

.daily-hq-message.info {
  border-color: #a9c4e2;
  background: #eff6ff;
  color: #1e3a5f;
}

.daily-hq-message button {
  border: 0;
  background: transparent;
  color: inherit;
  font-weight: 900;
  text-decoration: underline;
}

.daily-hq-overview-card,
.daily-hq-section,
.daily-hq-evidence,
.daily-hq-empty {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 5px 13px rgba(20, 20, 20, 0.06);
  padding: 18px;
}

.daily-hq-overview-card {
  display: grid;
  gap: 14px;
  border-left: 5px solid var(--gold);
}

.daily-hq-overview-copy {
  display: grid;
  max-width: 1040px;
  gap: 12px;
}

.daily-hq-overview-copy p {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 550;
  line-height: 1.52;
}

.daily-hq-overview-copy p:first-child {
  font-weight: 650;
}

.daily-hq-badges {
  flex-wrap: wrap;
  gap: 6px;
}

.daily-hq-badges span,
.daily-hq-priority,
.daily-hq-evidence summary span {
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-hq-fallback-note {
  margin: 0;
  color: #7a5310;
  font-size: 11px;
  font-weight: 700;
}

.daily-hq-total {
  display: grid;
  width: 100%;
  min-height: 82px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  font: inherit;
  text-align: left;
}

.daily-hq-total:is(button) {
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.daily-hq-total:is(button):hover,
.daily-hq-total:is(button):focus-visible {
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(20, 20, 20, 0.09);
  transform: translateY(-1px);
}

.daily-hq-total strong {
  font-size: 25px;
}

.daily-hq-total span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.daily-hq-activity-section {
  gap: 12px;
}

.daily-hq-notable-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.daily-hq-notable-columns > :only-child {
  grid-column: 1 / -1;
}

.daily-hq-notable-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 9px;
}

.daily-hq-notable-slot {
  display: grid;
  min-width: 0;
}

.daily-hq-activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 16px;
}

.daily-hq-activity-layout > :only-child {
  grid-column: 1 / -1;
}

.daily-hq-activity-group {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.daily-hq-activity-group h4 {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.daily-hq-movement-list {
  display: grid;
  gap: 6px;
}

.daily-hq-other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.daily-hq-other-grid .daily-hq-total {
  min-height: 66px;
  padding: 9px 10px;
}

.daily-hq-other-grid .daily-hq-total strong {
  font-size: 21px;
}

.daily-hq-other-grid .daily-hq-total span {
  font-size: 9px;
  line-height: 1.3;
}

.daily-hq-notable-section {
  display: grid;
  gap: 12px;
}

.daily-hq-movement-row,
.daily-hq-highlight-pod {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.daily-hq-jump-target {
  scroll-margin-top: 18px;
}

.daily-hq-jump-target:focus {
  outline: none;
}

.daily-hq-jump-target.is-accented {
  animation: daily-hq-section-accent 1400ms ease both;
}

@keyframes daily-hq-section-accent {
  0%,
  100% {
    border-color: var(--line);
    box-shadow: 0 5px 13px rgba(20, 20, 20, 0.06);
  }

  28%,
  70% {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft), 0 9px 22px rgba(20, 20, 20, 0.1);
  }
}

.daily-hq-movement-row summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.daily-hq-movement-row summary::-webkit-details-marker,
.daily-hq-highlight-pod summary::-webkit-details-marker {
  display: none;
}

.daily-hq-movement-row summary > span {
  display: grid;
  gap: 1px;
}

.daily-hq-movement-row summary > strong {
  min-width: 25px;
  color: var(--ink);
  font-size: 20px;
}

.daily-hq-movement-row summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.daily-hq-movement-row summary b {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.daily-hq-movement-toggle {
  position: relative;
  width: 16px;
  height: 16px;
}

.daily-hq-movement-toggle::before,
.daily-hq-movement-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.daily-hq-movement-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.daily-hq-movement-row[open] .daily-hq-movement-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.daily-hq-movement-records,
.daily-hq-supporting-records {
  display: grid;
  gap: 5px;
}

.daily-hq-movement-records {
  border-top: 1px solid var(--line);
  padding: 8px;
}

.daily-hq-movement-records button,
.daily-hq-supporting-records button {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.daily-hq-movement-records button:hover,
.daily-hq-supporting-records button:hover {
  border-color: var(--line-strong);
}

.daily-hq-movement-records button strong,
.daily-hq-supporting-records button strong {
  font-size: 10px;
}

.daily-hq-movement-records button span,
.daily-hq-supporting-records button span,
.daily-hq-movement-records > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.35;
}

.daily-hq-evidence-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 5px 12px;
  margin-bottom: 10px;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.daily-hq-evidence-filter button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.daily-hq-evidence-list {
  display: grid;
  gap: 8px;
}

.daily-hq-evidence-item {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

button.daily-hq-evidence-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.daily-hq-highlight-pod summary,
.daily-hq-highlight-static {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
}

.daily-hq-highlight-pod summary {
  padding-right: 44px;
  cursor: pointer;
  list-style: none;
}

.daily-hq-highlight-pod strong {
  font-size: 14px;
}

.daily-hq-highlight-summary {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.daily-hq-highlight-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
}

.daily-hq-highlight-toggle::before,
.daily-hq-highlight-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.daily-hq-highlight-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.daily-hq-highlight-pod[open] .daily-hq-highlight-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.daily-hq-highlight-body {
  border-top: 1px solid var(--line);
  padding: 9px;
}

.daily-hq-supporting-records {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.daily-hq-highlight-pod small,
.daily-hq-evidence-item small,
.daily-hq-evidence-time {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.daily-hq-priority {
  width: fit-content;
}

.daily-hq-priority.high {
  background: #fce7e7;
  color: #991b1b;
}

.daily-hq-priority.medium {
  background: var(--gold-soft);
  color: #795a09;
}

.daily-hq-evidence summary {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.daily-hq-evidence > p {
  margin-top: -7px;
}

.daily-hq-change-list {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.daily-hq-change-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.daily-hq-change-list li span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.daily-hq-empty {
  text-align: center;
}

.daily-hq-empty h3 {
  margin: 0;
}

.daily-hq-empty p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.today-toolbar,
.today-section-heading,
.today-work-card,
.today-upcoming-card,
.today-scope-toggle,
.today-toolbar-actions,
.today-work-side {
  display: flex;
  align-items: center;
}

.today-toolbar,
.today-section-heading {
  justify-content: space-between;
  gap: 12px;
}

.today-toolbar > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.today-toolbar-actions {
  gap: 8px;
}

.today-scope-toggle {
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 3px;
}

.today-scope-toggle button {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
}

.today-scope-toggle button.active {
  background: var(--ink);
  color: #ffffff;
}

.today-migration-note {
  border: 1px solid #d59a32;
  border-radius: 7px;
  background: #fff4d8;
  color: #5f430d;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.today-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.today-summary-tile {
  display: grid;
  min-height: 98px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 5px 13px rgba(20, 20, 20, 0.08);
  color: var(--ink);
  padding: 13px;
  text-align: left;
}

.today-summary-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.today-summary-tile strong {
  font-size: 30px;
  line-height: 1;
}

.today-summary-tile span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.today-work-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.today-work-column {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.today-section {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.today-section h2 {
  margin: 0;
  font-size: 16px;
}

.today-section p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.today-task-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 3px;
}

.today-task-tabs button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 900;
}

.today-task-tabs button.active {
  background: var(--ink);
  color: #fff;
}

.today-task-tabs span {
  opacity: 0.74;
}

.today-work-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.today-pagination,
.today-pagination > div,
.today-conflict-heading,
.today-conflict-footer {
  display: flex;
  align-items: center;
}

.today-pagination {
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.today-pagination > div {
  gap: 5px;
}

.today-pagination .icon-button {
  width: 28px;
  height: 26px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
}

.today-work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  align-items: stretch;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px;
}

.today-work-card.is-completed {
  border-color: color-mix(in srgb, var(--green) 32%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 28%, var(--surface-2));
}

.today-conflict-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  background: color-mix(in srgb, var(--gold-soft) 22%, #ffffff);
  padding: 9px;
}

.today-conflict-card.is-double-booked {
  border-color: color-mix(in srgb, #c2410c 52%, var(--line));
  border-left-color: #c2410c;
  background: color-mix(in srgb, #fee2e2 38%, #ffffff);
}

.today-conflict-card.is-unavailable {
  border-color: color-mix(in srgb, #b91c1c 48%, var(--line));
  border-left-color: #b91c1c;
  background: color-mix(in srgb, #fee2e2 34%, #ffffff);
}

.today-conflict-heading,
.today-conflict-footer {
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.today-conflict-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.today-task-type-badge,
.today-record-state-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 8px !important;
  font-style: normal;
  font-weight: 900 !important;
  line-height: 1.2;
  text-transform: uppercase;
}

.today-task-type-badge {
  background: var(--ink);
  color: #fff !important;
}

.today-record-state-badge.active {
  background: var(--green-soft);
  color: #315720 !important;
}

.today-record-state-badge.archived {
  background: #e6e8ea;
  color: #4c545a !important;
}

.today-conflict-date {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.today-conflict-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #785d0b;
  font-size: 9px;
  font-weight: 900;
  padding: 5px 7px;
}

.today-conflict-card.is-double-booked .today-conflict-badge,
.today-conflict-card.is-unavailable .today-conflict-badge {
  background: #b91c1c;
  color: #ffffff;
}

.today-conflict-note {
  margin: 0;
  color: #991b1b;
  font-size: 11px;
  font-weight: 700;
}

.today-conflict-records {
  display: grid;
  gap: 5px;
}

.today-conflict-record {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 3px 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 8px;
  text-align: left;
}

.today-conflict-record strong {
  font-size: 10px;
  font-weight: 900;
}

.today-conflict-record span,
.today-conflict-record small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-conflict-record small {
  grid-column: 1 / -1;
}

.today-conflict-footer {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.today-conflict-footer > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-work-main {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.today-work-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.today-work-main strong,
.today-upcoming-card strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-work-main > strong {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.today-work-main span:not(.artist-name-chip),
.today-work-main small,
.today-upcoming-card span,
.today-upcoming-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.today-work-record {
  color: var(--ink) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.today-work-artist {
  display: block;
  min-width: 0;
  overflow: visible;
}

.today-work-artist .artist-name-chip {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.today-work-artist .artist-service-label {
  max-width: 100%;
}

.today-work-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 8px;
  min-width: 0;
  text-align: right;
}

.today-work-trigger {
  color: var(--ink) !important;
  font-weight: 900 !important;
}

.today-work-side > strong {
  max-width: 100%;
  color: #8a5d00;
  font-size: 10px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.today-payment-flags {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.today-card-actions {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 5px;
  margin-top: auto;
  min-width: 0;
}

.today-assignee-control {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 0;
}

.today-assignee-heading {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.today-payment-flags .payment-star-button {
  width: 26px;
  height: 26px;
  font-size: 15px;
}

.today-owner-button {
  max-width: 110px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
}

.today-upcoming-section {
  grid-column: auto;
}

.today-upcoming-card {
  display: grid;
  grid-template-columns: minmax(135px, 42%) minmax(0, 1fr);
  align-items: start;
  gap: 4px 10px;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.today-upcoming-card > span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.today-complete-button {
  min-height: 26px;
  border: 1px solid var(--black);
  border-radius: 6px;
  background: var(--black);
  color: #ffffff;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.today-complete-button:hover {
  border-color: #2d2d2d;
  background: #2d2d2d;
}

.today-conflict-footer .today-card-actions {
  align-self: flex-end;
}

.today-upcoming-card > strong,
.today-upcoming-card > small {
  min-width: 0;
}

.today-upcoming-card > strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.today-upcoming-card > small {
  display: block;
  grid-column: 2;
  text-align: left;
}

.today-upcoming-card > small .artist-service-label {
  max-width: 100%;
}

.work-item-panel {
  display: grid;
  width: min(600px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.work-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.work-item-header h2 {
  margin: 2px 0 3px;
}

.work-item-header p,
.work-item-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.work-item-kicker {
  color: #8a5d00;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-item-message.error {
  color: #b91c1c;
  font-weight: 700;
}

.work-item-actions {
  align-items: center;
}

.work-item-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  padding: 14px;
}

.work-item-completion-section {
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  background: color-mix(in srgb, var(--green-soft) 24%, #fff);
}

.work-item-section-heading h3,
.work-item-section-heading p {
  margin: 0;
}

.work-item-section-heading h3 {
  font-size: 14px;
  text-transform: uppercase;
}

.work-item-section-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.work-item-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.work-item-record-field {
  display: grid;
  gap: 6px;
}

.work-item-record-field > label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.work-item-record-search-wrap {
  position: relative;
}

.work-item-record-search-wrap > input {
  width: 100%;
}

.work-item-record-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(20, 20, 20, 0.16);
  padding: 5px;
}

.work-item-record-results[hidden] {
  display: none;
}

.work-item-record-result {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.work-item-record-result:hover,
.work-item-record-result.active {
  background: var(--surface-2);
}

.work-item-record-result > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.work-item-record-result strong {
  font-size: 12px;
}

.work-item-record-result small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-conflict-footer > span strong {
  color: #8a5d00;
  text-transform: uppercase;
}

.work-item-selected-record {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: var(--muted);
  font-size: 10px;
}

.work-item-selected-record strong {
  color: var(--ink);
  font-size: 11px;
}

.work-item-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.work-item-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.work-item-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.field-optional {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: none;
}

.field-required {
  color: var(--red);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.legacy-follow-up-note {
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  padding: 9px 10px;
  color: var(--ink);
  font-size: 11px;
  white-space: pre-wrap;
}

.legacy-follow-up-note strong {
  display: block;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.today-work-note {
  color: var(--ink);
  white-space: pre-wrap;
}

.work-item-history {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.work-item-history h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.work-item-history-entry {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 9px 10px;
}

.work-item-history-entry > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.work-item-history-entry > div strong {
  color: var(--ink);
}

.work-item-history-entry p,
.work-item-history-empty {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  white-space: pre-wrap;
}

.work-item-history-empty {
  color: var(--muted);
}

.work-item-history-empty.error {
  color: var(--red);
}

@media (max-width: 900px) {
  .today-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .today-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .today-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .today-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .today-summary-grid,
  .today-work-grid {
    grid-template-columns: 1fr;
  }

  .today-work-grid {
    display: flex;
    flex-direction: column;
  }

  .today-work-column {
    display: contents;
  }

  .today-general-section {
    order: 1;
  }

  .today-contracts-section {
    order: 2;
  }

  .today-payments-section {
    order: 3;
  }

  .today-conflicts-section {
    order: 4;
  }

  .today-followups-section {
    order: 5;
  }

  .today-upcoming-section {
    order: 6;
  }

  .today-summary-tile {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }

  .today-summary-tile span {
    text-align: left;
  }

  .today-work-card {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 42%);
    align-items: stretch;
  }

  .today-work-side {
    justify-self: end;
    width: 100%;
    max-width: 110px;
  }

  .today-payment-flags .payment-star-button {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .today-pagination .icon-button {
    width: 40px;
    height: 40px;
  }

}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

@media (max-width: 1040px) {
  .app-shell {
    align-content: start;
    grid-template-columns: 1fr;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    gap: 10px 12px;
    align-items: start;
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 12px;
  }

  .brand-block {
    grid-column: 1;
    align-self: center;
    padding: 0;
    margin-bottom: 0;
  }

  .brand-logo-frame {
    width: 112px;
  }

  .nav-list {
    grid-column: 1 / -1;
    display: flex;
    flex: none;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar .global-quick-search {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
  }

  .sidebar .global-search-results {
    top: calc(100% + 6px);
    right: auto;
    left: 0;
    width: 100%;
  }

  .nav-item {
    flex: 0 0 auto;
    justify-content: center;
    width: auto;
    min-width: 126px;
    text-align: center;
  }

  .account-panel {
    grid-column: 2;
    grid-row: 1;
    width: 220px;
    justify-items: end;
    margin-top: 0;
    border-top: 0;
    padding: 0;
  }

  .account-control-row,
  .account-meta-row,
  .account-button-row {
    width: 100%;
    justify-content: flex-end;
  }

  .account-meta-row {
    justify-items: end;
    text-align: right;
  }

  .account-panel .role-select {
    width: auto;
    max-width: 100%;
  }

  .account-panel .secondary-button {
    width: auto;
  }

  body[data-profile-role="internal"][data-role="artist"] .sidebar {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
  }

  body[data-profile-role="internal"][data-role="artist"] .brand-block,
  body[data-profile-role="internal"][data-role="artist"] .account-panel {
    grid-row: 1;
    align-self: center;
  }

  body[data-profile-role="artist"] .sidebar {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
  }

  body[data-profile-role="artist"] .brand-block,
  body[data-profile-role="artist"] .account-panel {
    grid-row: auto;
  }

  body[data-profile-role="artist"] .account-panel {
    width: auto;
    justify-items: end;
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 18px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 76px;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .metric {
    grid-template-rows: minmax(48px, 1fr) auto;
    min-height: 76px;
  }

  .metric strong {
    font-size: 28px;
  }

  .controls-bar {
    grid-template-columns: 1fr 1fr;
  }

  .search-wrap,
  .button-cluster {
    grid-column: 1 / -1;
  }

  .work-item-fields {
    grid-template-columns: 1fr;
  }

  .work-item-section-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    max-width: 100dvw;
    overflow-x: hidden;
    overflow-x: clip;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .topbar {
    flex-direction: column;
  }

  .global-quick-search {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .global-search-results {
    right: auto;
    left: 0;
    width: 100%;
    max-height: min(520px, calc(100vh - 180px));
  }

  .global-search-result {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .global-result-type {
    grid-column: 1 / -1;
  }

  .workspace {
    padding: 14px 12px 24px;
  }

  .brand-title {
    font-size: 12px;
  }

  .brand-block {
    min-width: 0;
    overflow: hidden;
  }

  .brand-block > div:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .brand-title,
  .brand-subtitle {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .account-panel {
    max-width: min(172px, 48vw);
    width: min(172px, 48vw);
    gap: 5px;
  }

  .account-control-row,
  .account-meta-row,
  .account-button-row {
    gap: 6px;
  }

  .account-meta-row {
    font-size: 11px;
    line-height: 1.25;
  }

  .account-panel .role-select {
    max-width: 142px;
    min-height: 29px;
    font-size: 13px;
  }

  .account-panel .secondary-button,
  .account-panel .icon-button {
    min-height: 29px;
  }

  .account-panel .secondary-button {
    padding: 0 8px;
    font-size: 11px;
  }

  .account-panel .icon-button {
    flex-basis: 29px;
    width: 29px;
  }

  .account-button-row {
    flex-wrap: nowrap;
  }

  .account-panel #signOutBtn,
  .account-panel #openAuthBtn {
    flex: 0 1 76px;
  }

  body[data-profile-role="artist"] .sidebar {
    gap: 10px;
    padding: 10px 12px;
  }

  body[data-profile-role="artist"] .brand-logo-frame {
    width: 96px;
  }

  body[data-profile-role="artist"] .account-panel {
    max-width: none;
    width: auto;
    gap: 8px;
  }

  body[data-profile-role="artist"] .account-panel .auth-status {
    max-width: 42vw;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-profile-role="artist"] .account-panel #signOutBtn {
    flex: 0 0 auto;
  }

  body[data-role="artist"] .sidebar {
    flex-wrap: wrap;
  }

  body[data-role="artist"] .nav-list {
    flex: 1 0 100%;
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-role="artist"] .nav-list .nav-item {
    width: 100%;
    min-height: 42px;
    flex-direction: row;
    gap: 7px;
  }

  .topbar,
  .metric-grid,
  .controls-bar,
  .view-tabs,
  .content-mount {
    width: 100%;
    max-width: 100%;
  }

  .artist-ops-editor-header,
  .artist-ops-section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .artist-ops-header-actions {
    justify-content: stretch;
  }

  .artist-ops-header-actions button {
    flex: 1 1 140px;
  }

  .artist-ops-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-pitched-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-pricing-row,
  .artist-ops-gallery-row,
  .artist-ops-login-row,
  .artist-ops-login-read-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-pricing-row strong {
    place-items: center start;
  }

  .nav-list,
  .table-scroll {
    contain: inline-size;
    overscroll-behavior-inline: contain;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .nav-item {
    min-width: 0;
    width: 100%;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }

  .nav-item span:last-child {
    overflow-wrap: anywhere;
  }

  .nav-icon {
    width: 18px;
    height: 18px;
    font-size: 11px;
  }

  .nav-icon svg {
    width: 13px;
    height: 13px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 68px;
    gap: 6px;
    margin-bottom: 10px;
  }

  .metric {
    grid-template-rows: minmax(42px, 1fr) auto;
    min-height: 68px;
  }

  .metric-recent {
    grid-column: span 1;
  }

  .metric span {
    font-size: 10px;
    line-height: 1.1;
    min-height: 25px;
    padding: 4px;
  }

  .metric strong {
    font-size: 22px;
  }

  .controls-bar,
  .import-summary,
  .artist-delete-counts,
  .artist-forma-grid,
  .field-grid,
  .lead-read-grid,
  .event-date-row,
  .assignment-row {
    grid-template-columns: 1fr;
  }

  .controls-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
  }

  .controls-bar select,
  .controls-bar .secondary-button {
    min-height: 34px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .artist-photo-crop-panel {
    grid-template-columns: 1fr;
  }

  .artist-photo-crop-preview {
    justify-self: center;
  }

  .artist-photo-delete {
    margin-left: 0;
  }

  .artist-payment-task-panel {
    align-items: start;
    flex-direction: column;
  }

  .artist-payment-task-button {
    width: 100%;
  }

  .controls-bar .button-cluster {
    grid-column: auto;
  }

  .controls-bar .booked-controls-row {
    grid-column: 1 / -1;
    width: 100%;
  }

  #clearFiltersBtn {
    font-size: 0;
  }

  #clearFiltersBtn::after {
    content: "Reset";
    font-size: 12px;
  }

  .drawer-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .master-status-control {
    grid-column: 1;
    grid-row: 2;
  }

  .drawer-edit-button {
    grid-column: 2;
    grid-row: 2;
  }

  .drawer-save-button {
    grid-column: 2;
    grid-row: 2;
  }

  #closeDrawerBtn {
    grid-column: 2;
    grid-row: 1;
  }

  .button-cluster {
    justify-content: stretch;
  }

  .button-cluster button {
    flex: 1;
  }

  .auth-status {
    max-width: 100%;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-filters {
    grid-template-columns: 1fr;
  }

  .audit-history-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-event summary {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .audit-event summary > :nth-child(5),
  .audit-event summary > :nth-child(6) {
    grid-column: auto;
  }

  .audit-change {
    grid-template-columns: 1fr;
  }

  .table-add-lead {
    align-self: flex-end;
  }

  table {
    min-width: 560px;
    font-size: 12px;
  }

  th,
  td {
    padding: 8px 8px;
  }

  .table-scroll {
    max-height: 520px;
  }

  .booked-view-toggle {
    width: 100%;
  }

  .booked-view-toggle .view-chip {
    flex: 1;
  }

  .booked-calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .booked-calendar-month-nav,
  .booked-calendar-nav {
    width: 100%;
  }

  .booked-calendar-month-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booked-calendar-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .booked-calendar-toolbar strong {
    order: -1;
    font-size: 16px;
  }

  .booked-view-actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    margin-left: 0;
    width: 100%;
  }

  .booked-view-actions .booked-view-toggle {
    grid-column: 1;
    width: auto;
  }

  .booked-view-actions #clearFiltersBtn {
    grid-column: 2;
    justify-self: end;
  }

  .booked-calendar-subscription-links {
    grid-column: 1 / -1;
    justify-self: end;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 12px;
  }

  .booked-calendar-subscription-link {
    font-size: 12px;
  }

  .booked-calendar-weekdays span {
    padding: 7px 2px;
    font-size: 9px;
  }

  .booked-calendar-day {
    min-height: 88px;
    padding: 4px;
    font-size: 10px;
  }

  .booked-calendar-day-events {
    gap: 3px;
  }

  .booked-calendar-availability-events,
  .booked-calendar-inquiry-events {
    gap: 3px;
  }

  .booked-calendar-event {
    padding: 3px 5px;
    font-size: 9px;
  }

  .booked-conflict-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .booked-conflict-records {
    grid-template-columns: 1fr;
  }

  .booked-conflict-heading,
  .booked-conflict-record-top {
    align-items: flex-start;
  }

  .booked-conflict-heading {
    flex-wrap: wrap;
  }

  .booked-conflict-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .booked-conflict-record-top {
    display: grid;
  }

  .booked-conflict-record-kind {
    white-space: normal;
  }

  .booked-conflict-availability {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .availability-block-dates {
    grid-template-columns: 1fr;
  }

  .availability-block-panel {
    padding: 16px;
  }
}

/* Reports page */
.report-page {
  display: grid;
  gap: 18px;
  max-width: 1180px;
}

.report-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.report-export-button {
  margin-left: auto;
  align-self: stretch;
  min-width: 140px;
}

.report-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-field select,
.report-field input {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
}

.report-custom-range {
  display: flex;
  gap: 12px;
}

.report-range-label {
  margin-left: auto;
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-range-error {
  color: var(--rose);
}

.report-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.report-kpi {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.report-kpi-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.report-kpi-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.report-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.report-card-wide {
  grid-column: 1 / -1;
}

.report-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-card-head h3 {
  font-size: 14px;
  font-weight: 800;
}

.report-toggle {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 3px;
}

.report-toggle-btn {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.report-toggle-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(38, 35, 28, 0.16);
}

.report-bar-chart,
.report-line-chart {
  width: 100%;
  height: auto;
}

.report-bar-label {
  font-size: 12px;
  font-weight: 600;
  fill: var(--ink);
}

.report-bar-value {
  font-size: 12px;
  font-weight: 700;
  fill: var(--muted);
}

.report-bar-track {
  fill: var(--surface-2);
}

.report-axis {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.report-axis-label {
  font-size: 10px;
  font-weight: 700;
  fill: var(--muted);
}

.report-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 18px 0;
  text-align: center;
}

.report-footnote {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .report-charts {
    grid-template-columns: 1fr;
  }

  .report-card-wide {
    grid-column: auto;
  }

  .report-range-label {
    margin-left: 0;
    width: 100%;
  }

  .report-export-button {
    margin-left: 0;
    min-width: 0;
  }
}

/* Artist Operating Profile dashboard */
.artist-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.artist-ops-list-panel {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 16px;
  align-items: end;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 2px 4px;
  box-shadow: none;
}

.artist-ops-toolbar-row {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto;
  gap: 9px;
  align-items: end;
}

.artist-ops-mobile-field,
.artist-ops-search {
  display: grid;
  gap: 6px;
}

.artist-ops-mobile-field span,
.artist-ops-search label {
  letter-spacing: 0.04em;
  font-size: 9px;
}

.artist-ops-mobile-field select,
.artist-ops-search input {
  min-height: 38px;
  border-color: rgba(200, 195, 184, 0.9);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.68);
  padding-top: 7px;
  padding-bottom: 7px;
}

.artist-ops-add .secondary-button {
  min-height: 38px;
  width: auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 16px;
  font-size: 12px;
}

.artist-ops-profile-nav {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(200, 195, 184, 0.72);
  padding: 0 2px 14px;
}

.artist-ops-profile-nav .artist-ops-mobile-field {
  width: min(100%, 300px);
}

.artist-ops-back-button {
  min-height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  padding: 0 16px;
}

.artist-ops-landing {
  display: grid;
  gap: 18px;
}

.artist-ops-landing-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 0;
}

.artist-ops-landing-header > div {
  display: grid;
  gap: 4px;
}

.artist-ops-landing-header h2 {
  color: #111111;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
}

.artist-ops-landing-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.artist-ops-landing-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.artist-ops-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.artist-ops-landing-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-width: 0;
  min-height: 172px;
  border: 1px solid rgba(222, 219, 210, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 17px;
  text-align: left;
  box-shadow: 0 9px 24px rgba(38, 35, 28, 0.04);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.artist-ops-landing-card:hover,
.artist-ops-landing-card:focus-visible {
  border-color: #111111;
  box-shadow: 0 14px 30px rgba(38, 35, 28, 0.09);
  transform: translateY(-2px);
}

.artist-avatar.landing {
  width: 58px;
  height: 58px;
  border-width: 2px;
  font-size: 16px;
}

.artist-ops-landing-copy,
.artist-ops-landing-meta {
  display: grid;
  min-width: 0;
}

.artist-ops-landing-copy {
  gap: 5px;
}

.artist-ops-landing-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}

.artist-ops-landing-title > strong {
  color: #111111;
  font-size: 14px;
  line-height: 1.25;
}

.artist-ops-landing-title .artist-ops-choice {
  padding: 3px 7px;
  font-size: 8px;
}

.artist-ops-landing-state {
  color: var(--muted);
  font-size: 10px;
}

.artist-ops-landing-meta {
  gap: 5px;
  margin-top: 5px;
}

.artist-ops-landing-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 10px;
}

.artist-ops-landing-meta-item > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid rgba(17, 17, 17, 0.7);
  border-radius: 999px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  padding: 3px;
}

.artist-ops-landing-meta-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-ops-status-tabs {
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
}

.artist-ops-status-tabs .view-chip {
  min-height: 29px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.artist-ops-editor-panel {
  overflow: visible;
  border: 0;
  background: transparent;
}

.artist-ops-editor-header {
  align-items: flex-start;
  border: 0;
  background: transparent;
  padding: 12px 6px 20px;
}

.artist-ops-editor-header .artist-ops-identity {
  align-items: flex-start;
  gap: 18px;
}

.artist-ops-hero-avatar .artist-avatar.large {
  width: 78px;
  height: 78px;
  border-width: 2px;
  font-size: 20px;
}

.artist-ops-editor-header .artist-ops-identity-copy {
  display: grid;
  gap: 7px;
}

.artist-ops-title-row {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  flex-wrap: wrap;
}

.artist-ops-title-row h2 {
  color: #111111;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
}

.artist-ops-editor-header .artist-ops-profile-state {
  color: var(--muted);
  font-size: 12px;
}

.artist-ops-identity-meta {
  display: flex !important;
  align-items: center;
  gap: 9px 18px !important;
  flex-wrap: wrap;
  margin-top: 3px;
}

.artist-ops-identity-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

a.artist-ops-identity-item:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artist-ops-identity-item svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 1.5px solid #111111;
  border-radius: 999px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  padding: 4px;
}

.artist-ops-header-actions {
  display: flex !important;
  gap: 8px !important;
}

.artist-ops-header-actions-read {
  flex-direction: column;
  align-items: stretch;
  min-width: 142px;
}

.artist-ops-header-actions-read .artist-report-export-button {
  order: initial;
}

.artist-ops-header-actions button,
.artist-ops-edit-button {
  border-radius: 999px;
}

.artist-ops-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.artist-ops-metric {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(222, 219, 210, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  padding: 13px 15px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(38, 35, 28, 0.035);
}

.artist-ops-metric > svg {
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #111111;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  padding: 7px;
}

.artist-ops-metric > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.artist-ops-metric strong {
  overflow: hidden;
  color: #111111;
  font-size: 18px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-ops-metric small,
.artist-ops-metric-action span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.artist-ops-metric-action {
  cursor: pointer;
}

.artist-ops-metric-action:hover {
  border-color: #111111;
  background: #ffffff;
}

.artist-ops-metric-action span {
  color: #111111;
  font-size: 12px;
}

.artist-ops-form {
  display: grid;
  gap: 16px;
  padding: 0;
}

.artist-ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.artist-ops-dashboard-card,
.artist-ops-details-card,
.artist-ops-edit-grid > .artist-ops-section,
.artist-ops-form > .artist-ops-section {
  min-width: 0;
  border: 1px solid rgba(222, 219, 210, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(38, 35, 28, 0.045);
}

.artist-ops-dashboard-card {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 220px;
  padding: 18px 20px;
}

.artist-ops-dashboard-card h3,
.artist-ops-section h3,
.artist-ops-details-card summary {
  color: #111111;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.artist-ops-card-body {
  min-width: 0;
}

.artist-ops-card-booked {
  min-height: 180px;
}

.artist-ops-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.artist-ops-feature-grid .artist-ops-calculators-card .artist-ops-section-header {
  align-items: flex-start;
  flex-direction: column;
}

.artist-ops-summary-row {
  display: grid;
  grid-template-columns: minmax(95px, 0.72fr) minmax(0, 1.3fr);
  gap: 4px 10px;
  align-items: baseline;
  padding: 7px 0;
}

.artist-ops-summary-row + .artist-ops-summary-row {
  border-top: 1px solid rgba(222, 219, 210, 0.65);
}

.artist-ops-summary-row strong {
  font-size: 11px;
}

.artist-ops-summary-row span,
.artist-ops-summary-row a {
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.artist-ops-summary-row small {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.artist-ops-gallery-summary {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.artist-ops-alert-list,
.artist-ops-note-list {
  display: grid;
  gap: 7px;
}

.artist-ops-note-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.artist-ops-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.artist-ops-alert-item > span {
  color: var(--muted);
}

.artist-ops-note-preview {
  display: grid;
  gap: 3px;
}

.artist-ops-note-preview strong {
  font-size: 10px;
  text-transform: uppercase;
}

.artist-ops-note-preview p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.artist-ops-card-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.artist-ops-booked-list {
  display: grid;
}

.artist-ops-booked-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: start;
  padding: 10px 0;
}

.artist-ops-booked-row + .artist-ops-booked-row {
  border-top: 1px solid rgba(222, 219, 210, 0.7);
}

.artist-ops-booked-row time {
  color: #111111;
  font-size: 12px;
  font-weight: 800;
}

.artist-ops-booked-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.artist-ops-booked-row strong {
  font-size: 12px;
}

.artist-ops-booked-row span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.artist-ops-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.artist-ops-details-grid-top {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.artist-ops-details-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.artist-ops-details-column {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.artist-ops-details-slot {
  display: grid;
  min-width: 0;
}

.artist-ops-details-card {
  align-self: start;
  overflow: hidden;
}

.artist-ops-details-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.artist-ops-details-card summary::-webkit-details-marker {
  display: none;
}

.artist-ops-details-toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.artist-ops-details-toggle::before,
.artist-ops-details-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #111111;
  content: "";
  transform: translate(-50%, -50%);
}

.artist-ops-details-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.artist-ops-details-card[open] .artist-ops-details-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.artist-ops-details-body {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 4px 18px 18px;
}

.artist-ops-details-body > .artist-ops-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 14px 0 0;
}

.artist-ops-details-body > .artist-ops-section + .artist-ops-section {
  border-top: 1px solid var(--line);
}

.artist-ops-details-body .artist-ops-section h3 {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.artist-ops-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.artist-ops-edit-grid > .artist-ops-section {
  align-content: start;
  padding: 18px;
}

.artist-ops-edit-grid > .artist-ops-section:has(textarea),
.artist-ops-edit-grid > .artist-ops-section:has(.artist-photo-field) {
  grid-column: 1 / -1;
}

.artist-ops-calculators-card,
.artist-ops-form > .artist-ops-section {
  grid-column: 1 / -1;
}

.artist-ops-feature-grid > .artist-ops-calculators-card {
  grid-column: auto;
}

.artist-ops-calculators-card {
  min-height: 0;
}

.artist-ops-calculators-card .artist-ops-section-header > div {
  display: grid;
  gap: 2px;
}

.artist-ops-card-kicker {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-ops-pricing-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 7px;
  align-items: center;
  justify-content: start;
  width: auto;
  margin: 0;
}

.artist-ops-pricing-actions button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.artist-ops-calculator-list {
  gap: 12px;
}

.artist-ops-calculator-list > .artist-ops-calculator {
  overflow: hidden;
  border-radius: 14px;
  background: #faf9f6;
  padding: 0;
  box-shadow: none;
}

.artist-ops-calculator-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.artist-ops-calculator-summary::-webkit-details-marker {
  display: none;
}

.artist-ops-calculator-summary > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.artist-ops-calculator-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artist-ops-calculator-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.artist-ops-calculator-summary-total {
  color: #111111;
  font-size: 13px;
  font-weight: 800;
}

.artist-ops-calculator[open] .artist-ops-details-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.artist-ops-calculator-body {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.artist-ops-manage-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid rgba(200, 195, 184, 0.75);
  padding: 14px 4px 0;
}

.artist-ops-manage-row .danger-button {
  min-height: 34px;
  background: transparent;
  font-size: 11px;
}

.artist-offboarding-sync-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  border: 1px solid #e7b06b;
  border-radius: 8px;
  background: #fff3df;
  color: #6f4308;
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
}

.artist-offboarding-sync-warning button {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .artist-ops-manage-row,
  .artist-offboarding-sync-warning {
    align-items: stretch;
    flex-direction: column;
  }

  .artist-ops-manage-row button,
  .artist-offboarding-sync-warning button {
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .artist-ops-list-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-toolbar-row {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .artist-ops-status-tabs {
    justify-content: flex-start;
  }

  .artist-ops-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .artist-ops-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .artist-ops-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .artist-ops-list-panel {
    gap: 9px;
    padding: 0 1px 3px;
  }

  .artist-ops-toolbar-row,
  .artist-ops-summary-grid,
  .artist-ops-feature-grid,
  .artist-ops-details-grid,
  .artist-ops-details-columns,
  .artist-ops-edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-details-column {
    display: contents;
  }

  .artist-ops-details-slot {
    order: var(--artist-ops-detail-order);
  }

  .artist-ops-add .secondary-button {
    width: 100%;
  }

  .artist-ops-editor-header {
    align-items: stretch;
    flex-direction: column;
    padding: 8px 2px 16px;
  }

  .artist-ops-editor-header .artist-ops-identity {
    align-items: center;
  }

  .artist-ops-header-actions {
    width: 100%;
  }

  .artist-ops-header-actions button {
    flex: 1 1 130px;
  }

  .artist-ops-header-actions-read button {
    flex: none;
    width: 100%;
  }

  .artist-ops-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artist-ops-card-booked,
  .artist-ops-edit-grid > .artist-ops-section:has(textarea),
  .artist-ops-edit-grid > .artist-ops-section:has(.artist-photo-field) {
    grid-column: auto;
  }

  .artist-ops-dashboard-card {
    min-height: 0;
    border-radius: 17px;
    padding: 17px;
  }

  .artist-ops-summary-row {
    grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  }

  .artist-ops-booked-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

@media (max-width: 480px) {
  .artist-ops-profile-nav,
  .artist-ops-landing-header {
    align-items: stretch;
    flex-direction: column;
  }

  .artist-ops-profile-nav .artist-ops-mobile-field,
  .artist-ops-back-button {
    width: 100%;
  }

  .artist-ops-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-editor-header .artist-ops-identity {
    align-items: flex-start;
  }

  .artist-ops-hero-avatar .artist-avatar.large {
    width: 64px;
    height: 64px;
  }

  .artist-ops-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .artist-ops-metric {
    min-height: 64px;
  }

  .artist-ops-calculator-summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    gap: 8px;
  }

  .artist-ops-identity-meta {
    gap: 8px 12px !important;
  }
}

@media (max-width: 807px) {
  .daily-hq-date-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-hq-date-actions {
    justify-content: flex-start;
  }

  .daily-hq-date-actions .primary-button {
    flex: 1 1 180px;
  }

}

@media (max-width: 640px) {
  .daily-hq-activity-layout,
  .daily-hq-notable-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .daily-hq-notable-column {
    display: contents;
  }

  .daily-hq-notable-slot {
    order: var(--daily-hq-item-order);
  }
}

@media (max-width: 400px) {
  .daily-hq-tabs {
    width: 100%;
  }

  .daily-hq-tabs button {
    flex: 1;
    min-width: 0;
  }

  .daily-hq-date-actions input {
    flex: 1;
    min-width: 0;
  }

  .daily-hq-date-actions .primary-button {
    flex-basis: 100%;
  }

  .daily-hq-supporting-records {
    grid-template-columns: 1fr;
  }

  .daily-hq-overview-card,
  .daily-hq-section,
  .daily-hq-evidence,
  .daily-hq-empty {
    padding: 14px;
  }

  .daily-hq-change-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-hq-jump-target.is-accented {
    animation: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft), 0 5px 13px rgba(20, 20, 20, 0.06);
  }
}


/* Booking workspace: the existing lead editor becomes an in-page module. */
.booking-workspace-grid { display: contents; }
#bookingChecklist { display: none; }
.booking-workspace-open main.workspace > :not(.booking-workspace) { display: none !important; }
.drawer.booking-workspace { position: static; display: block; background: transparent; z-index: auto; min-width: 0; }
.booking-workspace .drawer-panel { width: 100%; height: auto; overflow: visible; background: transparent; box-shadow: none; }
.booking-workspace .drawer-header { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 20px; grid-template-columns: minmax(0, 1fr) auto auto auto auto auto; align-items: center; }
.booking-workspace .drawer-header h2 { font-size: clamp(20px, 2vw, 30px); overflow-wrap: anywhere; }
.booking-workspace .drawer-edit-button, .booking-workspace .drawer-save-button { margin-top: 0; }
.booking-workspace .booking-back { width: auto; padding-inline: 12px; font-size: 13px; }
.booking-workspace .booking-workspace-grid { display: grid; grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.booking-workspace #bookingChecklist { display: block; background: var(--surface); padding: 24px; border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.booking-lead-details { min-width: 0; }
.booking-workspace .lead-read-summary, .booking-workspace .lead-form { padding: 0; }
.booking-workspace .lead-read-section, .booking-workspace .form-section { background: var(--surface); border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
.booking-checklist-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.booking-checklist-heading h2 { margin: 5px 0 0; font-size: 21px; }
.booking-checklist-heading > strong { white-space: nowrap; color: #33674b; background: #e9f2eb; border-radius: 30px; padding: 8px 12px; font-size: 13px; }
.booking-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.booking-checklist-intro, .booking-checklist-status { color: var(--muted); font-size: 12px; line-height: 1.7; }
#bookingChecklist progress { width: 100%; height: 6px; accent-color: #477b5e; border: none; border-radius: 5px; overflow: hidden; }
#bookingChecklist progress::-webkit-progress-bar { background: #edf0ea; }
#bookingChecklist progress::-webkit-progress-value { background: #477b5e; }
.booking-checklist-items, .booking-removed ol, .booking-history ol { padding: 0; margin: 12px 0; list-style: none; }
.booking-checklist-row { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.booking-check { flex: 0 0 25px; width: 25px; height: 25px; padding: 0; border: 1.5px solid #b3b7ae; border-radius: 6px; background: #fff; color: #fff; font-size: 16px; }
.is-complete .booking-check { background: #477b5e; border-color: #477b5e; }
.booking-item-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.booking-item-text small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.is-complete .booking-item-text > span { color: #477b5e; }
.booking-item-actions { display: flex; gap: 2px; }
.booking-item-actions button { border: none; background: transparent; min-width: 25px; min-height: 32px; padding: 3px; color: var(--muted); }
.booking-item-actions button:hover:not(:disabled) { background: #edf0ea; color: var(--ink); border-radius: 5px; }
.booking-item-actions button:disabled { opacity: .25; }
.booking-add-item { display: flex; align-items: end; gap: 8px; margin-top: 20px; }
.booking-add-item label { flex: 1; min-width: 0; font-size: 12px; }
.booking-add-item input { margin-top: 6px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.booking-add-item button { white-space: nowrap; font-size: 12px; }
.booking-removed, .booking-history { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-size: 12px; }
.booking-history li { margin-block: 12px; }
.booking-history li span { display: block; color: var(--muted); margin-top: 4px; }
.booking-checklist-error { background: #fff0ec; color: #853622; border-radius: 8px; padding: 12px; font-size: 12px; }
.booking-checklist-error button { margin-top: 8px; }
@media (max-width: 1100px) {
  .booking-workspace .drawer-header { position: static; display: flex; flex-wrap: wrap; }
  .booking-workspace .drawer-header > div:first-child { flex: 1 0 100%; }
}
@media (max-width: 1000px) {
  .booking-workspace .booking-workspace-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .booking-workspace #bookingChecklist { padding: 16px; }
  .booking-workspace .drawer-header { padding: 16px; }
  .booking-item-actions button { min-width: 25px; min-height: 36px; }
  .booking-check { min-width: 28px; min-height: 28px; }
  .booking-add-item { flex-wrap: wrap; }
}
/* Booking refinement: shared profile hierarchy and explicit, accessible actions. */
.booking-section-nav, .booking-edit-bar, #bookingHeaderBadges { display: none; }
.booking-workspace .booking-section-nav { display: flex; gap: 8px; margin: 0 0 18px; flex-wrap: wrap; }
.booking-section-nav button, .booking-field-edit { min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.booking-workspace #bookingHeaderBadges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
#bookingHeaderBadges > span { background: #edf0ea; border-radius: 20px; padding: 5px 10px; color: #35463b; font-size: 12px; }
.booking-workspace:not(.booking-editing) .master-status-control, .booking-workspace [data-booking-header-field] { display: none; }
.booking-workspace.booking-editing .booking-edit-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; position: sticky; bottom: 0; z-index: 5; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 -4px 18px #0000000d; margin-top: 20px; }
.booking-edit-bar span { margin-right: auto; font-size: 13px; color: var(--muted); }
.booking-edit-bar button { min-height: 44px; }
.booking-checklist-heading { margin-bottom: 12px; }
.booking-customize { min-height: 44px; margin-top: 10px; }
.booking-checklist-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
.booking-check { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
.booking-connected-status { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); font-size: 22px; }
.is-complete .booking-connected-status { color: #477b5e; }
.booking-item-text { font-size: 14px; }
.booking-item-text small { font-size: 12px; overflow-wrap: anywhere; }
.booking-item-actions { grid-column: 2 / -1; justify-content: flex-end; }
.booking-item-actions button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; }
.booking-workspace :is(button,input,summary):focus-visible { outline: 3px solid #477b5e; outline-offset: 3px; }
.booking-workspace :is(h2,h3,[data-toggle-lead-drawer-section]) { scroll-margin-top: 24px; }
.booking-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
  .booking-editing .booking-checklist-body { display: none; }
  .booking-editing .booking-checklist-status { margin-top: 8px; }
}
@media (max-width: 640px) {
  .booking-edit-bar span { display: none; }
  .booking-workspace.booking-editing .booking-edit-bar { justify-content: stretch; }
  .booking-edit-bar button { flex: 1; }
}
.booking-workspace.booking-editing .booking-edit-bar { position: fixed; bottom: 12px; margin: 0; box-sizing: border-box; }
.booking-workspace.booking-editing .drawer-panel { padding-bottom: 110px; }

/* Compact visible checks retain a 44px hit area; header actions share one baseline. */
.booking-check { position: relative; isolation: isolate; border: 0; background: transparent; }
.booking-check::before { content: ""; position: absolute; inset: 7px; z-index: -1; border: 1.5px solid #b3b7ae; border-radius: 6px; background: #fff; }
.is-complete .booking-check { background: transparent; }
.is-complete .booking-check::before { background: #477b5e; border-color: #477b5e; }
.booking-workspace .drawer-header { display: flex; gap: 12px; align-items: center; }
.booking-workspace .drawer-header > div:first-child { flex: 1; min-width: 0; }
.booking-workspace .drawer-header > button { flex-shrink: 0; align-self: center; margin-top: 0; min-height: 44px; }
@media (max-width: 1000px) {
  .booking-workspace .drawer-header > div:first-child { flex: 1 0 100%; }
}

.booking-workspace .booking-field-target:focus { outline: 3px solid #477b5e; outline-offset: 3px; box-shadow: 0 0 0 6px #477b5e1f; }

button.booking-connected-status { padding: 0; border: 0; background: transparent; border-radius: 6px; cursor: pointer; }
button.booking-connected-status:hover:not(:disabled) { background: #edf0ea; }
button.booking-connected-status:disabled { cursor: default; }
