:root {
  color-scheme: light;
  --stage-bg: #e9e7e2;
  --panel-bg: #fbfaf7;
  --panel-border: rgba(20, 20, 20, 0.09);
  --ink: #111111;
  --muted: #666a70;
  --faint: #93969c;
  --line: rgba(18, 18, 18, 0.08);
  --app-bg: #f4f3f0;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --accent: #df6426;
  --accent-soft: #fff1e9;
  --accent-contrast: #ffffff;
  --card-shadow: 0 10px 32px rgba(35, 35, 35, 0.045);
  --phone-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
  --radius-lg: 18px;
  --radius-md: 14px;
  --card-radius: 16px;
  --title-font: Georgia, "Times New Roman", serif;
  --section-space: 22px;
  --section-space-delta: 0px;
  --row-height: 70px;
  --row-pad-y: 11px;
  --density-row-shift: 0px;
  --density-pad-shift: 0px;
  --top-title-size: 30px;
  --top-title-weight: 720;
  --quote-font: var(--font);
  --quote-weight: 760;
  --personal-copy-size: 14px;
  --row-title-size: 16px;
  --row-preview-size: 13px;
  --narrative-title-size: 16px;
  --narrative-copy-size: 12px;
  --content-title-font: var(--serif);
  --content-title-weight: 800;
  --latin-font: "SF Pro Text";
  --cjk-font: "PingFang SC";
  --latin-serif-font: Georgia, "Times New Roman";
  --cjk-serif-font: "Songti SC";
  --font: var(--latin-font), var(--cjk-font), "Microsoft YaHei", "Noto Sans CJK SC", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: var(--latin-serif-font), var(--cjk-serif-font), "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--stage-bg);
  font-family: var(--font);
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(390px, 1fr);
  gap: 34px;
  width: min(1180px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  align-items: center;
}

.control-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.eyebrow,
.note-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.site-home-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(223, 100, 38, 0.22);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(35, 35, 35, 0.08);
  backdrop-filter: blur(14px);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.site-home-link svg {
  display: block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.site-home-link:hover {
  border-color: rgba(223, 100, 38, 0.36);
  background: rgba(255, 241, 233, 0.92);
}

.control-panel h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: 0;
}

.panel-copy {
  margin: 12px 0 0;
  color: #5f6268;
  font-size: 15px;
  line-height: 1.58;
}

.control-drawer,
.reference-shot {
  margin: 0;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
}

.control-drawer summary {
  display: none;
}

.control-stack {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.control-group {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.control-group legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(var(--segments, 3), minmax(0, 1fr));
  gap: 6px;
}

.segmented.wrap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #2f343b;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
}

.choice span {
  margin-top: 3px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}

.choice.active {
  border-color: color-mix(in srgb, var(--accent) 46%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.choice:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.reference-shot {
  padding: 12px;
}

.reference-shot img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.reference-shot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  width: 414px;
  height: 868px;
  border-radius: 46px;
  padding: 12px;
  background: #101010;
  box-shadow: var(--phone-shadow);
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  border-radius: 36px;
  background: var(--app-bg);
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.status-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px 2px;
  color: var(--ink);
  background: linear-gradient(var(--app-bg) 78%, color-mix(in srgb, var(--app-bg) 0%, transparent));
  font-size: 15px;
  font-weight: 760;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-icons span {
  width: 17px;
  height: 11px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.status-icons span:first-child {
  width: 22px;
  height: 14px;
  border: 0;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
}

.status-icons strong {
  min-width: 30px;
  border-radius: 8px;
  background: #f4d757;
  color: #111;
  text-align: center;
  font-size: 15px;
  line-height: 19px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px 14px;
}

.topbar h2 {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: var(--top-title-size);
  font-weight: var(--top-title-weight);
  line-height: 1;
  letter-spacing: 0;
}

.filter {
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 720;
  box-shadow: 0 8px 20px rgba(40, 40, 40, 0.04);
}

.section {
  padding: 0 20px calc(var(--section-space) + var(--section-space-delta));
}

.section-title {
  margin: 0 0 9px 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.personal-card,
.channel-list,
.narrative-card {
  border: 1px solid rgba(20, 20, 20, 0.04);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

body[data-direction="warmer"] .personal-card,
body[data-direction="warmer"] .channel-list,
body[data-direction="warmer"] .narrative-card,
body[data-direction="warmer"] .signal-card,
body[data-direction="warmer"] .message-bubble,
body[data-direction="warmer"] .reply-bubble,
body[data-direction="warmer"] .thread-summary {
  border-color: rgba(22, 30, 36, 0.075);
}

body[data-direction="cleaner"] .personal-card,
body[data-direction="cleaner"] .channel-list,
body[data-direction="cleaner"] .narrative-card,
body[data-direction="cleaner"] .signal-card,
body[data-direction="cleaner"] .message-bubble,
body[data-direction="cleaner"] .reply-bubble,
body[data-direction="cleaner"] .thread-summary {
  border-color: var(--line);
  box-shadow: none;
}

.personal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  min-height: 78px;
  margin-bottom: 10px;
  padding: 15px 15px 14px 21px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.personal-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card-row h3 {
  color: var(--ink);
  font-family: var(--content-title-font);
  font-size: var(--row-title-size);
  font-weight: var(--content-title-weight);
  line-height: 1.15;
  letter-spacing: 0;
}

.card-row span,
.time,
.narrative-card time {
  color: var(--faint);
  white-space: nowrap;
}

.card-row span {
  font-size: 12px;
}

.personal-card p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--row-preview-size);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  display: inline-grid;
  place-items: center;
  color: #b9bbc0;
}

.chevron svg {
  width: 20px;
  height: 20px;
}

.channel-list {
  border-radius: var(--card-radius);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: calc(var(--row-height) + var(--density-row-shift));
  padding: calc(var(--row-pad-y) + var(--density-pad-shift)) 12px;
  border-bottom: 1px solid var(--line);
}

.channel-row.is-clickable {
  cursor: pointer;
}

.channel-row.is-clickable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 54%, transparent);
  outline-offset: -2px;
}

.channel-row.is-clickable:hover .channel-copy h3 {
  color: var(--accent);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--icon-bg, rgba(255, 255, 255, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(19, 20, 21, 0.06),
    0 1px 2px rgba(19, 20, 21, 0.05);
}

.channel-icon img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  image-rendering: auto;
}

.channel-icon::before,
.channel-icon::after {
  position: absolute;
  content: "";
  image-rendering: pixelated;
}

.channel-icon.has-avatar::before,
.channel-icon.has-avatar::after {
  display: none;
}

.channel-icon.has-avatar {
  --icon-bg: rgba(255, 255, 255, 0.94);
}

body[data-icon-bg="plain"] .channel-icon.has-avatar {
  --icon-bg: rgba(255, 255, 255, 0.94);
}

body[data-icon-bg="mesh"] .channel-icon.has-avatar {
  --icon-bg:
    radial-gradient(circle at 18% 18%, rgba(255, 224, 165, 0.88), transparent 42%),
    radial-gradient(circle at 82% 22%, rgba(205, 233, 255, 0.72), transparent 40%),
    radial-gradient(circle at 70% 82%, rgba(248, 213, 255, 0.58), transparent 42%),
    linear-gradient(135deg, #fff8e9, #f8fbff 55%, #fff3ec);
}

body[data-icon-bg="mesh"] .channel-icon.code.has-avatar {
  --icon-bg:
    radial-gradient(circle at 24% 20%, rgba(220, 201, 255, 0.84), transparent 42%),
    radial-gradient(circle at 82% 76%, rgba(255, 214, 201, 0.72), transparent 44%),
    linear-gradient(135deg, #fff8f0, #f5eeff);
}

body[data-icon-bg="mesh"] .channel-icon.macro.has-avatar {
  --icon-bg:
    radial-gradient(circle at 22% 22%, rgba(210, 241, 225, 0.84), transparent 42%),
    radial-gradient(circle at 78% 72%, rgba(255, 229, 184, 0.74), transparent 42%),
    linear-gradient(135deg, #f7fff6, #fff5e7);
}

body[data-icon-bg="mesh"] .channel-icon.plaza.has-avatar {
  --icon-bg:
    radial-gradient(circle at 20% 18%, rgba(255, 214, 166, 0.88), transparent 42%),
    radial-gradient(circle at 82% 72%, rgba(255, 195, 182, 0.64), transparent 42%),
    linear-gradient(135deg, #fff8e9, #fff0ea);
}

body[data-icon-bg="mesh"] .channel-icon.private.has-avatar {
  --icon-bg:
    radial-gradient(circle at 22% 18%, rgba(227, 248, 197, 0.84), transparent 42%),
    radial-gradient(circle at 78% 74%, rgba(255, 220, 178, 0.72), transparent 42%),
    linear-gradient(135deg, #f8fff1, #fff4e5);
}

body[data-icon-bg="warm"] .channel-icon.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff4d7, #ffe3d4);
}

body[data-icon-bg="warm"] .channel-icon.code.has-avatar {
  --icon-bg: linear-gradient(135deg, #ffe4f0, #fff0d8);
}

body[data-icon-bg="warm"] .channel-icon.macro.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff0d4, #e7f6d8);
}

body[data-icon-bg="warm"] .channel-icon.plaza.has-avatar {
  --icon-bg: linear-gradient(135deg, #ffe8c6, #ffd5c8);
}

body[data-icon-bg="warm"] .channel-icon.private.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff1ca, #ddf3cf);
}

body[data-icon-bg="cream"] .channel-icon.has-avatar {
  --icon-bg: linear-gradient(135deg, #fffaf1, #f8efe4);
}

body[data-icon-bg="cream"] .channel-icon.code.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff6ef, #f7edf5);
}

body[data-icon-bg="cream"] .channel-icon.macro.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff7ec, #f1f7ea);
}

body[data-icon-bg="cream"] .channel-icon.plaza.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff3e3, #fff8ed);
}

body[data-icon-bg="cream"] .channel-icon.private.has-avatar {
  --icon-bg: linear-gradient(135deg, #fff8e5, #f3f7e8);
}

.channel-icon::before {
  inset: 6px;
  border-radius: 4px;
  background: #5d6f86;
}

.channel-icon::after {
  right: 4px;
  bottom: 4px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #e58650;
}

.channel-icon.tech {
  --icon-bg: linear-gradient(135deg, #e9f3f4, #f4e6d3);
}

.channel-icon.tech::before {
  background:
    linear-gradient(90deg, transparent 44%, #3c4b57 44% 56%, transparent 56%),
    linear-gradient(0deg, transparent 44%, #3c4b57 44% 56%, transparent 56%),
    #dfe9e9;
}

.channel-icon.code {
  --icon-bg: linear-gradient(135deg, #eaf0df, #f1d9cf);
}

.channel-icon.code::before {
  background: #313844;
  box-shadow: inset 4px 4px 0 #8ad0ba, inset -4px -4px 0 #e9b35e;
}

.channel-icon.macro {
  --icon-bg: linear-gradient(135deg, #e7edf0, #f5e3d4);
}

.channel-icon.macro::before {
  inset: 10px 6px 7px;
  clip-path: polygon(0 100%, 32% 42%, 52% 70%, 80% 20%, 100% 100%);
  background: #607f74;
}

.channel-icon.plaza {
  --icon-bg: linear-gradient(135deg, #f1e8d8, #e5f0ec);
}

.channel-icon.plaza::before {
  background:
    linear-gradient(90deg, transparent 46%, rgba(255,255,255,.75) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255,255,255,.75) 46% 54%, transparent 54%),
    #cc7952;
}

.channel-icon.private {
  --icon-bg: linear-gradient(135deg, #ececf0, #f5e9dc);
}

.channel-icon.subscription {
  --icon-bg: linear-gradient(135deg, #eef4f7, #f8efe0);
}

.channel-icon.private::before {
  inset: 12px 9px 7px;
  border-radius: 3px;
  background: #343942;
}

.channel-icon.private::after {
  left: 11px;
  top: 7px;
  width: 12px;
  height: 12px;
  border: 3px solid #343942;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
}

.channel-copy {
  min-width: 0;
}

.channel-copy h3 {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink);
  font-family: var(--content-title-font);
  font-size: var(--row-title-size);
  font-weight: var(--content-title-weight);
  line-height: 1.15;
  letter-spacing: 0;
}

.channel-copy p {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--row-preview-size);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-lock {
  display: inline-flex;
  color: #55585f;
}

.inline-lock svg {
  width: 13px;
  height: 13px;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-size: 12px;
}

.new-pill {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 820;
}

.narratives-section {
  padding-bottom: 88px;
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.narrative-card {
  display: flex;
  flex-direction: column;
  min-height: 206px;
  border-radius: var(--card-radius);
  padding: 12px;
  overflow: hidden;
}

.narrative-copy span {
  display: block;
  color: #8d8f95;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.narrative-card h3 {
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--content-title-font);
  font-size: var(--narrative-title-size);
  font-weight: var(--content-title-weight);
  line-height: 1.15;
  letter-spacing: 0;
}

.narrative-card p {
  display: -webkit-box;
  min-height: 37px;
  margin-top: 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--narrative-copy-size);
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.narrative-card time {
  display: block;
  margin-top: 8px;
  font-size: 11px;
}

.narrative-art {
  position: relative;
  flex: 1;
  min-height: 88px;
  margin-top: 11px;
  border-radius: 12px;
  overflow: hidden;
  background: #87c5dc;
  image-rendering: pixelated;
}

.narrative-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 88px;
  object-fit: cover;
}

.empty-state {
  border: 1px dashed color-mix(in srgb, var(--muted) 34%, transparent);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 22px 18px;
}

.empty-state h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.empty-state p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.narrative-art:has(img)::before,
.narrative-art:has(img)::after {
  display: none;
}

.narrative-art::before,
.narrative-art::after {
  position: absolute;
  content: "";
}

.narrative-art.ai {
  background:
    linear-gradient(#1391d1 0 42%, transparent 42%),
    linear-gradient(135deg, #f0b07e 0 28%, #c87970 28% 45%, #815f76 45% 62%, #50687d 62%);
}

.narrative-art.ai::before {
  left: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: #f1f1eb;
  box-shadow: 9px -7px 0 #cad7d8, 18px 9px 0 #ffffff;
}

.narrative-art.ai::after {
  right: 18px;
  bottom: 20px;
  width: 18px;
  height: 64px;
  background: #f5f4ee;
  box-shadow: -13px 18px 0 #273949, 9px 22px 0 #d46c4b;
}

.narrative-art.iran {
  background:
    linear-gradient(#9ecbd7 0 38%, transparent 38%),
    linear-gradient(135deg, #eec98c 0 28%, #c68665 28% 48%, #776c79 48% 64%, #304c5c 64%);
}

.narrative-art.iran::before {
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 42px;
  clip-path: polygon(0 100%, 18% 44%, 30% 72%, 44% 28%, 60% 64%, 72% 34%, 100% 100%);
  background: #f5e5c8;
}

.narrative-art.iran::after {
  right: 18px;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1bc75;
}

.bottom-tabs {
  position: sticky;
  bottom: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  width: calc(100% - 34px);
  margin: auto 17px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.84);
  padding: 6px;
  box-shadow: 0 18px 44px rgba(35, 35, 35, 0.12);
  backdrop-filter: blur(20px);
  flex-shrink: 0;
}

.tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 50px;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: #171717;
}

.tab svg {
  width: 22px;
  height: 22px;
}

.tab span {
  font-size: 11px;
  font-weight: 760;
}

.tab.active {
  background: rgba(223, 100, 38, 0.12);
  color: var(--accent);
}

.signal-header {
  position: sticky;
  top: 36px;
  z-index: 6;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 14px 24px 12px;
  background: linear-gradient(var(--app-bg) 84%, color-mix(in srgb, var(--app-bg) 0%, transparent));
}

.signal-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.signal-header h2 {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: var(--top-title-size);
  line-height: 1;
  letter-spacing: 0;
}

.signal-radar {
  display: grid;
  gap: 10px;
  margin: 2px 20px 12px;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--card-shadow);
}

.signal-radar-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.signal-radar-head span {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 850;
}

.signal-radar-head h3 {
  margin-top: 9px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: 0;
}

.signal-summary {
  gap: 12px;
}

.signal-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--ink);
}

.signal-summary-list li {
  padding-left: 2px;
}

.signal-summary-list li::marker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 860;
}

.signal-summary-list h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 860;
  line-height: 1.2;
  letter-spacing: 0;
}

.signal-summary-list p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.45;
}

.signal-summary-refs {
  display: inline-flex;
  gap: 3px;
  margin-left: 4px;
  vertical-align: super;
}

.signal-ref {
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0 4px;
  font-size: 8px;
  font-weight: 860;
  line-height: 1;
  cursor: pointer;
}

.signal-ref:active {
  transform: translateY(1px);
}

.signal-radar-section {
  display: grid;
  gap: 7px;
}

.signal-radar-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.signal-radar-title strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 860;
  line-height: 1;
}

.signal-radar-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-radar-spark {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 62px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--accent);
}

.signal-radar-spark svg {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 58px;
}

.signal-radar-spark circle {
  fill: var(--surface-solid);
  stroke: currentColor;
  stroke-width: 2px;
}

.signal-heat-bars {
  display: grid;
  gap: 6px;
}

.signal-heat-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 7px;
}

.signal-heat-row span,
.signal-heat-row strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.signal-heat-row strong {
  color: var(--ink);
  text-align: right;
}

.signal-heat-row div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
}

.signal-heat-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--accent) 82%, #fff);
}

