@font-face {
  font-family: Satoshi;
  src: url("../../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("../../fonts/Inter-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --primary: #7048c6;
  --green: #237a61;
  --ink: #29263f;
  --muted: #656477;
  --line: #e5e3ec;
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: #f8f9fc;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f8f9fc;
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
h1,
h2,
h3,
h4,
.brand {
  font-family: Satoshi, Inter, sans-serif;
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 750;
}
h1 {
  font-size: 36px;
  margin: 12px 0 18px;
}
h2 {
  font-size: 25px;
  margin: 8px 0 14px;
}
h3 {
  font-size: 19px;
  margin: 8px 0;
}
p {
  margin: 10px 0 18px;
  color: var(--muted);
}
small {
  font-size: 12px;
}
svg {
  flex-shrink: 0;
}
button svg,
a svg {
  width: 18px;
  height: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  color: var(--ink);
  font-weight: 800;
}
.brand span {
  color: var(--green);
}
.brand img {
  width: 36px;
  height: 36px;
}
.eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: #ffffffeb;
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(16px);
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 15px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none !important;
  line-height: 1.4;
}
.btn:hover {
  background: #f2eef9;
  border-color: #c9b8e8;
}
.btn.primary {
  background: linear-gradient(180deg, #8057d5, #7048c6);
  color: #fff;
  border-color: #7048c6;
  box-shadow: 0 8px 20px -12px #7048c699;
}
.btn.green {
  background: #237a61;
  border-color: #237a61;
  color: #fff;
}
.btn.danger {
  color: #9a293e;
  border-color: #e5bac4;
  background: #fff6f7;
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
}
.panel {
  padding: 26px;
  border: 1px solid #e8e5ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 20px -12px #29263f22;
}
.muted {
  color: var(--muted);
}
.message {
  padding: 13px 16px;
  border: 1px solid #d6cae8;
  border-radius: 12px;
  background: #f5f0fc;
  color: #523e73;
  line-height: 1.7;
}
.message.error {
  background: #fff1f3;
  border-color: #dfb4be;
  color: #8d2638;
}
.message.success {
  background: #edf7f2;
  border-color: #a6cfbb;
  color: #1c6249;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 5px 10px;
  border: 1px solid #ded3ed;
  color: #6339ac;
  background: #f3eefa;
  font-size: 11px;
  font-weight: 650;
}
.tag-ai {
  background: #f2e9ff;
  color: #6339ac;
}
.page-shell {
  min-height: 100vh;
}
.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 244px;
  z-index: 30;
  padding: 24px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.rail .brand {
  padding: 0 8px;
  margin-bottom: 36px;
}
.rail nav {
  display: grid;
  gap: 6px;
}
.rail a,
.rail button {
  justify-content: flex-start;
}
.rail nav .btn {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.rail nav .active {
  background: #f1eafb;
  color: #6339ac;
}
.rail-foot {
  margin-top: auto;
  padding: 20px 8px 0;
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.workspace {
  margin-left: 244px;
  min-width: 0;
}
.workspace .topbar {
  min-height: 64px;
}
.content-wrap {
  max-width: 1400px;
  margin: auto;
  padding: 24px;
}
.summary {
  color: #fff;
  padding: 30px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0, #7854ae66, transparent 80%),
    linear-gradient(120deg, #29263f, #214c3d);
  box-shadow: 0 10px 24px -16px #29263f55;
}
.summary h1,
.summary p {
  color: #fff;
}
.summary p {
  opacity: 0.9;
}
.summary .eyebrow {
  color: #dfd1f4;
}
.summary .btn {
  background: #ffffff12;
  border-color: #ffffff40;
  color: #fff;
}
.summary .btn.primary {
  background: #fff;
  color: #392d55;
}
.stat {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.stat > svg {
  color: var(--green);
  width: 23px;
  height: 23px;
}
.stat small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.stat strong {
  display: block;
  font-size: 13px;
  margin-top: 5px;
}
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head p {
  font-size: 13px;
  margin: 7px 0 0;
}
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
}
.tabs .btn {
  white-space: nowrap;
}
.tabs .active {
  background: #eee7f8;
  color: #6339ac;
  border-color: #d7c7ee;
}
.fab {
  display: none;
}
.day-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 0 0 125px;
  padding: 16px;
  background: #f8f8fc;
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-snap-align: start;
}
.day.active {
  color: #fff;
  background: #7048c6;
  border-color: #7048c6;
}
.day small {
  color: inherit;
}
.activity {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  margin: 12px 0;
}
.activity-time {
  color: var(--primary);
  font-size: 13px;
  font-weight: 750;
}
.activity h3 {
  font-size: 18px;
  margin: 0 0 7px;
}
.activity p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.activity-actions {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}
.activity-actions .btn {
  padding: 10px;
}
.empty {
  text-align: center;
  background: #faf9fc;
  border: 1px dashed #ded7e8;
  padding: 38px 22px;
  border-radius: 16px;
}
.empty .icon-wrap {
  display: inline-grid;
  place-items: center;
  background: #eee8f7;
  border-radius: 16px;
  width: 52px;
  height: 52px;
  color: var(--primary);
  margin-bottom: 12px;
}
.document-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.document-card > .file-info {
  flex: 1;
  min-width: 0;
}
.budget-bar {
  height: 9px;
  border-radius: 10px;
  background: #eee8f6;
  overflow: hidden;
}
.budget-fill {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #237a61, #7048c6);
}
.table-scroll {
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.data-table td,
.data-table th {
  padding: 13px 10px;
  border-bottom: 1px solid #eeebf3;
  vertical-align: top;
}
.data-table td {
  overflow-wrap: anywhere;
}
.data-table .btn {
  font-size: 12px;
  min-height: 40px;
}
.packing-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeaf3;
}
.packing-row label {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  margin: 0;
}
.packing-row input {
  width: 20px;
  height: 20px;
  accent-color: #237a61;
}
.packing-row .checked {
  text-decoration: line-through;
  color: var(--muted);
}
form label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  color: var(--ink);
  margin: 14px 0 8px;
}
input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #d9d5e3;
  border-radius: 11px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 450;
  min-height: 46px;
  margin-top: 7px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="file"] {
  font-size: 13px !important;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 450;
}
.check-label input {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--primary);
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
  display: block;
  margin: 6px 0;
}
.secret {
  display: block;
  overflow-wrap: anywhere;
  padding: 16px;
  background: #f1edf7;
  border-radius: 12px;
  font-size: 17px;
  letter-spacing: 2px;
  margin: 18px 0;
}
.legal h2 {
  margin-top: 32px;
}
.legal p {
  line-height: 1.85;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
  padding: 24px 0;
  line-height: 1.8;
}
.mobile-nav {
  display: none;
}
.onboard-photo {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-radius: 18px;
}
.search-box {
  max-width: 340px;
}
dialog {
  color: var(--ink);
  border: 1px solid #e4deee;
  border-radius: 20px;
  padding: 0;
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 88dvh;
  overflow: auto;
  box-shadow: 0 30px 100px #25203944;
  background: #fff;
}
dialog::backdrop {
  background: #211a3e75;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.modal-head h2 {
  font-size: 22px;
  margin: 0;
}
.modal-body {
  padding: 0 24px 24px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-top: 22px;
}
.modal-actions .btn {
  min-width: 90px;
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 20px;
  border-radius: 13px;
  background: #29263f;
  color: #fff;
  z-index: 100;
  box-shadow: 0 10px 40px #29263f44;
  display: none;
}
#toast.visible {
  display: block;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 12px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 3px solid #956edf;
  outline-offset: 3px;
}
pre,
code {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
button[aria-pressed="true"] {
  background: #237a61;
  color: #fff;
}
.support-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.support-item p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-table td {
  max-width: 220px;
}
.print-view {
  background: #fff;
}
.print-sheet {
  max-width: 900px;
  margin: 30px auto;
  padding: 30px;
}
.print-day {
  break-inside: avoid-page;
  margin-top: 24px;
  border-top: 1px solid #ddd;
  padding-top: 12px;
}
.print-activity {
  margin: 12px 0;
}
.print-controls {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  background: #f2eef8;
}
.print-view table {
  width: 100%;
  border-collapse: collapse;
}
.print-view td,
.print-view th {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}
.print-view p {
  white-space: pre-wrap;
}
.print-view a {
  color: inherit;
  overflow-wrap: anywhere;
}
.preview-image {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  margin: 20px auto;
}
.tc-mobile-menu[hidden] {
  display: none !important;
}
@media (max-width: 1023px) {
  .rail {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 12px 18px;
  }
  .content-wrap {
    padding: 20px;
  }
  .summary h1 {
    font-size: 32px;
  }
}
@media (max-width: 767px) {
  body[data-page="app"] {
    padding-bottom: 100px;
  }
  .topbar {
    gap: 10px;
    min-height: 64px;
  }
  .topbar h1,
  .topbar .workspace-title {
    display: none;
  }
  .topbar .brand {
    font-size: 20px;
  }
  .topbar nav {
    gap: 6px;
  }
  .topbar .btn {
    padding: 10px;
    font-size: 11px;
  }
  .content-wrap {
    padding: 18px 16px;
  }
  .summary {
    padding: 24px 20px;
  }
  .summary h1 {
    font-size: 29px;
  }
  .panel {
    padding: 20px;
  }
  .stat {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head p {
    font-size: 12px;
  }
  .activity {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 17px;
  }
  .activity-actions {
    flex-wrap: wrap;
  }
  .document-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .document-card > .file-info {
    min-width: 150px;
  }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr 1fr 1fr;
    z-index: 40;
    margin: 0 !important;
    gap: 0;
    padding: 6px 7px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #ffffffed;
    backdrop-filter: blur(16px);
    overflow: visible;
    box-shadow: 0 -5px 28px -18px #29263f66;
  }
  .tabs .btn {
    border: 0;
    background: transparent;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    gap: 5px;
    padding: 7px 2px;
    border-radius: 10px;
  }
  .tabs .active {
    background: #f3edf9;
    color: #6339ac;
  }
  .tabs .fab {
    display: flex;
    align-self: center;
    justify-self: center;
    width: 52px;
    height: 52px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: linear-gradient(150deg, #237a61, #7048c6);
    color: #fff;
    transform: translateY(-13px);
    box-shadow: 0 6px 20px #7048c644;
  }
  .tabs .fab svg {
    width: 24px;
    height: 24px;
  }
  .tabs .nav-itinerary {
    order: 1;
  }
  .tabs .nav-documents {
    order: 2;
  }
  .tabs .fab {
    order: 3;
  }
  .tabs .nav-budget {
    order: 4;
  }
  .tabs .nav-settings {
    order: 5;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 0 20px 22px;
  }
  .modal-head {
    padding: 17px 20px;
  }
  #toast {
    bottom: 95px;
    right: 16px;
  }
  .print-sheet {
    padding: 16px;
    margin: 0;
  }
  .print-sheet h1 {
    font-size: 28px;
  }
  .data-table {
    min-width: 530px;
  }
  .onboard-photo {
    height: 160px;
  }
  h1 {
    font-size: 31px;
  }
}
@media print {
  body {
    background: #fff;
    font-size: 11pt;
    color: #111;
  }
  .no-print,
  dialog,
  #toast,
  .print-controls {
    display: none !important;
  }
  .print-sheet {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .print-day {
    break-inside: auto;
  }
  .print-activity {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
  }
  h1,
  h2,
  h3 {
    break-after: avoid;
  }
  p {
    color: #333;
  }
  tr {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 16mm;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

.tc-hero h1 > svg {
  display: inline-block;
}
.summary p > svg {
  display: inline-block;
  vertical-align: middle;
}
.tc-reference-design .brand > span:last-child {
  color: #29263f;
}
.tc-reference-design .tc-brand-accent {
  color: #237a61;
}
@media (max-width: 767px) {
  .topbar nav > a:first-child {
    display: none;
  }
  .topbar {
    padding: 12px 16px;
  }
  .topbar .brand {
    font-size: 18px;
    gap: 5px;
  }
  .topbar .brand img {
    width: 32px;
    height: 32px;
  }
  .topbar nav .btn {
    font-size: 10px;
    padding: 10px 8px;
  }
  .topbar nav > a {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.tc-reference-design .tc-footer .brand > span:last-child {
  color: #fff;
}
.tc-reference-design .tc-footer .tc-brand-accent {
  color: #a8dec8;
}
.activity p > svg,
.footer-note > svg,
.rail-foot a > svg {
  display: inline-block;
  vertical-align: middle;
}

.brand .brand-word {
  color: #29263f;
}
.brand .brand-accent {
  color: #237a61;
}
@media (min-width: 1024px) {
  .workspace .topbar > .brand {
    display: none;
  }
}
.footer-note a,
.legal p a,
p > a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 3px;
}
a > svg {
  display: inline-block;
  vertical-align: middle;
}
.support-item > .btn {
  margin-top: 12px;
}
@media (max-width: 767px) {
  .admin-table {
    min-width: 900px;
  }
}
dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}
/* Operations workspace: bounded records, readable metrics and explicit states. */
.operator-hub {
  margin-top: 24px;
}
.op-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 16px;
}
.op-tabs .btn {
  flex-shrink: 0;
}
.op-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.op-metrics > div {
  padding: 16px;
  border: 1px solid #e5e1ef;
  border-radius: 12px;
  background: #faf9fe;
}
.op-metrics strong {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}
.op-metrics span {
  font-size: 13px;
  color: #626178;
}
.op-search {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 8px 0 20px;
}
.op-search label {
  flex: 1;
}
.op-search input {
  margin-bottom: 0;
}
.op-record {
  padding: 20px 0;
  border-bottom: 1px solid #e5e1ef;
  overflow-wrap: anywhere;
}
.op-record p {
  margin: 6px 0;
}
.record-ref {
  font-size: 12px;
  color: #626178;
}
.op-pager {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.safe-pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  max-height: 300px;
  overflow: auto;
}
.wide-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
}
details {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #e5e1ef;
  border-radius: 12px;
}
summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 28px;
}
details textarea {
  min-height: 300px;
  font-family: monospace;
  font-size: 13px;
}
.op-activity-list {
  max-height: 360px;
  overflow: auto;
  margin: 16px 0;
  border: 1px solid #e5e1ef;
  border-radius: 12px;
  padding: 16px;
}
.op-activity-list article + article {
  border-top: 1px solid #eee;
  padding-top: 12px;
}
.op-activity-list p {
  margin: 5px 0 10px;
}
@media (max-width: 640px) {
  .op-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .op-metrics > div:last-child {
    grid-column: 1/-1;
  }
  .op-search {
    flex-wrap: wrap;
  }
  .op-search label {
    min-width: 100%;
  }
  .operator-hub .section-head {
    align-items: start;
  }
}
@media (max-width: 640px) {
  .operator-hub .section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .operator-hub .section-head > div {
    width: 100%;
  }
  .operator-hub .section-head h2 {
    max-width: none;
  }
}

.policy-copy {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.op-metrics span,.record-ref,.safe-pre,details textarea{font-size:14px}
