@font-face {
  font-family: Bricolage;
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("/assets/fonts/barlow.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #062b49;
  --blue: #006aa6;
  --cyan: #1d9ee4;
  --sky: #e7f5fc;
  --paper: #f6fbfe;
  --muted: #4f6c80;
  --line: #d3e6f1;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Bricolage, sans-serif;
  line-height: 1.55;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1.08;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}
small,
.fineprint {
  font-size: 0.85rem;
}
.muted,
.fineprint {
  color: var(--muted);
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  z-index: 9;
  background: white;
  padding: 12px;
  top: 10px;
  left: 10px;
}
.workspace {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--navy);
  padding: 36px 20px 24px;
  display: flex;
  flex-direction: column;
  color: white;
}
.brand {
  justify-self: start;
  display: block;
  background: white;
  border-radius: 14px 30px 14px 14px;
  padding: 8px 15px;
  align-self: flex-start;
}
.brand img {
  width: 158px;
  height: 67px;
  object-fit: contain;
  display: block;
}
.sidebar-label {
  font-family: Barlow, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b9d7e9;
  margin: 36px 14px 12px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav a {
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d4e7f2;
  font-weight: 600;
}
.sidebar nav a[aria-current] {
  background: #c6eafa;
  color: var(--navy);
}
.sidebar nav a:hover {
  background: #154460;
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 14px 0;
  font-size: 0.875rem;
  color: #c6dfed;
}
.sidebar-bottom p {
  margin: 24px 0 3px;
}
.signout {
  border: 0;
  padding: 8px 0;
  background: none;
  color: white;
  min-height: 44px;
  text-align: left;
}
.content {
  padding: 46px clamp(24px, 4vw, 64px) 20px;
  max-width: 1560px;
  width: 100%;
  min-width: 0;
}
.kicker {
  font-family: Barlow, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--blue);
  margin-bottom: 16px;
}
.page-heading {
  padding-bottom: 38px;
  max-width: 800px;
}
.page-heading > p:last-of-type {
  color: var(--muted);
  max-width: 52ch;
}
.page-heading.compact h1 {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
}
.page-heading .button {
  margin-top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 24px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.93rem;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.button:active {
  transform: translateY(1px);
}
.button.secondary {
  color: var(--navy);
  background: transparent;
  border-color: #93bbd1;
}
.button.secondary:hover {
  background: var(--sky);
}
.full-width {
  width: 100%;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  background: #e5f2fa;
  border-radius: 22px;
  width: fit-content;
  margin-bottom: 32px;
}
.tabs a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
}
.tabs a[aria-current] {
  background: var(--navy);
  color: white;
}
.tabs span {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-toolbar h2 {
  margin: 0;
}
.search {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search input {
  width: 260px;
  min-height: 44px;
}
.record-list {
  border-top: 1px solid var(--line);
}
.record-row {
  display: grid;
  grid-template-columns: 48px minmax(130px, 1fr) minmax(130px, 1fr) minmax(
      130px,
      0.8fr
    ) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.record-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}
.record-main p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 0;
}
.pet-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 52px;
  background: #d6edf9;
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 10px 20px 10px 10px;
}
.small-label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.record-route {
  font-size: 0.9rem;
}
.record-route small,
.record-meta small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.78rem;
}
.badge {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  background: var(--sky);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.badge.pending {
  background: #d5edfa;
  border-color: #9ccce6;
  color: #064263;
}
.badge.complete {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}
.badge.rejected {
  background: #f0f3f5;
  border-color: #b4c4ce;
  color: #425c6d;
}
.row-action {
  font-size: 0.85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
}
.row-action:hover {
  text-decoration: underline;
}
.empty-state {
  text-align: center;
  padding: 70px 24px;
  max-width: 580px;
  margin: auto;
}
.empty-state p {
  color: var(--muted);
}
.empty-state h2 {
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}
.empty-letter {
  display: block;
  color: #2179a8;
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 750;
}
.quiet-link {
  font-weight: 650;
  font-size: 0.9rem;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 56px;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--muted);
}
.workspace-footer span {
  font-weight: 400;
}
.back-link {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 30px;
}
.detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.detail-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.detail-heading .kicker {
  margin-bottom: 12px;
}
.detail-heading .badge {
  margin-left: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}
.detail-aside {
  display: grid;
  gap: 20px;
}
.surface {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-width: 0;
  margin-bottom: 24px;
}
.surface > h2 {
  margin-bottom: 18px;
}
.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 26px 0;
}
.data-grid > div {
  min-width: 0;
}
.data-grid .wide {
  grid-column: 1/-1;
}
dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 0.95rem;
}
.stack {
  display: grid;
  gap: 15px;
}
.stack > div {
  display: grid;
  gap: 7px;
}
.stack label {
  font-size: 0.88rem;
  font-weight: 600;
}
.stack .button {
  justify-self: start;
  margin-top: 8px;
}
.stack .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #91b3c8;
  border-radius: 10px;
  background: white;
  color: var(--navy);
  padding: 11px 12px;
  min-height: 44px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #567386;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}
