/**
 * ShipCRM Account 360 View — main content only
 * Extends shipCRM_dashboard.css tokens
 */

.view-xl:has(.ship-account-360) {
  background: var(--ship-bg, #f7f8fa);
}

/* Detail tab shell — 360 View only (replaces conversations-body pt-2 px-3) */
.conversations.conversations--account-360 {
  margin-top: 0 !important;
  background: var(--ship-bg, #f7f8fa);
  padding-top:40px;
}

.conversations .conversations-body--account-360 {
  background: var(--ship-bg, #f7f8fa);
  padding: 0;
}

.tab-content--account-360 {
  margin-top: 0 !important;
  padding: 0;
  background: transparent;
}

.ship-acc-360-tab.ship-account-360 {
  padding: 0 16px 24px;
}

.ship-acc-360-tab .ship-dashboard.ship-dashboard--embedded,
.ship-acc-360-tab > .ship-acc-view-panel {
  background: transparent;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.ship-account-360 {
  --ship-primary: #00117b;
  --ship-primary-light: #0092e4;
  --ship-accent: #ff6b32;
  --ship-success: #10b981;
  --ship-bg: #f7f8fa;
  --ship-card: #ffffff;
  --ship-border: #e2e8f0;
  --ship-text: #00117b;
  --ship-text-muted: #64748b;
  --ship-radius: 18px;
  --ship-radius-sm: 12px;
  --ship-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04), 0px 4px 10px rgba(0, 0, 0, 0.05);

  background: var(--ship-bg, #f7f8fa);
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 1024px) {
  .ship-account-360 { padding: 0 20px 32px; }
}

@media (max-width: 480px) {
  .ship-account-360 { padding: 0 16px 24px; }
}

/* ── Shell: left profile + main content ── */
.ship-acc-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}

.ship-acc-left {
  position: sticky;
  top: 16px;
  align-self: start;
}

.ship-acc-main {
  min-width: 0;
}

@media (max-width: 1200px) {
  .ship-acc-shell {
    grid-template-columns: 1fr;
  }
  .ship-acc-left {
    position: static;
    top: auto;
  }
}

/* ── Profile header card ── */
.ship-acc-profile {
  background: var(--ship-card);
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.ship-acc-profile__body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  flex-wrap: wrap;
}

.ship-acc-profile__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.ship-acc-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ship-border);
  background: linear-gradient(135deg, #00117b, #0092e4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
}

.ship-acc-profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ship-acc-profile__verified {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: var(--ship-success);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}

.ship-acc-profile__info {
  flex: 1 1 200px;
  min-width: 0;
}

.ship-acc-profile__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-primary);
  margin: 0 0 8px;
  line-height: 24px;
}

.ship-acc-profile__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 146, 228, 0.12);
  color: var(--ship-primary-light);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 6px;
}

.ship-acc-profile__email {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-profile__tags-col {
  flex: 0 1 280px;
  min-width: 200px;
}

.ship-acc-profile__tags-label {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin-bottom: 6px;
  display: block;
}

.ship-acc-profile__tags-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  font-size: 13px;
  color: var(--ship-text);
  background: #f8fafc;
}

.ship-acc-profile__tags-input:focus {
  outline: 2px solid var(--ship-primary-light);
  outline-offset: 1px;
  border-color: var(--ship-primary-light);
}

/* ── Reports menu (left column, 360 View only) ── */
.ship-acc-reports-menu {
  background: var(--ship-card);
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  padding: 16px;
}

.ship-acc-reports-menu__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-reports-menu__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0 0 12px;
}

.ship-acc-reports-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ship-acc-reports-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-text);
  cursor: pointer;
  text-align: left;
}

.ship-acc-reports-menu__item:focus-visible {
  outline: 2px solid var(--ship-primary-light);
  outline-offset: 2px;
}

.ship-acc-reports-menu__item:hover {
  background: #f8fafc;
}

.ship-acc-reports-menu__item.is-active {
  background: rgba(0, 17, 123, 0.08);
  color: var(--ship-primary);
  font-weight: 600;
}

.ship-acc-reports-menu__icon {
  width: 20px;
  text-align: center;
  color: var(--ship-text-muted);
  flex-shrink: 0;
}

.ship-acc-reports-menu__item.is-active .ship-acc-reports-menu__icon {
  color: var(--ship-primary);
}

.ship-acc-reports-menu__label {
  flex: 1;
  min-width: 0;
}

