@font-face {
  font-family: HumbrewArabic;
  src: url("/api/font") format("truetype");
  font-display: swap;
}
:root {
  --background: #0c0c0c;
  --sidebar: #101010;
  --panel: #141414;
  --panelRaised: #1c1c1c;
  --line: #2a2a2a;
  --lineSoft: #212121;
  --text: #ededed;
  --muted: #9a9a9a;
  --faint: #6c6c6c;
  --white: #f7f7f7;
  --radius: 12px;
  --sidebarWidth: 232px;
  color-scheme: dark;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.25;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
}
h4 {
  font-size: 13px;
}
svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  margin-bottom: 8px;
  padding: 0;
}
summary {
  width: fit-content;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
summary:hover {
  color: var(--white);
}
details[open] > summary {
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.arabic {
  font-family: HumbrewArabic, "Noto Naskh Arabic", "Amiri", "Traditional Arabic",
    serif;
  font-size: 25px;
  line-height: 2.1;
  direction: rtl;
  unicode-bidi: isolate;
}
.hidden {
  display: none !important;
}

.studioShell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebarWidth);
  padding: 28px 16px 22px;
  border-right: 1px solid var(--lineSoft);
  background: var(--sidebar);
}
.sidebarBackdrop {
  display: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
  padding: 0 8px;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1.3px;
}
.brandMark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding-right: 3px;
  border-radius: 8px;
  background: #eeeeee;
  color: #151515;
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -3px;
}
.brandDot {
  color: #b9b9b9;
}
.navItem {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #a9a9a9;
  font-size: 13px;
  transition:
    background 0.15s,
    color 0.15s;
}
.navItem svg {
  width: 17px;
  height: 17px;
  opacity: 0.8;
}
.navItem:hover {
  background: #1a1a1a;
  color: var(--text);
}
.navItem.active {
  background: #222222;
  box-shadow: inset 0 0 0 1px #2f2f2f;
  color: #ffffff;
}
.navItem.active svg {
  opacity: 1;
}
.navCount {
  min-width: 20px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #353535;
  font-size: 11px;
  text-align: center;
}
.sidebarFoot {
  margin-top: auto;
  padding: 0 12px;
}

.workspace {
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--sidebarWidth);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 60px;
  padding: 0 36px;
  border-bottom: 1px solid var(--lineSoft);
  background: #0c0c0ce6;
  backdrop-filter: blur(10px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb [aria-hidden] {
  color: #4f4f4f;
}
.breadcrumb span:last-child {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbarRight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #4a4a4a;
  border-radius: 50%;
  color: #dddddd;
  font-size: 12px;
}
main#mainContent {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 36px 56px;
}
main#mainContent:focus {
  outline: none;
}

.pageHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.pageHead p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}
.headActions,
.buttonRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sectionHead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}
.sectionHead > a {
  font-size: 13px;
}
.sectionMeta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.stack,
.editorMain,
.editorAside,
.previewSide,
.dashboardSide,
.settingsColumn {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #1e1e1e;
  color: #ececec;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.button svg {
  width: 15px;
  height: 15px;
}
.button:hover:not(:disabled) {
  border-color: #565656;
  background: #292929;
}
.button.primary {
  border-color: #ececec;
  background: #ececec;
  color: #141414;
}
.button.primary:hover:not(:disabled) {
  border-color: #ffffff;
  background: #ffffff;
}
.button.quiet {
  border-color: var(--line);
  background: transparent;
  color: #c6c6c6;
}
.button.quiet:hover:not(:disabled) {
  border-color: #4a4a4a;
  background: #1b1b1b;
  color: #ffffff;
}
.button.small {
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}
.button.small svg {
  width: 13px;
  height: 13px;
}
.button.fullWidth {
  width: 100%;
}
.textButton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 12px;
}
.textButton svg {
  width: 12px;
  height: 12px;
}
.textButton:hover {
  color: var(--white);
}
.iconButton {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #bdbdbd;
}
.iconButton:hover:not(:disabled) {
  border-color: #4a4a4a;
  background: var(--panelRaised);
  color: #ffffff;
}
.iconButton.active {
  border-color: #e6e6e6;
  background: #e6e6e6;
  color: #151515;
}
.menuToggle {
  display: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid #454545;
  border-radius: 6px;
  background: #262626;
  color: #d6d6d6;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}
.badge.outlined {
  border-color: #3a3a3a;
  background: transparent;
  color: var(--muted);
}
.badge.ready {
  border-color: #dcdcdc;
  background: #dcdcdc;
  color: #161616;
}
.badge.attention {
  border-color: #9a9a9a;
  background: transparent;
  color: var(--text);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #dddddd;
  font-size: 12px;
}

.statGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.statCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.statCard span {
  color: var(--muted);
  font-size: 13px;
}
.statCard strong {
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
}
.twoColumn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
}
.projectGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.projectCard {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.projectCard:hover {
  border-color: #555555;
  transform: translateY(-2px);
}
.projectCover {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 55% 120%,
    #616161 0,
    #2b2b2b 35%,
    #181818 70%
  );
}
.projectCover::before {
  content: "";
  position: absolute;
  inset: 20% -30% -100%;
  background: repeating-radial-gradient(
    ellipse at 70% 20%,
    transparent 0 28px,
    #ffffff0a 29px 30px,
    transparent 31px 55px
  );
  transform: rotate(-15deg);
}
.coverArabic {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #e4e4e4;
  font-family: HumbrewArabic, "Noto Naskh Arabic", serif;
  font-size: 34px;
  opacity: 0.75;
}
.coverDuration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 6px;
  border: 1px solid #ffffff21;
  border-radius: 5px;
  background: #0a0a0ad9;
  font-size: 11px;
}
.projectBody {
  padding: 14px 16px 16px;
}
.projectBody h3 {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.projectMeta {
  margin: 4px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cardBottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 12px;
}
.emptyCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 32px 24px;
  border: 1px dashed #363636;
  border-radius: var(--radius);
  text-align: center;
}
.emptyCard > svg {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  color: #9d9d9d;
}
.emptyCard p {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
}
.emptyCard .button {
  margin-top: 10px;
}

.panel,
.subPanel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.subPanel {
  padding: 14px;
  border-radius: 10px;
  background: #111111;
}
.panel > :where(* + *),
.subPanel > :where(* + *),
.modalBody > :where(* + *),
.reviewItem > :where(* + *) {
  margin-top: 14px;
}
.panelHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 30px;
}
.panelHead h2,
.panelHead h3 {
  font-size: 15px;
}
:is(
    .keyValue,
    .activityRow,
    .pendingItem,
    .commentRow,
    .jobRow,
    .sequenceRow,
    .historyRow,
    .reviewItem
  )
  + :is(
    .keyValue,
    .activityRow,
    .pendingItem,
    .commentRow,
    .jobRow,
    .sequenceRow,
    .historyRow,
    .reviewItem
  ) {
  margin-top: 0;
}
.panelHead
  + :is(
    .activityRow,
    .pendingItem,
    .commentRow,
    .jobRow,
    .sequenceRow,
    .historyRow,
    .reviewItem
  ),
