/* ====== 공통 컴포넌트 ====== */

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
}
.badge-readonly { background: #FEF3C7; color: #B45309; }
.badge-edit     { background: #DBEAFE; color: #1D4ED8; }
.badge-research { background: #F3E8FF; color: #7C3AED; }

/* Search box (topbar) */
.search {
  display: inline-flex; align-items: center; gap: 8px;
  background: #F3F4F6; border-radius: 8px; padding: 10px 14px;
  width: 260px; color: #9CA3AF; font-size: 13px;
}
.search input {
  border: none; outline: none; background: transparent; width: 100%;
  font-size: 13px; color: #111827;
}

/* Card */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .1s, box-shadow .1s; cursor: pointer;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.card .card-icon { color: #2563EB; font-size: 24px; line-height: 1; }
.card .card-title { font-size: 16px; font-weight: 600; color: #111827; }
.card .card-desc  { font-size: 13px; color: #6B7280; line-height: 1.5; }
.card .card-meta  { font-size: 11px; color: #9CA3AF; margin-top: auto; }

/* External-skill card variant — links out to upstream repo */
.card.card-external { border-style: dashed; border-color: #C7D2FE; background: #F8FAFF; }
.card.card-external .card-icon { color: #6366F1; }
.card.card-external .card-meta { color: #6366F1; font-weight: 500; }

/* Section label */
.section { display: flex; flex-direction: column; gap: 10px; }
.section-title { font-size: 14px; font-weight: 600; color: #111827; }
.section-row   { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Tab */
.tabs { display: flex; }
.tab {
  padding: 14px 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #6B7280; cursor: pointer; user-select: none;
  border-bottom: 2px solid transparent;
}
.tab.active { color: #2563EB; font-weight: 600; border-bottom-color: #2563EB; }
.tab .count {
  padding: 2px 6px; border-radius: 10px; background: #F3F4F6; color: #6B7280;
  font-size: 11px; font-weight: 600;
}
.tab.active .count { background: #EFF6FF; color: #2563EB; }

/* Pill (filter) */
.pill-bar { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.pill {
  padding: 6px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  background: #F3F4F6; color: #374151;
}
.pill.active { background: #111827; color: #FFFFFF; }
.pill.cat-qa   { background: #DBEAFE; color: #1D4ED8; }
.pill.cat-ba   { background: #FEF3C7; color: #B45309; }
.pill.cat-code { background: #DCFCE7; color: #15803D; }
.pill.cat-cto  { background: #F3E8FF; color: #7C3AED; }

/* Board */
.board { background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; overflow: hidden; }
.board-head {
  display: grid; grid-template-columns: 120px 1fr 140px;
  gap: 16px; align-items: center;
  padding: 12px 20px; background: #F9FAFB; border-bottom: 1px solid #E5E7EB;
  font-size: 11px; font-weight: 700; color: #6B7280;
}
.board-row {
  display: grid; grid-template-columns: 120px 1fr 140px;
  gap: 16px; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
}
.board-row:hover { background: #FAFBFC; }
.board-row:last-child { border-bottom: none; }
.board-row .date { color: #6B7280; font-size: 12px; font-weight: 500; }
.board-row .title { color: #111827; font-size: 14px; }
.board-cat {
  display: inline-flex; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; justify-self: start;
}
.board-cat.cat-qa   { background: #DBEAFE; color: #1D4ED8; }
.board-cat.cat-ba   { background: #FEF3C7; color: #B45309; }
.board-cat.cat-code { background: #DCFCE7; color: #15803D; }
.board-cat.cat-cto  { background: #F3E8FF; color: #7C3AED; }

/* Tree view */
.tree { display: flex; flex-direction: column; gap: 2px; }
.tree-node {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 4px; cursor: pointer;
  font-size: 13px; color: #374151;
}
.tree-node:hover { background: #F3F4F6; }
.tree-node.active { background: #EFF6FF; color: #2563EB; font-weight: 600; }
.tree-node .chev { width: 14px; text-align: center; color: #6B7280; }
.tree-node.leaf  { padding-left: 22px; }
.tree-node .fico { color: #F59E0B; }
.tree-node .cnt  { margin-left: auto; color: #9CA3AF; font-size: 11px; }

/* Split layout */
.split { display: grid; grid-template-columns: 320px 1fr; gap: 0; height: calc(100vh - 56px - 56px); }
.split .pane-l { background: #FFFFFF; border-right: 1px solid #E5E7EB; padding: 16px 12px; overflow: auto; }
.split .pane-r { background: #F0F2F5; padding: 24px 32px; overflow: auto; }

/* Button */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: #F3F4F6; color: #374151;
}
.btn:hover { background: #E5E7EB; }
.btn-primary { background: #2563EB; color: #FFFFFF; }
.btn-primary:hover { background: #1D4ED8; }
.btn-purple  { background: #7C3AED; color: #FFFFFF; }
.btn-purple:hover { background: #6D28D9; }

/* Toggle group */
.toggle {
  display: inline-flex; background: #F3F4F6; border-radius: 6px; padding: 2px;
}
.toggle button {
  background: transparent; border: none; padding: 6px 14px;
  border-radius: 4px; cursor: pointer;
  font-size: 12px; font-weight: 500; color: #6B7280;
}
.toggle button.active {
  background: #FFFFFF; color: #111827; font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; }
.breadcrumb .sep { color: #D1D5DB; }
.breadcrumb .current { color: #111827; font-weight: 600; }

/* Empty / loading state */
.empty {
  padding: 48px 24px; text-align: center; color: #9CA3AF;
  border: 1px dashed #E5E7EB; border-radius: 12px; background: #FAFBFC;
}
.loading { padding: 24px; color: #6B7280; font-size: 13px; }

/* Skill Spec card (Skills 2.0 frontmatter) */
.skill-spec {
  background: linear-gradient(135deg, #FAF5FF 0%, #EFF6FF 100%);
  border: 1px solid #E0E7FF;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 auto 16px;
  max-width: 960px;
  display: flex; flex-direction: column; gap: 14px;
}
.skill-spec .spec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.skill-spec .spec-name {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 18px; font-weight: 700; color: #111827;
}
.skill-spec .spec-tag {
  padding: 3px 8px; border-radius: 12px;
  background: #7C3AED; color: #FFFFFF;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
}
.skill-spec .spec-row { display: flex; gap: 12px; align-items: flex-start; }
.skill-spec .spec-label {
  flex: 0 0 90px;
  font-size: 11px; font-weight: 700; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.5px;
  padding-top: 2px;
}
.skill-spec .spec-value { flex: 1; font-size: 13px; color: #374151; line-height: 1.6; white-space: pre-wrap; }
.skill-spec .spec-tools { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.skill-spec .spec-tool {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 4px;
  background: #FFFFFF; border: 1px solid #E0E7FF;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px; color: #4338CA;
}
.skill-spec .spec-tool.builtin { background: #EFF6FF; color: #1D4ED8; border-color: #DBEAFE; }
.skill-spec .spec-tool.mcp     { background: #F3E8FF; color: #6D28D9; border-color: #E9D5FF; }
.skill-spec .spec-toggle {
  background: transparent; border: none; cursor: pointer;
  font-size: 11px; color: #7C3AED; font-weight: 600;
  padding: 0; margin-top: 4px;
}

/* ====== Dashboard Summary (4 sections) ====== */
.dash-sections { display: flex; flex-direction: column; gap: 24px; }
.dash-sec { display: flex; flex-direction: column; gap: 12px; }
.card-plain {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px;
}
.dash-sec.card-plain { padding: 24px; gap: 16px; }

.dash-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.dash-sec-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: #111827;
}
.dash-sec-icon { display: inline-flex; align-items: center; justify-content: center; }
.dash-sec-sub { font-size: 12px; color: #6B7280; }

/* 공용 tone helpers */
.tone-blue   { color: #2563EB; }
.tone-purple { color: #7C3AED; }
.tone-green  { color: #15803D; }
.tone-amber  { color: #B45309; }

/* ── 1) 뉴스 섹션 ── */
.news-body { display: grid; grid-template-columns: 1fr 380px; gap: 16px; }
.news-story { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.news-lead { font-size: 15px; font-weight: 700; color: #111827; }
.news-narrative { font-size: 13px; color: #374151; line-height: 1.65; margin: 0; }
.news-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 4px; }
.news-hi {
  padding: 10px 12px; border-radius: 8px; display: flex; flex-direction: column; gap: 4px;
}
.news-hi.tone-purple { background: #F3E8FF; }
.news-hi.tone-purple .hi-label { color: #7C3AED; }
.news-hi.tone-blue   { background: #DBEAFE; }
.news-hi.tone-blue   .hi-label { color: #1D4ED8; }
.news-hi.tone-green  { background: #DCFCE7; }
.news-hi.tone-green  .hi-label { color: #15803D; }
.hi-label { font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; }
.hi-text  { font-size: 12px; font-weight: 600; color: #111827; }

.news-prompts { padding: 20px; display: flex; flex-direction: column; gap: 12px; background: #FAFAF9; }
.news-prompts-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #111827;
}
.news-prompts-desc { font-size: 11px; color: #6B7280; }
.news-prompts-list { display: flex; flex-direction: column; gap: 8px; }
.prompt-chip {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 6px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
}
.prompt-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.prompt-tag.tone-purple { color: #7C3AED; }
.prompt-tag.tone-blue   { color: #1D4ED8; }
.prompt-tag.tone-green  { color: #15803D; }
.prompt-text { font-size: 12px; font-weight: 500; color: #111827; font-family: ui-monospace, "SF Mono", Consolas, monospace; }

/* ── 1.5) PDSA 학습 섹션 ── */
.dash-sec-sub-inline { font-size: 12px; font-weight: 500; color: #6B7280; margin-left: 4px; }

.pdsa-src-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.pdsa-src-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 12px;
  background: #F3F4F6; color: #374151; font-size: 11px;
}
.pdsa-src-pill .pdsa-src-date { font-weight: 600; color: #6B7280; font-size: 10px; }

.pdsa-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.pdsa-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pdsa-card-head { display: flex; align-items: center; gap: 8px; }
.pdsa-card-badge {
  padding: 3px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
}
.pdsa-card-badge.tone-blue   { background: #DBEAFE; color: #1D4ED8; }
.pdsa-card-badge.tone-green  { background: #DCFCE7; color: #15803D; }
.pdsa-card-badge.tone-amber  { background: #FEF3C7; color: #B45309; }
.pdsa-card-badge.tone-purple { background: #F3E8FF; color: #7C3AED; }
.pdsa-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.pdsa-card-count { margin-left: auto; font-size: 11px; font-weight: 600; color: #9CA3AF; }
.pdsa-card-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pdsa-card-list li {
  font-size: 12px; color: #374151; line-height: 1.55;
  padding-left: 14px; position: relative;
}
.pdsa-card-list li::before {
  content: "•"; position: absolute; left: 0; color: #9CA3AF;
}

.pdsa-hero {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 24px;
  background: #FAF5FF; border: 1px solid #D8B4FE; border-radius: 12px;
}
.pdsa-hero-icon-wrap {
  flex: 0 0 56px; width: 56px; height: 56px;
  background: #F3E8FF; border-radius: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #7C3AED;
}
.pdsa-hero-icon svg { width: 28px; height: 28px; }
.pdsa-hero-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.pdsa-hero-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdsa-hero-badge {
  padding: 3px 8px; border-radius: 4px;
  background: #7C3AED; color: #FFFFFF;
  font-size: 9px; font-weight: 700; letter-spacing: 0.4px;
}
.pdsa-hero-title { font-size: 16px; font-weight: 700; color: #111827; }
.pdsa-hero-lead { font-size: 14px; font-weight: 600; color: #111827; line-height: 1.5; }
.pdsa-hero-desc { font-size: 12px; color: #374151; line-height: 1.65; }

@media (max-width: 980px) {
  .pdsa-row { grid-template-columns: 1fr; }
  .pdsa-hero { flex-direction: column; }
  .pdsa-hero-icon-wrap { flex: 0 0 auto; }
}

/* ── 2) 간트 섹션 ── */
.gantt-sec { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.gantt-legend { display: flex; align-items: center; gap: 16px; font-size: 11px; color: #6B7280; }
.gantt-leg { display: flex; align-items: center; gap: 6px; }
.leg-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.leg-dot.tone-blue   { background: #2563EB; }
.leg-dot.tone-purple { background: #7C3AED; }
.leg-dot.tone-green  { background: #DCFCE7; border: 1px solid #15803D; box-sizing: border-box; }

.gantt-scale-wrap {
  display: grid; grid-template-columns: 150px 1fr; align-items: end; gap: 8px;
  padding-bottom: 4px;
}
.gantt-scale-wrap::before { content: ""; }
.gantt-scale {
  position: relative; height: 18px; border-bottom: 1px dashed #E5E7EB;
}
.gantt-tick {
  position: absolute; transform: translateX(-50%);
  font-size: 10px; color: #9CA3AF; white-space: nowrap;
}
.gantt-tick::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 1px; height: 4px; background: #D1D5DB;
}

.gantt-chart { display: flex; flex-direction: column; gap: 8px; }
.gantt-row {
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 8px;
}
.gantt-label { font-size: 12px; font-weight: 500; color: #374151; }
.gantt-label.tone-purple { font-weight: 600; color: #7C3AED; }
.gantt-track {
  position: relative; height: 22px; background: #F9FAFB; border-radius: 4px; overflow: hidden;
}
.gantt-bar {
  position: absolute; top: 2px; height: 18px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 6px;
}
.gantt-bar.tone-blue   { background: #DBEAFE; border: 1px solid #2563EB; color: #1D4ED8; }
.gantt-bar.tone-purple { background: #F3E8FF; border: 1px solid #7C3AED; color: #7C3AED; }
.gantt-bar.tone-green  { background: #DCFCE7; border: 1px solid #15803D; color: #15803D; }
.gantt-meta { font-size: 11px; color: #9CA3AF; }

/* ── 3) 기여도 섹션 ── */
.contrib-toggle { align-self: center; }
.contrib-body { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.contrib-donut {
  padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 12px;
}
.contrib-donut-caption { font-size: 11px; color: #6B7280; }
.contrib-donut-inner {
  display: flex; align-items: center; gap: 32px; min-height: 180px;
}
.donut { flex: 0 0 auto; }
.donut-val { font-size: 26px; font-weight: 700; fill: #111827; }
.donut-sub { font-size: 10px; fill: #6B7280; }
.donut-pct { font-size: 11px; font-weight: 700; fill: #FFFFFF; letter-spacing: 0.2px; }
.contrib-legend { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.contrib-leg { display: flex; align-items: center; gap: 10px; }
.contrib-leg .leg-dot { width: 14px; height: 14px; border-radius: 3px; }
.leg-info { display: flex; flex-direction: column; gap: 2px; }
.leg-name { font-size: 13px; font-weight: 600; color: #111827; }
.leg-det  { font-size: 11px; color: #6B7280; }

.contrib-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-card { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-val  { font-size: 28px; font-weight: 700; }
.stat-val.tone-blue   { color: #2563EB; }
.stat-val.tone-purple { color: #7C3AED; font-size: 24px; }
.stat-val.tone-green  { color: #15803D; }
.stat-val.tone-amber  { color: #B45309; }
.stat-label { font-size: 12px; color: #6B7280; }

/* Top-changed-files panel — sits below the donut+stats row, full width.
   Surfaces "where doc activity actually lives" for single-author repos
   where the per-author donut conveys little. */
.contrib-topfiles { padding: 18px 22px 20px; margin-top: 16px; }
.topfiles-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.topfiles-title { font-size: 13px; font-weight: 700; color: #111827; }
.topfiles-sub   { font-size: 11px; color: #6B7280; }
.topfiles-list  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.topfile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 32px;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.topfile-path  { color: #1F2937; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topfile-bar   { background: #E5E7EB; border-radius: 4px; height: 8px; overflow: hidden; }
.topfile-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #2563EB, #7C3AED); }
.topfile-count { font-variant-numeric: tabular-nums; font-weight: 700; color: #15803D; text-align: right; }

/* Workflow Core tab — flow vs source-files split. The source panel sits
   below the high-level mermaid and shows the actual C#/XAML files that
   implement the workflow, since "Open source .md →" was removed (the
   Docs/harness/*.md files were deleted in commit aefe4c2). */
.wf-flow-label {
  font-size: 11px; font-weight: 700; color: #6B7280;
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 18px 0 6px;
}
.wf-source-panel {
  margin-top: 22px; padding: 14px 18px 18px;
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px;
}
.wf-source-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.wf-source-title { font-size: 13px; font-weight: 700; color: #111827; }
.wf-source-sub   { font-size: 11px; color: #6B7280; }
.wf-source-panel .mermaid { background: #FFFFFF; border-radius: 6px; padding: 12px; }

/* ── 4) 릴리즈 노트 ── */
.release-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.release-card {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.release-card:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.rc-head { display: flex; align-items: center; justify-content: space-between; }
.rc-badge {
  padding: 3px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 600;
}
.rc-badge.tone-blue   { background: #DBEAFE; color: #1D4ED8; }
.rc-badge.tone-purple { background: #F3E8FF; color: #7C3AED; }
.rc-badge.tone-green  { background: #DCFCE7; color: #15803D; }
.rc-date  { font-size: 11px; color: #9CA3AF; }
.rc-title {
  font-size: 13px; font-weight: 600; color: #111827;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rc-foot  { display: flex; align-items: center; gap: 6px; }
.rc-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #FFFFFF; font-size: 10px; font-weight: 700;
}
.rc-author { font-size: 11px; font-weight: 500; color: #6B7280; }

/* 반응형: 좁아지면 1열로 */
@media (max-width: 980px) {
  .news-body, .contrib-body { grid-template-columns: 1fr; }
  .gantt-scale-wrap, .gantt-row { grid-template-columns: 120px 1fr; }
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; padding: 16px 0; color: #6B7280; font-size: 12px; }
.pagination .page { padding: 4px 8px; border-radius: 4px; cursor: pointer; }
.pagination .page.active { background: #2563EB; color: #FFFFFF; font-weight: 600; }
.pagination .page:hover { background: #F3F4F6; }
.pagination .page.active:hover { background: #1D4ED8; }

/* ─── Missions — fridge + post-it metaphor ───────────────────────────── */
.fridge {
  position: relative;
  margin: 0 -8px;
  padding: 16px 16px 32px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #E8ECF2 0%, #D6DCE4 45%, #BFC5CE 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 30px rgba(10, 15, 26, 0.16);
  /* Faint vertical "brushed metal" lines layered on top of the gradient. */
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 3px,
      rgba(0, 0, 0, 0.04) 3px 4px,
      transparent 4px 6px
    ),
    linear-gradient(180deg, #E8ECF2 0%, #D6DCE4 45%, #BFC5CE 100%);
}
.fridge-empty { padding: 48px 16px; }
.fridge-empty-card {
  margin: 0 auto;
  max-width: 520px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(10, 15, 26, 0.12);
  text-align: center;
}
.fridge-empty-card.subtle { padding: 14px; font-size: 13px; color: #4B5563; }
.fridge-empty-title { font-weight: 700; color: #1F2937; margin-bottom: 6px; }
.fridge-empty-sub   { color: #6B7280; font-size: 12px; }

/* ─── Magnet toolbar ─────────────────────────────────────────────────── */
.fridge-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 6px rgba(10, 15, 26, 0.08);
  backdrop-filter: blur(6px);
}
.magnet {
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: #F3F4F6;
  color: #374151;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 2px rgba(10, 15, 26, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.magnet:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(10, 15, 26, 0.25); }
.magnet.active { background: #1F2937; color: #FFFFFF; border-color: #1F2937; }
.magnet.magnet-inbox      { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.magnet.magnet-progress   { background: #FED7AA; color: #9A3412; border-color: #FDBA74; }
.magnet.magnet-done       { background: #DCFCE7; color: #15803D; border-color: #BBF7D0; }
.magnet.magnet-partial    { background: #FEF3C7; color: #B45309; border-color: #FDE68A; }
.magnet.magnet-blocked    { background: #FEE2E2; color: #B91C1C; border-color: #FCA5A5; }
.magnet.magnet-cancelled  { background: #F3F4F6; color: #6B7280; border-color: #E5E7EB; }
.magnet.active.magnet-inbox,
.magnet.active.magnet-progress,
.magnet.active.magnet-done,
.magnet.active.magnet-partial,
.magnet.active.magnet-blocked,
.magnet.active.magnet-cancelled {
  background: #1F2937; color: #FFFFFF; border-color: #1F2937;
}

/* ─── Sticky board ───────────────────────────────────────────────────── */
.sticky-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 28px 24px;
  padding: 16px 8px 8px;
}

@keyframes sticky-sway {
  0%, 100% { transform: rotate(calc(var(--rot, 0deg) - 0.4deg)); }
  50%      { transform: rotate(calc(var(--rot, 0deg) + 0.4deg)); }
}
@keyframes sticky-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0), 6px 10px 16px rgba(10, 15, 26, 0.22); }
  50%      { box-shadow: 0 0 22px rgba(245, 158, 11, 0.55), 6px 10px 16px rgba(10, 15, 26, 0.22); }
}

.sticky {
  --rot: 0deg;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 18px 14px;
  min-height: 188px;
  cursor: pointer;
  transform: rotate(var(--rot));
  transform-origin: 50% 0%;
  background: linear-gradient(135deg, #FFF4B0 0%, #FCD96A 100%);
  border: 1px solid rgba(180, 130, 30, 0.3);
  box-shadow: 6px 10px 16px rgba(10, 15, 26, 0.22);
  transition: transform 280ms cubic-bezier(.5,1.6,.4,.8),
              box-shadow 200ms ease,
              filter 200ms ease;
  animation: sticky-sway 7s ease-in-out infinite;
  will-change: transform;
}
.sticky:nth-child(2n)  { animation-duration: 8.5s; animation-delay: -1.3s; }
.sticky:nth-child(3n)  { animation-duration: 9.4s; animation-delay: -2.2s; }
.sticky:nth-child(4n)  { animation-duration: 7.8s; animation-delay: -0.7s; }

.sticky:hover,
.sticky:focus-visible {
  transform: rotate(var(--rot)) translateY(-4px) scale(1.04);
  box-shadow: 12px 22px 28px rgba(10, 15, 26, 0.30);
  z-index: 2;
  outline: none;
  filter: brightness(1.02);
  animation-play-state: paused;
}
.sticky:active {
  transform: rotate(var(--rot)) scale(0.98);
  transition-duration: 100ms;
}

/* Asymmetric corner cuts — pure aesthetic. */
.sticky-corner-tl { border-radius: 2px 16px 16px 4px; }
.sticky-corner-tr { border-radius: 16px 2px 4px 16px; }
.sticky-corner-bl { border-radius: 14px 2px 16px 2px; }

/* Per-status palette. Each variant picks one of the bucket's two colors. */
.sticky-done-1     { background: linear-gradient(135deg, #D9F7C4 0%, #BCEFA1 100%); border-color: rgba(60, 130, 50, 0.30); }
.sticky-done-2     { background: linear-gradient(135deg, #E5F8D0 0%, #A8E68A 100%); border-color: rgba(60, 130, 50, 0.30); }
.sticky-inbox-1    { background: linear-gradient(135deg, #FFF4B0 0%, #FCD96A 100%); border-color: rgba(180, 130, 30, 0.30); }
.sticky-inbox-2    { background: linear-gradient(135deg, #FFEFD6 0%, #FFD98A 100%); border-color: rgba(180, 130, 30, 0.30); }
.sticky-progress-1 { background: linear-gradient(135deg, #FFE4B0 0%, #FCC880 100%); border-color: rgba(245, 158, 11, 0.45); }
.sticky-partial-1  { background: linear-gradient(135deg, #FFE4D2 0%, #FCBC9A 100%); border-color: rgba(220, 130, 80, 0.35); }
.sticky-blocked-1  { background: linear-gradient(135deg, #FECACA 0%, #F87171 100%); border-color: rgba(180, 40, 40, 0.40); }
.sticky-cancelled-1{ background: linear-gradient(135deg, #E5E7EB 0%, #C7CCD2 100%); border-color: rgba(120, 120, 130, 0.35); opacity: 0.65; }

/* In-progress glow ring on top of the regular shadow. */
.sticky.status-progress {
  animation: sticky-sway 7s ease-in-out infinite, sticky-pulse 1.6s ease-in-out infinite;
}

.sticky-tape {
  position: absolute;
  top: -10px; left: 50%;
  width: 64px; height: 18px;
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(10, 15, 26, 0.18));
}
.sticky-tape svg { width: 100%; height: 100%; display: block; }

.sticky-head {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.sticky-id {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}
.sticky-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 9px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.sticky-status-done       { background: #16A34A; }
.sticky-status-inbox      { background: #6B7280; }
.sticky-status-progress   { background: #F59E0B; }
.sticky-status-partial    { background: #D97706; }
.sticky-status-blocked    { background: #DC2626; }
.sticky-status-cancelled  { background: #9CA3AF; }
.sticky-status-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FFFFFF;
  animation: sticky-pulse-dot 1.2s ease-in-out infinite;
}
@keyframes sticky-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.sticky-title {
  font-family: 'Caveat', 'Gaegu', 'Comic Sans MS', cursive;
  font-size: 22px; font-weight: 700;
  line-height: 1.15;
  color: #1F2937;
  /* Trim runaway titles so the note keeps a roughly square footprint. */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sticky-meta {
  font-size: 11px; color: #4B5563;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sticky-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}
.sticky-tag {
  font-size: 9px; font-weight: 600;
  padding: 2px 8px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sticky-tag.tag-rec    { color: #15803D; border-color: rgba(22, 163, 74, 0.35); }
.sticky-tag.tag-prd    { color: #6B7280; border-color: rgba(107, 114, 128, 0.30); }
.sticky-tag.tag-done   { color: #15803D; border-color: rgba(22, 163, 74, 0.35); text-transform: none; letter-spacing: 0; }
/* Pencil .pen blueprint exists for this mission (Docs/design/{id}-*.pen). */
.sticky-tag.tag-design { color: #7C3AED; border-color: rgba(124, 58, 237, 0.35); text-transform: none; letter-spacing: 0; }

/* "+ pin a new mission" placeholder — never animates, dashed border. */
.sticky-add-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 188px;
  padding: 20px;
  border-radius: 14px;
  border: 2px dashed rgba(107, 114, 128, 0.55);
  color: #6B7280;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0.65;
}
.sticky-add-icon { display: inline-flex; }
.sticky-add-text {
  font-family: 'Caveat', 'Gaegu', 'Comic Sans MS', cursive;
  font-size: 18px; font-weight: 600;
}
.sticky-add-hint {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px; color: #9CA3AF;
}

/* ─── Mission detail modal (overlays the fridge) ─────────────────────── */
.modal-root.mission-modal-root {
  background: rgba(10, 15, 26, 0.55);
  align-items: flex-start;
  padding: 48px 32px;
}
.mission-modal {
  width: min(880px, 100%);
  max-height: calc(100vh - 96px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(10, 15, 26, 0.40);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: mission-modal-in 220ms cubic-bezier(.2, .9, .35, 1.05);
}
@keyframes mission-modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.mission-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px 12px;
  flex-wrap: wrap;
}
.mission-modal-title {
  flex: 1 1 200px;
  font-size: 18px; font-weight: 700;
  color: #1F2937;
  min-width: 0;
}
.mission-modal-status {
  font-size: 10px;
  padding: 4px 10px;
}
.mission-modal-close {
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  border-radius: 999px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #6B7280;
  transition: background 120ms ease, color 120ms ease;
  flex: 0 0 auto;
}
.mission-modal-close:hover { background: #F3F4F6; color: #1F2937; }
.mission-modal-sub {
  padding: 0 22px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: #6B7280;
}
.mission-modal-tabs {
  display: flex; gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid #E5E7EB;
}
.mission-modal-tab {
  padding: 10px 18px;
  font-size: 12px; font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}
.mission-modal-tab.active { color: #1F2937; border-bottom-color: #1F2937; }
.mission-modal-tab.disabled { opacity: 0.5; cursor: not-allowed; }
.mission-modal-tab:not(.active):not(.disabled):hover { color: #1F2937; }
.mission-modal-body {
  padding: 16px 22px 22px;
  overflow: auto;
  flex: 1 1 auto;
}

.mission-detail-strip {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.mission-detail-row {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px; color: #4B5563;
}
.mission-detail-kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
}
.mission-detail-key {
  font-size: 11px; font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mission-detail-value {
  font-size: 12px;
  color: #1F2937;
}
.mission-detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mission-detail-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #374151;
}
.mission-detail-artifacts {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.mission-detail-artifact {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px;
}
.mission-detail-artifact code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: #374151;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  word-break: break-all;
}

@media (max-width: 720px) {
  .sticky-board {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 22px 16px;
  }
  .sticky { min-height: 176px; padding: 14px 16px 12px; }
  .sticky-title { font-size: 19px; }
  .modal-root.mission-modal-root { padding: 16px; align-items: stretch; }
  .mission-modal { max-height: calc(100vh - 32px); }
  .mission-modal-head, .mission-modal-sub, .mission-modal-tabs, .mission-modal-body {
    padding-left: 16px; padding-right: 16px;
  }
}

/* Honour user motion preferences — disable the idle sway and pulse. */
@media (prefers-reduced-motion: reduce) {
  .sticky, .sticky.status-progress { animation: none; }
  .sticky:hover, .sticky:focus-visible { transition: none; }
  .sticky-status-pulse { animation: none; }
  .mission-modal { animation: none; }
}

/* ============================================================
   Bilingual EN/KO toggle — shared by Principles + Models views
   ============================================================ */
.lang-toggle {
  display: inline-flex; align-items: stretch;
  background: #F3F4F6; border: 1px solid #E5E7EB; border-radius: 999px;
  padding: 3px; gap: 0;
}
.lang-pill {
  appearance: none; border: 0; background: transparent;
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #6B7280;
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.lang-pill:hover { color: #111827; }
.lang-pill.active { background: #FFFFFF; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* ============================================================
   Principles tutorial — hero + sections
   ============================================================ */
.tut-root { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; }

.tut-hero {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  border: 1px solid #C7D2FE; border-radius: 12px;
  padding: 28px 32px; display: flex; flex-direction: column; gap: 12px;
}
.tut-hero-icon {
  width: 36px; height: 36px; color: #4F46E5;
  display: inline-flex; align-items: center; justify-content: center;
}
.tut-hero-icon svg { width: 36px; height: 36px; }
.tut-hero-title { margin: 0; font-size: 28px; font-weight: 800; color: #111827; letter-spacing: -0.5px; }
.tut-hero-lead  { margin: 0; font-size: 15px; line-height: 1.7; color: #374151; max-width: 880px; }
.tut-hero-callout {
  margin-top: 8px; padding: 10px 16px;
  background: #FFFFFFAA; border-left: 3px solid #4F46E5;
  border-radius: 4px; font-size: 13px; font-weight: 600; color: #312E81;
}

.tut-sec {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 24px 28px; display: flex; flex-direction: column; gap: 16px;
}
.tut-sec[data-tone=blue]   { border-left: 4px solid #2563EB; }
.tut-sec[data-tone=purple] { border-left: 4px solid #7C3AED; }
.tut-sec[data-tone=green]  { border-left: 4px solid #15803D; }
.tut-sec[data-tone=amber]  { border-left: 4px solid #B45309; }
.tut-sec-head { display: flex; flex-direction: column; gap: 4px; }
.tut-sec-tag {
  font-size: 11px; font-weight: 700; color: #6B7280;
  text-transform: uppercase; letter-spacing: 1px;
}
.tut-sec-title { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
.tut-sec-body { display: flex; flex-direction: column; gap: 14px; }

.tut-p { margin: 0; font-size: 14px; line-height: 1.75; color: #374151; }

.tut-quote {
  margin: 0; padding: 14px 18px;
  background: #F9FAFB; border-left: 3px solid #9CA3AF;
  border-radius: 4px; display: grid;
  grid-template-columns: 30px 1fr; gap: 0 8px;
}
.tut-quote-mark { font-size: 32px; line-height: 1; color: #9CA3AF; font-family: Georgia, serif; }
.tut-quote-text { font-size: 14px; line-height: 1.7; color: #1F2937; font-style: italic; grid-column: 2; }
.tut-quote-by   { font-size: 12px; color: #6B7280; margin-top: 6px; grid-column: 2; }

.tut-mermaid { background: #F9FAFB; border-radius: 8px; padding: 16px; display: flex; justify-content: center; }
.tut-mermaid .mermaid { background: transparent; }

.tut-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.tut-compare-col {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 14px 18px;
}
.tut-compare-col.tone-amber { border-color: #FCD34D; background: #FFFBEB; }
.tut-compare-col.tone-green { border-color: #86EFAC; background: #F0FDF4; }
.tut-compare-col.tone-blue  { border-color: #93C5FD; background: #EFF6FF; }
.tut-compare-label { font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 8px; }
.tut-compare-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.tut-compare-list li { font-size: 13px; line-height: 1.6; color: #374151; }

.tut-features { display: flex; flex-direction: column; gap: 12px; }
.tut-feature {
  background: #FAFAF9; border: 1px solid #E7E5E4; border-radius: 8px;
  padding: 12px 16px;
}
.tut-feature-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tut-feature-name { font-size: 14px; font-weight: 700; color: #111827; }
.tut-feature-translit { font-size: 12px; color: #B45309; font-style: italic; }
.tut-feature-text { margin: 0; font-size: 13px; line-height: 1.7; color: #374151; }

.tut-phase-table { display: flex; flex-direction: column; gap: 8px; }
.tut-phase-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 12px 16px; align-items: start;
}
.tut-phase-label {
  font-size: 13px; font-weight: 700; color: #FFFFFF;
  padding: 4px 10px; border-radius: 4px; text-align: center;
  align-self: center;
}
.tut-phase-row.tone-blue   .tut-phase-label { background: #2563EB; }
.tut-phase-row.tone-purple .tut-phase-label { background: #7C3AED; }
.tut-phase-row.tone-green  .tut-phase-label { background: #15803D; }
.tut-phase-row.tone-amber  .tut-phase-label { background: #B45309; }
.tut-phase-text { font-size: 13px; line-height: 1.65; color: #374151; }

.tut-three { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 1px; background: #E5E7EB; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
.tut-three-head, .tut-three-row { display: contents; }
.tut-three > div > div, .tut-three-head > div { background: #FFFFFF; padding: 10px 14px; font-size: 12px; line-height: 1.6; color: #374151; }
.tut-three-head > div { background: #F9FAFB; font-weight: 700; color: #111827; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.tut-three-tool { font-weight: 700; color: #111827; }
.tut-three-asks { color: #6B7280; }
.tut-three-study { color: #15803D; font-weight: 600; }

.tut-callout-large {
  font-size: 16px; line-height: 1.75; font-weight: 600; color: #111827;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-left: 4px solid #D97706; border-radius: 8px;
  padding: 18px 22px;
}

@media (max-width: 900px) {
  .tut-compare { grid-template-columns: 1fr; }
  .tut-three   { grid-template-columns: 1fr; }
  .tut-three > div > div, .tut-three-head > div { padding: 6px 10px; }
}

/* ============================================================
   Models view — category + card grid
   ============================================================ */
.mod-root { display: flex; flex-direction: column; gap: 28px; padding-bottom: 32px; }

.mod-intro {
  font-size: 14px; line-height: 1.75; color: #374151;
  background: #F9FAFB; border-left: 3px solid #2563EB;
  border-radius: 4px; padding: 14px 18px; max-width: 980px;
}

.mod-cat { display: flex; flex-direction: column; gap: 14px; }
.mod-cat-head { display: flex; flex-direction: column; gap: 4px; }
.mod-cat-title { margin: 0; font-size: 18px; font-weight: 700; color: #111827; }
.mod-cat-lead  { margin: 0; font-size: 13px; line-height: 1.65; color: #6B7280; max-width: 880px; }

.mod-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.mod-card {
  background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
  border-left-width: 4px;
}
.mod-card.tone-blue   { border-left-color: #2563EB; }
.mod-card.tone-purple { border-left-color: #7C3AED; }
.mod-card.tone-green  { border-left-color: #15803D; }
.mod-card.tone-amber  { border-left-color: #B45309; }

.mod-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mod-name { font-size: 15px; font-weight: 700; color: #111827; }
.mod-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.mod-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  background: #E5E7EB; color: #374151;
}
.mod-badge.badge-on-device  { background: #DBEAFE; color: #1D4ED8; }
.mod-badge.badge-hosted     { background: #F3E8FF; color: #7C3AED; }
.mod-badge.badge-default    { background: #DCFCE7; color: #15803D; }
.mod-badge.badge-lightweight { background: #FEF3C7; color: #B45309; }
.mod-badge.badge-tool-native { background: #CFFAFE; color: #0E7490; }
.mod-badge.badge-byok       { background: #FFE4E6; color: #BE123C; }
.mod-badge.badge-free-tier  { background: #ECFCCB; color: #4D7C0F; }
.mod-badge.badge-test-key   { background: #ECFCCB; color: #4D7C0F; }
.mod-badge.badge-self-hosted { background: #E0E7FF; color: #4338CA; }
.mod-badge.badge-experimental { background: #FECACA; color: #B91C1C; }
.mod-badge.badge-premium    { background: #FCE7F3; color: #BE185D; }

.mod-facts { display: grid; grid-template-columns: 1fr; gap: 4px; }
.mod-fact {
  display: grid; grid-template-columns: 70px 1fr; gap: 8px;
  font-size: 11px; line-height: 1.5;
}
.mod-fact-key { color: #9CA3AF; text-transform: uppercase; font-weight: 600; letter-spacing: 0.4px; }
.mod-fact-val { color: #374151; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-word; }

.mod-summary { margin: 0; font-size: 13px; line-height: 1.65; color: #1F2937; }
.mod-details { margin: 0; font-size: 12px; line-height: 1.6; color: #6B7280; padding-top: 6px; border-top: 1px dashed #E5E7EB; }

.mod-footnote {
  font-size: 12px; line-height: 1.6; color: #6B7280;
  border-top: 1px solid #E5E7EB; padding-top: 14px; max-width: 980px;
}

/* ============================================================
   Models PlayGround slider — 1-up viewport with translateX track,
   prev/next buttons, dot pagination
   ============================================================ */
.mod-playground { display: flex; flex-direction: column; gap: 14px; }
.mp-frame {
  position: relative; overflow: hidden;
  background: #0F172A; border: 1px solid #1F2937; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.mp-track {
  display: flex; width: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.mp-slide {
  flex: 0 0 100%; margin: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: stretch;
}
.mp-img {
  display: block; width: 100%; max-height: 540px;
  object-fit: contain; background: #0F172A;
}
.mp-caption {
  padding: 12px 18px 14px;
  font-size: 12px; line-height: 1.6; color: #D1D5DB;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(2, 6, 23, 0.85) 100%);
}
.mp-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111827; font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.mp-nav:hover  { background: #FFFFFF; transform: translateY(-50%) scale(1.05); }
.mp-nav:active { transform: translateY(-50%) scale(0.97); }
.mp-prev { left: 12px; }
.mp-next { right: 12px; }
.mp-dots { display: flex; justify-content: center; gap: 8px; }
.mp-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: #CBD5E1; cursor: pointer; transition: background 0.15s, transform 0.15s, width 0.2s;
}
.mp-dot:hover { background: #94A3B8; }
.mp-dot.active { background: #2563EB; width: 22px; }

@media (prefers-reduced-motion: reduce) {
  .mp-track { transition: none; }
  .mp-nav, .mp-dot { transition: none; }
}

/* ============================================================
   AgentModels tutorial blocks (am-* — used by views/agent-models.js)
   Reuses tut-* hero / section / paragraph styles; adds three local
   kinds: trait-map, spec-table, file-list.
   ============================================================ */
.am-trait-map {
  display: grid; grid-template-columns: 220px 1fr; gap: 1px;
  background: #E5E7EB; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden;
}
.am-trait-head, .am-trait-row { display: contents; }
.am-trait-head > div, .am-trait-row > div {
  background: #FFFFFF; padding: 10px 14px; font-size: 12px; line-height: 1.6; color: #374151;
}
.am-trait-head > div {
  background: #F9FAFB; font-weight: 700; color: #111827;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.am-trait-key   { font-weight: 700; color: #111827; }
.am-trait-val   { color: #374151; }

.am-spec-table {
  display: grid; grid-template-columns: 220px 80px 1fr; gap: 1px;
  background: #E5E7EB; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden;
}
.am-spec-head, .am-spec-row { display: contents; }
.am-spec-head > div, .am-spec-row > div {
  background: #FFFFFF; padding: 10px 14px; font-size: 12px; line-height: 1.6;
}
.am-spec-head > div {
  background: #F9FAFB; font-weight: 700; color: #111827;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.am-spec-field   { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #111827; font-weight: 600; word-break: break-word; }
.am-spec-default { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #B45309; text-align: right; }
.am-spec-purpose { color: #374151; }

.am-file-list { display: flex; flex-direction: column; gap: 8px; }
.am-file-row {
  display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 14px;
  padding: 10px 14px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px;
}
.am-file-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #2563EB; word-break: break-word;
}
.am-file-note { color: #4B5563; font-size: 12px; line-height: 1.6; }

@media (max-width: 780px) {
  .am-trait-map { grid-template-columns: 1fr; }
  .am-spec-table { grid-template-columns: 1fr; }
  .am-file-row { grid-template-columns: 1fr; gap: 6px; }
}

.am-pen-embed {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; background: #08081A;
  border: 1px solid #2A2A5E; border-radius: 12px;
}
.am-pen-stage {
  width: 100%; min-height: 200px; overflow-x: auto; overflow-y: hidden;
  display: flex; justify-content: center;
}
.am-pen-loading { color: #94A3B8; font-size: 12px; padding: 40px; text-align: center; }
.am-pen-error   { color: #F87171; font-size: 12px; padding: 18px; text-align: center; }
.am-pen-caption {
  font-size: 11.5px; line-height: 1.6; color: #C4B5FD; font-style: italic;
  padding: 4px 8px; border-left: 2px solid #7C3AED;
}

.am-code-sample {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0; background: transparent;
}
.am-code-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #111827; font-weight: 700;
}
.am-code-lang {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px; color: #FFFFFF; background: #7C3AED;
  padding: 2px 8px; border-radius: 4px; letter-spacing: 0.4px; text-transform: uppercase;
}
.am-code-block {
  margin: 0; padding: 14px 16px;
  background: #0F172A; color: #E2E8F0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.6;
  border-radius: 8px; overflow-x: auto;
  white-space: pre;
}
.am-code-footnote {
  font-size: 11.5px; line-height: 1.6; color: #6B7280;
  padding: 0 4px;
}

/* ============================================================
   WebDev Plugin tutorial blocks (wd-* — used by views/webdev-plugin.js)
   Reuses tut-* container styles; adds plugin-card / api-row / step-list
   kinds for the SDK walkthrough.
   ============================================================ */
.wd-step-list { display: flex; flex-direction: column; gap: 12px; }
.wd-step {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start;
  padding: 12px 16px; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px;
}
.wd-step-num {
  width: 28px; height: 28px; border-radius: 999px;
  background: #2563EB; color: #FFFFFF; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.wd-step-body h4 { margin: 0 0 4px 0; font-size: 14px; color: #111827; }
.wd-step-body p  { margin: 0; font-size: 12.5px; line-height: 1.65; color: #4B5563; }
.wd-step-code {
  margin-top: 8px; padding: 10px 12px; background: #0F172A; color: #E2E8F0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55; border-radius: 6px; overflow-x: auto;
  white-space: pre;
}

.wd-api-table {
  display: grid; grid-template-columns: 240px 1fr; gap: 1px;
  background: #E5E7EB; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden;
}
.wd-api-head, .wd-api-row { display: contents; }
.wd-api-head > div, .wd-api-row > div {
  background: #FFFFFF; padding: 10px 14px; font-size: 12px; line-height: 1.6;
}
.wd-api-head > div {
  background: #F9FAFB; font-weight: 700; color: #111827;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}
.wd-api-call {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #7C3AED; font-weight: 600; word-break: break-word;
}
.wd-api-note { color: #374151; }

.wd-plugin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.wd-plugin-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 16px; background: #FFFFFF;
  border: 1px solid #E5E7EB; border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.wd-plugin-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; color: #111827;
}
.wd-plugin-icon { font-size: 22px; }
.wd-plugin-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: #6B7280; margin-left: auto;
}
.wd-plugin-tagline { font-size: 12px; color: #1F2937; line-height: 1.55; }
.wd-plugin-show { font-size: 11.5px; color: #4B5563; line-height: 1.6; padding-top: 6px; border-top: 1px dashed #E5E7EB; }

@media (max-width: 780px) {
  .wd-api-table { grid-template-columns: 1fr; }
}

/* ─── Actor World (M0016 — 3D) ────────────────────────────────────────── */

/* Negative margin to defeat the .view's 24/32px padding. The actor-world
   wants a full-bleed canvas; sibling views still get their normal padding. */
.aw-root {
  position: relative;
  width: calc(100% + 64px);
  height: calc(100vh - 64px);
  margin: -24px -32px;
  background:
    radial-gradient(circle at 50% 34%, rgba(43, 126, 155, 0.16), transparent 28%),
    radial-gradient(circle at 74% 68%, rgba(255, 115, 150, 0.12), transparent 24%),
    #05030B;
  overflow: hidden;
  border-radius: 0;
}
.aw-root.aw-cyber {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.2), rgba(5, 7, 13, 0.96)),
    radial-gradient(circle at 50% 38%, rgba(65, 230, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 58%, rgba(243, 107, 255, 0.16), transparent 26%),
    #05070D;
}
@media (max-width: 780px) {
  .aw-root { width: calc(100% + 28px); margin: -14px; height: calc(100vh - 60px); }
  .aw-legend {
    left: 10px; right: 10px; bottom: 44px;
    min-width: 0;
    max-height: 120px;
    overflow: hidden;
  }
  .aw-help { left: 10px; right: 10px; bottom: 8px; text-align: center; }
}

.aw-stage {
  position: absolute; inset: 0;
  display: block;
}
.aw-stage canvas {
  display: block; width: 100% !important; height: 100% !important;
}

.aw-help {
  position: absolute; right: 14px; top: 14px;
  padding: 7px 11px;
  font-size: 11px; color: #A6E2FF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(5, 8, 18, 0.68);
  border: 1px solid rgba(102, 226, 255, 0.28);
  border-radius: 6px;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(102, 226, 255, 0.4);
  user-select: none;
  z-index: 4;
}

.aw-legend {
  position: absolute; left: 14px; top: 14px;
  width: 310px;
  max-width: calc(100vw - 52px);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11.5px; color: #DCE7FF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: rgba(5, 8, 18, 0.72);
  border: 1px solid rgba(102, 226, 255, 0.22);
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  z-index: 4;
}
.aw-legend::before {
  content: "ACTORSTAGE RUNTIME";
  display: block;
  margin-bottom: 2px;
  color: #FFE38A;
  font-size: 10px;
  font-weight: 700;
}
.aw-legend-item,
.aw-hud-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.aw-legend-sw,
.aw-hud-dot {
  width: 10px; height: 10px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}
.aw-legend-name,
.aw-hud-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-legend-tier,
.aw-hud-kind {
  color: #A6E2FF;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid rgba(102, 226, 255, 0.22);
  border-radius: 4px;
  padding: 2px 5px;
  background: rgba(102, 226, 255, 0.08);
}
.aw-toolrail {
  position: absolute; right: 14px; top: 52px;
  width: 270px;
  max-width: calc(100vw - 52px);
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px;
  background: rgba(5, 8, 18, 0.72);
  border: 1px solid rgba(243, 107, 255, 0.28);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  z-index: 4;
}
.aw-toolrail-title {
  flex: 0 0 100%;
  color: #F36BFF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}
.aw-tool-chip {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid rgba(65, 230, 255, 0.24);
  border-radius: 4px;
  background: rgba(65, 230, 255, 0.08);
  color: #DCE7FF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
}

/* Cyberpunk neon tooltip — fixed-positioned, projected onto the sphere
   each frame by actor-world.js. Pointer-events auto so the operator can
   click links/buttons inside, none when behind the camera (re-toggled in JS). */
.aw-tooltip {
  position: absolute; left: 0; top: 0;
  width: 280px;
  background: rgba(5, 8, 18, 0.94);
  border: 1px solid rgba(102, 226, 255, 0.55);
  border-radius: 6px;
  color: #E2F4FF;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow:
    0 0 0 1px rgba(180, 100, 255, 0.18) inset,
    0 0 14px rgba(102, 226, 255, 0.40),
    0 0 30px rgba(180, 100, 255, 0.18);
  z-index: 5;
  transition: opacity 120ms linear;
}
.aw-tt-head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(102, 226, 255, 0.20);
  background: linear-gradient(180deg, rgba(102, 226, 255, 0.08), transparent);
}
.aw-tt-glyph {
  font-size: 22px; line-height: 1; color: #FFE38A;
  text-shadow: 0 0 10px rgba(255, 227, 138, 0.6);
}
.aw-tt-titles { flex: 1 1 auto; min-width: 0; }
.aw-tt-name {
  font-size: 13px; font-weight: 700; color: #FFFFFF; letter-spacing: 0.3px;
}
.aw-tt-role {
  font-size: 11px; color: #66E2FF; letter-spacing: 0.5px; text-transform: uppercase;
  margin-top: 2px;
}
.aw-tt-x {
  background: transparent; border: none; color: #A6E2FF;
  font-size: 18px; line-height: 1; cursor: pointer;
  padding: 0 4px;
}
.aw-tt-x:hover { color: #FFFFFF; text-shadow: 0 0 6px #66E2FF; }

.aw-tt-body { padding: 10px 12px; font-size: 11.5px; line-height: 1.55; }
.aw-tt-desc { color: #DCE7FF; }
.aw-tt-section {
  margin-top: 10px;
  font-size: 10px; letter-spacing: 1px; color: #B27CFF;
}
.aw-tt-trigs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.aw-tt-trig {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(102, 226, 255, 0.10);
  border: 1px solid rgba(102, 226, 255, 0.30);
  border-radius: 3px;
  color: #A6E2FF;
  font-size: 10.5px;
}
.aw-tt-files {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.aw-tt-files code {
  display: inline-flex;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 224, 102, 0.10);
  border: 1px solid rgba(255, 224, 102, 0.24);
  color: #FFE38A;
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.aw-tt-more {
  display: inline-block; margin-top: 10px;
  font-size: 11px; color: #FFE38A;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 227, 138, 0.4);
}
.aw-tt-more:hover { color: #FFFFFF; }

/* ─── SYSTEM STATUS (bottom-left bars) ─── */
.aw-sysstatus {
  position: absolute; left: 14px; bottom: 14px;
  width: 280px;
  max-width: calc(100vw - 52px);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(5, 8, 18, 0.78);
  border: 1px solid rgba(102, 226, 255, 0.22);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #DCE7FF;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  z-index: 4;
}
.aw-sysstatus-title {
  font-size: 10px; font-weight: 700; color: #FFE38A;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.aw-sys-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.aw-sys-label { color: #A6E2FF; font-weight: 700; }
.aw-sys-track {
  position: relative;
  height: 6px;
  background: rgba(102, 226, 255, 0.08);
  border: 1px solid rgba(102, 226, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
}
.aw-sys-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 3px;
  box-shadow: 0 0 8px currentColor;
}
.aw-sys-pct { color: #A6E2FF; font-size: 10px; text-align: right; }

/* ─── EVENT STREAM (bottom-right rolling log) ─── */
.aw-eventstream {
  position: absolute; right: 14px; bottom: 14px;
  width: 320px;
  max-width: calc(100vw - 52px);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(5, 8, 18, 0.78);
  border: 1px solid rgba(243, 107, 255, 0.28);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #DCE7FF;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.32);
  z-index: 4;
}
.aw-eventstream-title {
  font-size: 10px; font-weight: 700; color: #F36BFF;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.aw-events-list {
  display: flex; flex-direction: column;
  gap: 2px;
  max-height: 168px;
  overflow: hidden;
}
.aw-event {
  display: grid;
  grid-template-columns: 56px auto 14px auto 1fr;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  padding: 1px 0;
  border-left: 2px solid transparent;
  padding-left: 6px;
}
.aw-event-ts    { color: #6680A0; }
.aw-event-from  { color: #DCE7FF; font-weight: 600; }
.aw-event-arrow { color: #A6E2FF; }
.aw-event-to    { color: #DCE7FF; font-weight: 600; }
.aw-event-msg   { color: #A6E2FF; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-event-cyan   { border-left-color: rgba(102, 226, 255, 0.65); }
.aw-event-cyan   .aw-event-arrow { color: #66E2FF; }
.aw-event-pink   { border-left-color: rgba(255, 79, 163, 0.65); }
.aw-event-pink   .aw-event-arrow { color: #FF8FC0; }
.aw-event-purple { border-left-color: rgba(140, 108, 255, 0.65); }
.aw-event-purple .aw-event-arrow { color: #B79CFF; }
.aw-event-gold   { border-left-color: rgba(255, 224, 102, 0.65); }
.aw-event-gold   .aw-event-arrow { color: #FFE38A; }
.aw-event-green  { border-left-color: rgba(45, 255, 154, 0.65); }
.aw-event-green  .aw-event-arrow { color: #6FFFB4; }
.aw-event-amber  { border-left-color: rgba(255, 178, 74, 0.65); }
.aw-event-amber  .aw-event-arrow { color: #FFC880; }
.aw-event-mint   { border-left-color: rgba(185, 255, 234, 0.65); }
.aw-event-mint   .aw-event-arrow { color: #C8FFEE; }

@media (max-width: 780px) {
  .aw-legend {
    left: 10px; right: 10px; top: 10px;
    width: auto;
    max-height: 120px;
    overflow: hidden;
  }
  .aw-help { left: 10px; right: 10px; top: auto; bottom: 8px; text-align: center; }
  .aw-toolrail { display: none; }
  .aw-tooltip { max-width: calc(100vw - 28px); }
  .aw-sysstatus { display: none; }
  .aw-eventstream { display: none; }
}