.ship-acc-reports-menu__count {
  font-size: 11px;
  color: var(--ship-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ship-acc-reports-menu__urgent {
  font-size: 10px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(255, 107, 50, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
}

/* ── Reports panel (right column, category browse) ── */
.ship-acc-reports-panel {
  margin-top: 16px;
}

.ship-acc-reports-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ship-acc-reports-panel__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-reports-panel__meta {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

@media (max-width: 600px) {
  .ship-acc-reports-panel__head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Detail tabs ── */
.ship-acc-tabs {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
  border-top: 1px solid var(--ship-border);
  padding-top: 16px;
  margin: 0 16px 0;
  flex-wrap: wrap;
}

/* Content toolbar (tabs + controls) */
.ship-acc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--ship-card);
  border: 1px solid var(--ship-border);
  box-shadow: var(--ship-shadow);
  padding: 12px;
  border-radius: var(--ship-radius);
}

/* sticky offset intentionally kept at top:0 */

.ship-acc-toolbar__left {
  min-width: 0;
}

.ship-acc-toolbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tabs in toolbar: compact segmented pills */
.ship-acc-tabs--toolbar {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 0;
  padding-top: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.ship-acc-tabs--toolbar .ship-acc-tabs__btn {
  background: #f1f5f9;
  color: var(--ship-text);
}

.ship-acc-tabs--toolbar .ship-acc-tabs__btn[aria-selected="true"] {
  background: #334155;
  color: #fff;
}

/* (View controls removed intentionally) */

.ship-acc-tabs__btn {
  padding: 8px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ship-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
}

.ship-acc-tabs__btn:hover {
  background: #f1f5f9;
  color: var(--ship-text);
}

.ship-acc-tabs__btn[aria-selected="true"] {
  background: #334155;
  color: #fff;
}

.ship-acc-tabs__btn:focus-visible {
  outline: 2px solid var(--ship-primary-light);
  outline-offset: 2px;
}

/* ── Context bar ── */
.ship-acc-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--ship-card);
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
}

.ship-acc-context--profile {
  margin-bottom: 0;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--ship-border);
  border-radius: 0;
}

.ship-acc-context--profile .ship-acc-context__left {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.ship-acc-context__left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ship-acc-context__switcher label {
  font-size: 12px;
  color: var(--ship-text-muted);
  display: block;
  margin-bottom: 4px;
}

.ship-acc-context__switcher select {
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  font-size: 14px;
  color: var(--ship-text);
  min-height: 44px;
}

.ship-acc-health {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ship-text);
}

.ship-acc-health__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ship-acc-health__dot--good { background: var(--ship-success); }
.ship-acc-health__dot--warn { background: #f59e0b; }
.ship-acc-health__dot--bad { background: var(--ship-accent); }

.ship-acc-context__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-context__right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Alert strip (rule-driven) ── */
.ship-acc-alerts {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(255, 107, 50, 0.08);
  border: 1px solid rgba(255, 107, 50, 0.25);
  border-radius: var(--ship-radius-sm);
  display: none;
}

.ship-acc-alerts.is-visible {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ship-acc-alerts__text {
  font-size: 14px;
  color: var(--ship-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-acc-alerts__text i {
  color: var(--ship-accent);
}

.ship-acc-alerts__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ship-acc-alerts__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-primary-light);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--ship-border);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.ship-acc-alerts__link:hover {
  background: #f8fafc;
  text-decoration: none;
  color: var(--ship-primary);
}

/* ── 360 grid layout ── */
.ship-acc-snapshot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
}

.ship-acc-snapshot-head__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-snapshot-head__meta {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-snapshot-head__explore {
  flex-shrink: 0;
  min-height: 40px;
}

.ship-acc-snapshot-head__left {
  flex: 1;
  min-width: 0;
}

.ship-acc-snapshot-head__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.ship-acc-snapshot-head__actions .ship-btn {
  min-height: 44px;
  white-space: nowrap;
}

#acc360SnapshotHead[hidden],
#acc360BrowseCta[hidden] {
  display: none !important;
}

/* Widget footer bar */
.ship-acc-widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 24px 16px;
  background: #fafbfc;
  border-top: 1px solid var(--ship-border);
  margin-top: auto;
}

.ship-acc-widget-foot__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-widget-foot__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-primary-light);
  text-decoration: none;
  white-space: nowrap;
}

.ship-acc-widget-foot__link:hover {
  color: var(--ship-primary);
  text-decoration: none;
}

.ship-acc-widget-foot__link--btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.ship-acc-quick-find__item--urgent .ship-acc-quick-find__item-title {
  color: #c2410c;
}

.ship-acc-360-charts .ship-widget,
.ship-acc-360-reports.ship-widget {
  display: flex;
  flex-direction: column;
}

.ship-acc-catalog-back {
  margin-bottom: 16px;
  min-height: 44px;
  justify-content: flex-start;
}

.ship-acc-browse-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 8px;
}

.ship-acc-browse-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ship-acc-browse-section__head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ship-acc-browse-section__action {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-primary-light);
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}

.ship-acc-browse-section__action:hover {
  background: rgba(0, 146, 228, 0.08);
  color: var(--ship-primary);
}

.ship-acc-browse-section__empty {
  font-size: 13px;
  color: var(--ship-text-muted);
}

