:root {
  color-scheme: light;
  --bg: #f4f4f4;
  --panel: #ffffff;
  --sidebar: #eeeeef;
  --ink: #1f1f22;
  --muted: #8d8d95;
  --soft: #f7f7f8;
  --line: #e5e5e8;
  --line-strong: #d4d4d8;
  --blue: #2d7df6;
  --blue-soft: #eaf3ff;
  --green: #0f766e;
  --purple: #9b5de5;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
textarea,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: clamp(248px, 24vw, 450px) minmax(0, 1fr);
  height: 100vh;
  padding: 14px 14px 14px 0;
}

.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 16px 14px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 0 8px;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: 0;
}

.logo-mark {
  font-size: 0;
}

.logo-mark::before {
  content: "∿";
  display: block;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  line-height: 0.5;
  transform: rotate(180deg);
}

.new-task-button,
.nav-item {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  gap: 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 16px;
  font-size: 22px;
  font-weight: 650;
  text-align: left;
}

.new-task-button {
  height: 58px;
  margin-bottom: 12px;
  background: transparent;
}

.new-task-button .lucide,
.nav-item .lucide {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.main-nav {
  display: grid;
  gap: 8px;
}

.nav-item:hover,
.recent-project:hover,
.new-task-button:hover {
  background: #e4e4e6;
}

.nav-item.is-active {
  background: #dedee1;
}

.recent-section {
  margin-top: 52px;
}

.sidebar-label {
  margin: 0 0 18px 14px;
  color: #9a9aa1;
  font-size: 18px;
  font-weight: 650;
}

.recent-projects {
  display: grid;
  gap: 8px;
}

.recent-project {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 0 16px;
  text-align: left;
}

.recent-project strong {
  overflow: hidden;
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-project .lucide {
  width: 21px;
  height: 21px;
}

.recent-project.is-active .lucide {
  color: var(--purple);
  fill: rgba(155, 93, 229, 0.18);
}

.sidebar-footer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px 8px 0;
}

.sidebar-footer .round-icon {
  display: none;
}

.user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #f97316;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.sidebar-footer strong,
.sidebar-footer span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-footer strong {
  font-size: 20px;
}

.sidebar-footer span {
  color: var(--muted);
  font-size: 13px;
}

.round-icon,
.circle-button,
.mic-button,
.send-button {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

.round-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
}

.chat-page {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
}

.chat-page.is-workspace {
  justify-content: flex-start;
}

.app-shell.is-home .chat-page {
  justify-content: center;
}

.chat-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
}

.app-shell.is-home .chat-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.project-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  padding: 6px 8px;
  font-size: 22px;
  font-weight: 750;
}

.project-switcher .lucide:first-child {
  width: 24px;
  height: 24px;
}

.project-switcher .lucide:last-child {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.auth-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 750;
}

.auth-button.is-signed-in {
  border-color: #bfe9dd;
  background: #ecfdf5;
  color: #047857;
}

.conversation {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 84px 56px 40px;
}

.app-shell.is-home .conversation {
  flex: 0 0 auto;
  overflow: visible;
  padding: 0 56px 214px;
}

.hero-block {
  text-align: center;
}

.hero-block p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-block h1 {
  margin: 0;
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 620;
  letter-spacing: 0;
}

.message-list {
  display: grid;
  width: min(860px, 100%);
  gap: 18px;
  margin: 42px auto 0;
}

.message {
  display: grid;
  gap: 10px;
}

.message.user {
  justify-items: end;
}

.bubble {
  max-width: min(760px, 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
  padding: 16px 18px;
  line-height: 1.6;
}

.message.user .bubble {
  background: #f4f8ff;
}

.message.assistant .bubble {
  border-color: transparent;
  box-shadow: none;
}

.message.is-pending .bubble {
  color: var(--muted);
}

.message.is-pending .message-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse 1s ease-in-out infinite;
  vertical-align: middle;
}

.message-text,
.assistant-answer {
  font-size: 16px;
  line-height: 1.72;
}

.assistant-answer strong {
  font-weight: 760;
}

.bubble pre {
  overflow: auto;
  border-radius: 14px;
  background: #111827;
  color: #d1fae5;
  padding: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.harness-panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfbfc;
  padding: 10px 12px;
}

.harness-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
  list-style: none;
}

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

.harness-panel summary span {
  color: var(--ink);
}

.harness-panel summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.harness-panel .message-meta {
  margin-top: 12px;
}

.harness-panel pre {
  max-height: 280px;
  margin: 12px 0 0;
}

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

.composer-wrap {
  position: absolute;
  right: 0;
  bottom: 108px;
  left: 0;
  z-index: 4;
  width: min(760px, calc(100% - 104px));
  margin: 0 auto;
}