.signal-bubbles,
.signal-matrix {
  min-width: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  padding: 8px;
}

.signal-bubbles {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 5px;
  min-height: 82px;
}

.signal-bubbles span {
  display: inline-grid;
  place-items: center;
  width: var(--bubble-size);
  height: var(--bubble-size);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
}

.signal-matrix {
  display: grid;
  gap: 7px;
  align-content: center;
}

.signal-matrix-row {
  display: grid;
  grid-template-columns: 58px repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.signal-matrix-row strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-matrix-row span {
  height: 16px;
  border-radius: 6px;
  background: var(--accent);
}

.signal-movers {
  display: grid;
  gap: 6px;
}

.signal-movers button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 30px;
  gap: 7px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.42);
  padding: 7px 8px;
  text-align: left;
}

.signal-movers span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-movers i {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
}

.signal-movers b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.signal-movers strong {
  color: var(--accent);
  font-size: 10px;
  font-weight: 860;
  text-align: right;
}

.signal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.signal-stats span {
  display: grid;
  gap: 2px;
  width: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--faint);
  padding: 8px;
  font-size: 10px;
  line-height: 1.1;
}

.signal-stats strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1;
}

.signal-filter-row {
  display: flex;
  gap: 7px;
  margin: 0 20px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.signal-filter-row::-webkit-scrollbar {
  display: none;
}

.signal-filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 820;
}