.ship-acc-browse-section__hint {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.ship-acc-browse-section--compact {
  margin-bottom: 0;
}

.ship-acc-report-grid--shortcuts {
  margin-bottom: 0;
}

/* ── All reports library (pagination) ── */
.ship-acc-browse-library {
  margin-bottom: 16px;
}

.ship-acc-browse-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--ship-border);
  margin-bottom: 16px;
}

.ship-acc-browse-results-bar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ship-text);
}

.ship-acc-browse-results-bar__range {
  font-size: 13px;
  color: var(--ship-text-muted);
}

.ship-acc-browse-results-bar__sort {
  font-size: 13px;
  color: var(--ship-text-muted);
}

.ship-acc-browse-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 8px;
}

.ship-acc-browse-pager__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ship-acc-browse-pager__label {
  font-size: 13px;
  color: var(--ship-text);
  min-width: 100px;
  text-align: center;
}

.ship-acc-browse-section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
}

.ship-acc-browse-section__count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ship-text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.ship-acc-browse-section__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ship-acc-report-grid__empty {
  grid-column: 1 / -1;
  padding: 48px 16px;
  text-align: center;
  color: var(--ship-text-muted);
  font-size: 14px;
  margin: 0;
}

body.ship-acc-quick-find-open {
  overflow: hidden;
}

.ship-acc-priority-wall {
  grid-column: 1 / -1;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
}

.ship-acc-priority-wall__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ship-acc-priority-wall__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
}

.ship-acc-priority-wall__hint {
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-priority-wall__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ship-acc-mini-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  background: #f8fafc;
  min-height: 140px;
}

.ship-acc-mini-widget--urgent {
  background: rgba(255, 107, 50, 0.06);
  border-color: rgba(255, 107, 50, 0.25);
}

.ship-acc-mini-widget--pinned {
  background: rgba(0, 146, 228, 0.06);
  border-color: rgba(0, 146, 228, 0.2);
}

.ship-acc-mini-widget__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ship-acc-mini-widget__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ship-primary-light);
  flex-shrink: 0;
}

.ship-acc-mini-widget__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
  line-height: 1.3;
}

.ship-acc-mini-widget__meta {
  font-size: 11px;
  color: var(--ship-text-muted);
  margin: 2px 0 0;
}

.ship-acc-mini-widget__summary {
  font-size: 13px;
  color: #334155;
  margin: 0;
  flex: 1;
  line-height: 1.35;
}

.ship-acc-mini-widget__actions {
  display: flex;
  gap: 8px;
}

.ship-acc-mini-widget__actions .ship-btn {
  flex: 1;
  justify-content: center;
  min-height: 36px;
  font-size: 12px;
  padding: 6px 10px;
}

@media (max-width: 1100px) {
  .ship-acc-priority-wall__track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ship-acc-snapshot-head {
    flex-direction: column;
    align-items: stretch;
  }
}

