:root {
  --bg: #f2f4f8;
  --bg-accent: #eaf7f4;
  --ink: #1c2438;
  --muted: #5d6985;
  --brand: #d95b2c;
  --brand-strong: #b84318;
  --line: #d8e0ee;
  --line-strong: #c6d2e6;
  --card: #ffffff;
  --ok: #17804f;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 16px rgba(14, 32, 66, 0.06);
  --shadow-md: 0 14px 30px rgba(14, 32, 66, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(63, 146, 200, 0.1), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(217, 91, 44, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg-accent) 110%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.main-nav-link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.main-nav-link:hover {
  background: #f3f6fb;
}

.main-nav-link.active {
  background: #eef4ff;
  border-color: #bfd0ef;
  color: #2a3e66;
}

.main-nav-link.has-caret::after {
  content: " ▾";
}

.main-nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 240px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  gap: 2px;
}

.nav-dropdown-menu button {
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-dropdown-menu button:hover {
  background: #f3f7ff;
}

.session {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-wrap {
  width: min(1260px, 94vw);
  margin: 24px auto 40px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.hidden {
  display: none !important;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
}

.auth-card h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.auth-subtitle {
  margin: 8px 0 16px;
  color: var(--muted);
  font-weight: 400;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 8px 14px;
  font-weight: 400;
  cursor: pointer;
}

.tab.active {
  border-color: #efc7b6;
  background: #fff3ed;
  color: var(--brand-strong);
}

.auth-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

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

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  accent-color: #2a3e66;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(217, 91, 44, 0.35);
  outline-offset: 1px;
}

.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-weight: 400;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(180deg, #e86f3d, var(--brand));
  border-color: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: linear-gradient(180deg, #e16431, #c84e20);
}

.msg {
  min-height: 22px;
  margin-top: 10px;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 400;
}

body.auth-only .topbar {
  display: none;
}

body.auth-only .app-wrap {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
}

body.auth-only .auth-card {
  width: min(460px, 92vw);
  max-width: none;
  padding: 26px;
}

body.auth-only #appView {
  display: none !important;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}

.nav-btn:hover {
  border-color: var(--line-strong);
}

.nav-btn.active {
  background: #fff4ee;
  border-color: #f1c7b6;
  color: var(--brand-strong);
}

.nav-btn.danger {
  margin-top: 8px;
  color: #a12121;
}

.content {
  display: grid;
  gap: 14px;
  align-content: start;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 240px;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  min-height: 0;
}

.toolbar input[type="search"] {
  max-width: 100%;
}

.toolbar select {
  max-width: 100%;
}

.field {
  position: relative;
}

.toolbar .icon-search {
  width: 100%;
  max-width: 100%;
}

.toolbar .icon-filter {
  width: 100%;
  max-width: 240px;
  justify-self: end;
}

.field input,
.field select {
  padding-left: 36px;
}

.icon-search::before,
.icon-filter::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.7;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}

.icon-search::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%235d6985' stroke-width='2'/%3E%3Cpath d='m20 20-3.8-3.8' stroke='%235d6985' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.icon-filter::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' stroke='%235d6985' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.panel {
  border-radius: var(--radius-lg);
}

.panel h2 {
  margin: 0 0 14px;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  letter-spacing: -0.3px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0 !important;
}

.panel-actions {
  display: flex;
  gap: 10px;
}

.search-page-form {
  display: grid;
  gap: 12px;
}

.search-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, max-content));
  gap: 8px 28px;
  align-items: center;
}

.search-date-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.search-date-range span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.check-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 400;
}

.search-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.search-mode-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 12px;
  font-weight: 400;
  cursor: pointer;
}

.search-mode-btn.active {
  background: #eef4ff;
  border-color: #bfd0ef;
  color: #2a3e66;
}

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

.search-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}

.panel-search .toolbar {
  display: none;
}

.booking-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.booking-title span {
  color: var(--muted);
  font-size: 1.35rem;
  font-family: "Sora", sans-serif;
  font-weight: 400;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.kpis div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #f9fbff;
}

.kpis strong {
  display: block;
  font-size: 1.28rem;
  margin-bottom: 3px;
}

.kpis span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.client-crm-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.client-crm-header h2 {
  margin: 0;
}

.client-crm-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.client-crm-table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.client-crm-table-head,
.client-crm-table-row {
  display: grid;
  grid-template-columns: 70px minmax(220px, 1fr) 260px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
}

.client-crm-table-head {
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  background: #f9fbff;
}

.client-crm-table-row {
  border-bottom: 1px solid var(--line);
}

.client-crm-table-row:last-child {
  border-bottom: 0;
}

.client-crm-table-empty {
  padding: 14px;
  color: var(--muted);
  font-weight: 600;
}

.client-crm-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  background: #f9fbff;
}