.modalBody > p + .sequenceRow {
  padding-top: 0;
  border-top: 0;
}
.pendingItem,
.activityRow,
.commentRow,
.historyRow,
.reviewItem,
.sequenceRow {
  padding: 12px 0;
  border-top: 1px solid var(--lineSoft);
}
.pendingItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pendingItem strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.pendingItem small {
  color: var(--muted);
  font-size: 12px;
}
.pendingItem svg {
  width: 14px;
  height: 14px;
  color: var(--faint);
}
.pendingItem:hover svg {
  color: var(--white);
}
.activityRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}
.activityRow time {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 12px;
}
.statusDot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: #6f6f6f;
}
.statusDot.alert {
  background: var(--white);
  box-shadow: 0 0 0 3px #ffffff26;
}
.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #161616;
  color: var(--muted);
  font-size: 13px;
}
.callout svg {
  margin-top: 2px;
  color: #bdbdbd;
}
.notice {
  padding: 11px 14px;
  border: 1px solid #4d4d4d;
  border-radius: 8px;
  background: #1f1f1f;
  color: #dedede;
  font-size: 13px;
}
.keyValue {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--lineSoft);
  font-size: 13px;
}
.keyValue:last-child {
  border-bottom: 0;
}
.keyValue span:first-child {
  color: var(--muted);
}
.keyValue span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.codeBox {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  background: #0e0e0e;
  color: #bdbdbd;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.paragraphText {
  color: #c8c8c8;
  font-size: 13px;
  line-height: 1.75;
}
.fileLink {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #cfcfcf;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #555555;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.fileLink:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}
.fileLink svg {
  width: 12px;
  height: 12px;
}

.tableWrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.dataTable th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #161616;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.dataTable td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--lineSoft);
  vertical-align: middle;
}
.dataTable tr:last-child td {
  border-bottom: 0;
}
.dataTable tbody tr:hover {
  background: #151515;
}
.dataTable .checkCell {
  width: 44px;
}
.dataTable .actionCell {
  text-align: right;
}
.cellTitle {
  color: #e6e6e6;
  font-weight: 500;
}
.cellTitle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cellSubtitle {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 12px;
}
.filterRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.filterRow input,
.filterRow select {
  max-width: 300px;
}
.spacer {
  flex: 1;
}

.formStack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.formGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.formGrid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
label,
.fieldLabel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #b9b9b9;
  font-size: 12px;
  font-weight: 500;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #363636;
  border-radius: 8px;
  background: #0f0f0f;
  color: #e8e8e8;
  font-size: 13px;
  font-weight: 400;
}
input:hover,
textarea:hover,
select:hover {
  border-color: #4a4a4a;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: #cfcfcf;
  outline: none;
  box-shadow: 0 0 0 3px #ffffff1a;
}
input[readonly] {
  background: #141414;
  color: var(--muted);
}
input::placeholder,
textarea::placeholder {
  color: #5c5c5c;
}
input[type="checkbox"] {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: #dedede;
}
input[type="range"] {
  padding: 0;
  border: 0;
  background: none;
  accent-color: #dedede;
}
input[type="file"] {
  padding: 8px;
  font-size: 12px;
}
textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
select[multiple] {
  padding: 6px;
}
.hint,
.fieldHint {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.inlineCheck {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: #cdcdcd;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
.inlineCheck .faint {
  margin-left: auto;
  font-size: 12px;
}
.checkRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.checkList,
.rangeGroup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inlineFields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.inlineFields label {
  flex: 1;
  min-width: 110px;
}
.formActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sourceLocked {
  border-style: dashed;
  opacity: 0.75;
}

dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid #3d3d3d;
  border-radius: 14px;
  background: #161616;
  color: var(--text);
  box-shadow: 0 24px 100px #000000aa;
}
dialog::backdrop {
  background: #000000bb;
  backdrop-filter: blur(4px);
}
.modalHead {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #161616;
}
.modalHead h2 {
  overflow-wrap: anywhere;
}
.modalBody {
  padding: 22px;
}
.modalFoot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.toasts {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: min(400px, calc(100% - 40px));
}
.toast {
  padding: 12px 16px;
  border-radius: 9px;
  background: #e8e8e8;
  color: #171717;
  font-size: 13px;
  box-shadow: 0 8px 40px #00000055;
  animation: toastIn 0.2s ease;
}
.toast.error {
  border: 1px solid #818181;
  background: #2b2b2b;
  color: #eeeeee;
}
.loadingState {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 300px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #5a5a5a;
  border-top-color: #eeeeee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.editorHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.editorHeader h1 {
  font-size: 26px;
}
.versionTag {
  padding: 2px 7px;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.unsavedIndicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e6e6e6;
  font-size: 12px;
}
.unsavedIndicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.editorTabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  overflow-x: auto;
  box-shadow: inset 0 -1px var(--line);
  scrollbar-width: none;
}
.editorTabs::-webkit-scrollbar {
  display: none;
}
.editorTab {
  flex: none;
  padding: 10px 12px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.editorTab:hover {
  color: var(--text);
}
.editorTab.active {
  border-bottom-color: #e8e8e8;
  color: #ffffff;
}
.editorColumns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
}
.editorColumns.widePreview {
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
}

.audioToolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 10px;
}
.playButton {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ececec;
  color: #141414;
}
.playButton:hover {
  background: #ffffff;
}
.playButton svg {
  width: 14px;
  height: 14px;
}
.transportTime {
  font-size: 13px;
}
.transportTime > span + span {
  color: var(--faint);
}
.zoomControl {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 150px;
  color: var(--muted);
  font-size: 13px;
}
.waveViewport {
  position: relative;
  overflow-x: auto;
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  background: #0d0d0d;
  scrollbar-width: thin;
}
.waveCanvas {
  display: block;
  height: 140px;
  cursor: crosshair;
  touch-action: none;
}
.waveRuler {
  position: relative;
  height: 22px;
  border-top: 1px solid #262626;
  color: #707070;
  font-size: 10px;
}
.waveRuler span {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
}
.waveRuler span:first-child {
  padding-left: 6px;
  transform: none;
}
.waveRuler span:last-child {
  padding-right: 6px;
  transform: translateX(-100%);
}
.waveNotice {
  color: var(--faint);
  font-size: 12px;
}
.selectionFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.selectionSummary,
.montageSummary {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.overLimit {
  color: var(--white);
  font-weight: 600;
}
.timelineTrack {
  display: flex;
  height: 40px;
  overflow: hidden;
  border: 1px solid #3e3e3e;
  border-radius: 8px;
  background: #101010;
}
.timelineClip {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 15px;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #0f0f0f;
  background: repeating-linear-gradient(90deg, #3d3d3d 0 1px, #292929 1px 4px);
  color: #e2e2e2;
  font-size: 11px;
}
.timelineGap {
  height: 100%;
  border-right: 1px solid #4f4f4f;
  background: #181818;
}
.clipList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clipRow {
  display: grid;
  grid-template-columns: 26px repeat(5, minmax(0, 1fr)) 32px;
  align-items: end;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #333333;
  border-radius: 10px;
  background: #1a1a1a;
}
.clipNumber {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
}
.clipRow label {
  gap: 4px;
  font-size: 11px;
}
.clipRow input {
  padding: 6px 8px;
  font-size: 12px;
}
.clipSuggestion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed #585858;
  border-radius: 8px;
  font-size: 13px;
}
.sourceCard {
  padding: 12px 14px;
  border: 1px solid #333333;
  border-radius: 10px;
  background: #111111;
}
.sourceCard h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.sourceCard p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.dropZone {
  align-items: center;
  gap: 10px;
  padding: 36px 20px;
  border: 1px dashed #4a4a4a;
  border-radius: var(--radius);
  background: #121212;
  color: var(--text);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.dropZone:hover {
  border-color: #6a6a6a;
  background: #1a1a1a;
}
.dropZone > svg {
  width: 24px;
  height: 24px;
  color: #bdbdbd;
}
.dropZone p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.dropZone input {
  max-width: 300px;
}

.validationList {
  display: flex;
  flex-direction: column;
}
.validationRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--lineSoft);
}
.validationRow:first-child {
  padding-top: 0;
  border-top: 0;
}
.validationRow:last-child {
  padding-bottom: 0;
}
.validationRow > div {
  flex: 1;
  min-width: 0;
}
.validationRow strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.validationRow small {
  color: var(--faint);
  font-size: 12px;
}
.validationSymbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid #5a5a5a;
  border-radius: 50%;
}
.validationSymbol.valid {
  border-color: #dcdcdc;
  background: #dcdcdc;
  color: #161616;
}
.validationSymbol svg {
  width: 12px;
  height: 12px;
}