.ship-acc-360-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.ship-acc-360-kpis {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ship-acc-360-charts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ship-acc-360-reports {
  grid-column: 1 / -1;
}

/* ── Equal-height widget cards (charts / pipeline / side widgets) ── */
.ship-acc-360-charts .ship-widget {
  height: 360px;
  display: flex;
  flex-direction: column;
}

.ship-acc-360-charts .ship-widget__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (max-width: 1200px) {
  .ship-acc-360-kpis { grid-template-columns: repeat(2, 1fr); }
  .ship-acc-360-charts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ship-acc-360-kpis { grid-template-columns: 1fr; }
}

/* ── KPI cards (compact) ── */
.ship-acc-kpi-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ship-acc-kpi-link:hover {
  text-decoration: none;
  color: inherit;
}

.ship-kpi-card.is-highlight {
  border-color: var(--ship-accent);
  box-shadow: 0 0 0 1px rgba(255, 107, 50, 0.2);
}

.ship-kpi-card__body {
  padding: 16px;
}

.ship-kpi-card__value {
  font-size: 28px;
  line-height: 34px;
}

.ship-acc-kpi-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ship-acc-kpi-sub {
  margin: 0;
  font-size: 12px;
  color: var(--ship-text-muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Trend chip */
.ship-acc-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ship-border);
  background: #fff;
  flex-shrink: 0;
}

.ship-acc-kpi-trend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ship-acc-kpi-trend--up { color: #059669; }
.ship-acc-kpi-trend--up .ship-acc-kpi-trend__dot { background: #10b981; }
.ship-acc-kpi-trend--down { color: #ef4444; }
.ship-acc-kpi-trend--down .ship-acc-kpi-trend__dot { background: #ef4444; }
.ship-acc-kpi-trend--warn { color: #b45309; }
.ship-acc-kpi-trend--warn .ship-acc-kpi-trend__dot { background: #f59e0b; }
.ship-acc-kpi-trend--neutral { color: var(--ship-text-muted); }
.ship-acc-kpi-trend--neutral .ship-acc-kpi-trend__dot { background: #94a3b8; }

/* KPI icon color accents */
.ship-acc-kpi-card .ship-kpi-card__icon {
  background: #f8fafc;
}

.ship-acc-kpi-card--kpi-shipments .ship-kpi-card__icon svg { fill: rgba(0, 146, 228, 0.95); }
.ship-acc-kpi-card--kpi-invoices .ship-kpi-card__icon svg { fill: rgba(255, 107, 50, 0.95); }
.ship-acc-kpi-card--kpi-cases .ship-kpi-card__icon svg { fill: rgba(124, 58, 237, 0.95); }
.ship-acc-kpi-card--kpi-revenue .ship-kpi-card__icon svg { fill: rgba(16, 185, 129, 0.95); }

/* ── Invoice pipeline ── */
.ship-acc-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-content: start;
}

.ship-acc-pipeline__stage {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  text-align: center;
  min-width: 0;
}

.ship-acc-pipeline__count {
  font-size: 24px;
  font-weight: 700;
  color: var(--ship-primary);
  display: block;
}

.ship-acc-pipeline__label {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin-top: 4px;
  display: block;
}

@media (max-width: 1200px) {
  .ship-acc-pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ship-acc-pipeline {
    grid-template-columns: 1fr;
  }
}

/* ── Quick links ── */
.ship-acc-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ship-acc-links__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--ship-border);
  font-size: 14px;
}

.ship-acc-links__item:last-child {
  border-bottom: none;
}

.ship-acc-links__item a {
  color: var(--ship-primary-light);
  text-decoration: none;
  font-weight: 500;
}

.ship-acc-links__item a:hover {
  text-decoration: underline;
  color: var(--ship-primary);
}

.ship-acc-links__count {
  font-weight: 600;
  color: var(--ship-text);
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* ── Activity feed ── */
.ship-acc-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ship-acc-activity__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ship-border);
  font-size: 13px;
}

.ship-acc-activity__item:last-child {
  border-bottom: none;
}

.ship-acc-activity__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 146, 228, 0.12);
  color: var(--ship-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.ship-acc-activity__text {
  flex: 1;
  min-width: 0;
  color: var(--ship-text);
  margin: 0;
  line-height: 1.4;
}

.ship-acc-activity__time {
  font-size: 11px;
  color: var(--ship-text-muted);
  display: block;
  margin-top: 4px;
}

/* ── Widget empty state ── */
.ship-acc-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--ship-text-muted);
}

.ship-acc-empty__icon {
  font-size: 32px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.ship-acc-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 8px;
}

.ship-acc-empty__desc {
  font-size: 13px;
  margin: 0 0 16px;
}

.ship-acc-widget--hidden {
  display: none !important;
}

.ship-acc-chart-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  height: auto;
}

.ship-acc-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── Overview table sizing rules ── */
/* Align overview table spacing with Modern Dashboard table system */
.ship-acc-360-reports .ship-table th {
  padding: 12px 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 16px;
}

.ship-acc-360-reports .ship-table td {
  padding: 16px 16px;
  line-height: 20px;
}

.ship-acc-360-reports .ship-table th,
.ship-acc-360-reports .ship-table td {
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ship-acc-360-reports .ship-table td strong {
  font-weight: 600;
}

.ship-acc-360-reports .ship-reports-tabs-row__arrow {
  height: 40px;
  width: 40px;
  border-radius: 12px;
}

.ship-acc-360-reports .ship-reports__tab {
  border-radius: 12px;
  padding: 8px 12px;
}

/* Overview table tabs */
.ship-acc-table-tabs {
  padding: 12px 16px 0;
  gap: 8px;
}

.ship-acc-table-tabs .ship-reports__tabs {
  padding: 0;
}

/* Keep table section not “full bleed” inside card */
.ship-acc-360-reports .ship-table-wrap {
  margin: 12px 16px 16px;
}

.ship-acc-360-reports .ship-acc-table-tabs {
  margin: 0 16px;
  padding-left: 0;
  padding-right: 0;
}

/* Table shell: tabs + table read as one card */
.ship-acc-360-reports .ship-acc-table-tabs {
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 12px 12px 8px;
}

.ship-acc-360-reports .ship-table-wrap {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  border-top: 0;
  margin-top: 0;
}

.ship-acc-360-reports .ship-table {
  margin-bottom: 0;
}

.ship-acc-360-reports .ship-table tbody tr:last-child td {
  border-bottom: none;
}

/* VIP badge */
.ship-acc-vip-badge {
  display: none;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, #00117b, #0092e4);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.ship-acc-vip-badge.is-visible {
  display: inline-block;
}

/* ── View panels (360 vs Reports catalog) ── */
.ship-acc-view-panel[hidden] {
  display: none !important;
}

.ship-acc-view-placeholder .ship-widget {
  margin-bottom: 0;
}

.ship-acc-view-placeholder .ship-widget__body {
  padding: 48px 24px;
}

.ship-acc-toolbar__count {
  font-size: 12px;
  color: var(--ship-text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--ship-border);
}

/* ── Reports catalog ── */
.ship-acc-reports-catalog {
  margin-bottom: 0;
}

.ship-acc-reports-catalog__head {
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-reports-catalog__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-reports-catalog__search {
  flex: 1 1 260px;
  max-width: 360px;
}

.ship-acc-reports-catalog__select {
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 12px;
  min-width: 160px;
}

.ship-acc-reports-catalog__pin-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ship-text);
  margin: 0;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
}

.ship-acc-reports-catalog__pin-filter input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.ship-acc-reports-catalog__pinned-wrap {
  padding: 16px 24px 0;
}

.ship-acc-reports-catalog__section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-reports-catalog__section:last-of-type {
  border-bottom: none;
}

.ship-acc-reports-catalog__section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-acc-reports-catalog__section-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--ship-text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.ship-acc-reports-catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .ship-acc-reports-catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ship-acc-reports-catalog__grid {
    grid-template-columns: 1fr;
  }

  .ship-acc-reports-catalog__toolbar {
    padding: 12px 16px;
  }

  .ship-acc-reports-catalog__section,
  .ship-acc-reports-catalog__pinned-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.ship-acc-report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  box-shadow: var(--ship-shadow);
  min-height: 140px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.ship-acc-report-card:hover {
  box-shadow: var(--ship-shadow-hover, 0 2px 6px rgba(0, 0, 0, 0.06));
  border-color: rgba(0, 146, 228, 0.35);
}

.ship-acc-report-card.is-on-overview {
  border-color: rgba(0, 146, 228, 0.25);
}

.ship-acc-report-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ship-acc-report-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--ship-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ship-primary-light);
  font-size: 16px;
}