.app-shell.is-thread .composer-wrap {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 0 0 auto;
  width: min(760px, calc(100% - 104px));
  margin: 0 auto 28px;
  transform: none;
}

.app-shell.is-home .composer-wrap {
  top: calc(50% + 92px);
  bottom: auto;
  transform: translateY(-50%);
  width: min(820px, calc(100% - 104px));
}

.composer-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.09);
  padding: 18px 18px 14px;
}

.app-shell.is-home .composer-card {
  border-radius: 24px;
  padding: 20px 20px 16px;
}

.composer-top {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.blue-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 13px;
}

#promptInput {
  width: 100%;
  min-height: 70px;
  max-height: 160px;
  resize: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.app-shell.is-home #promptInput {
  min-height: 86px;
  font-size: 19px;
}

#promptInput::placeholder {
  color: #b9b9bf;
}

.attachment-tray,
.selected-skill-tray,
.context-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 22px;
}

.attachment-tray:not(:empty),
.selected-skill-tray:not(:empty),
.context-tray:not(:empty) {
  margin-top: 10px;
}

.attachment-chip,
.skill-chip,
.context-chip,
.tiny-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 650;
}

.attachment-chip img,
.attachment-chip video {
  width: 30px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.attachment-chip button,
.skill-chip button {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.left-actions,
.right-actions,
.quick-modes {
  display: flex;
  align-items: center;
  gap: 10px;
}

.circle-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
}

.circle-button:hover,
.mic-button:hover,
.mode-select:hover,
.quick-modes button:hover {
  border-color: var(--line-strong);
  background: #f5f5f6;
}

.mode-select {
  display: inline-flex;
  height: 34px;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 650;
}

.mic-button,
.send-button {
  width: 38px;
  height: 38px;
}

.mic-button {
  background: transparent;
}

.send-button {
  background: #ededee;
  color: #ffffff;
}

.send-button.can-send {
  background: var(--ink);
}

.quick-modes {
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.app-shell.is-thread .quick-modes {
  display: none;
}

.app-shell.is-thread .composer-card {
  border-radius: 22px;
  padding: 18px 18px 14px;
}

.app-shell.is-thread #promptInput {
  min-height: 64px;
  max-height: 132px;
  font-size: 18px;
}

.quick-modes button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #6f6f76;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;
}

.quick-modes button.is-active {
  border-color: #cfdfff;
  background: var(--blue-soft);
  color: var(--blue);
}

.workspace-screen {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  padding: 34px 30px 30px;
}

.workspace-layout {
  display: grid;
  width: min(1320px, 100%);
  grid-template-columns: minmax(0, 1fr) clamp(280px, 25vw, 380px);
  gap: 24px;
  margin: 0 auto;
}

.workspace-main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 22px;
}

.workspace-hero span,
.workspace-rail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workspace-hero h1 {
  margin: 5px 0 8px;
  font-size: 34px;
  font-weight: 680;
  letter-spacing: 0;
}

.workspace-hero p,
.workspace-rail p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.project-page-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  min-height: 0;
}

.project-switch-list,
.skill-page-list,
.search-result-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
}

.project-switch-card,
.skill-page-card,
.search-result {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
}

.project-switch-card:hover,
.skill-page-card:hover,
.search-result:hover {
  border-color: var(--line-strong);
  background: #fafafa;
}

.project-switch-card.is-active,
.skill-page-card.is-active {
  border-color: #b9d2ff;
  background: #f7fbff;
}

.project-switch-card strong,
.project-switch-card small,
.skill-page-card strong,
.skill-page-card small,
.skill-page-card em,
.search-result strong,
.search-result small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-switch-card strong,
.skill-page-card strong,
.search-result strong {
  white-space: nowrap;
}

.project-switch-card small,
.skill-page-card small,
.search-result small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.skill-page-card em {
  margin-top: 5px;
  color: #686871;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.project-page-library {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
}

.skill-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-rail {
  position: sticky;
  top: 92px;
  display: grid;
  max-height: calc(100vh - 128px);
  align-content: start;
  gap: 14px;
  overflow: auto;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.workspace-rail section {
  display: grid;
  gap: 10px;
}

.workspace-rail h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}

.rail-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rail-file {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.rail-file strong,
.rail-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-file small {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
}

.skill-rail pre {
  min-height: 360px;
  max-height: calc(100vh - 340px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111827;
  color: #e5e7eb;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.workspace-search-box {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 18px;
}

.workspace-search-box input {
  height: 52px;
  border: 0;
  padding: 0;
  outline: none;
  font-size: 18px;
}

.agent-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
}

.agent-step {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
}

.agent-step strong {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
}

.agent-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-checklist span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 720;
}

.projects-workspace,
.skills-marketplace {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.skills-marketplace {
  padding: 12px min(4.8vw, 72px) 70px;
}

.boards-header,
.skills-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.outliers-page-header {
  align-items: center;
  margin-bottom: 58px;
}

.skills-header.outliers-page-header {
  align-items: end;
}

.page-title-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
}

