:root {
  color-scheme: dark;
  --bg: #111318;
  --sidebar: #171a21;
  --surface: #1a1e26;
  --surface-2: #20252e;
  --surface-3: #292f39;
  --line: rgba(237, 242, 247, .11);
  --line-strong: rgba(237, 242, 247, .19);
  --text: #f5f7f4;
  --muted: #b4bcc7;
  --muted-2: #9099a5;
  --violet: #7cff6b;
  --violet-2: #61dc52;
  --cyan: #76e6d0;
  --green: #7cff6b;
  --amber: #f3be65;
  --red: #ff788c;
  --radius: 12px;
  --shadow: 0 16px 38px rgba(0, 0, 0, .22);
  font-family: 'IBM Plex Sans', sans-serif;
}

body {
  background:
    linear-gradient(135deg, rgba(124, 255, 107, .035), transparent 35%),
    radial-gradient(ellipse at 92% -12%, rgba(124, 255, 107, .075), transparent 34%),
    var(--bg);
}

.sidebar {
  background: linear-gradient(180deg, #171a21 0%, #13161c 100%);
  border-right-color: rgba(237, 242, 247, .13);
}

.brand-mark {
  border-radius: 10px;
  color: var(--violet);
  background: rgba(124, 255, 107, .09);
  box-shadow: inset 0 0 0 1px rgba(124, 255, 107, .23);
}

.brand-copy strong,
.page-intro h1,
.panel-heading h2,
.dialog-header h2,
.performance-card-header h2 {
  font-family: 'IBM Plex Sans', sans-serif;
  letter-spacing: -.045em;
}

.brand-copy strong span,
.heading-accent,
.intro-eyebrow,
.nav-item.active .nav-icon,
.sidebar-tip .eyebrow {
  color: var(--violet);
}

.nav-item { border-radius: 8px; }
.nav-item.active {
  color: #f5f7f4;
  background: linear-gradient(90deg, rgba(124, 255, 107, .13), rgba(124, 255, 107, .035));
  border-color: rgba(124, 255, 107, .22);
}
.nav-current {
  background: var(--violet);
  box-shadow: 0 0 12px rgba(124, 255, 107, .48);
}

.panel,
.metric-card,
.sidebar-tip,
.performance-card-report {
  border-color: var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .13);
}

.panel-heading h2,
.performance-card-header h2,
.dialog-header h2 { color: var(--text); }

