.ceo-shell {
  --ceo-navy: #102542;
  --ceo-navy-soft: #17335a;
  --ceo-bronze: #b88646;
  --ceo-sky: #d8e9ff;
  --ceo-card: rgba(255, 255, 255, 0.94);
  --ceo-border: rgba(16, 37, 66, 0.12);
  --ceo-muted: #5b6b82;
  --ceo-success: #18794e;
  --ceo-warning: #b36a00;
  --ceo-danger: #b42318;
  display: grid;
  gap: 20px;
}

.ceo-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(216, 233, 255, 0.45), transparent 34%),
    linear-gradient(135deg, #102542 0%, #17335a 52%, #214774 100%);
  color: #f6fbff;
  box-shadow: 0 24px 56px rgba(16, 37, 66, 0.24);
}

.ceo-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -110px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 134, 70, 0.28), rgba(184, 134, 70, 0));
  pointer-events: none;
}

.ceo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ceo-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1.08;
  color: inherit;
}

.ceo-hero p {
  margin: 0;
  max-width: 60ch;
  color: rgba(246, 251, 255, 0.82);
  line-height: 1.55;
}

.ceo-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ceo-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
}

.ceo-top-summary {
  display: grid;
  gap: 14px;
}

.ceo-summary-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.ceo-summary-card h3,
.ceo-panel-card h3,
.ceo-chart-card h3,
.ceo-section-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ceo-summary-list,
.ceo-plain-list,
.ceo-history-list {
  display: grid;
  gap: 10px;
}

.ceo-summary-item,
.ceo-list-item,
.ceo-history-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ceo-summary-item strong,
.ceo-list-item strong,
.ceo-history-item strong {
  font-size: 0.95rem;
}

.ceo-summary-item span,
.ceo-list-item span,
.ceo-history-item span,
.ceo-muted-text,
.ceo-small-text {
  color: rgba(246, 251, 255, 0.78);
}

.ceo-small-text {
  font-size: 12px;
}

.ceo-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ceo-quick-btn {
  min-width: 170px;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(16, 37, 66, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 252, 0.96));
  box-shadow: 0 12px 24px rgba(16, 37, 66, 0.08);
}

.ceo-quick-btn.secondary {
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.96), rgba(255, 241, 214, 0.96));
}

.ceo-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.ceo-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(233, 239, 247, 0.98));
  border: 1px solid var(--ceo-border);
  box-shadow: 0 18px 34px rgba(16, 37, 66, 0.08);
}

.ceo-nav-title {
  margin: 0 0 4px;
  color: var(--ceo-navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.ceo-nav-note {
  margin: 0 0 8px;
  color: var(--ceo-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ceo-nav-btn {
  width: 100%;
  justify-content: flex-start;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ceo-navy);
}

.ceo-nav-btn.active {
  background: linear-gradient(135deg, rgba(16, 37, 66, 0.96), rgba(23, 51, 90, 0.94));
  border-color: rgba(16, 37, 66, 0.3);
  color: #fff;
  box-shadow: 0 12px 24px rgba(16, 37, 66, 0.18);
}

.ceo-main {
  display: grid;
  gap: 18px;
}

.ceo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 37, 66, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.96));
  color: var(--ceo-navy);
}

.ceo-banner.success {
  background: linear-gradient(180deg, rgba(239, 253, 245, 0.96), rgba(221, 248, 233, 0.96));
  color: var(--ceo-success);
}

.ceo-banner.error {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(254, 226, 226, 0.98));
  color: var(--ceo-danger);
}

.ceo-grid,
.ceo-two-col,
.ceo-three-col,
.ceo-dashboard-grid,
.ceo-chart-grid,
.ceo-record-grid {
  display: grid;
  gap: 16px;
}

.ceo-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ceo-three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ceo-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ceo-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ceo-record-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ceo-panel-card,
.ceo-chart-card,
.ceo-section-card,
.ceo-metric-card {
  border-radius: 24px;
  background: var(--ceo-card);
  border: 1px solid var(--ceo-border);
  box-shadow: 0 18px 38px rgba(16, 37, 66, 0.08);
}

.ceo-panel-card,
.ceo-chart-card,
.ceo-section-card {
  padding: 22px;
}

.ceo-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ceo-section-head p {
  margin: 4px 0 0;
  color: var(--ceo-muted);
  line-height: 1.5;
}

