:root {
  --navy: #062b36;
  --navy-2: #0d4a5c;
  --teal: #0aa8a0;
  --teal-light: #7ce0d4;
  --orange: #ff9d42;
  --ink: #132f36;
  --muted: #6c7d80;
  --line: #dce5eb;
  --line-dark: #dbe3e8;
  --page: #eef3f7;
  --soft: #f9fbfc;
  --white: #fff;
  --warning: #fff4df;
  --success: #18764e;
  --font-display: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--page); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(255, 157, 66, .4);
  outline-offset: 2px;
}

.site-header {
  height: 74px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  color: #fff;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 20px; letter-spacing: 2px; }
.brand small { display: block; margin-top: 2px; color: var(--teal-light); font-size: 9px; letter-spacing: 1.4px; }
.site-header nav { display: flex; justify-content: center; gap: 24px; }
.site-header nav a { color: #c7d7db; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav a.active { color: #fff; border-bottom: 2px solid var(--orange); padding-bottom: 8px; }
.language-button { border: 0; color: #fff; background: transparent; cursor: pointer; font-weight: 700; }

.prototype-shell { width: 100%; max-width: none; margin: 0; padding: 22px 4vw 44px; display: grid; gap: 24px; }
.prototype-shell > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow { display: block; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 34px; }
h2 { margin: 7px 0 0; font-family: var(--font-display); font-size: 24px; }
h3 { margin-bottom: 8px; font-size: 18px; }

.role-switcher { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); background: #dde5e8; }
.role-switcher[hidden] { display: none !important; }
.role-switcher span { padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.role-switcher button { min-height: 34px; border: 0; border-left: 1px solid var(--line); padding: 0 12px; color: #52666d; background: #eef2f3; cursor: pointer; font-size: 12px; }
.role-switcher button.active { color: #fff; background: var(--teal); }

.archive-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0; }
.archive-tab { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #cddae3; color: #17323a; background: var(--white); font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; }
.archive-tab:hover:not(:disabled) { color: var(--white); border-color: var(--teal); background: var(--teal); }
.archive-tab.active { color: var(--white); background: var(--teal); border-color: var(--teal); }
.archive-tab:disabled { cursor: default; opacity: .68; }

.archive-surface { background: var(--white); border: 1px solid var(--line); }
.archive-surface[hidden] { display: none !important; }
#archive-list-view { display: grid; gap: 24px; padding: 0; border: 0; background: transparent; }
.search-panel { padding: 18px 22px; background: var(--white); border: 1px solid #dce5eb; box-shadow: 0 18px 50px rgba(19, 47, 54, .06); }
.directory-results { min-width: 0; background: var(--white); border: 1px solid #dce5eb; box-shadow: 0 18px 50px rgba(19, 47, 54, .06); }
.search-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 10px; align-items: end; }
.search-field { position: relative; }
.search-field label, .filter-bar label, .result-controls label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.search-field input, .filter-bar select, .result-controls select, .detail-notes textarea {
  width: 100%; min-height: 40px; border: 1px solid #dbe3e8; border-radius: 0; padding: 8px 10px; color: var(--ink); background: #f9fbfc;
}
.suggestions { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; background: #fff; border: 1px solid var(--line-dark); box-shadow: 0 10px 24px rgba(7, 50, 65, .16); }
.suggestion { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-bottom: 1px solid #e5ebed; background: #fff; text-align: left; cursor: pointer; }
.suggestion:hover { background: #eef7f7; }
.suggestion small { color: var(--muted); }
.filter-bar { display: flex; gap: 8px; }
.filter-bar label { min-width: 150px; }
.command { min-height: 40px; border: 1px solid var(--teal); padding: 0 18px; color: #fff; background: var(--teal); font-weight: 700; cursor: pointer; }
.command.secondary { color: #5a6b77; background: #eef3f7; border-color: #dbe3e8; }
.command.saved { background: var(--success); border-color: var(--success); }
.command.danger { color: #fff; background: #a62d2d; border-color: #a62d2d; }
.editor-actions [role="status"].error { color: #a62d2d; }

.business-tabs { display: flex; gap: 0; margin-top: 14px; }
.business-tab { min-height: 34px; padding: 0 18px; border: 1px solid var(--line); border-right: 0; color: #536970; background: #eef2f3; cursor: pointer; font-size: 12px; font-weight: 700; }
.business-tab:last-child { border-right: 1px solid var(--line); }
.business-tab.active { color: #fff; background: var(--navy-2); }

.results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 24px 24px 18px; }
.result-controls { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.result-controls label { margin: 0; }
.result-controls select { width: 76px; min-height: 34px; padding: 4px 8px; }
.result-controls .command { min-height: 34px; padding: 0 12px; }
.directory-editor { margin: 0 24px 16px; border: 1px solid var(--teal); background: #f7fbfb; }
.editor-heading { min-height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px; color: #fff; background: var(--navy-2); }
.editor-heading h3 { margin: 0; font-size: 16px; }
.icon-button { width: 32px; height: 32px; border: 0; color: #fff; background: transparent; cursor: pointer; font-size: 24px; }
.directory-editor form { padding: 12px; }
.editor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.editor-grid label { min-width: 0; color: var(--muted); font-size: 11px; font-weight: 700; }
.editor-grid label.wide { grid-column: span 2; }
.editor-grid label.full { grid-column: 1 / -1; }
.editor-grid input, .editor-grid select, .editor-grid textarea { width: 100%; min-height: 36px; margin-top: 4px; border: 1px solid var(--line-dark); border-radius: 0; padding: 7px 8px; color: var(--ink); background: #fff; }
.editor-grid textarea { min-height: 62px; resize: vertical; }
.editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.editor-actions [role="status"] { margin-right: auto; color: var(--success); font-size: 12px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 920px; border-collapse: collapse; table-layout: fixed; font-family: Arial, "Microsoft YaHei", sans-serif; font-size: 12px; }
.data-table th { padding: 9px 10px; color: #20252b; background: #d1d1d1; border: 1px solid #aaa; text-align: left; white-space: nowrap; }
.data-table th button { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; font-weight: 700; cursor: pointer; }
.data-table td { height: 54px; padding: 8px 10px; color: #30363c; border: 1px solid #b8b8b8; background: #fff; vertical-align: middle; }
.data-table tbody tr:nth-child(even) td { background: #eef2f6; }
.data-table tbody tr:hover td { background: #f8fbfc; }
.primary-link { padding: 0; border: 0; color: #1476c9; background: transparent; cursor: pointer; font-weight: 800; text-align: left; }
.subline { display: block; margin-top: 3px; color: #8a98a2; font-size: 11px; }
.tag { display: inline-block; margin: 2px 4px 2px 0; padding: 3px 7px; color: #075357; background: #d9eeee; border: 1px solid #a7d5d4; font-size: 11px; white-space: nowrap; }
.tag.orange { color: #76410d; background: #fae8d4; border-color: #edc292; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; margin-bottom: 8px; }

.detail-view { padding: 0; }
.detail-header { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px; border-bottom: 1px solid var(--line); }
.detail-header-actions { display: flex; gap: 8px; align-items: start; }
.back-button { padding: 0; border: 0; color: #0874a2; background: transparent; cursor: pointer; font-weight: 700; }
.status { display: inline-block; margin-bottom: 8px; padding: 4px 8px; color: #fff; background: var(--success); font-size: 11px; font-weight: 700; }
.detail-band { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.detail-band:nth-child(odd) { background: #f7f9fa; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-field { min-height: 64px; padding: 9px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; }
.detail-field strong, .detail-field a { color: var(--ink); font-size: 13px; word-break: break-word; }
.detail-field a, .relation-list a { color: #0874a2; }
.sensitive-field { color: #7b5319; background: var(--warning); }
.locked { display: inline-flex; gap: 6px; align-items: center; color: #8a5a14; font-size: 12px; font-weight: 700; }
.relation-list { display: flex; flex-wrap: wrap; gap: 8px; }
.relation-list a { padding: 7px 9px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 12px; }
.detail-notes { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.detail-notes textarea { min-height: 42px; resize: vertical; }
.detail-note-actions { display: flex; gap: 8px; }
.audit-row { display: flex; justify-content: space-between; gap: 20px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.audit-row span { color: var(--muted); }
.directory-detail-layout { display: grid; grid-template-columns: minmax(170px, 220px) minmax(0, 1fr); align-items: start; min-height: 520px; }
.directory-detail-nav { position: sticky; top: 12px; display: grid; align-content: start; border-right: 1px solid var(--line); background: #e9eef2; }
.directory-detail-nav-actions { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid #d5dfe5; }
.directory-detail-nav-actions button { min-height: 30px; flex: 1; border: 1px solid #bfd0dc; color: #41565d; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
.directory-detail-nav-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); border-bottom: 1px solid #d5dfe5; }
.directory-section-check { width: 20px; height: 20px; align-self: center; justify-self: center; border: 1px solid #90a7b6; border-radius: 2px; background: #fff; cursor: pointer; }
.directory-section-check.checked { border-color: #1476c9; background: #1476c9; box-shadow: inset 0 0 0 4px #fff; }
.directory-detail-nav-item { min-height: 46px; padding: 0 12px 0 0; border: 0; color: #41565d; background: #e9eef2; text-align: left; cursor: pointer; font-size: 13px; font-weight: 700; }
.directory-detail-nav-item:hover { color: var(--navy); background: #f6f8fa; }
.directory-detail-nav-item.active { color: #0874a2; }
.directory-detail-content { min-width: 0; background: #fff; }
.directory-section-content { min-width: 0; scroll-margin-top: 18px; }
.directory-section-content .detail-band { min-height: 0; }
.directory-detail-empty { padding: 50px 20px; color: var(--muted); text-align: center; }
.directory-detail-mobile-sections { display: none; }
.directory-detail-mobile-nav { background: #e9eef2; }
.charterer-overview-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.charterer-overview-grid .wide { grid-column: span 2; }
.charterer-overview-grid .detail-field { min-width: 0; min-height: 44px; padding: 6px 8px; }
.charterer-overview-grid .detail-field span { margin-bottom: 3px; }
.charterer-overview-grid .detail-field strong { display: block; min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.charterer-overview-grid .sensitive-field, .charterer-contact-grid .sensitive-field { color: inherit; background: transparent; }
.charterer-contact-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.charterer-business-line { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(0, 4fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.charterer-business-overview { min-width: 0; margin: 0; padding: 8px 10px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-overflow: ellipsis; white-space: nowrap; }
.charterer-business-fields { min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.charterer-business-fields .detail-field { min-width: 0; min-height: 44px; padding: 6px 8px; }
.charterer-business-fields .detail-field span { margin-bottom: 3px; }
.charterer-business-fields .detail-field strong { font-size: 12px; }
.brokerage-overview-grid { grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(0, 1fr)); }
.brokerage-contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.brokerage-specialties-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brokerage-overview-grid .sensitive-field, .brokerage-contact-grid .sensitive-field { color: inherit; background: transparent; }
.brokerage-table-scroll { min-width: 0; max-width: 100%; overflow-x: auto; }
.brokerage-broker-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 12px; letter-spacing: 0; }
.brokerage-broker-table th { padding: 0; color: #20252b; background: #d1d1d1; }
.brokerage-broker-table th button { min-height: 34px; padding: 6px 7px; color: #20252b; background: #d1d1d1; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
.brokerage-broker-table td { height: 38px; padding: 5px 7px; overflow-wrap: anywhere; line-height: 1.3; }
.brokerage-broker-table td:nth-child(7), .brokerage-broker-table td:nth-child(8) { overflow-wrap: anywhere; word-break: break-word; }
.brokerage-broker-table tbody tr:nth-child(even) td { background: #eef2f6; }
.broker-col-name { width: 17%; }
.broker-col-9-digit-id { width: 7%; }
.broker-col-title { width: 8%; }
.broker-col-business-division { width: 11%; }
.broker-col-desk-vessel-specialty { width: 13%; }
.broker-col-responsible-area { width: 10%; }
.broker-col-email { width: 14%; }
.broker-col-phone { width: 9%; }
.broker-col-employment-status { width: 5%; }
.broker-col-verified-date { width: 6%; }
.fleet-summary { margin-bottom: 10px; }
.charterer-table-scroll { overflow-x: visible; }
.charterer-owned-table { min-width: 0; }
.charterer-charter-table { min-width: 0; }
.charterer-owned-table td, .charterer-charter-table td { height: 38px; padding: 5px 7px; overflow-wrap: anywhere; line-height: 1.3; }
.external-vessel-field { color: #0877c9; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.external-vessel-field:hover, .external-vessel-field:focus-visible { color: #064f8a; }
.charterer-owned-table th, .charterer-charter-table th { padding: 6px 7px; }
.charterer-charter-table th { white-space: normal; overflow-wrap: anywhere; }
.owned-col-vessel { width: 24%; }
.owned-col-imo { width: 9%; }
.owned-col-type { width: 24%; }
.owned-col-dwt { width: 9%; }
.owned-col-teu { width: 7%; }
.owned-col-built { width: 10%; }
.owned-col-status { width: 17%; }
.charter-col-vesselName { width: 15%; }
.charter-col-imo { width: 7%; }
.charter-col-vesselType { width: 13%; }
.charter-col-dwt { width: 7%; }
.charter-col-teu { width: 6%; }
.charter-col-built { width: 7%; }
.charter-col-charterType { width: 9%; }
.charter-col-owner { width: 13%; }
.charter-col-startDate, .charter-col-endDate, .charter-col-reminderDate { width: 9%; }
.charter-col-duration, .charter-col-rate, .charter-col-operationArea, .charter-col-broker { width: 10%; }
.charter-col-managers { width: 15%; }
.charterer-history-table { min-width: 1200px; }
.charter-manager { display: block; padding: 3px 0; border-bottom: 1px solid #dfe6ea; line-height: 1.4; }
.charter-manager:last-child { border-bottom: 0; }
.charter-manager strong, .charter-manager small { display: block; overflow-wrap: anywhere; }
.charter-manager small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.relation-list span { padding: 7px 9px; border: 1px solid var(--line); color: #0874a2; background: #fff; font-size: 12px; }
.directory-footer { min-height: 72px; display: flex; justify-content: center; align-items: center; gap: 28px; padding: 18px; color: #c8d6da; background: var(--navy); font-size: 12px; }
.directory-footer a { color: #fff; text-decoration: none; }

@media (max-width: 1200px) {
  .charterer-overview-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .charterer-business-line { grid-template-columns: 1fr; }
  .charterer-business-overview { border-right: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; gap: 16px; }
  .site-header nav { display: none; }
  .language-button { justify-self: end; }
  .prototype-shell { padding-right: 3vw; padding-left: 3vw; }
  .search-row { grid-template-columns: 1fr; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charterer-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charterer-business-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charterer-table-scroll { overflow-x: auto; }
  .charterer-owned-table { min-width: 760px; }
  .charterer-charter-table { min-width: 960px; }
  .brokerage-broker-table { min-width: 980px; }
}

@media (max-width: 640px) {
  .site-header { height: 60px; padding: 0 16px; }
  .brand strong { font-size: 17px; }
  .prototype-shell { padding: 14px 0 32px; gap: 14px; }
  h1 { font-size: 28px; }
  .role-switcher { width: 100%; overflow-x: auto; }
  .role-switcher span { display: none; }
  .role-switcher button { flex: 1 0 auto; }
  .archive-tabs { flex-wrap: nowrap; padding: 6px 14px 0; overflow-x: auto; }
  .archive-tab { min-width: max-content; padding: 0 13px; }
  .archive-surface { border-left: 0; border-right: 0; }
  .search-panel, .directory-results { border-left: 0; border-right: 0; box-shadow: none; }
  .search-panel { padding: 14px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .business-tabs { overflow-x: auto; }
  .business-tab { flex: 1 0 auto; }
  .results-toolbar { align-items: start; flex-direction: column; padding: 18px 14px 12px; }
  .directory-editor { margin-right: 14px; margin-left: 14px; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-header-actions { flex-wrap: wrap; }
  .directory-detail-layout { display: block; min-height: 0; }
  .directory-detail-nav { display: none; }
  .directory-detail-mobile-sections { display: block; border-bottom: 1px solid var(--line); background: #e9eef2; }
  .directory-detail-mobile-sections summary { padding: 12px 14px; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 700; }
  .directory-detail-mobile-nav { display: grid; border-top: 1px solid var(--line); }
  .directory-detail-mobile-nav .directory-detail-nav-actions { padding: 10px 14px; }
  .directory-detail-mobile-nav .directory-detail-nav-row { grid-template-columns: 42px minmax(0, 1fr); }
  .directory-detail-mobile-nav .directory-detail-nav-item { padding-right: 14px; }
  .detail-grid { grid-template-columns: 1fr; }
  .charterer-overview-grid, .charterer-business-fields { grid-template-columns: 1fr; }
  .charterer-overview-grid .wide { grid-column: auto; }
  .detail-band { padding: 16px 14px; }
  .detail-notes { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid label.wide, .editor-grid label.full { grid-column: auto; }
  .detail-note-actions .command { flex: 1; }
  .audit-row { flex-direction: column; gap: 4px; }
  .directory-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* Charterer contacts and company documents */
#directory-custom-data-root { color: #183546; }
#directory-custom-data-root button { font: inherit; font-size: 13px; cursor: pointer; color: #33586c; border: 1px solid #d4e0e6; border-radius: 7px; padding: 9px 13px; background: white; }
#directory-custom-data-root button:disabled { opacity: .5; cursor: wait; }
#directory-custom-data-root .charterer-primary { background: #124b59; color: white; border-color: #124b59; }
#directory-custom-data-root :focus-visible { outline: 2px solid #1c8395; outline-offset: 3px; }
.charterer-contact-section, .charterer-document-section { padding: 20px 0 8px; }
.charterer-section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.charterer-eyebrow { color: #638392; font-size: 10px; letter-spacing: .13em; font-weight: 700; }
.charterer-section-head h4 { font-size: 20px; margin: 6px 0; line-height: 1.3; }
.charterer-section-head p, .charterer-muted { font-size: 12px; color: #69808d; margin: 5px 0; }
.charterer-section-head button { flex-shrink: 0; }
.charterer-count { display: inline-block; vertical-align: middle; padding: 3px 8px; border-radius: 12px; font-size: 12px; background: #e5eff0; color: #326a73; }
.charterer-person-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.charterer-person-card { border: 1px solid #dbe6eb; border-radius: 12px; background: white; padding: 20px; min-width: 0; }
.charterer-person-top { display: flex; align-items: center; gap: 12px; }
.charterer-person-top h5 { margin: 0; font-size: 17px; }
.charterer-person-top p { margin: 4px 0 0; color: #617985; font-size: 12px; }
.charterer-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; color: #246574; background: #e7f0f2; font-size: 18px; font-weight: 600; }
#directory-custom-data-root .charterer-edit { margin-left: auto; padding: 5px 10px; }
.charterer-person-scope { font-size: 12px; color: #557482; border-bottom: 1px solid #eaf0f3; padding-bottom: 12px; margin: 14px 0 0; overflow-wrap: anywhere; }
.charterer-accounts { margin: 12px 0 0; }
.charterer-account { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: start; gap: 10px; font-size: 12px; padding: 6px 0; }
.charterer-account dt { color: #718591; padding-top: 3px; overflow-wrap: anywhere; }
.charterer-account dd { margin: 0; display: flex; align-items: start; gap: 6px; min-width: 0; }
.charterer-account dd span, .charterer-account dd a { min-width: 0; flex: 1; overflow-wrap: anywhere; padding-top: 3px; color: #234d63; }
#directory-custom-data-root [data-copy-account] { font-size: 10px; padding: 3px 5px; border: 0; background: #f2f6f8; flex-shrink: 0; }
.charterer-contact-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 11px; color: #768b97; }
#directory-custom-data-root .charterer-contact-meta button { font-size: 11px; border: 0; background: transparent; }
.charterer-document-section { border-top: 1px solid #dbe5eb; margin-top: 12px; }
.charterer-document-list { display: grid; gap: 10px; }
.charterer-document { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #dbe5eb; border-radius: 10px; background: white; }
.charterer-pdf-icon { display: grid; place-items: center; width: 42px; height: 48px; flex-shrink: 0; color: #a24c3c; background: #faeee9; border: 1px solid #edd8ce; border-radius: 5px; font-size: 11px; font-weight: 700; }
.charterer-document-info { flex: 1; min-width: 0; }
.charterer-document-info h5 { margin: 0 0 5px; font-size: 14px; overflow-wrap: anywhere; }
.charterer-document-info p { margin: 0; font-size: 11px; color: #798c98; }
.charterer-document-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.charterer-document-actions a { font-size: 12px; color: #176575; }
#directory-custom-data-root .charterer-document-actions button { font-size: 11px; padding: 5px 8px; }
.charterer-upload-hint { margin-top: 12px; }
.charterer-empty { grid-column: 1 / -1; padding: 30px 16px; border: 1px dashed #ccdce3; border-radius: 10px; color: #758a96; font-size: 13px; text-align: center; background: #f9fbfc; }
.charterer-person-editor { padding: 22px; background: #eef5f7; border: 1px solid #bdd5de; border-radius: 12px; margin-bottom: 20px; }
.charterer-editor-title h4 { margin: 0 0 6px; font-size: 17px; }
.charterer-editor-title span { color: #667f8c; font-size: 12px; }
.charterer-person-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; margin: 18px 0; }
.charterer-span-all { grid-column: 1 / -1; }
.charterer-person-editor label { display: grid; gap: 6px; font-size: 12px; min-width: 0; color: #496a7b; }
.charterer-person-editor input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px; border: 1px solid #bfd0da; border-radius: 6px; background: white; color: #244353; font: inherit; }
.charterer-social-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: end; gap: 12px; margin-bottom: 12px; }
.charterer-editor-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
#directory-custom-data-root .charterer-danger { margin-left: auto; color: #a1463d; }
.charterer-history { margin-top: 18px; font-size: 12px; color: #627b89; border-top: 1px solid #dde7eb; padding-top: 14px; }
.charterer-history summary { cursor: pointer; }
.charterer-history details { margin: 12px 0; }
[data-custom-status], [data-pdf-status] { font-size: 13px; color: #1b6978; overflow-wrap: anywhere; }
@media(max-width: 760px) {
  .charterer-person-grid { grid-template-columns: minmax(0,1fr); }
  .charterer-section-head { align-items: start; gap: 10px; }
  .charterer-section-head h4 { font-size: 18px; }
  .charterer-document { flex-wrap: wrap; }
  .charterer-document-actions { width: 100%; padding-left: 56px; }
  .charterer-person-editor { padding: 16px; }
  .charterer-person-fields { grid-template-columns: minmax(0,1fr); }
  .charterer-social-row { grid-template-columns: minmax(0,1fr); }
  .charterer-editor-actions { flex-wrap: wrap; }
  #directory-custom-data-root .charterer-danger { margin-left: 0; }
}
.charterer-document-title-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 0 0 18px; padding: 16px; background: #eef5f7; border-radius: 8px; }
.charterer-document-title-form label { display: grid; gap: 6px; font-size: 12px; color: #496a7b; flex: 1 1 240px; }
.charterer-document-title-form input { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #bfd0da; border-radius: 6px; font: inherit; }