.verseCard {
  overflow: hidden;
  border: 1px solid #333333;
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s;
}
.verseHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 16px;
  background: #1d1d1d;
  color: #b5b5b5;
  font-size: 12px;
  font-weight: 500;
}
.verseHead .textButton svg {
  width: 10px;
  height: 10px;
}
.verseBody {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.verseBody .arabic {
  font-size: 28px;
}
.translation {
  color: #c8c8c8;
  font-size: 13px;
  line-height: 1.75;
}
.languageTag {
  display: block;
  margin-bottom: 4px;
  color: #808080;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.footnotes p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footnotes p + p {
  margin-top: 6px;
}
.recitationVerse.playing {
  border-color: var(--white);
}
.recitationVerse.playing .verseHead {
  background: #2c2c2c;
  color: #ffffff;
}
.verseSources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--lineSoft);
}
.sourceCredits {
  color: #8f8f8f;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.sourceCredits strong {
  color: #cfcfcf;
  font-weight: 500;
}
.sourceCredits + .sourceCredits {
  padding-top: 12px;
  border-top: 1px solid var(--lineSoft);
}
.recitationPlayer {
  display: block;
  width: 100%;
}
.recitationStatus {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.progressTrack {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}
.progressTrack span {
  display: block;
  height: 100%;
  background: var(--white);
  transition: width 0.3s ease;
}

.segmentCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #333333;
  border-radius: var(--radius);
  background: var(--panel);
}
.segmentHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.segmentHead h3 {
  font-size: 14px;
}
.segmentGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.segmentText {
  padding-top: 10px;
  border-top: 1px solid var(--lineSoft);
  font-size: 13px;
  line-height: 1.75;
}
.segmentText.arabic {
  font-size: 22px;
  line-height: 2;
}
.segmentText .languageTag {
  display: inline;
  margin-right: 8px;
}
.segmentActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.segmentActions .iconButton {
  margin-left: auto;
}