.signal-filter.active {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.signal-feed {
  display: grid;
  gap: 10px;
  padding: 0 20px 96px;
}

.signal-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 12px;
  box-shadow: var(--card-shadow);
}

.signal-card.is-discussing {
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.signal-card.is-highlighted {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent), var(--card-shadow);
}

.signal-card-top,
.signal-symbol-row,
.signal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.signal-card-top span,
.signal-card-top em {
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.signal-card-top em {
  color: var(--accent);
}

.signal-source-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.signal-source-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent-soft) 70%, #fff);
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.signal-source-row span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.1;
}

.signal-source-row h3 {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.24;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.signal-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.signal-footprints {
  display: grid;
  gap: 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  padding: 8px;
}

.signal-footprints.empty {
  background: transparent;
  border-left: 2px solid var(--line);
  border-radius: 0;
  padding: 0 0 0 8px;
}

.signal-footprints.empty span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 760;
}

.signal-replay-badge,
.signal-footprint-summary,
.signal-footprint-channels {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-replay-badge {
  color: var(--accent);
  font-size: 11px;
  font-weight: 860;
}

.signal-replay-badge svg {
  width: 14px;
  height: 14px;
}

.signal-footprint-summary {
  justify-content: space-between;
}

.signal-footprint-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.15;
}