.page-title-tabs.vertical-tabs {
  display: grid;
  gap: 44px;
}

.boards-header h1,
.skills-header h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 760;
  letter-spacing: 0;
}

.workspace-tabs {
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  background: #f2f2f3;
  padding: 3px;
}

.workspace-tabs button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  background: transparent;
  color: #6f6f76;
  padding: 0 22px;
  font-size: 21px;
  font-weight: 720;
}

.workspace-tabs button.icon-tab {
  width: 48px;
  justify-content: center;
  padding: 0;
}

.workspace-tabs .lucide {
  width: 24px;
  height: 24px;
}

.workspace-tabs button.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.07);
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 760;
}

.section-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.outline-create-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 24px;
  font-size: 20px;
  font-weight: 720;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.03);
}

.outline-create-button .lucide {
  width: 24px;
  height: 24px;
}

.ghost-chevron {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: #77787d;
}

.outliers-projects {
  padding: 12px min(4.6vw, 64px) 60px;
}

.ym-recent-strip {
  margin-bottom: 58px;
}

.ym-recent-strip .section-title-row {
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 38px;
}

.ym-recent-carousel {
  display: grid;
  max-width: 100%;
  grid-auto-columns: minmax(156px, 176px);
  grid-auto-flow: column;
  gap: 24px;
  overflow-x: auto;
  padding: 0 6px 8px 0;
  scrollbar-width: none;
}

.ym-recent-carousel::-webkit-scrollbar {
  display: none;
}

.ym-recent-card {
  display: grid;
  min-height: 230px;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px;
  text-align: left;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
}

