body.casting-manager {
  --casting-ink: #102621;
  --casting-muted: #53685e;
  --casting-green: #177a59;
  --casting-line: #d6dfd7;
  margin: 0;
  background: #f8f7f1;
  color: var(--casting-ink);
  font: 400 1rem/1.6 "Source Sans 3", Arial, sans-serif;
}
.casting-manager *, .casting-manager *::before, .casting-manager *::after { box-sizing: border-box; }
.casting-manager [hidden] { display: none !important; }
.casting-manager h1, .casting-manager h2, .casting-manager h3, .casting-manager h4 { font-family: "Manrope", Arial, sans-serif; line-height: 1.2; color: var(--casting-ink); }
.casting-manager h1 { margin: 0 0 20px; font-size: clamp(2.5rem, 5.6vw, 4.75rem); letter-spacing: -.045em; }
.casting-manager h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 16px; }
.casting-manager h3 { font-size: 1.25rem; margin: 0 0 14px; }
.casting-manager h4 { font-size: 1rem; margin: 0; }
.casting-manager p { margin: 0 0 18px; }
.casting-manager a { color: inherit; }
.casting-manager button, .casting-manager input, .casting-manager select, .casting-manager textarea { font: inherit; }
.casting-manager button, .casting-manager a, .casting-manager input, .casting-manager select, .casting-manager textarea { -webkit-tap-highlight-color: transparent; }
.casting-manager :focus-visible { outline: 3px solid #cf9a32; outline-offset: 4px; }
.casting-manager .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 20px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font: 700 .91rem/1.45 "Manrope", Arial, sans-serif; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.casting-manager .btn-primary { background: #147858; border-color: #147858; color: #fff; }
.casting-manager .btn-primary:hover { background: #0e5b43; border-color: #0e5b43; }
.casting-manager .btn-outline { background: transparent; border-color: #91a69a; color: #143d2c; }
.casting-manager .btn-outline:hover { background: #eef4ef; border-color: #486c58; }
.casting-manager .btn:disabled { opacity: .6; cursor: wait; }
.casting-wrap { max-width: 1180px; margin: 0 auto; padding-inline: 28px; }
.casting-intro { padding: 64px 0 58px; border-bottom: 1px solid #d7dfd7; background: #eeeee4; }
.casting-intro > .casting-wrap > p:not(.casting-kicker) { max-width: 660px; font-size: 1.18rem; color: #445d4e; }
.casting-kicker { margin-bottom: 14px !important; color: #2c6b4e; font: 800 .76rem/1.5 "Manrope", Arial, sans-serif; text-transform: uppercase; letter-spacing: .09em; }
.casting-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 26px; }
.casting-text-link { display: inline-block; color: #176343 !important; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.casting-text-link:hover { text-decoration: underline; }
.casting-workspace { padding-top: 38px; padding-bottom: 80px; min-height: 360px; }
.casting-notice { padding: 16px 20px; border: 1px solid #cbdccf; border-left: 4px solid #699075; border-radius: 5px; background: #eef6ef; overflow-wrap: anywhere; }
.casting-notice:empty { display: none; }
.casting-notice.error, .casting-notice.is-error { border-color: #e7c9ba; border-left-color: #aa5537; background: #fff3ed; color: #7a301e; }
.casting-notice.success, .casting-notice.is-success { border-color: #b7d5be; background: #edf7ed; }
#refresh-state { margin: 0 0 24px; }
.casting-card { min-width: 0; padding: 28px; border: 1px solid var(--casting-line); border-radius: 8px; background: #fffef9; }
.casting-card > :last-child { margin-bottom: 0; }
.casting-card .casting-text-link { margin-top: 20px; }
.casting-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 18px 0 24px; }
.casting-section-heading h2 { margin: 0; }
#manage-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#manage-filter label { font-weight: 600; }
#project-filter { min-width: 210px; max-width: 100%; }
.casting-list { display: grid; gap: 16px; }
.casting-list > a, .casting-list > article, .casting-list > li, .casting-list > section { display: block; min-width: 0; padding: 24px 28px; background: #fffef9; border: 1px solid var(--casting-line); border-radius: 8px; text-decoration: none; }
.casting-list > a:hover { border-color: #77a68a; background: #fcfff8; }
.casting-list h3 { margin: 4px 0 8px; overflow-wrap: anywhere; }
.casting-list p { color: var(--casting-muted); margin: 8px 0; }
.casting-list .casting-actions { margin-top: 14px; }
.casting-empty { padding: 42px 28px; }
.casting-back { margin-bottom: 24px; }
.casting-detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.casting-detail-heading h2 { overflow-wrap: anywhere; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.casting-detail-heading .casting-kicker { margin-bottom: 10px !important; }
.casting-meta { color: var(--casting-muted); font-size: .9rem; overflow-wrap: anywhere; }
.casting-badge { display: inline-block; flex: 0 0 auto; padding: 5px 12px; border: 1px solid #c2d5c6; border-radius: 100px; background: #eaf3e9; color: #31583c; font-size: .82rem; font-weight: 700; }
.casting-badge:empty { display: none; }
.casting-state-card { margin-bottom: 24px; border-top: 3px solid #cfab64; }
.casting-facts { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 20px 0 0; }
.casting-facts dt { font-size: .78rem; font-weight: 700; color: var(--casting-muted); }
.casting-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.casting-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); gap: 24px; align-items: start; }
.casting-side { display: grid; gap: 20px; }
.casting-help { color: var(--casting-muted); font-size: .96rem; }
.casting-form { display: grid; gap: 20px; }
.casting-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.casting-field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.casting-field label { color: #18372a; font-weight: 600; }
.casting-manager input, .casting-manager select, .casting-manager textarea { min-height: 46px; width: 100%; padding: 10px 12px; border: 1px solid #a9bbae; border-radius: 4px; background: #fff; color: #18372a; }
.casting-manager textarea { resize: vertical; line-height: 1.5; }
.casting-manager input:focus, .casting-manager select:focus, .casting-manager textarea:focus { outline: 3px solid #177a5926; border-color: #177a59; }
.casting-manager input:disabled, .casting-manager select:disabled, .casting-manager textarea:disabled { background: #f0f1ec; color: #68766b; }
.casting-form > button { justify-self: start; }
.casting-side .casting-form > button { justify-self: stretch; }
.casting-new-project { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--casting-line); }
.casting-close { border-color: #caa798 !important; color: #85482f !important; }
.casting-close:hover { background: #fff0e8 !important; }
.casting-latest { margin-bottom: 24px; border-color: #d8c89f; background: #fff9e9; }
#latest-state-summary { overflow-wrap: anywhere; white-space: pre-wrap; }
#latest-state-summary p { margin-bottom: 10px; }
@media (max-width: 800px) {
  .casting-intro { padding: 42px 0; }
  .casting-detail-grid { grid-template-columns: 1fr; }
  .casting-section-heading { align-items: start; flex-direction: column; }
  .casting-detail-heading { flex-direction: column; gap: 12px; }
}
@media (max-width: 500px) {
  .casting-wrap { padding-inline: 18px; }
  .casting-workspace { padding-top: 24px; padding-bottom: 48px; }
  .casting-card { padding: 22px 18px; }
  .casting-form-row { grid-template-columns: 1fr; }
  .casting-actions { align-items: stretch; gap: 14px; }
  .casting-actions .btn { width: 100%; }
  .casting-list > a, .casting-list > article, .casting-list > li, .casting-list > section { padding: 22px 18px; }
  #manage-filter { width: 100%; }
  #project-filter { flex: 1; min-width: 0; }
  .casting-form > button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .casting-manager *, .casting-manager *::before, .casting-manager *::after { scroll-behavior: auto !important; transition: none !important; }
}