.signal-footprint-summary span {
  color: var(--faint);
  font-size: 11px;
  font-weight: 820;
  white-space: nowrap;
}

.signal-footprint-channels {
  flex-wrap: wrap;
}

.signal-footprint-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 820;
}

.signal-footprint-chip strong {
  color: var(--muted);
  font-weight: 820;
}

.signal-footprint-chip span {
  color: var(--accent);
  font-weight: 860;
}

.signal-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.signal-symbol-row {
  align-items: flex-start;
}

.signal-symbols span {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.signal-symbols span {
  background: var(--accent-soft);
  color: var(--accent);
}

.signal-translate {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--faint);
  padding: 3px 0 3px 8px;
  font-size: 10px;
  font-weight: 760;
}

.signal-translate.inline {
  display: inline;
  padding-left: 5px;
  vertical-align: baseline;
  white-space: nowrap;
}

.signal-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.signal-actions button,
.signal-actions a,
.artifact-actions button,
.artifact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 820;
  text-decoration: none;
}

.signal-card.is-sent .signal-actions button:first-child {
  color: var(--accent);
}

.signal-actions svg {
  width: 13px;
  height: 13px;
}

.echo-header {
  position: sticky;
  top: 36px;
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 24px 12px;
  background: linear-gradient(var(--app-bg) 84%, color-mix(in srgb, var(--app-bg) 0%, transparent));
}