.ym-recent-card:hover,
.ym-large-board-card:hover,
.ym-large-board-card.is-active {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.ym-recent-thumb {
  display: grid;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
}

.ym-recent-thumb img,
.ym-project-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ym-recent-thumb .lucide {
  width: 32px;
  height: 32px;
  color: rgba(31, 31, 34, 0.72);
}

.ym-recent-card strong {
  min-height: 52px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.25;
}

.ym-recent-card span {
  overflow: hidden;
  color: #76777d;
  font-size: 15px;
  line-height: 1.35;
}

.tone-image,
.tone-a {
  background: linear-gradient(135deg, #dff4f4, #f6fbff);
}

.tone-video,
.tone-b {
  background: linear-gradient(135deg, #e7edf5, #dbeafe);
}

.tone-pdf,
.tone-c {
  background: linear-gradient(135deg, #f7eadf, #f6f1e8);
}

.tone-doc,
.tone-script,
.tone-d {
  background: linear-gradient(135deg, #f6f7fb, #eef2f7);
}

.tone-e {
  background: linear-gradient(135deg, #fff7ed, #eef2ff);
}

.ym-board-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.ym-view-tools {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ym-view-tools button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: transparent;
  color: #77787d;
}

.ym-view-tools button.is-active {
  background: #e2e3e5;
  color: var(--ink);
}

.ym-view-tools span {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.ym-board-grid {
  display: grid;
  width: min(920px, 100%);
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 28px;
}

.ym-board-grid.is-list {
  grid-template-columns: minmax(280px, 760px);
}

.ym-board-grid.is-list .ym-large-board-card {
  min-height: 154px;
}

.ym-board-grid.is-list .ym-large-board-hit {
  min-height: 154px;
  grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  padding: 28px 76px 28px 28px;
}

.ym-large-board-card {
  position: relative;
  display: grid;
  min-height: 360px;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: #f3f3f4;
  color: var(--ink);
  text-align: left;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}

.ym-large-board-hit {
  display: grid;
  width: 100%;
  min-height: inherit;
  align-content: start;
  gap: 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  padding: 38px 34px 28px;
  text-align: left;
}

.ym-large-board-hit > .lucide {
  width: 32px;
  height: 32px;
  margin-bottom: 36px;
  color: #202124;
  fill: rgba(155, 93, 229, 0.12);
}

.ym-large-board-hit strong {
  font-size: 25px;
  line-height: 1.25;
}

.ym-large-board-hit > span {
  color: #9a9aa1;
  font-size: 19px;
  font-weight: 650;
}

.ym-large-board-hit > small {
  color: #77787d;
  font-size: 14px;
  font-weight: 680;
}

.project-delete-button,
.danger-icon {
  color: #b42318;
}

.project-delete-button {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(180, 35, 24, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  opacity: 0.78;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transform: translateY(0);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    background 0.16s ease;
}

.ym-large-board-card:hover .project-delete-button,
.project-delete-button:focus-visible {
  opacity: 1;
}

.project-delete-button:hover,
.danger-icon:hover {
  background: #fff1f0;
}

.ym-project-collage {
  position: relative;
  display: flex;
  min-height: 120px;
  align-items: end;
  margin: 24px 0 6px;
}

.ym-project-collage span {
  display: grid;
  width: 128px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.08);
}

.ym-project-collage span + span {
  margin-left: -34px;
}

.ym-project-collage span:nth-child(2) {
  transform: translateY(8px);
}

.ym-project-collage span:nth-child(3) {
  transform: translateY(16px);
}

.ym-project-collage .lucide {
  width: 32px;
  height: 32px;
}

.ym-project-collage small {
  align-self: end;
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  padding: 6px;
  font-size: 11px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ym-project-collage.is-empty {
  min-height: 112px;
  align-items: stretch;
}

.ym-project-collage.is-empty span {
  width: 100%;
  height: 112px;
  gap: 8px;
  color: #77787d;
  font-size: 16px;
  font-weight: 720;
}

.board-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.board-card {
  display: grid;
  min-height: 162px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.board-card:hover,
.board-card.is-active {
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
}

.board-card-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 14px;
}

.board-card-cover span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.68);
  color: #5b6472;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 720;
}

.board-card-body {
  display: grid;
  gap: 4px;
  padding: 12px 14px 14px;
}

.board-card-body strong,
.board-card-body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-body small {
  color: var(--muted);
  font-size: 12px;
}

.board-detail-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  min-height: min(620px, calc(100vh - 300px));
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.board-detail-shell.is-outliers-detail {
  height: calc(100vh - 118px);
  min-height: 0;
  grid-template-columns: 248px minmax(0, 1fr);
  border-top: 0;
  padding-top: 0;
}

.board-local-sidebar,
.board-context-rail,
.skill-preview-panel {
  min-height: 0;
  overflow: auto;
}

.board-local-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  border-right: 1px solid var(--line);
  padding-right: 14px;
}

.board-project-button,
.board-project-title {
  display: grid;
  width: 100%;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.board-project-title {
  grid-template-columns: 22px minmax(0, 1fr) 34px;
  padding: 8px;
}

.board-project-title input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 4px 0;
  outline: none;
  font-size: 18px;
  font-weight: 760;
}

.board-project-title input:focus {
  border-radius: 8px;
  background: #f2f2f3;
  padding-right: 8px;
  padding-left: 8px;
}

.board-project-title .round-icon {
  width: 32px;
  height: 32px;
}

.board-project-button strong,
.board-project-title input {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-local-tabs {
  display: flex;
  gap: 8px;
}

.board-local-tabs button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: transparent;
  color: #6f6f76;
  padding: 0 10px;
  font-weight: 720;
}

.board-local-tabs button.is-active {
  background: #e9e9eb;
  color: var(--ink);
}

.board-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.board-file-filter,
.board-folder-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 780;
  text-align: left;
}

.board-file-filter {
  padding: 0;
}

.board-folder {
  display: grid;
  gap: 3px;
}

.board-folder-title {
  width: 100%;
  justify-content: flex-start;
  padding: 8px 9px 5px;
}

.board-folder-title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-folder-title small {
  margin-left: auto;
  color: #9ca3af;
  font-size: 11px;
}

.board-folder-files {
  display: grid;
  gap: 3px;
}

.board-file-tree {
  display: grid;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.board-file-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 2px;
}

.board-file-row,
.board-empty-upload {
  display: grid;
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.board-file-row:hover,
.board-file-row.is-active,
.board-empty-upload:hover {
  background: #eeeeef;
}

.board-file-row strong,
.board-file-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-file-row small {
  color: var(--muted);
  font-size: 11px;
}

.board-file-delete {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #b42318;
  opacity: 0.72;
}

.board-file-delete:hover,
.board-file-delete:focus-visible,
.file-action.danger-action:hover,
.file-canvas-toolbar [data-delete-project-file]:hover {
  background: #fff1f0;
  color: #b42318;
  opacity: 1;
}

.board-main-canvas {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  background: #19a9a2;
  overscroll-behavior: contain;
}

.board-main-canvas.is-dragging {
  outline: 3px solid rgba(255, 255, 255, 0.82);
  outline-offset: -10px;
}

.file-canvas-toolbar {
  position: sticky;
  top: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  border-radius: 999px;
  background: rgba(217, 251, 253, 0.78);
  padding: 6px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

.file-canvas-toolbar.left {
  left: 20px;
  float: left;
  margin-left: 20px;
}

.file-canvas-toolbar.right {
  float: right;
  right: 20px;
  margin-right: 20px;
}

.file-canvas-toolbar button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
}

.file-canvas-toolbar button:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

.project-chat-canvas {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  gap: 72px;
  background: #ffffff;
  padding: 32px;
}

.project-mini-composer {
  display: grid;
  width: min(680px, 100%);
  min-height: 114px;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
  padding: 18px;
}

.project-mini-composer strong {
  color: #b9b9bf;
  font-size: 18px;
  font-weight: 600;
}

.project-mini-composer > div {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.task-canvas {
  display: grid;
  width: min(920px, 100%);
  min-height: calc(100% - 42px);
  align-content: start;
  gap: 24px;
  margin: 22px auto;
  border-radius: 34px;
  background: #ffffff;
  padding: 44px 48px;
}

.task-canvas-head {
  display: grid;
  gap: 10px;
}

.task-canvas-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.task-canvas-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.task-thread {
  display: grid;
  gap: 20px;
}

.task-thread .message-list,
.task-thread .message {
  margin: 0;
}

.task-thread .bubble {
  box-shadow: none;
}

.task-canvas-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.board-empty-canvas {
  display: grid;
  min-height: 460px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
}

.board-empty-canvas h2 {
  margin: 0;
  font-size: 28px;
}

.board-empty-canvas p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.file-canvas {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  min-height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  background:
    radial-gradient(circle at 0 42%, rgba(255, 255, 255, 0.35) 0 12%, transparent 12% 100%),
    radial-gradient(circle at 100% 92%, rgba(255, 255, 255, 0.34) 0 16%, transparent 16% 100%),
    #19a9a2;
  padding: 54px min(8vw, 88px);
}

.file-canvas.tone-paper {
  background:
    radial-gradient(circle at 0 42%, rgba(255, 255, 255, 0.45) 0 12%, transparent 12% 100%),
    radial-gradient(circle at 100% 92%, rgba(255, 255, 255, 0.38) 0 16%, transparent 16% 100%),
    #d7e7e0;
}

.file-canvas header {
  display: grid;
  min-width: 0;
  gap: 10px;
  border-radius: 30px 30px 0 0;
  background: #ffffff;
  padding: 54px min(6vw, 76px) 0;
}

.file-canvas header span,
.board-context-rail span,
.skill-preview-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.file-canvas h2 {
  max-width: 760px;
  margin: 0;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

.file-canvas-body {
  overflow: auto;
  min-width: 0;
  border: 0;
  border-radius: 0 0 30px 30px;
  background: #ffffff;
  padding: 24px min(6vw, 76px) 64px;
  overflow-wrap: break-word;
  overscroll-behavior: contain;
}

.file-canvas-body pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.75;
}

.file-canvas-body.is-large-text pre {
  font-size: 16px;
  line-height: 1.85;
}

.office-document-preview {
  width: min(780px, 100%);
  margin: 0 auto;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.76;
}

.office-document-preview > *:first-child {
  margin-top: 0;
}

.office-document-preview h1,
.office-document-preview h2,
.office-document-preview h3 {
  margin: 1.4em 0 0.55em;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.18;
}

.office-document-preview h1 {
  font-size: 34px;
}

.office-document-preview h2 {
  font-size: 27px;
}

.office-document-preview h3 {
  font-size: 22px;
}

.office-document-preview p,
.office-document-preview li {
  margin: 0 0 0.9em;
}

.office-document-preview ul,
.office-document-preview ol {
  margin: 0 0 1.1em 1.35em;
  padding: 0;
}

.office-document-preview table {
  display: block;
  max-width: 100%;
  margin: 18px 0;
  overflow: auto;
  border-collapse: collapse;
}

.office-document-preview th,
.office-document-preview td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
}

.office-document-preview img {
  max-width: 100%;
  height: auto;
}

.office-empty-line {
  color: var(--muted);
}

.document-frame {
  width: 100%;
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.document-preview-card {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 20px;
}

.document-preview-card > .lucide {
  color: var(--blue);
}

.document-preview-card.preview-placeholder {
  min-height: 300px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.document-preview-card.preview-placeholder.is-error {
  background: #fff7f5;
}

.document-preview-card.preview-placeholder.is-error > .lucide {
  color: #b42318;
}

.document-preview-card h3,
.document-preview-card p {
  margin: 0;
}

.document-preview-card p {
  color: var(--muted);
  line-height: 1.65;
}

.file-canvas-body img,
.file-canvas-body video {
  display: block;
  max-width: 100%;
  max-height: 72vh;
  margin-bottom: 34px;
  border-radius: 14px;
  object-fit: contain;
}

.board-context-rail,
.skill-preview-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.board-context-rail section,
.skill-preview-panel section {
  display: grid;
  gap: 10px;
}

.board-context-rail h2,
.skill-preview-panel h2 {
  margin: 0;
  font-size: 20px;
}

.board-context-rail p,
.skill-preview-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.skills-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
}

.skills-main {
  display: grid;
  align-content: start;
  gap: 34px;
  min-width: 0;
}

.skill-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.recommended-skill-grid {
  display: grid;
  width: min(1040px, 100%);
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 72px 38px;
  padding-top: 28px;
}

.recommended-skill-card {
  position: relative;
  display: grid;
  min-height: 332px;
  align-content: space-between;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ed, #eef2ff);
  padding: 40px 36px;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.06);
  isolation: isolate;
}

.recommended-skill-card::before,
.recommended-skill-card::after {
  content: "";
  position: absolute;
  right: 28px;
  left: 28px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: center bottom;
  z-index: -1;
}

.recommended-skill-card::before {
  top: -30px;
  transform: rotate(-3deg);
}

.recommended-skill-card::after {
  top: -18px;
  transform: rotate(3deg);
}

.recommended-skill-card > div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.recommended-skill-card > div .lucide {
  width: 30px;
  height: 30px;
  color: #26262a;
}

.recommended-skill-card.tone-2 {
  background: linear-gradient(135deg, #ecfdf5, #fff1f2 58%, #eef2ff);
}

.recommended-skill-card.tone-3 {
  background: linear-gradient(135deg, #f7eadf, #f6fbff);
}

.recommended-skill-card.tone-4 {
  background: linear-gradient(135deg, #fff7d6, #eef6ff);
}

.recommended-skill-card h3,
.creator-banner h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 760;
  line-height: 1.15;
}

.recommended-skill-card p,
.creator-banner p {
  margin: 0;
  color: #5f6570;
  font-size: 21px;
  line-height: 1.55;
}

.recommended-skill-card footer {
  display: flex;
  align-items: center;
  min-height: 34px;
}

.recommended-skill-card footer span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 780;
}

.recommended-skill-card footer span:nth-child(2) {
  margin-left: -7px;
  background: #2d7df6;
}

.recommended-skill-card footer span:nth-child(3) {
  margin-left: -7px;
  background: #9b5de5;
}

.recommended-skill-card footer strong {
  margin-left: 10px;
  color: #7c7c84;
  font-size: 20px;
}

.creator-banner {
  display: flex;
  min-height: 128px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 18px;
  background: #f0f1ef;
  padding: 20px;
}

.skill-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-category-row button {
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: #6f6f76;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 720;
}

.skill-category-row button.is-active {
  background: #eeeeef;
  color: var(--ink);
}

.skill-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.skill-list-toolbar label {
  display: grid;
  width: min(260px, 100%);
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #f5f5f6;
  padding: 0 12px;
}

.skill-list-toolbar input {
  height: 34px;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  font-size: 13px;
}

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

.skill-market-card {
  display: grid;
  min-height: 170px;
  align-content: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.skill-market-card:hover,
.skill-market-card.is-active {
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.skill-thumb {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a, #64748b);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.skill-market-card strong,
.skill-market-card small,
.skill-market-card p,
.skill-market-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-market-card strong {
  white-space: nowrap;
}

.skill-market-card small,
.skill-market-card em {
  color: var(--muted);
  font-size: 12px;
}

.skill-market-card p {
  display: -webkit-box;
  margin: 2px 0 0;
  color: #666b75;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.skill-preview-panel pre {
  min-height: 420px;
  max-height: calc(100vh - 320px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

.skill-popover,
.mode-popover {
  position: absolute;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
  padding: 10px;
}

.skill-popover {
  bottom: 76px;
  left: 72px;
  width: min(360px, calc(100vw - 40px));
}

.mode-popover {
  right: 72px;
  bottom: 72px;
  display: grid;
  gap: 4px;
  width: 172px;
}

.mode-popover[hidden],
.skill-popover[hidden] {
  display: none;
}

.popover-title {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-options,
.dialog-list {
  display: grid;
  gap: 8px;
}

.skill-option,
.mode-popover button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.mode-popover button {
  display: flex;
}

.skill-option:hover,
.mode-popover button:hover {
  background: var(--soft);
}

.skill-option strong,
.skill-option span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-option span {
  color: var(--muted);
  font-size: 12px;
}

.dark-button {
  border-radius: 999px;
  background: #171719;
  color: #ffffff;
  padding: 10px 22px;
  font-weight: 750;
}

#saveSkillButton:not(.can-save) {
  opacity: 0.58;
}

dialog {
  width: min(1080px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  outline: 0;
  padding: 0;
  overscroll-behavior: contain;
}

#authDialog {
  width: min(420px, calc(100vw - 32px));
}

#taskProjectDialog {
  width: min(520px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 28px));
  overflow: hidden;
}

#projectDialog {
  width: min(1180px, calc(100vw - 32px));
}

.auth-dialog {
  display: grid;
  gap: 16px;
}

.task-project-dialog p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.task-project-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

#taskProjectDialog .task-project-dialog {
  width: 100%;
  max-height: min(520px, calc(100vh - 28px));
  gap: 18px;
  overflow: hidden;
  padding: 28px;
}

#taskProjectDialog .dialog-body header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: start;
  gap: 16px;
}

#taskProjectDialog .dialog-body header > div,
#taskProjectDialog label {
  min-width: 0;
}

#taskProjectDialog .dialog-body h2 {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12;
}

#taskProjectDialog select {
  min-height: 52px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 760;
}

#taskProjectDialog .task-project-actions .file-action,
#taskProjectDialog .task-project-actions .dark-button {
  min-height: 50px;
  white-space: nowrap;
}

#taskProjectDialog .task-project-actions .dark-button {
  flex: 1 1 210px;
  min-width: min(100%, 210px);
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.28);
}

