
/* === Newrave Contract Builder — Dark Glass Theme (2025) === */

/* Design tokens */
:root{
  --bg:#0a0b10;
  --card:rgba(18,18,22,.36);
  --card-strong:rgba(18,18,22,.6);
  --stroke:rgba(255,255,255,.08);
  --text:#e8eaf3;
  --muted:#a9afc3;
  --accent:#ff2e86; /* fuchsia */
  --accent-2:#00d68b; /* green */
  --accent-3:#9b8cff; /* violet */
  --danger:#ff6b6b;
  --ok:#30d158;
  --shadow:0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  --radius:18px;
}

/* box-sizing universal */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important;}

/* Background: deep dark with subtle colored blobs */
html,body{
  height:100%;
}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 110% -10%, rgba(255,46,134,.12), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0,214,139,.12), transparent 60%),
    radial-gradient(800px 500px at 10% -10%, rgba(155,140,255,.10), transparent 60%),
    linear-gradient(180deg, #0a0b10, #07080d 45%, #05060b);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global layout container acting as a frosted glass card */
.container{
  width:min(980px, 92vw);
  margin: clamp(36px, 5vh, 64px) auto;
  margin-bottom: clamp(64px, 10vh, 120px);
  padding: clamp(18px, 2.8vw, 28px);
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* Headings */
h1,h2,h3{
  line-height:1.2;
  letter-spacing:.2px;
  margin: 0 0 14px 0;
}
h1{ font-size: clamp(26px, 3vw, 40px); }
h2{ font-size: clamp(22px, 2.3vw, 30px); }
h3{ font-size: clamp(18px, 2vw, 22px); color:var(--muted); font-weight:600; }

/* App header (optional navbar) */
.app-header{
  position: sticky; top: 0; z-index: 20;
  margin: 0; padding: 10px 18px;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(180deg, rgba(10,11,16,.55), rgba(10,11,16,.25));
  border-bottom: 1px solid var(--stroke);
}
.app-header .bar{
  display:flex; align-items:center; gap:14px;
  width:min(1200px, 94vw); margin: 0 auto;
}
.app-header .logo{ height:26px; opacity:.9; }
.app-header nav{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }
.app-header a{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:12px;
  font-size:14px; text-decoration:none; color:var(--text);
  border:1px solid transparent;
  transition: .2s ease;
}
.app-header a:hover{
  background: var(--card-strong);
  border-color: var(--stroke);
}

/* Form controls */
label{ display:block; margin:14px 0 6px; color:var(--muted); font-size:14px; }
input,select,textarea,button{
  font: inherit;
}
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="email"], input[type="password"], input[type="url"],
select, textarea{
  width:100%;
  color:var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:14px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

/* iOS Safari: avoid automatic zoom when focusing form fields */
@media (hover: none) and (pointer: coarse){
  input[type="text"],
  input[type="number"],
  input[type="date"],
  input[type="datetime-local"],
  input[type="email"],
  input[type="password"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  select,
  textarea{
    font-size:16px !important;
  }
}
textarea{ min-height:120px; resize: vertical; }
input::placeholder, textarea::placeholder{ color: #8f96ad; }

input:focus, select:focus, textarea:focus{
  border-color: color-mix(in oklab, var(--accent) 55%, white 0%);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 16%, transparent);
}

.input-invalid{
  border-color: rgba(255,107,107,.72) !important;
  box-shadow: 0 0 0 4px rgba(255,107,107,.14) !important;
}

.field-validation-message{
  margin:8px 0 0;
  color:var(--danger);
  font-size:13px;
  line-height:1.4;
}

/* Checkbox/Radio inline groups */
.inline-group{
  display:flex; flex-wrap:wrap; gap:14px; align-items:center;
}
.inline-group label{ margin:0; }

.inline-check{
  margin:10px 0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  cursor:pointer;
  user-select:none;
}

.inline-check input[type="checkbox"],
.first-page-contract-fields input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  min-height:auto;
  flex:0 0 18px;
  margin:0;
  border:1px solid var(--stroke);
  border-radius:6px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display:inline-grid;
  place-content:center;
  cursor:pointer;
}

.inline-check input[type="checkbox"]::before,
.first-page-contract-fields input[type="checkbox"]::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:3px;
  transform:scale(0);
  transition: transform .12s ease-in-out;
  background: color-mix(in oklab, var(--accent) 82%, white 0%);
}

.inline-check input[type="checkbox"]:checked::before,
.first-page-contract-fields input[type="checkbox"]:checked::before{
  transform:scale(1);
}

.inline-check input[type="checkbox"]:disabled,
.first-page-contract-fields input[type="checkbox"]:disabled{
  cursor:not-allowed;
  opacity:.55;
}

.muted{
  color: var(--muted);
}

.autocomplete-field{
  position:relative;
}

.autocomplete-suggestions{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  z-index:30;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:10px;
  background:rgba(10,11,16,.96);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:var(--shadow);
}

.autocomplete-suggestion{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  text-align:left;
  box-shadow:none;
}

.autocomplete-suggestion:hover{
  border-color:color-mix(in oklab, var(--accent) 40%, white 0%);
}

.autocomplete-suggestion-title,
.autocomplete-suggestion-meta{
  display:block;
}

.autocomplete-suggestion-title{
  color:var(--text);
  font-weight:600;
}

.autocomplete-suggestion-meta{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

/* Buttons */
button, .button, .view-button{
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border:1px solid color-mix(in oklab, var(--accent) 40%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 14%, transparent),
                                     color-mix(in oklab, var(--accent) 6%, transparent));
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:.2px;
  box-shadow: var(--shadow);
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
button:hover, .button:hover, .view-button:hover{
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 22%, transparent),
                                     color-mix(in oklab, var(--accent) 10%, transparent));
  text-decoration: none !important;
}
button:active{ transform: translateY(1px); }

