/* Original portal themes, adapted to the unified controllers. */
.restored-trade{--text:var(--ink);--accent:var(--portal-cyan);--light:#8edaff}
.restored-trade .portal-sections a{display:block;margin:0}
.restored-trade .portal-main{width:100%;margin:0 auto;max-width:1800px;padding:22px 28px 40px}
.restored-trade .metric{border-top:3px solid var(--portal-cyan);background:#0e1728e8}
.restored-trade .metric:nth-child(1){border-top-color:var(--portal-green)}
.restored-trade .metric:nth-child(2){border-top-color:var(--portal-gold)}
.restored-trade .message.mine{background:#123143;border-color:#296780}
.restored-trade dialog{background:var(--panel);border-color:#3a6e85}
.restored-trade .dialog-heading{position:sticky;top:-25px;z-index:5;background:var(--panel);margin:-25px -25px 18px;padding:18px 25px;border-bottom:1px solid #3a6e85}
.restored-trade #close-dialog{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;padding:0;background:#162b40;color:#fff;border:1px solid #60cde5;border-radius:8px;font-size:30px;line-height:1;opacity:1}
.restored-trade #close-dialog:hover{background:#24465e;color:#fff}
.restored-trade #close-dialog:focus-visible{outline:3px solid #75ecff;outline-offset:3px}
.restored-trade .table-wrap th{background:#142237}
.restored-hr{--bg:var(--bg-space);--panel:var(--bg-card);--line:var(--border-glass);--text:var(--text-primary);--muted:var(--text-secondary);--accent:var(--theme-accent);--light:var(--theme-accent)}
.restored-hr .restored-main{max-width:1500px;margin:0 auto;padding:0 1.5rem 2.5rem}
.restored-hr .nav-tab{text-decoration:none;display:flex;align-items:center}
.restored-hr .division-switcher a{text-decoration:none}
.restored-hr .header-right{display:flex;gap:16px;align-items:center;font-size:12px}
.restored-hr .card,.restored-hr .metric{background:var(--bg-card);border:1px solid var(--border-glass);box-shadow:0 8px 24px #0002;backdrop-filter:blur(12px);border-radius:var(--radius-lg)}
.restored-hr .metric{border-top:2px solid var(--theme-accent)}
.restored-hr .tag{color:var(--theme-accent);border-color:var(--border-glass-bright)}
.restored-hr button:not(.secondary):not(.danger):not(.icon){background:var(--theme-accent);color:#061724}
.restored-hr input,.restored-hr select,.restored-hr textarea{background:var(--bg-surface);border-color:var(--border-glass-bright)}
.restored-hr button:focus-visible,.restored-hr a:focus-visible,.restored-hr input:focus,.restored-hr select:focus,.restored-hr textarea:focus{outline-color:var(--theme-accent)}
.restored-hr dialog{background:var(--bg-surface);border-color:var(--border-glass-bright);cursor:default;}
.restored-hr dialog::backdrop{cursor:pointer;background:rgba(3,8,22,0.8);backdrop-filter:blur(4px);}
.restored-hr .division-card-logo{width:62px;height:62px;object-fit:contain;float:right;margin-left:15px}
.restored-hr .eyebrow{color:var(--theme-accent)}
.restored-hr .page-heading h1{font-size:28px}
@media(max-width:800px){.restored-trade .portal-main{padding:18px}.restored-hr .header-inner{flex-wrap:wrap}.restored-hr .division-switcher{order:3;width:100%;overflow:auto;justify-content:flex-start}.restored-hr .header-right{margin-left:auto}.restored-hr .restored-main{padding:0 18px 30px}.restored-hr .nav-tabs-inner{overflow:auto;flex-wrap:nowrap}.restored-hr .nav-tab{white-space:nowrap}}
/* Shared action language from the central portal: cyan outline and cut corners. */
:is(.restored-hr,.restored-trade) button:not(.calendar-event):not(.icon):not(#close-dialog),
:is(.restored-hr,.restored-trade) :is(.calendar-navigation,.portal-section,.nav-tab){font-family:inherit;font-size:12px;font-weight:700;letter-spacing:.7px;border:1px solid #22c6de;background:rgba(6,182,212,.12);color:#7ee7f5;padding:11px 18px;border-radius:0;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);transition:background .2s,color .2s,box-shadow .2s;}
:is(.restored-hr,.restored-trade) button:not(.calendar-event):not(.icon):not(#close-dialog):hover,
:is(.restored-hr,.restored-trade) :is(.calendar-navigation,.portal-section,.nav-tab):hover{background:#22c6de;color:#03141e;box-shadow:0 0 16px #06b6d433;}
:is(.restored-hr,.restored-trade) button.secondary:not(.calendar-event):not(.icon):not(#close-dialog){background:#14283b;border-color:#497186;color:#d6e7f2;}
:is(.restored-hr,.restored-trade) button.danger:not(.calendar-event):not(.icon):not(#close-dialog){background:#421e29;border-color:#f17c91;color:#ffced7;}
:is(.restored-hr,.restored-trade) button:disabled{opacity:.45;cursor:not-allowed;}
:is(.restored-hr,.restored-trade) :is(button,a):focus-visible{outline:3px solid #96f2ff;outline-offset:-4px;}
:is(.restored-hr,.restored-trade) :is(.nav-tab.active,.portal-section.is-active){background:#12475b;border-color:#74eaff;color:#c2f8ff;}
.ticket-state{padding:12px 16px;border-left:3px solid #22c6de;background:#122c3e;}
@media print{body>header,body>nav,body>main,body>footer,.division-hero-banner,.dialog-heading button{display:none!important}dialog{position:static;max-height:none;border:0;width:100%;color:#000;background:#fff}dialog::backdrop{display:none}}

/* Member Profile View (CCBE_Manager Activity & Fleets) */
.header-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid var(--theme-accent, #22c6de);
  border-radius: 4px;
  color: #7ee7f5 !important;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}
.header-user-badge:hover {
  background: var(--theme-accent, #22c6de);
  color: #03141e !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}
.header-user-badge .user-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #3fb950;
  box-shadow: 0 0 6px #3fb950;
}
.portal-back-btn {
  color: #8b929f;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.portal-back-btn:hover { color: #fff; }

.member-name-link {
  font-weight: 700;
  color: var(--portal-cyan, #22c6de);
  text-decoration: none;
  transition: color 0.15s;
}
.member-name-link:hover {
  text-decoration: underline;
  color: #7ee7f5;
}

.profile-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}
.profile-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}
.profile-breadcrumb a {
  color: #8b929f;
  text-decoration: none;
}
.profile-breadcrumb a:hover { color: #e6e9ef; }
.profile-breadcrumb .crumb-sep { color: #3a4250; }
.profile-breadcrumb .crumb-current { color: #dfe4ec; font-weight: 600; }

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 12px;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  flex: none;
  border-radius: 99px;
  position: relative;
  background: #1f2631;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #7ee7f5;
  box-shadow: 0 0 0 1px #2a3140, 0 0 0 4px #14171d, 0 0 0 5px rgba(6,182,212,0.4);
}
.profile-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 99px;
}
.profile-header-text {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.profile-header-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.member-name-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 7px;
  border-radius: 5px;
  background: #252b36;
  color: #8b929f;
  border: 1px solid #333a47;
}
.profile-header-name {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #fff;
}
.state-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
}
.state-badge.active { background: #1c3325; color: #5cc46e; }
.state-badge.secondary { background: #1f242c; color: #98a1af; }
.role-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.role-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  background: #1f2631;
  color: #8fb6e8;
  border: 1px solid rgba(255,255,255,0.06);
}
.profile-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8b929f;
}
.profile-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: #3a4250;
  flex: none;
}
.profile-header-meta a {
  color: var(--portal-cyan, #22c6de);
  text-decoration: none;
}
.profile-header-meta a:hover { text-decoration: underline; }
.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-profile-secondary {
  padding: 9px 15px;
  border-radius: 6px;
  border: 1px solid #2a3140;
  font-size: 13px;
  font-weight: 600;
  color: #c3ccdb;
  background: #1b2028;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-profile-secondary:hover {
  background: #232935;
  color: #e6e9ef;
  border-color: #3b4457;
}
.btn-profile-danger {
  padding: 9px 15px;
  border-radius: 6px;
  border: 1px solid #4a2a26;
  font-size: 13px;
  font-weight: 600;
  color: #e07060;
  background: #251614;
  cursor: pointer;
}
.btn-profile-danger:hover {
  background: #361d1a;
}

/* Subtabs bar */
.profile-subtabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #21262f;
  padding-bottom: 8px;
}
.profile-subtab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b929f;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-subtab-btn:hover { color: #fff; }
.profile-subtab-btn.active {
  color: var(--theme-accent, #22c6de);
  border-bottom-color: var(--theme-accent, #22c6de);
}

/* Stats 5-card row */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.profile-stat-card {
  padding: 16px 18px;
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #7d8493;
}
.profile-stat-value {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #f1f4f9;
  line-height: 1.1;
}
.profile-stat-sub {
  font-size: 12px;
  color: #6c7484;
}

/* Grid & Cards */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 16px;
  align-items: start;
}
.profile-grid-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-card.profile-card {
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 12px;
  overflow: hidden;
}
.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #1f242c;
}
.profile-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #f1f4f9;
}
.profile-card-subtitle {
  font-size: 12px;
  color: #6c7484;
}

/* Messages */
.profile-message-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid #1c212a;
}
.profile-message-row:hover { background: #171b22; }
.profile-message-row:last-child { border-bottom: none; }
.profile-message-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-message-channel {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #1f2631;
  color: #8fb6e8;
  white-space: nowrap;
}
.profile-message-time {
  font-size: 12px;
  color: #6c7484;
}
.profile-message-jump {
  font-size: 12px;
  color: #6c7484;
  text-decoration: none;
  margin-left: auto;
}
.profile-message-jump:hover { color: #9bc0ff; }
.profile-message-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #dfe4ec;
  overflow-wrap: break-word;
}

/* Donut & Participation */
.profile-participation-top {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 18px 18px;
}
.profile-donut-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-donut {
  width: 130px;
  height: 130px;
  flex: none;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-donut-hole {
  width: 94px;
  height: 94px;
  border-radius: 99px;
  background: #14171d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.profile-donut-pct {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.profile-donut-label {
  font-size: 11px;
  color: #7d8493;
}
.profile-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.profile-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: none;
}
.profile-legend-label {
  color: #aab2c0;
  min-width: 120px;
}
.profile-legend-n {
  color: #eef1f6;
  font-weight: 700;
}
.profile-months {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-months-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #7d8493;
}
.profile-months-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: 10px;
}
.profile-month-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}
.profile-month-pct {
  font-size: 10.5px;
  color: #aab2c0;
}
.profile-month-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 4px 4px 2px 2px;
}
.profile-months-labels {
  display: flex;
  gap: 8px;
}
.profile-month-name {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6c7484;
}
.profile-mini-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 18px 16px;
}
.profile-mini-card {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #181c23;
  border: 1px solid #232833;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile-mini-card-label {
  font-size: 11.5px;
  color: #7d8493;
}
.profile-mini-card-value {
  font-size: 13px;
  color: #eef1f6;
}

/* Voice */
.profile-voice-last {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #161b22;
  border-bottom: 1px solid #1f242c;
}
.profile-voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #3fb950;
  box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.2);
}
.profile-voice-last-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-voice-last-label {
  font-size: 11.5px;
  color: #7d8493;
}
.profile-voice-last-detail {
  font-size: 13.5px;
  color: #eef1f6;
}
.profile-voice-last-dur {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.profile-voice-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 18px 0;
}
.voice-tab-btn {
  padding: 5px 12px;
  background: #181c23;
  border: 1px solid #232833;
  border-radius: 6px;
  color: #8b929f;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.voice-tab-btn.active {
  background: #232935;
  color: #fff;
  border-color: #3b4457;
}
.profile-voice-sessions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px 14px;
}
.profile-voice-row {
  display: grid;
  grid-template-columns: 130px 1fr 90px 70px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12.5px;
}
.profile-voice-channel {
  color: #dfe4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-voice-bar-track {
  height: 6px;
  border-radius: 99px;
  background: #1f242c;
  overflow: hidden;
}
.profile-voice-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #6aa2ff;
}
.profile-voice-date {
  color: #7d8493;
  font-size: 11.5px;
  white-space: nowrap;
}
.profile-voice-dur {
  color: #eef1f6;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

/* Event filters */
.profile-events-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.event-filter-btn {
  padding: 4px 10px;
  background: #181c23;
  border: 1px solid #232833;
  border-radius: 6px;
  color: #8b929f;
  font-size: 12px;
  cursor: pointer;
}
.event-filter-btn.active {
  background: #232935;
  color: #fff;
  border-color: #3b4457;
}
.event-filter-btn .count-badge {
  margin-left: 5px;
  opacity: 0.7;
}

/* Member Profile: Formación & Flota Styles */
.profile-subtab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Formación Tab */
.trainings-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.trainings-division-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trainings-division-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #8b929f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trainings-division-title .badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #1f2631;
  color: #8fb6e8;
}
.training-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.training-card {
  padding: 14px 16px;
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s;
}
.training-card.completed {
  border-left: 4px solid #3fb950;
}
.training-card.pending {
  border-left: 4px solid #6c7484;
}
.training-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.training-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #eef1f6;
  line-height: 1.3;
}
.training-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.training-status-badge.done {
  background: rgba(63, 185, 80, 0.15);
  color: #5cc46e;
}
.training-status-badge.todo {
  background: #1f242c;
  color: #8b929f;
}
.training-card-meta {
  font-size: 12px;
  color: #7d8493;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.training-card-meta strong {
  color: #aab2c0;
}
.training-card-obs {
  font-size: 12px;
  color: #c3ccdb;
  font-style: italic;
  background: #181c23;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #202530;
}

/* Flota Tab */
.fleet-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 12px;
}
.fleet-info h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.fleet-info p {
  font-size: 13px;
  color: #7d8493;
  margin: 0;
}
.fleet-upload-btn-wrap {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.fleet-dropzone {
  position: relative;
  overflow: hidden;
  border: 2px dashed #2a3342;
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: #12151b;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#fleet-input-file,
.fleet-file-input {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
.fleet-dropzone:hover, .fleet-dropzone.dragover {
  border-color: var(--portal-cyan, #22c6de);
  background: rgba(34, 198, 222, 0.04);
}
.fleet-dropzone-icon {
  font-size: 32px;
  color: var(--portal-cyan, #22c6de);
}
.fleet-dropzone-title {
  font-size: 15px;
  font-weight: 700;
  color: #eef1f6;
}
.fleet-dropzone-desc {
  font-size: 12.5px;
  color: #7d8493;
  max-width: 480px;
}
.fleet-ships-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.fleet-ship-card {
  padding: 14px 16px;
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.fleet-ship-card:hover {
  transform: translateY(-2px);
  border-color: #353e4e;
}
.fleet-ship-name {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.fleet-ship-slug {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #22c6de;
}
.fleet-ship-badge {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1c222c;
  color: #8b929f;
  align-self: flex-start;
  margin-top: 4px;
}

/* Panoramic Fleet Image Card */
.fleet-panoramic-card {
  background: #101318;
  border: 1px solid #1f2530;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.fleet-panoramic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(14, 17, 22, 0.9);
  border-bottom: 1px solid #1e2430;
  gap: 12px;
}
.fleet-panoramic-title {
  font-size: 13px;
  font-weight: 700;
  color: #22c6de;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.fleet-panoramic-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fleet-panoramic-wrapper {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #151b24 0%, #0a0d12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  max-height: 480px;
  overflow: hidden;
  cursor: zoom-in;
}
.fleet-panoramic-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.fleet-panoramic-wrapper:hover .fleet-panoramic-img {
  transform: scale(1.015);
}
.fleet-panoramic-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  background: rgba(8, 10, 14, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c4cbd4;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  pointer-events: none;
}
.fleet-panoramic-card.dragover {
  border-color: var(--portal-cyan, #22c6de);
  box-shadow: 0 0 20px rgba(34, 198, 222, 0.25);
}
.fleet-panoramic-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 24px;
  background: radial-gradient(circle at 50% 50%, #151b24 0%, #0a0d12 100%);
  text-align: center;
  gap: 8px;
  min-height: 200px;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.fleet-panoramic-empty:hover {
  background: radial-gradient(circle at 50% 50%, #1a222e 0%, #0c1017 100%);
}
.fleet-panoramic-empty-icon {
  font-size: 34px;
  color: var(--portal-cyan, #22c6de);
  margin-bottom: 2px;
}
.fleet-panoramic-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #eef1f6;
}
.fleet-panoramic-empty-desc {
  font-size: 12.5px;
  color: #7d8493;
  max-width: 480px;
  line-height: 1.5;
}
.fleet-panoramic-empty-desc strong {
  color: #c0c8d4;
}

/* Image Fullscreen Zoom Modal */
.fleet-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.94);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  cursor: pointer !important;
  user-select: none;
}
.fleet-image-modal img {
  max-width: 96vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.12);
  cursor: default !important;
  pointer-events: auto;
}
.fleet-image-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  z-index: 1000000;
}
.fleet-image-modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.08);
}

/* Fleet Toolbar & Sorting Controls */
.fleet-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fleet-hangar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 12px;
}
.fleet-hangar-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.fleet-hangar-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #c0c8d4;
  white-space: nowrap;
}
.fleet-bulk-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-fleet-bulk {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: #aab2c0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-fleet-bulk:hover {
  background: rgba(34, 198, 222, 0.12);
  border-color: rgba(34, 198, 222, 0.4);
  color: #22c6de;
}
.btn-fleet-bulk.active {
  background: rgba(34, 198, 222, 0.16);
  border-color: #22c6de;
  color: #22c6de;
  font-weight: 700;
}
.fleet-sort-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #101318;
  padding: 4px 8px;
  border: 1px solid #1e2430;
  border-radius: 8px;
}
.fleet-sort-label {
  font-size: 11.5px;
  color: #7d8493;
  margin-right: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}
.fleet-sort-btn {
  padding: 4px 10px;
  background: #14171e;
  border: 1px solid #232935;
  border-radius: 6px;
  color: #8b929f;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.fleet-sort-btn:hover {
  background: #1c222c;
  color: #eef1f6;
  border-color: #3b4457;
}
.fleet-sort-btn.active {
  background: rgba(34, 198, 222, 0.15);
  border-color: var(--portal-cyan, #22c6de);
  color: var(--portal-cyan, #22c6de);
}

/* Ship Card Details & Size Meta */
.fleet-ship-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #1c212a;
}
.fleet-ship-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffb84d;
  background: rgba(255, 184, 77, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 184, 77, 0.22);
}
.fleet-ship-size-class {
  font-size: 10.5px;
  color: #7d8493;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* Fleet Ship Availability Selectors */
.fleet-ship-options {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #1c212a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fleet-ship-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 10px;
  transition: background 0.15s, border-color 0.15s;
}
.fleet-ship-option-row:hover {
  background: rgba(34, 198, 222, 0.04);
  border-color: rgba(34, 198, 222, 0.2);
}
.fleet-option-checkbox {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #22c6de;
  margin: 0;
  flex-shrink: 0;
}
.fleet-option-checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.fleet-option-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 11.5px;
  line-height: 1.3;
  color: #c0c8d4;
  text-decoration: underline;
  text-decoration-color: rgba(34, 198, 222, 0.45);
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.fleet-option-link:hover {
  color: #22c6de;
  text-decoration-color: #22c6de;
}


/* Calendario: enlace al anuncio de Discord con aspecto de botón y número de inscritos en cada evento */
.restored-hr a.discord-link{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:6px;border:1px solid #5865f2;background:#1f2650;color:#dfe3ff;font-weight:600;text-decoration:none}
.restored-hr a.discord-link:hover{background:#2c3577;border-color:#8a94ff}
.calendar-event-signups{display:block;font-size:10px;color:#86efac;margin-top:3px}

/* Unified View Mode Toggles (Operaciones, Ascensos, Administración) */
.view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.view-mode-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #101318;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #1f2530;
}
.view-mode-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #8b929f;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.view-mode-btn:hover {
  color: #eef1f6;
  background: rgba(255, 255, 255, 0.04);
}
.view-mode-btn.active {
  background: rgba(34, 198, 222, 0.16);
  border: 1px solid rgba(34, 198, 222, 0.35);
  color: var(--portal-cyan, #22c6de);
  font-weight: 700;
}
.btn-primary-action {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: #1f3647;
  border: 1px solid rgba(34, 198, 222, 0.4);
  color: #5ed6e7;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-primary-action:hover {
  background: #23455d;
  color: #83e4f2;
}

/* Fleet Member Search & Role Filter Bar */
.fleet-filter-bar {
  background: #101318;
  border: 1px solid #1f2530;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fleet-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.fleet-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}
.fleet-search-icon {
  position: absolute;
  left: 10px;
  font-size: 12px;
  color: #636d7e;
  pointer-events: none;
}
.fleet-search-input {
  width: 100%;
  background: #141820;
  border: 1px solid #232935;
  border-radius: 6px;
  padding: 6px 30px 6px 30px;
  color: #eef1f6;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fleet-search-input:focus {
  border-color: var(--portal-cyan, #22c6de);
  box-shadow: 0 0 0 2px rgba(34, 198, 222, 0.15);
}
.fleet-search-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #7d8493;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}
.fleet-search-clear:hover {
  color: #eef1f6;
}
.fleet-count-badge {
  font-size: 11.5px;
  color: #7d8493;
  white-space: nowrap;
}
.fleet-role-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.fleet-role-btn {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: #14171e;
  border: 1px solid #232935;
  color: #8b929f;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.fleet-role-btn:hover {
  background: #1c222c;
  color: #eef1f6;
  border-color: #3b4457;
}
.fleet-role-btn.active {
  background: rgba(34, 198, 222, 0.15);
  border-color: var(--portal-cyan, #22c6de);
  color: var(--portal-cyan, #22c6de);
}
.fleet-ship-role-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

/* Flota de la Organización (Hangar Conjunto) */
.org-fleet-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.org-fleet-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.org-stat-card {
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.org-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--portal-cyan, #22c6de);
}
.org-stat-card.events::after { background: #3fb950; }
.org-stat-card.rent::after { background: #ffb84d; }
.org-stat-card.total::after { background: #58a6ff; }
.org-stat-card.members::after { background: #bc8cff; }

.org-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #7d8493;
}
.org-stat-value {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.org-stat-sub {
  font-size: 11.5px;
  color: #8b929f;
}

.org-fleet-controls {
  background: #12151b;
  border: 1px solid #21262f;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.org-fleet-controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.org-mode-toggles {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #0d1015;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #1c222c;
}
.org-mode-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #8b929f;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.org-mode-btn:hover {
  color: #eef1f6;
}
.org-mode-btn.active {
  background: #1c222c;
  color: var(--portal-cyan, #22c6de);
  font-weight: 700;
}
.org-mode-btn.active.events {
  color: #5cc46e;
}
.org-mode-btn.active.rent {
  color: #ffb84d;
}

.org-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.org-fleet-card {
  background: #14171d;
  border: 1px solid #21262f;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.org-fleet-card:hover {
  transform: translateY(-2px);
  border-color: #353e4e;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.org-fleet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.org-fleet-ship-title {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}
.org-fleet-ship-slug {
  font-size: 11px;
  font-weight: 600;
  color: #22c6de;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.org-fleet-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.avail-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.avail-tag.org {
  background: rgba(63, 185, 80, 0.15);
  color: #5cc46e;
  border: 1px solid rgba(63, 185, 80, 0.3);
}
.avail-tag.rent {
  background: rgba(255, 184, 77, 0.15);
  color: #ffb84d;
  border: 1px solid rgba(255, 184, 77, 0.3);
}

.org-fleet-owner-box {
  background: #0f1217;
  border: 1px solid #1a202a;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.org-owner-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.org-owner-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e2430;
  color: #c0c8d4;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.org-owner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.org-owner-name {
  font-size: 12px;
  font-weight: 700;
  color: #eef1f6;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-owner-name:hover {
  color: #22c6de;
  text-decoration: underline;
}
.org-owner-div {
  font-size: 10.5px;
  color: #7d8493;
  display: flex;
  align-items: center;
  gap: 4px;
}
.org-div-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
  background: #1c222c;
  color: #aab2c0;
}
.org-div-tag.merr { background: rgba(56, 139, 253, 0.18); color: #58a6ff; }
.org-div-tag.trade { background: rgba(227, 179, 65, 0.18); color: #e3b341; }
.org-div-tag.opes { background: rgba(240, 136, 62, 0.18); color: #f0883e; }
.org-div-tag.mandalorianos { background: rgba(248, 81, 73, 0.18); color: #f85149; }

/* Tactical Next Operation Card on Dashboard */
.tactical-next-op-card {
  background: linear-gradient(135deg, #0d1622 0%, #101b2a 50%, #0d1219 100%);
  border: 1px solid rgba(34, 198, 222, 0.35);
  box-shadow: 0 0 24px rgba(34, 198, 222, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.tactical-next-op-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tactical-op-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(34, 198, 222, 0.12);
  border: 1px solid rgba(34, 198, 222, 0.25);
  color: #22c6de;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tactical-op-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tactical-op-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #22c6de;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tactical-op-title {
  font-family: var(--ccbe-font-tech, 'Space Grotesk', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.tactical-op-sub {
  font-size: 12.5px;
  color: #8b929f;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.tactical-op-time {
  color: #eef1f6;
  font-weight: 600;
}

/* Discord Status Dot & Certification Badges */
.discord-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.discord-status-dot.synced {
  background: #3fb950;
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.6);
}
.discord-status-dot.pending {
  background: #6e7681;
}
.cert-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(227, 179, 65, 0.18);
  border: 1px solid rgba(227, 179, 65, 0.4);
  color: #e3b341;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}



/* Insignias de actividad: iconos en el listado, la cabecera del perfil y el panel del perfil */
.ccbe-badges{display:inline-flex;align-items:center;gap:3px;vertical-align:middle;margin-left:6px}
.ccbe-badges img{display:block;width:auto}
.ccbe-badges-sm img{height:14px}
.ccbe-badges-md img{height:22px}
.ccbe-badges-lg img{height:44px}
.ccbe-badges-lg{gap:8px;margin-left:0;flex-wrap:wrap}
.ccbe-badges-more{font-size:11px;font-weight:700;color:#b5cbdc;margin-left:2px}
.badge-panel{margin-top:14px}
.badge-panel-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.badge-panel-head h3{margin:0;margin-right:auto}
.badge-panel-icons{margin:12px 0 6px}
.badge-progress{margin:6px 0 10px;color:#d6e7f2}
.badge-months{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0}
.badge-month{font-size:11px;padding:2px 6px;border-radius:4px;border:1px solid #2b465b}
.badge-month.on{background:rgba(16,185,129,.15);border-color:rgba(16,185,129,.45);color:#86efac}
.badge-month.off{background:rgba(148,163,184,.08);color:#7d8796}
.badge-history{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:4px}
.badge-history li{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
