/* Workshop Studio — Dark theme with Oodle branding
   Brand guidelines: docs/global.css
   Logo: app/assets/images/oodle-logo.svg */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Oodle brand colors */
  --purple: #8274FD;
  --purple-dark: #625FD9;
  --purple-light: #A99BFF;
  --purple-lighter: #C4BEFF;
  --purple-bg: rgba(130, 116, 253, 0.13);
  --purple-border: rgba(130, 116, 253, 0.27);
  --cerise: #EA385E;
  --azure: #2AB6FB;
  --parakeet: #41C86B;
  --cantaloupe: #FFBA49;
  --eggplant: #232167;

  /* Background & surface */
  --bg: #0F0F13;
  --surface: #18181F;
  --surface-raised: #1E1E28;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(255, 255, 255, 0.15);

  /* Text */
  --text: #ffffff;
  --text-secondary: #C1C1C1;
  --text-muted: #888;

  /* SSC column colors — aligned to Oodle brand */
  --stop-color: #EA385E;
  --stop-bg: #FFE5EB;
  --stop-text: #B02A47;
  --start-color: #41C86B;
  --start-bg: #E2FFE9;
  --start-text: #2D6A4F;
  --continue-color: #2AB6FB;
  --continue-bg: #E1F3FF;
  --continue-text: #1A5A8B;

  /* Quadrant colors */
  --quadrant-magic: rgba(255, 186, 73, 0.18);
  --quadrant-major: rgba(65, 200, 107, 0.12);
  --quadrant-delegate: rgba(80, 80, 90, 0.18);
  --quadrant-deprioritize: rgba(234, 56, 94, 0.12);

  /* Sizing */
  --header-height: 60px;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 60px;

  /* Fonts — Oodle brand */
  --font: 'Encode Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Poppins', sans-serif;

  /* Gradients — Oodle brand */
  --gradient-sunrise: linear-gradient(90deg, #8274FD 0%, #EA385E 100%);
  --gradient-seabed: linear-gradient(90deg, #2AB6FB 0%, #41C86B 100%);
  --gradient-primary: var(--gradient-sunrise);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  overflow: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: var(--purple-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash {
  padding: 10px 20px;
  font-size: 13px;
  text-align: center;
  animation: flash-fade 4s ease forwards;
}

.flash--notice {
  background: rgba(65, 200, 107, 0.15);
  color: var(--parakeet);
  border-bottom: 1px solid rgba(65, 200, 107, 0.3);
}

.flash--alert {
  background: rgba(234, 56, 94, 0.15);
  color: var(--cerise);
  border-bottom: 1px solid rgba(234, 56, 94, 0.3);
}

@keyframes flash-fade {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; height: 0; padding: 0; overflow: hidden; }
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

/* header__logo styles are defined in the Header Logo Image section below */

.header__nav {
  display: flex;
  gap: 4px;
}

.header__phase-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  transition: all 0.15s;
  text-decoration: none;
}

.header__phase-btn--active {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: var(--purple-light);
}

.header__phase-btn--clickable {
  cursor: pointer;
}

.header__phase-btn--clickable:hover {
  background: var(--purple-bg);
  border-color: var(--purple-border);
  color: var(--purple-light);
  text-decoration: none;
}

.header__phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  font-size: 10px;
  font-weight: 800;
  color: var(--text-secondary);
}

.header__phase-btn--active .header__phase-num {
  background: var(--purple);
  color: #fff;
}

.header__info {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.header__room-code {
  font-weight: 700;
  color: var(--purple-light);
  letter-spacing: 1px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--purple-border);
  color: var(--purple-light);
}

.btn--danger {
  background: rgba(234, 56, 94, 0.15);
  border: 1px solid rgba(234, 56, 94, 0.3);
  color: var(--cerise);
}

.btn--danger:hover {
  background: rgba(234, 56, 94, 0.25);
}

.btn--small {
  padding: 5px 12px;
  font-size: 11px;
}

.btn--ghost {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--purple-border);
  color: var(--purple-light);
}

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* ============================================
   Forms
   ============================================ */
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-input:focus {
  border-color: var(--purple);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 60px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group {
  margin-bottom: 16px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================
   Landing / Lobby Card
   ============================================ */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.landing__card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
}

.landing__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
  text-align: center;
}

.landing__title span {
  color: var(--purple);
}

