/* Lucide: a single stroke family, with sizes driven by each UI context. */
:root{--icon-size:22px;--icon-stroke:1}
.icon.lucide{display:inline-block;width:var(--icon-size);height:var(--icon-size);flex-shrink:0;vertical-align:middle;stroke-width:var(--icon-stroke)!important;stroke:currentColor!important;fill:none!important;pointer-events:none}
.icon-button .lucide{width:22px;height:22px}
.screen > header .icon.lucide,
.muse-person .muse-bell .icon.lucide,
.icon.lucide-ellipsis {
  --icon-stroke: 1.5;
}
.nav-item .lucide{width:25px;height:25px;color:#858585}
.nav-item.active .lucide{color:#242424}
.avatar .lucide,.nav-avatar .lucide{stroke:currentColor!important;fill:none!important;opacity:1}
.avatar.large .lucide{width:38px;height:38px}
.avatar.small .lucide{width:16px;height:16px}
.clap .lucide{width:18px;height:18px}
.ai-star{display:inline-flex;align-items:center;justify-content:center}
.ai-star .lucide{width:16px;height:16px}
.menu-option>.lucide,.menu-row>.lucide{width:19px;height:19px}
.menu-check .lucide,.schedule-menu .lucide,.skill-menu-check .lucide{width:16px;height:16px}
.schedule-control .lucide,.schedule-row .lucide{width:16px;height:16px}
.schedule-menu [role=menuitemradio]{display:flex;align-items:center;justify-content:space-between}
.requirements-model-picker .lucide{width:14px;height:14px}
.requirements-skills-trigger .lucide{width:17px;height:17px}
.requirement-skill-chip button{display:inline-flex;align-items:center;justify-content:center;min-width:16px;min-height:16px}
.requirement-skill-chip button .lucide{width:12px;height:12px}
.outline-actions button,.outline-add,.skill-row-actions button,.skill-management-heading .black-pill,.outline-empty button{display:inline-flex;align-items:center;gap:5px}
.outline-actions .lucide,.outline-add .lucide,.skill-row-actions .lucide,.skill-management-heading .lucide,.outline-empty .lucide{width:14px;height:14px}
.planner-compose button{display:flex;align-items:center;justify-content:center}
.planner-compose button .lucide{width:19px;height:19px}
.planner-avatar .lucide{width:23px;height:23px}
.requirements-sheet-collapse .lucide{width:22px;height:22px}
.requirements-expand{display:inline-flex;align-items:center;gap:4px}
.requirements-expand .lucide{width:13px;height:13px}
.requirements-expand[hidden]{display:none!important}

.outline-lock{display:inline-flex;align-items:center;gap:4px}.outline-lock .lucide{width:12px;height:12px}.requirements-sheet-delete{display:inline-flex;align-items:center;gap:5px}.requirements-sheet-delete .lucide{width:15px;height:15px}

.topic-subscribe-button{display:inline-flex;align-items:center;justify-content:center;gap:5px}.topic-subscribe-button .lucide{width:15px;height:15px}

/* circle-plus supplies its own outline; avoid a second enclosing ring. */
.requirements-skills-trigger{border:0;background:transparent}
.requirements-skills-trigger .lucide{width:22px;height:22px}

.plan-adopt button{display:inline-flex;align-items:center;justify-content:center;gap:7px}.plan-adopt button .lucide{width:17px;height:17px}

.skill-type-tabs{display:flex;gap:12px;padding:16px}.skill-type-tabs [role="tab"]{min-width:88px;padding:10px 24px;border-radius:999px;color:#737373;background:transparent;font-weight:500}.skill-type-tabs [role="tab"][aria-selected="true"]{color:#4338ca;background:#e0e7ff;font-weight:650}.skill-type-tabs [role="tab"]:focus-visible{outline:2px solid #6366f1;outline-offset:3px}

.skill-type-tabs{gap:8px;padding:8px 16px}.skill-type-tabs [role="tab"]{padding:8px 22px}.skill-type-tabs [role="tab"][aria-selected="true"]{color:#111;background:#fff}.skill-card-screen .skill-type-tabs+ .skill-management{padding-top:8px}
.skill-card-screen .skill-type-tabs{padding:8px 16px}.skill-card-screen .skill-type-tabs [role="tab"][aria-selected="true"]{font-weight:500}.skill-card-screen .skill-type-tabs+.skill-management{padding-top:0;margin-top:0}.skill-card-screen .skill-type-tabs+.skill-management .skill-management-list{margin-top:0}
.screen.gallery-detail-screen,.screen.gallery-detail-screen>.backbar{background:#f2f2f2}
.screen.skill-card-screen:has(>.skill-tab-content){display:flex;flex-direction:column}
.screen.skill-card-screen:has(>.skill-tab-content)>.backbar{flex-shrink:0}
.skill-card-screen>.skill-type-tabs{box-sizing:border-box;width:100%;max-width:660px;margin:0 auto;gap:6px;padding:5px 16px 8px;flex-shrink:0}
.skill-card-screen>.skill-type-tabs [role=tab]{min-width:0;padding:6px 15px;font-size:14px;line-height:20px}
.skill-card-screen>.skill-tab-content{width:100%;flex:1 0 auto}
.skill-card-screen>.skill-tab-content>.skill-management{padding-top:0;margin-top:0}
.skill-card-screen>.skill-tab-content .skill-management-list{margin-top:0}
.chart-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 10px;max-width:660px;margin:auto;padding:0 16px 20px}
.chart-gallery-item{min-width:0;overflow:hidden;border-radius:7px;background:white;text-align:left}
.chart-gallery-item img{display:block;width:100%;aspect-ratio:1.45;object-fit:cover}
.chart-gallery-item .chart-table-thumbnail { object-fit: contain; padding: 8px; background: #efefef; }
.chart-gallery-item img[src="/gallery-mermaid.svg"] { object-fit: contain; padding: 8px; }
.chart-gallery-item strong,.chart-gallery-item span{display:block;padding-inline:10px}
.chart-gallery-item strong{padding-top:8px;line-height:1.35;font-weight:400}
.chart-gallery-item span{padding-top:4px;padding-bottom:10px}
.gallery-detail{max-width:660px;margin:auto;padding:34px 18px 30px;color:#101010}
.gallery-hero{display:flex;align-items:flex-start;gap:9px}
.gallery-symbol{width:66px;height:66px;flex:0 0 66px;display:grid;place-items:center;background:white;border-radius:17px}
.gallery-symbol svg{display:block;width:40px;height:40px}
.gallery-hero h1,.gallery-detail h2{font-size:15px;font-weight:700;margin:0 0 7px;color:#000}
.gallery-hero p{color:#767676;line-height:1.45;margin:0;font-size:14px}
.gallery-meta{display:grid;grid-template-columns:.92fr 1fr 1fr .95fr;margin:31px 0 41px;background:white;border-radius:14px;padding:9px 0}
.gallery-meta div{text-align:center;padding:4px 2px 9px;min-width:0;font-size:11px}
.gallery-meta div+div{border-left:1px solid #dedede}
.gallery-meta dt{color:#767676;margin-bottom:5px}
.gallery-meta dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.gallery-explanation p{font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#000}
.gallery-chart-detail > :is(.gallery-preview, .chart-model-guide) { margin-top: 20px; }
.gallery-preview img{display:block;width:61%;height:auto;margin-top:15px;border-radius:7px;box-shadow:0 1px 2px #0001}
.dynamic-table-preview { margin-top: 15px; }
.local-advanced-settings details {
  border-radius: 16px;
  background: #fff;
}
.local-advanced-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 16px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
}
.local-advanced-settings summary::-webkit-details-marker { display: none; }
.local-advanced-settings summary .icon { width: 17px; height: 17px; color: #777; --icon-stroke: 1.5; }
.local-advanced-settings details[open] summary .icon { transform: rotate(180deg); }
.local-chart-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px 12px;
  margin: 0 16px;
  padding: 12px 0 14px;
  border-top: 1px solid #f0f0f0;
  font-size: 14px;
}
.local-chart-setting select { max-width: 100%; border: 1px solid #e6e6e6; border-radius: 8px; padding: 6px 9px; color: inherit; background: #fafafa; font: inherit; }
.local-chart-setting p { grid-column: 1 / -1; color: #767676; font-size: 12px; line-height: 1.55; }
.chart-model-guide {
  color: #000;
}
.chart-model-guide summary {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  min-height: 32px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}
.chart-model-guide summary::-webkit-details-marker { display: none; }
.chart-model-guide summary > .icon {
  width: 15px;
  height: 15px;
  color: #777;
  --icon-stroke: 1.7;
  transform: rotate(-90deg);
}
.chart-model-guide[open] summary > .icon { transform: none; }
.chart-model-panel {
  margin: 8px 0 0;
  padding: 12px 13px;
  border-radius: 8px;
  background: #e7e7e7;
  font-size: 14px;
  line-height: 1.55;
}
.chart-model-panel h3 { font-size: inherit; font-weight: 500; }
.chart-model-panel h3:not(:first-child) { margin-top: 12px; }
.chart-model-panel ul { margin: 0; padding-inline-start: 18px; }
pre.chart-model-panel { white-space: pre-wrap; overflow-wrap: anywhere; }
pre.chart-model-panel code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.article-markdown .article-chart-module { margin: 20px 0 26px; min-width: 0; }
.article-chart-module figcaption { margin-top: 8px; color: #626269; font: 13px/1.6 var(--sans); }
.article-chart-module .topicify-module-chart [aria-live] { min-height: 1.5em; color: #626269; line-height: 1.5; }
.article-chart-module .topicify-table table { border-collapse: separate; }
.article-chart-module .topicify-table :is(th,td) { border-top: 0; border-left: 0; text-align: center; }
.article-chart-stage { position: relative; }
.article-chart-visual {
  overflow: hidden;
  border-radius: 6px;
}
html[data-article-chart-pointer] .article-chart-visual:focus {
  outline: none;
}
.article-chart-actions {
  position: absolute;
  bottom: calc(100% + 6px);
  inset-inline-end: 0;
  z-index: 4;
  display: flex;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.article-chart-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.article-chart-actions button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #6d6d72;
  border: 1px solid #d9d9de90;
  background: #f1f1f4a8;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px #2424340d;
}
.article-chart-actions button[hidden] { display: none; }
.article-chart-actions button:hover { background: #e7e7eacc; color: #242424; }
.article-chart-actions button .icon { width: 17px; height: 17px; --icon-stroke: 1.7; }
.article-chart-dialog {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.article-chart-dialog::backdrop { background: #14141a88; }
.article-chart-dialog > .article-chart-stage { height: 100%; }
.article-chart-dialog .article-chart-actions {
  position: fixed;
  inset: calc(env(safe-area-inset-top, 0px) + 12px)
    max(12px, env(safe-area-inset-right, 0px))
    auto max(12px, env(safe-area-inset-left, 0px));
  justify-content: space-between;
}
.article-chart-dialog .article-chart-actions.is-visible { pointer-events: none; }
.article-chart-dialog .article-chart-actions.is-visible > button { pointer-events: auto; }
.article-chart-zoom-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}
.article-chart-zoom-card {
  position: absolute;
}
.article-chart-zoom-card > .article-chart-visual {
  background: #fff;
}
.article-chart-dialog .topicify-module-chart svg { max-height: min(62dvh, 540px); }
@media (prefers-reduced-motion: reduce) {
  .article-chart-actions { transition: none; }
}
.imported-chart-frame {
  display: block;
  width: 100%;
  height: 350px;
  margin-top: 15px;
  border: 0;
}
:root {
  --skill-item-title-size: 15px;
  --skill-item-title-weight: 500;
}
.skill-card-screen .skill-management-row h3 {
  font-family: var(--sans);
  font-weight: var(--skill-item-title-weight);
}
.skill-card-screen .skill-management-row h3,
.skill-card-screen .chart-gallery-item strong {
  color: var(--ink);
  font-size: var(--skill-item-title-size);
}
.skill-card-screen .skill-management-row p,
.skill-card-screen .chart-gallery-item span {
  color: #767676;
  font-size: 13px;
}
.skill-card-screen .tool-management .skill-management-row p {
  color: #999;
}
.screen > header.backbar {
  background: inherit !important;
  border-bottom: 0 !important;
}

.screen.skill-detail-screen {
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
}
.skill-detail-screen > .backbar {
  flex: none;
}
.skill-detail-form {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: clamp(24px, 3.85dvh, 34px) 16px max(clamp(24px, 4.7dvh, 40px), env(safe-area-inset-bottom));
}
.skill-detail-fields {
  display: grid;
  gap: 12px;
}
.skill-detail-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
}
.skill-detail-instructions {
  margin-top: 2px;
}
.skill-detail-fields input,
.skill-detail-fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.skill-detail-fields input {
  min-height: 44px;
}
.skill-detail-fields textarea {
  resize: none;
}
.skill-detail-fields textarea[name="description"] {
  min-height: 65px;
}
.skill-detail-fields textarea[name="instructions"] {
  min-height: 244px;
}
.skill-detail-save {
  margin-top: auto;
  padding-top: 28px;
}
.skill-detail-save .black-pill {
  width: 100%;
  min-height: 48px;
  margin: 0;
  border-radius: 999px;
  background: #000;
  font-size: 15px;
}
.dropdown-menu[role="menu"],
.requirements-skills-menu[role="menu"] {
  --popup-divider: #c7c7c7;
  width: min(240px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 18px #0000001a, 0 1px 4px #0000000a;
}
.requirements-skills-menu[role="menu"] {
  width: min(240px, calc(100vw - 80px));
}
.dropdown-menu[role="menu"] > .menu-divider {
  display: none;
}
.dropdown-menu[role="menu"] > .menu-option,
.requirements-skills-menu[role="menu"] > [role="menuitemcheckbox"] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 20px 8px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: var(--skill-item-title-weight) var(--skill-item-title-size)/1.5 var(--sans);
  overflow-wrap: anywhere;
}
.dropdown-menu[role="menu"] > .menu-option ~ .menu-option::before,
.requirements-skills-menu[role="menu"] > button + button::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  transform: scaleY(.333);
  transform-origin: top;
  background: var(--popup-divider);
  content: "";
  pointer-events: none;
}
.dropdown-menu[role="menu"] > .menu-option.menu-delete {
  color: #f00;
}
.dropdown-menu[role="menu"] > .menu-option:is(:hover, :active),
.requirements-skills-menu[role="menu"] > button:is(:hover, :active) {
  background: #e8e8e8;
}
.dropdown-menu[role="menu"] > .menu-option:focus-visible,
.requirements-skills-menu[role="menu"] > button:focus-visible {
  background: #e8e8e8;
  outline: 1px solid #777;
  outline-offset: -2px;
}
.dropdown-menu[role="menu"] > .menu-option > .icon,
.requirements-skills-menu[role="menu"] .skill-menu-check > .icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #161616;
  --icon-stroke: 1.35;
  stroke-width: var(--icon-stroke) !important;
}
#app-root.reading>#screen.local-reader-chrome{bottom:0;padding-bottom:calc(56px + env(safe-area-inset-bottom,0px))}
#navigation>.reader-footer.local-reader-footer{bottom:0}
.screen.local-reader-chrome>.backbar{position:sticky;top:0;z-index:23;transition:transform 220ms ease;will-change:transform}
.reader-footer.local-reader-footer{transition:transform 220ms ease;will-change:transform}
.screen.local-reader-chrome.reader-chrome-hidden>.backbar{transform:translateY(calc(-100% - env(safe-area-inset-top,0px)));pointer-events:none}
.reader-footer.local-reader-footer.reader-chrome-slide-hidden{transform:translateY(calc(100% + 28px + env(safe-area-inset-bottom,0px)));pointer-events:none}
@media(prefers-reduced-motion:reduce){.screen.local-reader-chrome>.backbar,.reader-footer.local-reader-footer{transition:none}}
#screen.local-reader-chrome>.read-article{padding-top:18px;color:#000000}
#screen.local-reader-chrome>.read-article>h1{padding:0 21px;font-family:var(--sans);font-size:22px;font-weight:700;line-height:1.5;letter-spacing:0;margin:0 0 12px}
#screen.local-reader-chrome .read-subtitle{display:none}
#screen.local-reader-chrome .read-author{padding:0 21px 15px;gap:11px;min-height:57px}
#screen.local-reader-chrome .read-author .publication-avatar.topic-thumbnail{width:42px;height:42px;flex:0 0 42px;border-radius:7px;object-fit:cover;background:#c7c7c7}
#screen.local-reader-chrome .read-author b{display:block;font-family:var(--sans);font-size:13px;font-weight:400;line-height:20px;color:#111}
#screen.local-reader-chrome .read-author small{font-family:var(--sans);font-size:12px;font-weight:400;line-height:18px;color:#b5b5b5;margin-top:1px}
#screen.local-reader-chrome .read-cover{display:block;width:100%;height:auto;aspect-ratio:800 / 510;object-fit:cover;border-radius:0;margin:0}
#screen.local-reader-chrome .read-cover+.image-caption{display:none}
#screen.local-reader-chrome .read-copy{padding:25px 21px 35px}
#screen.local-reader-chrome .article-markdown{font-family:var(--reading-face,var(--sans));font-size:calc(18px * var(--reader-scale,1));font-weight:400;line-height:1.5;color:#000000;letter-spacing:0}
#screen.local-reader-chrome .article-markdown>p{margin:0 0 1.35em}
#screen.local-reader-chrome .article-markdown>:first-child{margin-top:0}
.my-topics-module .my-topic-row{display:flex;gap:10px;align-items:stretch;padding:9px 0 10px;border:0;position:relative}
.my-topics-module .my-topic-row:after{content:'';position:absolute;bottom:0;left:74px;right:0;height:1px;background:#ededed}
.my-topics-module .owned-topic-image{width:64px;height:64px;flex:0 0 64px;border-radius:6px}
.my-topics-module .owned-topic-thumbnail{border-radius:6px}
.my-topics-module .owned-topic-copy{display:flex;flex-direction:column;justify-content:space-between;min-width:0}
.my-topics-module .my-topic-title{display:flex;align-items:center;gap:8px;min-height:26px}
.my-topics-module .owned-title-group{flex:1;min-width:0;gap:5px}
.my-topics-module .owned-title-group>button{font-size:16px;font-weight:400;color:#000;line-height:1.5}
.my-topics-module .my-topic-title>span{font-size:11px;line-height:18px;background:#eee;color:#888;border-radius:4px;padding:0 6px;white-space:nowrap;flex-shrink:0}
.my-topics-module .owned-topic-footer{margin:8px 0 0;min-height:24px;gap:2px}
.my-topics-module .owned-topic-metadata{font-size:12px;line-height:1.5;color:#888;gap:3px 5px;flex:1}
.my-topics-module .owned-topic-metadata>span+span:before{content:none}
.my-topics-module .owned-topic-more{width:24px;height:24px;color:#000}
.topic-state-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex:0 0 18px;color:#5eae35;line-height:1}
.topic-state-icon svg{display:block;width:18px;height:18px}
.topic-state-icon.is-interrupted{color:#ebb134}
@media(max-width:360px){.my-topics-module .owned-title-group>button{font-size:15px}.my-topics-module .owned-topic-metadata{font-size:10px}}

.topic-log-row-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%}
.topic-log-row-heading>strong{min-width:0;overflow-wrap:anywhere}
.topic-log-row-heading>span{flex-shrink:0;margin-left:auto}

.plaza-topic-cards .plaza-card-open>h3,
.plaza-topic-cards .plaza-card-open>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;text-overflow:ellipsis;white-space:normal;overflow-wrap:anywhere}

.topic-landing-header .topic-landing-image{border-radius:6px}

.plaza-hot-list .plaza-hot-content{position:relative;padding-right:74px;min-height:64px}
.plaza-hot-cover{position:absolute;right:0;top:0;width:64px;height:64px}
.plaza-hot-cover-open{display:block;width:64px;height:64px;border-radius:6px;overflow:hidden}
.plaza-hot-cover .plaza-hot-thumb{display:block;width:64px;height:64px;object-fit:cover;border-radius:6px}
.plaza-cover-subscribe{position:absolute;right:-2px;bottom:-2px;display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#fff;color:#000}
.plaza-cover-subscribe svg{display:block;width:24px;height:24px;background:#fff;border-radius:50%;pointer-events:none}

#screen:has(.profile-details-page){background:#f7f7f7}
#screen:has(.profile-details-page)>.backbar{background:#f7f7f7}
.profile-details-page{padding:12px 16px 32px;width:100%;max-width:660px;margin:auto;min-height:calc(100% - 72px);display:flex;flex-direction:column;font-size:16px;color:var(--ink)}
.profile-avatar-picker{display:flex;flex-direction:column;align-items:center;align-self:center;gap:12px;color:#909090;margin:0 0 34px;font-size:16px}
.profile-details-avatar{display:flex;align-items:center;justify-content:center;width:84px;height:84px;border-radius:50%;overflow:hidden;background:#ddd;color:#888}
.profile-details-avatar img{width:100%;height:100%;object-fit:cover}
.profile-details-avatar>.icon{width:48px;height:48px}
.profile-details-card{background:#fff;border-radius:16px;overflow:hidden}
.profile-details-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin:0 16px;width:calc(100% - 32px);text-align:left;border-bottom:1px solid #eee;line-height:1.4}
.profile-details-row:last-child{border-bottom:0}
.profile-details-row>span:first-child{flex-shrink:0}
.profile-details-value{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;color:#888;overflow-wrap:anywhere;text-align:right}
.profile-details-value .icon{width:15px;height:15px}
.profile-account-actions{margin-top:120px;display:flex;flex-direction:column;gap:34px}
.profile-account-button{display:block;width:100%;padding:17px 16px;text-align:left;min-height:56px;font-size:16px}
.profile-account-delete{color:#b5473e}

.muse-avatar>.muse-person-photo{display:block;width:64px;height:64px;object-fit:cover;border-radius:50%}

.topic-author-link .avatar{overflow:hidden;border-radius:50%}
.topic-author-avatar{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}

.read-author>.read-topic-cover{display:flex;flex-shrink:0}
.read-author .read-topic-name{text-align:left;font:inherit;color:inherit}


.my-topics-module .owned-topic-cover{--topic-status-size:16px;--topic-status-edge:1px;position:relative;width:64px;height:64px;flex:0 0 64px}
.my-topics-module .owned-topic-cover>.owned-topic-image{display:block;overflow:hidden}
.my-topics-module .owned-topic-cover>.topic-state-icon,
.my-topics-module .owned-topic-cover>.topic-run-dot{position:absolute;top:0;right:0;transform:translate(50%,-50%);z-index:1;width:var(--topic-status-size);height:var(--topic-status-size);margin:0;border-radius:50%;background:#fff;box-shadow:0 0 0 var(--topic-status-edge) #fff;pointer-events:none}
.my-topics-module .owned-topic-cover>.topic-state-icon.is-completed{color:#5eae35}
.my-topics-module .owned-topic-cover>.topic-state-icon.is-interrupted{color:#ebb134}
.my-topics-module .owned-topic-cover>.topic-run-dot.is-running::before{background:#a6c2ff;animation:none;transform:none}
.my-topics-module .owned-topic-cover>.topic-run-dot.is-running::after{background:#3f6df4}

.my-topics-module .owned-topic-cover>.topic-run-dot.is-running{background:transparent}
.my-topics-module .owned-topic-cover>.topic-run-dot.is-running::after{box-shadow:none;transform-origin:center;animation:topic-cover-center-breathe 1.6s ease-in-out infinite}

@keyframes topic-cover-center-breathe{0%,100%{transform:scale(.65)}50%{transform:scale(1.45)}}

.my-topics-module .owned-topic-cover>.topic-state-icon svg{display:block;width:100%;height:100%}

.my-topics-module .owned-topic-cover>.topic-run-dot.is-running::after{inset:28%}

.skill-type-tabs [role="tab"]{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.skill-type-tabs [role="tab"]>.icon.lucide{width:16px;height:16px;--icon-stroke:1.5}

.skill-card-screen>.skill-type-tabs [role="tab"][aria-selected="true"]{background:#e5e5e5;color:#000}
.skill-card-screen>.skill-type-tabs [role="tab"]:focus-visible{outline-color:#525252}

/* Shared article pending state; no artificial minimum display time. */
#screen .article-loading{display:grid;place-items:center;min-height:calc(100dvh - 120px);padding:24px;margin:0}#screen .article-loading-icon{display:block;width:24px;height:24px;border:2px solid #e5e5e5;border-top-color:#666;border-radius:50%;animation:article-loading-spin .8s linear infinite}@keyframes article-loading-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#screen .article-loading-icon{animation-duration:2s}}

#screen:has(>.skill-type-tabs),#screen:has(.model-card-page){background:#f7f7f7}
#screen:has(>.skill-type-tabs)>.backbar,#screen:has(.model-card-page)>.backbar{background:#f7f7f7}
#screen:has(>.skill-type-tabs) .skill-management-row,#screen .model-card-page .skill-management-row{background:#fff;border:0;border-radius:16px;padding:14px 16px}
#screen:has(>.skill-type-tabs) .chart-gallery-item{background:#fff}

/* Shared model-settings appearance, sourced from the latest local demo. */
.screen.model-form-screen{background:#f7f7f7}
.model-form-screen>.backbar{background:#f7f7f7}
.model-form-screen .model-editor-page{padding:20px 16px;max-width:660px;margin:auto}
.model-form-card{background:white;border-radius:16px;padding:0 18px;margin-bottom:14px}
.model-form-card .topic-field{display:flex;align-items:center;gap:16px;margin:0;padding:12px 0;border-bottom:1px solid #eee}
.model-form-card .topic-field:last-child{border-bottom:0}
.model-form-card>.topic-switch-row{margin:0!important;padding:12px 0;border:0;display:flex;align-items:center;justify-content:space-between;gap:16px}
.model-form-card>.topic-switch-row>label{font-size:15px;margin:0}
.model-form-card .topic-field>span{font-size:15px;white-space:nowrap;margin:0}
.model-form-card .dialog-input{margin:0;padding:0;border:0;font-size:14px;text-align:right;min-width:0;flex:1;background:transparent}
.model-vendor{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;font-size:15px;border-bottom:1px solid #eee}
.model-vendor>.dialog-input{width:55%;min-width:0;border:0;padding:0;text-align:right;font-size:14px}
.model-connection-state{display:flex;align-items:center;gap:8px;font-size:14px}
.model-vendor[data-connection="成功"] .model-connection-dot{background:#0da046}
.model-vendor[data-connection="失败"] .model-connection-dot{background:#d8443c}
.model-connection-dot{width:8px;height:8px;border-radius:50%;background:#aaa}
.model-form-card .model-check-status{padding:12px 0;margin:0;font-size:13px;line-height:1.6}
.model-form-card pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding-bottom:14px}
.model-form-screen .topic-create-actions{display:flex;gap:12px;margin-top:22px}
.model-form-screen .topic-create-actions>button{flex:1;min-height:46px}
.model-form-screen .topic-create-actions>[data-model-action="check"]{flex:0.65}
.model-form-screen .topic-create-actions>[type="submit"]{flex:1.35}
.model-form-card input[name="apiKey"]{-webkit-user-select:none;user-select:none}
/* Local three-tab topic editor. */
.ai-topic-page.three-tab-editor .local-three-tabs{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:38px;padding:3px!important;background:#ececec!important;border-radius:9px!important;gap:0;isolation:isolate;margin-bottom:18px!important}
.three-tab-editor .local-three-tabs .editor-tab-thumb{position:absolute;left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/3);border-radius:7px;background:#fff;box-shadow:0 1px 3px #00000016;transform:translateX(calc(var(--editor-tab-index)*100%));z-index:-1;pointer-events:none}
.ai-topic-page.three-tab-editor .local-three-tabs button{position:relative;display:grid;place-items:center;padding:0 3px!important;border:0;border-radius:7px!important;background:transparent!important;color:#888;font-size:14px;font-weight:400;min-width:0;line-height:1.2}
.ai-topic-page.three-tab-editor .local-three-tabs button[aria-selected="true"]{background:transparent!important;color:#555;font-weight:500}.local-three-tabs button+button:before{content:'';position:absolute;left:0;top:7px;bottom:7px;width:1px;background:#d9d9d9}.local-three-tabs button[aria-selected="true"]:before,.local-three-tabs button[aria-selected="true"]+button:before{display:none}
.three-tab-editor [role="tabpanel"][hidden]{display:none!important}.three-tab-editor[data-editor-tab="description"] #my-topic-form{display:none}.local-description-panel{display:flex;flex-direction:column;height:calc(100dvh - 145px);min-height:420px;padding-bottom:max(14px,env(safe-area-inset-bottom));box-sizing:border-box}.description-conversation{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:18px}.description-welcome{height:100%;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#444}.description-welcome>.icon{width:48px;height:48px;color:#111;stroke-width:1.4}.description-welcome p{font-size:17px}.description-composer{flex-shrink:0;background:#e9e9e9;border-radius:23px;padding:14px 16px 12px}.description-composer textarea{display:block;width:100%;max-height:140px;min-height:56px;padding:10px 0 12px;border:0;background:transparent;resize:vertical;outline:0;font-size:16px;line-height:1.55;color:#222}.description-compose-tools{display:flex;align-items:center;gap:12px}.description-compose-tools>button{flex-shrink:0;display:flex;align-items:center;justify-content:center}.description-compose-tools>button[data-description-action="skills"]{height:35px;width:28px;color:#888}.description-compose-tools>button[data-description-action="skills"]>.icon{height:29px;width:29px}.description-compose-space{flex:1}.description-compose-tools .description-model{height:32px;gap:7px;background:#d7d7d7;border-radius:22px;padding:0 12px;max-width:210px;font-size:14px}.description-model>.icon{height:17px;width:17px}.description-model>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description-send{width:38px;height:38px;border-radius:50%;background:#000;color:#fff}.description-send>.icon{width:25px;height:25px;stroke-width:2.5}.description-send:disabled{opacity:.3}#description-skill-chips{display:flex;gap:6px;flex-wrap:wrap}#description-skill-chips:empty{display:none}.description-conversation .planner-user{margin-top:6px}.description-conversation .planner-assistant{margin-bottom:20px}.description-conversation .plan-summary{background:#fff}.description-conversation .plan-adopt{margin-bottom:12px}.description-conversation .cloud-stream-status{padding:8px 0}.plan-settings-summary p{margin:5px 0!important;font-size:13px!important}.three-tab-editor[data-editor-tab="description"]{padding-bottom:0!important}
@media(prefers-reduced-motion:reduce){.three-tab-editor .editor-tab-thumb{transition:none}}
/* Requirement composer shares the schedule picker and content editor sheet. */
.description-composer{position:relative}.description-composer #topic-request{box-sizing:border-box;resize:none;overflow-y:auto}.description-expand{position:absolute;right:12px;top:11px;width:30px;height:30px;display:flex;align-items:center;justify-content:center;color:#333;border-radius:6px}.description-expand[hidden]{display:none!important}.description-expand>.icon{width:21px;height:21px}.description-composer.has-expansion #description-skill-chips{padding-right:32px}.description-composer.has-expansion #topic-request{padding-right:26px}.schedule-menu [aria-checked=true] .skill-menu-check{visibility:visible}.schedule-menu .skill-menu-check .icon{width:17px;height:17px}
/* User chat bubbles in the requirement conversation. */
.description-conversation .planner-user{box-sizing:border-box;width:fit-content;max-width:85%;margin:24px 0 22px auto;padding:8px 10px;background:#e1e1e1;color:#333;border-radius:10px 10px 0 10px;font-size:16px;font-weight:400;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
/* Compact scrollbars for the editor, conversation and text editors. */
#screen:has(.three-tab-editor),.three-tab-editor .description-conversation,.three-tab-editor textarea,.requirements-sheet textarea{scrollbar-width:thin;scrollbar-color:#c5c5c5 transparent}
#screen:has(.three-tab-editor)::-webkit-scrollbar,.three-tab-editor .description-conversation::-webkit-scrollbar,.three-tab-editor textarea::-webkit-scrollbar,.requirements-sheet textarea::-webkit-scrollbar{width:4px;height:4px}
#screen:has(.three-tab-editor)::-webkit-scrollbar-track,.three-tab-editor .description-conversation::-webkit-scrollbar-track,.three-tab-editor textarea::-webkit-scrollbar-track,.requirements-sheet textarea::-webkit-scrollbar-track{background:transparent}
#screen:has(.three-tab-editor)::-webkit-scrollbar-thumb,.three-tab-editor .description-conversation::-webkit-scrollbar-thumb,.three-tab-editor textarea::-webkit-scrollbar-thumb,.requirements-sheet textarea::-webkit-scrollbar-thumb{background:#c5c5c5;border-radius:4px}
#screen:has(.three-tab-editor)::-webkit-scrollbar-button,.three-tab-editor .description-conversation::-webkit-scrollbar-button,.three-tab-editor textarea::-webkit-scrollbar-button,.requirements-sheet textarea::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){#screen:has(.three-tab-editor),.three-tab-editor .description-conversation,.three-tab-editor textarea,.requirements-sheet textarea{scrollbar-width:auto;scrollbar-color:auto}}
/* Keep the conversation scrollbar in the page's outer gutter. */
.three-tab-editor .description-conversation{margin-right:-12px;padding-right:12px;scrollbar-gutter:stable;box-sizing:border-box}
/* Shared dropdown scrollbars: compact thumb with no arrow buttons. */
.schedule-menu,.dropdown-menu,.requirements-skills-menu{scrollbar-width:thin;scrollbar-color:#aaa transparent}
.schedule-menu::-webkit-scrollbar,.dropdown-menu::-webkit-scrollbar,.requirements-skills-menu::-webkit-scrollbar{width:4px;height:4px}
.schedule-menu::-webkit-scrollbar-track,.dropdown-menu::-webkit-scrollbar-track,.requirements-skills-menu::-webkit-scrollbar-track{background:transparent}
.schedule-menu::-webkit-scrollbar-thumb,.dropdown-menu::-webkit-scrollbar-thumb,.requirements-skills-menu::-webkit-scrollbar-thumb{background:#aaa;border-radius:4px}
.schedule-menu::-webkit-scrollbar-button,.dropdown-menu::-webkit-scrollbar-button,.requirements-skills-menu::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports selector(::-webkit-scrollbar){.schedule-menu,.dropdown-menu,.requirements-skills-menu{scrollbar-width:auto;scrollbar-color:auto}}
/* Float the composer while reserving its measured height in the conversation. */
.local-description-panel{position:relative;--description-composer-height:190px}
.local-description-panel>.description-composer{position:absolute;z-index:12;left:0;right:0;bottom:max(14px,env(safe-area-inset-bottom));box-shadow:0 5px 22px #00000008}
.local-description-panel>.description-conversation{padding-bottom:calc(var(--description-composer-height) + 34px);scroll-padding-bottom:calc(var(--description-composer-height) + 34px)}
/* Opaque backing keeps scrolled messages out of the composer's rounded corners. */
.local-description-panel::after{content:'';position:absolute;z-index:11;left:0;right:0;bottom:0;height:calc(var(--description-composer-height) + max(14px,env(safe-area-inset-bottom)));background:#f7f7f7;pointer-events:none}
/* Only mask the lower rounded corners and bottom gap; upper corners remain open. */
.local-description-panel::after{height:calc(23px + max(14px,env(safe-area-inset-bottom)))}
/* Compensate for the 4px scrollbar gutter so message cards align with the composer. */
.three-tab-editor .description-conversation{padding-right:8px}
/* Match the send circle to the model selector height. */
.description-compose-tools .description-send{width:32px;height:32px;min-width:32px;min-height:32px;padding:0}
.description-compose-tools .description-send>.icon{width:21px;height:21px}
/* Tighten the editor header, tabs and conversation into one continuous layout. */
.ai-topic-page.three-tab-editor{padding-top:0!important}
.ai-topic-page.three-tab-editor .local-three-tabs{margin-top:0!important;margin-bottom:6px!important}
.three-tab-editor .local-description-panel{height:calc(100dvh - 115px)}
/* Theme-matched floating composer with a soft surrounding shadow. */
.local-description-panel>.description-composer{background:#f7f7f7;box-shadow:0 0 28px 8px rgba(0,0,0,.055),0 5px 14px rgba(0,0,0,.025)}
.description-compose-tools .description-model{background:#ededed;color:#333}
/* Deepen the floating composer shadow while keeping its soft falloff. */
.local-description-panel>.description-composer{box-shadow:0 0 28px 8px rgba(0,0,0,.10),0 5px 14px rgba(0,0,0,.05)}
/* Match content-requirement controls to the requirement conversation composer. */
.three-tab-editor #requirements-skills-trigger{display:flex;align-items:center;justify-content:center;width:28px;height:35px;padding:0;border:0;background:transparent;color:#888}
.three-tab-editor #requirements-skills-trigger>.icon{width:29px;height:29px}
.three-tab-editor #topic-model-profile{display:flex;align-items:center;justify-content:center;gap:7px;height:32px;min-height:32px;max-width:210px;padding:0 12px;border:0;border-radius:22px;background:#ededed;color:#333;font-size:14px;line-height:1.2;box-shadow:none}
.three-tab-editor #topic-model-profile>.icon{width:17px;height:17px;flex-shrink:0;color:inherit}
.three-tab-editor #topic-model-profile [data-choice-label]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Shared circular skill picker matches the model selector. */
.description-compose-tools>button[data-description-action="skills"],.three-tab-editor #requirements-skills-trigger{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:#ededed;color:#888}
.description-compose-tools>button[data-description-action="skills"]>.icon,.three-tab-editor #requirements-skills-trigger>.icon{width:22px;height:22px}
/* One model-picker specification in both editor tabs. */
.three-tab-editor :is(#topic-model-profile,.description-model){box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:32px!important;min-height:32px!important;width:auto!important;max-width:210px;gap:7px!important;margin:0;padding:0 12px!important;border:0!important;border-radius:22px!important;background:#ededed!important;color:#333;font-size:14px!important;font-weight:400;line-height:1.2!important;box-shadow:none;align-self:center}
.three-tab-editor :is(#topic-model-profile,.description-model)>.icon{width:17px;height:17px;flex:0 0 17px;color:inherit}
.three-tab-editor .description-compose-tools,.three-tab-editor .requirements-skill-toolbar{display:flex;align-items:center!important}
.three-tab-editor .description-compose-tools>button{margin-top:0;margin-bottom:0;align-self:center}
/* Both tabs use these exact same control classes. */
.ai-topic-page.three-tab-editor .editor-tool-row{display:flex!important;align-items:center!important;min-height:32px;gap:12px}
.ai-topic-page.three-tab-editor .editor-tool-row>.editor-skill-control,.ai-topic-page.three-tab-editor .editor-tool-row .editor-model-control{box-sizing:border-box!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;background:#ededed!important;box-shadow:none!important;transform:none!important}
.ai-topic-page.three-tab-editor .editor-tool-row>.editor-skill-control{width:32px!important;min-width:32px!important;max-width:32px!important;padding:0!important;border-radius:50%!important;color:#888!important;flex:0 0 32px}
.ai-topic-page.three-tab-editor .editor-tool-row>.editor-skill-control>.icon{width:22px!important;height:22px!important;flex:0 0 22px}
.ai-topic-page.three-tab-editor .editor-tool-row .editor-model-control{width:auto!important;min-width:0!important;max-width:210px!important;padding:0 12px!important;border-radius:22px!important;gap:7px!important;font:400 14px/1.2 var(--sans)!important;color:#333!important}
.ai-topic-page.three-tab-editor .editor-tool-row .editor-model-control>.icon{width:17px!important;height:17px!important;flex:0 0 17px!important}
/* Keep skill and model controls together on the left in both tabs. */
.three-tab-editor .description-compose-space{display:none}
.three-tab-editor .description-compose-tools .description-send{margin-left:auto!important}
.three-tab-editor .requirements-skill-toolbar .requirements-model-picker{margin-left:0!important}
/* Content width is shared with the composer, independent of native scrollbar width. */
.three-tab-editor .description-conversation{padding-right:0;scrollbar-gutter:auto;overflow-x:hidden}
.three-tab-editor .description-messages{box-sizing:border-box;width:var(--description-content-width,100%);min-height:100%}
.three-tab-editor .description-messages>.planner-assistant{width:100%;box-sizing:border-box}
.three-tab-editor .description-conversation{margin-right:-16px}
.three-tab-editor .local-three-tabs,.three-tab-editor .local-description-panel{box-sizing:border-box;width:100%;min-width:0}
/* Isolate mobile keyboard panning and follow the visual viewport in chat mode. */
html:has(.three-tab-editor[data-editor-tab="description"]),body:has(.three-tab-editor[data-editor-tab="description"]){overflow:hidden;overscroll-behavior:none}
#app-root:has(.three-tab-editor[data-editor-tab="description"]){position:fixed;top:var(--editor-viewport-top,0px);left:0;right:0;bottom:auto;height:var(--editor-viewport-height,100dvh);min-height:0!important}
#screen:has(.three-tab-editor[data-editor-tab="description"]){bottom:0;overflow:hidden}
.three-tab-editor #description-planning-form #topic-request{min-height:56px;max-height:140px}
.three-tab-editor .local-description-panel{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
.local-description-panel>.description-composer{bottom:calc(6px + env(safe-area-inset-bottom,0px))}
.local-description-panel::after{height:calc(29px + env(safe-area-inset-bottom,0px))}
/* Allow the conversation panel to shrink fully above an on-screen keyboard. */
.three-tab-editor .local-description-panel{min-height:0}
.three-tab-editor #description-expand{z-index:3;width:44px;height:44px;right:6px;top:5px;touch-action:manipulation;pointer-events:auto}
.three-tab-editor .description-composer.has-expansion #description-skill-chips{padding-right:40px}
.three-tab-editor .description-composer.has-expansion #topic-request{padding-right:34px}
.requirements-sheet-shade .requirements-sheet{height:90%;max-height:90%}
/* Keep the page origin stable while only the available chat height changes. */
html:has(.three-tab-editor[data-editor-tab="description"]){height:100%;overflow:clip}
body:has(.three-tab-editor[data-editor-tab="description"]){position:fixed;inset:0;min-height:0;overflow:clip}
#app-root:has(.three-tab-editor[data-editor-tab="description"]){top:0!important}
#screen:has(.three-tab-editor[data-editor-tab="description"]){overflow:clip;overflow-anchor:none}
.three-tab-editor .description-conversation{overflow-anchor:none}
/* Hide the native caret while a composer picker is open, retaining input focus. */
body:has(.schedule-menu) #description-planning-form:has([data-description-action][aria-expanded="true"]) #topic-request{caret-color:transparent}

/* Compact subscription carousel spacing without changing cover size or selection ring. */
.topic-carousel{gap:8px}.topic-carousel .topic-chip{gap:3px}.topic-carousel .topic-chip>.topic-tile{margin-bottom:2px}