.storyboardBlock {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.blockHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #1b1b1b;
}
.blockHeader h3 {
  font-size: 14px;
}
.blockHeader .iconButton {
  margin-left: auto;
}
.blockBody {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}
.blockMedia {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blockVisual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  border: 1px solid #414141;
  border-radius: 8px;
  background: radial-gradient(
    ellipse at 80% 20%,
    #515151,
    #202020 60%,
    #121212
  );
}
.blockVisual img,
.blockVisual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.blockVisual > svg {
  width: 26px;
  height: 26px;
  color: #7d7d7d;
}
.blockFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.blockFields textarea {
  min-height: 70px;
}
.triggerItem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.triggerHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.reviewItem h4 {
  overflow-wrap: anywhere;
}
.reviewItem p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mediaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
:is(.mediaGrid, .emptyCard) + .sectionHead {
  margin: 32px 0 16px;
}
.mediaCard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.mediaPreview {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 150px;
  overflow: hidden;
  background: #202020;
}
.mediaPreview.large {
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
}
.mediaPreview img,
.mediaPreview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.mediaPreview.large img,
.mediaPreview.large video {
  object-fit: contain;
}
.mediaPreview audio {
  width: 92%;
}
.mediaPreview > svg {
  width: 26px;
  height: 26px;
  color: #8a8a8a;
}
.mediaBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}
.mediaBody h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.mediaBody p {
  color: var(--muted);
  font-size: 12px;
}
.mediaBody > .button,
.mediaBody > .buttonRow {
  align-self: flex-start;
  margin-top: auto;
}
.mediaTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.videoPreview {
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #474747;
  border-radius: var(--radius);
  background: #0c0c0c;
  box-shadow: 0 20px 60px #00000044;
}
.previewBackground {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, #535353 0, transparent 55%),
    repeating-linear-gradient(120deg, #232323 0 1px, #181818 1px 70px);
  filter: grayscale(1);
}
.previewBackground img,
.previewBackground video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.previewFrame {
  animation: previewMove 8s ease-in-out infinite alternate;
}
.previewShade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #00000099);
}
.previewText {
  position: absolute;
  top: 42%;
  right: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 19px;
  text-align: center;
  transform: translateY(-20%);
}
.previewText .arabic {
  color: #f4f4f4;
  font-size: 26px;
  line-height: 2;
  text-shadow: 0 2px 9px #00000088;
  white-space: pre-wrap;
}
.previewTranslation {
  color: #d3d3d3;
  font-size: 13px;
  line-height: 1.8;
  text-shadow: 0 2px 7px #00000099;
  white-space: pre-wrap;
}
.previewBrand {
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  color: #b0b0b0;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
}
.previewControls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.previewControls input {
  width: 180px;
}
.wordCurrent {
  padding: 0 3px;
  border-radius: 4px;
  background: #ffffff24;
  color: #ffffff;
}
.renderItem {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.renderItem + .renderItem {
  padding-top: 18px;
  border-top: 1px solid var(--lineSoft);
}
.renderItem video,
.renderPlayer,
.humPreview {
  width: 100%;
  max-height: 440px;
  border-radius: 10px;
  background: #0a0a0a;
}
.commentRow p {
  margin: 4px 0;
  color: #d0d0d0;
  font-size: 13px;
}
.commentTime {
  color: #e4e4e4;
  font-size: 12px;
}
.commentMeta {
  color: var(--faint);
  font-size: 12px;
}

.exportGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.exportCard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.exportCardHead,
.exportCardFoot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.exportCardHead h3 {
  font-size: 14px;
}
.exportCard video {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  background: #0a0a0a;
}
.exportCard p {
  color: var(--muted);
  font-size: 12px;
}
.exportEmpty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 180px;
  border: 1px dashed #353535;
  border-radius: 10px;
  color: var(--faint);
  font-size: 13px;
}
.exportEmpty > svg {
  width: 22px;
  height: 22px;
}
.settingsGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}
.humSection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.humBlocks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.humBlocks li {
  padding: 11px 13px;
  border: 1px solid var(--lineSoft);
  border-radius: 9px;
  background: var(--panelRaised);
}
.humBlocks p {
  margin: 6px 0 0;
}
.humBlockHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jobRow {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--lineSoft);
}
.jobRow > div {
  min-width: 0;
}
.jobRow > div > * + * {
  margin-top: 8px;
}
.jobRow h3 {
  font-size: 13px;
}
.jobRow h3 + p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.jobSymbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #444444;
  border-radius: 8px;
  color: #bdbdbd;
  font-size: 13px;
  font-weight: 600;
}
.jobSymbol.alert {
  border-color: #cfcfcf;
  color: #ffffff;
}
.jobSymbol svg {
  width: 14px;
  height: 14px;
}
.jobError {
  padding-left: 10px;
  border-left: 2px solid #8f8f8f;
  color: #d2d2d2;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.sequenceRow,
.historyRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
}
.sequenceRow > div:first-child,
.historyRow > div:first-child {
  flex: 1 1 180px;
  min-width: 0;
}
.sequenceRow h3 {
  font-size: 13px;
}
.sequenceRow p,
.historyRow p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.historyRow {
  font-size: 13px;
}
.historyRow strong {
  font-weight: 500;
}
.historyRow .jobError {
  flex-basis: 100%;
}

.ideaGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.ideaCard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.ideaPassage {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ideaCard h3 {
  font-size: 18px;
  line-height: 1.35;
}
.ideaCard p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.ideaCard p strong {
  color: #d0d0d0;
  font-weight: 500;
}
.ideaReferences {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 12px;
}
.ideaCard > .button {
  align-self: flex-start;
  margin-top: 6px;
}

.wordEditor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wordRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 110px;
  align-items: center;
  gap: 8px;
}
.wordRow span {
  font-family: HumbrewArabic, serif;
  font-size: 21px;
}
.wordHead span {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}
.wordRow input {
  padding: 6px 8px;
  font-size: 12px;
}