.landing__subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  text-align: center;
}

.landing__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.landing__section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ============================================
   Room Code Display
   ============================================ */
.room-code {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 10px;
  text-align: center;
  color: var(--purple);
  margin: 16px 0;
  font-family: var(--font-heading);
}

/* ============================================
   Participant List
   ============================================ */
.participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
}

.participant-chip__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.participant-chip__tag {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--purple-bg);
  color: var(--purple-light);
  border: 1px solid var(--purple-border);
}

/* ============================================
   Phase Content Areas
   ============================================ */
.phase-content {
  padding: 32px 36px;
}

.phase-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.phase-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.phase-header__left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.phase-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Strategic Areas (Lobby Config)
   ============================================ */
.strategic-areas {
  margin: 20px 0;
}

.strategic-areas__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.strategic-area-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.strategic-area-item__color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.strategic-area-item__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
}

.strategic-area-item__actions {
  display: flex;
  gap: 4px;
}

/* ============================================
   Area Badge (used throughout)
   ============================================ */
.area-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ============================================
   SSC Board
   ============================================ */
.ssc-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.ssc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.ssc-toolbar__title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssc-toolbar__count {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.ssc-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  flex: 1;
  overflow: hidden;
}

.ssc-column {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.ssc-column__header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.ssc-column__title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssc-column__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 800;
}

.ssc-column__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* SSC column theme colors */
.ssc-column--stop {
  border-top: 3px solid var(--stop-color);
}
.ssc-column--stop .ssc-column__title { color: var(--stop-color); }
.ssc-column--stop .ssc-column__count { background: rgba(234, 56, 94, 0.15); color: var(--stop-color); }

.ssc-column--start {
  border-top: 3px solid var(--start-color);
}
.ssc-column--start .ssc-column__title { color: var(--start-color); }
.ssc-column--start .ssc-column__count { background: rgba(65, 200, 107, 0.15); color: var(--start-color); }

.ssc-column--continue {
  border-top: 3px solid var(--continue-color);
}
.ssc-column--continue .ssc-column__title { color: var(--continue-color); }
.ssc-column--continue .ssc-column__count { background: rgba(42, 182, 251, 0.15); color: var(--continue-color); }

/* Sticky notes */
.sticky-note {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.sticky-note--stop { background: var(--stop-bg); border-color: rgba(234, 56, 94, 0.3); color: #333; }
.sticky-note--start { background: var(--start-bg); border-color: rgba(65, 200, 107, 0.3); color: #333; }
.sticky-note--continue { background: var(--continue-bg); border-color: rgba(42, 182, 251, 0.3); color: #333; }

.sticky-note__body {
  margin-bottom: 8px;
  word-wrap: break-word;
}

.sticky-note__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.sticky-note__meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sticky-note__author {
  font-style: italic;
  color: #666;
}

.sticky-note__actions {
  display: flex;
  gap: 4px;
}

.sticky-note__edit-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  font-family: var(--font);
}

.sticky-note__edit-btn:hover {
  color: #333;
}

/* Add note button */
.ssc-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px dashed;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}

.ssc-add-btn--stop { border-color: rgba(234, 56, 94, 0.4); color: var(--stop-color); }
.ssc-add-btn--start { border-color: rgba(65, 200, 107, 0.4); color: var(--start-color); }
.ssc-add-btn--continue { border-color: rgba(42, 182, 251, 0.4); color: var(--continue-color); }

.ssc-add-btn:hover {
  border-style: solid;
  background: rgba(255, 255, 255, 0.05);
}

/* Note form inline */
.note-form {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
}

.note-form textarea {
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--border);
  color: var(--text);
  margin-bottom: 8px;
}

/* Area picker */
.area-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.area-picker__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  width: 100%;
}

.area-picker__chip {
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  background: transparent;
  font-family: var(--font);
}

.area-picker__chip--selected {
  color: #fff !important;
}

/* ============================================
   Clustering Phase
   ============================================ */
.clustering {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 36px;
}

.theme-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s;
}

.theme-card:hover {
  border-color: var(--purple-border);
}

.theme-card__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.theme-card__description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.theme-card__meta {
  font-size: 11px;
  color: var(--text-muted);
}

.theme-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* AI Loading State */
.ai-loading {
  text-align: center;
  padding: 60px 20px;
}

.ai-loading__spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ai-loading__text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Notes by Theme Section */
.notes-by-theme {
  margin-top: 32px;
}

