/* Shared account trigger and section layout for all internal pages. */
html body .efuel-product-header :is(#accountBtn, .efuel-shared-account-link),
html body .header-actions > .efuel-shared-account-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  flex: 0 0 36px !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  cursor: pointer;
}
html body .efuel-product-header :is(#accountBtn, .efuel-shared-account-link) svg,
html body .header-actions > .efuel-shared-account-link svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
}
html body .top-actions > .efuel-shared-account-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  cursor: pointer;
}
html body .top-actions > .efuel-shared-account-link svg {
  width: 18px !important;
  height: 18px !important;
}
html body .efuel-product-header .efuel-product-menu :is(#accountBtn, .efuel-shared-account-link) {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 43px !important;
  min-height: 43px !important;
  padding: 0 12px !important;
  flex: 0 0 auto !important;
  gap: 9px !important;
  border-radius: 9px !important;
}
html body .efuel-product-header .efuel-product-menu :is(#accountBtn, .efuel-shared-account-link)::after {
  content: attr(data-menu-label) !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}
html body .efuel-product-header .efuel-product-menu :is(#accountBtn, .efuel-shared-account-link) svg {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open > :is(.shared-account-box, .shared-account-section-box, .account-box, .account-section-box, .box, .sheet) {
  background:
    radial-gradient(circle at 8% 0%, rgba(34, 211, 238, .12), transparent 34%),
    linear-gradient(160deg, #071a2a 0%, #06111e 58%, #040b14 100%) !important;
  color: #e5f0ff !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open > :is(.box, .sheet) {
  border: 1px solid rgba(84, 161, 206, .3) !important;
  color: #e5f0ff !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open :is(.shared-account-head, .auction-notif-head, .sheet-head) {
  border-bottom: 1px solid rgba(84, 161, 206, .24) !important;
  background: transparent !important;
  color: #e5f0ff !important;
}
html body dialog.account-dialog-host .shared-account-head {
  border-bottom: 1px solid rgba(84, 161, 206, .24);
}
html body dialog.account-dialog-host .shared-account-close {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}
html body dialog.account-dialog-host .shared-account-body,
html body dialog.account-dialog-host .shared-account-section-body {
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
  padding: clamp(12px, 2vw, 24px) !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open :is(.shared-account-body, .shared-account-section-body) {
  display: grid !important;
  align-content: start !important;
  gap: 12px !important;
}
html body dialog.account-dialog-host .shared-account-panel {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(84, 161, 206, .24);
  border-radius: 14px;
  background: rgba(4, 16, 28, .72);
  box-sizing: border-box;
}
html body dialog.account-dialog-host .shared-account-panel h4 {
  margin: 0;
  color: #e8f5ff;
  font-size: 16px;
}
html body dialog.account-dialog-host .shared-account-panel-head,
html body dialog.account-dialog-host .shared-account-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
html body dialog.account-dialog-host .shared-account-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}
html body dialog.account-dialog-host .shared-account-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #9bb8cb;
  font-size: 12px;
  font-weight: 700;
}
html body dialog.account-dialog-host .shared-account-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #365366;
  border-radius: 10px;
  background: #050d18;
  color: #e5f0ff;
  box-sizing: border-box;
}
html body dialog.account-dialog-host .shared-account-form input:focus {
  border-color: #67e8f9;
  outline: 2px solid rgba(103, 232, 249, .15);
}
html body dialog.account-dialog-host .shared-account-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
html body dialog.account-dialog-host .shared-account-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 9px;
}
html body dialog.account-dialog-host .shared-account-section-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 13px;
  border: 1px solid rgba(84, 161, 206, .3);
  border-radius: 11px;
  background: rgba(6, 25, 40, .8);
  color: #d9edf7;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
