/* Scoped to the public Create Scrim dialog. */
#createPanel[open] {
  width:min(500px,calc(100vw - 28px));
  max-height:calc(100dvh - 32px);
  padding:24px;
  border:1px solid #29485e;
  border-radius:22px;
  background:linear-gradient(155deg,#102538,#091a2b 55%);
  box-shadow:0 28px 90px #0008,inset 0 1px #ffffff08;
  scrollbar-width:thin;
  scrollbar-color:#35546a transparent;
  color-scheme:dark;
}
#createPanel::backdrop {background:#020914b8;backdrop-filter:blur(6px)}
#createPanel .panel-title {gap:16px;margin:0;padding:0 0 18px;border-bottom:1px solid #ffffff12}
#createPanel .section-kicker {margin:0 0 7px;color:#6cd6ed;font:700 10px/1.4 Inter,sans-serif;letter-spacing:1.8px}
#createPanel #createScrimHeading {margin:0;color:#f0f7ff;font:800 30px/1.1 'Barlow Condensed',sans-serif;letter-spacing:0}
#createPanel .panel-title h2+p {max-width:320px;margin:9px 0 0;color:#9bb1c6;font:400 12px/1.65 Inter,sans-serif;letter-spacing:0;text-transform:none}
#createPanel [data-close-create] {min-width:36px;min-height:36px;padding:0;border:1px solid #ffffff14;border-radius:11px;background:#ffffff05;color:#abc1d4;transition:background .18s,color .18s}
#createPanel [data-close-create]:hover {background:#ffffff10;color:#fff}
#createPanel #createForm {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px;margin:20px 0 0}
#createPanel #createForm>.field {grid-column:1/-1;min-width:0;gap:7px}
#createPanel #createForm>.field:has(#scrimFormat),
#createPanel #createForm>.field:has([name="match_type"]) {grid-column:auto}
#createPanel .date-time-row {grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-width:0}
#createPanel .date-time-row .field {min-width:0;gap:7px}
#createPanel .field label {color:#b5c7d8;font:600 11px/1.5 Inter,sans-serif;letter-spacing:0}
#createPanel #scrimScheduleZone {display:block;color:#7d9eb3;font:400 9px/1.4 Inter,sans-serif}
#createPanel .date-time-row label {min-height:30px;display:flex;flex-direction:column;justify-content:flex-end}
#createPanel .field input,#createPanel .field select,#createPanel .field textarea {
  min-width:0;width:100%;box-sizing:border-box;min-height:44px;
  padding:11px 12px;border:1px solid #2b455b;border-radius:11px;
  background:#071523;color:#e4edf7;font:500 14px/1.45 Inter,sans-serif;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
#createPanel .field input::placeholder,#createPanel .field textarea::placeholder {color:#6f879b;font-weight:400;opacity:1}
#createPanel .field input:hover,#createPanel .field select:hover,#createPanel .field textarea:hover {border-color:#45647d}
#createPanel .field input:focus,#createPanel .field select:focus,#createPanel .field textarea:focus {outline:none;border-color:#39bce9;background:#0a1c2d;box-shadow:0 0 0 3px #27b7e516}
#createPanel #scrimTitleHint {color:#7993a9;font:400 10px/1.5 Inter,sans-serif}
#createPanel .field textarea {min-height:76px;max-height:160px;resize:vertical}
#createPanel #createForm>button[type="submit"] {grid-column:1/-1;min-height:46px;margin:2px 0 0;border:1px solid #37bdea;border-radius:12px;background:linear-gradient(110deg,#1085ed,#20b7dc);box-shadow:0 5px 18px #008bd01c;color:#fff;font:700 12px/1.4 Inter,sans-serif;letter-spacing:.3px;transition:filter .18s,transform .18s}
#createPanel #createForm>button[type="submit"]:hover {filter:brightness(1.1)}
#createPanel #createForm>button[type="submit"]:active {transform:translateY(1px)}
@media(max-width:380px) {
  #createPanel[open] {padding:18px;border-radius:18px}
  #createPanel #createForm {gap:13px 10px}
  #createPanel .field input,#createPanel .field select,#createPanel .field textarea {font-size:13px;padding:11px 9px}
}
@media(prefers-reduced-motion:reduce) {
  #createPanel,#createPanel *,#createPanel::backdrop {transition:none!important;animation:none!important}
}
/* Compact dialog: one vertical scroll only when the screen or keyboard needs it. */
#createPanel[open]{width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:stable;box-sizing:border-box}
#createPanel .panel-title{padding-bottom:12px;gap:12px}
#createPanel #createScrimHeading{font-size:26px}
#createPanel .panel-title h2+p{margin-top:6px;font-size:11px;line-height:1.5}
#createPanel #createForm{gap:12px 10px;margin-top:14px}
#createPanel .field label{font-size:12px}
#createPanel .optional{font-weight:400;color:#8da7bb;font-size:10px}
#createPanel .field input,#createPanel .field select,#createPanel .field textarea{display:block;max-width:100%;width:100%;min-width:0;min-height:44px;font-size:16px;line-height:1.35;padding:9px 10px;border-radius:10px}
#createPanel input[type="date"],#createPanel input[type="time"]{height:44px;appearance:none;-webkit-appearance:none;text-align:left}
#createPanel input::-webkit-date-and-time-value{min-height:22px;text-align:left}
#createPanel input::-webkit-datetime-edit{min-width:0;padding:0}
#createPanel .date-time-row{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#createPanel .date-time-row .field{width:100%;min-width:0;overflow:hidden}
#createPanel .date-time-row label{min-height:32px}
#createPanel .field textarea{min-height:62px;max-height:none;resize:none;overflow-y:auto}
#createPanel #createForm>button[type="submit"]{min-height:46px;font-size:13px;margin:0;display:flex;align-items:center;justify-content:center}
#createPanel #createForm>button:disabled{opacity:.65;cursor:wait;transform:none}
#createPanel [data-close-create]{width:36px;height:36px;display:grid;place-items:center;flex-shrink:0;font-size:16px}
#createPanel .create-field-error{color:#ff8e99;font:500 11px/1.5 Inter,sans-serif}
#createPanel [aria-invalid="true"]{border-color:#ec677b;box-shadow:0 0 0 2px #ed627412}
#createPanel .create-form-status{grid-column:1/-1;margin:0;padding:10px 12px;border:1px solid #d2586b66;border-radius:9px;background:#b52f4814;color:#ff9ca7;font:500 12px/1.5 Inter,sans-serif}
#createPanel .create-form-status[hidden]{display:none}
@media(max-width:380px){#createPanel[open]{padding:16px}#createPanel #createForm{gap:10px 8px}#createPanel .panel-title h2+p{font-size:10px}#createPanel .date-time-row{gap:8px}}

#createPanel[open]{opacity:1;transform:none;transition:none}
#createPanel .date-time-row .field{align-content:start}
#createPanel .field select{appearance:none;-webkit-appearance:none;padding-right:32px;background-color:#071523;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ab9cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px}

#createPanel #scrimRecordHint{color:#8da7bb;font:400 10px/1.5 Inter,sans-serif}