.echo-header > div {
  min-width: 0;
}

.echo-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.echo-header h2 {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: var(--top-title-size);
  line-height: 1;
  letter-spacing: 0;
}

.echo-feed,
.artifact-detail,
.wiki-preview {
  display: grid;
  gap: 10px;
  padding: 2px 20px 96px;
}

.artifact-card,
.artifact-hero,
.artifact-section {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 13px;
  box-shadow: var(--card-shadow);
}

.artifact-editorial-hero {
  gap: 12px;
  padding: 15px;
}

.artifact-hero-title {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.artifact-card {
  cursor: pointer;
}

.artifact-card.skeleton,
.artifact-card.error {
  cursor: default;
}

.artifact-card > span,
.artifact-card-top span,
.artifact-card-top em {
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
}

.artifact-card > span {
  color: var(--accent);
}

.artifact-card h3,
.artifact-hero h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
}

.artifact-hero-title p {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.artifact-card p,
.artifact-hero p,
.artifact-section p,
.artifact-section li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.artifact-overview {
  position: relative;
  max-height: 42px;
  overflow: hidden;
}

.artifact-overview:not(.expanded)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background: linear-gradient(color-mix(in srgb, var(--surface) 0%, transparent), var(--surface));
  content: "";
}

.artifact-overview.expanded {
  max-height: none;
}

.artifact-overview-toggle {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 840;
}

.artifact-card code {
  overflow-wrap: anywhere;
  color: var(--faint);
  font-size: 10px;
}

.artifact-card-top,
.artifact-price-row,
.artifact-actions,
.artifact-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.artifact-tile-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.artifact-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.artifact-logo.compact {
  width: 44px;
  height: 44px;
}

.artifact-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.artifact-metrics span,
.artifact-price-row span {
  display: grid;
  gap: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--faint);
  padding: 8px;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
}

.artifact-metrics strong,
.artifact-price-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}

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

.artifact-tags span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.artifact-echart {
  width: 100%;
  height: 224px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  overflow: visible;
}

.artifact-bento-grid {
  display: grid;
  gap: 10px;
}

.artifact-bento-tile,
.artifact-entity-brief,
.artifact-market-tape,
.artifact-evidence-tile {
  align-content: start;
}

.artifact-market-tape {
  gap: 11px;
}

.artifact-event-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.artifact-event-chip {
  display: grid;
  align-content: start;
  min-height: 86px;
  border-radius: 14px;
  background: rgba(255, 244, 238, 0.76);
  padding: 9px;
}

.artifact-event-chip span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.artifact-event-chip strong {
  margin-top: 5px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

.artifact-event-chip p {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.artifact-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.artifact-mini-meta span {
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.045);
  color: var(--faint);
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.chart-tooltip-event {
  max-width: 220px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(18, 18, 18, 0.08);
  white-space: normal;
}

.chart-tooltip-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 860;
  line-height: 1.2;
}

.chart-tooltip-title {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.chart-tooltip-why,
.chart-tooltip-source {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.chart-tooltip-source {
  color: var(--faint);
}

.artifact-graph-section {
  gap: 9px;
}

.artifact-graph-tabs {
  display: inline-flex;
  width: fit-content;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.04);
}

.artifact-graph-tabs button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 6px 9px;
}

.artifact-graph-tabs button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 6px 14px rgba(18, 18, 18, 0.08);
}

.artifact-graph {
  width: 100%;
  height: 214px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(223, 100, 38, 0.08), transparent 28%),
    rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 20, 20, 0.04);
  overflow: hidden;
}

.artifact-graph-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
}

.artifact-graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.artifact-graph-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f6eee8;
  border: 1px solid #ead7cb;
}

.artifact-graph-legend .node-type-company {
  background: var(--accent);
  border-color: var(--accent);
}

.artifact-graph-legend .node-type-concept {
  background: #fff2e8;
  border-color: #f0c8b4;
}

.artifact-graph-legend .node-type-theme {
  background: #eef2ff;
  border-color: #cfd8ff;
}

.artifact-section-title h3 {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
}

.artifact-section-title span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
}

.artifact-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 16px;
}

.artifact-markdown-list {
  display: grid;
  gap: 8px;
}

.artifact-callout {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.48);
  padding: 9px;
}

.artifact-callout > span {
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.42;
}

.artifact-callout p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.artifact-callout em,
.artifact-callout small {
  display: block;
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.2;
}

