/* LS Coaching Dashboard — Soft Leadership Coaching UI */

:root {
  --ls-blue: #0B3A6E;
  --ls-blue-deep: #072A52;
  --ls-blue-soft: rgba(11, 58, 110, 0.08);
  --coach-teal: #2F7F8A;
  --coach-teal-soft: rgba(47, 127, 138, 0.12);
  --coach-mist: #F3F6FA;
  --coach-ink: #243447;
  --surface: #ffffff;
  --line: rgba(11, 58, 110, 0.08);
  --shadow-soft: 0 8px 28px rgba(11, 58, 110, 0.06);
  --radius: 1.25rem;
  --ls-ci-red: #ED164B; /* logo only */
}

body {
  margin: 0;
  color: var(--coach-ink);
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, rgba(47, 127, 138, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(11, 58, 110, 0.08), transparent 50%),
    linear-gradient(180deg, #EEF3F8 0%, #F3F6FA 40%, #F7F9FC 100%);
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  min-height: 100vh;
}

.logo-ci {
  display: block;
  height: 36px;
  width: auto;
  object-fit: contain;
}

.logo-wrap {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.site-header-bar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 13px;
}

.header-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #94a3b8;
}

.btn-settings,
.btn-ghost,
.btn-primary {
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  border-radius: 12px;
  padding: 9px 14px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-settings,
.btn-ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ls-blue);
}

.btn-settings:hover,
.btn-ghost:hover {
  background: #F3F6FA;
}

.btn-primary {
  background: var(--ls-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 58, 110, 0.22);
}

.btn-primary:hover {
  background: var(--ls-blue-deep);
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.field:focus {
  border-color: var(--coach-teal);
  box-shadow: 0 0 0 3px rgba(47, 127, 138, 0.12);
}

/* Pill tabs */
#tab-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

#tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ls-blue);
}

.tab-btn.active {
  color: var(--ls-blue);
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

/* Soft cards used across dashboard */
#main-content > .grid > section,
#main-content > .space-y-6 > section,
#main-content > section {
  border-radius: var(--radius) !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-soft);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.stat-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #F3F6FA;
  font-size: 13px;
  color: #475569;
}

.stat-strip strong {
  color: var(--ls-blue);
}

/* Coaching page hero (assistant) */
.coach-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 245, 0.9)),
    #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.coach-hero::after {
  content: '';
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 127, 138, 0.15), transparent 70%);
  pointer-events: none;
}

.coach-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--coach-teal);
  margin-bottom: 8px;
}

.coach-hero-title {
  font-family: Outfit, Pretendard, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--ls-blue);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.25;
}

.coach-hero-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5b6b7c;
  max-width: 36em;
}

.coach-hero-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: #7c8b9a;
}

.coach-hero-art {
  justify-self: end;
  width: min(220px, 100%);
}

.coach-hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.topic-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topic-chip:hover {
  border-color: rgba(47, 127, 138, 0.35);
  color: var(--coach-teal);
}

.topic-chip.is-active {
  background: var(--ls-blue);
  border-color: var(--ls-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 58, 110, 0.2);
}

.assist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 16px;
  align-items: start;
}

.assist-main,
.assist-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.assist-main {
  padding: 18px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.assist-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assist-side-card {
  padding: 16px;
}

.assist-side-card h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ls-blue);
}

.memo-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}

.memo-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.memo-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F3F6FA;
  flex-shrink: 0;
  font-size: 14px;
}

.memo-label {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  margin-bottom: 2px;
}

.memo-value {
  color: #334155;
  font-weight: 600;
  line-height: 1.4;
}

.side-alert {
  background: #FFF8F0;
  border: 1px solid #F5E0C8;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 12px;
  color: #8a5a2b;
  line-height: 1.5;
}

.side-alert strong {
  display: block;
  color: #9a4d18;
  margin-bottom: 4px;
  font-size: 13px;
}