textarea {
  resize: vertical;
}
select[multiple] {
  min-height: 130px;
}
form .helptext {
  color: var(--muted);
  font-size: 0.8rem;
}
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #8b2638;
  font-size: 0.85rem;
}
.error,
.message.error {
  color: #8b2638;
}
.notice {
  background: #e3f3fc;
  border: 1px solid #abd5eb;
  border-radius: var(--radius);
  padding: 22px;
}
.notice h2 {
  font-size: 1.1rem;
}
.notice p:last-child {
  margin-bottom: 0;
}
.history {
  padding: 16px 2px;
}
.history article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.history small {
  color: var(--muted);
  font-size: 0.78rem;
}
.message {
  background: #deeff9;
  padding: 14px 20px;
  border-radius: 12px;
}
.message.error {
  background: #fff0f2;
}
.pagination {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  font-size: 0.9rem;
}
.pagination a {
  min-height: 44px;
}
.client-row {
  grid-template-columns: 48px minmax(160px, 1fr) minmax(120px, 1fr) auto;
}
.contact-summary p {
  margin: 3px 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contacts p {
  overflow-wrap: anywhere;
}
.contacts small {
  color: var(--muted);
}
details summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
  padding: 8px 0;
}
details[open] summary {
  margin-bottom: 18px;
}
.linked-record {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.linked-record:last-child {
  border-bottom: 0;
}
.linked-record small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}
.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 0.8rem;
  min-height: 44px;
  padding: 8px;
}
.agenda-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.agenda-toolbar .search input {
  width: 170px;
}
.appointment-row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.appointment-row p {
  margin-bottom: 0;
  font-size: 0.85rem;
}
.appointment-row h3 a {
  text-decoration: none;
}
.appointment-time {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.appointment-time small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0;
}
.trip-list {
  display: grid;
  gap: 24px;
}
.trip-card,
.flight-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px 36px 18px 18px;
  padding: 28px;
}
.trip-header,
.flight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.trip-header .kicker {
  margin-bottom: 8px;
}
.trip-header h2 {
  margin: 0;
  font-size: 1.5rem;
}
.trip-header a {
  text-decoration: none;
}
.flight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0;
}
.flight-strip a {
  padding-right: 24px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  min-width: 180px;
}
.flight-strip a:last-child {
  border: 0;
}
.flight-strip b {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}
.flight-strip span,
.flight-strip small {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}
.flight-strip b span {
  display: inline;
  color: var(--cyan);
  font-size: 1.2rem;
}
.flight-card {
  margin-bottom: 24px;
}
.flight-header h2 {
  font-size: 1.7rem;
  margin: 0;
}
.flight-header > span {
  font-size: 0.8rem;
  color: var(--muted);
}
.two-column-form {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.two-column-form .errorlist,
.two-column-form > button {
  grid-column: 1/-1;
}
.form-surface {
  max-width: 900px;
}
.login-page {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100dvh;
  background: white;
}
.login-photo {
  position: relative;
  background: #c2e9fa;
  min-height: 100dvh;
  overflow: hidden;
}
.login-photo > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}
.login-photo > div {
  position: relative;
  padding: 45px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand {
  width: 200px;
  height: 95px;
  background: white;
  padding: 10px;
  border-radius: 16px 32px 16px 16px;
  object-fit: contain;
}
.login-photo p {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.04em;
  background: #c2e9fa;
  padding: 25px;
  border-radius: 18px 40px 18px 18px;
  width: fit-content;
  margin-top: 350px;
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: 48px clamp(30px, 6vw, 100px);
}
.login-panel > div {
  max-width: 380px;
  width: 100%;
  margin: auto;
}
.login-panel h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}
.login-panel .stack {
  gap: 9px;
  margin-top: 32px;
}
.login-panel .button {
  margin-top: 20px;
  width: 100%;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .brand img {
    width: 140px;
  }
  .content {
    padding: 35px 26px 20px;
  }
  .record-row {
    grid-template-columns: 40px minmax(120px, 1fr) minmax(120px, 1fr) auto;
  }
  .record-meta {
    grid-column: 2/4;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .record-meta small {
    margin: 0;
  }
  .row-action {
    grid-column: 4;
    grid-row: 1/3;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 20px;
  }
  .surface {
    padding: 22px;
  }
  .client-row {
    grid-template-columns: 40px 1fr auto;
  }
  .client-row .contact-summary {
    grid-column: 2;
    grid-row: 2;
  }
  .client-row .row-action {
    grid-column: 3;
  }
  .search input {
    width: 210px;
  }
}
@media (max-width: 900px) {
  .workspace {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
  }
  .brand {
    padding: 4px 10px;
  }
  .brand img {
    width: 130px;
    height: 55px;
  }
  .sidebar-label {
    display: none;
  }
  .sidebar nav {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  .sidebar nav a {
    min-height: 44px;
    padding: 8px 16px;
    white-space: nowrap;
  }
  .sidebar nav span {
    display: none;
  }
  .sidebar-bottom {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sidebar-bottom > a,
  .sidebar-bottom > p {
    display: none;
  }
  .sidebar-bottom .signout {
    font-size: 0.8rem;
  }
  .content {
    padding: 32px 24px 20px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    padding-bottom: 26px;
  }
  .detail-heading {
    align-items: flex-start;
  }
  .login-page {
    grid-template-columns: 0.8fr 1fr;
  }
  .login-photo > div {
    padding: 25px;
  }
  .login-photo p {
    font-size: 2rem;
  }
  .login-panel {
    padding: 30px;
  }
  .agenda-toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 2.6rem;
  }
  .content {
    padding: 28px 18px 20px;
  }
  .sidebar {
    padding: 12px 18px;
    gap: 10px;
  }
  .sidebar nav a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
  .page-heading h1 br {
    display: initial;
  }
  .section-toolbar {
    align-items: stretch;
  }
  .section-toolbar h2 {
    width: 100%;
  }
  .search {
    width: 100%;
  }
  .search input {
    flex: 1;
    width: 100%;
    min-width: 0;
  }
  .search .button {
    padding-inline: 17px;
  }
  .record-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 22px 0;
  }
  .record-route {
    grid-column: 2;
    grid-row: 2;
  }
  .record-meta {
    grid-column: 2/4;
    grid-row: 3;
    flex-wrap: wrap;
  }
  .row-action {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
  }
  .record-title {
    font-size: 1.05rem;
  }
  .pet-mark {
    width: 36px;
    height: 44px;
    font-size: 1.2rem;
  }
  .record-route small {
    margin-top: 2px;
  }
  .record-meta small {
    font-size: 0.74rem;
  }
  .tabs {
    gap: 2px;
    padding: 5px;
    width: 100%;
    justify-content: space-between;
  }
  .tabs a {
    padding: 9px 12px;
    gap: 8px;
    font-size: 0.82rem;
  }
  .surface {
    padding: 22px 18px;
  }
  .detail-heading {
    display: block;
  }
  .detail-heading .badge {
    margin: 8px 0 0;
  }
  .data-grid,
  .contacts {
    grid-template-columns: 1fr 1fr;
    gap: 22px 14px;
  }
  .data-grid dd {
    font-size: 0.88rem;
  }
  .data-grid > div:has(dd br) {
    grid-column: 1/-1;
  }
  .two-column-form {
    grid-template-columns: 1fr;
  }
  .workspace-footer {
    font-size: 0.72rem;
  }
  .workspace-footer span {
    max-width: 16ch;
    text-align: right;
  }
  .appointment-row {
    grid-template-columns: 62px 1fr;
    gap: 14px;
  }
  .appointment-row .row-action {
    grid-column: 2;
    grid-row: auto;
    min-height: 30px;
  }
  .appointment-time {
    font-size: 1.3rem;
  }
  .agenda-toolbar {
    gap: 8px;
  }
  .agenda-toolbar .search {
    order: 3;
  }
  .agenda-toolbar .search input {
    width: 140px;
  }
  .trip-header {
    align-items: flex-start;
  }
  .trip-header h2 {
    font-size: 1.25rem;
  }
  .trip-card,
  .flight-card {
    padding: 22px 18px;
  }
  .flight-strip {
    gap: 18px;
  }
  .flight-strip a {
    border: 0;
    min-width: 0;
    width: 100%;
    padding: 0;
  }
  .flight-header {
    display: block;
  }
  .flight-header h2 {
    margin-bottom: 8px;
  }
  .linked-record {
    align-items: flex-start;
    gap: 12px;
  }
  .login-page {
    display: block;
  }
  .login-photo {
    display: none;
  }
  .login-panel {
    min-height: 100dvh;
    padding: 28px;
  }
  .login-panel > div {
    margin: 20px auto;
  }
  .empty-state {
    padding: 55px 12px;
  }
  .detail-aside .button {
    white-space: normal;
  }
  .client-row .contact-summary {
    grid-row: 2;
  }
  .client-row .row-action {
    grid-column: 3;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.sidebar :focus-visible {
  outline-color: #c6eafa;
}

.trip-search {
  margin-bottom: 28px;
  max-width: 720px;
}
.trip-search select {
  width: auto;
  min-width: 210px;
}
.trip-search input {
  min-width: 0;
}
@media (max-width: 600px) {
  .trip-search {
    flex-wrap: wrap;
  }
  .trip-search input {
    flex-basis: 100%;
  }
  .trip-search select {
    flex: 1 1 210px;
  }
}

.availability-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
@media (max-width: 600px) { .availability-actions { display: grid; } .availability-actions .button { white-space: normal; } }
dialog { width: min(960px, calc(100% - 32px)); max-height: min(90dvh, 900px); border: 1px solid var(--line); border-radius: 18px 36px 18px 18px; padding: clamp(20px, 4vw, 36px); color: var(--navy); background: white; }
dialog::backdrop { background: rgb(6 43 73 / .65); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.dialog-header h2 { font-size: 1.65rem; margin-bottom: 8px; }
.client-rows { display: grid; gap: 16px; }
.client-entry { border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.client-entry legend { font-weight: 700; padding: 0 8px; }
.client-entry > div { display: grid; align-content: start; gap: 6px; }
.client-entry label { font-size: .85rem; font-weight: 650; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dialog-actions .button { margin-top: 0; }
@media (max-width: 760px) { .client-entry { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .client-entry { grid-template-columns: 1fr; } .dialog-actions { display: grid; } .dialog-actions .button { width: 100%; white-space: normal; } }

.client-entry[hidden], .remove-client-row[hidden] { display: none; }
.remove-client-row { justify-self: start; grid-column: 1 / -1; }
@media (max-width: 600px) { .dialog-actions { position: sticky; bottom: -20px; background: white; padding: 12px 0 20px; z-index: 1; } }

.trip-legend {
  max-width: 720px;
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #edf8fd;
}
.trip-legend h2 { margin: 0 0 12px; font-size: 1rem; }
.trip-legend dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.trip-legend dt { font-weight: 700; }
.trip-legend dd { margin: 2px 0 0; font-size: .88rem; }
.trip-legend p { margin: 14px 0 0; font-size: .82rem; }
@media (max-width: 600px) {
  .trip-legend dl { grid-template-columns: 1fr; }
}

.two-column-form > div:has(input[name="booking_reference"]) { align-content: start; }
.two-column-form input[name="booking_reference"] { height: 48px; }
.passenger-choices { display: grid; gap: 6px; max-height: 220px; overflow: auto; }
.passenger-choices label { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; }
.passenger-choices label:hover { background: #edf8fd; }
.passenger-choices input { width: auto; min-height: 0; }
.passenger-choices label[hidden] { display: none; }

.flight-lookup { grid-column: 1 / -1; display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #edf8fd; }
.flight-lookup { margin-bottom: 28px; }
.flight-lookup h2, .flight-lookup p { margin: 0; }
.flight-lookup label { font-weight: 600; }
.flight-lookup input { width: min(100%, 520px); }
.flight-lookup button { justify-self: start; }
#lookup-results { display: grid; gap: 8px; }
#lookup-results button { white-space: normal; text-align: left; }

.schedule-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; margin: 16px 0 20px; }
.schedule-legend div { display: grid; gap: 3px; min-width: 0; }
.schedule-legend strong { font-size: .85rem; }
.schedule-legend span { color: var(--muted); font-size: .82rem; }
.schedule-legend .schedule-hours { white-space: nowrap; }
@media (max-width: 700px) { .schedule-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.habitual-actions { display: grid; gap: 14px; margin-top: 24px; }
.habitual-actions label { display: flex; align-items: flex-start; gap: 10px; }
.habitual-actions input { flex: 0 0 auto; margin-top: 3px; }
.habitual-actions .button { justify-self: start; }
#opening-form { scroll-margin-top: 16px; }

.flight-delete-action { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.delete-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button.danger { background: #a72d32; border-color: #a72d32; color: #fff; }
.button.danger:hover { background: #842025; border-color: #842025; }
@media (max-width: 480px) { .delete-actions { display: grid; } .delete-actions .button { width: 100%; } }

.pet-entry { border: 1px solid #cfe5f1; border-radius: 12px; padding: 1rem; margin: .75rem 0; display: grid; gap: .75rem; }
.pet-entry label { display: grid; gap: .35rem; }
.pet-entry legend { font-weight: 700; padding: 0 .35rem; }

.auth-qr { display: block; max-width: 100%; height: auto; margin: 24px auto; background: white; }
.recovery-key, .recovery-codes { overflow-wrap: anywhere; }
.recovery-codes { padding-left: 1.3rem; line-height: 2; }
.login-panel:has(.auth-qr), .login-panel:has(.recovery-codes) { padding-top: 36px; padding-bottom: 36px; }