.artifact-callout em {
  margin-bottom: 4px;
  color: var(--accent);
}

.artifact-callout small {
  margin-top: 5px;
}

.artifact-callout strong {
  color: var(--ink);
  font-weight: 860;
}

.artifact-calendar-list {
  display: grid;
  gap: 6px;
}

.artifact-calendar-list div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 8px;
}

.artifact-calendar-list strong {
  color: var(--accent);
  font-size: 11px;
}

.artifact-calendar-list span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.3;
}

.artifact-source-list {
  display: grid;
  gap: 7px;
}

.artifact-source-list.compact {
  gap: 6px;
}

.artifact-source-list a {
  display: grid;
  gap: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  padding: 9px;
  text-decoration: none;
}

.artifact-source-list strong {
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

.artifact-source-list span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.28;
}

.artifact-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  padding: 8px;
}

.artifact-actions svg {
  width: 13px;
  height: 13px;
}

.wiki-document {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: var(--card-radius);
  background: var(--surface);
  padding: 15px;
  box-shadow: var(--card-shadow);
}

.wiki-document h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.wiki-document h4 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.wiki-document p,
.wiki-document li {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.wiki-document ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 16px;
}

.wiki-document strong {
  color: var(--ink);
  font-weight: 860;
}

.wiki-document a,
.wiki-link {
  color: var(--accent);
  font-weight: 780;
  text-decoration: none;
}

.profile-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 25px 16px;
}

.profile-header p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.profile-header h2 {
  color: var(--ink);
  font-family: var(--title-font);
  font-size: var(--top-title-size);
  line-height: 1;
  letter-spacing: 0;
}

.profile-feed {
  display: grid;
  gap: 12px;
  padding: 0 20px 102px;
}

.profile-bento-feed {
  grid-template-columns: 1fr;
}

.profile-card {
  display: grid;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.07);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 0 16px 34px rgba(28, 28, 28, 0.07);
}

.profile-tile {
  height: 310px;
  align-content: start;
}

.profile-tile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
}

.profile-tile-topline span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 920;
  line-height: 1;
}

.profile-tile-topline em {
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.045);
  color: var(--faint);
  padding: 5px 8px;
  font-size: 10px;
  font-style: normal;
  font-weight: 840;
  line-height: 1;
}

.profile-tile h3 {
  color: var(--ink);
  font-size: 23px;
  line-height: 1.04;
  letter-spacing: 0;
}

.profile-card.error code {
  overflow-wrap: anywhere;
  color: var(--faint);
  font-size: 10px;
}

.profile-identity {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.profile-avatar.xl {
  width: 74px;
  height: 74px;
  border-radius: 26px;
  font-size: 18px;
}

.identity-portrait {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.identity-portrait h3 {
  margin-bottom: 6px;
  font-size: 36px;
  line-height: 0.95;
}

.identity-portrait p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.25;
}

.identity-readme {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.profile-identity span,
.profile-readme span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.profile-identity h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.profile-identity p,
.profile-muted,
.community-lines p,
.evidence-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.profile-readme {
  display: grid;
  gap: 6px;
}

.profile-readme textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.profile-suggestions,
.profile-chip-row,
.co-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-suggestions.compact {
  max-height: 58px;
  overflow: hidden;
}

.profile-suggestions span,
.profile-chip-row span,
.co-participants span {
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.04);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

.profile-section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.profile-section-title div {
  display: grid;
  gap: 4px;
}

.profile-section-title em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.profile-section-title h3 {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
}

.profile-section-title span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
}

.contribution-mix-card {
  gap: 12px;
}

.contribution-mix-bar {
  display: flex;
  width: 100%;
  min-height: 88px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.05);
}

.contribution-mix-bar section {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 54px;
  border-right: 1px solid rgba(20, 20, 20, 0.12);
  color: #151515;
  padding: 12px 9px;
}

.contribution-mix-bar section:last-child {
  border-right: 0;
}

.contribution-mix-bar strong {
  font-size: 20px;
  font-weight: 920;
  line-height: 1;
}

.contribution-mix-bar span {
  font-size: 10px;
  font-weight: 760;
  line-height: 1.18;
}

.contribution-mix-list {
  display: grid;
  gap: 4px;
}

.contribution-mix-list section {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
  padding: 0;
}

.contribution-mix-list i {
  width: 10px;
  height: 10px;
  margin-top: 3px;
  border-radius: 50%;
}

.contribution-mix-list strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.15;
}

.contribution-mix-list p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.contribution-mix-card > .profile-muted {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.contribution-mix-list em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 880;
  line-height: 1.1;
  text-align: right;
}

.mix-source_signal {
  background: #d9f8a8;
}

.mix-market_read {
  background: #a8d3fb;
}

.mix-discussion_starter {
  background: #ead5ff;
}

.mix-context_or_source_support {
  background: #ffe5a8;
}

.mix-good_question {
  background: #ffc7d0;
}

.garden-calendar {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  padding: 10px;
}

.garden-months {
  display: grid;
  grid-template-columns: repeat(8, 14px);
  justify-content: space-between;
  min-height: 10px;
  padding: 0 1px;
}

.garden-months span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 820;
  line-height: 1;
}

.garden-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 14px;
  grid-template-rows: repeat(7, 14px);
  justify-content: space-between;
  gap: 4px;
  min-height: 122px;
  padding: 0 1px;
}