.chat-compose {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.compose-bar {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding: 10px;
  border-radius: 16px;
  background: #F3F6FA;
  border: 1px solid var(--line);
}

.compose-bar textarea {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.compose-send {
  flex-shrink: 0;
  border: none;
  background: var(--ls-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.step-card {
  padding: 12px;
  border-radius: 14px;
  background: #F7FAFC;
  border: 1px solid var(--line);
}

.step-card-num {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--ls-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-card h4 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ls-blue);
}

.step-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #5b6b7c;
}

.experience-tip {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 127, 138, 0.08);
  border: 1px solid rgba(47, 127, 138, 0.15);
  font-size: 13px;
  line-height: 1.5;
  color: #2a5f66;
}

.action-checklist {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px dashed rgba(11, 58, 110, 0.18);
}

.action-checklist h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ls-blue);
}

.action-checklist label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: #475569;
  padding: 6px 0;
  cursor: default;
}

@media (max-width: 900px) {
  .coach-hero,
  .assist-layout {
    grid-template-columns: 1fr;
  }

  .coach-hero-art {
    justify-self: start;
    max-width: 180px;
  }

  .step-cards {
    grid-template-columns: 1fr;
  }
}

/* Executive home hub */
.soft-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

.panel-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ls-blue);
}

.home-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 16px;
}

.home-phase-card {
  background: linear-gradient(135deg, #fff, #F3F7FA);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.home-mini-art {
  width: 120px;
  opacity: 0.95;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.phase-step {
  text-align: center;
  opacity: 0.45;
}

.phase-step.is-done,
.phase-step.is-active {
  opacity: 1;
}

.phase-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: #cbd5e1;
}

.phase-step.is-done .phase-dot { background: var(--coach-teal); }
.phase-step.is-active .phase-dot {
  background: var(--ls-blue);
  box-shadow: 0 0 0 4px rgba(11, 58, 110, 0.15);
}

.phase-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.phase-step.is-active .phase-label { color: var(--ls-blue); }

.continue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.continue-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #F7FAFC;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.continue-card strong {
  display: block;
  font-size: 13px;
  color: var(--ls-blue);
}

.continue-card span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.continue-card em {
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--coach-teal);
  margin-top: 8px;
}

/* Simulation */
.sim-scenario-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sim-scenario-card {
  flex: 0 0 auto;
  width: 140px;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.sim-scenario-card strong {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: #334155;
}

.sim-scenario-card.is-active {
  border-color: var(--ls-blue);
  box-shadow: 0 0 0 2px rgba(11, 58, 110, 0.12);
}

.sim-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1.4fr) 260px;
  gap: 14px;
  align-items: start;
}

.sim-stage {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #E8F0F4, #F7FAFC);
}

.sim-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.sim-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}

.sim-choice.is-selected {
  border-color: var(--ls-blue);
  background: rgba(11, 58, 110, 0.04);
}

.sim-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
}

.sim-meter-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0B3A6E, #2F7F8A);
}

/* Toolkit */
.toolkit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}

.toolkit-part,
.toolkit-card {
  text-align: left;
  border: 1px solid var(--line);
  background: #F7FAFC;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}

.toolkit-card {
  background: #fff;
}

.toolkit-card.is-active {
  border-color: var(--coach-teal);
  box-shadow: 0 0 0 2px rgba(47, 127, 138, 0.12);
}

@media (max-width: 1024px) {
  .home-hub-grid,
  .sim-layout,
  .toolkit-layout {
    grid-template-columns: 1fr;
  }
}

.score-ring {
  background: conic-gradient(var(--coach-teal) var(--pct), #dbe4ee 0);
}

.skeleton {
  background: linear-gradient(90deg, #e8eef4 25%, #d5e0ea 50%, #e8eef4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── AI coaching result panel ── */
.coaching-result-panel {
  background: #fff;
}

.llm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 24px 16px;
}

.llm-empty-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.llm-empty-icon svg {
  width: 100%;
  height: 100%;
}

.llm-loading {
  text-align: center;
  padding: 12px 4px 8px;
}

.llm-loading-bar {
  height: 3px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.llm-loading-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, #003875, #0d9488);
  animation: llm-bar 1.1s ease-in-out infinite;
}

@keyframes llm-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.cq-section + .cq-section {
  margin-top: 4px;
}

.cq-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cq-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
}

.cq-badge-open {
  background: rgba(0, 56, 117, 0.1);
  color: #003875;
}

.cq-badge-closed {
  background: #f1f5f9;
  color: #475569;
}

.cq-badge-fw {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
}

.cq-badge-tip {
  background: #fff7ed;
  color: #c2410c;
}

.cq-count {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}

.cq-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cq-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 12px 12px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 56, 117, 0.04), rgba(13, 148, 136, 0.03));
  border: 1px solid rgba(0, 56, 117, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cq-item:hover {
  border-color: rgba(0, 56, 117, 0.18);
  box-shadow: 0 2px 10px rgba(0, 56, 117, 0.06);
}

.cq-item-muted {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.cq-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #003875;
  flex-shrink: 0;
}

.cq-num-muted {
  background: #94a3b8;
}

.cq-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #1e293b;
  padding-top: 3px;
}