.dialog-body {
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
  overscroll-behavior: contain;
}

.dialog-body header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-body header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dialog-body h2 {
  margin: 4px 0 0;
}

.dialog-grid {
  display: grid;
  min-height: 0;
  max-height: calc(100vh - 150px);
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  overflow: auto;
}

.dialog-grid section,
.small-dialog,
.project-settings-panel {
  display: grid;
  gap: 12px;
  min-height: 0;
  align-content: start;
  overflow: auto;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select,
.dialog-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
}

.dialog-body textarea {
  min-height: 140px;
  resize: vertical;
}

.skill-upload-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fbfbfc;
  color: var(--ink);
  padding: 14px;
  cursor: pointer;
}

.project-upload-box {
  display: grid;
  width: 100%;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: #fbfbfc;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.skill-upload-box:hover {
  border-color: #b9c8ff;
  background: #f6f8ff;
}

.project-upload-box:hover {
  border-color: #b9c8ff;
  background: #f6f8ff;
}

.skill-upload-box input {
  display: none;
}

.skill-upload-box span,
.skill-upload-box small,
.project-upload-box span,
.project-upload-box small {
  display: block;
}

.skill-upload-box small,
.project-upload-box small,
.upload-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.upload-status:empty {
  display: none;
}

.upload-status {
  display: grid;
  gap: 7px;
}

