* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
html, body { height: 100%; }
body { display: flex; height: 100vh; overflow: hidden; background: #f5f5f7; color: #111; }

@supports (height: 100dvh) {
  body { height: 100dvh; }
}

:root {
  --sidebar-chat-rail-collapsed-w: 68px;
  --sidebar-chat-rail-expanded-w: 268px;
}

.sidebar {
  width: 360px;
  height: 100vh;
  background: #f7f7f8;
  border-right: 1px solid #e5e5e5;
  overflow: hidden;
}

body.view-lumos-chat .sidebar {
  display: flex;
  align-items: stretch;
  width: 50%;
}

body.view-lumos-chat .sidebar.is-chat-only {
  width: var(--sidebar-chat-rail-collapsed-w);
  flex: 0 0 var(--sidebar-chat-rail-collapsed-w);
}

body.view-lumos-chat .sidebar.is-chat-only.is-rail-expanded {
  width: var(--sidebar-chat-rail-expanded-w);
  flex: 0 0 var(--sidebar-chat-rail-expanded-w);
}

.sidebar-chat-rail {
  display: none;
}

body.view-lumos-chat .sidebar-chat-rail {
  width: var(--sidebar-chat-rail-collapsed-w);
  flex: 0 0 var(--sidebar-chat-rail-collapsed-w);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 8px;
  border-right: 1px solid #e5e7eb;
  background: #f1eeef;
  transition: width 0.24s ease, flex-basis 0.24s ease, padding 0.24s ease;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded {
  width: var(--sidebar-chat-rail-expanded-w);
  flex-basis: var(--sidebar-chat-rail-expanded-w);
  padding: 18px 10px 14px;
}

.sidebar-chat-rail__group {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.sidebar-chat-rail__brand,
.sidebar-chat-rail__section,
.sidebar-chat-rail__footer {
  display: none;
}

.sidebar-chat-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.view-lumos-chat .sidebar-chat-rail:not(.is-expanded) .sidebar-chat-rail__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

body.view-lumos-chat .sidebar-chat-rail:not(.is-expanded) .sidebar-chat-rail__brand-copy {
  display: none;
}

body.view-lumos-chat .sidebar-chat-rail:not(.is-expanded) .sidebar-chat-rail__brand-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sidebar-chat-rail__toggle,
.sidebar-chat-rail__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  align-self: center;
}

.sidebar-chat-rail__toggle:hover,
.sidebar-chat-rail__btn:hover {
  background: #e9eef6;
  color: #334155;
  transform: translateY(-1px);
}

.sidebar-chat-rail__toggle {
  border: 1px solid #dbe3ee;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sidebar-chat-rail__toggle {
  backdrop-filter: blur(10px);
}

.sidebar-chat-rail__btn.active {
  background: #384964;
  color: #ffffff;
  box-shadow: 0px 3px 18px rgba(36, 49, 143, 0.22);
}

.sidebar-chat-rail__toggle svg,
.sidebar-chat-rail__btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-chat-rail__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}

.sidebar-chat-rail__label {
  display: none;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__toggle,
body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__btn {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  align-self: stretch;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__label {
  display: inline;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__group {
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid #e2e8f0;
}

.sidebar-chat-rail__brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-chat-rail__brand-logo {
  appearance: none;
  border: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: none;
  cursor: pointer;
}

.sidebar-chat-rail__brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

.sidebar-chat-rail__brand-title {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.sidebar-chat-rail__brand-subtitle {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

body.view-lumos-chat .sidebar-chat-rail:not(.is-expanded) .sidebar-chat-rail__toggle {
  order: 2;
}

body.view-lumos-chat .sidebar-chat-rail:not(.is-expanded) .sidebar-chat-rail__brand-logo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  height: auto;
  min-height: 104px;
  padding: 12px 8px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: 0.18em;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__nav {
  gap: 8px;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__btn,
body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__toggle {
  height: 42px;
  border-radius: 12px;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__btn:not(.active) {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__btn:not(.active):hover,
body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__toggle:hover {
  background: #f8fafc;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__btn.active {
  background: #e8eefc;
  color: #243b7a;
  box-shadow: none;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 2px 0;
  border-radius: 0;
  border: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.sidebar-chat-rail__section-title {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.sidebar-chat-rail__metrics-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-chat-rail__metrics-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-chat-rail__metrics-value {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.sidebar-chat-rail__metrics-value-main {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sidebar-chat-rail__metrics-value-suffix {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: #c0c7d4;
}

.sidebar-chat-rail__metrics-percent {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  padding-top: 3px;
}

.sidebar-chat-rail__metrics-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbeafe;
}

.sidebar-chat-rail__metrics-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4d6a90;
}

.sidebar-chat-rail__metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sidebar-chat-rail__metric-tile {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 12px 11px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sidebar-chat-rail__metric-k {
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b0b8c5;
}

.sidebar-chat-rail__metric-v {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.sidebar-chat-rail__sources-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources {
  flex: 1 1 auto;
  min-height: 0;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources .sidebar-chat-rail__sources-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c4ccda transparent;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources .sidebar-chat-rail__sources-list::-webkit-scrollbar {
  width: 6px;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources .sidebar-chat-rail__sources-list::-webkit-scrollbar-track {
  background: transparent;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources .sidebar-chat-rail__sources-list::-webkit-scrollbar-thumb {
  background: #c4ccda;
  border-radius: 999px;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__section--sources .sidebar-chat-rail__sources-list::-webkit-scrollbar-thumb:hover {
  background: #aeb8c9;
}

.sidebar-chat-rail__source-card {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.16s ease;
}

.sidebar-chat-rail__source-card:hover {
  opacity: 0.8;
}

.sidebar-chat-rail__source-card.is-empty {
  background: transparent;
}

.sidebar-chat-rail__source-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
}

.sidebar-chat-rail__source-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-chat-rail__source-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-chat-rail__source-pmid {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  color: #475569;
}

.sidebar-chat-rail__source-title {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  color: #0f172a;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-chat-rail__source-meta {
  font-size: 9px;
  line-height: 1.35;
  color: #64748b;
}

body.view-lumos-chat .sidebar-chat-rail.is-expanded .sidebar-chat-rail__footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 8px 4px 0;
  border-top: 1px solid #e2e8f0;
}

.sidebar-chat-rail__footer-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  background: transparent;
  color: #475569;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.sidebar-chat-rail__footer-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: none;
}

.sidebar-chat-rail__footer-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.sidebar-chat-rail__footer-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@supports (height: 100dvh) {
  .sidebar { height: 100dvh; }
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 132px;
  height: 34px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-align-last: center;
}

.nav-btn {
  box-shadow: none;
}

.nav-refresh {
  background: transparent;
  border: none;
  box-shadow: none;
  color: #3a3a55;
}

.nav-refresh:hover {
  background: transparent;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8a8a8f;
}

button.nav-icon {
  border: none;
  background: transparent;
  padding: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.nav-icon.active {
  background: #ececff;
  color: #3a3a55;
}

.nav-icon:hover { background: #f2f2f4; }

.topic-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: 1px solid transparent;
  color: #8a8a8f;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.topic-icon:hover { background: #f2f2f4; }

.topic-icon.active {
  background: #ececff;
  border-color: #dcdcff;
  color: #3a3a55;
}

/* Per-topic accent colors for sidebar topic icons */
.topic-icon[data-topic] {
  /* fallback if a specific topic does not set it */
  --topic-rgb: 138, 138, 143;
      border: 1px solid #d5d5d5;
  color: rgb(var(--topic-rgb));
}

.topic-icon[data-topic]:hover {
  background: rgba(var(--topic-rgb), 0.08);
  border-color: rgba(var(--topic-rgb), 0.25);
}

.topic-icon.active[data-topic] {
  background: rgba(var(--topic-rgb), 0.16);
  border-color: rgba(var(--topic-rgb), 0.55);
  color: rgb(var(--topic-rgb));
}

.topic-icon[data-topic="cardio"] { --topic-rgb: 214, 48, 49; }
.topic-icon[data-topic="onco"] { --topic-rgb: 232, 67, 147; }
.topic-icon[data-topic="neuro"] { --topic-rgb: 9, 132, 227; }
.topic-icon[data-topic="endo"] { --topic-rgb: 0, 184, 148; }
.topic-icon[data-topic="infect"] { --topic-rgb: 0, 206, 201; }
.topic-icon[data-topic="pulm"] { --topic-rgb: 39, 174, 96; }
.topic-icon[data-topic="gi"] { --topic-rgb: 230, 126, 34; }
.topic-icon[data-topic="renal"] { --topic-rgb: 142, 68, 173; }
.topic-icon[data-topic="rheum"] { --topic-rgb: 52, 73, 94; }
.topic-icon[data-topic="derm"] { --topic-rgb: 243, 156, 18; }
.topic-icon[data-topic="psych"] { --topic-rgb: 108, 92, 231; }
.topic-icon[data-topic="peds"] { --topic-rgb: 0, 168, 255; }

.feed-panel {
  flex: 1;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  background: #e7e7e7;
}

body.view-lumos-chat .feed-panel {
  min-width: 0;
}

body.view-lumos-chat .feed-panel.is-chat-only {
  display: none;
}

body.view-lumos-chat .feed-header-top {
  display: none;
}

body.view-lumos-chat .feed-header {
  padding-bottom: 0;
}

body.view-lumos-chat .greeting {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

@supports (height: 100dvh) {
  .feed-panel { height: 100dvh; }
}

/* Environment token counter (top-right of env card) */
.feed-item[data-env-id] {
  position: relative;
}

.lumos-env-token {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 11px;
  color: #777;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 999px;
  padding: 4px 8px;
  pointer-events: auto;
  cursor: default;
}

.feed-header {
  position: sticky;
  top: 0;
  background: #e7e7e7;
  padding-bottom: 10px;
  z-index: 2;
}

.feed-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-header-top .feed-header-logo {
  margin-bottom: 0 !important;
}

#feed {
  overflow-y: auto;
  flex: 1;
  padding: 10px;
  border-radius: 20px;
}

body.view-lumos-chat #feed {
  padding: 0;
}

body:not(.view-lumos-chat) .feed-home-list {
  background: #eeeeee;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

.greeting { font-size: 33px; font-weight: 900; }
.date { color: #777; font-size: 14px; margin-top: 4px; }

.header-shortcuts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-left: auto;
}

.workspace-header-tools {
  display: none;
  margin-top: 12px;
  gap: 10px;
}

.workspace-header-tools.is-visible {
  display: flex;
  flex-direction: column;
}

body.view-lumos-chat .workspace-tool-grid {
  display: none;
}

.workspace-header-tools .feed-item {
  margin: 0;
  background: #03045e;
}

.workspace-header-search {
  margin: 0;
}

.workspace-header-search .input {
  margin: 20px 0 0;
}

.workspace-library-mini-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 10px;
}

.workspace-library-mini-action {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 10px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  color: #475569;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.workspace-library-mini-action:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}

.workspace-library-mini-action.active {
  background: #384964;
  border-color: #384964;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(56, 73, 100, 0.22);
}

.workspace-library-mini-action__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef2f7;
  color: inherit;
}

.workspace-library-mini-action.active .workspace-library-mini-action__icon {
  background: rgba(255, 255, 255, 0.14);
}

.workspace-library-mini-action__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-library-mini-action__label {
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-header-meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

.workspace-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.workspace-tool-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 20px 12px;
  border-radius: 20px;
  border: 1px solid #e6e8f0;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}

.workspace-tool-tile:hover {
  transform: translateY(-2px);
  border-color: #d7dbe7;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
}

.workspace-tool-tile.active {
  background: linear-gradient(180deg, #232a86 0%, #202779 100%);
  border-color: #232a86;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(32, 39, 121, 0.28), 0 4px 12px rgba(32, 39, 121, 0.18);
}

.workspace-tool-tile__icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eff1f5;
  color: #4b5563;
  flex-shrink: 0;
}

.workspace-tool-tile__icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-tool-tile:hover .workspace-tool-tile__icon,
.workspace-tool-tile.active .workspace-tool-tile__icon {
  color: inherit;
}

.workspace-tool-tile:hover .workspace-tool-tile__icon {
  background: #e8ebf2;
}

.workspace-tool-tile.active .workspace-tool-tile__icon {
  background: rgba(255, 255, 255, 0.14);
}

.workspace-tool-tile__label {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
}

.lumos-widget-card {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.lumos-widget-card + .lumos-widget-card {
  margin-top: 12px;
}

.lumos-widget-card__title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.lumos-widget-card__subtitle {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.lumos-token-widget__hero {
  margin-top: 14px;
}

.lumos-token-widget__value {
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #111827;
}

.lumos-widget-card.is-live .lumos-token-widget__value {
  animation: lumosTokenPulse 1s ease-in-out infinite;
}

.content-checker-dropzone {
  border: 2px dashed #c084fc;
  background: linear-gradient(180deg, #fdf4ff 0%, #ffffff 100%);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.content-checker-dropzone.is-dragover {
  border-color: #7c3aed;
  background: #faf5ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  transform: translateY(-1px);
}

.content-checker-dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 8px 6px;
  text-align: center;
}

.content-checker-dropzone__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.content-checker-dropzone__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-dropzone__title {
  font-size: 15px;
  font-weight: 800;
  color: #4c1d95;
}

.content-checker-dropzone__hint {
  font-size: 12px;
  line-height: 1.55;
  color: #6b7280;
  max-width: 280px;
}

.content-checker-dropzone__browse {
  min-width: 140px;
}

.content-checker-dropzone__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lumos-sidebar-upload-dropzone {
  cursor: default;
}

.lumos-sidebar-upload-dropzone__inner {
  padding-bottom: 10px;
}

.lumos-sidebar-upload-dropzone__file {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #eadcff;
  font-size: 12px;
  line-height: 1.5;
  color: #4b5563;
}

.lumos-sidebar-upload-dropzone__file-label {
  font-weight: 700;
  color: #4c1d95;
}

.lumos-sidebar-upload-dropzone__file-name {
  word-break: break-word;
}

.lumos-sidebar-section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 10px 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lumos-sidebar-section-divider::before,
.lumos-sidebar-section-divider::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(203, 213, 225, 0.1), rgba(203, 213, 225, 0.9), rgba(203, 213, 225, 0.1));
}

.lumos-sidebar-section-divider span {
  flex: 0 0 auto;
}

.feed-item.content-checker-doc-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  position: relative;
  text-align: left;
  cursor: default;
  padding: 14px;
  border-radius: 18px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.content-checker-doc-card:hover {
  background: #ffffff;
  border-color: #dde3ef;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.content-checker-doc-card.active {
  border-color: #cfd9ff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.12);
}

.content-checker-doc-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #dbe4ff;
  color: #4f46e5;
}

.content-checker-doc-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-doc-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 auto;
}

.content-checker-doc-card .feed-source {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.content-checker-doc-card .feed-title {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #0f172a;
}

.content-checker-doc-card .feed-row {
  width: 100%;
}

.content-checker-doc-card .feed-summary {
  color: #64748b;
  line-clamp: unset;
  -webkit-line-clamp: unset;
}

.content-checker-doc-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.content-checker-doc-card__open {
  min-width: 88px;
  border-color: #d1d5db;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.content-checker-doc-card__open:hover,
.content-checker-doc-card__open:focus-visible {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.content-checker-doc-card__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.content-checker-doc-card__delete:hover,
.content-checker-doc-card__delete:focus-visible {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.22);
}

.content-checker-doc-card__delete svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.content-checker-layout--empty {
  align-items: center;
}

.content-checker-empty-state {
  max-width: 720px;
  margin: auto;
  padding: 40px 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.content-checker-empty-state__eyebrow {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.content-checker-empty-state__title {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.content-checker-empty-state__text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.content-checker-viewer-panel {
  min-height: 0;
}

.content-checker-viewer-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.content-checker-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.content-checker-toolbar--header {
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}

.content-checker-toolbar--island {
  align-items: center;
  gap: 14px;
  margin: 20px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.22);
}

.content-checker-toolbar__title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.content-checker-toolbar__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.content-checker-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.content-checker-toolbar__group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.content-checker-toolbar__group--search {
  flex: 1 1 360px;
}

.content-checker-toolbar__group--controls {
  flex: 0 1 auto;
}

.content-checker-toolbar__actions--mode-strip {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.content-checker-tool-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.content-checker-tool-group__title {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  text-align: center;
}

.content-checker-tool-group__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-checker-toolbar--island .small-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.content-checker-toolbar--island .small-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.content-checker-zoom-control {
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.content-checker-toolbar--island .content-checker-zoom-control {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
}

.content-checker-zoom-control__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.content-checker-toolbar--island .content-checker-zoom-control__label {
  color: #cbd5e1;
}

.content-checker-zoom-control__range {
  min-width: 0;
}

.content-checker-toolbar__actions .small-btn.is-active {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.content-checker-toolbar--island .content-checker-toolbar__actions .small-btn.is-active {
  background: rgba(96, 165, 250, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.content-checker-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px 8px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.content-checker-search-box svg {
  width: 16px;
  height: 16px;
  stroke: #cbd5e1;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.content-checker-search-box__input {
  flex: 1 1 auto;
  min-width: 200px;
  border: 0;
  background: transparent;
  color: #f8fafc;
  box-shadow: none;
  padding: 0;
}

.content-checker-search-box__input::placeholder {
  color: #94a3b8;
}

.content-checker-search-box__input:focus {
  outline: none;
}

.content-checker-search-box__filters {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.content-checker-search-box__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.content-checker-search-box__filter input {
  margin: 0;
  accent-color: #60a5fa;
}

.content-checker-search-box__summary {
  flex: 0 0 auto;
  min-width: 74px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.content-checker-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-checker-mode-btn--stacked {
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 72px;
  min-height: 52px;
  padding: 8px 10px;
}

.content-checker-mode-btn--stacked span {
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.content-checker-mode-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-selection,
.content-checker-alert {
  min-height: 22px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 12px;
  color: #9a3412;
}

.content-checker-selection.is-empty {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.content-checker-alert {
  background: #fff7ed;
  border-color: #fdba74;
}

.content-checker-alert.is-success {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.content-checker-viewer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  min-height: 0;
  flex: 1;
}

.content-checker-viewer-pages,
.content-checker-notes {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.content-checker-viewer-pages {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.content-checker-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.content-checker-page__meta {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.content-checker-page__sheet {
  position: relative;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.content-checker-canvas {
  display: block;
}

.content-checker-text-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  line-height: 1;
  opacity: 1;
  z-index: 2;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  forced-color-adjust: none;
  caret-color: transparent;
  user-select: text;
  -webkit-user-select: text;
}

.content-checker-text-layer span {
  position: absolute;
  white-space: pre;
  transform-origin: 0% 0%;
  color: transparent;
  cursor: text;
}

.content-checker-text-layer span.is-manual-selection {
  color: transparent !important;
  background: rgba(59, 130, 246, 0.28);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.content-checker-text-layer span.is-selection-preview {
  color: transparent !important;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2);
}

.content-checker-text-layer :is(span, br)::selection {
  background: rgba(59, 130, 246, 0.32);
}

.content-checker-text-layer br::selection {
  background: transparent;
}

.content-checker-text-layer span.is-review-hit {
  color: transparent !important;
  background: rgba(250, 204, 21, 0.55);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.22);
}

.content-checker-viewer-pages.is-note-jump-mode .content-checker-text-layer span.is-review-hit {
  cursor: pointer;
}

.content-checker-text-layer span.is-search-hit {
  color: transparent !important;
  background: rgba(167, 139, 250, 0.4);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.content-checker-text-layer span.is-search-hit-active {
  background: rgba(129, 140, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.content-checker-selection-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.content-checker-viewer-pages.is-manual-selection-mode .content-checker-selection-layer {
  pointer-events: auto;
  cursor: crosshair;
}

.content-checker-viewer-pages.is-manual-selection-mode .content-checker-text-layer span {
  user-select: none;
  -webkit-user-select: none;
}

.content-checker-selection-layer.is-selecting {
  cursor: crosshair;
}

.content-checker-selection-rect {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 8px;
  border: 1.5px dashed rgba(59, 130, 246, 0.85);
  background: rgba(59, 130, 246, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
}

.content-checker-selection-rect.is-active,
.content-checker-selection-rect.is-final {
  opacity: 1;
}

.content-checker-selection-rect.is-preview {
  opacity: 1;
  border-color: rgba(16, 185, 129, 0.9);
  background: rgba(16, 185, 129, 0.14);
}

.content-checker-viewer-empty {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.content-checker-notes__title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.content-checker-notes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.content-checker-notes__analyze-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.content-checker-notes__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.content-checker-note-card {
  padding: 12px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-checker-note-card.is-selected {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.24), 0 12px 28px rgba(245, 158, 11, 0.14);
}

.content-checker-note-card--clickable {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.content-checker-note-card--clickable:hover {
  border-color: #fcd34d;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
  transform: translateY(-1px);
}

.content-checker-note-card--clickable.is-comment-open {
  border-color: #f59e0b;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.16);
}

.content-checker-note-card.is-draft {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.content-checker-note-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.content-checker-note-card__quote-wrap {
  flex: 1;
  min-width: 0;
}

.content-checker-note-card__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.content-checker-note-card__quote {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
}

.content-checker-note-card.is-draft .content-checker-note-card__quote {
  color: #1d4ed8;
}

.content-checker-note-card__save {
  min-width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f766e;
}

.content-checker-note-card__menu {
  position: relative;
}

.content-checker-note-card__menu-trigger {
  min-width: 24px;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.content-checker-note-card__menu-trigger.has-value {
  color: #7c3aed;
}

.content-checker-note-card__menu-trigger.is-active {
  color: #4f46e5;
  background: rgba(99, 102, 241, 0.12);
}

.content-checker-note-card__menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 6;
}

.content-checker-note-card__menu:hover .content-checker-note-card__menu-panel,
.content-checker-note-card__menu:focus-within .content-checker-note-card__menu-panel {
  display: flex;
}

.content-checker-notes__list > .content-checker-note-card:first-child .content-checker-note-card__menu-panel {
  top: calc(100% + 6px);
  bottom: auto;
}

.content-checker-note-card__menu-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.content-checker-note-card__menu-item:hover,
.content-checker-note-card__menu-item:focus-visible,
.content-checker-note-card__menu-item.is-active {
  background: #f8fafc;
  outline: none;
}

.content-checker-note-card__menu-item.has-value {
  color: #7c3aed;
}

.content-checker-note-card__menu-item--danger {
  color: #b91c1c;
}

.content-checker-note-card__menu-item:disabled {
  opacity: 0.55;
  cursor: default;
}

.content-checker-note-card__save svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-note-card__menu-trigger svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-note-card__menu-item svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-checker-note-card__meta {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.content-checker-note-card__context-block {
  margin-top: 10px;
}

.content-checker-note-card__context-label {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.content-checker-note-card__context-text {
  font-size: 12px;
  line-height: 1.55;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
}

.content-checker-note-card__scope-hint {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #7c3aed;
}

.lumos-content-checker-reference-search {
  direction: ltr;
  text-align: left;
}

.content-checker-note-card__field {
  margin-top: 10px;
}

.content-checker-note-card__field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.content-checker-note-card__textarea {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 12px;
}

.content-checker-note-card__textarea--manual {
  min-height: 110px;
  background: #ffffff;
}

.content-checker-note-card__comment,
.content-checker-note-card__rationale,
.content-checker-note-card__pmids,
.content-checker-note-card__sources {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #4b5563;
}

.content-checker-note-card__sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-checker-note-card__sources--note-footer {
  margin-top: 10px;
}

.content-checker-note-card__sources-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

.content-checker-note-card__sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-checker-note-card__source-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.content-checker-note-card__comment--owner {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #9a3412;
}

.content-checker-note-card__comment--shared {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #1d4ed8;
}

.content-checker-note-card__analysis-body {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #1f2937;
}

.content-checker-note-card__analysis-body p:first-child,
.content-checker-note-card__analysis-body h3:first-child,
.content-checker-note-card__analysis-body ul:first-child,
.content-checker-note-card__analysis-body ol:first-child {
  margin-top: 0;
}

.content-checker-note-card__analysis-body p:last-child,
.content-checker-note-card__analysis-body ul:last-child,
.content-checker-note-card__analysis-body ol:last-child {
  margin-bottom: 0;
}

.content-checker-search-mark {
  padding: 0 2px;
  border-radius: 4px;
  background: rgba(196, 181, 253, 0.7);
  color: inherit;
}

.content-checker-note-card__finding {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.content-checker-note-card__finding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.content-checker-note-card__finding-quote {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  color: #1f2937;
}

.content-checker-note-card__verdict {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.content-checker-note-card__verdict.is-supported {
  background: #dcfce7;
  color: #166534;
}

.content-checker-note-card__verdict.is-conflicts,
.content-checker-note-card__verdict.is-unsupported {
  background: #fee2e2;
  color: #b91c1c;
}

.content-checker-note-card__verdict.is-uncertain,
.content-checker-note-card__verdict.is-needs_context {
  background: #fef3c7;
  color: #92400e;
}

.content-checker-note-card__evidence {
  margin-top: 8px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.content-checker-note-card__evidence li + li {
  margin-top: 4px;
}

.content-checker-note-card__shared-comment {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.07);
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.content-checker-note-card__shared-comment-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1d4ed8;
}

.content-checker-note-card__footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  margin-left: auto;
}

.content-checker-share-panel {
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.12);
}

.content-checker-share-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.content-checker-share-panel__title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.content-checker-share-panel__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
}

.content-checker-share-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.content-checker-share-panel__field {
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.content-checker-share-panel__field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.content-checker-share-panel__value {
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  color: #0f172a;
  word-break: break-all;
  min-height: 44px;
}

.content-checker-share-panel__value--password {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.content-checker-share-panel__field .small-btn {
  margin-top: 10px;
}

.content-checker-share-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.content-checker-share-panel__actions .small-btn {
  margin-top: 0;
}

.content-checker-score-panel {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 18px 36px rgba(168, 85, 247, 0.12);
}

.content-checker-share-score-panel {
  margin-bottom: 14px;
}

.content-checker-share-score-panel .content-checker-score-panel__grid {
  grid-template-columns: 1fr;
}

.content-checker-share-score-panel .content-checker-share-panel__value {
  font-weight: 700;
  word-break: normal;
}

.content-checker-share-score-panel .content-checker-share-panel__value--score-empty {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

.content-checker-share-score-panel .content-checker-share-panel__value--score-not_critical {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.content-checker-share-score-panel .content-checker-share-panel__value--score-moderately_critical {
  background: #f5f3ff;
  border-color: #c4b5fd;
  color: #6d28d9;
}

.content-checker-share-score-panel .content-checker-share-panel__value--score-critical {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.content-checker-score-panel__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-checker-score-panel__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-checker-score-panel__select {
  width: 100%;
  min-height: 44px;
  font-size: 12px;
  line-height: 1.4;
}

.content-checker-score-panel__custom-input {
  width: 100%;
  min-height: 42px;
}

.content-checker-score-panel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.content-checker-score-panel__actions {
  margin-top: 0;
  margin-left: auto;
}

.content-checker-score-panel__status {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
}

.content-checker-score-panel__status.is-success {
  color: #047857;
}

.content-checker-score-panel__status.is-error {
  color: #b91c1c;
}

.content-checker-score-review-preview {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.content-checker-score-review-preview__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.content-checker-score-review-preview__title {
  font-size: 15px;
  font-weight: 800;
  color: #3b0764;
}

.content-checker-score-review-preview__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7c3aed;
}

.content-checker-score-review-preview__score {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.18);
  font-size: 12px;
  font-weight: 800;
  color: #6d28d9;
  white-space: nowrap;
}

.content-checker-score-review-preview__summary {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
}

.content-checker-score-review-preview__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.content-checker-score-review {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
  border: 1px solid rgba(168, 85, 247, 0.18);
}

.content-checker-score-review__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.content-checker-score-review__title {
  font-size: 16px;
  font-weight: 800;
  color: #3b0764;
}

.content-checker-score-review__meta {
  margin-top: 4px;
  font-size: 12px;
  color: #7c3aed;
}

.content-checker-score-review__score {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.18);
  font-size: 12px;
  font-weight: 800;
  color: #6d28d9;
  white-space: nowrap;
}

.content-checker-score-review__summary {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #334155;
}

.content-checker-score-review__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.content-checker-score-review__block-title {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.content-checker-score-review__list {
  margin: 0;
  padding: 12px 12px 12px 28px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.55;
}

.content-checker-score-review__list--good {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #166534;
}

.content-checker-score-review__list--issues {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
}

.content-checker-score-review__list--recommendations {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.content-checker-score-review__sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.content-checker-score-review__section {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e9d5ff;
}

.content-checker-score-review__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.content-checker-score-review__section-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.content-checker-score-review__badge {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.content-checker-score-review__badge.is-good {
  background: #dcfce7;
  color: #166534;
}

.content-checker-score-review__badge.is-attention {
  background: #fef3c7;
  color: #92400e;
}

.content-checker-score-review__badge.is-critical {
  background: #fee2e2;
  color: #b91c1c;
}

.content-checker-score-review__badge.is-not_applicable {
  background: #e2e8f0;
  color: #475569;
}

.content-checker-score-review__section-summary {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

.content-checker-score-review__section .content-checker-score-review__list {
  margin-top: 10px;
}

.modal-card.lumos-ethical-summary-modal-card {
  width: min(980px, 80%);
  padding: 0;
  overflow: hidden;
}

.lumos-ethical-summary-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #ede9fe;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.lumos-ethical-summary-modal__meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #7c3aed;
}

.lumos-ethical-summary-modal__body {
  max-height: calc(90vh - 110px);
  overflow-y: auto;
  padding: 8px 24px 24px;
}

.lumos-ethical-summary-modal__body .content-checker-score-review {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: 16px 0 0;
  background: transparent;
}

@media (max-width: 1180px) {
  .content-checker-score-panel__grid {
    grid-template-columns: 1fr;
  }

  .content-checker-score-review__highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .content-checker-score-review-preview__header,
  .lumos-ethical-summary-modal__head,
  .content-checker-score-review__header,
  .content-checker-score-review__section-head {
    flex-direction: column;
  }

  .lumos-ethical-summary-modal__head,
  .lumos-ethical-summary-modal__body {
    padding-left: 18px;
    padding-right: 18px;
  }
}

.content-checker-tooltip {
  position: fixed;
  z-index: 30;
  width: min(340px, calc(100vw - 24px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.content-checker-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-checker-tooltip__verdict {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #facc15;
}

.content-checker-tooltip__comment,
.content-checker-tooltip__rationale,
.content-checker-tooltip__evidence,
.content-checker-tooltip__pmids {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 1280px) {
  .content-checker-viewer-shell {
    grid-template-columns: 1fr;
  }
}

.lumos-token-widget__label {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.lumos-token-widget__progress {
  --lumos-token-progress: 0%;
  margin-top: 14px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 100%);
  overflow: hidden;
  position: relative;
}

.lumos-token-widget__progress::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--lumos-token-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8 0%, #4f46e5 60%, #7c3aed 100%);
  transition: width 0.18s ease;
}

.lumos-token-widget__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.lumos-token-widget__metric {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #e5e7eb;
}

.lumos-token-widget__metric-label {
  font-size: 11px;
  line-height: 1.35;
  color: #64748b;
}

.lumos-token-widget__metric-value {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.lumos-widget-source-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.lumos-widget-source-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 148px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #ffffff;
  background: #f9f9f9;
  color: #26324b;
  text-decoration: none;
  box-shadow: 1px 4px 6px rgba(80, 95, 140, 0.12);
}

.lumos-widget-source-card:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.lumos-widget-source-card__pmid {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
}

.lumos-widget-source-card__title {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 300;
  color: #0f172a;
}

.lumos-widget-source-card__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.lumos-widget-empty {
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
  margin-top: 14px;
}

@keyframes lumosTokenPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.84; }
}

@media (max-width: 1200px) {
  .workspace-tool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lumos-token-widget__grid {
    grid-template-columns: 1fr;
  }
}

.workspace-create-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 12px;
  background: #384964;
  border: 1px solid #384964;
  color: #ffffff;
}

.workspace-create-card:hover,
.workspace-create-card.active {
  background: #ffffff;
  border-color: #384964;
  color: #384964;
}

.workspace-create-card .feed-title {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
}

.workspace-create-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}

.workspace-create-card__icon svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.workspace-create-card:hover .feed-title,
.workspace-create-card.active .feed-title {
  color: #384964;
}

.workspace-create-card:hover .workspace-create-card__icon,
.workspace-create-card.active .workspace-create-card__icon {
  background: rgba(56, 73, 100, 0.12);
}

.workspace-create-card:hover .workspace-create-card__icon svg,
.workspace-create-card.active .workspace-create-card__icon svg {
  stroke: #384964;
}

.feed-header .nav-icon {
  background: #f2f2f4;
  border: 1px solid #d8d8dc;
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.feed-header .nav-icon:hover {
  background: #ececff;
}

.feed-header button.nav-icon {
  padding: 0;
}

.feed-header .nav-icon svg {
  width: 15px;
  height: 15px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}


.small-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  white-space: nowrap;
}

.small-btn.icon-only {
  width: 50px;
  padding: 0;
  display: inline-flex;
  font-size: 30px;
  height: 31px;
  border-radius: 200px;
  border: 1px solid #cccccc;
  align-content: space-between;
  justify-content: center;
  align-items: center;
}

.small-btn.icon-only svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.small-btn.icon-only[data-loading="1"] { opacity: 0.7; }

.small-btn:hover { background: #f0f0f0; }
.small-btn:disabled { opacity: 0.6; cursor: default; }

.source-link-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.source-link-btn {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 148px;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #d8def8;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
  color: #26324b;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(80, 95, 140, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.source-link-btn:hover {
  transform: translateY(-1px);
  border-color: #bec8f3;
  box-shadow: 0 12px 24px rgba(80, 95, 140, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
}

.source-link-btn--fulltext {
  border-color: #d9d1fb;
  background: linear-gradient(180deg, #faf7ff 0%, #f1ebff 100%);
}

.source-link-btn--fulltext:hover {
  border-color: #cabcf8;
  background: linear-gradient(180deg, #ffffff 0%, #f1ebff 100%);
}

.source-link-btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(74, 99, 219, 0.12);
  color: #4a63db;
  font-size: 14px;
  line-height: 1;
}

.source-link-btn--fulltext .source-link-btn__icon {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

.source-link-btn__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.source-link-btn__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.source-link-btn__meta {
  font-size: 11px;
  color: #667085;
  line-height: 1.25;
}

.small-select {
  height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  color: #111;
}

.subtle {
  margin-top: 6px;
  font-size: 12px;
  color: #777;
}

/* Header status line removed from UX */
#statusLine {
  display: none;
}

.feed-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
      margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 10px;
  background: #fff;
  border: 1px solid #ececec;
  cursor: pointer;
  transition: 0.2s;
}

.feed-item:hover { background: #f9f9f9; }
.feed-item.active {
  border: 1px solid #dcdcff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.feed-item.workspace-create-card {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 8px 12px;
}

.feed-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #eee;
  flex: 0 0 auto;
}

.feed-source {
  font-size: 12px;
  color: #8a8a8f;
}

.feed-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25;
}

.feed-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feed-summary {
  font-size: 13px;
  color: #777;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.feed-divider {
  height: 1px;
  background: #ececec;
  width: 100%;
}

.feed-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.lumos-sidebar-draft-card {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.lumos-sidebar-draft-card .label {
  margin-top: 10px;
}

.lumos-sidebar-draft-card .details-block {
  margin-top: 10px;
}

.lumos-sidebar-draft-card .source-link-btn {
  min-width: 0;
}

.lumos-source-card .feed-summary {
  line-clamp: unset;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.lumos-source-card .source-link-row {
  margin-top: 10px;
}

.lumos-source-card__preview {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.lumos-source-card__preview:hover .feed-title,
.lumos-source-card__preview:focus-visible .feed-title {
  color: #1d4ed8;
}

.lumos-source-card__preview:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.3);
  outline-offset: 6px;
  border-radius: 12px;
}

.lumos-source-card__actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.lumos-source-card__ocr {
  color: #6d28d9;
}

.lumos-source-card__ocr:hover,
.lumos-source-card__ocr:focus-visible {
  background: rgba(109, 40, 217, 0.08);
  border-color: rgba(109, 40, 217, 0.18);
}

.lumos-source-card__delete {
  color: #b91c1c;
}

.lumos-source-card__delete:hover,
.lumos-source-card__delete:focus-visible {
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
}

.lumos-source-card input[type="checkbox"] {
  accent-color: #2563eb;
}

.source-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.source-state-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.source-state-tag.is-fulltext {
  background: rgba(2, 195, 154, 0.14);
  color: #05664f;
  border-color: rgba(2, 195, 154, 0.28);
}

.source-state-tag.is-abstract {
  background: rgba(240, 179, 61, 0.16);
  color: #8a4b00;
  border-color: rgba(240, 179, 61, 0.3);
}

.source-state-tag.is-extraction-ocr {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.24);
}

.source-state-tag.is-extraction-native {
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.3);
}

.source-state-tag.is-custom {
  background: rgba(2, 128, 144, 0.14);
  color: #045d68;
  border-color: rgba(2, 128, 144, 0.26);
}

.source-state-tag.is-added {
  background: rgba(34, 197, 94, 0.14);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.28);
}

.source-state-tag.is-lmr-ready {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
}

.source-state-tag.is-lmr-pending {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.28);
}

.feed-time {
  font-size: 12px;
  color: #aaa;
}

.main {
  flex: 1;
  height: 100vh;
  padding: 0px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 18px;
}
@supports (height: 100dvh) {
  .main { height: 100dvh; }
}

/* LUMOS env chat: keep composer fixed at bottom; only bubbles scroll */
body.view-lumos-chat .main {
  overflow: hidden;
  background: #fbf6f7;
}

body.view-lumos-chat .article {
  margin: 0;
  gap: 0;
  width: 100%;
}

.lumos-article {
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lumos-create-card {
  position: relative;
  /* border: 1px solid #ececec; */
  border-radius: 20px;
  background: #fff;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
  isolation: isolate;
  overflow: visible;
}

.lumos-create-card::before,
.lumos-create-card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
}

.lumos-create-card::before {
  padding: 2px;
  background: conic-gradient(
    from 180deg,
    rgba(91, 229, 168, 0.95),
    rgba(125, 211, 252, 0.95),
    rgba(129, 140, 248, 0.95),
    rgba(248, 113, 113, 0.92),
    rgba(250, 204, 21, 0.92),
    rgba(91, 229, 168, 0.95)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.lumos-create-card::after {
  display: none;
}

.lumos-create-card--prompt::before {
  animation: lumos-workspace-border-pulse 8s ease-in-out infinite;
}

.lumos-create-card--prompt::after {
  display: none;
}

.lumos-workspace-picker {
  margin-top: 24px;
}

.lumos-workspace-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.lumos-workspace-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #e7e9ee;
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.lumos-workspace-choice--wizard {
  background: #e0baf0;
}

.lumos-workspace-choice--empty {
  background: #9ce2ec;
}

.lumos-workspace-choice--custom {
  background: #afd5a2;
}

.lumos-workspace-choice__icon {
  width: 300px;
  height: 300px;
  max-width: 100%;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(144, 48, 99, 0.1);
  color: #903063;
  margin-bottom: 18px;
  overflow: hidden;
}

.lumos-workspace-choice__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lumos-workspace-choice__icon-image,
.lumos-workspace-choice__icon-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lumos-workspace-choice__icon-video::-webkit-media-controls {
  display: none !important;
}

.lumos-workspace-choice__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.lumos-workspace-choice__title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.lumos-workspace-choice__description {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
  text-align: center;
}

.lumos-workspace-choice__btn {
  flex: 0 0 44px;
  align-self: center;
  width: 80%;
  height: 44px;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #903063 0%, #b94383 100%);
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(144, 48, 99, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.lumos-workspace-choice__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(144, 48, 99, 0.3);
  filter: saturate(1.06);
}

.lumos-workspace-choice__btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(144, 48, 99, 0.22);
}

.lumos-workspace-choice__btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
  box-shadow: 0 8px 18px rgba(144, 48, 99, 0.14);
}

.btn-wide.primary {
  background: #101010;
  border-color: #6f6f6f;
  font-weight: 700;
  color: white;
}

@media (max-width: 1100px) {
  .lumos-workspace-picker__grid {
    grid-template-columns: 1fr;
  }

  .lumos-workspace-choice {
    min-height: 0;
  }
}

@keyframes lumos-workspace-border-pulse {
  0%, 50%, 100% {
    opacity: 0;
    transform: scale(0.998);
  }
  4% {
    opacity: 0.95;
    transform: scale(1);
  }
  12% {
    opacity: 1;
    transform: scale(1.002);
  }
  32% {
    opacity: 0.75;
    transform: scale(1.003);
  }
  46% {
    opacity: 0;
    transform: scale(1.001);
  }
}

.lumos-chat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  background: #fbf6f7;
}

.lumos-chat-search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  padding: 10px;
  background: #f7f7f8;
  border: 1px solid #ececec;
  border-radius: 14px;
}

.lumos-chat-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 6;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid #efe4e7;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  margin: 0;
  flex-shrink: 0;
}

.lumos-chat-search .input {
  margin: 0;
  flex: 1;
}

.lumos-chat-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lumos-chat-new-btn {
  appearance: none;
  border: 0;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  background: #384964;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(56, 73, 100, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.lumos-chat-new-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(56, 73, 100, 0.28);
}

.lumos-chat-new-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.lumos-chat-new-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lumos-chat-search-count {
  font-size: 12px;
  color: #777;
  min-width: 44px;
  text-align: right;
}

.lumos-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
  min-height: 0;
}

.lumos-chat-footer {
  padding: 40px;
}

.lumos-chat-composer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.lumos-chat-question-wrap {
  position: relative;
  min-width: 0;
}

.lumos-chat-inline-tools {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}

.lumos-chat-composer-card {
  padding: 8px 12px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
}

.lumos-chat-question-input {
  margin: 0;
  min-height: 48px;
  max-height: 140px;
  padding: 10px 106px 8px 4px;
  border: none;
  background: transparent;
  box-shadow: none;
  resize: none;
  font-size: 14px;
  line-height: 1.45;
}

.lumos-chat-question-input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.lumos-chat-mode-menu {
  position: relative;
}

.lumos-chat-publication-menu {
  position: relative;
}

.lumos-chat-mode-menu summary,
.lumos-chat-publication-menu summary {
  list-style: none;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #dbe1ea;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.lumos-chat-mode-menu summary::-webkit-details-marker,
.lumos-chat-publication-menu summary::-webkit-details-marker {
  display: none;
}

.lumos-chat-mode-menu summary:hover,
.lumos-chat-publication-menu summary:hover {
  background: #eceff3;
}

.lumos-chat-mode-menu summary svg,
.lumos-chat-publication-menu summary svg {
  width: 14px;
  height: 14px;
  stroke: #475569;
  fill: none;
  stroke-width: 1.8;
}

.lumos-chat-mode-menu[open] summary,
.lumos-chat-publication-menu[open] summary {
  border-color: #c7d2fe;
  background: #eef2ff;
}

.lumos-chat-mode-menu[data-disabled="1"],
.lumos-chat-publication-menu[data-disabled="1"] {
  pointer-events: none;
  opacity: 0.7;
}

.lumos-chat-publication-menu summary {
  position: relative;
}

.lumos-chat-publication-menu__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.lumos-chat-mode-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 260px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.lumos-chat-publication-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: min(340px, 82vw);
  padding: 10px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.lumos-chat-publication-summary {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.lumos-chat-publication-hint,
.lumos-chat-publication-error {
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.lumos-chat-publication-error {
  color: #b91c1c;
}

.lumos-chat-publication-filter {
  margin: 0;
  direction: ltr;
  text-align: left;
}

.lumos-chat-publication-actions {
  display: flex;
  justify-content: flex-end;
}

.lumos-chat-publication-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
}

.lumos-chat-publication-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.lumos-chat-publication-option:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.lumos-chat-publication-option__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lumos-chat-publication-option__title {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
}

.lumos-chat-publication-option__meta {
  font-size: 10px;
  line-height: 1.4;
  color: #64748b;
}

.lumos-chat-send-btn {
  appearance: none;
  border: 0;
  min-width: 112px;
  height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  background: #384964;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(56, 73, 100, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.lumos-chat-send-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(56, 73, 100, 0.3);
}

.lumos-chat-send-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.lumos-chat-send-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lumos-chat-composer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 0;
}

.lumos-chat-composer-model {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
}

.lumos-chat-composer-model__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4f46e5;
}

.lumos-chat-composer-model__icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lumos-chat-mode-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  padding: 2px 4px 6px;
}

.lumos-chat-mode-option {
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: #0f172a;
  cursor: pointer;
}

.lumos-chat-mode-option:hover {
  background: #f8fafc;
}

.lumos-chat-mode-option.is-active {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.chat-bubble-row {
  display: flex;
  margin-bottom: 10px;
}

.chat-bubble-row[data-role="assistant"] {
  justify-content: flex-start;
}

.chat-bubble-row[data-role="user"] {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 86%;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f7f7f8;
}

.chat-bubble-row[data-role="assistant"] .chat-bubble {
  background: #ececff;
  border-color: #dcdcff;
}

.chat-bubble-row[data-role="user"] .chat-bubble {
  background: #fff;
  border-color: #e5e5e5;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.chat-who {
  font-size: 12px;
  font-weight: 800;
  color: #3a3a55;
}

.chat-who-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 200;
  color: #ffffff;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  background-color: #0f172a;
  padding: 5px 10px;
  border-radius: 8px;
  width: fit-content;
}

.chat-when {
  font-size: 11px;
  color: #777;
  white-space: nowrap;
}

.chat-text {
  font-size: 14px;
  line-height: 1.55;
  color: #111;
}

.chat-citation-btn {
  appearance: none;
  border: none;
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  vertical-align: baseline;
}

.chat-citation-btn:hover {
  background: rgba(59, 130, 246, 0.2);
}

.chat-citation-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 2px;
}

mark.chat-hit {
  background: #e8e7ff;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

mark.chat-hit.active {
  outline: 2px solid #3a3a55;
}

.floating-lang {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
}

/* Hide language selector in Lumos (idle + new env + chat). */
body.view-lumos .floating-lang,
body.view-lumos-chat .floating-lang {
  display: none;
}

.floating-lang .nav-select {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.mobile-topbar {
  display: none;
}

.article {
    padding: 0px;
  /* max-width: 800px; */
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#article {
  flex: 1;
  min-height: 0;
  max-width: none;
  margin: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.home-hero {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}


@keyframes lumos-glow {
  0% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.2);
    color: #0f172a;
  }
  50% {
    text-shadow: 0 0 20px rgba(34, 211, 238, 1), 0 0 40px rgba(34, 211, 238, 0.6), 0 0 60px rgba(34, 211, 238, 0.3);
    color: #1e293b;
  }
  100% {
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.5), 0 0 20px rgba(34, 211, 238, 0.2);
    color: #0f172a;
  }
}

.lumos-wordmark {
  font-family: 'Outfit', sans-serif;
  font-size: min(150px, 14vw);
  font-weight: 200;
  color: #0f172a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.lumos-animated-o {
  display: inline-block;
  color: #0f172a;
  animation: lumos-glow 3s ease-in-out infinite;
  margin-right: 2px;
}

.source { color: #777; font-size: 14px; }
.title { font-size: 32px; font-weight: 700; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bookmark-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bookmark-btn:hover { background: #f0f0f0; }
.content { font-size: 16px; line-height: 1.6; color: #333; white-space: normal; }
.content p { margin: 0 0 12px; }
.content p:last-child { margin-bottom: 0; }
.content h1,
.content h2,
.content h3 {
  line-height: 1.25;
  color: #1f2533;
  margin: 18px 0 10px;
  font-weight: 800;
}
.content h1:first-child,
.content h2:first-child,
.content h3:first-child {
  margin-top: 0;
}
.content h1 { font-size: 24px; }
.content h2 { font-size: 20px; }
.content h3 { font-size: 17px; }
.content ul,
.content ol {
  margin: 0 0 14px 20px;
  padding-left: 8px;
}
.content li {
  margin: 0 0 8px;
}
.content li:last-child {
  margin-bottom: 0;
}
.summary .content ul,
.summary .content ol {
  background: #f7f8fc;
  border: 1px solid #eceef6;
  border-radius: 14px;
  padding: 12px 14px 12px 28px;
}
.summary .content li::marker {
  color: #5b63d3;
}

.content.rich { white-space: normal; }

.abs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.abs-sec {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fafafa;
}

.abs-h {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.abs-t { color: #333; }

.inline-fig {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #eee;
  display: block;
  margin: 10px 0;
}

.figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fig {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fafafa;
}

.fig img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.sec {
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.sec-title {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sec-body {
  font-size: 14px;
  color: #333;
}

/* Generated summary: justified text for easier reading */
.summary .content,
.summary .abs-t {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.meta-card {
  border: 1px solid #ececf1;
  background: #fafafe;
  border-radius: 14px;
  padding: 12px 14px;
}

.meta-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #77778a;
  margin-bottom: 6px;
}

.meta-value {
  font-size: 14px;
  line-height: 1.5;
  color: #23232f;
}

.details-block {
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #fcfcff;
  padding: 12px 14px;
}

.details-block summary {
  cursor: pointer;
  font-weight: 700;
  color: #3a3a55;
  list-style: none;
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.details-block[open] summary {
  margin-bottom: 12px;
}

.sec-empty {
  color: #999;
}

.kw {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kw-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  font-size: 12px;
  color: #444;
}

.links {
  display: flex;
  gap: 12px;
}

.links a {
  color: #3a3a55;
  text-decoration: none;
  font-weight: 700;
}

.links a:hover { text-decoration: underline; }

.authors,
.erratum {
  font-size: 14px;
  color: #333;
}

.refs {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.refs li { color: #333; }

.refs-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.refs-toggle {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  color: #3a3a55;
  font-weight: 700;
  cursor: pointer;
}

.refs-toggle:hover {
  text-decoration: underline;
}

.hero {
  width: 100%;
  height: 360px;
  border-radius: 16px;
  object-fit: cover;
  background: #eee;
}

.toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn:hover { background: #f0f0f0; }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal.show { display: flex; }

body.modal-open .sidebar,
body.modal-open .main {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.16s ease;
}

body.modal-open .modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 520px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

.lumos-citation-modal-card {
  width: min(920px, 100%);
}

.modal-card.lumos-usage-stats-modal-card {
  width: min(860px, 100%);
  padding: 0;
  overflow: hidden;
}

.modal-card.lumos-content-checker-note-modal-card {
  width: min(760px, 100%);
}

.lumos-usage-stats-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.lumos-usage-stats-modal__meta {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #64748b;
}

.lumos-usage-stats-modal__body {
  padding: 20px 22px 22px;
}

.lumos-usage-stats-modal__summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.lumos-usage-stats-modal__summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.lumos-usage-stats-modal__summary-k {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.lumos-usage-stats-modal__summary-v {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.lumos-usage-stats-modal__section + .lumos-usage-stats-modal__section {
  margin-top: 18px;
}

.lumos-usage-stats-modal__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.lumos-usage-stats-modal__section-hint {
  font-size: 12px;
  color: #64748b;
}

.lumos-usage-stats-modal__list,
.lumos-usage-stats-modal__daily-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lumos-usage-stats-modal__list {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.lumos-usage-stats-modal__item,
.lumos-usage-stats-modal__daily-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.lumos-usage-stats-modal__item {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.lumos-usage-stats-modal__item:last-child {
  border-bottom: 0;
}

.lumos-usage-stats-modal__item-col {
  min-width: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lumos-usage-stats-modal__item-col--action {
  font-weight: 700;
  color: #0f172a;
}

.lumos-usage-stats-modal__item-col--tokens {
  text-align: right;
  font-weight: 800;
  color: #1d4ed8;
}

.lumos-usage-stats-modal__daily-item {
  font-size: 13px;
  color: #334155;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.lumos-usage-stats-modal__daily-item strong {
  color: #0f172a;
}

@media (max-width: 760px) {
  .lumos-usage-stats-modal__summary-grid {
    grid-template-columns: 1fr;
  }

  .lumos-usage-stats-modal__section-head,
  .lumos-usage-stats-modal__item,
  .lumos-usage-stats-modal__daily-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .lumos-usage-stats-modal__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.lumos-content-checker-note-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.lumos-content-checker-note-modal__meta {
  font-size: 12px;
  line-height: 1.45;
  color: #64748b;
}

.lumos-content-checker-note-modal__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.lumos-content-checker-note-modal__toolbar .input {
  flex: 1 1 auto;
}

.lumos-content-checker-note-modal__counter {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.lumos-content-checker-note-modal__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.lumos-content-checker-note-modal__source-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.lumos-content-checker-note-modal__source-row:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.lumos-content-checker-note-modal__source-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lumos-content-checker-note-modal__source-title {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.lumos-content-checker-note-modal__source-meta {
  font-size: 11px;
  line-height: 1.45;
  color: #64748b;
}

.lumos-content-checker-note-modal__textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
}

.modal-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.modal-subtitle { font-weight: 900; font-size: 14px; margin-top: 8px; margin-bottom: 8px; }
.lumos-citation-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lumos-citation-meta {
  font-size: 12px;
  color: #64748b;
}

.lumos-citation-links {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lumos-citation-links a {
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.lumos-citation-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
}

.lumos-citation-links a:hover {
  text-decoration: underline;
}

.lumos-citation-modal-body {
  margin-top: 14px;
}

.lumos-citation-claim {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.lumos-citation-label,
.lumos-citation-match-note {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.lumos-citation-claim-text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
}

.lumos-citation-match-note {
  margin-bottom: 8px;
}

.lumos-citation-source-text {
  max-height: 62vh;
  overflow: auto;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fffef7;
  font-size: 14px;
  line-height: 1.7;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
}

.lumos-citation-highlight {
  background: #fde68a;
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}
.label { display: block; font-size: 12px; color: #666; margin-top: 10px; margin-bottom: 6px; }
.lumos-range-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}
.lumos-range-row--modal {
  margin-top: 10px;
}
.lumos-range-name {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.lumos-range-control {
  min-width: 0;
}
.lumos-range-wrap {
  position: relative;
  padding-top: 38px;
}
.lumos-range-bubble {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateX(-50%);
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.12);
  font-size: 12px;
  line-height: 1.2;
  color: #4c1d95;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #ddd; outline: none; }
.input:focus { border-color: #bdbdf6; box-shadow: 0 0 0 3px rgba(189,189,246,0.35); }
.input[type="range"] {
  --range-progress: 50%;
  --range-fill-position: left center;
  --range-fill-color: #84cc16;
  --range-thumb-color: #84cc16;
  --range-track-height: 16px;
  --range-thumb-size: 32px;
  --range-side-pad: 18px;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(195, 177, 255, 0.35);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  background:
    linear-gradient(90deg, var(--range-fill-color) 0%, var(--range-fill-color) 100%) var(--range-fill-position) / var(--range-progress) var(--range-track-height) no-repeat,
    linear-gradient(90deg, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 96%) 100%) center / calc(100% - (var(--range-side-pad) * 2)) var(--range-track-height) no-repeat,
    linear-gradient(180deg, rgb(255 255 255 / 96%) 0%, rgb(255 255 255 / 94%) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 24px rgba(124, 58, 237, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.input[type="range"]:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 0 0 4px rgba(189, 189, 246, 0.28),
    0 14px 30px rgba(124, 58, 237, 0.14);
}
.input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: var(--range-track-height);
  background: transparent;
  border: 0;
}
.input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  margin-top: calc((var(--range-track-height) - var(--range-thumb-size)) / 2);
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.96);
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #faf8ff 55%, #f0eaff 100%);
  box-shadow:
    0 8px 20px rgba(124, 58, 237, 0.2),
    0 0 0 1px rgba(167, 139, 250, 0.22);
}
.input[type="range"]::-moz-range-track {
  height: var(--range-track-height);
  background: transparent;
  border: 0;
}
.input[type="range"]::-moz-range-progress {
  height: var(--range-track-height);
  background: transparent;
  border: 0;
}
.input[type="range"]::-moz-range-thumb {
  width: var(--range-thumb-size);
  height: var(--range-thumb-size);
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.96);
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #faf8ff 55%, #f0eaff 100%);
  box-shadow:
    0 8px 20px rgba(124, 58, 237, 0.2),
    0 0 0 1px rgba(167, 139, 250, 0.22);
}
.input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .lumos-range-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.topics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;
}

body.content-checker-share-page {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  overflow: hidden;
}

body.content-checker-share-page .article,
.article.lumos-article.content-checker-share-article {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  flex: 1 1 auto;
}

.content-checker-share-main {
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  width: 100%;
}

.content-checker-share-article {
  margin: 0;
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
}

.content-checker-share-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#shareApp {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.content-checker-share-layout {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  height: 100%;
  min-height: 100%;
  width: 100%;
}

.content-checker-share-layout .content-checker-viewer-panel {
  flex: 1 1 auto;
  min-height: 0;
}

.content-checker-share-toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 20px;
}

.content-checker-share-toolbar__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.content-checker-share-toolbar__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 10px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 35px;
  font-weight: 200;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
}

.content-checker-share-toolbar__group {
  flex: 1 1 auto;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.content-checker-share-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  font-size: 12px;
  color: #475569;
}

.content-checker-toolbar--island .content-checker-share-name {
  color: #cbd5e1;
}

.content-checker-toolbar--island .content-checker-share-name .input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.content-checker-toolbar--island .content-checker-share-name .input::placeholder {
  color: #94a3b8;
}

.content-checker-share-lock {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: grid;
  place-items: center;
}

.content-checker-share-lock__card {
  width: min(460px, calc(100vw - 32px));
  min-height: 220px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.content-checker-share-lock__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.content-checker-share-lock__input {
  width: min(320px, 100%);
  margin: 0;
  align-self: center;
  text-align: center;
}

.content-checker-share-lock__input.is-error {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}

.content-checker-share-lock__input::placeholder {
  color: #94a3b8;
}

@media (max-width: 900px) {
  .content-checker-toolbar--island {
    align-items: stretch;
  }

  .content-checker-toolbar__group,
  .content-checker-toolbar__group--controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .content-checker-search-box {
    flex-wrap: wrap;
  }

  .content-checker-search-box__filters,
  .content-checker-search-box__summary {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .content-checker-share-panel__grid {
    grid-template-columns: 1fr;
  }

  :root {
    --mobile-topbar-h: 56px;
  }

@media (max-width: 980px) {
  .content-checker-share-shell {
    padding: 0;
  }

  .content-checker-share-toolbar {
    margin: 12px;
  }

  .content-checker-share-toolbar__brand,
  .content-checker-share-toolbar__group {
    width: 100%;
  }

  .content-checker-share-toolbar__group {
    justify-content: flex-start;
  }

  .content-checker-share-comment-btn {
    margin-left: 0;
  }

  .content-checker-share-name {
    min-width: 0;
    width: 100%;
  }
}
  body {
    padding-top: var(--mobile-topbar-h);
  }

  .mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--mobile-topbar-h);
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    z-index: 20;
  }

  .mobile-topbar-lang {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  .mobile-topbar .nav-select {
    background: #fff;
  }

  .floating-lang {
    display: none !important;
  }

  .sidebar {
    width: 100vw;
    flex: 0 0 100vw;
    height: calc(100vh - var(--mobile-topbar-h));
  }

  @supports (height: 100dvh) {
    .sidebar { height: calc(100dvh - var(--mobile-topbar-h)); }
  }

  .feed-panel {
    width: 100vw;
    flex: 0 0 100vw;
    max-width: 100vw;
    height: calc(100vh - var(--mobile-topbar-h));
    padding: 12px;
    gap: 8px;
  }

  @supports (height: 100dvh) {
    .feed-panel { height: calc(100dvh - var(--mobile-topbar-h)); }
  }

  body.mobile-feed-hidden .feed-panel {
    display: none;
  }

  body.mobile-feed-hidden .sidebar {
    display: none;
  }

  .main {
    min-width: 0;
    height: calc(100vh - var(--mobile-topbar-h));
    padding: 16px;
  }

  @supports (height: 100dvh) {
    .main { height: calc(100dvh - var(--mobile-topbar-h)); }
  }

  .feed-header {
    padding-bottom: 6px;
  }

  .header-shortcuts {
    gap: 8px;
  }

  .feed-header-top {
    margin-bottom: 8px;
  }

  .workspace-header-tools {
    margin-top: 10px;
    gap: 8px;
  }

  .workspace-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .workspace-library-mini-actions {
    gap: 8px;
  }

  .workspace-library-mini-action {
    min-height: 78px;
    border-radius: 14px;
  }

  .workspace-tool-tile {
    min-height: 0;
    padding: 16px 10px;
    border-radius: 16px;
    gap: 10px;
  }

  .workspace-tool-tile__icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .workspace-tool-tile__label {
    font-size: 10px;
  }

  .feed-header-logo {
    display: none !important;
  }

  .feed-item {
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 0;
    padding: 10px;
  }

  .feed-title {
    font-size: 13px;
  }

  .lumos-chat-mode-popover {
    width: min(260px, calc(100vw - 56px));
  }

  .lumos-chat-composer-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .lumos-chat-question-wrap {
    min-width: 0;
  }

  .lumos-chat-question-input {
    min-height: 72px;
  }

  .lumos-chat-search-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
  }

  .lumos-chat-new-btn {
    align-self: flex-end;
  }

  .lumos-chat-mode-menu {
    grid-area: settings;
  }

  .lumos-chat-send-btn {
    grid-area: send;
    min-width: 96px;
  }

  .article .title {
    font-size: 18px;
  }

  .feed-row {
    gap: 10px;
  }

  .feed-thumb {
    width: 52px;
    height: 52px;
  }
}

.topics-picker {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.topic-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0;
}

.topic-block + .topic-block {
  border-top: 1px solid #eee;
}

.topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topic-row-selectable {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

.topic-row-selectable[data-selected="1"] {
  background: #ececff;
}

.topic-name {
  font-weight: 800;
  font-size: 14px;
  color: #111;
}

.toggle {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d9d9dd;
  position: relative;
  cursor: pointer;
  border: none;
}

.toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: 0.15s;
}

.toggle[data-on="1"] {
  background: #7bcda0;
}

.toggle[data-on="1"]::after {
  left: 21px;
}

.topic-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-sources-panel {
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.topic-sources-label {
  font-size: 12px;
  color: #666;
}

.topic-sources-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.src-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  font-size: 12px;
  color: #444;
  cursor: pointer;
}

.src-chip[data-on="1"] {
  border-color: #dcdcff;
  background: #ececff;
  color: #3a3a55;
}

.tag-editor {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.tag-editor:focus-within { border-color: #bdbdf6; box-shadow: 0 0 0 3px rgba(189,189,246,0.35); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dcdcff;
  background: #ececff;
  color: #3a3a55;
  font-size: 13px;
}

.tag button {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cfcfff;
  background: #fff;
  cursor: pointer;
  line-height: 1;
}

.tag-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 180px;
  font-size: 14px;
}

.tag-suggestions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #efefef;
  max-height: 220px;
  overflow-y: auto;
}

.tag-suggestion {
  width: 100%;
  border: 1px solid #ececf4;
  background: #fafafe;
  color: #111;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tag-suggestion small {
  color: #6b7280;
  font-size: 11px;
}

.tag-suggestion:hover,
.tag-suggestion.active {
  background: #ececff;
  border-color: #d6d8ff;
}

.modal-actions { display: flex; gap: 10px; margin-top: 14px; }
.btn-wide { flex: 1; height: 44px; border-radius: 12px; border: 1px solid #ddd; background: #fff; cursor: pointer; }
.btn-wide.primary {
  background: #101010;
  border-color: #6f6f6f;
  font-weight: 700;
  color: white;
}
.btn-wide:disabled,
.btn-wide.primary:disabled {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}
.lumos-workspace-choice .lumos-workspace-choice__btn {
  flex: 0 0 44px;
  margin-top: 40px;
}
.hint { font-size: 12px; color: #777; margin-top: 10px; }

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.profile-link:hover {
  background: #f5f5f7;
}

.auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.18), transparent 30%), linear-gradient(180deg, #0f172a 0%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #f8fafc;
}

.auth-shell {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.auth-brand {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(48px, 12vw, 88px);
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}

.auth-brand-o {
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.95), 0 0 40px rgba(34, 211, 238, 0.45);
}

.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 28px 24px;
}

.auth-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-lang-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-lang-label {
  margin-bottom: 0;
  white-space: nowrap;
}

.auth-lang-select {
  width: 68px;
  min-width: 68px;
  height: 38px;
  padding: 6px 10px;
  font-size: 13px;
  background: #101010;
  color: white;
  border-radius: 10px;
}

.auth-card .auth-title {
  margin-bottom: 0;
}

.auth-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: #6b7280;
  margin-bottom: 18px;
  line-height: 1.5;
}

.auth-input {
  margin-bottom: 10px;
}

.auth-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.auth-hint {
  min-height: 18px;
  margin-top: 12px;
}

.auth-bootstrap {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececf1;
}

.auth-bootstrap-title {
  font-weight: 800;
  margin-bottom: 6px;
}