.ceo-dashboard-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.ceo-dashboard-field {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.ceo-dashboard-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ceo-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ceo-metric-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.ceo-metric-label {
  color: var(--ceo-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ceo-metric-value {
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 700;
  color: var(--ceo-navy);
  line-height: 1.05;
}

.ceo-metric-meta {
  color: var(--ceo-muted);
  font-size: 12px;
}

.ceo-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ceo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(16, 37, 66, 0.08);
  background: #eef4fb;
  color: var(--ceo-navy);
}

.ceo-pill.success {
  background: rgba(24, 121, 78, 0.12);
  color: var(--ceo-success);
}

.ceo-pill.warning {
  background: rgba(179, 106, 0, 0.12);
  color: var(--ceo-warning);
}

.ceo-pill.danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--ceo-danger);
}

.ceo-pill.info {
  background: rgba(21, 94, 239, 0.12);
  color: #155eef;
}

.ceo-form {
  display: grid;
  gap: 14px;
}

.ceo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ceo-form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ceo-form .field,
.ceo-form label {
  display: grid;
  gap: 6px;
}

.ceo-form .field span,
.ceo-form label span,
.ceo-field-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ceo-muted);
}

.ceo-form textarea.inline-input {
  min-height: 118px;
  resize: vertical;
}

.ceo-form .actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ceo-form-note {
  color: var(--ceo-muted);
  font-size: 13px;
  line-height: 1.5;
}

.ceo-record-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
  border: 1px solid rgba(16, 37, 66, 0.08);
}

.ceo-record-card.overdue {
  border-color: rgba(180, 35, 24, 0.24);
  box-shadow: inset 0 0 0 1px rgba(180, 35, 24, 0.08);
}

.ceo-record-card.today {
  border-color: rgba(21, 94, 239, 0.2);
  box-shadow: inset 0 0 0 1px rgba(21, 94, 239, 0.08);
}

.ceo-record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ceo-record-title {
  margin: 0;
  color: var(--ceo-navy);
  font-size: 1rem;
}

.ceo-record-meta {
  display: grid;
  gap: 6px;
  color: var(--ceo-muted);
  font-size: 13px;
}

.ceo-record-desc {
  margin: 0;
  color: #20324a;
  line-height: 1.55;
  white-space: pre-wrap;
}

.ceo-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ceo-record-actions .ghost-btn,
.ceo-record-actions .primary-btn,
.ceo-record-actions .danger-btn {
  min-width: 0;
}

.ceo-progress {
  display: grid;
  gap: 8px;
}

.ceo-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e3ebf5;
  overflow: hidden;
}

.ceo-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17335a 0%, #b88646 100%);
}

.ceo-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ceo-calendar {
  display: grid;
  gap: 12px;
}

.ceo-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.ceo-calendar-head {
  display: contents;
}

.ceo-calendar-head span {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ceo-muted);
  text-transform: uppercase;
}

.ceo-calendar-day {
  min-height: 124px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #f7fafd;
  border: 1px solid rgba(16, 37, 66, 0.06);
}

.ceo-calendar-day.muted {
  opacity: 0.48;
}

.ceo-calendar-day.today {
  border-color: rgba(21, 94, 239, 0.24);
  box-shadow: inset 0 0 0 1px rgba(21, 94, 239, 0.12);
}

.ceo-calendar-date {
  font-weight: 700;
  color: var(--ceo-navy);
}

.ceo-calendar-event {
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(16, 37, 66, 0.08);
  color: var(--ceo-navy);
  font-size: 12px;
  line-height: 1.35;
}

.ceo-subtask-list {
  display: grid;
  gap: 8px;
}

.ceo-subtask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f2f7fb;
}

.ceo-subtask.done span {
  text-decoration: line-through;
  color: var(--ceo-muted);
}

.ceo-bar-list {
  display: grid;
  gap: 12px;
}

.ceo-bar-row {
  display: grid;
  gap: 6px;
}

.ceo-bar-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--ceo-navy);
  font-size: 13px;
}

.ceo-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e8eef6;
  overflow: hidden;
}

.ceo-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #17335a 0%, #b88646 100%);
}

.ceo-bar-fill.alt {
  background: linear-gradient(90deg, #176b87 0%, #40b6c4 100%);
}

.ceo-empty-state {
  padding: 24px;
  border-radius: 18px;
  background: #f6f8fb;
  color: var(--ceo-muted);
  text-align: center;
  line-height: 1.6;
}

.ceo-swot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ceo-swot-card {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbfd;
  border: 1px solid rgba(16, 37, 66, 0.06);
}

.ceo-swot-card h4 {
  margin: 0 0 8px;
  color: var(--ceo-navy);
}

.ceo-swot-card textarea.inline-input {
  min-height: 120px;
}

.ceo-version-list {
  display: grid;
  gap: 10px;
}

.ceo-version-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid rgba(16, 37, 66, 0.06);
}