.ship-acc-report-card__pin {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.ship-acc-report-card__pin:hover {
  background: #f1f5f9;
  color: #f59e0b;
}

.ship-acc-report-card__pin.is-pinned {
  color: #f59e0b;
}

.ship-acc-report-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
  line-height: 1.35;
}

.ship-acc-report-card__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-report-card__summary {
  font-size: 13px;
  color: #334155;
  margin: 0;
  line-height: 1.4;
}

.ship-acc-report-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ship-acc-report-card__badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ship-text-muted);
  border: 1px solid var(--ship-border);
}

.ship-acc-report-card__badge--overview {
  background: rgba(0, 146, 228, 0.1);
  color: var(--ship-primary-light);
  border-color: rgba(0, 146, 228, 0.2);
}

.ship-acc-report-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.ship-acc-report-card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-primary-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ship-acc-report-card__link:hover {
  color: var(--ship-primary);
  text-decoration: none;
}

.ship-acc-reports-catalog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--ship-border);
}

.ship-acc-reports-catalog__range {
  font-size: 13px;
  color: var(--ship-text-muted);
}

.ship-acc-reports-catalog__pager {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ship-text);
}

.ship-acc-reports-catalog__pager .ship-btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.ship-acc-reports-catalog__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--ship-text-muted);
  font-size: 14px;
}

/* ── Needs attention ── */
.ship-acc-attention {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(255, 107, 50, 0.3);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
}

.ship-acc-attention__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ship-acc-attention__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-acc-attention__title i {
  color: var(--ship-accent);
}

.ship-acc-attention__all {
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-primary-light);
  background: none;
  border: none;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 8px;
}

.ship-acc-attention__all:hover {
  background: rgba(0, 146, 228, 0.08);
  color: var(--ship-primary);
}

.ship-acc-attention__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ship-acc-attention__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 107, 50, 0.08);
  border: 1px solid rgba(255, 107, 50, 0.2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--ship-text);
  text-decoration: none;
  min-height: 44px;
}

.ship-acc-attention__chip:hover {
  background: rgba(255, 107, 50, 0.14);
  text-decoration: none;
  color: var(--ship-primary);
}

.ship-acc-attention__chip i {
  color: var(--ship-accent);
  font-size: 14px;
}

/* ── Suggested reports ── */
.ship-acc-suggested {
  margin-bottom: 16px;
}

.ship-acc-suggested__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 12px;
}

.ship-acc-suggested__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ship-acc-suggested__grid--catalog {
  padding: 0 24px 16px;
}

@media (max-width: 900px) {
  .ship-acc-suggested__grid {
    grid-template-columns: 1fr;
  }
}

.ship-acc-suggested-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ship-acc-suggested-card:hover {
  border-color: rgba(0, 146, 228, 0.35);
  box-shadow: var(--ship-shadow);
  text-decoration: none;
  color: inherit;
}

.ship-acc-suggested-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--ship-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ship-primary-light);
  flex-shrink: 0;
}

.ship-acc-suggested-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-suggested-card__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

/* ── Category tiles ── */
.ship-acc-catalog-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 24px 24px;
}

