:root {
  color-scheme: light;
  --ink: #20252b;
  --muted: #65717f;
  --soft: #eef2f5;
  --line: #d8e0e6;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --brand: #0d6b72;
  --brand-2: #7c3f58;
  --ok: #227a49;
  --warn: #9a6417;
  --risk: #a13e42;
  --dark: #151a20;
  --shadow: 0 14px 35px rgba(24, 34, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #e8edf1;
}

body.pvc-cms-active {
  background: #e8edf1 !important;
}

body.pvc-cms-active #header,
body.pvc-cms-active header.header,
body.pvc-cms-active .header-wrapper,
body.pvc-cms-active .page-title,
body.pvc-cms-active #footer,
body.pvc-cms-active .footer-wrapper,
body.pvc-cms-active footer.footer,
body.pvc-cms-active .flatsome-cookies,
body.pvc-cms-active #cookie-notice,
body.pvc-cms-active .cookie-notice,
body.pvc-cms-active .cookie-notice-container,
body.pvc-cms-active .cky-consent-container,
body.pvc-cms-active .cc-window,
body.pvc-cms-active #catapult-cookie-bar,
body.pvc-cms-active .moove-gdpr-info-bar,
body.pvc-cms-active .woocommerce-store-notice,
body.pvc-cms-active #tidio-chat,
body.pvc-cms-active .tidio-chat-iframe,
body.pvc-cms-active .joinchat,
body.pvc-cms-active .chaty-widget,
body.pvc-cms-active .woot-widget-bubble,
body.pvc-cms-active iframe[title*="chat" i],
body.pvc-cms-active iframe[src*="tidio" i],
body.pvc-cms-active iframe[src*="chat" i] {
  display: none !important;
}

body.pvc-cms-active #wrapper,
body.pvc-cms-active #main,
body.pvc-cms-active .page-wrapper,
body.pvc-cms-active .content-area,
body.pvc-cms-active .entry-content,
body.pvc-cms-active .row-main,
body.pvc-cms-active .large-12 {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #e8edf1 !important;
}

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

button {
  cursor: pointer;
}

.pvc-login-required {
  max-width: 760px;
  margin: 44px auto;
  padding: 0 20px;
  color: var(--ink);
}

.pvc-login-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pvc-login-card span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pvc-login-card h2 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.pvc-login-card p {
  max-width: 560px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.pvc-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pvc-login-button,
.pvc-login-secondary {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.pvc-login-button {
  color: #fff;
  background: var(--brand);
}

.pvc-login-secondary {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

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

.pvc-wp-embedded {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  color: #f7fbfd;
  background: linear-gradient(180deg, #142027 0%, #1e2a32 100%);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand-block {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #0d6b72;
  font-weight: 800;
}

.brand-block h1 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.brand-block p {
  margin: 3px 0 0;
  color: #bdc8d0;
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  color: #d9e2e8;
  text-align: left;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
}

.side-panel {
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbe5ea;
  font-size: 12px;
}

.side-panel strong {
  color: #fff;
  font-size: 15px;
}

.side-label {
  color: #9fb0ba;
  text-transform: uppercase;
  font-size: 11px;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.topbar,
.filters,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.topbar {
  min-height: 82px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.section-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 3px 0 0;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.pvc-wp-embedded .topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.pvc-wp-embedded .top-actions {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}

.search-box,
.view-as-box,
.filters label,
.field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box input,
.view-as-box select,
.filters select,
.field input,
.field select,
.field textarea {
  min-height: 38px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  font-weight: 500;
}

.pvc-wp-embedded input,
.pvc-wp-embedded select,
.pvc-wp-embedded textarea,
.pvc-wp-embedded .field input,
.pvc-wp-embedded .field select,
.pvc-wp-embedded .field textarea {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

.pvc-wp-embedded input::placeholder,
.pvc-wp-embedded textarea::placeholder {
  color: #6b7683 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #6b7683;
}

.pvc-wp-embedded .field span,
.pvc-wp-embedded .search-box span,
.pvc-wp-embedded .view-as-box span,
.pvc-wp-embedded .filters label span,
.pvc-wp-embedded .check-field,
.pvc-wp-embedded .check-pill {
  color: #475763 !important;
  -webkit-text-fill-color: #475763;
}

.pvc-wp-embedded .check-pill input {
  accent-color: var(--brand);
}

.pvc-wp-embedded .table-wrap,
.pvc-wp-embedded .table-wrap table,
.pvc-wp-embedded .table-wrap thead,
.pvc-wp-embedded .table-wrap tbody,
.pvc-wp-embedded .table-wrap tr,
.pvc-wp-embedded .table-wrap th,
.pvc-wp-embedded .table-wrap td {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

.pvc-wp-embedded .table-wrap th {
  color: #475763 !important;
  -webkit-text-fill-color: #475763;
}

.pvc-wp-embedded .table-wrap ::selection {
  color: #fff;
  background: #0d6b72;
  -webkit-text-fill-color: #fff;
}

.search-box input {
  width: min(34vw, 360px);
}

.view-as-box select {
  width: min(24vw, 240px);
  font-weight: 800;
}

.pvc-wp-embedded .search-box input,
.pvc-wp-embedded .view-as-box select {
  width: 100%;
}

.view-as-box span {
  color: var(--brand);
}

.secondary-action,
.primary-action,
.mini-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
}

.gallery-action {
  align-self: end;
  border-color: #bcd5d8;
  color: var(--brand);
  background: #eefafa;
}

.pvc-wp-embedded .secondary-action {
  min-width: 86px;
  white-space: nowrap;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
}

.pvc-wp-embedded .gallery-action {
  min-width: 128px;
  border-color: #8bbfc5;
  color: var(--brand) !important;
  background: #e6f7f6;
  -webkit-text-fill-color: var(--brand);
}

.primary-action {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.mini-action {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.mini-action.danger {
  border-color: #d8a3a3;
  color: #9f2f2f;
  background: #fff7f7;
}

.secondary-action:hover,
.mini-action:hover {
  border-color: var(--brand);
}

.mini-action.danger:hover {
  border-color: #b42323;
}

.filters {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.filters label[hidden] {
  display: none !important;
}

.content-panel {
  min-height: calc(100vh - 154px);
  padding: 16px;
}

.loading-state,
.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  display: grid;
  align-content: space-between;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  font-size: 30px;
  line-height: 1;
}

.metric small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

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

.ar-note {
  gap: 6px;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.section-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.section-head {
  min-height: 46px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.section-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink) !important;
  opacity: 1 !important;
}

.section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.model-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-rows: 184px auto;
}

.model-cover {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  background: #e9eef2;
}

.model-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: #e9eef2;
}

.photo-thumb img,
.pending-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: #d5dde3;
}

.media-button {
  appearance: none;
  font: inherit;
}

.media-button.media-missing {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #e4e9ed, #e4e9ed 10px, #f1f4f6 10px, #f1f4f6 20px);
  font-size: 12px;
  font-weight: 900;
  cursor: default;
}

img.media-missing {
  display: none;
}

.photo-thumb {
  width: 72px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  background: #d5dde3;
}

.image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #e4e9ed, #e4e9ed 10px, #f1f4f6 10px, #f1f4f6 20px);
  font-weight: 800;
}

.save-flash {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #b9d8c7;
  border-radius: 8px;
  background: #edf8f1;
  color: #1e693f;
  font-weight: 800;
}

.save-flash.warn {
  border-color: #e4c899;
  background: #fff8eb;
  color: #8b5512;
}

.form-warning {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e4c899;
  border-radius: 8px;
  background: #fff8eb;
  color: #8b5512;
  font-weight: 800;
}

.form-warning[hidden] {
  display: none !important;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(10, 13, 16, 0.9);
}

.media-lightbox-panel {
  width: min(1180px, 100%);
  height: min(92vh, 980px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1317;
  color: #f7fbfd;
}

.media-lightbox-toolbar {
  min-height: 54px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #151b20;
}

.media-lightbox-toolbar div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.media-lightbox-toolbar strong {
  overflow-wrap: anywhere;
}

.media-lightbox-toolbar span {
  color: #b8c5cf;
  font-weight: 800;
}

.media-lightbox-body {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 14px 80px;
}

.media-lightbox-body img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.lightbox-button,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: #ffffff;
  color: #151a20;
  font-weight: 900;
}

.lightbox-button {
  padding: 10px 14px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  min-width: 58px;
  min-height: 52px;
  padding: 12px;
}

.lightbox-nav.prev {
  left: 14px;
}

.lightbox-nav.next {
  right: 14px;
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.model-body {
  padding: 12px;
  display: grid;
  gap: 9px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card-title-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-title-row h3 {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  color: var(--ink) !important;
  opacity: 1 !important;
  visibility: visible !important;
  overflow-wrap: anywhere;
}

.card-actions {
  display: flex;
  gap: 6px;
  align-items: start;
  flex-wrap: wrap;
}

.meta-line {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: normal;
}

.phone-line {
  padding: 7px 8px;
  border: 1px solid #cfdde7;
  border-radius: 7px;
  background: #f7fbfd;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.phone-line strong {
  color: var(--muted);
}

.phone-value {
  min-width: 0;
}

.phone-copy {
  min-height: 28px;
  padding: 4px 8px;
  flex: 0 0 auto;
}

.tag-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #4f5d68;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: break-word;
  white-space: normal;
}

.tag.ok {
  color: var(--ok);
  border-color: rgba(34, 122, 73, 0.28);
  background: #edf8f1;
}

.tag.warn {
  color: var(--warn);
  border-color: rgba(154, 100, 23, 0.27);
  background: #fff7e8;
}

.tag.hot {
  color: #7c2d12;
  border-color: rgba(190, 97, 30, 0.36);
  background: #fff1df;
}

.tag.risk {
  color: var(--risk);
  border-color: rgba(161, 62, 66, 0.28);
  background: #fff0f1;
}

.contact-links {
  display: grid;
  gap: 4px;
}

.contact-links a,
.text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-links a:hover,
.text-link:hover {
  text-decoration: underline;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.pipeline-column {
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  overflow: hidden;
}

.pipeline-head {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.pipeline-head strong {
  font-size: 13px;
}

.pipeline-list {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
}

.shoot-card,
.list-row,
.outreach-card,
.shooter-card,
.customer-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.shoot-card {
  --order-accent: #9fb0bd;
  --order-tint: #f7fbfd;
  --order-chip: #edf3f7;
  padding: 16px;
  display: grid;
  gap: 14px;
  border: 3px solid #cbd9e2;
  border-left: 9px solid var(--order-accent);
  border-bottom: 6px solid color-mix(in srgb, var(--order-accent) 58%, #cbd9e2);
  background: linear-gradient(180deg, var(--order-tint), #ffffff 46%);
  box-shadow: 0 8px 18px rgba(18, 35, 44, 0.11);
}

.shoot-card.visual-moscow {
  --order-accent: #7c4dff;
  --order-tint: #f8f4ff;
  --order-chip: #efe7ff;
}

.shoot-card.visual-piter {
  --order-accent: #0e7e81;
  --order-tint: #f0fbfb;
  --order-chip: #dff4f4;
}

.shoot-card.visual-travel {
  --order-accent: #c47a13;
  --order-tint: #fff8ea;
  --order-chip: #fff0d0;
}

.shoot-card.visual-unassigned {
  --order-accent: #7b8792;
  --order-tint: #f7f9fb;
  --order-chip: #edf1f4;
}

.shoot-card.visual-other {
  --order-accent: #2f7d4f;
  --order-tint: #f0faf4;
  --order-chip: #e1f4e8;
}

.production-cue {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--order-accent) 34%, #ffffff);
  border-radius: 999px;
  background: var(--order-chip);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.production-line {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.72fr) minmax(132px, 0.72fr);
  gap: 7px;
  align-items: center;
}

.production-cue strong {
  color: var(--order-accent);
  font-size: 11px;
  text-transform: uppercase;
}

.production-cue span:last-child {
  min-width: 0;
}

.cue-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--order-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--order-accent) 18%, transparent);
}

.shoot-card.just-created {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 126, 129, 0.16);
}

.orders-board {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.orders-list {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  padding: 16px;
  align-items: start;
}

.order-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.summary-item {
  min-width: 0;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 251, 253, 0.92);
}

.summary-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.summary-item strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-lines-summary {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.order-line-summary {
  min-width: 0;
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 3px solid #c7d6df;
  border-left: 7px solid var(--order-accent);
  border-bottom: 5px solid color-mix(in srgb, var(--order-accent) 48%, #c7d6df);
  border-radius: 8px;
  background: #fff;
}

.order-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-line-head strong {
  color: var(--brand);
  font-size: 13px;
}

.order-line-head span {
  color: #9a5e10;
  font-size: 11px;
  font-weight: 900;
}

.order-line-buyer {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.order-line-package {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.order-line-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-line-metrics span {
  min-height: 30px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbfd;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.order-line-metrics b {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.order-edit-panel,
.customer-edit-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  overflow: hidden;
}

.order-edit-panel summary,
.customer-edit-panel summary {
  min-height: 36px;
  padding: 9px 11px;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.edit-customer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.order-edit-panel .compact-controls {
  padding: 8px;
}

.order-edit-panel > .inline-field {
  margin: 0 8px 8px;
}

.order-edit-panel > .workflow-actions {
  padding: 0 8px 8px;
}

.shoot-card h4,
.outreach-card h3,
.shooter-card h3,
.customer-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 900;
  color: var(--ink) !important;
  overflow-wrap: anywhere;
}

.shoot-card h4 {
  font-size: 22px;
  line-height: 1.08;
}

.order-title-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.order-model-thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--order-accent) 38%, #ffffff);
  border-radius: 8px;
  overflow: hidden;
  background: #e9eef2;
  color: var(--order-accent);
  font-size: 18px;
  font-weight: 950;
  cursor: zoom-in;
}

.order-model-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.order-model-thumb-empty {
  cursor: default;
}

.quick-assign {
  min-width: 0;
  display: grid;
  gap: 2px;
}

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

.quick-assign select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--order-accent) 32%, var(--line));
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.compact-controls {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.compact-controls .compact-wide {
  grid-column: 1 / -1;
}

.second-order-box,
.order-line-editor {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.second-order-box {
  padding: 0;
}

.second-order-box summary,
.order-line-editor summary {
  min-height: 36px;
  padding: 9px 11px;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.order-line-editor summary {
  color: var(--ink);
}

.second-order-toolbar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.second-order-toolbar .mini-action {
  min-height: 30px;
  padding: 6px 10px;
}

.nested-order-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.nested-order-grid.compact-nested {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 8px 8px;
}

.nested-order-grid label,
.lead-row > div,
.list-row > * {
  min-width: 0;
}

.assignment-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.compact-controls label,
.inline-field,
.assignment-controls label {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.compact-controls select,
.compact-controls input,
.inline-field select,
.inline-field input,
.assignment-controls select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px 7px;
  color: var(--ink);
}

.add-shoot-panel {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.create-order-details {
  background: #fff;
}

.create-order-details > summary {
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.create-order-details[open] > summary {
  border-bottom-color: var(--line);
}

.create-order-details > summary span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.create-order-details > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.add-shoot-form,
.calendar-add-shoot-form,
.add-shooter-form,
.add-customer-form,
.add-prospect-form,
.quick-model-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #fff;
}

.quick-create {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.quick-create summary {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-pill {
  min-height: 34px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: #475763;
  font-size: 12px;
  font-weight: 800;
}

.check-pill input {
  width: 14px;
  height: 14px;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.field.wide {
  grid-column: span 2;
}

.field.full {
  grid-column: 1 / -1;
}

.model-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(150px, 0.8fr) minmax(260px, 2fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.model-picker .field.full {
  grid-column: auto;
}

.model-picker-count {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-field {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.check-field input {
  width: 16px;
  height: 16px;
}

.full-button {
  grid-column: 1 / -1;
}

textarea {
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
  color: var(--ink);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

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

th {
  color: #475763;
  background: var(--panel-2);
  font-size: 11px;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: #fbfcfd;
}

tbody tr:hover td {
  background: #eef7f8;
}

.list-stack {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.list-row {
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.clickable-row,
.clickable-card {
  cursor: pointer;
}

.clickable-card {
  width: 100%;
  text-align: left;
  color: inherit;
}

.clickable-row:hover,
.clickable-card:hover,
.lead-row:hover {
  border-color: var(--brand);
  background: #f4fbfb;
}

.lead-row {
  padding: 10px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.lead-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}

.lead-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.lead-row:has(.lead-thumb.media-missing) {
  grid-template-columns: minmax(0, 1fr);
}

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

.message-card {
  padding: 14px;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.message-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.message-body {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.compact-links {
  margin-top: 4px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.calendar-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.calendar-add-box {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.calendar-add-shoot-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.weekday,
.day-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday {
  min-height: 34px;
  padding: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.day-cell {
  min-height: 118px;
  padding: 7px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: #fff;
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.day-cell.dimmed {
  background: #f5f7f9;
  color: #95a0aa;
}

.day-number {
  font-size: 12px;
  font-weight: 900;
}

.day-add {
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.calendar-item {
  border: 0;
  text-align: left;
  padding: 5px 6px;
  border-radius: 6px;
  background: #e9f4f4;
  color: #174d52;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
  cursor: pointer;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.calendar-item-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.calendar-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-item-copy span {
  display: block;
  color: #45646a;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-model-thumb {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 104, 111, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: #dbe8ea;
  color: #00686f;
  font-size: 9px;
  font-weight: 950;
}

.calendar-model-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.calendar-list-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.calendar-list-row .calendar-model-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 13px;
}

.calendar-list-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.calendar-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.outreach-grid,
.shooter-grid,
.customer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.compact-head {
  align-items: center;
  margin: 10px 0;
}

.view-toggle {
  margin-left: auto;
  display: inline-flex;
  gap: 6px;
}

.view-toggle .active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.outreach-card,
.shooter-card,
.customer-card {
  padding: 12px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact-person-card {
  min-height: 310px;
  align-content: start;
  grid-template-rows: auto auto auto auto auto 1fr;
}

.compact-person-card .card-title-row {
  align-items: start;
}

.card-badge-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.compact-person-card .card-title-row h3 {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.08;
}

.ar-card {
  display: grid;
  gap: 3px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.ar-card strong {
  font-size: 25px;
  line-height: 1;
}

.ar-card span,
.ar-card small {
  color: var(--muted);
  font-weight: 800;
}

.ar-card.risk {
  border-color: #efc7c1;
  background: #fff6f4;
}

.ar-card.risk strong {
  color: #a23b2a;
}

.ar-card.ok {
  border-color: #bfe2cc;
  background: #f3fbf6;
}

.ar-card.ok strong {
  color: #16733d;
}

.ar-list-balance {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 900;
}

.ar-list-balance.risk {
  color: #a23b2a;
  background: #fff6f4;
  border: 1px solid #efc7c1;
}

.ar-list-balance.ok {
  color: #16733d;
  background: #f3fbf6;
  border: 1px solid #bfe2cc;
}

.person-summary {
  min-height: 42px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compact-action {
  min-height: 42px;
  padding: 9px 12px;
}

.person-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
  overflow: hidden;
}

.person-details > summary {
  min-height: 38px;
  padding: 9px 11px;
  color: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

.person-details[open] {
  padding-bottom: 10px;
}

.person-details[open] > summary {
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.person-details .meta-line,
.person-details .contact-links,
.person-details .assigned-list {
  margin-inline: 10px;
}

.login-panel {
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfd;
}

.create-login-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.login-panel label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.login-panel input {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px 7px;
  color: var(--ink);
}

.login-ready {
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--ink);
}

.login-ready span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.schedule-section {
  margin-top: 14px;
}

.assigned-list {
  display: grid;
  gap: 8px;
}

.assigned-list.wide-list {
  padding: 10px;
}

.assigned-shoot {
  padding: 9px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.assigned-shoot strong,
.assigned-shoot span {
  display: block;
}

.assigned-shoot .assigned-model-name {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: 0;
}

.tracker-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.tracker-grid span {
  min-height: 32px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.tracker-grid span.ok {
  border-color: #b8dfc7;
  color: #126b3c;
  background: #ecf9f0;
}

.tracker-grid span.risk {
  border-color: #f1b8bd;
  color: #96343d;
  background: #fff0f2;
}

.tracker-grid b {
  display: block;
  color: var(--ink);
}

.workflow-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.pending-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pending-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.pending-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pending-body {
  display: grid;
  gap: 7px;
}

.assigned-shoot span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.draft-box {
  min-height: 112px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: #36434d;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.photo-tools {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f8fa;
}

.photo-tools summary {
  padding: 8px 10px;
  color: var(--brand);
  font-weight: 950;
  cursor: pointer;
}

.photo-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 10px 10px;
}

.ai-photo-prompt {
  display: grid;
  gap: 4px;
  padding: 0 10px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-photo-prompt textarea {
  min-height: 58px;
  resize: vertical;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.ai-copy {
  margin: 0 10px 10px;
}

.photo-thumb {
  width: 100%;
  height: 54px;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 6px;
  cursor: zoom-in;
  background: #d9e0e5;
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-grid,
  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .add-shoot-form,
  .calendar-add-shoot-form,
  .add-shooter-form,
  .add-customer-form,
  .edit-customer-form,
  .add-prospect-form,
  .quick-model-form,
  .nested-order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-picker .field.full {
    grid-column: 1 / -1;
  }

  .production-line {
    grid-template-columns: 1fr 1fr;
  }

  .production-line .production-cue {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topbar,
  .top-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box input,
  .view-as-box select {
    width: 100%;
  }

  .filters,
  .metric-grid,
  .split-grid,
  .calendar-layout,
  .order-summary,
  .production-line,
  .add-shoot-form,
  .calendar-add-shoot-form,
  .add-shooter-form,
  .add-customer-form,
  .edit-customer-form,
  .add-prospect-form,
  .quick-model-form,
  .model-picker,
  .nested-order-grid,
  .nested-order-grid.compact-nested,
  .pending-summary,
  .pending-grid,
  .lead-row,
  .pending-card {
    grid-template-columns: 1fr;
  }

  .field.wide {
    grid-column: auto;
  }

  .create-order-details > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .production-line .production-cue {
    grid-column: auto;
  }

  .calendar-grid {
    grid-template-columns: repeat(7, minmax(62px, 1fr));
  }

  .day-cell {
    min-height: 92px;
  }

  .media-lightbox {
    padding: 8px;
  }

  .media-lightbox-panel {
    height: 94vh;
  }

  .media-lightbox-body {
    padding: 70px 8px 12px;
  }

  .lightbox-nav {
    top: 8px;
    transform: none;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}
