.json-tutorial {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  color: #1f2937;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  line-height: 1.65;
  overflow: hidden;
}

.json-tutorial .content-wrapper {
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  max-width: 1180px;
  margin: 0 auto;
}

.json-tutorial .z-category-title,
.json-tutorial .z-heading {
  margin: 36px 0 14px;
  color: #172033;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}

.json-tutorial h3.z-heading {
  margin: 24px 0 10px;
  color: #334155;
  font-size: 15px;
  letter-spacing: 0;
}

.json-tutorial .content-wrapper > .z-category-title:first-child,
.json-tutorial .content-wrapper > .z-heading:first-child,
.json-tutorial .content-wrapper > .z-grid:first-child,
.json-tutorial .content-wrapper > .section:first-child {
  margin-top: 0;
}

.json-tutorial .z-paragraph,
.json-tutorial .z-list {
  max-width: 780px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.json-tutorial .z-list h3 {
  margin: 0 0 8px;
  color: #334155;
  font-size: 14px;
}

.json-tutorial .z-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 18px 0 28px;
}

.json-tutorial .z-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.json-tutorial .z-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.1);
}

.json-tutorial .z-badge {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 10px;
  color: #4653d9;
  background: #eef1ff;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.json-tutorial .z-card-title {
  margin: 12px 0 6px;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.json-tutorial .z-card-desc {
  min-height: 0;
  margin: 0 0 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.55;
}

.json-tutorial ul {
  list-style-type: disc;
  list-style-position: outside;
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.json-tutorial ol.workflow {
  list-style: none;
}

.json-tutorial ol.workflow > li {
  list-style: none;
  margin: 0;
}

.json-tutorial li {
  display: list-item;
}

.json-tutorial li::marker {
  color: #94a3b8;
}

.json-tutorial .z-card-list {
  flex: 1;
  margin: 0 0 14px;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 12px;
  line-height: 1.7;
}

.json-tutorial .z-card-btn {
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: auto;
  padding: 7px 12px;
  color: #ffffff;
  background: #222;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.json-tutorial .z-card-btn:hover {
  background: #444;
}

.json-tutorial .rating {
  margin: 0 0 8px;
  color: #f7b500;
  font-size: 14px;
  letter-spacing: 1px;
}

.json-tutorial .rating span {
  color: #d9dce3;
}

.json-tutorial .rating em {
  margin-left: 8px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0;
}

.json-tutorial .rating-text {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.json-tutorial .highlight {
  margin-top: 10px;
  padding: 10px 12px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
}

.json-tutorial .strip {
  max-width: 780px;
  margin: 18px 0 22px;
  padding: 15px 17px;
  color: #475569;
  background: #eff6ff;
  border-left: 3px solid #60a5fa;
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.json-tutorial .section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.json-tutorial .section-full {
  grid-template-columns: 1fr;
}

.json-tutorial .content {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
}

.json-tutorial .content h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.json-tutorial .content p,
.json-tutorial .content ul {
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

.json-tutorial .step {
  display: inline-block;
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.json-tutorial .workflow {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  margin: 1.5rem 0 2rem;
  padding: 18px 16px 14px;
  overflow-x: auto;
  list-style: none;
  background: #f8fbff;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
}

.json-tutorial .workflow.pipeline,
.json-tutorial .workflow.steps,
.json-tutorial .workflow.is-flow {
  flex-wrap: nowrap;
}

.json-tutorial .workflow-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.json-tutorial .node {
  min-width: 88px;
  min-height: 72px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-align: center;
  color: #0f172a;
  border: 1px solid #93c5fd;
  font-weight: 600;
}

.json-tutorial .pipeline-node {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 118px;
  padding: 10px 8px 12px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d5e3f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.json-tutorial .pipeline-node strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.json-tutorial .pipeline-node p {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.3;
}

.json-tutorial .pipeline-node .circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

.json-tutorial .circle.frontend,
.json-tutorial .circle.user { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.json-tutorial .circle.bff,
.json-tutorial .circle.idp { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.json-tutorial .circle.api,
.json-tutorial .circle.app { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.json-tutorial .circle.auth { background: linear-gradient(135deg, #f43f5e, #be123c); }
.json-tutorial .circle.cache,
.json-tutorial .circle.token { background: linear-gradient(135deg, #22c55e, #15803d); }
.json-tutorial .circle.backend { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.json-tutorial .circle.database { background: linear-gradient(135deg, #f59e0b, #d97706); }

.json-tutorial .workflow-connector {
  display: flex;
  align-items: center;
  width: 36px;
  padding: 0 4px;
}

.json-tutorial .workflow-connector-line {
  flex: 1;
  height: 2px;
  background: #93c5fd;
}

.json-tutorial .workflow-connector-chevron {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #3b82f6;
}

.json-tutorial .workflow-step {
  display: grid;
  gap: 4px;
  width: 140px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.json-tutorial .workflow-step em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.json-tutorial .line {
  display: none;
}

.json-tutorial .visual {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.json-tutorial .table-box {
  overflow-x: auto;
  margin: 18px 0 28px;
}

.json-tutorial .table-filter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.json-tutorial .table-filter select {
  min-width: 200px;
  padding: 8px 12px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.json-tutorial .table-caption {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.json-tutorial table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.json-tutorial th,
.json-tutorial td {
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.json-tutorial th {
  color: #334155;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.json-tutorial td {
  color: #475569;
  line-height: 1.5;
}

.json-tutorial .chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin: 1rem 0 2.5rem;
}

.json-tutorial .chart-card {
  background: #ffffff;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  padding: 20px 20px 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.json-tutorial .chart-card h3 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.json-tutorial .chart-card p {
  margin: 6px 0 10px;
  color: #6b7280;
  font-size: 0.8rem;
}

.json-tutorial .tutorial-chart {
  display: block;
  width: 100%;
  height: auto;
}

.json-tutorial .chart-gridline {
  stroke: #e5e7eb;
  stroke-width: 1;
}

.json-tutorial .chart-axis {
  fill: #94a3b8;
  font-size: 10px;
  text-anchor: end;
}

.json-tutorial .chart-label {
  fill: #475569;
  font-size: 9px;
}

.json-tutorial .numbered-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  display: grid;
  gap: 12px;
}

.json-tutorial .numbered-steps li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.json-tutorial .timeline {
  position: relative;
  margin: 2rem auto 3rem;
  max-width: 980px;
}

.json-tutorial .timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, transparent, #4f46e5, transparent);
  transform: translateX(-50%);
}

.json-tutorial .event {
  width: 46%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.json-tutorial .event.left {
  margin-right: auto;
}

.json-tutorial .event.right {
  margin-left: auto;
}

.json-tutorial .event .circle {
  position: absolute;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4f46e5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #4f46e5;
}

.json-tutorial .event.left .circle {
  right: -8.2%;
}

.json-tutorial .event.right .circle {
  left: -8.2%;
}

.json-tutorial .year {
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.json-tutorial .event h3 {
  margin: 0 0 0.4rem;
  color: #0f172a;
}

.json-tutorial .event p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.json-tutorial .json-tutorial-footer {
  padding: 18px 20px;
  color: #94a3b8;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 12px;
}

.json-tutorial .json-tutorial-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .json-tutorial .section {
    grid-template-columns: 1fr;
  }

  .json-tutorial .timeline::before {
    left: 12px;
  }

  .json-tutorial .event {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 2rem;
  }

  .json-tutorial .event .circle {
    left: 6px !important;
    right: auto !important;
  }
}

.json-tutorial .z-card.has-cover {
  overflow: hidden;
  padding: 0 0 18px;
}

.json-tutorial .z-card-cover {
  display: block;
  width: 100%;
  height: 148px;
  margin-bottom: 14px;
  -o-object-fit: cover;
     object-fit: cover;
}

.json-tutorial .z-card.has-cover .z-badge,
.json-tutorial .z-card.has-cover .z-card-title,
.json-tutorial .z-card.has-cover .z-card-desc,
.json-tutorial .z-card.has-cover .z-card-list {
  margin-left: 20px;
  margin-right: 20px;
}

.json-tutorial .journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin: 0 0 22px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f4f7fb, #ffffff);
  border: 1px solid #d7e3f2;
  border-radius: 12px;
}

.json-tutorial .journal-meta span {
  display: grid;
  gap: 2px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
}

.json-tutorial .journal-meta b {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.json-tutorial .journal-listen {
  padding: 8px 12px;
  color: #ffffff;
  background: #082a62;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.json-tutorial .journal-figure {
  margin: 0 0 28px;
}

.json-tutorial .video-embed-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: 8px;
}

.json-tutorial .video-embed-frame,
.json-tutorial .video-embed-file,
.studio-video-preview .video-embed-frame,
.studio-video-preview .video-embed-file {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.json-tutorial .video-embed-file,
.studio-video-preview .video-embed-file {
  -o-object-fit: contain;
     object-fit: contain;
  background: #0f172a;
}

.json-tutorial .video-embed figcaption {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  color: #475569;
  font-size: 14px;
}

.json-tutorial .video-embed figcaption strong {
  color: #0f172a;
}

.studio-video-preview {
  width: min(100%, 560px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
  border-radius: 8px;
}

.studio-field-hint {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.json-tutorial.is-journal {
  overflow: visible;
  color: #0f172a;
  background: transparent;
  line-height: 1.8;
}

.json-tutorial.is-journal .content-wrapper {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 64px;
}

.json-tutorial.is-journal .z-paragraph,
.json-tutorial.is-journal .z-list {
  max-width: none;
  margin: 1.5rem 0;
  color: #0f172a;
  font-size: calc(1.125rem * var(--journal-zoom, 1));
  line-height: 1.8;
  text-align: left;
}

.json-tutorial.is-journal .z-heading {
  margin: 3.25rem 0 0.5rem;
  color: #1e3a8a;
  font-size: calc(1.9rem * var(--journal-zoom, 1));
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.json-tutorial.is-journal h3.z-heading {
  margin: 2rem 0 0.45rem;
  color: #1e3a8a;
  font-size: calc(1.2rem * var(--journal-zoom, 1));
  letter-spacing: 0;
}

.json-tutorial.is-journal .journal-kicker {
  max-width: none;
  margin: 0 0 1.1rem;
  color: #475569;
  font-size: calc(1.1rem * var(--journal-zoom, 1));
  line-height: 1.6;
  text-align: left;
}

.json-tutorial.is-journal .strip {
  max-width: none;
  margin: 2.5rem 0;
  padding: 1.2rem 1.5rem;
  color: #0f172a;
  background: #eef2ff;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  font-size: calc(1.05rem * var(--journal-zoom, 1));
  font-weight: 500;
  line-height: 1.7;
}

.json-tutorial.is-journal .z-list li,
.json-tutorial.is-journal .table-box,
.json-tutorial.is-journal .journal-code {
  font-size: calc(1.05rem * var(--journal-zoom, 1));
}

.json-tutorial.is-journal .journal-figure {
  margin: 0 0 2rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.json-tutorial.is-journal .journal-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center top;
     object-position: center top;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: transparent;
}

.json-tutorial.is-journal .z-card {
  overflow: hidden;
}

.json-tutorial.is-journal .z-card-cover {
  height: auto;
  max-height: none;
  margin-bottom: 16px;
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center top;
     object-position: center top;
  background: #eef2ff;
}

.json-tutorial.is-journal .z-card-title {
  font-size: calc(1.15rem * var(--journal-zoom, 1));
}

.json-tutorial.is-journal .z-card-desc,
.json-tutorial.is-journal .z-card-list {
  font-size: calc(0.98rem * var(--journal-zoom, 1));
  line-height: 1.65;
}

.json-tutorial.is-journal .z-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.json-tutorial .journal-kicker {
  margin: -8px 0 12px;
  color: #64748b;
  font-size: 14px;
}

.json-tutorial .journal-code {
  overflow-x: auto;
  margin: 12px 0 24px;
  padding: 16px 18px;
  color: #e2e8f0;
  background: #0f172a;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
}
.learn-host {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

.learn-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.learn-frame {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.learn-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
}

.learn-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  width: min(260px, 86vw);
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
  transform: translateX(-110%);
  transition: transform 0.2s ease;
}

.learn-sidebar.is-open {
  transform: translateX(0);
}

.learn-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.learn-sidebar-head strong {
  color: #172033;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.learn-sidebar-close {
  display: grid;
  place-items: center;
  padding: 4px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.learn-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  -webkit-overflow-scrolling: touch;
}

.learn-nav-label {
  margin: 10px 8px 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learn-nav-item {
  display: block;
  margin-bottom: 2px;
  padding: 9px 10px;
  color: #334155;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.learn-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.learn-nav-item.is-active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.learn-javascript .learn-sidebar { border-left: 3px solid #2563eb; }
.learn-react .learn-sidebar { border-left: 3px solid #0284c7; }
.learn-nextjs .learn-sidebar { border-left: 3px solid #7c3aed; }

.learn-javascript .learn-nav-item.is-active { background: #eff6ff; color: #1d4ed8; }
.learn-react .learn-nav-item.is-active { background: #f0f9ff; color: #0369a1; }
.learn-nextjs .learn-nav-item.is-active { background: #f5f3ff; color: #6d28d9; }

.learn-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
}

.learn-article,
.learn-dashboard,
.learn-showcase {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  color: #1e2937;
}

.learn-article {
  max-width: none;
  padding: 20px 20px 48px;
  background: var(--bg);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.learn-article.is-dashboard {
  padding: 8px 4px 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.learn-article *,
.learn-dashboard *,
.learn-showcase * {
  box-sizing: border-box;
}

.learn-article img,
.learn-article video,
.learn-article svg,
.learn-article canvas {
  max-width: 100%;
  height: auto;
}

.learn-article pre,
.learn-article table,
.learn-article .overflow-x-auto {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.learn-article table {
  border-collapse: collapse;
}

.learn-article ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.learn-article ol {
  list-style: decimal;
  padding-left: 1.2rem;
}

.learn-article h1,
.learn-article h2,
.learn-article h3 {
  color: #0f172a;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.learn-article p,
.learn-article li {
  color: #334155;
  font-size: 14px;
  line-height: 1.7;
}

.learn-article article,
.learn-article .learn-react-page {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.learn-article:not(.is-dashboard) header,
.learn-article:not(.is-dashboard) [class*="from-amber"],
.learn-article:not(.is-dashboard) [class*="from-blue-"],
.learn-article:not(.is-dashboard) [class*="from-indigo"],
.learn-article:not(.is-dashboard) [class*="from-purple"],
.learn-article:not(.is-dashboard) [class*="from-yellow"] {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 16px;
  padding: 16px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid #e8eef5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html.theme-light .learn-article article,
html.theme-light .learn-article .min-h-screen,
html.theme-light .learn-article [class*="bg-gradient"] {
  background: #ffffff !important;
  background-image: none !important;
}

.learn-article:not(.is-dashboard) header h1,
.learn-article:not(.is-dashboard) header h2,
.learn-article:not(.is-dashboard) [class*="from-amber"] h2,
.learn-article:not(.is-dashboard) [class*="from-amber"] p,
.learn-article:not(.is-dashboard) [class*="from-yellow"] h2,
.learn-article:not(.is-dashboard) [class*="from-yellow"] p,
.learn-article:not(.is-dashboard) [class*="from-purple"] h2,
.learn-article:not(.is-dashboard) [class*="from-purple"] p,
.learn-article:not(.is-dashboard) [class*="from-blue-"] h1,
.learn-article:not(.is-dashboard) [class*="from-blue-"] p {
  color: inherit !important;
  max-width: 100% !important;
}

.learn-article .max-w-xs,
.learn-article .max-w-sm,
.learn-article .max-w-md,
.learn-article .max-w-2xl,
.learn-article .max-w-3xl,
.learn-article .max-w-4xl {
  max-width: 100% !important;
}

.learn-react-page section {
  margin-bottom: 28px;
}

.learn-react-page h2 {
  margin-bottom: 10px;
  border-left: 4px solid #0284c7;
  padding-left: 10px;
  font-size: 1.15rem;
}

.learn-showcase,
.learn-dashboard {
  padding: 16px 12px 40px;
}

.learn-showcase-hero,
.learn-dashboard-hero {
  margin-bottom: 20px;
}

.learn-showcase-hero h1,
.learn-dashboard-hero h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.learn-showcase-hero p,
.learn-dashboard-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.learn-showcase-grid,
.learn-dashboard-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.learn-showcase-card,
.learn-dashboard-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  color: inherit;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.learn-showcase-card:hover,
.learn-dashboard-card:hover {
  border-color: #93c5fd;
}

.learn-showcase-tag {
  width: -moz-fit-content;
  width: fit-content;
  padding: 3px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.learn-showcase-card strong,
.learn-dashboard-card strong {
  color: #172033;
  font-size: 15px;
}

.learn-showcase-card span,
.learn-dashboard-card span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.learn-showcase-card em {
  color: #94a3b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.learn-dashboard-section {
  margin-bottom: 24px;
}

.learn-dashboard-section h2 {
  margin: 0 0 12px;
  border-left: 4px solid #2563eb;
  padding-left: 10px;
  color: #172033;
  font-size: 16px;
}

.dashboard-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dashboard-card-tag {
  padding: 4px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-card-tag:hover {
  background: #dbeafe;
}

html.theme-dark .learn-article {
  background: var(--bg);
  border-color: var(--sidebar-border);
}

html.theme-dark .learn-article:not(.is-dashboard) header,
html.theme-dark .learn-article:not(.is-dashboard) [class*="from-amber"],
html.theme-dark .learn-article:not(.is-dashboard) [class*="from-blue-"],
html.theme-dark .learn-article:not(.is-dashboard) [class*="from-indigo"],
html.theme-dark .learn-article:not(.is-dashboard) [class*="from-purple"],
html.theme-dark .learn-article:not(.is-dashboard) [class*="from-yellow"] {
  color: var(--text) !important;
  background: var(--bg) !important;
  border-bottom-color: var(--sidebar-border) !important;
}

html.theme-dark .learn-sidebar {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-border);
}

html.theme-dark .learn-sidebar-head {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-border);
}

html.theme-dark .learn-sidebar-head strong,
html.theme-dark .learn-nav-item,
html.theme-dark .learn-article h1,
html.theme-dark .learn-article h2,
html.theme-dark .learn-article h3,
html.theme-dark .learn-showcase-hero h1,
html.theme-dark .learn-dashboard-hero h1 {
  color: var(--text);
}

html.theme-dark .learn-article p,
html.theme-dark .learn-article li,
html.theme-dark .learn-showcase-hero p,
html.theme-dark .learn-dashboard-hero p {
  color: var(--text-muted);
}

html.theme-dark .learn-showcase-card,
html.theme-dark .learn-dashboard-card {
  background: var(--card);
  border-color: var(--sidebar-border);
}

@media (max-width: 767px) {
  .learn-article {
    padding: 14px 12px 36px;
  }

  .learn-article h1,
  .learn-article h2,
  .learn-article .text-2xl,
  .learn-article .text-3xl,
  .learn-article .text-xl {
    font-size: 1.2rem !important;
    line-height: 1.35 !important;
  }

  .learn-article p,
  .learn-article li {
    font-size: 13.5px;
  }

  .learn-article pre,
  .learn-article code {
    font-size: 12px !important;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .learn-nav-item {
    padding: 11px 10px;
  }
}

@media (min-width: 768px) {
  .learn-sidebar {
    position: static;
    width: 240px;
    box-shadow: none;
    transform: none;
  }

  .learn-overlay,
  .learn-sidebar-close {
    display: none;
  }

  .learn-main {
    padding: 20px 24px 40px;
  }

  .learn-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learn-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .learn-dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.utilities-workspace-card {
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  min-width: 0;
  max-width: 560px;
  padding: 16px;
  color: inherit;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.06);
  font: inherit;
}

.utilities-workspace-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.utilities-workspace-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 6px;
}

.utilities-workspace-icon svg {
  width: 19px;
  height: 19px;
}

.utilities-workspace-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.utilities-workspace-copy strong {
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.utilities-workspace-copy p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.utilities-workspace-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.utilities-workspace-tile {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.utilities-workspace-tile svg {
  width: 13px;
  height: 13px;
  color: #64748b;
  flex: 0 0 auto;
}

.utilities-workspace-tile span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.utilities-workspace-tile:hover {
  color: #1e293b;
  background: transparent;
  border-color: transparent;
}

@media (max-width: 800px) {
  .utilities-workspace-card {
    max-width: none;
    width: 100%;
  }
}

.member-vault-page {
  flex: 1;
  overflow-y: auto;
  padding: 28px clamp(20px, 5vw, 72px) 64px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, rgba(8, 42, 98, 0.06), transparent 28%),
    var(--bg);
}

.member-vault-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1080px;
  margin: 0 auto 22px;
  padding: 10px 14px;
  color: #082a62;
  background: #f4f7fb;
  border: 1px solid #d5deee;
  border-radius: 8px;
  font-size: 12px;
}

.member-vault-banner p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.member-vault-banner svg {
  width: 16px;
  height: 16px;
}

.member-vault-hero,
.member-vault-panel,
.member-vault-export,
.member-vault-tabs,
.member-vault-notice {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.member-vault-back {
  margin-bottom: 16px;
  padding: 0;
  color: #1d4ed8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.member-vault-identity {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
}

.member-vault-identity .member-avatar {
  width: 120px;
  height: 120px;
}

.member-avatar-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-avatar-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  cursor: pointer;
}

.member-avatar-picker button.is-active {
  border-color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.12);
}

.member-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #0f172a;
  background: linear-gradient(180deg, #f4f5f7, #dfe4eb);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  font-weight: 700;
}

.member-avatar.is-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 10px;
}

.member-avatar.is-md {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.member-avatar.is-lg {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  font-size: 18px;
}

.member-avatar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.member-avatar svg {
  width: 62%;
  height: 62%;
  display: block;
}

.member-avatar.is-slate { background: linear-gradient(180deg, #e2e8f0, #cbd5e1); }
.member-avatar.is-graphite { background: linear-gradient(180deg, #e5e7eb, #9ca3af); }
.member-avatar.is-ash { background: linear-gradient(180deg, #f3f4f6, #d1d5db); }
.member-avatar.is-charcoal { background: linear-gradient(180deg, #cbd5e1, #6b7280); }
.member-avatar.is-mist { background: linear-gradient(180deg, #f8fafc, #dfe7ef); }
.member-avatar.is-initials { background: linear-gradient(180deg, #f1f5f9, #dfe7ef); }

.member-vault-identity h1 {
  margin: 0;
  color: #082a62;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
}

.member-vault-identity > div > p {
  margin: 8px 0 0;
  color: #64748b;
}

.member-vault-promise {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin-top: 14px !important;
  color: #334155 !important;
  font-size: 14px;
  line-height: 1.55;
}

.member-vault-promise svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #082a62;
}

.member-vault-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 28px auto 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe3ed;
}

.member-vault-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  aspect-ratio: 1;
  padding: 12px 8px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-align: center;
}

.member-vault-tabs button:last-child {
  border-right: 0;
}

.member-vault-tabs button svg {
  width: 22px;
  height: 22px;
}

.member-vault-tabs button.is-active {
  color: #082a62;
  background: #f8fafc;
  box-shadow: inset 0 -3px 0 #082a62;
}

.member-vault-tabs button span {
  max-width: 9.5em;
}

.member-vault-notice {
  margin: 0 auto 14px;
  padding: 10px 12px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13px;
}

.member-vault-panel,
.member-vault-export {
  margin-bottom: 18px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.member-vault-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.member-vault-panel h2,
.member-vault-export h2 {
  margin: 0;
  font-size: 18px;
}

.member-vault-panel-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
}

.member-vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-vault-actions button,
.member-vault-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: #082a62;
  background: #ffffff;
  border: 1px solid #c5d0e0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.member-vault-actions button svg {
  width: 14px;
  height: 14px;
}

.member-vault-primary {
  color: #ffffff;
  background: #082a62;
  border-color: #082a62;
}

.member-vault-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.member-vault-page label,
.member-vault-block {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.member-vault-page label.is-wide,
.member-vault-block {
  grid-column: 1 / -1;
}

.member-vault-page input,
.member-vault-page select,
.member-vault-page textarea {
  width: 100%;
  padding: 10px 11px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.member-vault-heading-input {
  font-weight: 700 !important;
}

.member-vault-empty {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.member-vault-chip {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 0 14px;
  padding: 4px 8px;
  color: #082a62;
  background: #eef3fb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.member-vault-record {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e8eef5;
}

.member-vault-export pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #1e293b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

html.theme-dark .utilities-workspace-card,
html.theme-dark .member-vault-panel,
html.theme-dark .member-vault-export {
  background: var(--card);
  border-color: var(--sidebar-border);
  color: var(--text);
}

html.theme-dark .member-vault-tabs {
  background: var(--card);
  border-color: var(--sidebar-border);
}

html.theme-dark .member-vault-tabs button {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--sidebar-border);
}

html.theme-dark .member-vault-tabs button.is-active {
  color: var(--text);
  background: var(--bg);
}

html.theme-dark .utilities-workspace-copy strong,
html.theme-dark .member-vault-identity h1 {
  color: var(--text);
}

html.theme-dark .utilities-workspace-copy p {
  color: var(--text-muted);
}

html.theme-dark .utilities-workspace-tile {
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
}

html.theme-dark .member-vault-page input,
html.theme-dark .member-vault-page select,
html.theme-dark .member-vault-page textarea,
html.theme-dark .member-vault-export pre {
  color: var(--text);
  background: var(--bg);
  border-color: var(--sidebar-border);
}

.member-identity-copy .member-meta,
.member-vault-identity .member-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.member-identity-copy .member-meta span,
.member-vault-identity .member-meta span {
  display: grid;
  gap: 2px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.member-identity-copy .member-meta b,
.member-vault-identity .member-meta b {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-sample-note,
.member-identity-copy small {
  margin-top: 6px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.member-vault-tabs button.is-priority {
  padding: 11px 16px;
  border-color: #082a62;
  box-shadow: 0 0 0 1px rgba(8, 42, 98, 0.08);
}

.member-vault-stage,
.member-vault-stage-hero,
.member-vault-workspace,
.member-job-board,
.member-job-desk {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.member-vault-stage {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #082a62;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(8, 42, 98, 0.08);
}

.member-vault-stage-hero {
  padding: 22px 22px 8px;
  background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.member-vault-stage-hero > p {
  margin: 0 0 8px;
  color: #082a62;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-vault-stage-hero h2 {
  font-size: 28px;
  letter-spacing: -0.03em;
}

.member-vault-workspace {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 640px;
}

.member-vault-outline {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.member-vault-outline strong {
  margin-bottom: 8px;
  color: #082a62;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.member-vault-outline button {
  padding: 10px 10px;
  color: #334155;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.member-vault-outline button.is-active {
  color: #082a62;
  background: #ffffff;
  box-shadow: 0 0 0 1px #d5deee;
}

.member-vault-document {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #ffffff;
}

.member-vault-document h3 {
  margin: 0;
  font-size: 16px;
}

.member-vault-document textarea {
  min-height: 96px;
  line-height: 1.7;
}

.member-job-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 16px 0;
}

.member-job-column {
  min-height: 220px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.member-job-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  color: #082a62;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-job-column h3 span {
  color: #64748b;
}

.member-job-card {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.member-job-card.is-active {
  border-color: #082a62;
  box-shadow: 0 0 0 1px #082a62;
}

.member-job-card strong {
  font-size: 13px;
}

.member-job-card span {
  color: #64748b;
  font-size: 12px;
}

.member-job-desk {
  margin: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #d5deee;
  border-radius: 12px;
}

.member-job-desk h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.member-job-desk textarea {
  min-height: 240px;
}

html.theme-dark .member-vault-stage,
html.theme-dark .member-vault-document,
html.theme-dark .member-job-card,
html.theme-dark .member-job-desk {
  background: var(--card);
  border-color: var(--sidebar-border);
}

html.theme-dark .member-vault-outline,
html.theme-dark .member-job-column,
html.theme-dark .member-vault-stage-hero {
  background: var(--bg);
}

@media (max-width: 800px) {
  .member-identity-card {
    max-width: none;
    width: 100%;
  }

  .member-identity-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .member-identity-copy {
    align-items: center;
  }

  .member-identity-actions {
    justify-content: center;
  }

  .member-vault-identity,
  .member-vault-grid,
  .member-vault-workspace,
  .member-job-board,
  .career-file-grid {
    grid-template-columns: 1fr;
  }

  .member-vault-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-vault-tabs button {
    aspect-ratio: auto;
    min-height: 92px;
    border-bottom: 1px solid #e2e8f0;
  }

  .member-vault-tabs button:nth-child(2n) {
    border-right: 0;
  }

  .career-file-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .career-file-hero .member-avatar.is-lg {
    margin: 0 auto;
  }

  .career-file-meta {
    justify-content: center;
  }

  .career-file-resume-cta {
    width: 100%;
    justify-content: center;
  }

}


/* Career file redesign */
.career-file-page {
  flex: 1;
  overflow-y: auto;
  padding: 20px clamp(16px, 4vw, 48px) 48px;
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 220px);
}

.career-file-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.career-file-back,
.career-file-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.career-file-back {
  padding: 0;
  color: #082a62;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.career-file-back svg,
.career-file-lock svg {
  width: 14px;
  height: 14px;
}

.career-file-lock {
  color: #64748b;
}

.career-file-hero {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(8, 42, 98, 0.05);
}

.career-file-hero .member-avatar.is-lg {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  font-size: 15px;
}

.career-file-kicker {
  margin: 0 0 2px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.career-file-hero-copy h1 {
  margin: 0;
  color: #082a62;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
}

.career-file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
}

.career-file-meta span {
  color: #475569;
  font-size: 12px;
}

.career-file-meta b {
  display: block;
  color: #94a3b8;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.career-file-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1120px;
  margin: 0 auto 14px;
}

.career-file-nav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  color: #475569;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.career-file-nav button svg {
  width: 15px;
  height: 15px;
}

.career-file-nav button.is-active {
  color: #fff;
  background: #082a62;
  border-color: #082a62;
}

.career-file-notice,
.career-file-panel,
.career-file-empty {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.career-file-notice {
  margin-bottom: 12px;
  padding: 8px 12px;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.career-file-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
}

.career-file-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.career-file-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
}

.career-file-panel-head p,
.career-file-empty {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.career-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-file-actions button,
.career-file-primary {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.career-file-actions button {
  color: #0f172a;
  background: #fff;
  border: 1px solid #d7e0ee;
}

.career-file-primary {
  color: #fff;
  background: #082a62;
  border: 0;
}

.career-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.career-file-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.career-file-grid label.is-wide {
  grid-column: 1 / -1;
}

.career-file-grid input,
.career-file-grid select,
.career-file-grid textarea {
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.career-file-export pre {
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  white-space: pre-wrap;
}

/* Resume Builder — studio-style app shell */
.resume-studio-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f4f7fb;
}

.resume-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 20px;
  color: #0f172a;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.resume-studio-toolbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.resume-studio-toolbar-brand svg {
  width: 22px;
  height: 22px;
  color: #2563eb;
  flex: 0 0 auto;
}

.resume-studio-toolbar-brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.resume-studio-toolbar-brand p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
}

.resume-studio-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-studio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  color: #334155;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.resume-studio-btn svg {
  width: 14px;
  height: 14px;
}

.resume-studio-btn.is-primary {
  color: #fff;
  background: #082a62;
  border-color: #082a62;
}

.resume-studio {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.resume-studio.is-standalone {
  padding: 16px 18px 20px;
}

.resume-studio-inline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.resume-studio-inline-head h2 {
  margin: 0;
  font-size: 20px;
}

.resume-studio-inline-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.resume-studio-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.resume-studio-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 10px;
  overflow-y: auto;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.resume-studio-nav strong {
  margin: 0 6px 8px;
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-studio-nav button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  color: #334155;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.resume-studio-nav button.is-active {
  color: #082a62;
  background: #fff;
  box-shadow: 0 0 0 1px #d5deee;
}

.resume-studio-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 18px 20px 28px;
  overflow: auto;
}

.resume-studio-sheet-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.resume-studio-sheet-head p,
.resume-studio-hint,
.resume-studio-empty {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.resume-studio-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.resume-studio-panel-head h4 {
  margin: 0;
  font-size: 14px;
}

.resume-studio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resume-studio-field {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.resume-studio-field.is-wide {
  grid-column: 1 / -1;
}

.resume-studio-field input,
.resume-studio-field select,
.resume-studio-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  color: var(--text, #0f172a);
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.resume-studio-record {
  display: grid;
  gap: 12px;
  padding: 14px 0 4px;
  border-top: 1px solid #e8eef5;
}

.resume-studio-record:first-of-type {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 900px) {
  .career-file-hero {
    grid-template-columns: 64px 1fr;
  }

  .career-file-resume-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .career-file-grid,
  .resume-studio-workspace,
  .resume-studio-grid {
    grid-template-columns: 1fr;
  }

  .resume-studio.is-standalone {
    padding: 12px;
  }

  .resume-studio-nav {
    max-height: 180px;
  }
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.isolate {
  isolation: isolate;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.block {
  display: block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.table-caption {
  display: table-caption;
}
.grid {
  display: grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.h-full {
  height: 100%;
}
.h-screen {
  height: 100vh;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-8 {
  width: 2rem;
}
.w-full {
  width: 100%;
}
.w-screen {
  width: 100vw;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-full {
  max-width: 100%;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
  cursor: pointer;
}
.resize {
  resize: both;
}
.list-inside {
  list-style-position: inside;
}
.list-decimal {
  list-style-type: decimal;
}
.list-disc {
  list-style-type: disc;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.break-words {
  overflow-wrap: break-word;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-t-xl {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-t {
  border-top-width: 1px;
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-indigo-500 {
  --tw-border-opacity: 1;
  border-color: rgb(99 102 241 / var(--tw-border-opacity, 1));
}
.border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1));
}
.border-purple-500 {
  --tw-border-opacity: 1;
  border-color: rgb(168 85 247 / var(--tw-border-opacity, 1));
}
.border-purple-600 {
  --tw-border-opacity: 1;
  border-color: rgb(147 51 234 / var(--tw-border-opacity, 1));
}
.border-slate-200 {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-indigo-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(79 70 229 / var(--tw-bg-opacity, 1));
}
.bg-purple-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1));
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}
.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}
.bg-slate-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
}
.bg-slate-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-amber-900 {
  --tw-gradient-from: #78350f var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(120 53 15 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-600 {
  --tw-gradient-from: #9333ea var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-indigo-50 {
  --tw-gradient-to: rgb(238 242 255 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #eef2ff var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-yellow-900 {
  --tw-gradient-to: rgb(113 63 18 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #713f12 var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-pink-500 {
  --tw-gradient-to: #ec4899 var(--tw-gradient-to-position);
}
.to-purple-900 {
  --tw-gradient-to: #581c87 var(--tw-gradient-to-position);
}
.to-white {
  --tw-gradient-to: #fff var(--tw-gradient-to-position);
}
.p-2 {
  padding: 0.5rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.px-12 {
  padding-left: 3rem;
  padding-right: 3rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-purple-100 {
  --tw-text-opacity: 1;
  color: rgb(243 232 255 / var(--tw-text-opacity, 1));
}
.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}
.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}
.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-slate-100 {
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity, 1));
}
.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}
.text-slate-900 {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ============================================================
   THEME VARIABLES (similar to z-main-app.html)
============================================================ */
:root,
html.theme-light {
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --brand: #082a62;
  --zeshor: #082a62;
  --hover: #f1f5f9;
  --header-bg: #ffffff;
  --header-text: #0f172a;
  --header-muted: #64748b;
  --header-border: #e5e7eb;
  --header-search-bg: #f8fafc;
  --header-search-border: #e2e8f0;
  --header-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  --menu-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

html.theme-dark,
html.dark {
  --bg: #0b1220;
  --bg-muted: #111827;
  --card: #151c2c;
  --text: #e5edf7;
  --text-muted: #94a3b8;
  --sidebar-bg: #121a2a;
  --sidebar-border: #243044;
  --brand: #818cf8;
  --zeshor: #8eb4ff;
  --hover: #1c2740;
  --header-bg: #101826;
  --header-text: #e5edf7;
  --header-muted: #94a3b8;
  --header-border: #243044;
  --header-search-bg: #0b1220;
  --header-search-border: #2a3a52;
  --header-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  --menu-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Disable user selection */
body {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
}

/* Sidebar Styles - matching z-main-app.html */
.sidebar-menu {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-menu::-webkit-scrollbar {
  width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background: var(--sidebar-border);
  border-radius: 3px;
}

/* Menu Item Styles - matching z-main-app.html */
.menu-item {
  padding: 8px;
  display: flex;
  gap: 8px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.2;
  align-items: center;
  justify-content: flex-start;
  color: var(--text);
  transition: all 0.15s ease;
  border-radius: 4px;
  margin: 1px 4px;
  overflow: hidden;
}

.menu-item .sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.menu-item:hover {
  background: var(--hover);
}

.menu-item.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
  border-left: 3px solid #2563eb;
}

/* Category Label */
.category-label {
  font-size: 9px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  margin-top: 10px;
  padding-left: 8px;
}

.category-label:first-of-type {
  margin-top: 0;
}

/* Tutorial Category Divider */
.tutorial-category {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--sidebar-border);
}

.tutorial-category:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Control Buttons */
.control-btn {
  width: 36px;
  height: 36px;
  background: #9ca3af;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-btn:hover {
  background: #6b7280;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.control-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-mode-btn {
  padding: 0 13px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.content-mode-btn:hover { background: #dbeafe; }

.topic-scroll {
  position: relative;
  background: var(--bg);
}

.topic-chrome.is-pinned {
  position: sticky;
  top: 0;
  z-index: 25;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.topic-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 32px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--sidebar-border);
  text-align: left;
}

.topic-chrome.is-journal {
  position: relative;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 72%);
  border-bottom: 1px solid var(--sidebar-border);
}

.topic-chrome.is-journal > .topic-pin-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.topic-header-copy {
  min-width: 0;
}

.topic-header .eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
}

.topic-header h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: left;
}

.topic-header p {
  max-width: 820px;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
}

.topic-pin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topic-pin-btn.is-active {
  color: #1d4ed8;
  background: #dbeafe;
}

.topic-pin-btn svg {
  width: 16px;
  height: 16px;
}

.topic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: #ffffff;
  border-bottom: 1px solid var(--sidebar-border);
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: #d1d5db;
}

.toolbar-zoom-label {
  min-width: 42px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.topic-main {
  padding: 24px 32px 48px;
  max-width: 100%;
  overflow-x: hidden;
}

.topic-header.is-journal,
.topic-chrome.is-journal .journal-reader-bar,
.topic-main.is-journal .json-tutorial.is-journal .content-wrapper {
  box-sizing: border-box;
  max-width: 920px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.topic-header.is-journal {
  display: block;
  padding-top: 40px;
  padding-bottom: 8px;
  background: transparent;
  border-bottom: 0;
}

.topic-header.is-journal .eyebrow {
  margin-bottom: 12px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-header.is-journal h1 {
  max-width: 100%;
  color: #0f172a;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.topic-header.is-journal p {
  max-width: 100%;
  margin-top: 18px;
  color: #475569;
  font-size: 1.25rem;
  line-height: 1.7;
}

.topic-main.is-journal {
  padding: 12px 0 80px;
  overflow: visible;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

.journal-reader-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding-top: 18px;
  padding-bottom: 28px;
  background: transparent;
  border-bottom: 0;
}

.journal-reader-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.journal-reader-item > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #2563eb;
}

.journal-reader-item > span {
  display: grid;
  gap: 2px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.journal-reader-bar b {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journal-listen,
.journal-zoom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1e3a8a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
}

.journal-listen {
  padding: 8px 14px;
}

.journal-listen svg,
.journal-zoom button svg {
  width: 20px;
  height: 20px;
}

.journal-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.journal-zoom button {
  width: 38px;
  height: 38px;
  padding: 0;
}

.journal-zoom em {
  min-width: 48px;
  color: #475569;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  text-align: center;
}

html.theme-dark .topic-chrome.is-journal,
html.dark .topic-chrome.is-journal {
  background: linear-gradient(180deg, #151c2c 0%, var(--bg) 78%);
}

html.theme-dark .topic-header.is-journal h1,
html.dark .topic-header.is-journal h1,
html.theme-dark .journal-reader-item > span,
html.dark .journal-reader-item > span {
  color: var(--text);
}

html.theme-dark .topic-header.is-journal p,
html.dark .topic-header.is-journal p {
  color: var(--text-muted);
}

.topic-main:fullscreen,
.flex-col:fullscreen {
  background: #f8fafc;
  overflow: auto;
}

@media print {
  .app-header,
  .sidebar-menu,
  .topic-toolbar,
  .topic-pin-btn,
  footer {
    display: none !important;
  }

  .topic-chrome,
  .topic-header {
    position: static !important;
    box-shadow: none !important;
  }
}

.technology-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px clamp(18px, 4vw, 44px) 56px;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
}

.document-meta { display: flex; gap: 8px; margin-bottom: 18px; }
.document-meta span { padding: 4px 8px; color: #1d4ed8; background: #eff6ff; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.document-meta span:last-child { color: #166534; background: #f0fdf4; }
.technology-document h1 { margin: 0; color: #172033; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.document-summary { max-width: 720px; margin: 14px 0 18px; color: #64748b; font-size: 15px; line-height: 1.6; }
.document-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.document-link { color: #1d4ed8; font-size: 12px; font-weight: 700; }
.pronunciation-button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: #334155; background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 5px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.pronunciation-button svg { width: 14px; height: 14px; }
.pronunciation-button:hover, .pronunciation-button[aria-pressed='true'] { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.document-blocks { margin-top: 38px; }
.document-blocks h2 { margin: 32px 0 10px; color: #172033; font-size: 21px; letter-spacing: -0.02em; }
.document-blocks h3 { margin: 0 0 10px; color: #334155; font-size: 14px; }
.document-blocks p { max-width: 780px; color: #475569; font-size: 14px; line-height: 1.7; }
.document-list ul, .document-pros-cons ul { margin: 0; padding-left: 20px; color: #475569; font-size: 13px; line-height: 1.8; list-style-type: disc; list-style-position: outside; }
.document-list { margin-top: 22px; }
.document-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.document-pros-cons section { padding: 16px; border: 1px solid #dbe3ed; border-radius: 6px; }
.document-pros-cons section:first-child { background: #f6fdf8; border-color: #bbf7d0; }
.document-pros-cons section:last-child { background: #fffaf5; border-color: #fed7aa; }
.document-table-wrap { overflow-x: auto; margin-top: 18px; }
.document-table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; }
.document-table-wrap th, .document-table-wrap td { padding: 11px 12px; border: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.document-table-wrap th { color: #334155; background: #f8fafc; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.document-table-wrap td { color: #475569; line-height: 1.5; }
.document-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 18px 0 30px; }
.document-card { padding: 20px; background: #ffffff; border: 1px solid #e7eaf0; border-radius: 12px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.document-card:hover { transform: translateY(-3px); box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12); }
.document-card-badge { display: inline-block; padding: 4px 10px; color: #4653d9; background: #eef1ff; border-radius: 7px; font-size: 10px; font-weight: 700; }
.document-card h3 { margin: 13px 0 6px; color: #222; font-size: 19px; }
.document-rating { margin-bottom: 10px; color: #f7b500; font-size: 14px; letter-spacing: 1px; }
.document-rating span { color: #d9dce3; }
.document-card p { min-height: 65px; margin: 0 0 12px; color: #555; font-size: 13px; line-height: 1.55; }
.document-card ul { min-height: 70px; margin: 0 0 15px; padding-left: 20px; color: #333; font-size: 12px; line-height: 1.7; list-style-type: disc; list-style-position: outside; }
.document-popularity { height: 6px; margin-bottom: 13px; overflow: hidden; background: #dcdcdc; border-radius: 4px; }
.document-popularity span { display: block; height: 100%; background: linear-gradient(90deg, #6c8bff, #9f6cff); border-radius: 4px; }
.document-card-link { display: inline-block; padding: 7px 12px; color: #ffffff; background: #222; border-radius: 7px; font-size: 12px; text-decoration: none; }
.document-card-link:hover { background: #444; }
.technology-document pre { overflow-x: auto; margin-top: 18px; padding: 16px; color: #dbeafe; background: #172b45; border-radius: 6px; font-size: 12px; line-height: 1.6; }
.technology-document pre code { font-family: 'Cascadia Code', Consolas, monospace; }
.document-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.document-metrics > div { display: grid; gap: 4px; padding: 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; }
.document-metrics strong { color: #1d4ed8; font-size: 20px; letter-spacing: -0.02em; }
.document-metrics span { color: #334155; font-size: 12px; font-weight: 700; }
.document-metrics small { color: #94a3b8; font-size: 10px; }
.document-callout { margin: 24px 0; padding: 15px 17px; border-left: 3px solid #60a5fa; background: #eff6ff; border-radius: 0 6px 6px 0; }
.document-callout strong { color: #1e40af; font-size: 13px; }
.document-callout p { margin: 7px 0 0; color: #475569; font-size: 13px; line-height: 1.6; }
.document-callout-warning { border-color: #f59e0b; background: #fffbeb; }
.document-callout-warning strong { color: #92400e; }
.document-callout-success { border-color: #22c55e; background: #f0fdf4; }
.document-callout-success strong { color: #166534; }
.document-matrix-wrap { overflow-x: auto; margin-top: 22px; }
.document-matrix { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; }
.document-matrix th, .document-matrix td { padding: 12px; border: 1px solid #e2e8f0; text-align: center; }
.document-matrix th { color: #334155; background: #f8fafc; font-size: 11px; text-align: left; }
.document-matrix td { background: #ffffff; }
.matrix-score { display: inline-flex; min-width: 34px; justify-content: center; padding: 4px 6px; border-radius: 4px; color: #334155; background: #e2e8f0; font-size: 10px; font-weight: 700; }
.matrix-score-4, .matrix-score-5 { color: #166534; background: #dcfce7; }
.matrix-score-3 { color: #92400e; background: #fef3c7; }
.matrix-score-1, .matrix-score-2 { color: #9f1239; background: #ffe4e6; }

/* Iframe Container */
#contentFrame {
  width: 100%;
  min-height: 1000px;
  border: 0;
  background: #fff;
  display: block;
  overflow: hidden;
}

/* Back Button */
.back-btn {
  background: var(--brand);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-btn:hover {
  background: #4338ca;
  transform: scale(1.02);
}

/* Disable right-click */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.sidebar-home-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 1px 4px 10px;
  padding: 0;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-home-action {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.2;
  text-align: left;
  overflow: hidden;
}

.sidebar-home-action:hover,
.sidebar-collapse:hover {
  background: var(--hover);
}

.sidebar-home-action .sidebar-icon,
.sidebar-collapse svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-collapse {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.sidebar-menu.is-minimized .sidebar-home-row {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0 0 10px;
}

.sidebar-menu.is-minimized .sidebar-home-action,
.sidebar-menu.is-minimized .sidebar-collapse {
  width: 100%;
  height: 36px;
  padding: 8px;
  justify-content: center;
}

.sidebar-menu.is-minimized .sidebar-home-action {
  flex: 0 0 auto;
}

.sidebar-menu.is-minimized .menu-item {
  justify-content: flex-start;
}

/* Application entry and shell */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  background: #0f1f35;
  color: #f8fafc;
}

.login-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px clamp(32px, 7vw, 112px) 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(59, 130, 246, 0.24), transparent 28%),
    linear-gradient(145deg, #102a48 0%, #0f1f35 58%, #0b1728 100%);
}

.login-brand,
.app-header-brand {
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  line-height: 1;
}

.brand-wordmark {
  font-family: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.04em;
  color: var(--zeshor, #082a62);
}

.brand-product {
  margin-left: 11px;
  padding-left: 11px;
  border-left: 1px solid #c5d0de;
  color: #334155;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.brand-lockup.is-inverted .brand-wordmark {
  padding: 3px 11px 5px;
  color: #082a62;
  background: #ffffff;
  border-radius: 3px;
}

.brand-lockup.is-inverted .brand-product {
  color: rgba(255, 255, 255, 0.9);
  border-left-color: rgba(255, 255, 255, 0.28);
}

html.theme-dark .brand-wordmark {
  color: #8eb4ff;
}

html.theme-dark .brand-product {
  color: #cbd5e1;
  border-left-color: #334155;
}

.login-intro-content {
  max-width: 660px;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.login-intro h1 {
  max-width: 620px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.login-lede {
  max-width: 540px;
  margin: 28px 0 0;
  color: #b7c7da;
  font-size: 17px;
  line-height: 1.65;
}

.login-capabilities {
  display: grid;
  gap: 12px;
  max-width: 500px;
  margin-top: 48px;
}

.login-capabilities div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  color: #dce8f5;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
}

.login-capabilities strong {
  color: #60a5fa;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.login-footer-note {
  margin: 0;
  color: #8095ad;
  font-size: 12px;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 32px;
  background: #f8fafc;
  color: #172033;
}

.login-panel-inner {
  width: min(100%, 410px);
}

.login-panel-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.login-panel-heading > p:last-child {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

.login-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.login-methods button {
  height: 34px;
  padding: 0 12px;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.login-methods button.is-on {
  color: #1d4ed8;
  border-color: #1d4ed8;
  background: #eff6ff;
}

.login-methods button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.login-methods button em {
  margin-left: 6px;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.admin-users-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #f8fafc;
}

.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.admin-users-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-users-title svg {
  width: 28px;
  height: 28px;
  color: #1d4ed8;
}

.admin-users-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.admin-users-title p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
}

.admin-users-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 40px;
}

.login-text-button {
  margin-top: 8px;
  padding: 0;
  color: #1d4ed8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.studio-user-list {
  display: grid;
  gap: 8px;
}

.studio-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.studio-user-row.is-detailed {
  grid-template-columns: minmax(180px, 1.4fr) repeat(auto-fit, minmax(140px, 160px)) auto;
  align-items: end;
}

.studio-user-row strong,
.studio-user-row span {
  display: block;
}

.studio-user-row span {
  color: #64748b;
  font-size: 12px;
}

.studio-users-lede,
.studio-users-hint {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.studio-role-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.studio-role-card {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.studio-role-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.studio-role-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.studio-inline-field {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #64748b;
}

.studio-user-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.studio-banner-ok {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.login-form label {
  margin-top: 9px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-form input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 16px;
  color: #ffffff;
  background: #1d4ed8;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.login-submit:hover {
  background: #1e40af;
  transform: translateY(-1px);
}

.login-submit svg {
  width: 17px;
  height: 17px;
}

.login-error,
.login-notice {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.login-error { color: #b42318; }
.login-notice { color: #1d4ed8; }

.demo-credentials {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 11px 12px;
  color: #475569;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-size: 12px;
}

.demo-credentials > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-credentials code {
  color: #1e40af;
  font-family: 'Cascadia Code', Consolas, monospace;
  font-weight: 700;
  font-size: 13px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.login-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-secondary-actions button {
  padding: 11px 10px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.login-secondary-actions button:hover {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.login-legal {
  margin: 24px 0 0;
  color: #94a3b8;
  font-size: 11px;
  text-align: center;
}

.app-header {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 0 20px;
  color: var(--header-text);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
}

.app-header-brand { flex-shrink: 0; }
.app-header-brand-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.app-header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 480px);
  margin-right: auto;
  padding: 8px 10px;
  color: var(--header-muted);
  background: var(--header-search-bg);
  border: 1px solid var(--header-search-border);
  border-radius: 8px;
}

.app-header-search-wrap {
  position: relative;
  width: min(100%, 480px);
  margin-right: auto;
}

.app-header-search-wrap .app-header-search {
  width: 100%;
  box-sizing: border-box;
  margin-right: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  box-shadow: var(--menu-shadow);
}

.search-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  background: var(--card);
  border: 0;
  border-bottom: 1px solid var(--header-border);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.search-results button:last-child { border-bottom: 0; }
.search-results button:hover { background: var(--hover); }
.search-results span { font-size: 12px; font-weight: 700; }
.search-results small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.mobile-nav-button { display: none; }

.app-header-search svg { width: 16px; height: 16px; }
.app-header-search input {
  min-width: 0;
  flex: 1;
  color: var(--header-text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 13px;
}
.app-header-search input::-moz-placeholder { color: var(--header-muted); }
.app-header-search input::placeholder { color: var(--header-muted); }
.app-header-search kbd {
  color: var(--header-muted);
  font-size: 10px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--header-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
.header-icon-button:hover {
  color: var(--header-text);
  background: var(--hover);
  border-color: var(--header-border);
}
.header-icon-button svg { width: 19px; height: 19px; }

.header-studio-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  color: var(--header-text);
  background: var(--header-search-bg);
  border: 1px solid var(--header-search-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.header-studio-button svg {
  width: 18px;
  height: 18px;
}

.header-studio-button:hover {
  background: var(--hover);
}

.prompt-overlay-scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.prompt-overlay {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  padding: 20px 22px 18px;
  color: var(--text);
  background: var(--card, #fff);
  border: 1px solid var(--sidebar-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.prompt-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
}

.prompt-overlay-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.prompt-overlay-brand > svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: #2563eb;
  flex: 0 0 auto;
}

.prompt-overlay-brand h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.prompt-overlay-brand p {
  margin: 4px 0 0;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  line-height: 1.45;
}

.prompt-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.prompt-overlay-close svg {
  width: 18px;
  height: 18px;
}

.prompt-overlay-form {
  display: grid;
  gap: 12px;
  flex: 0 0 auto;
}

.prompt-field {
  display: grid;
  gap: 6px;
}

.prompt-field span {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.prompt-field input,
.prompt-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  color: var(--text, #0f172a);
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  resize: vertical;
}

.prompt-field textarea {
  min-height: 180px;
  line-height: 1.55;
}

.prompt-overlay-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.prompt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: #334155;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.prompt-btn.is-primary {
  color: #fff;
  background: #082a62;
  border-color: #082a62;
}

.prompt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prompt-overlay-notice {
  margin: 0;
  color: #166534;
  font-size: 12px;
  font-weight: 650;
}

.prompt-overlay-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  padding-top: 4px;
  border-top: 1px solid #e8eef5;
}

.prompt-overlay-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prompt-overlay-list-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.prompt-overlay-list-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #082a62;
  background: #eef3fb;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.prompt-overlay-empty {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.prompt-overlay-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  overflow: auto;
  min-height: 0;
  padding-right: 2px;
}

.prompt-overlay-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.prompt-overlay-list li.is-editing {
  border-color: #93c5fd;
  background: #eff6ff;
}

.prompt-card-copy strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
}

.prompt-card-copy p {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.prompt-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-card-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  color: #334155;
  background: #fff;
  border: 1px solid #d5deea;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.prompt-card-actions button svg {
  width: 14px;
  height: 14px;
}

.prompt-card-actions button.is-danger {
  color: #b91c1c;
}

@media (max-width: 640px) {
  .prompt-overlay {
    width: 100%;
    max-height: 92vh;
    padding: 16px;
  }

  .prompt-overlay-list li {
    grid-template-columns: 1fr;
  }

  .prompt-field textarea {
    min-height: 140px;
  }
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #2563eb;
  border: 2px solid var(--header-bg);
  border-radius: 50%;
}

.header-profile {
  position: relative;
}

.header-profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 8px 4px 4px;
  color: var(--header-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.header-profile-button:hover,
.header-profile-button.is-open {
  background: var(--hover);
  border-color: var(--header-border);
}
.header-profile-button > svg:first-child {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.header-profile-copy {
  display: grid;
  min-width: 0;
  text-align: left;
}
.header-profile-copy strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-profile-copy small {
  color: var(--header-muted);
  font-size: 10px;
  text-transform: capitalize;
}
.header-profile-caret {
  width: 14px;
  height: 14px;
  color: var(--header-muted);
}

.profile-menu-scrim {
  position: fixed;
  inset: 60px 0 0;
  z-index: 45;
  padding: 0;
  background: rgba(15, 23, 42, 0.28);
  border: 0;
}

html.theme-dark .profile-menu-scrim {
  background: rgba(2, 6, 23, 0.55);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--header-border);
  border-radius: 12px;
  box-shadow: var(--menu-shadow);
}

.profile-menu-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--header-border);
}
.profile-menu-identity svg {
  width: 36px;
  height: 36px;
  color: var(--brand);
}
.profile-menu-identity strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}
.profile-menu-identity span {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: capitalize;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}
.profile-menu-item.is-featured {
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #c7d2fe;
}
.profile-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}
.profile-menu-item em {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-menu-item:hover:not(:disabled) {
  background: var(--hover);
}
.profile-menu-item:disabled {
  cursor: default;
  opacity: 0.78;
}
.profile-menu-item.is-danger {
  color: #b91c1c;
}
.profile-menu-item.is-danger svg {
  color: #b91c1c;
}

.profile-menu-section {
  display: grid;
  gap: 8px;
  margin: 4px 0;
  padding: 10px;
  background: var(--bg-muted);
  border-radius: 8px;
}
.profile-menu-section p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.profile-menu-section p svg {
  width: 14px;
  height: 14px;
}
.profile-theme-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.profile-theme-toggle button {
  padding: 8px 10px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--header-border);
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.profile-theme-toggle button.is-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #93c5fd;
}

html.theme-dark .profile-theme-toggle button.is-active {
  color: #c7d2fe;
  background: #1e1b4b;
  border-color: #6366f1;
}

html.theme-dark .profile-menu-item.is-danger {
  color: #fca5a5;
}
html.theme-dark .profile-menu-item.is-danger svg {
  color: #fca5a5;
}

.dashboard-page {
  flex: 1;
  overflow-y: auto;
  padding: 48px clamp(24px, 5vw, 80px) 64px;
  color: var(--text);
  background: var(--bg);
}

.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1220px;
  margin: 0 auto;
}

.dashboard-heading h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.dashboard-heading > div:first-child > p:last-child {
  max-width: 610px;
  margin: 12px 0 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-status span {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.dashboard-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1220px;
  margin: 30px auto 52px;
}

.dashboard-quick-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: #1d4ed8;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-quick-actions button.is-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.2);
}

.dashboard-quick-actions button:hover {
  background: #eff6ff;
  border-color: #60a5fa;
}

.dashboard-quick-actions button.is-primary:hover {
  background: linear-gradient(135deg, #111827, #1e40af);
  border-color: #1e40af;
}

.dashboard-quick-actions svg {
  width: 16px;
  height: 16px;
}

.dashboard-page section {
  max-width: 1220px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading .eyebrow { margin-bottom: 7px; color: #64748b; }
.section-heading h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.section-heading > span { color: #94a3b8; font-size: 11px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  color: #172033;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  cursor: default;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  max-width: 360px;
  width: 100%;
}

.dashboard-card:not(:disabled) { cursor: pointer; }
.dashboard-card:not(:disabled):hover {
  border-color: #60a5fa;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.1);
  transform: translateY(-2px);
}
.dashboard-card:disabled { opacity: 0.75; }

.dashboard-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 6px;
}
.dashboard-card-icon svg { width: 19px; height: 19px; }
.dashboard-card-copy { display: grid; gap: 7px; }
.dashboard-card-copy strong { font-size: 15px; }
.dashboard-card-copy span { color: #64748b; font-size: 12px; line-height: 1.5; }
.dashboard-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 4px;
}
.dashboard-card-tag {
  padding: 0;
  color: #475569;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dashboard-card-tag:hover {
  color: #1e293b;
}
.dashboard-card.is-utilities-card {
  cursor: default;
}
.dashboard-card.is-utilities-card:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.08);
  border-color: #dbe3ed;
}
.dashboard-card-tags.is-utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}
.dashboard-utility-tile {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.dashboard-utility-tile svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  flex: 0 0 auto;
}
.dashboard-utility-tile em {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-utility-tile:hover {
  color: #1e293b;
  background: #ffffff;
  border-color: #cbd5e1;
}
.dashboard-card-meta { margin-top: auto; padding-top: 18px; color: #94a3b8; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.dashboard-card-arrow { position: absolute; right: 18px; bottom: 18px; width: 16px; height: 16px; color: #2563eb; }

.dashboard-recent { margin-top: 52px !important; }
.recent-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.recent-item { display: grid; grid-template-columns: 24px 1fr; -moz-column-gap: 8px; column-gap: 8px; padding: 13px; color: #172033; text-align: left; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 5px; cursor: pointer; font: inherit; }
.recent-item:hover { border-color: #60a5fa; box-shadow: 0 6px 16px rgba(30, 64, 175, 0.08); }
.recent-item svg { grid-row: span 2; width: 17px; height: 17px; color: #64748b; }
.recent-item strong { font-size: 12px; font-weight: 700; }
.recent-item small { margin-top: 3px; color: #94a3b8; font-size: 10px; }
.dashboard-empty { margin: 0; padding: 14px; color: #64748b; background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 6px; font-size: 13px; }
.topic-bookmark-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.topic-bookmark-btn svg { width: 16px; height: 16px; }
.topic-bookmark-btn.is-active { color: #92400e; background: #fef3c7; border-color: #f59e0b; }
.journal-reader-tools { display: flex; align-items: center; gap: 12px; max-width: 920px; margin: 0 auto; padding: 0 24px 18px; }
.journal-reader-tools .journal-reader-bar { flex: 1; min-width: 0; margin: 0; padding-left: 0; padding-right: 0; }

.workspace-back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 8px);
  margin: 0 4px 15px;
  padding: 8px 12px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--sidebar-border);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
}
.workspace-back-button:hover { background: var(--hover); }
.workspace-back-button svg { width: 20px; height: 20px; flex-shrink: 0; }

@media (max-width: 800px) {
  .login-page { grid-template-columns: 1fr; }
  .login-intro { min-height: 390px; padding: 28px 24px; }
  .login-intro-content { padding: 48px 0 24px; }
  .login-intro h1 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .login-lede { margin-top: 20px; font-size: 15px; }
  .login-capabilities { margin-top: 28px; }
  .login-panel { min-height: 540px; padding: 40px 24px; }
  .dashboard-page { padding: 32px 20px 48px; }
  .dashboard-heading { display: block; }
  .dashboard-status { margin-top: 18px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recent-row { grid-template-columns: 1fr; }
}

.app-shell {
  min-height: 0;
  color: var(--text);
  background: var(--bg);
}

.app-shell > .learn-host {
  flex: 1 1 auto;
  min-height: 0;
}

.studio-host {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.studio-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #f8fafc;
}

.studio-align {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

.studio-toolbar {
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.studio-toolbar > .studio-align {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.studio-header-row,
.studio-tab-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.studio-toolbar-title {
  margin: 0;
  color: var(--header-text);
  font-size: clamp(1.1rem, 1.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: nowrap;
  text-transform: uppercase;
}

.studio-tab-row {
  justify-content: flex-start;
}

.studio-tab-shell {
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  background: #edf2f7;
  border: 1px solid var(--header-search-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.studio-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  color: var(--header-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  transition: all 0.15s ease;
}

.studio-tabs button svg {
  width: 15px;
  height: 15px;
}

.studio-tabs button.is-on {
  color: #0f172a;
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(15, 23, 42, 0.08);
}

.studio-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-toolbar-meta em {
  padding: 2px 8px;
  color: var(--header-muted);
  background: var(--header-search-bg);
  border: 1px solid var(--header-search-border);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.studio-toggle {
  height: 32px;
  padding: 0 12px;
  color: var(--header-muted);
  background: transparent;
  border: 1px solid var(--header-search-border);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.studio-toggle.is-on {
  color: var(--header-text);
  background: var(--hover);
  border-color: var(--header-text);
}

.studio-toggle:disabled {
  opacity: 0.4;
  cursor: default;
}

.quiz-studio-app {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 24px 48px 48px;
  box-sizing: border-box;
}

.quiz-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.quiz-studio-header h1 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--header-text);
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.quiz-studio-title-icon {
  width: 22px;
  height: 22px;
  color: #2563eb;
  flex: 0 0 auto;
}

.quiz-header-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.quiz-header-manage svg {
  width: 15px;
  height: 15px;
}

.quiz-header-manage.is-active {
  color: #fff;
  background: #082a62;
  border-color: #082a62;
}

.quiz-title-meta-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) 104px 72px 72px;
  gap: 8px;
  align-items: end;
}

.quiz-title-field span {
  font-size: 11px;
}

.quiz-title-field input {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}

.quiz-code-chip,
.quiz-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 8px;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.quiz-code-chip {
  grid-column: 1 / -1;
}

.quiz-code-chip strong,
.quiz-code-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.quiz-studio-title-icon {
  width: 22px;
  height: 22px;
  color: #2563eb;
  flex: 0 0 auto;
}

.quiz-studio-kicker {
  display: none;
}

.quiz-studio-kicker svg {
  width: 16px;
  height: 16px;
}

.quiz-studio-status-row {
  display: flex;
  justify-content: flex-start;
}

.quiz-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.quiz-status-pill svg {
  width: 15px;
  height: 15px;
}

.quiz-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #dfe7f1;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quiz-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-panel-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.quiz-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.quiz-span-2 {
  grid-column: span 2;
}

.quiz-meta-row,
.quiz-type-marks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.quiz-meta-row {
  grid-column: 1 / -1;
}

.quiz-field {
  display: grid;
  gap: 6px;
}

.quiz-field-compact {
  width: auto;
  min-width: 0;
}

.quiz-field-compact span {
  font-size: 11px;
}

.quiz-field-compact input,
.quiz-field-compact select {
  min-height: 32px;
  padding: 4px 6px;
  font-size: 12px;
}

.quiz-panel-meta {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.quiz-field span {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.quiz-field input,
.quiz-field select,
.quiz-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.quiz-field input:focus,
.quiz-field select:focus,
.quiz-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quiz-summary-card {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #dfe7fd;
  border-radius: 10px;
}

.quiz-summary-card strong,
.quiz-summary-card span,
.quiz-summary-card em {
  color: #172033;
}

.quiz-summary-card strong {
  font-size: 0.95rem;
}

.quiz-summary-card span,
.quiz-summary-card em {
  font-size: 12px;
  font-style: normal;
}

.quiz-primary-button,
.quiz-secondary-button,
.quiz-link-button,
.quiz-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.quiz-viewer-panel {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #dfe7fd;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.08);
}

.quiz-viewer-header {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.quiz-viewer-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.quiz-viewer-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
}

.quiz-viewer-progress-bar {
  position: relative;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-viewer-progress-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
}

.quiz-viewer-question {
  margin-bottom: 16px;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.quiz-viewer-options {
  display: grid;
  gap: 12px;
}

.quiz-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.quiz-option:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.quiz-option.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.quiz-viewer-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.quiz-summary-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  color: #0f172a;
}

.quiz-summary-box strong {
  font-size: 1.25rem;
}

.quiz-summary-box span {
  color: #1d4ed8;
  font-weight: 700;
}

.quiz-viewer-lede {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.quiz-empty-copy {
  margin: 0;
  color: #64748b;
}

.quiz-review-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quiz-review-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.quiz-review-item header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.quiz-review-item em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quiz-review-item.is-correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.quiz-review-item.is-correct em {
  color: #15803d;
}

.quiz-review-item.is-wrong {
  border-color: #fca5a5;
  background: #fef2f2;
}

.quiz-review-item.is-wrong em {
  color: #b91c1c;
}

.quiz-review-item p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.studio-field-inline {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
}

.studio-inline-error {
  color: #b91c1c;
  font-size: 12px;
}

.studio-inline-hint {
  color: #64748b;
  font-size: 12px;
}

.quiz-primary-button {
  padding: 10px 14px;
  color: #ffffff;
  background: #2563eb;
}

.quiz-secondary-button {
  padding: 9px 12px;
  color: #0f172a;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.quiz-primary-button svg,
.quiz-secondary-button svg,
.quiz-icon-button svg {
  width: 16px;
  height: 16px;
}

.quiz-link-button {
  padding: 0;
  color: #2563eb;
  background: transparent;
}

.quiz-question-list {
  display: grid;
  gap: 18px;
}

.quiz-question-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.quiz-question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quiz-question-topline strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.quiz-question-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.quiz-question-text {
  min-width: 0;
}

.quiz-type-marks-row {
  padding-top: 18px;
}

.quiz-choice-block {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.quiz-choice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quiz-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.quiz-option-row input[type='text'] {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
}

.quiz-question-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.quiz-question-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiz-question-pill {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
}

.quiz-question-pill.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.quiz-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quiz-question-actions .quiz-secondary-button,
.quiz-question-actions .quiz-primary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quiz-question-actions svg {
  width: 16px;
  height: 16px;
}

.quiz-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.quiz-action-chip svg {
  width: 14px;
  height: 14px;
}

.quiz-action-chip.is-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fef2f2;
}

.quiz-correct-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.quiz-icon-button {
  width: 36px;
  height: 36px;
  padding: 0;
  color: #475569;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.quiz-icon-button:hover,
.quiz-primary-button:hover,
.quiz-secondary-button:hover,
.quiz-link-button:hover {
  filter: brightness(0.98);
}

@media (max-width: 760px) {
  .quiz-studio-app {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quiz-form-grid,
  .quiz-question-edit-grid,
  .quiz-options-grid,
  .quiz-option-row {
    grid-template-columns: 1fr;
  }

  .quiz-meta-row,
  .quiz-type-marks-row,
  .quiz-question-footer,
  .quiz-question-actions {
    width: 100%;
  }

  .quiz-title-meta-row {
    grid-template-columns: 1fr 1fr;
  }

  .quiz-title-field {
    grid-column: 1 / -1;
  }

  .quiz-span-2 {
    grid-column: auto;
  }

  .quiz-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-studio-tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding: 0 18px;
  }

  .quiz-filter-group {
    grid-template-columns: 1fr;
  }

  .quiz-assignment-controls {
    grid-template-columns: 1fr;
  }
}

.quiz-studio-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  margin: -6px -48px 0 -48px;
  padding: 0 48px;
  overflow-x: auto;
}

.quiz-tab-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  color: #64748b;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.15s ease;
}

.quiz-tab-button svg {
  width: 16px;
  height: 16px;
}

.quiz-tab-button:hover {
  color: #334155;
}

.quiz-tab-button.is-active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.quiz-library-panel {
  display: grid;
  gap: 18px;
}

.quiz-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-library-header > div {
  display: grid;
  gap: 4px;
}

.quiz-library-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.quiz-library-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.quiz-library-controls {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.quiz-search-field {
  display: grid;
  gap: 4px;
}

.quiz-search-field input {
  width: 100%;
  padding: 8px 12px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.quiz-search-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quiz-filter-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quiz-filter-item {
  display: grid;
  gap: 4px;
}

.quiz-filter-item label {
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.quiz-filter-item select {
  padding: 6px 10px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.quiz-filter-item select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quiz-loading-state,
.quiz-empty-state {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  padding: 48px 24px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

.quiz-empty-state svg {
  width: 48px;
  height: 48px;
  color: #cbd5e1;
}

.quiz-empty-state h3 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.quiz-empty-state p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  max-width: 240px;
}

.quiz-error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #9b2c2c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 12px;
}

.quiz-library-list {
  display: grid;
  gap: 10px;
}

.quiz-library-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.quiz-library-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.quiz-library-item-content {
  flex: 1;
  cursor: pointer;
  display: grid;
  gap: 8px;
}

.quiz-library-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-library-item-header strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.quiz-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.quiz-status-badge.quiz-status-draft {
  color: #9333ea;
  background: #f3e8ff;
}

.quiz-status-badge.quiz-status-published {
  color: #166534;
  background: #dcfce7;
}

.quiz-library-item-description {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.quiz-library-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
}

.quiz-library-item-meta span {
  display: inline;
}

.quiz-library-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-right: 8px;
}

.quiz-icon-button-danger {
  color: #dc2626;
}

.quiz-icon-button-danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fecaca;
}

.quiz-icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-assignments-panel {
  display: grid;
  gap: 18px;
}

.quiz-assignments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quiz-assignments-header > div {
  display: grid;
  gap: 4px;
}

.quiz-assignments-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.quiz-assignments-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.quiz-assignment-form {
  display: grid;
  gap: 12px;
}

.quiz-assignment-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.quiz-assignment-controls select {
  padding: 10px 12px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}

.quiz-assignment-controls select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.quiz-assignments-list {
  display: grid;
  gap: 8px;
}

.quiz-assignment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.quiz-assignment-item-info {
  display: grid;
  gap: 2px;
}

.quiz-assignment-item-info strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
}

.quiz-assignment-item-info small {
  color: #94a3b8;
  font-size: 11px;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: #ffffff;
  background: #1d4ed8;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.studio-btn:hover {
  background: #1e40af;
}

.studio-btn.is-accent {
  background: #1d4ed8;
}

.studio-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.studio-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 40px;
}

.studio-banner-error {
  margin: 0;
  padding: 10px 12px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 13px;
}

.studio-card {
  display: grid;
  gap: 12px;
  padding: 20px 20px 22px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.studio-card h2,
.studio-card-head h2 {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.studio-card-head span {
  color: #64748b;
  font-size: 12px;
}

.studio-field {
  display: grid;
  gap: 6px;
}

.studio-field-label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.studio-image-thumb {
  width: min(240px, 100%);
  height: auto;
  max-height: 140px;
  -o-object-fit: contain;
     object-fit: contain;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.studio-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  width: -moz-fit-content;
  width: fit-content;
}

.studio-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.studio-upload-error {
  margin: 0;
  color: #b91c1c;
  font-size: 12px;
}

.studio-field-control,
.studio-field input,
.studio-field select,
.studio-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.studio-field-control:focus,
.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.studio-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, 36px);
  gap: 8px;
}

.studio-icon-picker.is-dense {
  gap: 8px 8px;
}

.studio-icon-choice {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

.studio-icon-choice svg {
  width: 18px;
  height: 18px;
}

.studio-icon-choice.is-on {
  color: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.studio-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 8px;
}

.studio-add-row,
.studio-block-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.studio-add-row {
  margin: 4px 0 12px;
}

.studio-add-row select {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  color: #172033;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
}

.studio-blocks {
  display: grid;
  gap: 8px;
}

.studio-block {
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
  background: var(--bg);
}

.studio-block-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  background: var(--card);
}

.studio-block-toggle {
  flex: 1;
  min-width: 0;
  padding: 4px;
  color: var(--text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.studio-block-body {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--sidebar-border);
}

.studio-subcard {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--sidebar-border);
  border-radius: 6px;
}

.studio-subcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-icon-btn,
.studio-mini-btn {
  height: 28px;
  padding: 0 8px;
  color: var(--text-muted);
  background: var(--card);
  border: 1px solid var(--sidebar-border);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

.studio-icon-btn.is-danger,
.studio-mini-btn.is-danger {
  color: #b91c1c;
}

.studio-icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.studio-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.4);
}

.studio-preview-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: 100%;
  background: var(--card);
  border-left: 1px solid var(--sidebar-border);
}

.studio-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.studio-preview-toolbar strong {
  font-size: 13px;
}

.studio-preview-toolbar span {
  flex: 1;
  color: var(--text-muted);
  font-size: 12px;
}

.studio-preview-scroll {
  overflow: auto;
  flex: 1;
  background: #fff;
}

.studio-preview-kicker {
  margin: 20px 24px 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
}

.studio-preview-lede {
  margin: 8px 24px 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.studio-json {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.studio-modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.studio-modal {
  width: min(440px, 100%);
  padding: 24px 24px 20px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--sidebar-border);
  border-radius: 8px;
}

.studio-modal h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.studio-modal p {
  margin: 10px 0 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.studio-modal .studio-btn {
  width: 100%;
}

.studio-health .studio-card-head {
  align-items: flex-start;
}

.studio-health .studio-card-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.studio-health-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-health-summary span {
  display: grid;
  gap: 3px;
  padding: 14px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.studio-health-summary strong {
  color: #172033;
  font-size: 24px;
  line-height: 1;
}

.studio-health-empty {
  margin: 0;
  padding: 14px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
}

.studio-health-list {
  display: grid;
  gap: 8px;
}

.studio-health-issue {
  display: grid;
  grid-template-columns: 96px minmax(160px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 6px;
  background: #ffffff;
}

.studio-health-issue > strong {
  width: -moz-fit-content;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.studio-health-issue > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.studio-health-issue b {
  overflow: hidden;
  color: #172033;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-health-issue small {
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-health-issue p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.studio-health-issue.is-error {
  border-left-color: #dc2626;
}

.studio-health-issue.is-error > strong {
  color: #991b1b;
  background: #fee2e2;
}

.studio-health-issue.is-warning {
  border-left-color: #f59e0b;
}

.studio-health-issue.is-warning > strong {
  color: #92400e;
  background: #fef3c7;
}

.studio-health-issue.is-info {
  border-left-color: #2563eb;
}

.studio-health-issue.is-info > strong {
  color: #1e40af;
  background: #dbeafe;
}

@media (max-width: 760px) {
  .studio-health-summary,
  .studio-health-issue {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .studio-align {
    padding-left: 64px;
    padding-right: 64px;
  }

  .studio-toolbar > .studio-align {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .studio-align {
    padding-left: 20px;
    padding-right: 20px;
  }

  .studio-toolbar > .studio-align {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .studio-sheet {
    padding-top: 16px;
    padding-bottom: 32px;
    gap: 12px;
  }

  .studio-card {
    padding: 16px;
  }

  .studio-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .studio-add-row .studio-btn,
  .studio-footer-actions .studio-btn {
    width: 100%;
  }

  .studio-footer-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .studio-preview-toolbar {
    flex-wrap: wrap;
  }

  .studio-preview-toolbar span {
    display: none;
  }

  .studio-preview-kicker,
  .studio-preview-lede {
    margin-left: 16px;
    margin-right: 16px;
  }

  .studio-block-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 700px) {
  .app-header { gap: 12px; padding: 0 12px; }
  .mobile-nav-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 5px;
    color: var(--header-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .mobile-nav-button svg { width: 20px; height: 20px; }
  .header-profile-copy,
  .app-header-search kbd { display: none; }
  .app-header-search-wrap { margin-left: auto; }
  .app-header-actions { gap: 4px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-card { min-height: 160px; }
  .section-heading { display: block; }
  .section-heading > span { display: block; margin-top: 8px; }

  .app-shell > .flex.flex-1.overflow-hidden {
    min-width: 0;
  }

  .app-shell .sidebar-menu {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: min(280px, 84vw) !important;
    padding: 12px 8px !important;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 8px 0 24px rgba(15, 31, 53, 0.15);
  }

  .app-shell .sidebar-menu.mobile-nav-open {
    transform: translateX(0);
  }

  .app-shell .sidebar-menu .category-label {
    display: block;
  }

  .app-shell .sidebar-menu .menu-item { padding: 9px 10px !important; }

  .app-shell .content-area,
  .app-shell main {
    min-width: 0;
  }

  .app-shell header:not(.app-header) {
    padding: 20px 16px !important;
  }

  .app-shell header:not(.app-header) h1 {
    font-size: 24px !important;
    line-height: 1.2;
  }

  .app-shell header:not(.app-header) p {
    font-size: 13px !important;
  }

  .app-shell header.topic-header.is-journal {
    padding: 28px 20px 8px 20px !important;
  }

  .app-shell header.topic-header.is-journal h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem) !important;
    line-height: 1.18;
  }

  .app-shell header.topic-header.is-journal p {
    font-size: 1.05rem !important;
    line-height: 1.65;
  }

  .app-shell main.flex-1.px-12 {
    padding: 16px 12px !important;
  }

  .app-shell .px-12.py-4 {
    padding: 10px 12px !important;
  }

  .technology-document { padding: 20px 16px 40px; }
  .document-pros-cons { grid-template-columns: 1fr; }
  .document-metrics { grid-template-columns: 1fr; }
}

html.theme-dark .dashboard-heading h1,
html.theme-dark .dashboard-card-copy strong,
html.theme-dark .recent-item strong {
  color: var(--text);
}

html.theme-dark .dashboard-heading > div:first-child > p:last-child,
html.theme-dark .dashboard-card-copy span,
html.theme-dark .recent-item small {
  color: var(--text-muted);
}

html.theme-dark .dashboard-card,
html.theme-dark .recent-item,
html.theme-dark .dashboard-quick-actions button {
  color: var(--text);
  background: var(--card);
  border-color: var(--sidebar-border);
}

html.theme-dark .dashboard-empty {
  color: var(--text-muted);
  background: var(--card);
  border-color: var(--sidebar-border);
}

html.theme-dark .topic-header,
html.theme-dark .topic-toolbar {
  background: var(--card);
  border-color: var(--sidebar-border);
}

html.theme-dark .topic-header h1 {
  color: var(--text);
}

html.theme-dark .topic-header p {
  color: var(--text-muted);
}

/* Q&A Studio / Viewer */
.qna-sample-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8eef5;
}

.qna-sample-row > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.qna-editor-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
  min-height: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.qna-editor-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  overflow: auto;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.qna-editor-nav button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  padding: 8px;
  color: #334155;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.qna-editor-nav button em {
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.qna-editor-nav button.is-active {
  color: #082a62;
  background: #fff;
  box-shadow: 0 0 0 1px #d5deee;
}

.qna-editor-nav button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qna-add-question {
  margin-top: 6px !important;
  color: #1d4ed8 !important;
}

.qna-editor-sheet {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.qna-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.qna-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  color: #082a62;
  background: #eef3fb;
  border: 1px solid #d5deee;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.qna-tag-row input {
  flex: 1;
  min-width: 140px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.qna-viewer {
  display: grid;
  gap: 16px;
}

.qna-viewer-head em {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qna-viewer-head h2 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.qna-viewer-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.qna-viewer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.qna-type-pill {
  display: inline-flex;
  padding: 3px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.qna-viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.qna-viewer-toolbar label {
  display: grid;
  gap: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.qna-viewer-toolbar select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.qna-answer-mode {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  background: #f1f5f9;
  border-radius: 8px;
}

.qna-answer-mode button {
  min-height: 30px;
  padding: 0 10px;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.qna-answer-mode button.is-on {
  color: #082a62;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.qna-viewer-empty {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.qna-viewer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.qna-viewer-list li {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.qna-viewer-question {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.qna-viewer-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #082a62;
  background: #eef3fb;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.qna-viewer-question-copy strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.4;
}

.qna-viewer-question-copy small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  text-transform: capitalize;
}

.qna-viewer-answers {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px 60px;
}

.qna-answer-block {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
}

.qna-answer-block.is-short {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.qna-answer-block em {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qna-answer-block p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.quiz-studio-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 800px) {
  .qna-editor-layout {
    grid-template-columns: 1fr;
  }

  .qna-editor-nav {
    max-height: 160px;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .qna-viewer-answers {
    padding-left: 14px;
  }
}

/* Admin utilities overlay */
.utils-overlay-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.5);
}

.utils-overlay {
  display: flex;
  flex-direction: column;
  width: min(960px, 100%);
  max-height: min(90vh, 860px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.utils-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e8eef5;
}

.utils-overlay-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.utils-overlay-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #64748b;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.utils-overlay-close svg {
  width: 18px;
  height: 18px;
}

.utils-overlay-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.utils-overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  overflow: auto;
  background: #f8fafc;
  border-right: 1px solid #e8eef5;
}

.utils-overlay-nav button {
  width: 100%;
  padding: 9px 10px;
  color: #334155;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.utils-overlay-nav button.is-active {
  color: #082a62;
  background: #fff;
  box-shadow: 0 0 0 1px #d5deee;
}

.utils-overlay-panel {
  min-width: 0;
  min-height: 0;
  padding: 16px 18px 20px;
  overflow: auto;
}

.utils-tool {
  display: grid;
  gap: 14px;
}

.utils-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.utils-cal-nav button,
.utils-action {
  min-height: 34px;
  padding: 0 12px;
  color: #082a62;
  background: #eef3fb;
  border: 1px solid #d5deee;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.utils-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.utils-cal-dow {
  text-align: center;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.utils-cal-grid > button {
  min-height: 36px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.utils-cal-grid > button:disabled {
  background: transparent;
  cursor: default;
}

.utils-cal-grid > button.is-selected {
  color: #fff;
  background: #082a62;
}

.utils-inline-form {
  display: flex;
  gap: 8px;
}

.utils-inline-form input,
.utils-form-grid input,
.utils-form-grid select,
.utils-note-editor input,
.utils-note-editor textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.utils-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.utils-checklist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 8px;
}

.utils-checklist label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.utils-checklist .is-done {
  color: #94a3b8;
  text-decoration: line-through;
}

.utils-text-danger {
  padding: 0;
  color: #b91c1c;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.utils-empty,
.utils-muted {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.utils-calc-display {
  padding: 16px;
  color: #0f172a;
  text-align: right;
  background: #0b1f3a;
  color: #fff;
  border-radius: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.utils-calc-pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.utils-calc-pad button {
  min-height: 48px;
  color: #0f172a;
  background: #f1f5f9;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
}

.utils-calc-pad button.is-op {
  color: #fff;
  background: #082a62;
}

.utils-calc-pad button.is-zero {
  grid-column: span 2;
}

.utils-notes {
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
}

.utils-notes aside ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.utils-notes aside button:not(.utils-action) {
  width: 100%;
  padding: 8px;
  color: #334155;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.utils-notes aside button.is-active {
  color: #082a62;
  background: #eef3fb;
}

.utils-note-editor {
  display: grid;
  gap: 10px;
}

.utils-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.utils-form-grid label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.utils-result-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  padding: 14px;
  background: #eef3fb;
  border: 1px solid #d5deee;
  border-radius: 10px;
}

.utils-result-card strong {
  color: #082a62;
  font-size: 18px;
}

.utils-result-card span {
  color: #64748b;
  font-size: 12px;
}

.utils-quote blockquote {
  margin: 0;
  padding: 20px;
  background: #f8fafc;
  border-left: 4px solid #082a62;
  border-radius: 0 10px 10px 0;
}

.utils-quote p {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
}

.utils-quote footer {
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}

.utils-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.utils-news-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e8eef5;
  border-radius: 10px;
}

.utils-news-list a,
.utils-news-list strong {
  color: #082a62;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.utils-news-list a:hover {
  text-decoration: underline;
}

.utils-news-list span {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 800px) {
  .utils-overlay-body,
  .utils-notes,
  .utils-form-grid {
    grid-template-columns: 1fr;
  }

  .utils-overlay-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 160px;
    border-right: 0;
    border-bottom: 1px solid #e8eef5;
  }

  .dashboard-card.is-utilities-card {
    grid-column: auto;
  }

  .dashboard-card-tags.is-utility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hover\:border-blue-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.hover\:bg-slate-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}

.hover\:text-gray-900:hover {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.dark\:bg-gray-900:is(.dark *) {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

@media (min-width: 640px) {

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .sm\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 768px) {

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:p-8 {
    padding: 2rem;
  }

  .md\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1024px) {

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:px-24 {
    padding-left: 6rem;
    padding-right: 6rem;
  }
}