.client-form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.client-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.client-form-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.client-crm-form {
  display: grid;
  gap: 16px;
  padding: 16px 20px 18px;
  overflow-x: hidden;
}

.client-crm-form > label,
.client-form-section > label {
  gap: 8px;
  margin: 0;
  line-height: 1.35;
  padding: 2px 0 4px;
}

.client-form-section > label:first-of-type {
  margin-top: 2px;
}

.client-crm-form input,
.client-crm-form select,
.client-crm-form textarea {
  min-height: 46px;
}

.client-crm-form textarea {
  min-height: 96px;
}

.client-form-section {
  border-top: 1px solid var(--line);
  padding: 16px 4px 18px;
}

.client-form-section h4 {
  margin: 0 0 14px;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.client-form-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.client-form-section-head h4 {
  margin: 0;
}

.client-contacts-rows {
  display: grid;
  gap: 14px;
}

.client-contact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.client-form-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 6px;
}

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

.booking-grid label {
  font-size: 0.86rem;
  color: var(--ink);
}

.booking-grid input,
.booking-grid select {
  margin-top: 5px;
}

.booking-submit-wrap {
  display: flex;
  align-items: end;
}

.booking-submit-wrap .btn {
  width: 100%;
}

.form-section-title {
  grid-column: 1 / -1;
  margin: 6px 0 2px;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: var(--ink);
}

.logo-upload-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.settings-logo-preview {
  height: 32px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
}

.actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

textarea[readonly] {
  background: #f8fbff;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  line-height: 1.45;
}

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