html body dialog.account-dialog-host .shared-account-section-button:hover,
html body dialog.account-dialog-host .shared-account-section-button:focus-visible {
  border-color: rgba(103, 232, 249, .72);
  background: rgba(13, 48, 67, .92);
  outline: none;
  transform: translateY(-1px);
}
html body dialog.account-dialog-host .shared-account-section-button span:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}
html body dialog.account-dialog-host .shared-account-section-button strong {
  font-size: 13px;
}
html body dialog.account-dialog-host .shared-account-section-button small,
html body dialog.account-dialog-host .shared-account-company-head small,
html body dialog.account-dialog-host .shared-account-user-row small {
  color: #89a8b9;
  font-size: 11px;
  overflow-wrap: anywhere;
}
html body dialog.account-dialog-host .shared-account-chevron {
  color: #67e8f9;
  font-size: 24px;
  line-height: 1;
}
html body dialog.account-dialog-host .shared-account-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 8px;
}
html body dialog.account-dialog-host .shared-account-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid rgba(84, 161, 206, .2);
  border-radius: 10px;
  background: rgba(8, 28, 43, .74);
  color: #d9edf7;
  font-size: 12px;
}
html body dialog.account-dialog-host .shared-account-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: #22c7ee;
}
html body dialog.account-dialog-host .shared-account-user-list {
  display: grid;
  gap: 7px;
}
html body dialog.account-dialog-host .shared-account-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(84, 161, 206, .18);
  border-radius: 10px;
  background: rgba(8, 28, 43, .62);
}
html body dialog.account-dialog-host .shared-account-user-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
html body dialog.account-dialog-host .shared-account-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(248, 113, 113, .12);
  color: #fda4af;
  font-size: 10px;
  white-space: nowrap;
}
html body dialog.account-dialog-host .shared-account-status.is-active {
  background: rgba(74, 222, 128, .12);
  color: #86efac;
}
html body dialog.account-dialog-host .shared-account-pending,
html body dialog.account-dialog-host .shared-account-section-intro,
html body dialog.account-dialog-host .shared-account-copy,
html body dialog.account-dialog-host .shared-account-empty {
  color: #9bb8cb;
  font-size: 13px;
  line-height: 1.55;
}
html body dialog.account-dialog-host .shared-account-error {
  color: #fda4af;
}
html body dialog.account-dialog-host .shared-account-inline-link {
  justify-self: start;
  text-decoration: none;
}
html body dialog.account-dialog-host .shared-account-api-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}
html body dialog.account-dialog-host .shared-account-api-create label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #9bb8cb;
  font-size: 12px;
  font-weight: 700;
}
html body dialog.account-dialog-host .shared-account-api-create input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #365366;
  border-radius: 10px;
  background: #050d18;
  color: #e5f0ff;
  box-sizing: border-box;
}
html body dialog.account-dialog-host .shared-account-api-create input:focus {
  border-color: #67e8f9;
  outline: 2px solid rgba(103, 232, 249, .15);
}
html body dialog.account-dialog-host .shared-account-api-key-list {
  display: grid;
  gap: 8px;
}
html body dialog.account-dialog-host .shared-account-api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(84, 161, 206, .18);
  border-radius: 10px;
  background: rgba(8, 28, 43, .62);
}
html body dialog.account-dialog-host .shared-account-api-key-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
html body dialog.account-dialog-host .shared-account-api-key-row small {
  color: #89a8b9;
  font-size: 11px;
  overflow-wrap: anywhere;
}
html body dialog.account-dialog-host .shared-account-token-once {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(74, 222, 128, .35);
  border-radius: 11px;
  background: rgba(20, 83, 45, .22);
  color: #d8ffe3;
}
html body dialog.account-dialog-host .shared-account-token-once code {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(134, 239, 172, .22);
  border-radius: 8px;
  background: rgba(2, 15, 8, .5);
  color: #bbf7d0;
  font: 600 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
html body dialog.account-dialog-host .shared-account-token-once small {
  color: #a7d9b3;
  font-size: 11px;
}
html body dialog.account-dialog-host .shared-account-frame {
  display: block;
  width: 100%;
  min-height: min(62vh, 620px);
  height: min(62vh, 620px);
  border: 0;
  border-radius: 10px;
  background: #06131d;
}
@media (max-width: 620px) {
  html body dialog.account-dialog-host .shared-account-body,
  html body dialog.account-dialog-host .shared-account-section-body {
    padding: 10px !important;
  }
  html body dialog.account-dialog-host .shared-account-panel {
    padding: 12px;
  }
  html body dialog.account-dialog-host .shared-account-user-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  html body dialog.account-dialog-host .shared-account-api-create {
    grid-template-columns: 1fr;
  }
  html body dialog.account-dialog-host .shared-account-api-create .btn {
    width: 100%;
  }
  html body dialog.account-dialog-host .shared-account-api-key-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
  html body dialog.account-dialog-host .shared-account-frame {
    min-height: 68vh;
    height: 68vh;
  }
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-section-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  align-content: stretch !important;
  min-height: 0 !important;
  overflow: auto !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-changelog-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none;
}

/* Every account modal uses the same centered adaptive window instead of a full-screen sheet. */
html body dialog.account-dialog-host:has(:is(#accountModal.modal.open, #accountSectionModal.modal.open)) {
  background: transparent !important;
}
html body dialog.account-dialog-host:has(:is(#accountModal.modal.open, #accountSectionModal.modal.open))::backdrop {
  background: rgba(2, 6, 23, .74) !important;
  backdrop-filter: blur(4px);
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  transform: translate(-50%, -50%) !important;
  width: min(1180px, calc(100% - 32px)) !important;
  height: min(860px, 88dvh, calc(100% - 32px)) !important;
  max-width: calc(100% - 32px) !important;
  max-height: calc(100% - 32px) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .5) !important;
  box-sizing: border-box !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open > :is(.shared-account-box, .shared-account-section-box, .account-box, .account-section-box, .box, .sheet) {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(84, 161, 206, .3) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-section-body:has(.shared-account-changelog-panel) {
  min-height: 0 !important;
  overflow: hidden !important;
  padding: clamp(10px, 1.5vw, 18px) !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-changelog-panel {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-frame {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 14px !important;
}

/* The vessels page still uses the legacy account section markup. Keep its
   release history on the same full-height layout as the shared account UI. */
html body dialog.account-dialog-host #accountSectionModal.modal.open > .sheet > .sheet-body,
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .sheet-body,
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .account-section-modal-body {
  display: flex !important;
  flex: 1 1 0 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: clamp(8px, 1.5vw, 18px) !important;
  box-sizing: border-box !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .account-changelog-panel {
  display: flex !important;
  flex: 1 1 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open .account-changelog-frame {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Keep the section title and close control above the full-height release view. */
html body dialog.account-dialog-host #accountSectionModal.modal.open > .sheet,
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open > .sheet > .sheet-head,
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .sheet-head,
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .auction-notif-head {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  flex: 0 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: calc(56px + max(8px, var(--efuel-safe-top, env(safe-area-inset-top, 0px)))) !important;
  padding: max(8px, var(--efuel-safe-top, env(safe-area-inset-top, 0px))) 12px 8px !important;
  box-sizing: border-box !important;
}
html body dialog.account-dialog-host #accountSectionModal.modal.open > .sheet > .sheet-head [data-account-section-close],
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .sheet-head [data-account-section-close],
html body dialog.account-dialog-host #accountSectionModal.modal.open > .account-section-box > .auction-notif-head [data-account-section-close] {
  position: relative !important;
  z-index: 21 !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Apply the same safe-area header treatment to the main cabinet window. */
html body dialog.account-dialog-host #accountModal.modal.open > .sheet,
html body dialog.account-dialog-host #accountModal.modal.open > .shared-account-box,
html body dialog.account-dialog-host #accountModal.modal.open > .account-box {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
html body dialog.account-dialog-host #accountModal.modal.open > .sheet > .sheet-head,
html body dialog.account-dialog-host #accountModal.modal.open > .shared-account-box > :is(.shared-account-head, .auction-notif-head),
html body dialog.account-dialog-host #accountModal.modal.open > .account-box > :is(.shared-account-head, .auction-notif-head) {
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  flex: 0 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: calc(56px + max(8px, var(--efuel-safe-top, env(safe-area-inset-top, 0px)))) !important;
  padding: max(8px, var(--efuel-safe-top, env(safe-area-inset-top, 0px))) 12px 8px !important;
  box-sizing: border-box !important;
}
html body dialog.account-dialog-host #accountModal.modal.open > .sheet > .sheet-head :is(#accountClose, [data-close="accountModal"], .icon-btn),
html body dialog.account-dialog-host #accountModal.modal.open > .shared-account-box > :is(.shared-account-head, .auction-notif-head) :is(.shared-account-close, #accountClose, [data-close="accountModal"], .icon-btn),
html body dialog.account-dialog-host #accountModal.modal.open > .account-box > :is(.shared-account-head, .auction-notif-head) :is(.shared-account-close, #accountClose, [data-close="accountModal"], .icon-btn) {
  position: relative !important;
  z-index: 21 !important;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Keep every cabinet close control centered and inside its header. Legacy
   page styles used fixed positioning and a pseudo-element, which could shift
   or duplicate the close mark on narrow screens. */
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open :is(
  #accountClose,
  [data-close="accountModal"],
  [data-account-section-close],
  .shared-account-close,
  .account-section-close,
  .sheet-head .icon-btn
) {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  font-size: 24px !important;
  line-height: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}
html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open :is(
  #accountClose,
  [data-close="accountModal"],
  [data-account-section-close],
  .shared-account-close,
  .account-section-close,
  .sheet-head .icon-btn
)::after {
  content: none !important;
}

@media (max-width: 620px) {
  html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open {
    inset: 0 auto auto 50% !important;
    transform: translateX(-50%) !important;
    width: min(560px, calc(100% - 24px)) !important;
    height: 100% !important;
    max-width: calc(100% - 24px) !important;
    max-height: 100% !important;
    border-radius: 18px !important;
  }
  html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open > :is(.shared-account-box, .shared-account-section-box, .account-box, .account-section-box, .box, .sheet) {
    border-radius: 18px !important;
  }
  html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-section-body:has(.shared-account-changelog-panel) {
    padding: 8px !important;
  }
  html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-frame {
    border-radius: 12px !important;
  }
}

@media (max-height: 560px) {
  html body dialog.account-dialog-host :is(#accountModal, #accountSectionModal).modal.open {
    height: 100% !important;
    max-height: 100% !important;
  }
  html body dialog.account-dialog-host #accountSectionModal.modal.open .shared-account-section-body:has(.shared-account-changelog-panel) {
    padding: 6px !important;
  }
}