@media (max-width: 900px) {
  .ship-acc-catalog-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ship-acc-catalog-tiles {
    grid-template-columns: 1fr;
  }
}

.ship-acc-catalog-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 120px;
}

.ship-acc-catalog-tile:hover {
  border-color: rgba(0, 146, 228, 0.4);
  box-shadow: var(--ship-shadow);
}

.ship-acc-catalog-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 146, 228, 0.1);
  color: var(--ship-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.ship-acc-catalog-tile__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
}

.ship-acc-catalog-tile__count {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-catalog-back {
  flex-shrink: 0;
}

.ship-acc-catalog-find {
  flex-shrink: 0;
  min-height: 40px;
}

/* ── Recent reports chips ── */
.ship-acc-reports-catalog__recent-wrap {
  padding: 16px 24px 0;
}

.ship-acc-reports-catalog__recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ship-acc-reports-catalog__suggested-wrap {
  padding-top: 16px;
}

.ship-acc-recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--ship-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ship-text);
  text-decoration: none;
  min-height: 36px;
}

.ship-acc-recent-chip:hover {
  background: #fff;
  border-color: rgba(0, 146, 228, 0.35);
  color: var(--ship-primary);
  text-decoration: none;
}

/* ── Quick find modal ── */
.ship-acc-quick-find[hidden] {
  display: none !important;
}

.ship-acc-quick-find {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
}

.ship-acc-quick-find__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ship-acc-quick-find__panel {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--ship-radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.ship-acc-quick-find__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-quick-find__search i {
  color: var(--ship-text-muted);
}

.ship-acc-quick-find__search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--ship-text);
}

.ship-acc-quick-find__kbd {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--ship-border);
  color: var(--ship-text-muted);
}

.ship-acc-quick-find__results {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.ship-acc-quick-find__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.ship-acc-quick-find__item:hover,
.ship-acc-quick-find__item.is-active {
  background: #f8fafc;
}

.ship-acc-quick-find__item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--ship-text);
  margin: 0;
}

.ship-acc-quick-find__item-meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-quick-find__empty {
  padding: 24px;
  text-align: center;
  color: var(--ship-text-muted);
  font-size: 14px;
}

/* ── Account Pulse ── */
.ship-acc-pulse {
  margin-bottom: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
}

.ship-acc-pulse__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ship-acc-pulse__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0;
}

.ship-acc-pulse__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-pulse__track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.ship-acc-pulse__chip {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--ship-border);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-text);
  cursor: pointer;
  min-height: 44px;
  font-family: inherit;
}

.ship-acc-pulse__chip--urgent {
  background: rgba(255, 107, 50, 0.1);
  border-color: rgba(255, 107, 50, 0.3);
  color: #c2410c;
}

.ship-acc-pulse__chip--warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #b45309;
}

.ship-acc-pulse__chip--good {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

.ship-acc-pulse__chip--more {
  background: #fff;
  border-style: dashed;
  color: var(--ship-primary-light);
  font-weight: 600;
}

.ship-acc-pulse__chip:hover {
  box-shadow: var(--ship-shadow);
}

.ship-acc-explore-trigger {
  min-height: 40px;
}

/* ── Explore drawer ── */
body.ship-acc-explore-open {
  overflow: hidden;
}

.ship-acc-explore[hidden] {
  display: none !important;
}

.ship-acc-explore {
  position: fixed;
  inset: 0;
  z-index: 2100;
}

.ship-acc-explore__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
}

.ship-acc-explore__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
}

.ship-acc-explore__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-explore__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-explore__sub {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-explore__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-explore__search input {
  flex: 1;
  border: 1px solid var(--ship-border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.ship-acc-explore__kbd {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid var(--ship-border);
  color: var(--ship-text-muted);
  flex-shrink: 0;
}

.ship-acc-explore__intents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-explore__intent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ship-border);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ship-text);
  cursor: pointer;
  font-family: inherit;
  min-height: 36px;
}

.ship-acc-explore__intent.is-active {
  background: var(--ship-primary);
  border-color: var(--ship-primary);
  color: #fff;
}

.ship-acc-explore__moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-explore__mood {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ship-border);
  background: #f8fafc;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  min-height: 32px;
}

.ship-acc-explore__mood.is-active {
  background: #334155;
  border-color: #334155;
  color: #fff;
}

.ship-acc-explore__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ship-acc-explore__body.is-preview-open .ship-acc-explore__list-wrap {
  border-bottom: 1px solid var(--ship-border);
}

.ship-acc-explore__list-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ship-acc-explore__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}

.ship-acc-explore__item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 4px;
}

.ship-acc-explore__item.is-active .ship-acc-explore__row {
  background: #f0f9ff;
  border-color: rgba(0, 146, 228, 0.35);
}

.ship-acc-explore__row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.ship-acc-explore__row:hover {
  background: #f8fafc;
}

.ship-acc-explore__row-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ship-primary-light);
  flex-shrink: 0;
}