.ceo-version-item.current {
  border-color: rgba(184, 134, 70, 0.28);
  box-shadow: inset 0 0 0 1px rgba(184, 134, 70, 0.12);
}

.ceo-version-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ceo-history-list {
  max-height: 420px;
  overflow: auto;
}

.ceo-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ceo-inline-stat {
  flex: 1 1 140px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f6f9fd;
  border: 1px solid rgba(16, 37, 66, 0.06);
}

.ceo-inline-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ceo-navy);
}

.ceo-inline-stat span {
  color: var(--ceo-muted);
  font-size: 13px;
}

.ceo-summary-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

html[data-theme="dark"] .ceo-panel-card,
html[data-theme="dark"] .ceo-chart-card,
html[data-theme="dark"] .ceo-section-card,
html[data-theme="dark"] .ceo-metric-card,
html[data-theme="dark"] .ceo-nav,
html[data-theme="dark"] .ceo-banner,
html[data-theme="dark"] .ceo-record-card,
html[data-theme="dark"] .ceo-version-item,
html[data-theme="dark"] .ceo-inline-stat,
html[data-theme="dark"] .ceo-calendar-day,
html[data-theme="dark"] .ceo-subtask,
html[data-theme="dark"] .ceo-swot-card,
html[data-theme="dark"] .ceo-empty-state {
  background: rgba(18, 24, 38, 0.94);
  border-color: rgba(216, 233, 255, 0.08);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .ceo-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  color: #e3edf8;
}

html[data-theme="dark"] .ceo-nav-btn.active {
  background: linear-gradient(135deg, #d8e9ff 0%, #b88646 100%);
  color: #0f172a;
}

html[data-theme="dark"] .ceo-panel-card h3,
html[data-theme="dark"] .ceo-chart-card h3,
html[data-theme="dark"] .ceo-section-card h3,
html[data-theme="dark"] .ceo-record-title,
html[data-theme="dark"] .ceo-metric-value,
html[data-theme="dark"] .ceo-nav-title,
html[data-theme="dark"] .ceo-version-item strong,
html[data-theme="dark"] .ceo-calendar-date,
html[data-theme="dark"] .ceo-bar-row-top,
html[data-theme="dark"] .ceo-inline-stat strong {
  color: #f7fbff;
}

html[data-theme="dark"] .ceo-section-head p,
html[data-theme="dark"] .ceo-dashboard-field span,
html[data-theme="dark"] .ceo-metric-label,
html[data-theme="dark"] .ceo-metric-meta,
html[data-theme="dark"] .ceo-form-note,
html[data-theme="dark"] .ceo-nav-note,
html[data-theme="dark"] .ceo-record-meta,
html[data-theme="dark"] .ceo-record-desc,
html[data-theme="dark"] .ceo-empty-state,
html[data-theme="dark"] .ceo-inline-stat span {
  color: rgba(227, 237, 248, 0.76);
}

@media (max-width: 1200px) {
  .ceo-dashboard-grid,
  .ceo-record-grid,
  .ceo-two-col,
  .ceo-chart-grid,
  .ceo-summary-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ceo-three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ceo-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .ceo-workspace {
    grid-template-columns: 1fr;
  }

  .ceo-nav {
    position: static;
  }

  .ceo-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ceo-nav-title,
  .ceo-nav-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .ceo-hero,
  .ceo-panel-card,
  .ceo-chart-card,
  .ceo-section-card,
  .ceo-metric-card,
  .ceo-nav {
    padding: 18px;
    border-radius: 20px;
  }

  .ceo-dashboard-grid,
  .ceo-record-grid,
  .ceo-two-col,
  .ceo-chart-grid,
  .ceo-three-col,
  .ceo-form-grid,
  .ceo-form-grid.three,
  .ceo-swot-grid,
  .ceo-summary-split,
  .ceo-nav {
    grid-template-columns: 1fr;
  }

  .ceo-calendar-grid {
    gap: 8px;
  }

  .ceo-calendar-day {
    min-height: 92px;
    padding: 10px;
  }

  .ceo-quick-btn {
    min-width: calc(50% - 6px);
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 520px) {
  .ceo-quick-btn {
    min-width: 100%;
    flex-basis: 100%;
  }

  .ceo-section-head,
  .ceo-dashboard-controls,
  .ceo-banner,
  .ceo-record-head,
  .ceo-version-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