.cq-copy {
  border: none;
  background: transparent;
  color: #0d9488;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0.75;
}

.cq-copy:hover,
.cq-copy.copied {
  opacity: 1;
  background: rgba(13, 148, 136, 0.1);
}

.cq-copy-inline {
  margin-top: 8px;
  padding: 0;
}

.cq-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cq-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
}

.cq-step-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cq-step-letter {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #003875, #0d9488);
  flex-shrink: 0;
  z-index: 1;
}

.cq-step-line {
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: linear-gradient(180deg, rgba(13, 148, 136, 0.45), rgba(0, 56, 117, 0.15));
  margin: 4px 0;
}

.cq-step-body {
  padding: 2px 0 18px;
}

.cq-step-label {
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #003875;
}

.cq-step-script {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e8eef4;
}

.cq-tips {
  padding: 14px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.cq-tip-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.55;
}

.cq-tip-list li + li {
  margin-top: 6px;
}

.cq-disclaimer {
  margin: 8px 0 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

.model-guide-card {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(0, 56, 117, 0.04), rgba(13, 148, 136, 0.05));
  border: 1px solid rgba(0, 56, 117, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.model-guide-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 2px 12px rgba(0, 56, 117, 0.06);
}

/* ── Coaching missions ── */
.mission-period {
  background: #fff;
  border: 1px solid rgba(0, 56, 117, 0.1);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 1px 3px rgba(0, 56, 117, 0.04);
}

.mission-period-daily {
  background:
    linear-gradient(135deg, rgba(13, 148, 136, 0.06), transparent 40%),
    #fff;
}

.mission-period-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mission-period-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #0d9488;
  letter-spacing: 0.02em;
}

.mission-period-monthly .mission-period-kicker {
  color: #003875;
}

.mission-period-title {
  margin: 2px 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #003875;
}

.mission-period-sub {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.mission-period-stat {
  text-align: right;
  flex-shrink: 0;
}

.mission-period-count {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #003875;
  line-height: 1.1;
}

.mission-progress {
  height: 6px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
  margin-bottom: 14px;
}

.mission-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #003875, #0d9488);
  transition: width 0.25s ease;
}

.mission-progress-light {
  background: rgba(255, 255, 255, 0.25);
}

.mission-progress-light i {
  background: #fff;
}

.mission-item {
  border: 1px solid #e8eef4;
  border-radius: 12px;
  background: #fafbfc;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mission-item.is-done {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.28);
}

.mission-item-inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 12px;
  cursor: pointer;
}

.mission-check {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.mission-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.mission-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.mission-title.is-done {
  text-decoration: line-through;
  color: #94a3b8;
}

.mission-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.mission-skill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 56, 117, 0.08);
  color: #003875;
}

.mission-pts {
  font-size: 11px;
  font-weight: 700;
  color: #0d9488;
}

.mission-hint {
  margin: 12px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.mission-side-card {
  background: #fff;
  border: 1px solid rgba(0, 56, 117, 0.1);
  border-radius: 14px;
  padding: 18px;
}

.mission-side-hero {
  background: linear-gradient(145deg, #003875, #0d9488);
  border: none;
}

/* ── HRM guideline (dashboard) ── */
.hrm-guide {
  background: #fff;
  border: 1px solid rgba(0, 56, 117, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 56, 117, 0.04);
}

.hrm-guide-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px 16px;
  background:
    linear-gradient(120deg, rgba(0, 56, 117, 0.06), transparent 55%),
    linear-gradient(300deg, rgba(13, 148, 136, 0.07), transparent 45%);
  border-bottom: 1px solid #eef2f6;
}

.hrm-guide-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #0d9488;
  letter-spacing: 0.02em;
}

