:root {
  --ink: #182d35;
  --muted: #566870;
  --teal: #176a70;
  --line: #d7e0e1;
  --wash: #f4f7f7;
  --error: #923b24;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--teal); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { min-height: 40px; padding: 8px 13px; border: 1px solid #b9cacc; border-radius: 3px; background: #fff; color: var(--ink); cursor: pointer; }
button:hover:not(:disabled) { background: #eaf1f1; border-color: var(--teal); }
button:disabled { cursor: not-allowed; opacity: .55; }
button.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
button.primary:hover:not(:disabled) { background: #10575c; }
button.quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #2e858c; outline-offset: 3px; }
input, select, textarea { width: 100%; min-height: 42px; border: 1px solid #a5b7bb; border-radius: 3px; background: #fff; color: var(--ink); padding: 8px 10px; }
input[type="checkbox"] { width: 19px; min-height: 19px; height: 19px; flex: 0 0 19px; accent-color: var(--teal); }
input[type="password"] { letter-spacing: 1px; }
textarea { resize: vertical; min-height: 85px; }
label { display: block; font-weight: 600; margin-bottom: 5px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 27px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 8px; font-weight: 650; }
h2 { font-size: 21px; margin-bottom: 10px; }
h3, legend { font-size: 16px; font-weight: 650; }
.small, small { font-size: 14px; color: var(--muted); }
.skip-link { position: absolute; top: -100px; left: 18px; z-index: 10; background: #fff; padding: 10px; }
.skip-link:focus { top: 10px; }
.site-header { min-height: 100px; padding: 20px 32px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; max-width: 245px; }
.brand-symbol { display: block; width: 43px; height: auto; flex: 0 0 43px; }
.brand-identity { width: 165px; }
.brand-wordmark { display: block; width: 100%; height: auto; }
.brand-identity span { display: block; margin-top: 7px; font-size: 11px; letter-spacing: 1.6px; }
.mode-label { font-size: 13px; font-weight: 650; letter-spacing: .6px; border-left: 3px solid var(--teal); padding-left: 10px; }
.test-notice { border-bottom: 1px solid var(--line); padding: 12px 32px; background: var(--wash); font-size: 14px; }
.test-notice strong { margin-right: 7px; }
.login-section { max-width: 550px; margin: 65px auto 95px; padding: 0 25px; }
.login-section form { margin: 24px 0 18px; }
.login-section form button { margin-top: 6px; }
.portal-shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 65vh; }
.sidebar { padding: 30px 20px; border-right: 1px solid var(--line); }
.principal-label { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; margin-bottom: 30px; }
.sidebar nav button { text-align: left; border-color: transparent; border-radius: 0; padding: 10px 13px; border-left: 3px solid transparent; }
.sidebar nav button[aria-current="page"] { color: var(--teal); background: var(--wash); font-weight: 650; border-left-color: var(--teal); }
.managing-operator-controls { margin-bottom: 16px; }
.managing-operator-controls label { font-size: 14px; }
.panel-toggle { display: block; margin-bottom: 12px; }
.principal-label:empty, .period-warning:empty, .small:empty { display: none; }
.reviewer-controls { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 25px; }
.reviewer-controls label { font-size: 14px; }
.reviewer-controls select { margin-bottom: 12px; }
.reviewer-controls button { text-align: left; width: 100%; font-size: 14px; }
.reviewer-controls p { margin: 10px 0; }
.workspace { min-width: 0; padding: 32px; max-width: 1450px; width: 100%; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.message { margin: 12px 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error, .warning { color: var(--error); }
.message.error { border-left: 3px solid var(--error); background: #fff7f3; padding: 10px 12px; }
.view-help { color: var(--muted); max-width: 950px; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
caption { text-align: left; font-weight: 650; padding: 12px 0; }
th { font-size: 14px; font-weight: 650; color: var(--muted); background: var(--wash); }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { overflow-wrap: anywhere; }
td strong { display: block; font-size: 15px; }
td small { display: block; margin-top: 3px; }
td .actions { flex-wrap: nowrap; }
td button { font-size: 14px; min-height: 36px; padding: 6px 10px; }
.empty-state { padding: 30px 0; color: var(--muted); }
.status-tag { display: inline-block; font-size: 14px; padding: 2px 7px; border: 1px solid var(--line); white-space: nowrap; }
.status-tag.warning { border-color: #d5b19e; background: #fff7f3; }
.holiday-detail { margin-top: 28px; border-top: 2px solid var(--teal); padding-top: 22px; }
.detail-heading { display: flex; justify-content: space-between; gap: 16px; }
.detail-list { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 7px 18px; margin: 20px 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.validation { border-left: 3px solid var(--error); background: #fff7f3; padding: 14px 18px; margin: 18px 0; }
.validation h3 { color: var(--error); margin-bottom: 7px; }
.validation ul { margin: 0; padding-left: 20px; }
.review-actions { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.review-actions textarea { max-width: 700px; margin-bottom: 12px; }
.review-actions .small { margin-bottom: 12px; }
dialog { width: min(850px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 25px 28px; color: var(--ink); background: #fff; border: 1px solid #a5b7bb; border-radius: 4px; }
dialog::backdrop { background: rgba(18, 36, 43, .46); }
#private-access-dialog { width: min(570px, calc(100vw - 32px)); }
.dialog-heading { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.dialog-heading h2 { padding-top: 5px; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field .small { margin: 5px 0 0; }
.price-details > summary { cursor: pointer; margin: 18px 0 12px; font-weight: 600; }
.price-details .form-grid { margin-top: 16px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; margin: 15px 0; }
.checkbox-field input { margin-top: 3px; }
.inclusive-price-settings { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--wash); }
.inclusive-price-settings input[readonly] { background: #edf1f1; color: var(--muted); }
.inclusive-price-settings .commercial-preview { margin: 12px 0; }
.included-cost-details > summary { cursor: pointer; font-weight: 600; margin: 12px 0; }
.inclusive-service-row { margin: 12px 0; padding-top: 10px; }
.inclusive-source-data { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; font-size: 13px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin: 24px 0 0; }
legend { padding: 0 10px 0 0; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 12px; }
.fee-row label { font-size: 14px; }
.fee-row button { margin-bottom: 1px; }
.fee-section .small { margin-bottom: 12px; }
#private-access-dialog .actions { margin-top: 12px; }
.model-review-controls { border-top: 1px solid var(--line); padding: 18px 0; margin-bottom: 8px; }
.model-review-controls h2 { font-size: 18px; }
.model-review-controls .actions { align-items: flex-start; }
.language-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.language-tabs button[aria-pressed="true"] { border-color: var(--teal); color: var(--teal); background: var(--wash); font-weight: 650; }
.language-panel { display: grid; gap: 16px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 32px; color: var(--muted); font-size: 14px; }
@media (min-width: 1500px) { .workspace { padding-right: 55px; } }
@media (max-width: 1000px) {
  .portal-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .workspace { padding: 25px 20px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  td .actions { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .site-header { padding: 18px 20px; min-height: 90px; }
  .brand-symbol { width: 36px; flex-basis: 36px; }
  .brand-identity { width: 135px; }
  .mode-label { font-size: 11px; max-width: 95px; }
  .test-notice { padding: 12px 20px; }
  .portal-shell { display: block; }
  .sidebar { padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principal-label { margin-bottom: 9px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; }
  .sidebar nav button { border-left: 0; border-bottom: 3px solid transparent; padding: 8px 10px; }
  .sidebar nav button[aria-current="page"] { border-bottom-color: var(--teal); }
  .reviewer-controls { max-width: 500px; margin-bottom: 8px; padding-top: 12px; }
  .reviewer-controls p { margin-bottom: 4px; }
  .login-section { margin-top: 40px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  dialog { padding: 20px 18px; }
  .fee-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fee-row button { grid-column: 1 / -1; justify-self: start; }
  .detail-list { grid-template-columns: 1fr; gap: 4px; }
  .detail-list dd { margin-bottom: 10px; }
  .site-footer { padding: 18px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Owned photos use contain: thumbnails never crop the yacht or invent imagery. */
#yacht-photos-dialog { width: min(760px, calc(100vw - 32px)); overflow-y: auto; }
.yacht-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; margin: 16px 0; }
.yacht-photo-card { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.yacht-photo-card img { width: 100%; height: 150px; object-fit: contain; background: var(--wash); order: -1; }
.yacht-photo-card figcaption { overflow-wrap: anywhere; }
.yacht-photo-card .actions { margin-top: auto; }
#photos-files { margin-bottom: 8px; }
@media (max-width: 480px) { .yacht-photo-gallery { grid-template-columns: 1fr; } }

/* Account and company details follow the existing compact workspace style. */
.account-options { margin: 22px 0; }
.account-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border: 1px solid #b9cacc; border-radius: 3px; text-decoration: none; }
.account-link.primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.account-link:hover { background: var(--wash); }
.account-link.primary:hover { background: #10575c; }
.account-tools { margin-top: 18px; }
.private-login { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.private-login summary { cursor: pointer; color: var(--muted); }
.company-summary { max-width: 720px; padding: 20px 0; }
.company-summary .detail-list { margin-top: 0; }
.principal-label { white-space: pre-line; overflow-wrap: anywhere; }