.metric-card {
  background: linear-gradient(145deg, #1c2028, #181b22);
}
.metric-icon,
.tip-icon,
.assignment-avatar,
.skill-symbol {
  background: rgba(124, 255, 107, .09);
  color: var(--violet);
}

.button-primary {
  color: #10140f;
  background: var(--violet);
  box-shadow: 0 6px 18px rgba(124, 255, 107, .17);
}
.button-primary:hover {
  background: #8cff7d;
  box-shadow: 0 8px 22px rgba(124, 255, 107, .24);
}
.button-outline:hover,
.icon-button:hover {
  border-color: rgba(124, 255, 107, .34);
  background: rgba(124, 255, 107, .07);
}

.bar-fill,
.skill-track span,
.tip-progress span,
.plan-progress-track span {
  background: linear-gradient(90deg, #63df55, #a5ff93);
}
.status-pill.completed,
.assignment-complete-button.is-completed {
  border-color: rgba(124, 255, 107, .32);
  color: #a5ff93;
  background: rgba(124, 255, 107, .09);
}

.today-dot,
.status-dot { background: var(--violet); }

input,
select,
textarea {
  font-family: 'IBM Plex Sans', sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.app-dialog {
  border-color: var(--line-strong);
  background: #1d2129;
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62);
}

.app-dialog::backdrop { background: rgba(7, 9, 12, .78); }
.dialog-header .eyebrow { color: var(--violet); }
.dialog-header h2 { font: 600 19px 'IBM Plex Sans', sans-serif; }
.dialog-close {
  background: #292e37;
  color: #bdc5cf;
}
.dialog-close:hover { background: rgba(124, 255, 107, .12); color: var(--violet); }
.dialog-field label,
.dialog-field > span { color: #d1d7de; }
.dialog-field input,
.dialog-field select,
.dialog-field textarea,
.select-field select {
  border-color: rgba(237, 242, 247, .2);
  background: #171a21;
  color: var(--text);
}
.dialog-field input::placeholder,
.dialog-field textarea::placeholder { color: #858e99; }
.dialog-field small { color: #aab3bd; }
.dialog-select-wrap [data-icon],
.select-chevron { color: #c0c8d1; }
.nav-count {
  color: #a5ff93;
  background: rgba(124, 255, 107, .1);
}

body,
body * {
  font-family: 'IBM Plex Sans', sans-serif;
}

.panel,
.performance-card-report {
  background: linear-gradient(145deg, #1d2129, #191d24);
}

@media (max-width: 600px) {
  #page-assignments .table-scroll {
    margin: 0;
    padding: 0;
    overflow-x: visible;
  }
  #page-assignments table {
    min-width: 0;
    table-layout: fixed;
  }
  #page-assignments th:nth-child(2),
  #page-assignments td:nth-child(2),
  #page-assignments th:nth-child(3),
  #page-assignments td:nth-child(3),
  #page-assignments th:nth-child(5),
  #page-assignments td:nth-child(5),
  #page-assignments th:nth-child(6),
  #page-assignments td:nth-child(6) {
    display: none;
  }
  #page-assignments th:nth-child(1),
  #page-assignments td:nth-child(1) {
    width: 48%;
    min-width: 0;
    padding-left: 7px;
    padding-right: 4px;
  }
  #page-assignments th:nth-child(4),
  #page-assignments td:nth-child(4) {
    width: 23%;
    padding-left: 4px;
    padding-right: 4px;
    white-space: normal;
  }
  #page-assignments th:nth-child(7),
  #page-assignments td:nth-child(7) {
    width: 29%;
    padding-left: 3px;
    padding-right: 3px;
  }
  #page-assignments .assignment-name-cell {
    min-width: 0;
  }
  #page-assignments .assignment-avatar {
    display: none;
  }
  #page-assignments .assignment-title {
    overflow-wrap: anywhere;
  }
  #page-assignments .table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 3px;
  }
  #page-assignments .assignment-complete-button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 4px 5px;
    gap: 4px;
    font-size: 9px;
  }
  #page-assignments .assignment-complete-button svg {
    width: 13px;
    height: 13px;
  }
  #page-assignments .table-actions > .icon-button {
    width: 25px;
    height: 25px;
  }
}

.reminder-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, #1d2129, #191d24);
}
.reminder-symbol {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--violet);
  background: rgba(124, 255, 107, .09);
}
.reminder-symbol svg { width: 18px; height: 18px; }
.reminder-copy { flex: 1; min-width: 0; }
.reminder-copy strong { display: block; color: var(--text); font-size: 13px; }
.reminder-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.reminder-banner button { flex: none; }
#field-reminderLeadDays { min-height: 40px; }

@media (max-width: 680px) {
  .reminder-banner { align-items: flex-start; flex-wrap: wrap; }
  .reminder-symbol { width: 34px; height: 34px; }
  .reminder-copy { flex: 1 1 calc(100% - 52px); }
  .reminder-banner button { margin-left: 48px; }
}

@media (max-width: 420px) {
  .reminder-banner { gap: 10px; padding: 12px; }
  .reminder-banner button { width: calc(100% - 44px); margin-left: 44px; }
  .reminder-copy p { font-size: 10px; }
}


#refreshPlanButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

#chooseCareerFromPlan {
  margin-top: 1rem;
}


.career-selection-controls {
  display: grid;
  flex: 0 0 min(100%, 330px);
  gap: 9px;
  min-width: 0;
}
.career-selection-controls .select-field {
  width: 100%;
}
.career-branch-hint {
  margin: 0;
  color: var(--muted, #a0a7ae);
  font-size: 11px;
  line-height: 1.55;
}
.career-branch-edit {
  justify-self: start;
  padding: 2px 0;
  color: var(--lime, #c9f45a);
  font-size: 11px;
}
@media (max-width: 760px) {
  .career-selector-panel {
    display: grid;
    gap: 14px;
  }
  .career-selection-controls {
    width: 100%;
    flex-basis: auto;
  }
}

.dashboard-career-action {
  margin-top: 12px;
}

.sidebar-career-action {
  margin-top: 8px;
  color: var(--lime, #c9f45a);
  font-size: 10px;
}