/* Secondary button */
.button-secondary{
  border-color: var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

/* Compact button variant (works with primary + secondary) */
button.button-compact,
.button.button-compact,
.view-button.button-compact{
  padding:6px 10px;
  border-radius:12px;
  font-size:13px;
  line-height:1.2;
}

/* Tables (list, events) */
table{
  width:100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  background: var(--card);
  border:1px solid var(--stroke);
  border-radius: 16px;
  overflow:hidden;
}
table th, table td{
  padding:12px 14px;
  text-align:left;
  border-bottom:1px solid var(--stroke);
  color:var(--text);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
table th{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color:var(--text);
  font-weight:700;
}
table tr:hover td{ background: rgba(255,255,255,.03); }
table td.organization{ max-width: 40ch; }

.table-scroll{
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  border:1px solid var(--stroke);
  border-radius:16px;
  background: var(--card);
}

.table-scroll table{
  min-width: 980px;
  margin:0;
  border:none;
  border-radius:0;
}

.home-container{
  width:100%;
}

.home-table{
  width:100%;
  table-layout:fixed;
  font-size:13px;
}

.home-table.home-table-contracts{
  min-width:1460px;
}

.home-table.home-table-deals{
  min-width:0;
}

.home-table.home-table-artist{
  width:100%;
  min-width:550px;
  max-width:none;
}

.home-table th,
.home-table td{
  padding:8px 10px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.home-table.home-table-contracts col.w-date,
.home-table.home-table-deals col.w-date{ width:100px; }

.home-table.home-table-contracts col.w-artist,
.home-table.home-table-deals col.w-artist{ width:130px; }

.home-table.home-table-contracts col.w-promoter,
.home-table.home-table-deals col.w-promoter{ width:190px; }
.home-table.home-table-contracts col.w-event{ width:220px; }
.home-table.home-table-deals col.w-event{ width:220px; }
.home-table.home-table-contracts col.w-contract{ width:130px; }
.home-table.home-table-contracts col.w-fac{ width:145px; }
.home-table.home-table-contracts col.w-logistics{ width:130px; }
.home-table.home-table-contracts col.w-roadmap{ width:130px; }
.home-table.home-table-contracts col.w-action{ width:92px; }

.home-table.home-table-deals col.w-booking{ width:170px; }
.home-table.home-table-deals col.w-event-type{ width:170px; }
.home-table.home-table-deals col.w-action{ width:92px; }
.home-table.home-table-deals col.w-venue{ width:auto; }

.home-table.home-table-artist col.w-date{ width:100px; }
.home-table.home-table-artist col.w-promoter{ width:170px; }
.home-table.home-table-artist col.w-status{ width:130px; }
.home-table.home-table-artist col.w-city{ width:auto; }

/* Hard-lock first columns so Deals and Contrats stay visually identical */
.home-table.home-table-contracts th:nth-child(1),
.home-table.home-table-contracts td:nth-child(1),
.home-table.home-table-deals th:nth-child(1),
.home-table.home-table-deals td:nth-child(1){
  width:100px !important;
  min-width:100px !important;
  max-width:100px !important;
}

.home-table.home-table-contracts th:nth-child(2),
.home-table.home-table-contracts td:nth-child(2),
.home-table.home-table-deals th:nth-child(2),
.home-table.home-table-deals td:nth-child(2){
  width:130px !important;
  min-width:130px !important;
  max-width:130px !important;
}

.home-table.home-table-contracts th:nth-child(3),
.home-table.home-table-contracts td:nth-child(3),
.home-table.home-table-deals th:nth-child(3),
.home-table.home-table-deals td:nth-child(3){
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
}

.home-table.home-table-deals th:nth-child(4),
.home-table.home-table-deals td:nth-child(4){
  width:220px !important;
  min-width:220px !important;
  max-width:220px !important;
}

.home-table.home-table-deals th:nth-child(5),
.home-table.home-table-deals td:nth-child(5){
  width:170px !important;
  min-width:170px !important;
  max-width:170px !important;
}

.home-table.home-table-deals th:nth-child(6),
.home-table.home-table-deals td:nth-child(6){
  width:170px !important;
  min-width:170px !important;
  max-width:170px !important;
}

.home-table.home-table-deals th:nth-child(7),
.home-table.home-table-deals td:nth-child(7){
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
}

.home-table.home-table-deals:not(.home-table-unified){
  min-width:1040px;
}
.home-table.home-table-deals:not(.home-table-unified) col.w-date{ width:88px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-artist{ width:112px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-promoter{ width:150px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-event{ width:190px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-booking{ width:145px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-event-type{ width:145px; }
.home-table.home-table-deals:not(.home-table-unified) col.w-venue{ width:auto; }
.home-table.home-table-deals:not(.home-table-unified) col.w-action{ width:56px; }

.home-table.home-table-deals:not(.home-table-unified) th:nth-child(1),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(1){
  width:88px !important;
  min-width:88px !important;
  max-width:88px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(2),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(2){
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(3),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(3){
  width:150px !important;
  min-width:150px !important;
  max-width:150px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(4),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(4){
  width:190px !important;
  min-width:190px !important;
  max-width:190px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(5),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(5){
  width:145px !important;
  min-width:145px !important;
  max-width:145px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(6),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(6){
  width:145px !important;
  min-width:145px !important;
  max-width:145px !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(7),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(7){
  width:auto !important;
  min-width:150px !important;
  max-width:none !important;
}
.home-table.home-table-deals:not(.home-table-unified) th:nth-child(8),
.home-table.home-table-deals:not(.home-table-unified) td:nth-child(8){
  width:56px !important;
  min-width:56px !important;
  max-width:56px !important;
}

/* Unified tab: keep contract compact and let venue consume remaining width. */
.home-table.home-table-unified{
  min-width:0;
  width:100%;
  table-layout: fixed;
}
.home-table.home-table-unified col.w-date{ max-width:70px; }
.home-table.home-table-unified col.w-artist{ max-width:100px; }
.home-table.home-table-unified col.w-promoter{ max-width:140px; }
.home-table.home-table-unified col.w-event{ max-width:140px; }
.home-table.home-table-unified col.w-cachet{ max-width:60px; }
.home-table.home-table-unified col.w-booking{ max-width:40px; }
.home-table.home-table-unified col.w-venue{ width:112px; }
.home-table.home-table-unified col.w-city{ max-width:180px; }
.home-table.home-table-unified col.w-action{ max-width:84px; }
.home-table.home-table-unified th:nth-child(1),
.home-table.home-table-unified td:nth-child(1){
  width:96px !important;
  min-width:96px !important;
  max-width:96px !important;
}
.home-table.home-table-unified th:nth-child(2),
.home-table.home-table-unified td:nth-child(2){
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
}
.home-table.home-table-unified th:nth-child(3),
.home-table.home-table-unified td:nth-child(3){
  width:168px !important;
  min-width:168px !important;
  max-width:168px !important;
}
.home-table.home-table-unified th:nth-child(4),
.home-table.home-table-unified td:nth-child(4){
  width:152px !important;
  min-width:152px !important;
  max-width:152px !important;
}
.home-table.home-table-unified th:nth-child(5),
.home-table.home-table-unified td:nth-child(5){
  width:148px !important;
  min-width:148px !important;
  max-width:148px !important;
}
.home-table.home-table-unified th:nth-child(6),
.home-table.home-table-unified td:nth-child(6){
  width:112px !important;
  min-width:112px !important;
  max-width:112px !important;
}
.home-table.home-table-unified th:nth-child(7),
.home-table.home-table-unified td:nth-child(7){
  width:180px !important;
  min-width:180px !important;
  max-width:180px !important;
}
.home-table.home-table-unified th:nth-child(8),
.home-table.home-table-unified td:nth-child(8){
  width:120px !important;
  min-width:120px !important;
  max-width:120px !important;
}
.home-table.home-table-unified th:nth-child(9),
.home-table.home-table-unified td:nth-child(9){
  width:84px !important;
  min-width:84px !important;
  max-width:84px !important;
}

@media (min-width: 769px) and (max-width: 1180px){
  .home-table.home-table-deals:not(.home-table-unified){
    font-size:12px;
  }
  .home-table.home-table-deals:not(.home-table-unified) th,
  .home-table.home-table-deals:not(.home-table-unified) td{
    padding-left:8px;
    padding-right:8px;
  }
  .home-table.home-table-deals:not(.home-table-unified) col.w-date{ width:86px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-artist{ width:110px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-promoter{ width:145px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-event{ width:155px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-booking{ width:145px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-event-type{ width:145px; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-venue{ width:auto; }
  .home-table.home-table-deals:not(.home-table-unified) col.w-action{ width:72px; }

  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(1),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(1){
    width:86px !important;
    min-width:86px !important;
    max-width:86px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(2),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(2){
    width:110px !important;
    min-width:110px !important;
    max-width:110px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(3),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(3){
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(4),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(4){
    width:155px !important;
    min-width:155px !important;
    max-width:155px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(5),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(5){
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(6),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(6){
    width:145px !important;
    min-width:145px !important;
    max-width:145px !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(7),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(7){
    width:auto !important;
    min-width:120px !important;
    max-width:none !important;
  }
  .home-table.home-table-deals:not(.home-table-unified) th:nth-child(8),
  .home-table.home-table-deals:not(.home-table-unified) td:nth-child(8){
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
  }
}

.home-table.home-table-artist th:nth-child(1),
.home-table.home-table-artist td:nth-child(1){
  width:100px !important;
  min-width:100px !important;
  max-width:100px !important;
}

.home-table.home-table-artist th:nth-child(2),
.home-table.home-table-artist td:nth-child(2){
  width:170px !important;
  min-width:170px !important;
  max-width:170px !important;
}

.home-table.home-table-artist th:nth-child(3),
.home-table.home-table-artist td:nth-child(3){
  width:130px !important;
  min-width:130px !important;
  max-width:130px !important;
}

.home-table.home-table-artist th:nth-child(4),
.home-table.home-table-artist td:nth-child(4){
  width:auto !important;
  min-width:150px !important;
  max-width:none !important;
}

.cell-ellipsis{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.home-row-link{
  cursor:pointer;
}

.home-row-link:hover td{
  background: rgba(255,255,255,.04);
}

.home-table .cell-action{
  text-align:right;
  padding:4px 6px 4px 2px;
  overflow:visible;
  text-overflow:clip;
  white-space:nowrap;
}

.home-hide-btn{
  appearance:none;
  border:1px solid rgba(148,158,178,.35);
  background: rgba(148,158,178,.14);
  color: #c3cad9;
  border-radius:10px;
  width:34px;
  height:34px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:none;
  min-height:34px;
  margin:0 0 0 auto;
}

.home-hide-btn:hover{
  background: rgba(148,158,178,.24);
  border-color: rgba(148,158,178,.5);
}

.home-delete-btn{
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.12);
  color: #ff889a;
}

.home-delete-btn:hover{
  background: rgba(255,107,107,.2);
  border-color: rgba(255,107,107,.52);
}

.home-unhide-btn{
  border-color: rgba(57,126,255,.45);
  background: rgba(57,126,255,.14);
  color:#8fb8ff;
}

.home-unhide-btn:hover{
  background: rgba(57,126,255,.24);
  border-color: rgba(57,126,255,.62);
}

.home-action-pair{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
}

.table-scroll.draggable-scroll{
  cursor:grab;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.table-scroll.draggable-scroll *{
  user-select:none;
}

.table-scroll.draggable-scroll.is-dragging{
  cursor:grabbing;
}

.home-toolbar{
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:16px;
}

.home-tabs-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  flex-wrap:wrap;
}

.home-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.home-create-menu{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-end;
}

.home-create-toggle{
  white-space:nowrap;
  background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
  border-color: #cbd5e1;
  color: #111827;
}

.home-create-toggle:hover,
.home-create-toggle:focus{
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border-color: #d1d5db;
  color: #0f172a;
}

.home-create-dropdown{
  position:absolute;
  top:calc(100% + 5px);
  left:auto;
  right:7px;
  z-index:180;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:190px;
  padding:6px;
  border:1px solid rgba(148,163,184,.42);
  border-radius:12px;
  background: rgba(13, 18, 28, .97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .55);
}

.home-create-dropdown[hidden]{
  display:none;
}

.home-create-item{
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  color:#e5e7eb;
  text-decoration:none;
  font-size:14px;
  line-height:1.2;
}

.home-create-item:hover,
.home-create-item:focus{
  background: rgba(148,163,184,.18);
  color:#ffffff;
  text-decoration:none;
}

.home-filter-form{
  min-width: 240px;
  margin-left:0;
  width:100%;
}

.home-filter-form label{
  margin-top:0;
  text-align:left;
}

.home-filters-row{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  flex-wrap:wrap;
}

.home-filter-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:122px;
}

.home-filter-item select{
  width:122px;
}

.home-filter-date{
  min-width:153px;
}

.home-filter-date select{
  width:153px;
}

.home-filter-check{
  min-width:122px;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  justify-content:flex-start;
  padding-bottom:0;
}

.home-filter-check input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:44px;
  height:44px;
  min-height:auto;
  margin-top:0;
  border:1px solid var(--stroke);
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  cursor:pointer;
  display:inline-grid;
  place-content:center;
}

.home-filter-check input[type="checkbox"]::before{
  content:"\f00d";
  font-family:"Font Awesome 7 Free";
  font-weight:900;
  font-size:24px;
  line-height:1;
  color:#ff5c74;
  -webkit-text-stroke:.8px currentColor;
  transform:scale(0);
  transition:transform .12s ease-in-out;
}

.home-filter-check input[type="checkbox"]:checked::before{
  transform:scale(1);
}

.home-filter-check label{
  margin:0;
}

.home-check-inline{
  display:flex;
  align-items:center;
  min-height:44px;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:100px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid transparent;
}

.artist-ready-marker{
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:12px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  color:#d7ffea;
  background:linear-gradient(180deg, rgba(8,171,102,.26), rgba(8,171,102,.18));
  border:1px solid rgba(66,219,146,.45);
  white-space:nowrap;
}

.artist-ready-marker i{
  font-size:14px;
}

.status-editable{
  cursor:pointer;
  margin:0;
  min-height:auto;
  box-shadow:none;
  line-height:1.2;
  padding:4px 8px;
}

.status-editable:disabled{
  opacity:.7;
  cursor:wait;
}

.status-editable.status-red:hover{
  background:rgba(255,107,107,.24);
  border-color:rgba(255,107,107,.58);
}

.status-editable.status-orange:hover{
  background:rgba(255,159,67,.24);
  border-color:rgba(255,159,67,.62);
}

.status-editable.status-green:hover{
  background:rgba(48,209,88,.24);
  border-color:rgba(48,209,88,.58);
}

.status-editable.status-blue:hover{
  background:rgba(57,126,255,.24);
  border-color:rgba(57,126,255,.6);
}

.status-editable.status-dark-green:hover{
  background:rgba(10,130,72,.38);
  border-color:rgba(40,180,110,.62);
}

.status-editable.status-gray:hover{
  background:rgba(125,134,154,.3);
  border-color:rgba(125,134,154,.58);
}

.status-editable.status-violet:hover{
  background:rgba(155,140,255,.3);
  border-color:rgba(155,140,255,.58);
}

.status-editable.status-brown:hover{
  background:rgba(147,97,53,.38);
  border-color:rgba(183,124,66,.58);
}

.status-editable.status-dark:hover{
  background:rgba(66,72,84,.46);
  border-color:rgba(86,95,110,.62);
}

.status-red{
  color:#ffd7d7;
  background:rgba(255,107,107,.16);
  border-color:rgba(255,107,107,.4);
}

.status-orange{
  color:#ffe9c7;
  background:rgba(255,159,67,.16);
  border-color:rgba(255,159,67,.45);
}

.status-green{
  color:#d7ffe7;
  background:rgba(48,209,88,.16);
  border-color:rgba(48,209,88,.4);
}

.status-blue{
  color:#d8e8ff;
  background:rgba(57,126,255,.16);
  border-color:rgba(57,126,255,.42);
}

.status-dark-green{
  color:#c8f7d8;
  background:rgba(10,130,72,.28);
  border-color:rgba(40,180,110,.45);
}

.status-gray{
  color:#d3d7e2;
  background:rgba(125,134,154,.2);
  border-color:rgba(125,134,154,.42);
}

.status-violet{
  color:#e6ddff;
  background:rgba(155,140,255,.22);
  border-color:rgba(155,140,255,.46);
}

.status-brown{
  color:#ffe8d6;
  background:rgba(147,97,53,.28);
  border-color:rgba(183,124,66,.48);
}

.status-dark{
  color:#d7dde8;
  background:rgba(66,72,84,.34);
  border-color:rgba(86,95,110,.52);
}

.danger-row td{
  background: rgba(255, 80, 80, .08);
}

.danger-row:hover td{
  background: rgba(255, 80, 80, .14) !important;
}

.success-row td{
  background: rgba(48, 209, 88, .08);
}

.success-row:hover td{
  background: rgba(48, 209, 88, .14) !important;
}

.artist-gig-row td{
  background: rgba(178, 124, 20, .22);
}

.artist-gig-row:hover td{
  background: rgba(178, 124, 20, .34) !important;
}

.status-menu{
  position:absolute;
  z-index:260;
  padding:10px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(32,34,38,.98);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:stretch;
}

.status-cell{
  position:relative;
  display:inline-block;
}

.home-table td.status-cell-td{
  overflow:visible;
  position:relative;
  z-index:3;
}

.home-table tr td.status-cell-td .status-menu{
  z-index:200;
}

.status-menu-item{
  width:100%;
  justify-content:flex-start;
  text-align:left;
  border-radius:999px;
  padding:4px 10px;
  margin:0;
  box-shadow:none;
  min-height:auto;
  font-size:12px;
  line-height:1.2;
  border-width:1px;
  min-width:0;
  font-weight:700;
}

.status-menu-item.status-red:hover{
  background:rgba(255,107,107,.24);
  border-color:rgba(255,107,107,.58);
}

.status-menu-item.status-orange:hover{
  background:rgba(255,159,67,.24);
  border-color:rgba(255,159,67,.62);
}

.status-menu-item.status-green:hover{
  background:rgba(48,209,88,.24);
  border-color:rgba(48,209,88,.58);
}

.status-menu-item.status-blue:hover{
  background:rgba(57,126,255,.24);
  border-color:rgba(57,126,255,.6);
}

.status-menu-item.status-dark-green:hover{
  background:rgba(10,130,72,.38);
  border-color:rgba(40,180,110,.62);
}

.status-menu-item.status-gray:hover{
  background:rgba(125,134,154,.3);
  border-color:rgba(125,134,154,.58);
}

.status-menu-item.status-violet:hover{
  background:rgba(155,140,255,.3);
  border-color:rgba(155,140,255,.58);
}

.status-menu-item.status-brown:hover{
  background:rgba(147,97,53,.38);
  border-color:rgba(183,124,66,.58);
}

.status-menu-item.status-dark:hover{
  background:rgba(66,72,84,.46);
  border-color:rgba(86,95,110,.62);
}

.status-menu-group-title{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  padding:2px 4px 0 4px;
}

.status-menu-divider{
  height:1px;
  background:rgba(255,255,255,.1);
  margin:4px 2px;
}

.pay-agent-month-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.pay-agent-month-card{
  padding:12px;
}

.pay-agent-month-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.pay-agent-month-head h3{
  margin:0;
}

.pay-agent-month-card .table-scroll{
  width:100%;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
}


.button-danger{
  border-color: rgba(255,107,107,.5);
  background: linear-gradient(180deg, rgba(255,107,107,.2), rgba(255,107,107,.12));
}

.pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

.pagination-info{
  color:var(--muted);
  font-size:14px;
}

.pagination .button.is-active{
  border-color: color-mix(in oklab, var(--accent) 60%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 26%, transparent),
                                     color-mix(in oklab, var(--accent) 14%, transparent));
}

.account-force-notice{
  font-weight:700;
}

.account-container{
  width:min(980px, 92vw);
  background:transparent;
  border:none;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.account-hero{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:14px;
}

.account-hero h2{
  margin:0;
}

.account-hero .muted{
  margin:4px 0 0;
}

.account-avatar{
  width:58px;
  height:58px;
  border-radius:50%;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:800;
  letter-spacing:.08em;
}

.account-hero-main{
  flex:1;
  min-width:0;
}

.account-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.account-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.account-info-card{
  grid-column:span 2;
}

.account-info-list{
  margin-top:8px;
  border:1px solid var(--stroke);
  border-radius:14px;
  overflow:hidden;
}

.account-info-row{
  display:grid;
  grid-template-columns:210px 1fr;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--stroke);
}

.account-info-row:last-child{
  border-bottom:none;
}

.account-info-label{
  color:var(--muted);
  font-size:13px;
}

.account-info-value{
  color:var(--text);
  font-weight:600;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.account-card-disabled{
  opacity:.65;
}

@media (max-width: 760px){
  .account-grid{
    grid-template-columns:1fr;
  }

  .account-info-card{
    grid-column:auto;
  }

  .account-info-row{
    grid-template-columns:1fr;
    gap:4px;
  }

  .account-avatar{
    width:50px;
    height:50px;
    font-size:18px;
  }
}

@media (min-width: 870px){
  body.account-page .container.account-container{
    width:min(980px, calc(100vw - 230px));
    max-width:none;
    margin:16px 12px 22px 194px;
    overflow:visible;
  }
}

.agents-container{
  width:min(1320px, 96vw);
}

.agents-toolbar{
  align-items:center;
}

.agents-filter-form{
  margin-bottom:16px;
}

.agents-filters-row{
  gap:10px;
}

.agents-filter-search{
  min-width:280px;
}

.agents-filter-search input{
  width:280px;
}

.agents-filter-actions{
  min-width:220px;
}

.agents-filter-buttons{
  display:flex;
  align-items:center;
  gap:8px;
}

.agents-filter-buttons .button{
  margin:0;
}

.agents-table{
  min-width:1240px;
  table-layout:fixed;
}

.agents-table th:nth-child(1),
.agents-table td:nth-child(1){
  width:60px;
}

.agents-table th:nth-child(2),
.agents-table td:nth-child(2){
  width:170px;
}

.agents-table th:nth-child(3),
.agents-table td:nth-child(3){
  width:150px;
}

.agents-table th:nth-child(4),
.agents-table td:nth-child(4){
  width:220px;
}

.agents-table th:nth-child(5),
.agents-table td:nth-child(5){
  width:150px;
}

.agents-table th:nth-child(6),
.agents-table td:nth-child(6){
  width:125px;
}

.agents-table th:nth-child(7),
.agents-table td:nth-child(7){
  width:155px;
}

.agents-table th:nth-child(8),
.agents-table td:nth-child(8){
  width:220px;
}

.agent-history-table{
  min-width:1040px;
}

.agent-history-table th:nth-child(1),
.agent-history-table td:nth-child(1){
  width:165px;
}

.agent-history-table th:nth-child(2),
.agent-history-table td:nth-child(2){
  width:170px;
}

.agent-history-table th:nth-child(3),
.agent-history-table td:nth-child(3){
  width:150px;
}

.agent-history-table th:nth-child(4),
.agent-history-table td:nth-child(4){
  width:auto;
  min-width:260px;
}

.agent-history-table th:nth-child(5),
.agent-history-table td:nth-child(5),
.agent-history-table th:nth-child(6),
.agent-history-table td:nth-child(6){
  width:130px;
}

.agents-status-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.agents-security-cell{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
}

.agents-actions-cell{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.agents-actions-cell .button{
  width:auto;
}

.agents-inline-form{
  margin:0;
}

.agents-inline-form .button{
  margin:0;
}

.agents-form-card{
  padding:20px;
}

.agents-form-card .grid-2{
  margin-bottom:10px;
}

.agents-form-card button{
  margin-top:8px;
}

.agents-temp-pass-card{
  margin-top:14px;
}

.agents-temp-pass-card pre{
  margin:8px 0 0;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  font-size:15px;
  white-space:pre-wrap;
  word-break:break-word;
}

.agents-readonly-value{
  min-height:46px;
  display:flex;
  align-items:center;
}

.agents-sensitive-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.agents-sensitive-actions form{
  margin:0;
}

.agents-sensitive-actions .button{
  margin:0;
  width:auto;
}

@media (max-width: 900px){
  .agents-filter-search,
  .agents-filter-search input,
  .agents-filter-actions{
    min-width:100%;
    width:100%;
  }

  .agents-filter-buttons{
    width:100%;
    flex-wrap:wrap;
  }
}

.contacts-container{
  width:min(1760px, 97vw);
}

.contacts-toolbar{
  align-items:center;
  gap:14px;
}

.contacts-toolbar-actions,
.contacts-form-actions,
.contacts-import-actions,
.contacts-pagination{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.contacts-toolbar-actions .button,
.contacts-form-actions .button,
.contacts-import-actions .button,
.contacts-pagination .button{
  width:auto;
  margin:0;
}

.contacts-filter-form{
  margin-bottom:16px;
}

.contacts-filters-row{
  gap:10px;
}

.contacts-filter-search{
  min-width:320px;
}

.contacts-filter-search input{
  width:320px;
}

.contacts-filter-actions{
  min-width:220px;
}

.contacts-live-region{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}

.contacts-card-grid{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  grid-auto-rows:minmax(248px, auto);
  align-items:stretch;
  gap:12px;
  min-height:0;
  transition:opacity .16s ease;
}

.contacts-card-grid.is-loading{
  opacity:.55;
  pointer-events:none;
}

.contact-card{
  min-width:0;
  min-height:248px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 15px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  box-shadow:0 12px 32px rgba(0,0,0,.18);
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}

.contact-card:hover,
.contact-card:focus{
  outline:none;
  border-color:rgba(120,190,255,.36);
  background:rgba(255,255,255,.07);
  transform:translateY(-1px);
}

.contact-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  padding-bottom:9px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.contact-card-title{
  min-width:0;
  flex:1 1 auto;
}

.contact-card h3{
  margin:0;
  color:#f0f3ff;
  font-size:17px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact-card-title p{
  margin:5px 0 0;
  color:#c8cfdf;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact-card-badges{
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
  max-width:46%;
}

.contact-card .status-pill{
  min-width:auto;
  max-width:100%;
  flex:0 0 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contact-card-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0;
  padding:0;
  min-width:0;
}

.contact-card-details div{
  min-width:0;
}

.contact-card-details dt,
.contact-card-label{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0;
}

.contact-card-details dd{
  margin:3px 0 0;
  color:var(--text);
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact-card-contact{
  display:grid;
  gap:5px;
  padding:9px 0;
  border-top:1px solid rgba(255,255,255,.07);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.contact-card-contact a,
.contact-card-contact span{
  display:block;
  color:var(--text);
  font-size:13px;
  font-weight:500;
  line-height:1.35;
  text-transform:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contact-card-contact span{
  color:#a8b0c2;
}

.contact-card-sections{
  display:grid;
  gap:8px;
  min-width:0;
}

.contact-card-note{
  margin-top:auto;
  min-width:0;
}

.contact-card-note p{
  margin:3px 0 0;
  color:#e7eaf3;
  font-size:13px;
  font-weight:650;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;
}

.contacts-empty-state{
  grid-column:1 / -1;
  margin:0;
  padding:18px;
  border:1px solid var(--stroke);
  border-radius:8px;
  background:rgba(255,255,255,.035);
}

@media (max-width: 1380px){
  .contacts-card-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px){
  .contacts-card-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px){
  .contacts-card-grid{
    grid-template-columns:1fr;
    min-height:360px;
  }
}

.contacts-tags{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:5px;
}

.contacts-tag{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  color:#e6f4ff;
  background:rgba(65,150,190,.16);
  font-size:12px;
  line-height:1.25;
}

.contact-card .contacts-tags{
  max-height:48px;
  overflow:hidden;
}

.contact-card .contacts-tag{
  display:inline-flex;
  max-width:100%;
  font-size:11px;
  font-weight:600;
  text-transform:none;
}

.contacts-actions-cell{
  overflow:visible;
}

.contacts-inline-form,
.contacts-archive-form{
  margin:0;
}

.contacts-inline-form .button,
.contacts-archive-form .button{
  margin:0;
  width:auto;
}

.contacts-form-card,
.contacts-preview-card,
.contacts-import-summary{
  padding:20px;
  margin-bottom:16px;
}

.contacts-form-card form > div{
  margin-bottom:10px;
}

.contacts-form-card textarea{
  resize:vertical;
}

.contacts-choice-group{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:8px;
  min-height:46px;
  padding:8px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.035);
}

.contacts-choice-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:0;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:999px;
  color:var(--text);
  background:rgba(255,255,255,.045);
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}

.contacts-choice-pill:has(input:checked){
  border-color:rgba(77,163,255,.55);
  background:rgba(77,163,255,.16);
}

.contacts-choice-pill input{
  width:15px;
  height:15px;
  margin:0;
  accent-color:#4da3ff;
}

.contacts-upload-form input[type="file"]{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:var(--text);
}

.contacts-csv-info-card{
  display:grid;
  gap:14px;
  margin-bottom:16px;
  padding:20px;
}

.contacts-csv-info-card h3,
.contacts-csv-info-card h4{
  margin:0 0 6px;
}

.contacts-csv-info-card p{
  margin:0;
}

.contacts-csv-info-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.contacts-csv-info-grid section{
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:8px;
  background:rgba(255,255,255,.035);
}

.contacts-csv-allowed-genres{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(77,163,255,.28);
  border-radius:8px;
  background:rgba(77,163,255,.075);
}

.contacts-csv-allowed-genres strong,
.contacts-csv-allowed-genres p{
  margin:0;
}

.contacts-csv-aliases{
  border-top:1px solid var(--stroke);
  padding-top:12px;
}

.contacts-csv-aliases summary{
  cursor:pointer;
  color:var(--text);
  font-weight:700;
}

.contacts-csv-aliases-table{
  min-width:760px;
  margin-top:10px;
}

.contacts-csv-aliases-table th:nth-child(1),
.contacts-csv-aliases-table td:nth-child(1){ width:220px; }
.contacts-csv-aliases-table th:nth-child(2),
.contacts-csv-aliases-table td:nth-child(2){ width:130px; }

.contacts-csv-mapping{
  display:grid;
  gap:10px;
  margin:14px 0;
  padding:14px;
  border:1px solid rgba(57,126,255,.28);
  border-radius:8px;
  background:rgba(57,126,255,.075);
}

.contacts-csv-mapping h4{
  margin:0 0 4px;
}

.contacts-csv-mapping p{
  margin:0;
}

.contacts-csv-mapping-table{
  min-width:760px;
}

.contacts-csv-mapping-table th:nth-child(1),
.contacts-csv-mapping-table td:nth-child(1){ width:310px; }
.contacts-csv-mapping-table th:nth-child(2),
.contacts-csv-mapping-table td:nth-child(2){ width:260px; }
.contacts-csv-mapping-table th:nth-child(3),
.contacts-csv-mapping-table td:nth-child(3){ width:150px; }

.contacts-csv-mapping-table small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.contacts-archive-form{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--stroke);
}

.contacts-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:390;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(7px);
}

.contacts-modal{
  position:fixed;
  z-index:400;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(680px, calc(100vw - 28px));
  max-height:calc(100vh - 32px);
  overflow:auto;
  padding:20px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(24,26,31,.98);
  box-shadow:0 24px 80px rgba(0,0,0,.45);
}

.contacts-modal h3{
  margin:0 0 8px;
}

.contacts-duplicate-list,
.contacts-duplicate-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.contacts-duplicate-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  cursor:pointer;
}

.contacts-duplicate-card input{
  width:auto;
  margin:3px 0 0;
}

.contacts-duplicate-card span,
.contacts-duplicate-stack span{
  min-width:0;
}

.contacts-duplicate-card small,
.contacts-duplicate-stack small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.contacts-modal-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin:14px 0 10px;
}

.contacts-modal-actions .button{
  width:100%;
  margin:0;
}

.contacts-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.contacts-preview-head h3,
.contacts-import-summary h3{
  margin:0 0 6px;
}

.contacts-import-counts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}

.contacts-import-errors{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid rgba(255,159,67,.28);
  border-radius:12px;
  color:#ffe9c7;
  background:rgba(255,159,67,.1);
}

.contacts-import-errors p{
  margin:0 0 4px;
}

.contacts-import-errors p:last-child{
  margin-bottom:0;
}

.contacts-import-preview-table{
  min-width:1420px;
  table-layout:fixed;
}

.contacts-import-preview-table th:nth-child(1),
.contacts-import-preview-table td:nth-child(1){ width:72px; }
.contacts-import-preview-table th:nth-child(2),
.contacts-import-preview-table td:nth-child(2){ width:250px; }
.contacts-import-preview-table th:nth-child(3),
.contacts-import-preview-table td:nth-child(3){ width:210px; }
.contacts-import-preview-table th:nth-child(4),
.contacts-import-preview-table td:nth-child(4){ width:150px; }
.contacts-import-preview-table th:nth-child(5),
.contacts-import-preview-table td:nth-child(5){ width:160px; }
.contacts-import-preview-table th:nth-child(6),
.contacts-import-preview-table td:nth-child(6){ width:300px; }
.contacts-import-preview-table th:nth-child(7),
.contacts-import-preview-table td:nth-child(7){ width:190px; }
.contacts-import-preview-table th:nth-child(8),
.contacts-import-preview-table td:nth-child(8){ width:210px; }

.contacts-import-preview-table small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}

.contacts-import-preview-table select,
.contacts-history-table input,
.contacts-history-table select{
  width:100%;
}

.contacts-contract-import-table{
  min-width:1640px;
}

.contacts-contract-import-check{
  text-align:center;
}

.contacts-import-checkbox-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  margin:0;
  color:var(--text);
  font-size:11px;
  font-weight:800;
  letter-spacing:0;
  cursor:pointer;
}

.contacts-import-checkbox-label input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#4da3ff;
}

.contacts-import-checkbox-label span{
  white-space:nowrap;
}

.contacts-contract-import-table tr.is-contact-import-skipped td{
  opacity:.46;
}

.contacts-contract-import-table th:nth-child(1),
.contacts-contract-import-table td:nth-child(1){ width:88px; }
.contacts-contract-import-table th:nth-child(2),
.contacts-contract-import-table td:nth-child(2){ width:140px; }
.contacts-contract-import-table th:nth-child(3),
.contacts-contract-import-table td:nth-child(3){ width:250px; }
.contacts-contract-import-table th:nth-child(4),
.contacts-contract-import-table td:nth-child(4){ width:160px; }
.contacts-contract-import-table th:nth-child(5),
.contacts-contract-import-table td:nth-child(5){ width:220px; }
.contacts-contract-import-table th:nth-child(6),
.contacts-contract-import-table td:nth-child(6){ width:150px; }
.contacts-contract-import-table th:nth-child(7),
.contacts-contract-import-table td:nth-child(7){ width:260px; }
.contacts-contract-import-table th:nth-child(8),
.contacts-contract-import-table td:nth-child(8){ width:300px; }
.contacts-contract-import-table th:nth-child(9),
.contacts-contract-import-table td:nth-child(9){ width:190px; }
.contacts-contract-import-table th:nth-child(10),
.contacts-contract-import-table td:nth-child(10){ width:210px; }

.contacts-history-table{
  min-width:1180px;
  table-layout:fixed;
}

.contacts-history-table th:nth-child(1),
.contacts-history-table td:nth-child(1){ width:160px; }
.contacts-history-table th:nth-child(2),
.contacts-history-table td:nth-child(2){ width:150px; }
.contacts-history-table th:nth-child(3),
.contacts-history-table td:nth-child(3){ width:180px; }
.contacts-history-table th:nth-child(4),
.contacts-history-table td:nth-child(4){ width:220px; }
.contacts-history-table th:nth-child(5),
.contacts-history-table td:nth-child(5){ width:90px; }
.contacts-history-table th:nth-child(6),
.contacts-history-table td:nth-child(6){ width:auto; min-width:300px; }
.contacts-history-table th:nth-child(7),
.contacts-history-table td:nth-child(7){ width:135px; }

.contacts-history-details{
  line-height:1.45;
  white-space:normal;
}

.contacts-pagination{
  justify-content:flex-end;
  margin-top:14px;
}

tr.is-archived td{
  opacity:.68;
}

@media (max-width: 900px){
  .contacts-toolbar,
  .contacts-preview-head{
    align-items:stretch;
    flex-direction:column;
  }

  .contacts-toolbar-actions,
  .contacts-form-actions,
  .contacts-import-actions{
    width:100%;
  }

  .contacts-toolbar-actions .button,
  .contacts-form-actions .button,
  .contacts-form-actions button,
  .contacts-import-actions .button{
    flex:1 1 180px;
  }

  .contacts-filter-search,
  .contacts-filter-search input,
  .contacts-filter-actions{
    min-width:100%;
    width:100%;
  }

  .contacts-csv-info-grid{
    grid-template-columns:1fr;
  }
}

/* Utility */
.mt-2{ margin-top:8px; } .mt-3{ margin-top:14px; } .mt-4{ margin-top:22px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.grid-responsive{ display:grid; grid-template-columns:1fr; gap:18px; }
.deal-pill-row{
  display:flex;
  align-items:flex-end;
  gap:20px;
  flex-wrap:wrap;
}
.deal-pill-item{
  display:flex;
  flex-direction:column;
}
.artist-gig-event-type{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
}
@media (min-width: 700px){
  .grid-responsive{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width: 1024px){
  .grid-responsive{ grid-template-columns:repeat(3,1fr); }
}

/* Messages / errors */
.erreur{ color: var(--danger); background: rgba(255,107,107,.12); border:1px solid rgba(255,107,107,.22);
  padding:10px 12px; border-radius:12px; }
.success{ color: var(--ok); background: rgba(48,209,88,.12); border:1px solid rgba(48,209,88,.22);
  padding:10px 12px; border-radius:12px; }

/* Iframe viewer */
iframe{
  width:100%; border:none; border-radius: 14px; min-height: 60vh;
  background: rgba(255,255,255,.02);
  border:1px solid var(--stroke);
}

/* Signature canvas */
canvas#signature-pad{
  display:block; margin: 10px auto; width: min(100%, 760px); height: auto;
  border-radius: 14px; border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}

/* Links */
a{ color: color-mix(in oklab, var(--accent-2) 70%, white 0%); text-decoration: none; }
a:hover{ text-decoration: underline; }
a.button:hover,
a.view-button:hover,
a.public-portal-btn:hover{
  text-decoration:none !important;
}

/* Login/register tweaks */
.login-card{ max-width: 520px; }
.login-lock-banner{
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffd7d7;
  background: rgba(255,107,107,.14);
  border: 1px solid rgba(255,107,107,.28);
  line-height: 1.45;
}
.login-lock-countdown{
  margin-top: 8px;
  color: var(--text);
  font-weight: 600;
}
.login-captcha-hint{
  margin: 14px 0 6px;
}
.login-card .h-captcha{
  display: inline-block;
  width: 303px;
  max-width: 100%;
  min-height: 78px;
  height: 78px;
  line-height: 0;
  overflow: hidden;
}
.login-card .h-captcha > div,
.login-card .h-captcha > div > iframe{
  display: block;
  width: 303px !important;
  max-width: 100% !important;
  min-height: 78px !important;
  height: 78px !important;
}
.login-card .h-captcha > div{
  overflow: hidden;
}
.login-card .h-captcha iframe,
.login-card iframe[src*="hcaptcha.com"]{
  display: block;
  width: 303px !important;
  max-width: 100% !important;
  min-height: 78px !important;
  height: 78px !important;
  overflow: hidden !important;
  vertical-align: top;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
@media (max-width: 420px){
  .login-card .h-captcha,
  .login-card .h-captcha > div,
  .login-card .h-captcha > div > iframe,
  .login-card .h-captcha iframe,
  .login-card iframe[src*="hcaptcha.com"]{
    width: 100% !important;
    max-width: 100% !important;
  }
}
footer{ color:var(--muted); text-align:center; padding: 26px 0; }

/* Remove legacy light theme leftovers */
body.light, .container.light{ background: var(--card) !important; color: var(--text) !important; }

/* Min touch targets on mobile */
@media (max-width: 560px){
  button, .button{ width:100%; }
}


/* === Fix pack (Ambroise 2025-08) === */
.app-header .logo{ height:10px; width:auto; display:block; }
button, .button, .view-button { margin: 6px 8px 6px 0; }
.button-group button { margin-right: 8px; }
.container{
  width:min(980px, 92vw);
  margin: clamp(24px, 5vh, 48px) auto;
  margin-bottom: 48px;
}
input[type="text"], input[type="number"], input[type="date"], input[type="email"], input[type="password"], input[type="url"],
select, textarea{ width:100%; display:block; margin: 0; }
body.login{ min-height:100svh; display:grid; place-items:center; margin:0; }
.login-card{ width:min(520px, 92vw); margin:0; }
body.login .container{ margin:0; }

body.login.login-page-agent,
body.login.login-page-artist{
  min-height:100svh;
  display:block;
  padding:0 16px;
}

.login-shell{
  width:min(520px, 92vw);
  min-height:100svh;
  margin:0 auto;
  display:grid;
  grid-template-rows:minmax(0, 1fr) auto minmax(0, 1fr);
  align-items:stretch;
  row-gap:12px;
}

.login-brand{
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
}

.login-brand-logo{
  height:14px;
  width:auto;
  opacity:.96;
}

.login-card-redesign{
  grid-row:2;
  width:100%;
  margin:0 !important;
  padding:22px 22px 20px;
}

.login-card-redesign h2{
  margin-bottom:12px;
}

.login-remember-row{
  margin:12px 0 4px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
}

.login-remember-row input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  min-height:auto;
  margin:0;
  border-radius:6px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  display:inline-grid;
  place-content:center;
  cursor:pointer;
}

.login-remember-row input[type="checkbox"]::before{
  content:"";
  width:9px;
  height:9px;
  border-radius:3px;
  background:color-mix(in oklab, var(--accent) 80%, white 0%);
  transform:scale(0);
  transition:transform .15s ease-in-out;
}

.login-remember-row input[type="checkbox"]:checked::before{
  transform:scale(1);
}

.login-remember-row span{
  font-size:14px;
  line-height:1.3;
}

@media (max-width: 520px){
  .login-brand-logo{
    height:12px;
  }
  .login-card-redesign{
    padding:18px 16px 16px;
  }
}

#signature-pad{ background:#fff !important; border:1px solid rgba(0,0,0,.15) !important; }
.signature-preview{ background:#fff; border:1px solid rgba(0,0,0,.15); border-radius:12px; padding:8px; display:inline-block; max-width: min(100%, 760px); }
.signature-tools .button, .signature-tools button{ margin-right:10px; }

select{ background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); color: var(--text); }
select option{ background:#111318; color:var(--text); }
input[type="date"]{ color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
input[type="date"]::-webkit-calendar-picker-indicator{ filter: invert(1) opacity(.9); }

.app-header{ position: sticky; top:0; z-index:100; margin: 0; padding: 10px 18px;
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
  background: linear-gradient(180deg, rgba(10,11,16,.55), rgba(10,11,16,.25)); border-bottom: 1px solid var(--stroke); }
.app-header .bar{ display:flex; align-items:center; gap:14px; width:min(1200px, 94vw); margin: 0 auto; }
.app-header nav{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }
.app-header a{ text-decoration:none; color:var(--text); font-size:14px; padding:8px 10px; border:1px solid transparent; border-radius:10px; }
.app-header a:hover{ background: rgba(255,255,255,.06); border-color: var(--stroke); }

@media (max-width: 960px){
  .grid-2{ grid-template-columns:1fr !important; }
  .grid-3{ grid-template-columns:1fr !important; }
}
@media (max-width: 560px){
  button, .button{ width:100%; }
}

/* container inner paddings fix */
.container form{ padding-inline: 2px; }
/* ensure inputs never overflow and keep a hairline gap on edges */
input,select,textarea{ max-width:100%; }

/* signature page layout */
.signature-wrap{ display:grid; place-items:center; gap:12px; }
.signature-wrap canvas{ max-width: min(100%, 760px); height:auto; }
.current-signature{ margin-top:16px; }
.current-signature .signature-preview{ margin-top:8px; }

/* Generic card for inner sections */
.card{ background: var(--card); border:1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow); padding:16px; }


/* === Mobile-first responsive & burger menu (R7) === */

/* Base mobile tweaks */
:root{ --nav-width: 260px; }

/* Header layout */
.app-header .bar{ display:flex; align-items:center; gap:12px; width:min(1200px,94vw); margin:0 auto; }
.desktop-nav{ display:none; gap:10px; flex-wrap:wrap; }
.burger{
  margin-left:auto; font-size:22px; line-height:1; padding:8px 10px;
  border-radius:10px; border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color:var(--text); cursor:pointer;
}
.burger:active{ transform: translateY(1px); }

/* Mobile menu */
.nav-overlay{
  position: fixed; inset:0; background: rgba(0,0,0,.35); backdrop-filter: blur(2px);
  opacity:0; pointer-events:none; transition: opacity .2s ease;
}
.mobile-nav{
  position: fixed; top:0; right: calc(-1 * var(--nav-width)); height:100vh; width: var(--nav-width);
  background: var(--card-strong); backdrop-filter: blur(14px);
  border-left:1px solid var(--stroke);
  display:flex; flex-direction:column; padding:16px; gap:8px;
  transform: translateX(100%); transition: transform .25s ease;
}
.mobile-nav .close{
  align-self:flex-end; font-size:18px; border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  color:var(--text); border-radius:10px; padding:6px 10px; margin-bottom:8px;
}
.mobile-nav a{
  padding:10px 12px; border-radius:10px; border:1px solid transparent; text-decoration:none; color:var(--text);
}
.mobile-nav a:hover{ background: rgba(255,255,255,.06); border-color: var(--stroke); }

/* When menu open */
body.menu-open .nav-overlay{ opacity:1; pointer-events:auto; }
body.menu-open .mobile-nav{ transform: translateX(0%); right:0; }

/* Desktop breakpoint */
@media (min-width: 870px){
  .desktop-nav{ display:flex; margin-left:auto; }
  .burger{ display:none; }
  .mobile-nav, .nav-overlay{ display:none; }
}

/* Tables: make scrollable on small screens */
@media (max-width: 768px){
  table{ display:block; overflow-x:auto; white-space:nowrap; }
  th, td{ white-space:nowrap; }
  .home-tabs-row{
    align-items:stretch;
    gap:10px;
  }
  .home-tabs{
    width:100%;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    flex-wrap:nowrap;
  }
  .home-tabs a.button{
    width:100%;
  }
  .home-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .home-filter-form{
    width:100%;
    min-width:0;
  }
  .home-filter-form label{
    text-align:left;
  }
  .table-scroll table{
    display:table;
    width:max-content;
    min-width:1530px;
  }
  .table-scroll .home-table.home-table-contracts{
    width:1460px !important;
    min-width:1460px !important;
    table-layout:fixed;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified){
    width:1120px !important;
    min-width:1120px !important;
    table-layout:fixed;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-date{ width:86px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-artist{ width:112px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-promoter{ width:142px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-event{ width:160px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-booking{ width:150px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-event-type{ width:146px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-venue{ width:252px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) col.w-action{ width:72px; }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(1),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(1){
    width:86px !important;
    min-width:86px !important;
    max-width:86px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(2),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(2){
    width:112px !important;
    min-width:112px !important;
    max-width:112px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(3),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(3){
    width:142px !important;
    min-width:142px !important;
    max-width:142px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(4),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(4){
    width:160px !important;
    min-width:160px !important;
    max-width:160px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(5),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(5){
    width:150px !important;
    min-width:150px !important;
    max-width:150px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(6),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(6){
    width:146px !important;
    min-width:146px !important;
    max-width:146px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(7),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(7){
    width:252px !important;
    min-width:252px !important;
    max-width:252px !important;
  }
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) th:nth-child(8),
  .table-scroll .home-table.home-table-deals:not(.home-table-unified) td:nth-child(8){
    width:72px !important;
    min-width:72px !important;
    max-width:72px !important;
  }
  .table-scroll .home-table.home-table-unified{
    width:100% !important;
    min-width:0 !important;
  }
  .pay-agent-month-card .table-scroll{ touch-action:pan-x; }
  .pay-agent-month-card .home-table.pay-agent-table{
    font-size:12px;
  }
  .pay-agent-month-card .home-table.pay-agent-table th,
  .pay-agent-month-card .home-table.pay-agent-table td{
    padding:8px 9px;
  }
}

/* Form touch targets & spacing */
button, .button{ min-height:44px; }
input, select, textarea{ min-height:44px; margin-bottom:10px; }


@media (max-width: 560px){
  .sig-stage{ overflow-x:auto; }
  .sig-preview{ overflow-x:auto; }
}


/* R8: burger layering + mobile nav visibility */
.app-header{ z-index: 1100; }
.nav-overlay{ z-index: 1000; }
.mobile-nav{ z-index: 1001; }

/* Ensure desktop nav hidden on mobile */
.desktop-nav{ display:none; }
@media (min-width: 870px){
  .desktop-nav{ display:flex; }
}

/* Align radios/checkboxes with label text */
label{ line-height:1.3; }
label > input[type="radio"],
label > input[type="checkbox"]{
  margin-right:8px;
  position: relative; top: 1px; /* nudge for optical alignment */
}
.inline-group{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.inline-group label{ display:inline-flex; align-items:center; gap:8px; }


/* === R9: Force mobile behavior for nav visibility & stacking === */
/* Force-hide desktop nav on small screens even if prior rules set display:flex */
.app-header nav.desktop-nav{ display:none !important; }

/* Desktop only shows the horizontal nav */
@media (min-width: 870px){
  .app-header nav.desktop-nav{ display:flex !important; }
}

/* Burger menu layering: menu and overlay above header */
.app-header{ z-index: 1200; }
.nav-overlay{ z-index: 1300; }
.mobile-nav{ z-index: 1301; }


/* === R10: Align radio/checkbox + custom select === */

/* Inline groups: keep inputs aligned with their labels */
.inline-group{ display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
.inline-group label{ display:inline-flex; align-items:center; gap:8px; margin:0; }
.inline-group input[type="radio"],
.inline-group input[type="checkbox"]{ margin:0; position:static; transform:none; }

/* Make all labels that wrap a radio/checkbox behave the same even outside .inline-group */
label > input[type="radio"], label > input[type="checkbox"]{
  margin-right:8px;
  position:static;
  transform:none;
  vertical-align:middle;
}

/* Custom select: dark glass + chevron */
select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 38px 10px 12px;
  color: var(--text);
  line-height:1.4;
  min-height:44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a9afc3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}

/* Options readable on dark */
select option{ background: #111318; color: var(--text); }


/* === R11: tighten spacing for radio/checkbox === */
/* Global input margins were adding extra vertical space; exclude radios/checkboxes */
input[type="radio"], input[type="checkbox"]{
  min-height:auto;
  margin-bottom:0 !important;
}

/* Inline or stacked radio groups: compact spacing */
.inline-group{ gap:12px; }
.inline-group label{ gap:6px; }
.radio-list, .checkbox-list{
  display:flex; flex-direction:column; gap:8px;
}
.radio-list label, .checkbox-list label{
  display:inline-flex; align-items:center; gap:8px; margin:0;
}


/* === R12: stack radio/checkbox groups on mobile === */
@media (max-width: 560px){
  .inline-group{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .inline-group label{
    width: 100%;
    justify-content: flex-start;
  }
}


/* === R14: remove hover overlay for logo and burger === */
.app-header .logo, .app-header .burger,
.app-header .logo-link, .app-header .logo-link img{
  transition: none !important;
}
.app-header .logo-link:hover, .app-header .burger:hover{
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  border-color: transparent !important;
}


/* === R15: burger non-button element & alignment === */
.burger{
  margin-left:auto;
  border:none;
  background: none;
  padding: 8px 10px;
  font-size: 22px;
  line-height: 1;
  border-radius: 10px; /* visual consistency but no border */
  cursor: pointer;
}
/* No default border/background on burger */
.burger:hover, .burger:focus{ outline: none; background: none; box-shadow: none; }
/* Desktop hides burger; already managed by media query. Ensure rule exists: */
@media (min-width: 870px){
  .burger{ display:none; }
}

/* Force burger behavior below 870px */
@media (max-width: 869.98px){
  .app-header .burger{
    display:inline-flex !important;
    margin-left:auto;
  }
  .app-header nav.desktop-nav{
    display:none !important;
  }
  .mobile-nav{
    display:flex !important;
  }
  .nav-overlay{
    display:block !important;
  }
}


/* === R16: mobile close alignment & cleanup === */
.mobile-nav .close{
  align-self: flex-end;
  background: none !important;
  border: none !important;
  padding: 6px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav .close:hover, .mobile-nav .close:focus{
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}






/* R28: spacing for the standalone welcome action button */
.welcome-action{ display:inline-block; margin:28px 0 22px; }

/* Espacements utilitaires */
.space-8  { margin-top: 8px; }
.space-16 { margin-top: 16px; }
.space-24 { margin-top: 24px; }
.space-32 { margin-top: 32px; }
.space-48 { margin-top: 48px; }
.space-64 { margin-top: 64px; }


/* R-Display: card-based lists for recent contracts & upcoming events */
.cards{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin: 10px 0 24px;
}
.card-item{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.card-head{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
}
.card-head .id{
  font-size: 12px; opacity: .75; padding: 2px 6px; border:1px solid var(--stroke); border-radius: 999px;
}
.card-head .artist{
  font-weight: 600;
}
.card-item .org{
  opacity: .9;
}
.card-item .date-row{
  font-size: 13px; opacity: .9;
}
.card-item .actions{
  margin-top: 6px;
}
.button.small, .actions .button{
  padding: 8px 12px;
  font-size: 14px;
}
@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
}


/* Soft-delete action style */
.button.danger{
  border-color: #b94141;
}
.button.danger:hover{
  background: rgba(185,65,65,.15);
}
.actions .button.small{ padding: 8px 12px; }


/* Align actions: Voir (left) and Supprimer (right) */
.card-item .actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.card-item .actions .push-right{
  margin-left:auto;
}


/* Icon-only button for delete */
.button.icon-only{
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.icon-only .icon{
  width: 16px;
  height: 16px;
  display: block;
}


/* Final alignment for card actions */
.card-item .actions{ display:flex; align-items:center; gap:8px; }
.card-item .actions .push-right{ margin-left:auto; }

/* Icon-only delete button */
.button.icon-only{ padding:8px; display:inline-flex; align-items:center; justify-content:center; }
.button.icon-only svg{ width:16px; height:16px; display:block; }
.button.icon-only svg *, .button.icon-only svg path{ fill:#ffffff !important; }


/* --- Adjustments: signature generator layout --- */
.sig-stack{ flex-direction:column; gap:22px; }


/* --- Adjustments: align corbeille icon right in cards --- */
.card-item .actions{ display:flex; justify-content:space-between; align-items:center; }
.card-item .actions form:last-child{ margin-left:auto; }


/* --- Adjustments: remove margin-right on corbeille buttons --- */
.card-item .actions form:last-child button{ margin-right:0 !important; }


/* account page helpers */
.space-12 { margin-top:12px; }
.field label{ display:block; font-size:.9rem; color:var(--muted); margin-bottom:6px; }
.field .value{ font-weight:600; }

/* Template articles */
.article-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:8px;
}

.first-page-builder{
  margin-top:22px;
}
.first-page-builder h3{
  margin-bottom:8px;
}
.first-page-builder-panel{
  margin:16px 0;
  padding:16px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.first-page-builder-panel legend{
  padding:0 8px;
  color:var(--text);
  font-weight:700;
}
.first-page-variables{
  margin:14px 0;
  padding:12px 14px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(10,11,16,.16);
}
.first-page-variables summary{
  cursor:pointer;
  font-weight:700;
  color:var(--text);
}
.first-page-variable-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:12px;
}
.first-page-variable-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.first-page-variable-list span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  border:1px solid var(--stroke);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  font-size:12px;
}
.first-page-variable-list code{
  color:var(--text);
}
.first-page-standard-list,
.first-page-custom-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.first-page-standard-row,
.first-page-custom-row{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px;
  background:rgba(10,11,16,.18);
}
.first-page-row-head,
.first-page-custom-summary{
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.first-page-row-head{
  justify-content:space-between;
  margin-bottom:12px;
}
.first-page-standard-grid,
.first-page-advanced-grid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(150px, 220px);
  gap:14px;
  align-items:start;
}
.first-page-custom-summary{
  display:grid;
  grid-template-columns:minmax(220px, 1.4fr) minmax(170px, .8fr) auto auto minmax(110px, 150px) auto;
}
.first-page-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  margin:0;
  color:var(--text);
}
.first-page-help{
  margin:4px 0 0;
  font-size:12px;
  line-height:1.35;
}
.first-page-position-field input{
  max-width:150px;
}
.first-page-advanced{
  margin-top:10px;
}
.first-page-advanced summary{
  cursor:pointer;
  color:var(--muted);
  font-weight:600;
  margin-bottom:10px;
}
.first-page-advanced-grid{
  grid-template-columns:repeat(2, minmax(220px, 1fr));
}
.first-page-custom-row .button.danger{
  align-self:center;
  white-space:nowrap;
}
.first-page-contract-fields{
  margin:18px 0;
}
.first-page-contract-fields h3{
  margin-bottom:6px;
}
.first-page-builder-simple textarea#fp_main_text{
  min-height:260px;
}
.first-page-text-block-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
}
.first-page-text-block-row{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px;
  background:rgba(10,11,16,.18);
}
.first-page-text-block-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.first-page-text-block-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.first-page-text-block-row .fp-text-block-text{
  min-height:110px;
}
.first-page-block-token-buttons{
  margin:8px 0 10px;
}
.first-page-hide-toggle{
  margin-top:8px;
}
.first-page-insert-panel{
  margin:12px 0 16px;
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:rgba(255,255,255,.025);
}
.first-page-token-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
#first-page-question-token-buttons{
  display:contents;
}
.first-page-question-token-buttons{
  display:contents;
}
.first-page-question-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.first-page-question-row{
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:14px;
  background:rgba(10,11,16,.18);
}
.first-page-question-main{
  display:grid;
  grid-template-columns:minmax(220px, 1.4fr) minmax(160px, .8fr) auto auto auto;
  gap:12px;
  align-items:end;
}
.first-page-question-hint{
  margin:8px 0 0;
  font-size:12px;
}
.first-page-preview-output{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:rgba(0,0,0,.14);
}
.first-page-preview-output p{
  margin:0;
  white-space:pre-wrap;
}
@media (max-width: 980px){
  .first-page-custom-summary,
  .first-page-question-main,
  .first-page-standard-grid,
  .first-page-advanced-grid,
  .first-page-variable-grid{
    grid-template-columns:1fr;
  }
  .first-page-text-block-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .first-page-row-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .first-page-position-field input{
    max-width:100%;
  }
}

/* Keep header visible on scroll */
.app-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
body:not(.login){
  padding-top: 72px;
  padding-bottom: 48px;
}
@media (min-width: 870px){
  body:not(.login){
    padding-top: 0px;
  }

  /* Form pages use full-width containers in home layout: cap field width for readability */
  body.home-page .container.home-container input[type="text"],
  body.home-page .container.home-container input[type="number"],
  body.home-page .container.home-container input[type="date"],
  body.home-page .container.home-container input[type="datetime-local"],
  body.home-page .container.home-container input[type="email"],
  body.home-page .container.home-container input[type="url"],
  body.home-page .container.home-container input[type="password"],
  body.home-page .container.home-container select,
  body.home-page .container.home-container textarea{
    max-width: min(920px, 100%);
  }

  body.home-page .container.home-container .deal-memo-inline{
    max-width: min(920px, 100%);
    margin: 0 0 10px 0;
  }

  body.list-page .list-content{
    max-width: 980px;
    margin: 0;
  }
}
body.home-page.view-page{
  padding-top: 24px;
}
body:not(.login)::after{
  content: "";
  display: block;
  height: 48px;
}

/* Disabled button (non-clickable) */
.button.disabled{
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.notice{ padding:8px 0; }

/* Roadmap theme controls */
.roadmap-page input[type="file"]{
  width:100%;
  padding:10px;
  border:1px dashed var(--stroke);
  border-radius:12px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  color:var(--text);
}
.roadmap-page input[type="file"]::file-selector-button{
  border:1px solid color-mix(in oklab, var(--accent) 40%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, transparent), color-mix(in oklab, var(--accent) 8%, transparent));
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  margin-right:10px;
  cursor:pointer;
}
.roadmap-page input[type="file"]::-webkit-file-upload-button{
  border:1px solid color-mix(in oklab, var(--accent) 40%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 18%, transparent), color-mix(in oklab, var(--accent) 8%, transparent));
  color:var(--text);
  border-radius:10px;
  padding:8px 12px;
  margin-right:10px;
  cursor:pointer;
}

.roadmap-page .upload-row{
  position:relative;
}
.roadmap-page .upload-input-wrap{
  position:relative;
}
.roadmap-page .upload-input-wrap input[type="file"]{
  width:100%;
}
.roadmap-page .upload-row.has-remove .upload-input-wrap input[type="file"]{
  padding-right:48px;
}
.roadmap-page .upload-remove-inline{
  position:absolute;
  top:0;
  height:100%;
  right:12px;
  color:var(--accent);
  width:34px;
  font-size:22px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  text-shadow: 0 0 8px rgba(255, 46, 134, .45);
}
.roadmap-page .upload-remove-inline:hover,
.roadmap-page .upload-remove-inline:focus{
  color:color-mix(in oklab, var(--accent) 88%, white 12%);
  outline:none;
}
.roadmap-page .upload-remove-inline i{
  display:block;
  font-size:20px;
  font-weight:900;
  line-height:1;
  -webkit-text-stroke: .5px currentColor;
  transform: translateY(-4px);
}

.roadmap-page .inline-check input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  border:1px solid var(--stroke);
  border-radius:6px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display:inline-grid;
  place-content:center;
  margin:0;
}
.roadmap-page .inline-check input[type="checkbox"]::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:3px;
  transform:scale(0);
  transition: transform .12s ease-in-out;
  background: color-mix(in oklab, var(--accent) 82%, white 0%);
}
.roadmap-page .inline-check input[type="checkbox"]:checked::before{
  transform:scale(1);
}

/* Home page layout override */
body.home-page{
  overflow-x: hidden;
}

body.home-page .container.home-container{
  width: min(1600px, 98vw);
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 869px){
  body.home-page .container.home-container{
    margin-top:0;
  }
}

@media (min-width: 870px){
  body.home-page .app-header{
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    height: 100vh;
    border-right: 1px solid var(--stroke);
    border-bottom: none;
    padding: 14px 12px;
    background: linear-gradient(180deg, rgba(10,11,16,.85), rgba(10,11,16,.55));
    z-index: 1300;
  }

  body.home-page .app-header .bar{
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  body.home-page .app-header .logo-link{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 6px 4px;
  }

  body.home-page .app-header .logo{
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
  }

  body.home-page .app-header nav.desktop-nav{
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    margin-left: 0;
    overflow-y: auto;
    padding-right: 4px;
  }

  body.home-page .app-header nav.desktop-nav a{
    width: 100%;
    padding: 9px 10px;
    border-radius: 10px;
  }

  body.home-page .app-header .burger{
    display: none !important;
  }

  body.home-page .mobile-nav,
  body.home-page .nav-overlay{
    display: none !important;
  }

  body.home-page .container.home-container{
    width: calc(100vw - 206px);
    max-width: none;
    margin: 16px 12px 22px 194px;
    overflow: hidden;
  }
}

/* === Rider Maker v2 === */
body.rider-page .container.rider-container{
  width:min(1380px, 96vw);
}

body.artist-page .container.artist-container{
  width:min(1380px, 96vw);
}

@media (min-width: 870px){
  body.artist-page .container.artist-container{
    width:calc(100vw - 206px);
    max-width:none;
    margin:16px 12px 22px 194px;
    overflow:hidden;
  }
}

.artist-toolbar{
  align-items:flex-end;
  gap:16px;
}

.artist-toolbar h2{
  margin-bottom:4px;
}

.artist-toolbar-subtitle{
  margin:0;
}

.artist-search-form{
  margin:10px 0 18px;
}

.artist-search-form label{
  margin-top:0;
}

.artist-search-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.artist-search-row input{
  flex:1 1 320px;
}

.artist-list-table td{
  vertical-align:middle;
}

.artist-list-table{
  min-width:1180px;
}

.artist-avatar{
  width:52px;
  height:52px;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,46,134,.18), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:800;
  letter-spacing:.04em;
}

.artist-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.artist-agent-list{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.artist-agent-line{
  display:flex;
  align-items:center;
  gap:10px;
}

.artist-form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:start;
}

.artist-form-card{
  padding:18px;
  background:rgba(255,255,255,.025);
  border:1px solid var(--stroke);
  border-radius:16px;
}

.artist-form-card h3{
  color:var(--text);
  margin-bottom:10px;
}

.artist-profile-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:20px 24px;
  align-items:start;
}

.artist-profile-fields{
  min-width:0;
}

.artist-profile-fields input[type="text"],
.artist-profile-fields input[type="email"],
.artist-profile-fields input[type="url"]{
  max-width:806px;
}

.artist-profile-fields #artist_name{
  max-width:390px;
}

.artist-profile-fields #presskit_drive_url{
  max-width:calc((390px * 2) + 16px);
}

.artist-profile-grid{
  grid-template-columns:repeat(2, minmax(286px, 390px));
  gap:12px 16px;
}

.artist-profile-photo{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.artist-photo-title{
  margin:0;
  font-size:14px;
  line-height:1.2;
  letter-spacing:.01em;
  color:var(--muted);
  font-weight:600;
}

.artist-photo-picker{
  position:relative;
  width:280px;
  max-width:100%;
}

.artist-photo-preview{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,46,134,.12), rgba(255,255,255,.03));
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.artist-photo-preview::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:rgba(8,10,14,.46);
  opacity:0;
  transition:opacity .18s ease;
  pointer-events:none;
  z-index:1;
}

.artist-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
}

.artist-photo-empty{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:42px;
  font-weight:800;
  color:#fff;
  letter-spacing:.08em;
  pointer-events:none;
}

.artist-photo-name{
  margin:0;
  width:280px;
  max-width:100%;
}

.artist-photo-input{
  display:none;
}

.artist-photo-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:18px;
  color:#fff;
  background:transparent;
  opacity:0;
  transition:opacity .18s ease;
  cursor:pointer;
  text-align:center;
  border-radius:inherit;
  z-index:2;
  pointer-events:auto;
}

.artist-photo-preview:not(.is-upload-locked):hover::after,
.artist-photo-preview:not(.is-upload-locked):focus-within::after{
  opacity:1;
}

.artist-photo-preview:not(.is-upload-locked):hover .artist-photo-overlay,
.artist-photo-preview:not(.is-upload-locked):focus-within .artist-photo-overlay{
  opacity:1;
}

.artist-photo-preview.is-upload-locked{
  cursor:default;
}

.artist-photo-preview.is-upload-locked .artist-photo-overlay{
  opacity:0 !important;
  pointer-events:none;
}

.artist-photo-overlay-icon{
  width:42px;
  height:42px;
  border-radius:999px;
  background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.3);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
}

.artist-photo-overlay-icon svg{
  width:22px;
  height:22px;
  display:block;
}

.artist-photo-overlay-copy{
  font-weight:700;
  letter-spacing:.01em;
}

.artist-photo-remove{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  margin:0;
  flex:0 0 34px;
  box-sizing:border-box;
  padding:0;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(0,0,0,.82);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-shadow:none;
  cursor:pointer;
  z-index:3;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:none;
  transform:none;
  transition:none;
}

.artist-photo-remove span{
  font-size:22px;
  line-height:1;
}

.artist-photo-remove:hover,
.artist-photo-remove:focus{
  background:rgba(0,0,0,.82);
  color:#fff;
  border-color:rgba(255,255,255,.22);
  outline:none;
  box-shadow:none;
  transform:none;
}

.artist-photo-remove:active{
  background:rgba(0,0,0,.82);
  color:#fff;
  border-color:rgba(255,255,255,.22);
  box-shadow:none;
  transform:none;
}

.artist-photo-help{
  margin:0;
  width:280px;
  max-width:100%;
}

.artist-photo-meta{
  display:none !important;
}

.artist-splits-card{
  margin-top:16px;
}

.artist-splits-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.artist-split-summary{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-bottom:14px;
}

.artist-split-summary-item{
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
}

.artist-split-summary-item label{
  margin:0 0 4px;
}

.artist-split-summary-item strong{
  font-size:24px;
  line-height:1.1;
}

.artist-split-errors{
  margin:0 0 14px;
}

.artist-splits-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.artist-split-row{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) minmax(360px, 1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}

.artist-split-agent,
.artist-split-percent{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.artist-split-row label{
  margin:0;
  white-space:nowrap;
  flex:0 0 auto;
}

.artist-split-agent label{
  min-width:52px;
}

.artist-split-percent label{
  min-width:128px;
}

.artist-split-agent select,
.artist-split-percent input{
  margin:0;
  min-width:0;
  flex:1 1 auto;
}

.artist-split-remove-wrap{
  display:flex;
  align-items:center;
}

.artist-split-remove{
  white-space:nowrap;
}

.artist-form-actions{
  margin-top:18px;
  display:flex;
  justify-content:flex-start;
}

.rider-card{
  padding:20px;
}

.rider-header-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.rider-header-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.rider-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:8px 0;
}

.rider-form-grid,
.rider-edit-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.rider-grid-2,
.rider-grid-3{
  display:grid;
  gap:12px;
}

.rider-grid-2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.rider-grid-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }

.rider-form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rider-check-group{
  margin-top:6px;
}

.rider-check-inline label{
  margin-top:32px;
}

.rider-list-editor{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}

.rider-list-rows{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.rider-list-row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:8px;
  align-items:center;
}

.rider-important-toggle{
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.rider-items{
  margin: 0 0 10px 20px;
  padding: 0;
  line-height:1.6;
}

.rider-important-line{
  color:#ff6b6b;
  font-weight:700;
}

.performance-section.is-hidden{
  display:none;
}

.rider-index-table{
  min-width:1100px;
}

@media (max-width: 900px){
  body.artist-page .container.artist-container{
    width:96vw;
    margin:12px auto 20px auto;
    padding:14px;
  }

  body.artist-page .home-toolbar.artist-toolbar{
    align-items:flex-start;
    gap:10px;
    margin-bottom:12px;
  }

  body.artist-page .home-toolbar.artist-toolbar .button{
    width:auto !important;
    min-width:170px;
    align-self:flex-start;
    margin:4px 0 0;
  }

  body.artist-page .artist-search-row{
    align-items:flex-start;
  }

  body.artist-page .artist-search-row .button{
    width:auto !important;
    min-width:140px;
    margin:0;
  }

  .artist-form-grid,
  .artist-profile-layout,
  .artist-profile-grid,
  .artist-split-summary,
  .artist-split-row,
  .rider-grid-2,
  .rider-grid-3{
    grid-template-columns:1fr;
  }

  .artist-profile-fields input[type="text"],
  .artist-profile-fields input[type="email"],
  .artist-profile-fields input[type="url"]{
    max-width:none;
  }

  .artist-profile-fields #artist_name,
  .artist-profile-fields #presskit_drive_url{
    max-width:none;
  }

  .artist-profile-photo{
    align-items:stretch;
  }

  .artist-photo-title{
    margin-bottom:2px;
  }

  .artist-photo-picker,
  .artist-photo-name,
  .artist-photo-help{
    width:100%;
    max-width:none;
  }

  .artist-photo-preview{
    max-width:none;
  }

  .artist-split-agent,
  .artist-split-percent{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .artist-split-agent label,
  .artist-split-percent label{
    min-width:0;
  }

  .artist-split-remove-wrap{
    justify-content:flex-start;
  }

  .rider-list-row{
    grid-template-columns:1fr;
  }
}

/* View page layout */
body.view-page .container.view-shell{
  width:min(1400px, 96vw);
  max-width:none;
  margin:8px auto 40px auto;
  display:grid;
  grid-template-columns:minmax(420px, 1fr) minmax(360px, .72fr);
  gap:18px;
  align-items:start;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

@media (min-width: 870px){
  body.home-page.view-page .container.view-shell{
    width: calc(100vw - 206px);
    max-width: none;
    margin: 6px 12px 22px 194px;
  }
}

.view-left-column{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-width:0;
}

.view-panel{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
}

.view-panel h3,
.view-panel h4{
  margin:0 0 10px 0;
}

.view-panel-info{
  position:relative;
}

.view-deal-edit-floating{
  position:absolute;
  top:16px;
  right:16px;
  min-height:auto;
}

.view-panel-header{
  position:static;
  position:relative;
}

.view-org{
  display:block;
  margin-bottom:8px;
  font-size:18px;
}

.view-status-row{
  margin:10px 0 14px;
}

body.view-page .deal-pill-item{
  align-items:flex-start;
}

.view-ready-corner{
  position:absolute;
  top:14px;
  right:24px;
  display:flex;
  flex-direction:row-reverse;
  align-items:center;
  gap:18px;
  padding:6px 0;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  color:#7ff8bd;
  min-width:0;
}

.view-ready-corner i{
  font-size:46px;
  line-height:1;
  filter: drop-shadow(0 0 8px rgba(75,240,162,.35));
  width:auto;
  height:auto;
  background:transparent;
  border:none;
}

.view-ready-corner span{
  display:block;
  font-size:14px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  line-height:1.25;
  color:#d6ffe9;
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  text-align:right;
}

.view-main-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.view-inline-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.view-doc-upload-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.view-doc-upload-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}

.view-documents-card{
  background:linear-gradient(180deg, rgba(255,0,140,.05), rgba(12,15,28,.9));
  border-color:rgba(255,46,134,.22);
}

.view-rider-card{
  background:linear-gradient(180deg, rgba(0,214,139,.06), rgba(12,15,28,.9));
  border-color:rgba(0,214,139,.2);
}

.view-documents-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.view-documents-head h4{
  margin:0;
}

.view-rider-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.view-documents-subtitle{
  margin:4px 0 0;
  font-size:13px;
}

.view-documents-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.view-documents-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.view-document-row{
  position:relative;
}

.view-document-meta{
  display:flex;
  align-items:flex-start;
  flex-wrap:nowrap;
  gap:10px;
  min-width:0;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
}

.view-document-meta label{
  margin:0 0 6px 0;
}

.view-document-upload-step{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.view-doc-dropzone{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:84px;
  border:1px dashed rgba(255,255,255,.24);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012));
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
  padding:14px 16px;
  text-align:left;
}

.view-doc-dropzone:hover{
  border-color:rgba(255,46,134,.5);
  background:linear-gradient(180deg, rgba(255,46,134,.06), rgba(255,255,255,.015));
}

.view-document-row.is-dragover .view-doc-dropzone{
  border-color:rgba(0,214,139,.6);
  background:rgba(0,214,139,.08);
  box-shadow:0 0 0 1px rgba(0,214,139,.3);
}

.view-doc-dropzone-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  color:#ffd2e8;
  flex:0 0 auto;
  font-size:16px;
}

.view-doc-dropzone-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.view-doc-dropzone-title{
  font-weight:600;
  color:var(--text);
}

.view-doc-dropzone-sub{
  font-size:13px;
  color:var(--muted);
}

.view-doc-selected-name{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-height:38px;
  font-size:13px;
  color:#d8dced;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
}

.view-doc-selected-text{
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.view-doc-selected-clear{
  appearance:none;
  border:0;
  background:transparent;
  color:#fff;
  width:20px;
  height:20px;
  min-height:20px;
  padding:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  box-shadow:none;
  margin:0;
}

.view-doc-selected-clear span{
  display:block;
  transform:translateY(-1px);
}

.view-doc-selected-clear:hover{
  background:rgba(255,255,255,.14);
}

.view-document-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.view-document-type-field{
  flex:0 0 240px;
  min-width:240px;
  max-width:240px;
}

.view-document-other-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
  min-width:0;
  max-width:none;
}

.view-document-other-field.is-hidden{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}

.view-document-kind-select{
  margin-bottom:0 !important;
}

.view-document-file-input{
  position:absolute;
  inset:0;
  opacity:0;
  width:100%;
  height:100%;
  cursor:pointer;
}

.view-documents-list{
  margin-top:14px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.view-documents-list h5{
  margin:0 0 10px 0;
}

.view-document-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.02);
}

.view-document-item + .view-document-item{
  margin-top:8px;
}

.view-document-item-main{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.view-document-item-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.view-document-delete-form{
  margin:0;
}

.view-document-delete-form .button{
  min-width:40px;
  padding-inline:10px;
}

.view-document-kind-pill{
  align-self:flex-start;
  font-size:11px;
  line-height:1;
  padding:5px 9px;
  border-radius:999px;
  color:#ffd9ec;
  background:rgba(255,46,134,.16);
  border:1px solid rgba(255,46,134,.42);
}

.view-rider-link-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.view-rider-actions{
  display:flex;
  gap:10px;
}

.view-rider-current{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,214,139,.2);
  background:rgba(0,214,139,.08);
}

.view-transport-grid,
.transport-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.view-transport-direction,
.transport-card{
  border:1px solid var(--stroke);
  border-radius:12px;
  padding:12px;
  background:rgba(255,255,255,.015);
}

.view-transport-direction h5,
.transport-card h3,
.transport-card h4,
.view-transport-direction h6{
  margin:0;
}

.view-transport-direction-head,
.transport-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

.view-transport-form,
.view-transport-upload-form,
.public-transport-upload-form{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.view-transport-toggle,
.transport-toggle{
  margin:6px 0 10px;
}

.transport-toggle-link{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:4px 0;
  min-height:auto;
  box-shadow:none;
  cursor:pointer;
}

.transport-toggle-link::before,
.transport-toggle-link::after{
  content:"";
  flex:1 1 auto;
  height:1px;
  background:rgba(255,255,255,.14);
}

.transport-toggle-link:hover{
  color:var(--text);
}

.transport-form-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.public-transports-page .transport-form-actions{
  flex-direction:column;
  align-items:flex-start;
  gap:0;
}

.public-transports-page .transport-form-actions button[data-transport-save-submit]{
  width:auto;
}

.public-transports-page .transport-form-actions .login-captcha-hint{
  margin: 6px 0 2px;
  line-height: 1.2;
}

.view-transport-info-wrap.is-collapsed,
.transport-info-wrap.is-collapsed{
  display:none;
}

.transport-lock{
  margin:8px 0 0;
}

.transport-status{
  display:flex;
  align-items:center;
  gap:8px;
}

.transport-card .grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.transport-upload-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.transport-upload-grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.transport-upload-row{
  position:relative;
}

.transport-upload-row .view-doc-selected-name{
  margin-top:6px;
}

.transport-ai-status{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.35;
}

.transport-ai-status.is-loading{
  display:flex;
  align-items:center;
  gap:8px;
}

.transport-ai-status.is-loading::before{
  content:"";
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:2px solid rgba(255,255,255,.22);
  border-top-color:var(--accent);
  border-radius:50%;
  animation:transport-ai-spin .75s linear infinite;
}

@keyframes transport-ai-spin{
  to{ transform:rotate(360deg); }
}

.transport-ai-status.is-loading,
.transport-ai-status.is-info{
  color:var(--muted);
}

.transport-ai-status.is-success{
  color:var(--ok);
}

.transport-ai-status.is-error{
  color:var(--danger);
}

.transport-upload-row.is-dragover .view-doc-dropzone{
  border-color:rgba(0,214,139,.6);
  background:rgba(0,214,139,.08);
  box-shadow:0 0 0 1px rgba(0,214,139,.3);
}

.transport-upload-row .view-doc-dropzone.is-disabled{
  opacity:.55;
  pointer-events:none;
}

.view-transport-file-input,
.public-transport-file-input{
  position:absolute;
  inset:0;
  opacity:0;
  width:100%;
  height:100%;
  cursor:pointer;
}

.view-transport-file-input:disabled,
.public-transport-file-input:disabled{
  cursor:not-allowed;
}

.view-transport-files,
.transport-files{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.view-transport-file-item,
.transport-file-item{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--stroke);
  border-radius:10px;
  padding:10px;
  background:rgba(255,255,255,.015);
}

.view-transport-file-main,
.transport-file-main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.view-transport-file-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
}

.view-transport-validation-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.view-right-column{
  min-width:0;
  padding-right:10px;
  position:sticky;
  top:24px;
  align-self:start;
}

.view-pdf-card{
  position:static;
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:12px;
}

.view-pdf-card.view-pdf-signed{
  border-color: rgba(48,209,88,.55);
  background: linear-gradient(180deg, rgba(48,209,88,.16), rgba(48,209,88,.08));
  box-shadow: 0 0 0 1px rgba(48,209,88,.22), var(--shadow);
}

.view-pdf-card.view-pdf-unsigned{
  border-color: rgba(255,107,107,.5);
  background: linear-gradient(180deg, rgba(255,107,107,.16), rgba(255,107,107,.08));
  box-shadow: 0 0 0 1px rgba(255,107,107,.2), var(--shadow);
}

.view-pdf-title{
  font-weight:700;
  margin-bottom:10px;
  color:var(--text);
}

.view-pdf-actions{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.view-pdf-main-buttons{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.view-public-link-row{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:12px;
}

.view-public-input{
  width:100%;
  cursor:pointer;
}

.view-pdf-frame{
  width:100%;
  height:620px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:#0f1118;
}

.view-venue-card{
  padding:0;
  overflow:hidden;
}

.view-venue-map{
  display:block;
  width:100%;
  height:320px;
  border:0 !important;
  border-radius:16px !important;
  min-height:0;
  background:#0f1118;
  filter: invert(90%) hue-rotate(180deg) saturate(.7) brightness(.82) contrast(1.05);
}

.view-venue-map-empty{
  filter:none;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:14px;
}

@media (max-width: 1080px){
  body.view-page .container.view-shell{
    grid-template-columns:1fr;
    gap:14px;
    margin-top:12px;
  }

  .view-panel-header,
  .view-pdf-card{
    position:static;
  }

  .view-right-column{
    padding-right:0;
    position:static;
    top:auto;
  }

  .view-pdf-frame{
    height:520px;
  }

  .view-venue-map{
    height:280px;
  }

  .view-doc-upload-form{
    padding:12px;
  }
}

@media (max-width: 680px){
  .view-panel{
    padding:12px;
  }

  .view-documents-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .view-rider-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .view-doc-upload-form{
    padding:12px;
  }

  .view-document-meta{
    flex-direction:column;
    align-items:stretch;
  }

  .view-document-type-field,
  .view-document-other-field{
    min-width:0;
    max-width:none;
    flex:1 1 100%;
  }

  .view-ready-corner{
    position:static;
    margin-top:8px;
    margin-bottom:8px;
  }

  .view-pdf-frame{
    height:420px;
  }

  .transport-card .grid-2{
    grid-template-columns:1fr;
  }

  .view-transport-file-item,
  .transport-file-item{
    flex-direction:column;
  }
}

/* Public pages: align content width with list.php layout */
body.home-page.public-page .container.home-container{
  width: min(980px, 98vw);
  max-width: 980px;
}

@media (min-width: 870px){
  body.home-page.public-page .container.home-container{
    width: min(980px, calc(100vw - 230px));
    max-width: 980px;
    margin: 16px 12px 22px 194px;
  }
}

body.public-page .app-header nav.desktop-nav a.is-active,
body.public-documents-page .app-header nav.desktop-nav a.is-active,
body.public-page .mobile-nav a.is-active,
body.public-documents-page .mobile-nav a.is-active{
  background: linear-gradient(180deg, rgba(255,46,134,.16), rgba(255,46,134,.08));
  border-color: color-mix(in oklab, var(--accent) 52%, white 0%);
  color: #fff;
  font-weight: 700;
}

/* Public documents page keeps a wider shell */
body.public-documents-page .public-documents-container{
  width:min(1440px, 96vw);
  max-width:none;
}

@media (min-width: 870px){
  body.home-page.public-documents-page .container.public-documents-container{
    width: calc(100vw - 206px);
    max-width: none;
    margin: 16px 12px 22px 194px;
  }
}

.public-documents-head{
  margin-bottom:12px;
}

.public-documents-head h2{
  margin:0 0 8px 0;
}

.public-documents-meta{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:0;
  color:var(--muted);
  font-size:16px;
}

.public-documents-left{
  min-width:0;
}

.public-documents-shell{
  display:grid;
  grid-template-columns:minmax(300px, .9fr) minmax(420px, 1.4fr);
  gap:16px;
  align-items:start;
}

.public-documents-timeline-card,
.public-documents-viewer-card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
}

.public-documents-timeline-card h3,
.public-documents-viewer-card h3{
  margin:0 0 10px 0;
}

.public-documents-timeline-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  max-height:72vh;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
}

.public-documents-item{
  width:100%;
  box-sizing:border-box;
  text-align:left;
  border:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  color:var(--text);
  border-radius:12px;
  padding:11px 12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  cursor:pointer;
  transition:border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.public-documents-item:hover{
  border-color:rgba(255,0,140,.45);
  background:linear-gradient(180deg, rgba(255,0,140,.10), rgba(255,0,140,.03));
}

.public-documents-item.is-active{
  border-color:rgba(255,0,140,.65);
  box-shadow:0 0 0 1px rgba(255,0,140,.25);
  background:linear-gradient(180deg, rgba(255,0,140,.18), rgba(255,0,140,.08));
}

.public-documents-item-title{
  font-weight:700;
  font-size:14px;
  line-height:1.35;
  word-break:break-word;
}

.public-documents-item-meta{
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.public-documents-viewer-card{
  position:sticky;
  top:74px;
}

.public-documents-viewer-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.public-documents-viewer-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.public-documents-viewer-frame{
  width:100%;
  height:72vh;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:#0f1118;
}

@media (max-width: 1080px){
  .public-documents-shell{
    grid-template-columns:1fr;
  }

  .public-documents-timeline-list{
    max-height:none;
  }

  .public-documents-viewer-card{
    position:static;
    top:auto;
  }

  .public-documents-viewer-frame{
    height:62vh;
  }
}

@media (max-width: 680px){
  .public-documents-meta{
    font-size:14px;
  }

  .public-documents-viewer-header{
    flex-direction:column;
  }

  .public-documents-viewer-actions{
    width:100%;
    justify-content:flex-start;
  }

  .public-documents-viewer-frame{
    height:54vh;
  }
}

/* Artist portal */
body.artist-portal-page{
  padding-top:72px !important;
}

@media (min-width: 870px){
  body.artist-portal-page{
    padding-top:0 !important;
  }
}

body.artist-portal-login-page .container.login-card{
  margin-top: 0;
}

.artist-login-alt-link{
  margin-top:14px;
  margin-bottom:0;
  text-align:center;
}

.artist-login-alt-link a{
  color:var(--muted);
  font-size:14px;
}

.artist-app-header{
  position:sticky;
  top:0;
  z-index:35;
  border-bottom:1px solid var(--stroke);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  background:linear-gradient(180deg, rgba(10,11,16,.88), rgba(10,11,16,.62));
}

.artist-app-header-bar{
  width:min(1100px, 96vw);
  margin:0 auto;
  padding:12px 0;
  display:flex;
  align-items:center;
  gap:12px;
}

.artist-app-logo-link{
  display:inline-flex;
  align-items:center;
}

.artist-app-logo{
  height:24px;
  width:auto;
  opacity:.92;
}

.artist-app-welcome{
  display:flex;
  flex-direction:column;
  gap:2px;
  color:var(--muted);
  font-size:12px;
  min-width:0;
}

.artist-app-welcome strong{
  color:var(--text);
  font-size:14px;
  line-height:1.1;
}

.artist-app-welcome span{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:260px;
}

.artist-app-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}

.artist-app-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  color:var(--text);
  font-weight:600;
  text-decoration:none;
  transition:.2s ease;
}

.artist-app-nav a:hover{
  border-color:color-mix(in oklab, var(--accent) 42%, white 0%);
  background:linear-gradient(180deg, rgba(255,46,134,.16), rgba(255,46,134,.07));
}

.artist-app-nav a.is-active{
  border-color:color-mix(in oklab, var(--accent) 58%, white 0%);
  background:linear-gradient(180deg, rgba(255,46,134,.22), rgba(255,46,134,.10));
}

.artist-portal-shell{
  width:min(980px, 98vw);
  margin:18px auto 36px;
}

.artist-portal-shell h1{
  font-size:clamp(22px, 2.3vw, 30px);
}

body.artist-portal-page .app-header nav.desktop-nav a.is-active,
body.artist-portal-page .mobile-nav a.is-active{
  background: linear-gradient(180deg, rgba(255,46,134,.16), rgba(255,46,134,.08));
  border-color: color-mix(in oklab, var(--accent) 52%, white 0%);
  color: #fff;
  font-weight: 700;
}

.artist-portal-header-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  flex-wrap:nowrap;
  margin-bottom:14px;
}

.artist-portal-header-row h1{
  margin:0;
  font-size:clamp(22px, 2.3vw, 30px);
  flex:1 1 auto;
  min-width:0;
}

.artist-back-button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  padding:8px 12px;
  margin:0;
  margin-left:auto;
  width:auto !important;
  flex:0 0 auto;
  white-space:nowrap;
}

.artist-back-icon{
  display:inline-block;
  font-size:14px;
  line-height:1;
  font-weight:700;
}

.artist-welcome-strip{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 12px;
  padding:10px 12px;
  border-radius:18px;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 35%, rgba(255,255,255,.01) 100%),
    rgba(24,26,35,.36);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 10px 22px rgba(0,0,0,.24);
  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.artist-welcome-strip::before,
.artist-welcome-strip::after{
  content:"";
  position:absolute;
  border-radius:999px 999px 880px 1020px;
  pointer-events:none;
  transition: transform .55s ease, filter .55s ease, opacity .55s ease;
}

.artist-welcome-strip::before{
  width:180px;
  height:180px;
  right:-42px;
  top:-82px;
  background:
    radial-gradient(circle at 26% 26%, rgba(255,120,170,.34), rgba(255,46,134,.16) 42%, rgba(255,46,134,0) 78%);
  filter:blur(7px);
  opacity:.88;
  animation:artistLiquidFloatA 8.5s ease-in-out infinite;
}

.artist-welcome-strip::after{
  width:120px;
  height:120px;
  left:-22px;
  bottom:-62px;
  background:
    radial-gradient(circle at 32% 32%, rgba(255,95,145,.28), rgba(255,46,134,.12) 45%, rgba(255,46,134,0) 76%);
  filter:blur(5px);
  opacity:.78;
  animation:artistLiquidFloatB 11s ease-in-out infinite;
}

.artist-welcome-strip:hover{
  border-color:rgba(255,255,255,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(255,255,255,.1),
    0 12px 28px rgba(0,0,0,.3);
}

.artist-welcome-strip:hover::before{
  transform:translate3d(-20px, 16px, 0) scale(1.12);
  filter:blur(10px);
}

.artist-welcome-strip:hover::after{
  transform:translate3d(18px, -14px, 0) scale(1.15);
  filter:blur(8px);
}

@keyframes artistLiquidFloatA{
  0%,100%{ transform:translate3d(0,0,0) scale(1); }
  50%{ transform:translate3d(-10px,10px,0) scale(1.06); }
}

@keyframes artistLiquidFloatB{
  0%,100%{ transform:translate3d(0,0,0) scale(1); }
  50%{ transform:translate3d(10px,-9px,0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce){
  .artist-welcome-strip::before,
  .artist-welcome-strip::after{
    animation:none;
    transition:none;
  }
}

.artist-welcome-avatar{
  width:74px;
  height:74px;
  flex:0 0 74px;
  border-radius:14px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  position:relative;
  z-index:1;
}

.artist-welcome-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.artist-welcome-avatar span{
  font-weight:700;
  font-size:24px;
  letter-spacing:.4px;
  color:#f5f7ff;
}

.artist-welcome-content{
  min-width:0;
  position:relative;
  z-index:1;
}

.artist-welcome-line{
  margin:0;
  line-height:1.35;
  font-size:16px;
  color:#e7eaf5;
}

.artist-welcome-title{
  font-size:17px;
  font-weight:700;
}

.artist-portal-tabs{
  display:flex;
  gap:10px;
  margin-bottom:12px;
}

body.artist-portal-page .artist-home-tabs .button{
  width:auto !important;
  flex:0 0 auto !important;
  white-space:nowrap;
  font-size:14px;
}

.artist-portal-filter-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.artist-portal-checkbox{
  margin:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.artist-portal-checkbox input{
  width:18px;
  height:18px;
}

.artist-portal-card{
  margin-bottom:14px;
  min-width:0;
  overflow:hidden;
}

.artist-portal-grid-two{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

.artist-portal-cta-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.artist-portal-cta-inline{
  margin-bottom:14px;
}

.artist-view-cta-grid{
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.artist-view-cta-item{
  position:relative;
}

.artist-view-cta-tile{
  min-height:94px;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center;
  padding:10px 8px;
}

.artist-view-cta-tile-primary{
  border-color: rgba(255, 46, 134, .56);
  background: linear-gradient(180deg, rgba(255, 46, 134, .22), rgba(255, 46, 134, .12));
}

.artist-view-cta-tile.is-disabled{
  color:#a8adbf;
  border-color:rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  cursor:not-allowed;
  pointer-events:auto;
  transform:none;
}

.artist-view-cta-tile.is-disabled i{
  color:#8b90a3;
}

.artist-view-cta-icon{
  font-size:20px;
  line-height:1;
}

.artist-view-cta-label{
  display:block;
  font-size:12px;
  line-height:1.2;
}

.artist-view-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 8px);
  transform:translateX(-50%) translateY(4px);
  background:rgba(20,22,30,.96);
  border:1px solid rgba(255,255,255,.14);
  color:#dfe4f5;
  font-size:12px;
  line-height:1.3;
  padding:7px 10px;
  border-radius:10px;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index:20;
  box-shadow:var(--shadow);
}

.artist-view-tooltip::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:6px solid transparent;
  border-top-color:rgba(20,22,30,.96);
}

.artist-view-cta-item.is-locked:hover .artist-view-tooltip,
.artist-view-cta-item.is-locked:focus-within .artist-view-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}

.artist-portal-map-frame{
  width:100%;
  height:320px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:#0f1118;
  filter: invert(90%) hue-rotate(180deg) saturate(.7) brightness(.82) contrast(1.05);
}

.artist-portal-pdf-frame{
  width:100%;
  height:640px;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:#0f1118;
}

.artist-portal-file-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
}

.artist-portal-file-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  width:100%;
  max-width:100%;
  padding:10px 12px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  overflow:hidden;
}

.artist-portal-file-meta{
  flex:1 1 auto;
  min-width:0;
  width:100%;
  display:block;
  overflow:visible;
}

.artist-portal-file-meta strong{
  display:block;
  width:100%;
  max-width:100%;
  color:#f2f4fb;
  font-weight:700;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.artist-portal-file-meta .muted{
  display:block;
  width:100%;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.artist-portal-file-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}

.artist-portal-file-actions .button{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.artist-transport-block{
  margin:0 0 8px 0;
}

.artist-transport-line{
  margin:0;
}

.artist-transport-subline{
  margin:2px 0 0 0;
}

.artist-portal-form label{
  margin-top:12px;
}

.artist-push-backdrop{
  position:fixed;
  inset:0;
  z-index:1400;
  background:rgba(0,0,0,.42);
}

.artist-push-banner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:300px;
  z-index:1401;
  border:1px solid rgba(255,255,255,.22);
  border-radius:14px;
  background:rgba(0,0,0,.94);
  box-shadow:var(--shadow);
  padding:14px 14px 12px;
}

body.artist-push-open > *:not(.app-header):not(#artist-push-backdrop):not(#artist-push-banner){
  filter: blur(8px);
  -webkit-filter: blur(8px);
  transition: filter .18s ease;
}

body.artist-push-open > *:not(.app-header):not(#artist-push-backdrop):not(#artist-push-banner){
  pointer-events: none;
  user-select: none;
}

.artist-push-title{
  margin:0 0 4px;
  color:#fff;
  font-size:18px;
  font-weight:700;
}

.artist-push-text{
  margin:0 0 8px;
  color:var(--muted);
  font-size:15px;
  line-height:1.42;
}

.artist-push-benefits{
  margin:0 0 12px 18px;
  padding:0;
  color:#d8dbe4;
  font-size:13px;
  line-height:1.45;
}

.artist-push-actions{
  display:flex;
  gap:10px;
}

.artist-push-actions .button{
  padding:9px 14px;
  font-size:14px;
}

.artist-push-dismiss-link{
  display:inline-block;
  margin-top:8px;
  color:var(--muted);
  text-decoration:underline;
  font-size:13px;
}

.artist-push-dismiss-link:hover,
.artist-push-dismiss-link:focus-visible{
  color:#fff;
}

.artist-install-banner{
  position:fixed;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:60;
  border:1px solid var(--stroke);
  border-radius:14px;
  background:linear-gradient(180deg, rgba(10,11,16,.95), rgba(10,11,16,.85));
  box-shadow:var(--shadow);
  padding:12px;
}

.artist-install-banner p{
  margin:0 0 10px 0;
  color:var(--text);
}

.artist-install-actions{
  display:flex;
  gap:8px;
}

.artist-install-guide{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}

.artist-install-step{
  color:var(--text);
  font-size:14px;
  line-height:1.45;
  margin:0 0 8px;
}

.artist-install-step:last-of-type{
  margin-bottom:0;
}

.artist-install-step i{
  color:color-mix(in oklab, var(--accent) 70%, white 0%);
}

.artist-install-share-image{
  height:16px;
  width:auto;
  vertical-align:-3px;
}

.artist-install-plus-icon{
  color:#017aff !important;
}

.artist-install-step strong{
  font-weight:700;
  color:#fff;
}

.artist-install-step-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  margin-right:4px;
  vertical-align:middle;
  position:relative;
  top:-1px;
  font-size:11px;
  font-weight:700;
  color:#fff;
  background:rgba(255,255,255,.16);
}

.artist-install-arrow{
  margin-top:8px;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  text-align:center;
  color:#017aff;
  font-size:13px;
  font-weight:600;
}

.artist-install-arrow i{
  font-size:14px;
  animation:artistInstallArrowFloat 1.25s ease-in-out infinite;
}

@keyframes artistInstallArrowFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(3px); }
}

@media (min-width: 901px){
  .artist-push-backdrop{
    display:none !important;
  }

  .artist-push-banner{
    display:none !important;
  }

  .artist-install-banner{
    display:none !important;
  }
}

.artist-portal-admin-card .artist-portal-admin-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:14px;
}

.artist-portal-admin-card .artist-portal-admin-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.artist-portal-admin-card .artist-portal-admin-actions form{
  margin:0;
}

@media (max-width: 900px){
  .artist-portal-grid-two{
    grid-template-columns:1fr;
  }

  .artist-portal-cta-grid{
    grid-template-columns:1fr;
  }

  .artist-view-cta-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  }

  .artist-portal-admin-card .artist-portal-admin-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 680px){
  .artist-app-header-bar{
    flex-wrap:wrap;
    padding:10px 0;
  }

  .artist-app-welcome{
    order:3;
    width:100%;
  }

  .artist-app-nav{
    width:100%;
    margin-left:0;
    justify-content:space-between;
    flex-wrap:wrap;
  }

  .artist-app-nav a{
    flex:1 1 calc(33.333% - 6px);
    min-width:0;
    padding:9px 8px;
    font-size:13px;
  }

  .artist-portal-shell{
    width:min(980px, 98vw);
    margin:12px auto 24px;
  }

  .artist-welcome-strip{
    padding:8px 10px;
    gap:10px;
  }

  .artist-welcome-avatar{
    width:58px;
    height:58px;
    flex:0 0 58px;
    border-radius:12px;
  }

  .artist-welcome-avatar span{
    font-size:20px;
  }

  .artist-welcome-line{
    font-size:14px;
  }

  .artist-welcome-title{
    font-size:15px;
  }

  .artist-portal-header-row{
    align-items:center;
    flex-direction:row;
    flex-wrap:nowrap;
    justify-content:flex-start;
    gap:8px;
  }

.artist-portal-header-row .artist-back-button{
  width:auto !important;
  margin-left:auto;
}

.artist-portal-header-row .artist-preview-download{
  margin-left:0 !important;
}

  .artist-portal-tabs{
    width:100%;
  }

  .artist-portal-tabs .button{
    flex:1;
  }

  .artist-portal-filter-row{
    flex-wrap:wrap;
  }

  .artist-portal-file-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .artist-portal-file-meta{
    width:100%;
  }

  .artist-portal-file-meta strong,
  .artist-portal-file-meta .muted{
    max-width:100%;
  }

  .artist-portal-file-actions{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px;
  }

  .artist-portal-file-actions .button{
    min-width:0;
    width:100%;
  }

  .artist-portal-pdf-frame{
    height:520px;
  }
}

body.artist-portal-page .artist-home-filter-check{
  min-width:auto;
  flex-direction:row;
  align-items:center;
  gap:8px;
}

body.artist-portal-page .artist-home-filter-check .home-check-inline{
  min-height:24px;
}

body.artist-portal-page .artist-home-toolbar{
  justify-content:flex-start;
  align-items:center;
  gap:0;
}

body.artist-portal-page .artist-home-toolbar .artist-home-filter-form{
  width:auto;
  min-width:0;
  margin:0 !important;
}

body.artist-portal-page .artist-home-toolbar .home-filters-row{
  gap:0;
  justify-content:flex-start;
}

body.artist-portal-page .artist-home-toolbar .artist-home-filter-check{
  margin-left:0;
}

body.artist-portal-page .artist-home-tabs .artist-add-date-button{
  background:linear-gradient(180deg, rgba(57,126,255,.24), rgba(57,126,255,.14));
  border-color:rgba(57,126,255,.58);
  color:#d8e8ff;
}

body.artist-portal-page .artist-home-tabs .artist-add-date-button:hover{
  background:linear-gradient(180deg, rgba(57,126,255,.34), rgba(57,126,255,.2));
  border-color:rgba(57,126,255,.72);
}

body.artist-portal-page .artist-home-tabs{
  flex-wrap:wrap;
}

body.artist-portal-page .artist-home-filter-check .home-check-inline label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  cursor:pointer;
}

body.artist-portal-page .artist-home-filter-check input[type="checkbox"]{
  width:24px;
  height:24px;
  border-radius:8px;
}

body.artist-portal-page .artist-home-filter-check input[type="checkbox"]::before{
  font-size:14px;
  -webkit-text-stroke:.45px currentColor;
}

@media (max-width: 869px){
  body.home-page.artist-portal-page .artist-portal-shell{
    margin-top:0;
    padding:0 15px;
  }

  body.artist-portal-page .view-venue-card{
    padding:0 !important;
  }

  body.artist-portal-page .view-venue-map{
    height:224px;
  }
}

@media (max-width: 420px){
  body.artist-portal-page .artist-home-tabs{
    justify-content:flex-start;
    gap:8px;
  }

  body.artist-portal-page .artist-home-toolbar{
    justify-content:flex-start;
    align-items:flex-start;
  }

  body.artist-portal-page .artist-home-toolbar .artist-home-filter-form{
    width:auto;
    margin-left:0 !important;
  }

  body.artist-portal-page .artist-home-toolbar .home-filters-row{
    justify-content:flex-start;
    width:auto;
  }
}

@media (min-width: 870px){
  body.home-page.artist-portal-page .artist-portal-shell{
    width: min(980px, calc(100vw - 230px));
    max-width: 980px;
    margin: 16px 12px 22px 194px;
  }

  body.home-page.artist-portal-page .app-header .logo-link{
    padding: 0 0;
  }
}

body.artist-portal-page .app-header .logo-link{
  padding: 0 0;
}

/* Royalties pages */
body.royalties-page .container.home-container{
  width:min(1260px, 95vw);
}

body.royalties-page .royalties-nav-row{
  margin-bottom:14px;
}

body.royalties-page .royalties-view-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
}

body.royalties-page .royalties-view-nav a{
  color:var(--muted);
  text-decoration:none;
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:7px 12px;
  font-size:13px;
}

body.royalties-page .royalties-view-nav a:hover{
  color:var(--text);
  border-color:var(--accent);
}

body.royalties-page .royalties-tab-active{
  border-color: color-mix(in oklab, var(--accent-2) 42%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent-2) 28%, transparent),
                                     color-mix(in oklab, var(--accent-2) 12%, transparent));
}

body.royalties-page .royalties-section{
  margin-top:14px;
  padding:16px;
}

body.royalties-page .royalties-section h3{
  color:var(--text);
}

body.royalties-page .royalties-form{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:10px;
}

body.royalties-page .royalties-form > button,
body.royalties-page .royalties-form > .button{
  margin-bottom:13px;
}

body.royalties-page .royalties-filters-form{
  display:grid;
  grid-template-columns:repeat(3, minmax(170px,1fr)) auto auto;
  align-items:end;
  gap:10px;
}

body.royalties-page .royalties-filters-form .royalties-field{
  min-width:0;
}

body.royalties-page .royalties-filters-form > button,
body.royalties-page .royalties-filters-form > .button{
  min-height:46px;
  height:46px;
  padding:0 16px;
  white-space:nowrap;
  align-self:end;
}

body.royalties-page .royalties-receipt-form{
  display:grid;
  grid-template-columns:repeat(5, minmax(160px,1fr)) auto;
  align-items:end;
  gap:10px;
}

body.royalties-page .royalties-receipt-form .royalties-field{
  min-width:0;
}

body.royalties-page .royalties-receipt-form > button{
  min-height:46px;
  height:46px;
  padding:0 16px;
  white-space:nowrap;
  align-self:end;
}

body.royalties-page .royalties-field{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:190px;
  margin:6px 8px 6px 0;
}

body.royalties-page .royalties-field label{
  margin:0 0 6px;
  line-height:1.2;
  white-space:nowrap;
}

body.royalties-page .royalties-field > input[type="text"],
body.royalties-page .royalties-field > input[type="number"],
body.royalties-page .royalties-field > input[type="month"],
body.royalties-page .royalties-field > input[type="date"],
body.royalties-page .royalties-field > select,
body.royalties-page .royalties-field > textarea{
  width:100%;
  max-width:100%;
  color:var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  min-height:46px;
  height:46px;
  line-height:1.2;
  margin:6px 8px 6px 0;
}

body.royalties-page .royalties-field > input[type="month"]{
  letter-spacing:.2px;
}

body.royalties-page .royalties-field > input[type="file"]{
  width:100%;
  max-width:100%;
  color:var(--muted);
  border:1px dashed var(--stroke);
  border-radius:14px;
  padding:8px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  margin:6px 8px 6px 0;
}

body.royalties-page .royalties-field > input[type="file"]::file-selector-button{
  appearance:none;
  border:1px solid color-mix(in oklab, var(--accent) 40%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 14%, transparent),
                                     color-mix(in oklab, var(--accent) 6%, transparent));
  color:var(--text);
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  margin-right:12px;
}

body.royalties-page .royalties-field > input[type="file"]::-webkit-file-upload-button{
  appearance:none;
  border:1px solid color-mix(in oklab, var(--accent) 40%, white 0%);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 14%, transparent),
                                     color-mix(in oklab, var(--accent) 6%, transparent));
  color:var(--text);
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  margin-right:12px;
}

body.royalties-page .royalties-upload-form .royalties-field{
  flex:1 1 420px;
}

body.royalties-page .royalties-form-payout{
  display:grid;
  grid-template-columns:minmax(170px,1fr) minmax(190px,1fr) minmax(190px,1fr) minmax(260px,1.3fr) auto;
  align-items:end;
  gap:10px;
}

body.royalties-page .royalties-form-payout .royalties-field{
  min-width:0;
}

body.royalties-page .royalties-form-payout .royalties-field-wide{
  min-width:260px;
}

body.royalties-page .royalties-form-payout .royalties-field textarea{
  min-height:46px;
  height:46px;
}

body.royalties-page .royalties-payout-submit{
  align-self:flex-end;
  min-height:46px;
  white-space:nowrap;
}

body.royalties-page .royalties-field-wide{
  min-width:280px;
  flex:1 1 320px;
}

body.royalties-page .royalties-subform{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--stroke);
}

body.royalties-page .royalties-kpi-grid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

body.royalties-page .royalties-kpi-grid.royalties-kpi-grid--4{
  grid-template-columns:repeat(4, minmax(0,1fr));
}

body.royalties-page .royalties-kpi-card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:12px 14px;
}

body.royalties-page .royalties-kpi-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
}

body.royalties-page .royalties-kpi-value{
  margin-top:4px;
  font-size:21px;
  font-weight:700;
  color:var(--text);
  line-height:1.2;
}

body.royalties-page .royalties-amount{
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  font-weight:600;
}

body.royalties-page .royalties-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  border:1px solid var(--stroke);
}

body.royalties-page .royalties-pill-covered{
  background: rgba(48,209,88,.16);
  border-color: rgba(48,209,88,.48);
  color: #8df2b0;
}

body.royalties-page .royalties-pill-open{
  background: rgba(255,107,107,.16);
  border-color: rgba(255,107,107,.48);
  color: #ff9aa9;
}

body.royalties-page .royalties-pill-cancelled{
  background: rgba(170,180,196,.16);
  border-color: rgba(170,180,196,.42);
  color:#d4d9e5;
}

body.royalties-page .royalties-note{
  margin-top:8px;
  color:var(--muted);
}

body.royalties-page .royalties-info{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:10px 0 14px;
  padding:11px 13px;
  color:var(--muted);
  background:rgba(93,180,255,.07);
  border:1px solid rgba(93,180,255,.22);
  border-radius:12px;
  line-height:1.45;
}

body.royalties-page .royalties-info strong{
  color:var(--text);
}

body.royalties-page .royalties-info code,
body.royalties-page .home-table th small{
  color:var(--muted);
  font-size:.86em;
}

body.royalties-page .royalties-inline-form{
  gap:6px;
  align-items:center;
}

body.royalties-page .royalties-inline-form input[type="text"]{
  min-width:210px;
}

body.royalties-page .royalties-inline-form button{
  padding:9px 12px;
}

@media (max-width: 1180px){
  body.royalties-page .royalties-kpi-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  body.royalties-page .royalties-filters-form{
    grid-template-columns:repeat(3, minmax(160px,1fr));
  }

  body.royalties-page .royalties-receipt-form{
    grid-template-columns:repeat(3, minmax(180px,1fr));
  }

  body.royalties-page .royalties-receipt-form > button{
    grid-column:1 / -1;
    justify-self:start;
  }

  body.royalties-page .royalties-form-payout{
    grid-template-columns:repeat(2, minmax(220px,1fr));
  }

  body.royalties-page .royalties-payout-submit{
    grid-column:1 / -1;
    justify-self:start;
  }
}

@media (max-width: 780px){
  body.royalties-page .royalties-kpi-grid,
  body.royalties-page .royalties-kpi-grid.royalties-kpi-grid--4{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  body.royalties-page .royalties-filters-form,
  body.royalties-page .royalties-receipt-form{
    grid-template-columns:1fr;
  }

  body.royalties-page .royalties-filters-form > button,
  body.royalties-page .royalties-filters-form > .button,
  body.royalties-page .royalties-receipt-form > button{
    width:100%;
    justify-self:stretch;
  }

  body.royalties-page .royalties-field{
    min-width:unset;
    width:100%;
    margin:0;
  }

  body.royalties-page .royalties-field label{
    white-space:normal;
  }

  body.royalties-page .royalties-field > input,
  body.royalties-page .royalties-field > select,
  body.royalties-page .royalties-field > textarea{
    margin:0;
  }

  body.royalties-page .royalties-form-payout{
    grid-template-columns:1fr;
  }

  body.royalties-page .royalties-payout-submit{
    grid-column:auto;
    justify-self:stretch;
    width:100%;
  }

  body.royalties-page .royalties-inline-form{
    align-items:stretch;
  }

  body.royalties-page .royalties-inline-form input[type="text"],
  body.royalties-page .royalties-inline-form button{
    width:100%;
  }
}

@media (max-width: 480px){
  body.royalties-page .royalties-kpi-grid,
  body.royalties-page .royalties-kpi-grid.royalties-kpi-grid--4{
    grid-template-columns:1fr;
  }
}

/* Contacts edit page */
body.contacts-page .contacts-edit-container{
  width:min(1280px, 96vw);
}

.contacts-edit-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.contacts-edit-topbar .button,
.contacts-edit-actions .button,
.contacts-edit-actions button,
.contacts-edit-panel .button,
.contacts-edit-panel button{
  width:auto;
  margin:0;
}

.contacts-edit-hero{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  align-items:center;
  gap:16px;
  padding:0 0 20px;
  margin-bottom:18px;
  border-bottom:1px solid rgba(255,255,255,.09);
}

.contacts-edit-avatar{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border:1px solid rgba(77,163,255,.34);
  border-radius:8px;
  color:#f4f8ff;
  background:
    linear-gradient(135deg, rgba(77,163,255,.34), rgba(0,214,139,.14)),
    rgba(255,255,255,.04);
  font-size:20px;
  font-weight:850;
}

.contacts-edit-title{
  min-width:0;
}

.contacts-edit-kicker{
  display:block;
  margin-bottom:5px;
  color:#9fd3ff;
  font-size:12px;
  font-weight:800;
  letter-spacing:0;
  text-transform:uppercase;
}

.contacts-edit-title h2{
  margin:0 0 6px;
  font-size:clamp(24px, 2.4vw, 34px);
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contacts-edit-title p{
  margin:0;
}

.contacts-edit-status{
  align-self:start;
}

.contacts-edit-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 300px;
  gap:18px;
  align-items:start;
}

.contacts-edit-form{
  display:grid;
  gap:12px;
  min-width:0;
}

.contacts-edit-section{
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:rgba(255,255,255,.032);
}

.contacts-edit-section:focus-within{
  border-color:rgba(77,163,255,.28);
  background:rgba(255,255,255,.046);
}

.contacts-section-head{
  display:grid;
  grid-template-columns:34px minmax(0, 1fr);
  gap:11px;
  align-items:start;
}

.contacts-section-head > span{
  display:grid;
  place-items:center;
  width:34px;
  height:28px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  color:#cfe8ff;
  background:rgba(77,163,255,.1);
  font-size:12px;
  font-weight:850;
}

.contacts-section-head h3{
  margin:0;
  color:#f0f3ff;
  font-size:17px;
  font-weight:800;
}

.contacts-section-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.contacts-form-grid{
  display:grid;
  gap:12px;
}

.contacts-form-grid-2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.contacts-form-grid-3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.contacts-field{
  min-width:0;
}

.contacts-field-full{
  grid-column:1 / -1;
}

body.contacts-page .contacts-edit-form label{
  margin:0 0 7px;
  color:#b8bed0;
  font-size:12px;
  font-weight:800;
  letter-spacing:0;
  text-transform:uppercase;
}

body.contacts-page .contacts-edit-form input[type="text"],
body.contacts-page .contacts-edit-form input[type="email"],
body.contacts-page .contacts-edit-form textarea{
  margin:0;
  border-radius:8px;
  background:rgba(255,255,255,.045);
}

body.contacts-page .contacts-edit-form textarea{
  min-height:132px;
}

body.contacts-page .contacts-edit-form input[type="text"]:focus,
body.contacts-page .contacts-edit-form input[type="email"]:focus,
body.contacts-page .contacts-edit-form textarea:focus{
  border-color:rgba(77,163,255,.62);
  box-shadow:0 0 0 4px rgba(77,163,255,.14);
}

body.contacts-page .contacts-edit-form .contacts-choice-group{
  min-height:44px;
  margin:0;
  border-radius:8px;
  background:rgba(255,255,255,.045);
}

body.contacts-page .contacts-edit-form .contacts-choice-pill{
  position:relative;
  margin:0;
  border-radius:999px;
  padding:8px 12px;
}

body.contacts-page .contacts-edit-form .contacts-choice-pill input{
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  margin:0;
  opacity:0;
  pointer-events:none;
}

body.contacts-page .contacts-edit-form .contacts-choice-pill span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

body.contacts-page .contacts-edit-form .contacts-choice-pill:has(input:checked) span::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#7fc2ff;
  box-shadow:0 0 0 3px rgba(127,194,255,.16);
}

.contacts-edit-actions{
  position:sticky;
  bottom:12px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:9px;
  padding:12px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:8px;
  background:rgba(12,13,18,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.contacts-edit-side{
  display:grid;
  gap:12px;
  position:sticky;
  top:84px;
}

.contacts-edit-panel{
  padding:14px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:rgba(255,255,255,.032);
}

.contacts-edit-panel h3{
  margin:0 0 10px;
  color:#f0f3ff;
  font-size:15px;
  font-weight:850;
}

.contacts-edit-panel p{
  margin:0 0 12px;
  font-size:13px;
  line-height:1.4;
}

.contacts-edit-panel dl{
  display:grid;
  gap:10px;
  margin:0;
}

.contacts-edit-panel dl div{
  display:grid;
  gap:3px;
  min-width:0;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.contacts-edit-panel dl div:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.contacts-edit-panel dt{
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.contacts-edit-panel dd{
  margin:0;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.contacts-edit-danger{
  border-color:rgba(255,107,107,.18);
  background:rgba(255,107,107,.045);
}

.contacts-edit-danger .contacts-archive-form{
  margin:0;
  padding:0;
  border:0;
}

@media (max-width: 980px){
  .contacts-edit-layout{
    grid-template-columns:1fr;
  }

  .contacts-edit-side{
    position:static;
    grid-row:1;
  }

  .contacts-edit-panel dl{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .contacts-edit-panel dl div{
    padding:0;
    border-bottom:0;
  }
}

@media (max-width: 760px){
  .contacts-edit-topbar{
    align-items:stretch;
  }

  .contacts-edit-topbar .button{
    flex:1 1 160px;
  }

  .contacts-edit-hero{
    grid-template-columns:auto minmax(0, 1fr);
  }

  .contacts-edit-status{
    grid-column:1 / -1;
  }

  .contacts-form-grid-2,
  .contacts-form-grid-3,
  .contacts-edit-panel dl{
    grid-template-columns:1fr;
  }

  .contacts-edit-actions{
    position:static;
    align-items:stretch;
  }

  .contacts-edit-actions button,
  .contacts-edit-actions .button,
  .contacts-edit-panel button{
    width:100%;
  }
}

@media (max-width: 520px){
  .contacts-edit-hero{
    align-items:start;
  }

  .contacts-edit-avatar{
    width:48px;
    height:48px;
    font-size:17px;
  }

  .contacts-edit-section{
    padding:13px;
  }
}

/* Contacts CSV import page */
body.contacts-page .contacts-import-container{
  width:min(1500px, 97vw);
}

.contacts-import-avatar{
  font-size:15px;
  letter-spacing:0;
}

.contacts-import-container .contacts-csv-info-card,
.contacts-import-container .contacts-form-card,
.contacts-import-container .contacts-preview-card,
.contacts-import-container .contacts-import-summary{
  margin-bottom:16px;
}

.contacts-import-container .contacts-form-card form > div{
  margin:0;
}

.contacts-import-upload-card .contacts-upload-form{
  display:grid;
  gap:12px;
}

.contacts-import-upload-card .contacts-upload-form label{
  margin:0 0 7px;
  color:#b8bed0;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}

.contacts-import-upload-card .contacts-upload-form input[type="file"]{
  margin:0;
  border-radius:8px;
  background:rgba(255,255,255,.045);
}

.contacts-import-container .contacts-form-actions{
  margin-top:2px;
  justify-content:flex-end;
}

.contacts-import-container .contacts-form-actions button,
.contacts-import-container .contacts-form-actions .button{
  width:auto;
  margin:0;
}

.contacts-import-container .contacts-csv-info-grid section,
.contacts-import-container .contacts-csv-allowed-genres,
.contacts-import-container .contacts-csv-mapping{
  border-radius:8px;
}

.contacts-import-container .contacts-csv-aliases{
  margin-top:2px;
}

.contacts-import-preview-card{
  gap:14px;
}

.contacts-import-preview-card .contacts-preview-head{
  margin-bottom:0;
}

.contacts-import-preview-card .contacts-preview-head > .contacts-section-head{
  flex:1 1 auto;
}

.contacts-csv-mapping-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.contacts-csv-mapping-item{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr) auto;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:8px;
  background:rgba(255,255,255,.035);
}

.contacts-csv-mapping-item.is-ignored{
  opacity:.72;
}

.contacts-csv-mapping-item strong,
.contacts-csv-mapping-item span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contacts-csv-mapping-item strong{
  display:block;
  color:var(--text);
  font-size:13px;
  font-weight:850;
}

.contacts-csv-mapping-item small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contacts-csv-mapping-item > span:not(.status-pill){
  color:#cfd4e4;
  font-size:12px;
  font-weight:750;
}

.contacts-inline-warning{
  display:inline-flex;
  margin-top:7px;
}

.contacts-import-review-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.contacts-import-review-row{
  display:grid;
  grid-template-columns:44px 290px 260px 440px;
  justify-content:start;
  align-items:stretch;
  gap:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:8px;
  background:rgba(255,255,255,.028);
}

.contacts-import-review-row:hover{
  border-color:rgba(77,163,255,.22);
  background:rgba(255,255,255,.04);
}

.contacts-import-line-number{
  display:grid;
  align-content:center;
  justify-items:center;
  gap:2px;
  min-width:0;
  border-right:1px solid rgba(255,255,255,.08);
}

.contacts-import-line-number span{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}

.contacts-import-line-number strong{
  color:var(--text);
  font-size:15px;
  font-weight:850;
}

.contacts-import-review-main,
.contacts-import-review-methods,
.contacts-import-review-decision{
  min-width:0;
}

.contacts-import-review-main{
  display:grid;
  align-content:center;
  gap:5px;
}

.contacts-import-review-main > strong{
  color:var(--text);
  font-size:13px;
  font-weight:850;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contacts-import-review-main > small{
  color:var(--muted);
  font-size:12px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.contacts-import-review-flags{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.contacts-import-review-flags .contacts-import-duplicate-summary{
  display:flex;
  align-items:center;
  gap:6px;
}

.contacts-import-review-flags .contacts-import-duplicate-summary strong,
.contacts-import-review-flags .contacts-import-duplicate-summary small{
  display:none;
}

.contacts-import-review-methods{
  align-self:center;
}

.contacts-import-review-decision{
  display:grid;
  align-content:center;
  gap:8px;
}

.contacts-import-container .contacts-import-preview-table{
  min-width:860px;
}

.contacts-import-container .contacts-import-preview-table th:nth-child(1),
.contacts-import-container .contacts-import-preview-table td:nth-child(1){ width:22px; }
.contacts-import-container .contacts-import-preview-table th:nth-child(2),
.contacts-import-container .contacts-import-preview-table td:nth-child(2){ width:156px; }
.contacts-import-container .contacts-import-preview-table th:nth-child(3),
.contacts-import-container .contacts-import-preview-table td:nth-child(3){ width:175px; }
.contacts-import-container .contacts-import-preview-table th:nth-child(4),
.contacts-import-container .contacts-import-preview-table td:nth-child(4){ width:84px; }
.contacts-import-container .contacts-import-preview-table th:nth-child(5),
.contacts-import-container .contacts-import-preview-table td:nth-child(5){ width:360px; }

.contacts-import-methods,
.contacts-import-duplicate-summary,
.contacts-import-decision{
  display:grid;
  gap:6px;
  min-width:0;
}

.contacts-import-methods span{
  display:grid;
  grid-template-columns:58px minmax(0, 1fr);
  gap:8px;
  min-width:0;
  color:var(--text);
  font-size:12px;
  line-height:1.35;
}

.contacts-import-methods strong{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
}

.contacts-import-methods span:not(.muted) {
  overflow-wrap:anywhere;
}

.contacts-import-duplicate-summary strong{
  color:var(--text);
  font-size:12px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contacts-import-duplicate-summary small{
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.contacts-import-decision{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  align-items:end;
  gap:8px;
}

.contacts-import-decision label{
  margin:0 0 5px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}

.contacts-import-decision select{
  margin:0;
  border-radius:8px;
}

.contacts-import-genre-choice{
  display:grid;
  gap:8px;
  margin-top:0;
  padding:9px;
  border:1px solid rgba(255,159,67,.26);
  border-radius:8px;
  background:rgba(255,159,67,.08);
}

.contacts-import-genre-choice p{
  margin:0;
  color:#ffe3b5;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}

.contacts-import-genre-choice .contacts-choice-group{
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
}

.contacts-import-genre-choice .contacts-choice-pill{
  position:relative;
  margin:0;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
}

.contacts-import-genre-choice .contacts-choice-pill input{
  position:absolute;
  width:1px;
  height:1px;
  min-height:0;
  margin:0;
  opacity:0;
  pointer-events:none;
}

.contacts-import-genre-choice .contacts-choice-pill span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.contacts-import-genre-choice .contacts-choice-pill:has(input:checked) span::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#ffc66d;
  box-shadow:0 0 0 3px rgba(255,198,109,.16);
}

@media (max-width: 760px){
  .contacts-csv-mapping-list{
    grid-template-columns:1fr;
  }

  .contacts-csv-mapping-item{
    grid-template-columns:minmax(0, 1fr);
    align-items:start;
  }

  .contacts-import-review-row{
    grid-template-columns:34px minmax(0, 1fr);
  }

  .contacts-import-line-number{
    grid-row:1 / span 3;
  }

  .contacts-import-review-decision,
  .contacts-import-review-methods{
    grid-column:2;
  }

  .contacts-import-decision{
    grid-template-columns:1fr;
  }

  .contacts-import-container .contacts-form-actions{
    align-items:stretch;
  }

  .contacts-import-container .contacts-form-actions button,
  .contacts-import-container .contacts-form-actions .button{
    width:100%;
  }
}
/* V1 structured postal address: scoped enhancement for contract forms only. */
.structured-address {
    margin: 12px 0;
}

.structured-address .address-autocomplete-host {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 40px;
}

body.royalties-page .royalties-pill-missing{
  background:rgba(255,176,32,.16);
  border-color:rgba(255,176,32,.5);
  color:#ffd27a;
}

body.royalties-page .royalties-row-missing td{
  background:rgba(255,176,32,.045);
}

.structured-address .address-autocomplete-google {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.structured-address .address-autocomplete-help {
    margin: 6px 0 10px;
}

.structured-address__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.structured-address__row > div {
    min-width: 0;
}

@media (min-width: 870px) {
    /* Match the desktop width contract used by the other contract inputs. */
    body.home-page .container.home-container .structured-address .address-autocomplete-host,
    body.home-page .container.home-container .structured-address .structured-address__row {
        max-width: min(920px, 100%);
    }
}

@media (max-width: 640px) {
    .structured-address__row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}


/* ── Vue artiste en lecture seule (superagent) ────────────────────────── */
.artist-impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 149, 0, .14);
    border-bottom: 1px solid rgba(255, 149, 0, .38);
    color: var(--text);
    font-size: 14px;
}

.artist-impersonation-text {
    min-width: 0;
}

.artist-impersonation-form {
    margin: 0;
}

.artist-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.impersonation-active-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.impersonation-active-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.impersonation-active-actions form {
    margin: 0;
}

/* Artistes masqués */
.artist-show-hidden{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  font-size:.9rem;
  cursor:pointer;
}
.artist-show-hidden input{
  width:auto;
  margin:0;
}
.artist-row-hidden td{
  opacity:.55;
}
.artist-hidden-tag{
  display:inline-block;
  margin-top:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.75rem;
  background:rgba(148,158,178,.18);
  border:1px solid rgba(148,158,178,.35);
  color:#c3cad9;
}

/* Deal All-in (formulaire contrat) */
.all-in-switch{
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 0 8px;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  user-select:none;
}
.all-in-switch input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  top:0;
  width:44px;
  height:24px;
  min-height:auto;
  flex:0 0 44px;
  margin:0;
  border:1px solid var(--stroke);
  border-radius:999px;
  background:rgba(148,158,178,.25);
  cursor:pointer;
  transition:background .15s ease;
}
.all-in-switch input[type="checkbox"]::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform .15s ease;
}
.all-in-switch input[type="checkbox"]:checked{
  background:color-mix(in oklab, var(--accent) 82%, white 0%);
  border-color:transparent;
}
.all-in-switch input[type="checkbox"]:checked::after{
  transform:translateX(20px);
}
.all-in-switch-state{
  font-size:12px;
  font-weight:500;
  color:var(--muted);
}
.all-in-switch-state::after{
  content:attr(data-off);
}
.all-in-switch input[type="checkbox"]:checked ~ .all-in-switch-state::after{
  content:attr(data-on);
}
.all-in-fields{
  margin:4px 0 14px;
  padding:4px 16px 14px;
  border:1px solid var(--stroke);
  border-radius:12px;
}
.all-in-fields > .muted{
  margin:12px 0 0;
  font-size:13px;
}
.all-in-fields[hidden],
.all-in-deposit-fields[hidden],
#classic_fees_fields[hidden]{
  display:none;
}

/* Paiement Bfees : deals All-in */
.pay-agent-all-in{
  margin:0 0 16px;
}
.pay-agent-all-in h4{
  margin:4px 0 8px;
}
.pay-agent-all-in-form{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
}
.pay-agent-all-in-form input[type="text"]{
  width:110px;
  min-height:34px;
  margin:0;
}

/* Page Templates : cartes des templates existants */
.template-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));
  gap:14px;
  margin:10px 0 24px;
}
.template-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  padding:16px;
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.template-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.template-card-id,
.template-card-lang{
  font-size:12px;
  padding:2px 8px;
  border:1px solid var(--stroke);
  border-radius:999px;
  color:var(--muted);
}
.template-card-lang{
  font-weight:600;
  color:var(--text);
}
.template-card-name{
  margin:0;
  font-size:16px;
  line-height:1.3;
  overflow-wrap:anywhere;
}
.template-card-desc{
  margin:0;
  font-size:14px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.template-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px 14px;
  font-size:13px;
  color:var(--muted);
}
.template-card-actions{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:auto;
  padding-top:6px;
}
.template-card-actions form{
  margin:0;
  min-width:0;
}
.template-card-actions .button{
  width:100%;
  min-width:0;
  margin:0 !important;
  padding:8px 6px;
  text-align:center;
  white-space:nowrap;
  box-sizing:border-box;
}
.template-card-tags{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.template-card-allin{
  font-size:12px;
  font-weight:600;
  padding:2px 8px;
  border-radius:999px;
  color:#fff;
  background:color-mix(in oklab, var(--accent) 70%, transparent);
}