.notes-by-theme__section {
  margin-bottom: 24px;
}

.notes-by-theme__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   Voting Phase
   ============================================ */
.voting {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 36px;
}

.voting__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.voting__instructions {
  flex: 1;
}

.voting__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.progress-bar {
  width: 180px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--purple);
  border-radius: 3px;
  transition: width 0.3s;
}

.progress-label {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.vote-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.vote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.vote-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.vote-card__description {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.score-row__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 50px;
}

.score-row__buttons {
  display: flex;
  gap: 6px;
}

.score-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.score-btn:hover {
  border-color: var(--purple-border);
  color: var(--purple-light);
}

.score-btn--active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.score-btn--disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Score key */
.score-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.score-key__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.score-key__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
}

/* Vote submitted state */
.vote-submitted {
  text-align: center;
  padding: 60px 20px;
}

.vote-submitted__check {
  font-size: 48px;
  margin-bottom: 16px;
}

.vote-submitted__text {
  font-size: 18px;
  color: var(--parakeet);
  font-weight: 700;
}

.vote-submitted__sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Validation error */
.vote-error {
  color: var(--cerise);
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

/* ============================================
   Magic Quadrant Matrix
   ============================================ */
.matrix {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 36px;
}

.matrix__chart-area {
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-template-rows: 1fr auto;
  max-width: 680px;
  margin: 24px auto;
}

.matrix__y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 12px;
}

.matrix__y-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.matrix__canvas {
  position: relative;
  padding-bottom: 80%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.matrix__quadrant {
  position: absolute;
  width: 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
}

.matrix__quadrant--tl { top: 0; left: 0; background: var(--quadrant-major); border-right: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.matrix__quadrant--tr { top: 0; right: 0; background: var(--quadrant-magic); border-bottom: 1px dashed var(--border); }
.matrix__quadrant--bl { bottom: 0; left: 0; background: var(--quadrant-deprioritize); border-right: 1px dashed var(--border); }
.matrix__quadrant--br { bottom: 0; right: 0; background: var(--quadrant-delegate); }

.matrix__quadrant-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.matrix__quadrant-sub {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

.matrix__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(130, 116, 253, 0.53);
  transform: translate(-50%, -50%);
  z-index: 10;
  cursor: default;
}

.matrix__dot--adjusted {
  border: 2px solid var(--cantaloupe);
  box-shadow: 0 0 8px rgba(255, 186, 73, 0.53);
}

.matrix__dot-label {
  position: absolute;
  transform: translate(-50%, 12px);
  font-size: 10px;
  background: rgba(15, 15, 19, 0.9);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  color: var(--text);
  z-index: 10;
}

.matrix__x-axis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
}

.matrix__x-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* ============================================
   Executive Summary
   ============================================ */
.summary {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 36px;
}

.summary__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.summary__rank {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary__description {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.summary__scores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.summary__score {
  font-size: 12px;
  color: var(--text-secondary);
}

.summary__score strong {
  color: var(--text);
}

/* Quadrant badges */
.quadrant-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quadrant-badge--magic_quadrant {
  background: rgba(255, 186, 73, 0.15);
  color: var(--cantaloupe);
  border: 1px solid rgba(255, 186, 73, 0.3);
}

.quadrant-badge--major_projects {
  background: rgba(65, 200, 107, 0.15);
  color: var(--parakeet);
  border: 1px solid rgba(65, 200, 107, 0.3);
}

.quadrant-badge--delegate {
  background: rgba(150, 150, 160, 0.15);
  color: #999;
  border: 1px solid rgba(150, 150, 160, 0.3);
}

.quadrant-badge--deprioritize {
  background: rgba(234, 56, 94, 0.15);
  color: var(--cerise);
  border: 1px solid rgba(234, 56, 94, 0.3);
}

/* ============================================
   Waiting State
   ============================================ */
.waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.waiting__text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.waiting__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================
   Header Logo Image
   ============================================ */
.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo:hover {
  text-decoration: none;
}

.header__logo-img {
  height: 26px;
  width: auto;
}

/* ============================================
   Landing Logo
   ============================================ */
.landing__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.landing__logo-img {
  height: 40px;
  width: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.footer__logo {
  height: 16px;
  width: auto;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.footer:hover .footer__logo {
  opacity: 1;
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