.hrm-guide-title {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #003875;
}

.hrm-guide-desc {
  margin: 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

.hrm-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 8px;
}

.hrm-quick-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 56, 117, 0.08);
  min-width: 110px;
}

.hrm-quick-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 2px;
}

.hrm-quick-value {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #003875;
}

.hrm-accordions {
  padding: 8px 12px 12px;
}

.hrm-acc {
  border-radius: 10px;
  margin-bottom: 4px;
}

.hrm-acc.is-open {
  background: #f8fafc;
}

.hrm-acc-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.hrm-acc-btn:hover {
  background: rgba(0, 56, 117, 0.03);
}

.hrm-acc-icon {
  font-size: 18px;
  line-height: 1.2;
  flex-shrink: 0;
}

.hrm-acc-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hrm-acc-title {
  font-size: 13px;
  font-weight: 700;
  color: #003875;
}

.hrm-acc-summary {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.hrm-acc-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 56, 117, 0.08);
  color: #003875;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.hrm-acc-panel {
  padding: 0 12px 14px 42px;
}

.hrm-points {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.hrm-points li + li {
  margin-top: 6px;
}

.hrm-tip {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(13, 148, 136, 0.08);
  border-left: 3px solid #0d9488;
  font-size: 12px;
  line-height: 1.5;
  color: #0f766e;
}

.hrm-tip strong {
  color: #003875;
  margin-right: 4px;
}

@media (max-width: 640px) {
  .hrm-quick {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .hrm-acc-panel {
    padding-left: 12px;
  }
}

dialog::backdrop {
  background: rgba(0, 37, 80, 0.45);
}

/* ── Coaching Chatbot Widget ── */
#coaching-chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: 'Pretendard', sans-serif;
}

.chat-panel {
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 16px 48px rgba(11, 58, 110, 0.16), 0 0 0 1px rgba(11, 58, 110, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-panel--open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0B3A6E 0%, #2F7F8A 100%);
  color: #fff;
}

.chat-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header__brand img,
.chat-logo {
  height: 26px;
  width: auto;
  filter: none;
  background: #fff;
  border-radius: 4px;
  padding: 3px 6px;
}

.chat-header__brand strong {
  display: block;
  font-size: 14px;
}

.chat-header__brand span {
  font-size: 11px;
  opacity: 0.85;
}

.chat-icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #F3F6FA;
}

.chat-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chat-topic {
  border: 1px solid rgba(11, 58, 110, 0.1);
  background: #fff;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.chat-topic:hover {
  border-color: #2F7F8A;
  color: #2F7F8A;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
  max-width: 92%;
}

.chat-bubble--bot {
  background: #fff;
  border: 1px solid #e2eaf2;
  color: #1e293b;
  border-top-left-radius: 4px;
}

.chat-bubble--user {
  background: #003875;
  color: #fff;
  margin-left: auto;
  border-top-right-radius: 4px;
}

.chat-bubble__sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.chat-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.chat-faq-btn {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid #e2eaf2;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.chat-faq-btn:hover {
  border-color: #0d9488;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.chat-cta {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #003875, #0d9488);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 16px rgba(0, 56, 117, 0.25);
}

.chat-cta:hover {
  filter: brightness(1.05);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 120px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: #0d9488;
  border-radius: 50%;
  animation: chatBounce 1.2s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chat-footer {
  border-top: 1px solid #e2eaf2;
  background: #fff;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px 0;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid #d0dbe6;
  border-radius: 20px;
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
}

.chat-input-row input:focus {
  border-color: #0d9488;
}

.chat-input-row button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #003875;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-tabs {
  display: flex;
  border-top: 1px solid #f0f4f8;
}

.chat-tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  background: none;
  font-size: 11px;
  color: #94a3b8;
  cursor: pointer;
  border-top: 2px solid transparent;
}

.chat-tab.active {
  color: #003875;
  font-weight: 700;
  border-top-color: #0d9488;
}

.chat-fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0B3A6E, #2F7F8A);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(11, 58, 110, 0.28);
}

.chat-fab span:first-child {
  font-size: 18px;
}

@media (max-width: 480px) {
  .chat-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 12px;
  }
}