.ship-acc-explore__row-text {
  flex: 1;
  min-width: 0;
}

.ship-acc-explore__row-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ship-text);
}

.ship-acc-explore__row-meta {
  display: block;
  font-size: 11px;
  color: var(--ship-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ship-acc-explore__row-arrow {
  color: #cbd5e1;
  font-size: 12px;
}

.ship-acc-explore__pin {
  width: 36px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.ship-acc-explore__pin.is-pinned {
  color: #f59e0b;
}

.ship-acc-explore__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--ship-border);
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-explore__pager-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ship-acc-explore__preview {
  padding: 16px 20px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--ship-border);
}

.ship-acc-explore__preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ship-text-muted);
  margin: 0 0 8px;
}

.ship-acc-explore__preview-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-explore__preview-meta {
  font-size: 12px;
  color: var(--ship-text-muted);
  margin: 0 0 8px;
}

.ship-acc-explore__preview-summary {
  font-size: 13px;
  color: #334155;
  margin: 0 0 16px;
  line-height: 1.4;
}

.ship-acc-explore__preview-open {
  width: 100%;
  justify-content: center;
}

.ship-acc-explore__empty {
  padding: 24px;
  text-align: center;
  color: var(--ship-text-muted);
}

.ship-acc-explore-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ship-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(0, 17, 123, 0.35);
  cursor: pointer;
  min-height: 48px;
}

.ship-acc-explore-fab:hover {
  background: #001a9e;
}

body.ship-acc-explore-open .ship-acc-explore-fab {
  display: none;
}

@media (max-width: 600px) {
  .ship-acc-explore-fab span {
    display: none;
  }
  .ship-acc-explore-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
}

/* ── Category tab dashboard (simple UX) ── */
.ship-acc-toolbar__left--wrap {
  flex: 1;
  min-width: 0;
}

.ship-acc-tabs--dashboard {
  flex-wrap: wrap;
  gap: 6px;
}

.ship-acc-report-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--ship-border);
  border-radius: 12px;
  background: #fff;
  min-width: 220px;
  min-height: 44px;
}

.ship-acc-report-search:focus-within {
  outline: 2px solid var(--ship-primary-light);
  outline-offset: 2px;
  border-color: var(--ship-primary-light);
}

.ship-acc-report-search input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  min-width: 0;
  min-height: 32px;
}

.ship-acc-report-search input:focus {
  outline: none;
}

.ship-acc-report-search i {
  color: var(--ship-text-muted);
  font-size: 14px;
}

.ship-acc-dash-panel {
  margin-top: 16px;
}

.ship-acc-reports-head {
  margin-bottom: 16px;
}

.ship-acc-reports-head__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-reports-head__meta {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.ship-acc-report-grid > .ship-acc-report-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.ship-acc-report-grid__empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--ship-text-muted);
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
}

.ship-acc-report-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  text-decoration: none;
  color: inherit;
  min-height: 120px;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ship-acc-report-card:hover {
  box-shadow: var(--ship-shadow-hover);
  border-color: rgba(0, 146, 228, 0.35);
  text-decoration: none;
  color: inherit;
}

.ship-acc-report-card--urgent {
  border-color: rgba(255, 107, 50, 0.35);
  background: rgba(255, 107, 50, 0.04);
}

.ship-acc-report-card--pinned {
  border-color: rgba(245, 158, 11, 0.35);
}

.ship-acc-report-card-wrap {
  position: relative;
  height: 100%;
}

.ship-acc-report-card-wrap .ship-acc-report-card {
  flex: 1 1 auto;
  height: 100%;
  min-height: 120px;
}

.ship-acc-report-card-wrap .ship-acc-report-card__pin {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ship-border);
  background: #fff;
  color: #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ship-shadow);
}

.ship-acc-report-card-wrap .ship-acc-report-card__pin:hover {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.ship-acc-report-card-wrap .ship-acc-report-card__pin.is-pinned {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.45);
  color: #f59e0b;
}

.ship-acc-report-card__badge--pinned {
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
}

.ship-acc-report-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ship-primary-light);
  flex-shrink: 0;
}

.ship-acc-report-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ship-acc-report-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c2410c;
  background: rgba(255, 107, 50, 0.12);
  padding: 2px 8px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 2px;
}

.ship-acc-report-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ship-text);
  line-height: 1.3;
}

.ship-acc-report-card__meta {
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-report-card__summary {
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 1.35em;
}

.ship-acc-report-card__cta {
  color: #cbd5e1;
  padding-top: 4px;
  flex-shrink: 0;
}

.ship-acc-report-card:hover .ship-acc-report-card__cta {
  color: var(--ship-primary-light);
}

.ship-acc-alerts__link {
  font-family: inherit;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .ship-acc-report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ship-acc-report-grid {
    grid-template-columns: 1fr;
  }
  .ship-acc-report-search {
    min-width: 0;
    width: 100%;
  }
}

/* ── 360 dashboard CTA ── */
.ship-acc-360-dashboard {
  margin-top: 0;
}

.ship-acc-360-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
}

