@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0d1011;
  --surface: #181c1e;
  --panel: var(--surface);
  --border: var(--line);
  --font-body: Manrope, Arial, sans-serif;
  --line: #34383a;
  --muted: #969da2;
  --ink: #f5f6f5;
  --brand-accent: #c5f45b;
  --accent: var(--brand-accent);
  --warning: #ffad42;
  --status-booked: #c5f45b;
  --radius: 12px;
  --gap: 24px;
  font-family: Manrope, Arial, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
/* Keep mobile page chrome anchored; wide content scrolls in its own panel. */
@media (max-width: 800px) {
  html {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
button:hover,
.button:hover {
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--accent);
  color: #17201c;
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
header {
  min-height: 96px;
  padding: 24px 5vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}
.brand small {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--muted);
  font-size: 11px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg);
  font-size: 25px;
  font-weight: 700;
  border-radius: 8px;
}
.header-controls,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.segments button {
  border: 0;
  flex: 1;
}
.segments button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--bg);
}
.sliding-filters {
  position: relative;
  isolation: isolate;
}
.sliding-filters::before {
  content: "";
  position: absolute;
  left: var(--selection-left);
  top: var(--selection-top);
  width: var(--selection-width);
  height: var(--selection-height);
  border-radius: 8px;
  background: var(--accent);
  pointer-events: none;
  z-index: -1;
}
.sliding-filters.sliding-ready::before {
  transition:
    left 180ms ease,
    top 180ms ease,
    width 180ms ease,
    height 180ms ease;
}
:root[data-theme="light"] .sliding-filters::before {
  background: #202326;
}
#app .sliding-filters > button[aria-pressed="true"] {
  background: transparent;
  border-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .sliding-filters.sliding-ready::before {
    transition: none;
  }
}
main {
  max-width: 1440px;
  padding: 28px 5vw 90px;
  margin: auto;
  min-width: 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  margin: 0 0 4px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font: 600 13px/1.4 var(--font-body);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
h1 {
  font-weight: 650;
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
}
h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
h3 {
  font-family: var(--font-heading);
  font-weight: 650;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 8px 0;
}
p {
  font: 400 17px/1.65 var(--font-body);
  letter-spacing: -0.012em;
  color: var(--muted);
  margin: 8px 0 16px;
}
.page-heading p {
  margin: 0;
}
/* A quiet document signature, using the active company's colors. */
.sheet-heading .eyebrow,
.sheet-section-title h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sheet-heading .eyebrow::before,
.sheet-section-title h2::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 20px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M9 1H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7L9 1Z M9 1v6h6 M4 11h8 M4 14h6' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.page-heading.sheet-heading .eyebrow {
  margin-bottom: 8px;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.my-work .sheet-section-title h2 {
  font: 700 18px/1.4 var(--mono);
  letter-spacing: -0.025em;
}
.my-work .crew-work-section > .section-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.my-work .crew-work-section > .section-heading h3 {
  font: 600 12px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 12px/1.5 var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
  min-width: 0;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  min-height: 46px;
  font:
    400 14px/1.5 Manrope,
    Arial,
    sans-serif;
  letter-spacing: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.workspace-picker {
  max-width: 340px;
  margin-bottom: 24px;
}
.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
main:has(> .auth) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(560px, calc(100% - 32px));
  max-width: none;
  min-height: calc(100svh - 105px);
  padding: 32px 0 64px;
}
main:has(> .auth) > .page-heading,
main:has(> .auth) > p {
  text-align: center;
}
main:has(> .auth) > .page-heading {
  display: block;
}
main:has(> .auth) .page-title-row {
  justify-content: center;
}
main > .auth {
  width: 100%;
}
.auth {
  max-width: 560px;
  display: grid;
  gap: 20px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}
th {
  background: var(--surface);
  color: var(--muted);
  font:
    10px/1.5 ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 24px;
}
td {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  overflow-wrap: anywhere;
}
td:last-child {
  text-align: right;
}
td p {
  font-size: 12px;
  margin-bottom: 0;
}
.row-title {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.badge {
  white-space: nowrap;
  overflow-wrap: normal;
  display: inline-block;
  padding: 5px 7px;
  font:
    9px/1.5 ui-monospace,
    monospace;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.badge.good {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 31%, transparent);
}
/* Deliverable states retain the same meaning across company palettes. */
.badge[data-deliverable-status] {
  --deliverable-tone: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 28px;
  white-space: normal;
  color: var(--deliverable-tone);
  border-color: color-mix(in srgb, var(--deliverable-tone) 65%, transparent);
  background: color-mix(in srgb, var(--deliverable-tone) 10%, transparent);
}
.badge[data-deliverable-status="planned"] { --deliverable-tone: #9ac7ff; }
.badge[data-deliverable-status="editing"] { --deliverable-tone: #70d5df; }
.badge[data-deliverable-status="submitted"] { --deliverable-tone: #c9adff; }
.badge[data-deliverable-status="client-review"] { --deliverable-tone: #f1d172; }
.badge[data-deliverable-status="revisions"] { --deliverable-tone: #ffb454; }
.badge:is([data-deliverable-status="approved"], [data-deliverable-status="delivered"]) { --deliverable-tone: var(--status-booked); }
.badge[data-deliverable-status][data-overdue="true"] { --deliverable-tone: #ff9991; }
:root[data-theme="light"] .badge[data-deliverable-status="planned"] { --deliverable-tone: #255b9b; }
:root[data-theme="light"] .badge[data-deliverable-status="editing"] { --deliverable-tone: #006975; }
:root[data-theme="light"] .badge[data-deliverable-status="submitted"] { --deliverable-tone: #7042aa; }
:root[data-theme="light"] .badge[data-deliverable-status="client-review"] { --deliverable-tone: #785700; }
:root[data-theme="light"] .badge[data-deliverable-status="revisions"] { --deliverable-tone: #935200; }
:root[data-theme="light"] .badge[data-deliverable-status][data-overdue="true"] { --deliverable-tone: #ac352c; }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--accent) 31%, transparent);
  border-radius: 8px;
  color: var(--accent);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 16px;
}
.section-heading h2 {
  margin: 0;
}
.call-sheet {
  margin-bottom: 24px;
}
.call-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
}
.call-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.call-strip > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.call-strip small {
  font:
    11px/1.5 ui-monospace,
    monospace;
  color: var(--accent);
}
.call-time {
  font-size: 42px;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.form-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.menu {
  position: relative;
}
.menu > summary {
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  list-style: none;
}
.menu-panel {
  position: absolute;
  right: 0;
  top: 54px;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  z-index: 10;
  box-shadow: 0 12px 30px #0008;
  display: grid;
}
.menu-panel > a,
.menu-panel > button {
  text-align: left;
  justify-content: flex-start;
  padding: 12px;
  text-decoration: none;
  border: 0;
  border-radius: 8px;
}
.menu-panel > a:hover,
.menu-panel > button:hover,
.menu-panel > a:focus-visible,
.menu-panel > button:focus-visible {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
#header .menu-panel > [data-logout] {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 8px;
}
.disclosure {
  padding: 0;
  margin-top: 24px;
}
.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 21px;
}
.disclosure > summary::-webkit-details-marker,
.menu summary::-webkit-details-marker {
  display: none;
}
.summary-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.toggle:before {
  content: "+";
  color: currentColor;
}
#header .menu > summary .toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  flex: 0 0 1em;
}
#header .view-switch {
  order: 0;
  margin: 0;
  position: relative;
  isolation: isolate;
}
#header .view-switch::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  width: calc((100% - 12px) / 2);
  border-radius: 6px;
  background: var(--brand-accent);
  transition: transform 180ms ease;
  z-index: -1;
}
#header .view-switch[data-selected="crew"]::before {
  transform: translateX(calc(100% + 4px));
}
#header .view-switch button,
#header .view-switch button[aria-pressed="true"] {
  background: transparent;
}
#header .view-switch button[aria-pressed="true"] {
  color: #17201c;
}
@media (prefers-reduced-motion: reduce) {
  #header .view-switch::before {
    transition: none;
  }
}
details[open] > .toggle:before,
details[open] > summary > .toggle:before {
  content: "−";
}
.panel-body {
  padding: 0 24px 24px;
}
.preserve {
  white-space: pre-wrap;
}
.empty {
  padding: 24px;
}
.muted {
  color: var(--muted);
}
.error {
  color: #ff8d80;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full {
  grid-column: 1/-1;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(760px, calc(100vw - 32px));
  padding: 24px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog::backdrop {
  background: #000a;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.modal-head h2 {
  margin: 0;
  font: 500 20px/1.3 var(--font-body);
  letter-spacing: -.02em;
}
/* Form dialogs share the compact typography used by the current pickers. */
dialog :is(h2, h3) { font-family: var(--font-body); font-weight: 500; }
dialog h3 { font-size: 16px; line-height: 1.4; }
dialog > form > p { font: 400 13px/1.6 var(--font-body); }
dialog button:not(.dialog-close) { font-family: var(--font-body); font-weight: 500; }
dialog .form-grid { gap: 16px; }
input[type="file"] { min-height: 44px; padding: 4px 6px; font-family: var(--font-body); color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: 500 13px/1.4 var(--font-body); cursor: pointer; }
input[type="file"]::file-selector-button:hover { border-color: var(--accent); }
.modal-head button {
  font-size: 24px;
  width: 44px;
  padding: 0;
}
dialog form > label {
  margin-top: 20px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
}
.check {
  font: 400 13px/1.5 var(--font-body);
  letter-spacing: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border: 2px solid var(--muted);
  border-radius: 50%;
  flex: 0 0 22px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%23858e91' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  cursor: pointer;
}
input[type="checkbox"]:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-9' fill='none' stroke='%230d1011' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12h10' stroke='%230d1011' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input[type="checkbox"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
@media (forced-colors: active) {
  input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
  }
}
#loading {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 168px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  pointer-events: none;
  overflow: hidden;
  background: var(--line, #34383a);
}
#loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 28%;
  background: var(--accent, #c5f45b);
  box-shadow: 0 0 10px
    color-mix(in srgb, var(--accent, #c5f45b) 45%, transparent);
  transform: translateX(-110%);
}
#loading:not([hidden])::after {
  animation: page-loading-build 1.15s cubic-bezier(0.45, 0.05, 0.55, 0.95)
    infinite;
}
@keyframes page-loading-build {
  to {
    transform: translateX(410%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #loading:not([hidden])::after {
    left: 36%;
    transform: none;
    animation: none;
  }
}
#toast:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 14px 20px;
  border-radius: 10px;
  z-index: 40;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  header {
    padding: 20px 16px;
    align-items: flex-start;
  }
  .brand small {
    display: none;
  }
  .header-controls {
    justify-content: flex-end;
  }
  .segments {
    order: 2;
  }
  .segments button {
    padding: 8px 12px;
  }
  .brand strong {
    font-size: 12px;
  }
  main {
    padding: 24px 16px 90px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading {
    gap: 16px;
  }
  .panel {
    padding: 20px;
  }
  .table-wrap {
    overflow: visible;
  }
  thead {
    display: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  tr {
    padding: 16px;
    border-top: 1px solid var(--line);
  }
  tr:first-child {
    border-top: 0;
  }
  td {
    padding: 5px 0;
    border: 0;
  }
  td:first-child {
    font-weight: 600;
    font-size: 15px;
  }
  td:before {
    content: attr(data-label);
    display: block;
    font:
      10px/1.5 ui-monospace,
      monospace;
    color: var(--muted);
    text-transform: uppercase;
  }
  td:first-child:before,
  td:last-child:empty:before {
    display: none;
  }
  td:last-child {
    text-align: left;
    margin-top: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .call-strip {
    gap: 16px;
  }
  .call-strip > div + div {
    padding-left: 16px;
  }
  .call-time {
    font-size: 34px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .menu-panel {
    max-width: calc(100vw - 32px);
  }
  dialog {
    padding: 18px;
  }
  .disclosure {
    padding: 0;
  }
  .disclosure > summary {
    padding: 20px;
  }
  .panel-body {
    padding: 0 20px 20px;
  }
}

.work-filters {
  width: 100%;
  margin-bottom: 24px;
}

.history-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 800px) {
  .history-filters {
    grid-template-columns: 1fr 1fr;
  }
  .history-filters input {
    grid-column: 1/-1;
  }
}

#header-workspace {
  max-width: 220px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .header-controls {
    max-width: 62%;
  }
  #header-workspace {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.facts small,
.facts strong {
  display: block;
}
.facts small {
  color: var(--muted);
  font-size: 11px;
}
.agreement-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.agreement-entry .badge {
  margin-left: auto;
  flex: none;
}
.file-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.panel-body > .disclosure {
  margin-top: 14px;
}
@media (max-width: 650px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.couple-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
  gap: 16px;
  margin-bottom: 24px;
}
.couple-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.location-entry {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.gear-offer-action {
  margin-top: 24px;
}

.hotel-choices {
  display: grid;
  gap: 6px;
  grid-column: 1/-1;
}
.hotel-choices:empty {
  display: none;
}
.hotel-choices button {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
}
.hotel-choices small {
  color: var(--muted);
}

.review-dialog {
  width: min(960px, calc(100vw - 32px));
}
.review-dialog video {
  display: block;
  width: 100%;
  max-height: 55vh;
  background: #000;
  border-radius: var(--radius, 12px);
}
.review-note {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.review-note small {
  display: block;
  color: var(--muted);
}
.file-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.break-word {
  overflow-wrap: anywhere;
}

[data-delete] {
  color: #ff9286;
  border-color: #84423b;
}

[data-drag-item] {
  cursor: grab;
  touch-action: pan-y;
}
.drop-target {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.reward-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.reward-airline-input {
  position: relative;
  display: block;
  min-width: 0;
}
:is(#profile, .travel-profile-dialog) .reward-airline-input input {
  padding-left: 48px;
  width: 100%;
}
.reward-airline-logo {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}
.reward-airline-logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.reward-row button {
  margin-bottom: 0;
}
@media (max-width: 520px) {
  .reward-row {
    grid-template-columns: 1fr 1fr;
  }
  .reward-row button {
    grid-column: 2;
    justify-self: end;
  }
}

.agreement-print pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
@media print {
  #header,
  #loading,
  #toast,
  .back,
  .page-heading,
  .menu {
    display: none !important;
  }
  body,
  .panel {
    background: white !important;
    color: black !important;
    border: 0 !important;
  }
  main {
    max-width: none !important;
    padding: 0 !important;
  }
  .agreement-print {
    break-inside: auto;
  }
  .agreement-print small {
    color: #333 !important;
  }
}

.form-grid > .disclosure,
.form-grid > .hotel-choices {
  grid-column: 1 / -1;
}
.hotel-choices:empty {
  display: none;
}

.day-picker {
  display: flex;
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}
.day-picker button {
  flex: 1 0 auto;
  min-width: 76px;
}

.page-heading .page-title-row h1:last-child {
  margin-bottom: 0;
}

/* Match the original site's shared narrow-screen dialog metrics. */
@media (max-width: 650px) {
  body dialog {
    box-sizing: border-box;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
    overscroll-behavior: contain;
  }
  body dialog :is(h2, .modal-head h2) {
    font-size: 20px;
    line-height: 1.25;
  }
  body dialog h3 {
    font-size: 17px;
    line-height: 1.3;
  }
  body dialog p {
    font-size: 13px;
    line-height: 1.5;
  }
  body dialog .modal-head {
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
  }
  body dialog .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body
    dialog
    :is(
      input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
      textarea,
      select
    ) {
    font-size: 16px;
    line-height: 1.4;
    padding: 10px 12px;
    min-height: 44px;
  }
  body dialog textarea {
    min-height: 80px;
  }
  body dialog .form-actions {
    gap: 8px;
  }
}

button.back {
  border: 0;
  background: transparent;
  border-radius: 0;
  justify-content: flex-start;
}

.reward-airline-control {
  min-width: 0;
  align-self: end;
}
.reward-airline-control [hidden] {
  display: none;
}
.reward-airline-display {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
}
.reward-airline-display strong {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.reward-airline-mark {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  color: var(--muted);
}
.reward-airline-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.reward-airline-display .reward-airline-edit {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 36px;
  padding: 6px 8px;
  border-color: transparent;
  color: var(--muted);
  font-size: 12px;
}
.reward-airline-display .reward-airline-edit:hover,
.reward-airline-display .reward-airline-edit:focus-visible {
  color: var(--accent);
  border-color: var(--line);
}

/* Show only AXIOM's existing wordmark; preserve the original artwork and scale. */
:root .company-logo.branded-company-logo[src="/assets/axiom-logo.png"] {
  width: 144px;
  height: 54px;
  padding: 0;
  object-fit: cover;
  object-position: right center;
}
@media (max-width: 650px) {
  :root .company-logo.branded-company-logo[src="/assets/axiom-logo.png"] {
    width: 117.4px;
    height: 44px;
  }
}

/* One close control across forms, media viewers, maps and standalone client pages. */
:root body dialog button.dialog-close[data-close] {
  display: grid; place-items: center; flex: 0 0 44px;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px;
  padding: 0; border: 0; border-radius: 0;
  outline: none; box-shadow: none; background: transparent; color: var(--ink);
}
:root body dialog button.dialog-close[data-close] svg { display: block; width: 28px; height: 28px; pointer-events: none; }
:root body dialog button.dialog-close[data-close]:hover { background: transparent; color: var(--accent); border: 0; }
:root body:not([data-keyboard-navigation="true"]) dialog button.dialog-close[data-close]:focus-visible { outline: none; box-shadow: none; }
:root body[data-keyboard-navigation="true"] dialog button.dialog-close[data-close]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; color: var(--accent); }

:root[data-theme="light"] { --status-booked: #376600; }
:is(.badge, .crew-availability)[data-booking-status="booked"] { color: var(--status-booked); border-color: var(--status-booked); }
.connection-notice { position:fixed; bottom:12px; left:50%; transform:translateX(-50%); z-index:10000; max-width:calc(100vw - 24px); width:max-content; background:var(--panel); border:1px solid var(--warning); color:var(--ink); border-radius:8px; padding:10px 14px; font:400 12px/1.4 var(--font-body); box-shadow:0 4px 18px #0005; }
.connection-notice[hidden] { display:none; }
.plan-connection { margin:12px 0; color:var(--muted); font:400 11px/1.4 var(--font-body); }
.plan-connection[data-state="changed"],.plan-connection[data-state="paused"] { border:1px solid var(--warning); border-radius:8px; padding:10px 12px; }
.plan-connection button { min-height:44px; padding:8px 12px; font-size:12px; margin-left:8px; }
.plan-connection small { display:block; }

/* Platform identity and the hiring company's identity have separate jobs. */
:root #header .brand {
  min-width: 0;
  gap: 20px;
}
:root #header .platform-logo {
  display: block;
  width: 106px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
}
:root #header .platform-company-context {
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
  min-width: 0;
}
:root #header .platform-company-context > img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}
:root #header .platform-company-context > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
:root #header .platform-company-context small {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  font: 400 10px/1.3 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
:root #header .platform-company-context strong {
  max-width: 210px;
  font: 500 13px/1.35 var(--font-body);
  overflow-wrap: anywhere;
}
.company-domain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.company-domain-grid form {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.company-domain-grid form h3 {
  font-size: 16px;
  margin: 0;
}
.company-domain-grid form p,
.company-domain-explainer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.company-domain-grid form > small {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.company-domain-grid form input {
  width: 100%;
}
.company-domain-grid form .form-actions {
  margin-top: 18px;
  padding-top: 0;
  border: 0;
}
.company-domain-grid form .domain-save-status {
  color: var(--accent);
}
.settings-company-domain-shortcut {
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.settings-company-domain-shortcut h3,
.company-domain-setup h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.settings-company-domain-shortcut p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.company-domain-setup ol {
  padding-left: 20px;
  margin: 16px 0 0;
}
.company-domain-setup li {
  padding-left: 6px;
  margin: 14px 0;
  color: var(--accent);
  font-size: 13px;
}
.company-domain-setup li strong,
.company-domain-setup li span {
  display: block;
}
.company-domain-setup li strong {
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}
.company-domain-setup li span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
@media (max-width: 800px) {
  .company-domain-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  :root #header {
    gap: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  :root #header > .brand {
    grid-column: 1;
    grid-row: 1;
  }
  :root #header .header-controls {
    display: contents;
  }
  :root #header .header-controls > .menu {
    grid-column: 2;
    grid-row: 1;
  }
  :root #header .header-view-switch {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }
  :root #header .brand {
    gap: 10px;
  }
  :root #header .platform-logo {
    width: 76px;
    height: 54px;
  }
  :root #header .platform-company-context {
    padding-left: 10px;
    gap: 7px;
  }
  :root #header .platform-company-context > img {
    display: none;
  }
  :root #header .platform-company-context strong {
    max-width: 100px;
    font-size: 11px;
  }
  :root #header .platform-company-context small {
    font-size: 9px;
  }
}