.upload-progress {
  width: min(360px, 100%);
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9ee;
}

.upload-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1f7aff;
  transition: width 0.18s ease;
}

.skill-viewer {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(190px, 248px) minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  overflow: hidden;
}

.dialog-list {
  min-height: 0;
  overflow: auto;
  align-content: start;
  grid-auto-rows: max-content;
  padding-right: 2px;
}

.skill-card,
.policy-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  padding: 12px;
}

.skill-card {
  width: 100%;
  text-align: left;
}

.skill-card.is-active {
  border-color: #a9c7ff;
  background: var(--blue-soft);
}

.skill-card strong,
.skill-card span,
.skill-card p {
  display: block;
  margin: 0;
}

.skill-card span,
.skill-card p,
.policy-preview {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.skill-preview {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

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

.skill-preview header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.skill-preview h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.skill-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-preview-meta span {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 700;
}

.skill-preview pre {
  min-height: 0;
  overflow: auto;
  border-radius: 12px;
  background: #111827;
  color: #e5e7eb;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
}

.use-skill-button,
.file-action,
.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.use-skill-button,
.file-action {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.use-skill-button:hover,
.file-action:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

.file-action.is-active {
  border-color: #bfe9dd;
  background: #ecfdf5;
  color: #047857;
}

.file-action.danger-action,
.use-skill-button.danger-action {
  color: #b42318;
}

.compact-button {
  min-height: 38px;
  padding: 8px 14px;
  white-space: nowrap;
}

.project-dialog-grid {
  display: grid;
  min-height: 0;
  max-height: calc(100vh - 150px);
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.42fr);
  gap: 20px;
  overflow: auto;
}

.project-library-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  overflow: auto;
}

.project-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.project-library-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-library-head h3 {
  margin: 3px 0 0;
  font-size: 20px;
}

.project-file-library {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.project-file-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.project-file-list {
  display: grid;
  gap: 10px;
}

.project-file-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px;
}

.project-file-card.is-selected {
  border-color: #b9d2ff;
  background: #f7fbff;
}

.project-file-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.project-file-main > .lucide {
  color: var(--blue);
}

.project-file-main strong,
.project-file-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-file-main span,
.project-file-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.project-file-card p {
  margin: 0;
}

.project-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-empty {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfbfc;
  padding: 18px;
}

.empty-preview {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-preview code {
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  padding: 2px 5px;
}

.small-dialog {
  width: min(520px, calc(100vw - 32px));
}

.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .outliers-page-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 38px;
  }

  .skills-header.outliers-page-header {
    align-items: flex-start;
  }

  .page-title-tabs {
    display: grid;
    gap: 14px;
  }

  .page-title-tabs.vertical-tabs {
    gap: 18px;
  }

  .boards-header h1,
  .skills-header h1 {
    font-size: 34px;
  }

  .workspace-tabs button {
    min-height: 42px;
    padding: 0 16px;
    font-size: 17px;
  }

  .workspace-tabs button.icon-tab {
    width: 42px;
  }

  .composer-wrap,
  .app-shell.is-home .composer-wrap {
    width: min(880px, calc(100% - 54px));
  }

  .conversation {
    padding-right: 32px;
    padding-left: 32px;
  }

  .workspace-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-card-grid,
  .recommended-skill-grid,
  .skill-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outliers-projects,
  .skills-marketplace {
    padding-right: 12px;
    padding-left: 12px;
  }

  .board-detail-shell,
  .skills-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-detail-shell.is-outliers-detail {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .board-local-sidebar,
  .board-context-rail,
  .skill-preview-panel {
    border-right: 0;
    border-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .workspace-rail {
    position: static;
    max-height: none;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .agent-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .recommended-skill-grid,
  .ym-board-grid {
    grid-template-columns: 1fr;
  }

  .recommended-skill-card h3 {
    font-size: 30px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 178px minmax(0, 1fr);
    height: 100vh;
    min-height: 0;
    padding: 8px 8px 8px 0;
  }

  .sidebar {
    padding: 12px 8px;
  }

  .chat-page {
    min-height: 0;
    border-radius: 18px;
  }

  .composer-wrap,
  .app-shell.is-home .composer-wrap {
    width: calc(100% - 18px);
  }

  .app-shell.is-thread .composer-wrap {
    width: calc(100% - 18px);
    margin-bottom: 14px;
  }

  .logo-row {
    margin-bottom: 18px;
    font-size: 18px;
  }

  .logo-mark::before {
    font-size: 34px;
  }

  .new-task-button,
  .nav-item {
    height: 42px;
    gap: 9px;
    padding: 0 9px;
    font-size: 14px;
  }

  .new-task-button {
    height: 48px;
  }

  .recent-section {
    margin-top: 34px;
  }

  .recent-project {
    gap: 8px;
    padding: 0 8px;
  }

  .recent-project strong {
    font-size: 13px;
  }

  .sidebar-footer {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .sidebar-footer .round-icon {
    display: none;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .sidebar-footer strong {
    font-size: 13px;
  }

  .chat-header {
    padding: 16px 18px;
  }

  .project-switcher {
    font-size: 18px;
  }

  .conversation {
    padding: 54px 14px 24px;
  }

  .app-shell.is-home .conversation {
    padding: 0 14px 250px;
  }

  .app-shell.is-home .composer-wrap {
    top: calc(50% + 96px);
  }

  .hero-block h1 {
    font-size: 30px;
  }

  #promptInput {
    min-height: 86px;
    font-size: 16px;
  }

  .quick-modes button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .dialog-grid {
    grid-template-columns: 1fr;
  }

  #taskProjectDialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  #taskProjectDialog .task-project-dialog {
    max-height: calc(100vh - 18px);
    padding: 22px;
  }

  #taskProjectDialog .task-project-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #taskProjectDialog .task-project-actions .file-action,
  #taskProjectDialog .task-project-actions .dark-button {
    width: 100%;
    justify-content: center;
  }

  .skill-viewer {
    grid-template-columns: 1fr;
  }

  .project-dialog-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .project-library-panel {
    min-height: 420px;
  }

  .workspace-screen {
    padding: 24px 14px 18px;
  }

  .workspace-hero h1 {
    font-size: 26px;
  }

  .project-page-grid {
    grid-template-columns: 1fr;
  }

  .boards-header,
  .skills-header,
  .creator-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .page-title-tabs,
  .page-title-tabs.vertical-tabs {
    display: grid;
    gap: 16px;
  }

  .workspace-tabs button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 15px;
  }

  .workspace-tabs button.icon-tab {
    width: 38px;
  }

  .boards-header h1,
  .skills-header h1 {
    font-size: 30px;
  }

  .skill-header-actions,
  .skill-list-toolbar {
    justify-content: flex-start;
  }

  .board-card-grid,
  .recommended-skill-grid,
  .skill-market-grid {
    grid-template-columns: 1fr;
  }

  .ym-board-grid {
    grid-template-columns: 1fr;
  }

  .recommended-skill-card {
    min-height: 250px;
    padding: 28px 24px;
  }

  .recommended-skill-card h3 {
    font-size: 26px;
  }

  .recommended-skill-card p {
    font-size: 16px;
  }

  .board-detail-shell {
    min-height: 0;
  }

  .board-detail-shell.is-outliers-detail {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .project-chat-canvas {
    min-height: 480px;
    gap: 28px;
    padding: 24px 12px;
  }

  .project-mini-composer {
    min-height: 104px;
  }

  .agent-flow {
    grid-template-columns: 1fr;
  }

  .workspace-search-box input {
    font-size: 15px;
  }
}