.ship-acc-360-cta__text {
  font-size: 14px;
  color: #334155;
}

.ship-acc-360-cta__text strong {
  color: var(--ship-primary);
  font-weight: 600;
}

/* ── Report browser (sidebar + grid) ── */
.ship-acc-browse-layout {
  margin-top: 16px;
  --ship-acc-browse-sidebar: 220px;
}

.ship-acc-browse-layout__head {
  display: grid;
  grid-template-columns: var(--ship-acc-browse-sidebar) 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.ship-acc-browse-layout__back {
  width: 100%;
  justify-content: flex-start;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  min-height: 48px;
}

.ship-acc-browse-layout__body {
  display: grid;
  grid-template-columns: var(--ship-acc-browse-sidebar) 1fr;
  gap: 16px;
  align-items: start;
}

.ship-acc-browse-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  position: sticky;
  top: 16px;
}

.ship-acc-browse-nav__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ship-text);
  cursor: pointer;
  text-align: left;
}

.ship-acc-browse-nav__item:hover {
  background: #f8fafc;
}

.ship-acc-browse-nav__item.is-active {
  background: rgba(0, 17, 123, 0.08);
  color: var(--ship-primary);
  font-weight: 600;
}

.ship-acc-browse-nav__count {
  font-size: 11px;
  color: var(--ship-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ship-acc-browse-nav__urgent {
  font-size: 10px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(255, 107, 50, 0.12);
  padding: 2px 6px;
  border-radius: 999px;
}

.ship-acc-browse-main {
  min-width: 0;
}

.ship-acc-browse-main__head {
  margin-bottom: 16px;
}

.ship-acc-browse-main__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-browse-main__meta {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

@media (max-width: 900px) {
  .ship-acc-browse-layout__head {
    grid-template-columns: 1fr;
  }
  .ship-acc-browse-layout__body {
    grid-template-columns: 1fr;
  }
  .ship-acc-browse-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ship-acc-browse-nav__item {
    width: auto;
    flex: 1 1 auto;
    min-width: 120px;
  }
  .ship-acc-360-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .ship-acc-360-cta .ship-btn {
    justify-content: center;
  }
  .ship-acc-report-search--browse {
    min-width: 0;
  }
}

/* ── Main view ── */
.ship-acc-main-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.ship-acc-main-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.ship-acc-main-stat {
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius-sm);
}

.ship-acc-main-stat__label {
  display: block;
  font-size: 12px;
  color: var(--ship-text-muted);
  margin-bottom: 4px;
}

.ship-acc-main-stat__value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--ship-text);
}

.ship-acc-activity__empty {
  padding: 16px 0;
  color: var(--ship-text-muted);
  font-size: 14px;
  list-style: none;
}

.ship-acc-activity--timeline {
  margin-top: 16px;
}

/* ── 360 browse: collapsible sections ── */
.ship-acc-browse {
  margin-top: 24px;
  padding-top: 8px;
}

.ship-acc-browse__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ship-acc-browse__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ship-text);
  margin: 0 0 4px;
}

.ship-acc-browse__meta {
  font-size: 13px;
  color: var(--ship-text-muted);
  margin: 0;
}

.ship-acc-report-search--browse {
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  box-sizing: border-box;
}

.ship-acc-report-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ship-acc-report-section {
  background: #fff;
  border: 1px solid var(--ship-border);
  border-radius: var(--ship-radius);
  box-shadow: var(--ship-shadow);
  overflow: hidden;
}

.ship-acc-report-section__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.ship-acc-report-section__toggle:hover {
  background: #f8fafc;
}

.ship-acc-report-section__chevron {
  width: 20px;
  color: var(--ship-text-muted);
  transition: transform 0.15s ease;
}

.ship-acc-report-section.is-open .ship-acc-report-section__chevron {
  transform: rotate(90deg);
}

.ship-acc-report-section__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ship-text);
  flex: 1;
}

.ship-acc-report-section__count {
  font-size: 12px;
  color: var(--ship-text-muted);
}

.ship-acc-report-section__urgent {
  font-size: 11px;
  font-weight: 600;
  color: #c2410c;
  background: rgba(255, 107, 50, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.ship-acc-report-section__body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--ship-border);
}

.ship-acc-report-section.is-open .ship-acc-report-section__body {
  display: block;
}

.ship-acc-report-grid--section {
  margin-top: 16px;
}

.ship-acc-report-card--compact .ship-acc-report-card__summary {
  font-size: 12px;
  min-height: 2.7em;
}

@media (max-width: 900px) {
  .ship-acc-main-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .ship-acc-browse__head {
    flex-direction: column;
  }
  .ship-acc-report-search--browse {
    width: 100%;
    min-width: 0;
  }
}