.garden-cell {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #ebedf0;
}

details.garden-cell {
  cursor: pointer;
}

.garden-cell summary {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: inherit;
  list-style: none;
}

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

.garden-cell.intensity-1 summary {
  background: #9be9a8;
}

.garden-cell.intensity-2 summary {
  background: #40c463;
}

.garden-cell.intensity-3 summary {
  background: #30a14e;
}

.garden-cell.intensity-4 summary {
  background: #216e39;
}

.garden-cell div {
  position: absolute;
  z-index: 20;
  left: -10px;
  bottom: 20px;
  display: none;
  width: 220px;
  border: 1px solid rgba(20, 20, 20, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px;
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.12);
}

.garden-cell[open] div,
.garden-cell:hover div {
  display: grid;
  gap: 6px;
}

.garden-cell div strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.2;
}

.garden-cell div p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.garden-scale {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.garden-scale span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 760;
}

.garden-scale i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #ebedf0;
}

.garden-scale .intensity-1 {
  background: #9be9a8;
}

.garden-scale .intensity-2 {
  background: #40c463;
}

.garden-scale .intensity-3 {
  background: #30a14e;
}

.garden-scale .intensity-4 {
  background: #216e39;
}

.garden-event-preview {
  display: grid;
  gap: 6px;
}

.contribution-garden-card .garden-event-preview {
  display: grid;
}

.garden-event-preview section {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 8px;
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px 8px;
}

.garden-event-preview span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 820;
}

.garden-event-preview strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
}

.garden-event-preview p {
  grid-column: 2;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.garden-kpi {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 9px;
  align-items: end;
}

.garden-kpi strong {
  color: var(--ink);
  font-size: 42px;
  font-weight: 940;
  line-height: 0.9;
}

.garden-kpi span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 860;
  line-height: 1;
}

.garden-kpi p {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.skill-path-list,
.evidence-list {
  display: grid;
  gap: 7px;
}

.skill-path,
.evidence-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 14px;
  background: #fafafa;
  padding: 9px;
}

.skill-path div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.skill-path strong,
.evidence-card strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.skill-path em,
.skill-path small,
.evidence-card span,
.co-participants strong {
  color: var(--faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 1.25;
}

.skill-path p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.skill-node-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.skill-node-row span {
  min-height: 26px;
  border: 1px solid rgba(20, 20, 20, 0.05);
  border-radius: 10px;
  background: rgba(18, 18, 18, 0.035);
  color: var(--faint);
  padding: 6px 5px;
  text-align: center;
  font-size: 9px;
  font-weight: 820;
  line-height: 1.15;
}

.skill-trajectory-card .skill-node-row {
  display: none;
}

.skill-trajectory-card .skill-path small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.skill-node-row span.done {
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.profile-metrics span {
  display: grid;
  gap: 2px;
  border-radius: 14px;
  border: 1px solid rgba(20, 20, 20, 0.05);
  background: #fafafa;
  color: var(--faint);
  padding: 9px;
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
}

.profile-metrics strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.community-lines,
.evidence-card div,
.topic-bars {
  display: grid;
  gap: 5px;
}

.community-lines p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.evidence-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.topic-bars {
  gap: 12px;
}

.topic-bars div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 24px;
  gap: 8px;
  align-items: center;
}

.topic-bars span,
.topic-bars strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.topic-bars em {
  height: 12px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.06);
  overflow: hidden;
}

.topic-bars i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.signal-discuss-panel {
  display: grid;
  gap: 8px;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.52);
  padding: 10px;
  animation: signalDiscussIn 180ms ease-out both;
}

.signal-discuss-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.signal-discuss-head strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 860;
}

.signal-discuss-head span {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 10px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-discuss-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.signal-discuss-options button {
  min-width: 0;
  border: 1px solid rgba(18, 18, 18, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  padding: 7px 5px;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: signalChannelIn 180ms ease-out both;
  animation-delay: var(--delay);
}

.signal-discuss-options button.active {
  border-color: color-mix(in srgb, var(--accent) 26%, transparent);
  background: var(--accent-soft);
  color: var(--accent);
}

@keyframes signalDiscussIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes signalChannelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(35, 35, 35, 0.05);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.chat-header,
.thread-header {
  position: sticky;
  top: 36px;
  z-index: 6;
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 13px 20px 14px;
  background: linear-gradient(var(--app-bg) 86%, color-mix(in srgb, var(--app-bg) 0%, transparent));
}

.chat-header {
  grid-template-columns: 36px minmax(0, 1fr) 36px;
}

.thread-header {
  grid-template-columns: 36px minmax(0, 1fr);
}

.chat-title-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.chat-channel-avatar {
  flex: 0 0 auto;
}

.chat-title-block h2,
.thread-header h2 {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--title-font);
  font-size: 21px;
  font-weight: var(--top-title-weight);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-title-block p,
.thread-header p {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-feed,
.thread-feed {
  display: grid;
  gap: 10px;
  padding: 2px 16px 96px;
}

.replay-panel {
  display: grid;
  gap: 8px;
  margin: 0 0 4px 43px;
}

.replay-banner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 76%, #fff), rgba(255, 255, 255, 0.86));
  padding: 10px 11px;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--card-shadow);
}

.replay-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--accent);
}