.talent-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.talent-categories {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.talent-cat-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.talent-cat-btn.active {
  background: #eef4ff;
  border-color: #bfd0ef;
  color: #2a3e66;
}

.talent-group {
  margin-top: 8px;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.talent-group-title {
  margin: 8px 0 0;
  padding: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 1px dashed var(--line);
}

.talent-head {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 150px minmax(200px, 2fr) 110px 160px 160px;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 2px solid var(--line-strong);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}

.talent-list {
  gap: 0;
}

.talent-list li {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  background: transparent;
}

.talent-row {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) 150px minmax(200px, 2fr) 110px 160px 160px;
  gap: 8px;
  align-items: center;
}

.booking-list-head,
.booking-row {
  display: grid;
  grid-template-columns: 80px minmax(130px, 1fr) minmax(130px, 1fr) minmax(100px, 1fr) 100px 100px 140px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.booking-list-head {
  border-bottom: 2px solid var(--line-strong);
  font-weight: 700;
  color: var(--ink);
  background: #f9fbff;
  border-radius: 12px 12px 0 0;
  margin-top: 16px;
}

.booking-row {
  border-bottom: 1px solid var(--line);
}

.booking-row:last-child {
  border-bottom: 0;
}

.booking-list li {
  padding: 0 !important;
}

.talent-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.talent-name {
  font-weight: 700;
}

.talent-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 2px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 400;
  width: fit-content;
}

.status-chip.active {
  background: #d7efdb;
  color: #246c2d;
}

.status-chip.inactive {
  background: #f3d9d9;
  color: #8d2f2f;
}

.talent-date {
  color: #1a67c4;
  text-decoration: underline;
}

.action-icons {
  display: flex;
  gap: 6px;
}

.icon-btn {
  border: 1px solid var(--line);
  background: #f7f9fc;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  cursor: pointer;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn.tiny {
  padding: 6px 9px;
  font-size: 0.8rem;
  border-radius: 8px;
}

.btn.danger-outline {
  color: #a12121;
  border-color: #efc5c5;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

details + details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(8, 18, 36, 0.5);
}

.modal-card {
  width: min(640px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 14px;
}

.modal-card-lg {
  width: min(1120px, 96vw);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
}

.modal-body {
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.5;
}

.modal-form {
  display: grid;
  gap: 10px;
}

.modal-form .modal-actions {
  display: flex;
  justify-content: end;
  gap: 8px;
}

.talent-profile-form {
  display: grid;
  gap: 12px;
}

.talent-profile-form h4 {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  font-family: "Fraunces", serif;
}

.tp-upload-wrap {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.tp-intro {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tp-intro-fields {
  display: grid;
  gap: 12px;
}

.tp-grid-2,
.tp-grid-3,
.tp-grid-4 {
  display: grid;
  gap: 10px;
}

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

.tp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.tp-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 16px;
}

.toast-stack {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
}

.toast {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.toast.success {
  border-color: #bde7d2;
  background: #f3fbf7;
  color: #0f6b42;
}

.toast.error {
  border-color: #efc5c5;
  background: #fff4f4;
  color: #a12121;
}

.toast.info {
  border-color: #c7d7f5;
  background: #f4f8ff;
  color: #1f3b79;
}

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

  .sidebar {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
    gap: 8px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .main-nav-link {
    white-space: nowrap;
  }

  .app-wrap {
    width: min(430px, 94vw);
    margin-top: 14px;
  }

  .card {
    padding: 14px;
    border-radius: 14px;
  }

  .grid-form {
    grid-template-columns: 1fr;
  }

  .client-crm-header {
    flex-direction: column;
    align-items: stretch;
  }

  .client-crm-table-head,
  .client-crm-table-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .client-crm-table-head span:last-child,
  .client-crm-table-row span:last-child {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
  }

  .client-contact-row {
    grid-template-columns: 1fr;
  }

  .client-crm-form {
    gap: 14px;
    padding: 14px 12px 16px;
  }

  .client-form-section {
    padding: 14px 0 16px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .toolbar input[type="search"],
  .toolbar select,
  .toolbar .btn {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }

  .toolbar .icon-filter {
    max-width: none;
    justify-self: stretch;
  }

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

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

  .panel h2 {
    font-size: 1.55rem;
    margin-bottom: 10px;
  }

  .search-checks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search-date-range {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .search-date-range span {
    display: none;
  }

  .talent-head {
    display: none;
  }

  .talent-row {
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: flex-start;
  }

  .talent-list li {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
  }

  .modal-card {
    width: 100%;
    max-height: 92vh;
  }

  .tp-grid-2,
  .tp-grid-3,
  .tp-grid-4,
  .tp-checks,
  .tp-intro {
    grid-template-columns: 1fr;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .list-row {
    flex-direction: column;
  }

  .row-actions {
    width: 100%;
  }

  .row-actions .btn {
    flex: 1 1 0;
  }
}

.vault-form {
  gap: 12px;
}

.file-upload-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-label {
  display: inline-block;
  padding: 8px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.file-label input[type="file"] {
  display: none;
}

.file-name-display {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.vault-doc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.vault-file {
  font-size: 12px;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  background: var(--bg-accent);
  border-radius: 4px;
  width: fit-content;
  margin-top: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.vault-file:hover {
  background: #dbeef7;
  text-decoration: underline;
}

.vault-talent {
  font-size: 12px;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
}

.link-btn:hover {
  text-decoration: underline;
  color: var(--brand-strong);
}

.vault-preview-icon {
  font-size: 1.2rem;
}

.tp-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.talent-docs-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #f9fbff;
}

.vault-doc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

/* API loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay.hidden {
  display: none !important;
}
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e0e0e0;
  border-top-color: #333;
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}
@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

/* Calendar Modal & Grid */
.calendar-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
}

.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.calendar-meta-info {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-day-head {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line);
}

.calendar-day {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  font-size: 0.88rem;
  position: relative;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 90px;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: #f9fbff;
  border-color: var(--line-strong);
}

.calendar-day.not-current {
  opacity: 0.35;
  background: #f1f4f8;
  cursor: default;
}

.calendar-day.today {
  border-color: var(--brand);
  background: #fff9f6;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.day-number {
  font-weight: 700;
  margin-bottom: 6px;
}

.calendar-events-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  flex: 1;
}

.calendar-event {
  font-size: 0.68rem;
  padding: 3px 6px;
  border-radius: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  line-height: 1.2;
}

.calendar-event.booked {
  background: #eef4ff;
  color: #2a3e66;
  border-left: 3px solid #4a72b2;
}

.calendar-event.blocked {
  background: #fff1ed;
  color: #b84318;
  border-left: 3px solid #d95b2c;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  margin: 4px 0 16px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.legend-box.booked { background: #4a72b2; }
.legend-box.blocked { background: #d95b2c; }

.modal-card-lg {
  max-width: 860px;
  width: 95vw;
}

.tp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Search Results Grid */
.search-results-container {
  margin-top: 24px;
  border-top: 1px dashed var(--line);
  padding-top: 20px;
}

.results-title {
  margin-bottom: 20px;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  letter-spacing: -0.2px;
}

.search-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.talent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.talent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

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

.tc-info h4 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.tc-info p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-badge.available {
  background: #eaf7f4;
  color: #17804f;
  border: 1px solid #c7ece1;
}

.status-badge.partial {
  background: #fff8eb;
  color: #b07c1b;
  border: 1px solid #feeac7;
}

.status-badge.booked {
  background: #f1f4f8;
  color: var(--muted);
  border: 1px solid var(--line);
}

.tc-meta {
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  border-top: 1px solid #f1f4f8;
  padding-top: 12px;
}

.tc-meta div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tc-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.tc-actions .btn {
  flex: 1;
  padding: 9px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Info Modal Styles */
.info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
}
.info-val {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  min-height: 1.5rem;
  word-break: break-word;
}

/* View Booking Table Styles */
.bv-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bv-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.9rem;
  color: var(--text-color);
}
.bv-table tr:last-child td {
  border-bottom: none;
}
.bv-table td:last-child {
  text-align: right;
}