.loginPage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 50% 0, #262626 0, transparent 60%),
    var(--background);
}
.loginCard {
  width: min(100%, 380px);
}
.loginCard > .brand {
  margin-bottom: 44px;
  padding: 0;
}
.loginCard h1 {
  margin-bottom: 24px;
  font-size: 30px;
  letter-spacing: -1px;
}
.loginCard .notice {
  margin-bottom: 18px;
}
.loginCard input {
  padding: 11px 12px;
  background: #151515;
}
.loginCard .button {
  min-height: 42px;
  margin-top: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes previewMove {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07) translateY(-1%);
  }
}

@media (min-width: 1550px) {
  main#mainContent {
    padding: 40px 48px 64px;
  }
  .topbar {
    padding: 0 48px;
  }
  .twoColumn {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebarWidth: 210px;
  }
  main#mainContent {
    padding: 28px 28px 48px;
  }
  .topbar {
    padding: 0 28px;
  }
  .twoColumn,
  .editorColumns {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
  }
  .clipRow {
    grid-template-columns: 22px repeat(3, minmax(0, 1fr)) 32px;
  }
  .clipRow label:nth-of-type(4),
  .clipRow label:nth-of-type(5) {
    grid-row: 2;
  }
  .clipRow label:nth-of-type(4) {
    grid-column: 2;
  }
  .clipRow label:nth-of-type(5) {
    grid-column: 3;
  }
  .clipRow .iconButton {
    grid-row: 1;
    grid-column: 5;
  }
}
@media (max-width: 1020px) {
  .twoColumn,
  .editorColumns,
  .settingsGrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboardSide,
  .editorAside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
  }
  .blockBody {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  :root {
    --sidebarWidth: 0px;
  }
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    box-shadow: 20px 0 70px #000000aa;
    transform: none;
  }
  .sidebar.open + .sidebarBackdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    background: #00000099;
  }
  .menuToggle {
    display: inline-grid;
  }
  .topbar {
    padding: 0 20px;
  }
  main#mainContent {
    padding: 24px 20px 48px;
  }
  .editorColumns.widePreview {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  h1,
  .editorHeader h1 {
    font-size: 24px;
  }
  .pageHead {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
  }
  .statGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
  }
  .statCard {
    padding: 14px 16px;
  }
  .statCard strong {
    font-size: 26px;
  }
  .projectGrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .projectCover {
    height: 110px;
  }
  .coverArabic {
    font-size: 28px;
  }
  .projectBody {
    padding: 12px;
  }
  .cardBottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .editorTabs {
    margin-inline: -20px;
    padding-inline: 12px;
  }
  .formGrid,
  .formGrid.three,
  .ideaGrid {
    grid-template-columns: minmax(0, 1fr);
  }
  .segmentGrid {
    grid-template-columns: 1fr 1fr;
  }
  .segmentGrid label:first-child {
    grid-column: 1 / -1;
  }
  .blockBody {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .blockVisual {
    aspect-ratio: 16 / 7;
  }
  .clipRow {
    grid-template-columns: 18px repeat(2, minmax(0, 1fr)) 32px;
  }
  .clipRow label:nth-of-type(3) {
    grid-row: 2;
    grid-column: 2;
  }
  .clipRow label:nth-of-type(4) {
    grid-row: 2;
    grid-column: 3;
  }
  .clipRow label:nth-of-type(5) {
    grid-row: 3;
    grid-column: 2;
  }
  .clipRow .iconButton {
    grid-column: 4;
  }
  .wordRow {
    grid-template-columns: minmax(0, 1fr) 84px 84px;
  }
  .filterRow input,
  .filterRow select {
    max-width: none;
    flex: 1 1 200px;
  }
  .panel {
    padding: 16px;
  }
  .modalBody {
    padding: 18px;
  }
  .modalHead {
    padding: 14px 14px 14px 18px;
  }
  .toasts {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