.replay-icon svg,
.thread-replay-chip svg {
  width: 15px;
  height: 15px;
}

.replay-banner strong,
.replay-banner em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.replay-banner strong {
  font-size: 13px;
  line-height: 1.2;
}

.replay-banner em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.replay-panel.expanded .replay-banner .chevron {
  transform: rotate(90deg);
}

.replay-stepper {
  display: grid;
  gap: 8px;
}

.replay-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.replay-progress span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 820;
}

.replay-progress div {
  display: flex;
  gap: 4px;
}

.replay-progress i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--faint) 34%, transparent);
}

.replay-progress i.active {
  width: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.replay-block {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  padding: 11px;
  box-shadow: var(--card-shadow);
}

.replay-block-heading {
  display: grid;
  gap: 4px;
}

.replay-block-heading span {
  width: fit-content;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 850;
}

.replay-block h3 {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.22;
}

.replay-block > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.turning-points {
  display: grid;
  gap: 6px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 36%, transparent);
  padding-left: 8px;
}

.turning-point {
  display: grid;
  gap: 2px;
}

.turning-point span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
}

.turning-point p {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.34;
}

.replay-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.replay-jump,
.replay-next {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 850;
}

.replay-next {
  background: var(--surface-solid);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.replay-jump {
  background: var(--accent);
  color: var(--accent-contrast);
}

.chat-card,
.thread-parent {
  border-radius: var(--card-radius);
}

.chat-card-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  width: 100%;
  min-height: 96px;
  gap: 10px;
  align-items: start;
  border: 0;
  background: transparent;
  padding: 8px 2px;
  text-align: left;
}

.chat-card.featured .chat-card-button {
  min-height: 140px;
}

.avatar-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent-soft) 72%, #fff);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
}

.avatar-badge.large {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 12px;
}

.avatar-badge.small {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 10px;
}

.message-stack,
.thread-message,
.reply-bubble {
  min-width: 0;
}

.message-stack {
  display: grid;
  gap: 6px;
}

.chat-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 3px;
}

.chat-card-meta strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-card-meta span {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.message-bubble,
.reply-bubble {
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.message-bubble {
  display: grid;
  gap: 8px;
  padding: 10px 11px 11px;
}

.message-bubble > p,
.reply-bubble > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
  overflow-wrap: anywhere;
}

.message-bubble > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.link-preview {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.46);
  padding: 8px 9px;
  font-family: var(--quote-font);
}

.link-preview span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 820;
}

.link-preview strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--quote-weight);
  line-height: 1.2;
}

.link-preview p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.thread-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.04);
  border-radius: 14px;
  background: var(--surface);
  padding: 7px 9px;
  box-shadow: var(--card-shadow);
}

.thread-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.thread-summary svg {
  width: 14px;
  height: 14px;
}

.participant-stack {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.participant-stack span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: -6px;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
}

.thread-parent {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 4px 0 8px;
}

.thread-replay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px 49px;
}

.thread-replay-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 72%, #fff);
  color: var(--accent);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
}

.thread-replay-row > span {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-item.is-highlighted .reply-bubble,
.thread-parent.is-highlighted .message-bubble {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  animation: reply-highlight 2.8s ease-out;
}

@keyframes reply-highlight {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 36%, transparent);
    transform: translateY(0);
  }
  18% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent), var(--card-shadow);
    transform: translateY(-1px);
  }
  100% {
    box-shadow: var(--card-shadow);
    transform: translateY(0);
  }
}

.reply-divider {
  margin: 2px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.reply-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.reply-bubble {
  padding: 9px 10px;
}

.reply-composer {
  position: sticky;
  bottom: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  min-height: 52px;
  margin: -78px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  padding: 8px 8px 8px 18px;
  box-shadow: 0 18px 44px rgba(35, 35, 35, 0.12);
  backdrop-filter: blur(20px);
}

.reply-composer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.reply-composer button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
}

.reply-composer svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .workspace {
    grid-template-columns: 1fr;
    width: min(100vw - 24px, 430px);
    gap: 14px;
    padding: 64px 0 20px;
    align-items: start;
  }

  .control-panel {
    order: 1;
    gap: 12px;
  }

  .phone-stage {
    order: 2;
  }

  .panel-header h1,
  .panel-copy {
    display: none;
  }

  .site-home-link {
    top: 12px;
    left: 12px;
    min-height: 32px;
    padding: 0 11px 0 9px;
    font-size: 12px;
  }

  .control-drawer {
    overflow: hidden;
  }

  .control-drawer:not([open]) .control-stack {
    display: none;
  }

  .control-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 14px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
  }

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

  .control-drawer summary span {
    font-size: 13px;
    font-weight: 820;
  }

  .control-drawer summary i {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 760;
  }

  .control-stack {
    gap: 12px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
    padding: 0 12px 12px;
    scrollbar-width: none;
  }

  .control-stack::-webkit-scrollbar {
    display: none;
  }

  .control-group legend {
    margin-bottom: 6px;
  }

  .choice {
    min-height: 34px;
  }

  .phone {
    width: min(414px, calc(100vw - 24px));
    height: min(868px, calc((100vw - 24px) * 2.096));
  }

  .reference-shot {
    display: none;
  }
}
