@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;
  --accent: #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;
}
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);
}
main {
  max-width: 1440px;
  padding: 28px 5vw 90px;
  margin: auto;
  min-width: 0;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: -6px 0 16px;
  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;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.055em;
  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;
}
.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: #c5f45b50;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  height: 30px;
  border: 1px solid #c5f45b50;
  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 {
  background: #ffffff08;
}
.menu-panel > button:last-child {
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.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: var(--muted);
}
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;
}
.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;
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
}
input[type="checkbox"]:checked {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
}
input[type="checkbox"]:checked:after {
  content: "✓";
  font-size: 14px;
}
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 4px 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  text-align: center;
}
#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 #c5f45b;
  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-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;
}
