.type-workflow { --dialogue-green: #325c4b; }

.type-workflow .dialogue-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.type-workflow .dialogue-rail {
  border-right: 1px solid var(--line);
  padding: 42px 34px 50px 42px;
}

.type-workflow .dialogue-rail-inner { position: sticky; top: 98px; }
.type-workflow .dialogue-rail-section[hidden],
.type-workflow .mobile-discipline-section[hidden] { display: none; }
.type-workflow .dialogue-rail h2 { margin: 0 0 3px; font-family: Georgia, "Songti SC", SimSun, serif; font-size: 26px; font-weight: 560; letter-spacing: -.04em; }
.type-workflow .dialogue-rail-section > p { margin: 0; color: #999; font-size: 11px; line-height: 1.6; }

.type-workflow .discipline-filter-panel { margin-top: 34px; padding-top: 27px; border-top: 1px solid var(--line); }
.type-workflow .discipline-filter-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; color: #444; font-size: 13px; }
.type-workflow .discipline-filter-panel > summary::-webkit-details-marker { display: none; }
.type-workflow .discipline-filter-panel > summary span { display: flex; align-items: center; gap: 7px; font-weight: 620; }
.type-workflow .discipline-filter-panel > summary small { color: #aaa; font-size: 9px; font-weight: 500; letter-spacing: .08em; }
.type-workflow .discipline-filter-panel > summary strong { color: #888; font-size: 11px; font-weight: 500; }
.type-workflow .discipline-filter-panel > summary::after { width: 6px; height: 6px; margin-left: -5px; border-right: 1px solid #888; border-bottom: 1px solid #888; content: ""; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.type-workflow .discipline-filter-panel[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.type-workflow .discipline-filter-body { padding-top: 2px; }

.type-workflow .discipline-search-field { display: flex; align-items: center; gap: 9px; height: 42px; margin: 22px 0 15px; padding: 0 12px; border: 1px solid #dedede; border-radius: 4px; }
.type-workflow .discipline-search-field[hidden],
.type-workflow #mobileDisciplineSearch[hidden] { display: none; }
.type-workflow .discipline-search-field:focus-within { border-color: var(--dialogue-green); }
.type-workflow .discipline-search-field svg { flex: none; width: 15px; height: 15px; color: #888; }
.type-workflow .discipline-search-field input { width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #222; font-size: 12px; }
.type-workflow .discipline-search-field input::placeholder { color: #aaa; }
.type-workflow .discipline-options { display: flex; flex-direction: column; gap: 2px; }
.type-workflow .discipline-options button,
.type-workflow .dialogue-rail .category-tabs button { display: flex; align-items: center; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; color: #666; text-align: left; font-size: 13px; }
.type-workflow .discipline-options button:hover,
.type-workflow .dialogue-rail .category-tabs button:hover { background: #f8f9f8; color: #111; }
.type-workflow .discipline-options button:disabled { cursor: default; opacity: 1; }
.type-workflow .discipline-options button[aria-pressed="true"],
.type-workflow .dialogue-rail .category-tabs button.is-active { background: #f5f8f6; color: var(--dialogue-green); font-weight: 620; }
.type-workflow .discipline-options button[aria-pressed="true"]::before,
.type-workflow .dialogue-rail .category-tabs button.is-active::before { width: 4px; height: 4px; margin: 0 8px 0 -5px; border-radius: 50%; background: var(--dialogue-green); content: ""; }
.type-workflow .dialogue-rail .category-tabs button::after { display: none; }
.type-workflow .dialogue-rail .category-tabs { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; margin-top: 18px; overflow: auto; }
.type-workflow .dialogue-rail .category-tabs small { display: inline; margin-left: auto; color: #aaa; font-size: 10px; font-weight: 400; }
.type-workflow .discipline-options .no-discipline-match { margin: 6px 0; color: #999; font-size: 11px; }
.type-workflow .discipline-note { margin-top: 12px !important; font-size: 10px !important; }

.type-workflow .dialogue-content { min-width: 0; padding: 0 clamp(34px, 4vw, 72px) 80px; }
.type-workflow .category-hero { min-height: 282px; place-items: initial; border-bottom: 1px solid var(--line); }
.type-workflow .category-hero-copy { width: 100%; padding: 58px 34px 37px; text-align: left; }
.type-workflow .category-hero h1 { font-size: clamp(44px, 4.2vw, 66px); font-weight: 540; letter-spacing: -.07em; }
.type-workflow .category-hero-copy > p { max-width: none; margin: 12px 0 0; font-size: 15px; letter-spacing: .015em; }
.type-workflow .category-hero-copy > .dialogue-hero-note { margin-top: 27px; color: #999; font-size: 11px; letter-spacing: 0; }
.type-workflow .category-hero::before { top: 61px; right: -145px; left: auto; bottom: auto; width: 710px; height: 245px; border: 0; border-top: 1px solid #ededed; border-radius: 50%; color: transparent; font-size: 0; transform: rotate(-13deg); content: ""; }
.type-workflow .category-hero::after { top: 21px; right: 70px; bottom: auto; width: auto; height: auto; color: #f0f0f0; font-family: Georgia, serif; font-size: 205px; line-height: 1; letter-spacing: -.1em; content: "AI"; }
.type-workflow .dialogue-hero-symbol { display: none; }

.type-workflow .dialogue-scene-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; border-bottom: 1px solid var(--line); }
.type-workflow .dialogue-scene-tabs { display: flex; align-items: stretch; gap: 38px; height: 70px; }
.type-workflow .dialogue-scene-tabs button { height: 100%; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #888; font-size: 15px; }
.type-workflow .dialogue-scene-tabs button[aria-selected="true"] { border-color: var(--dialogue-green); color: #111; font-weight: 650; }
.type-workflow .dialogue-scene-bar p { margin: 0; color: #999; font-size: 12px; text-align: right; }

.type-workflow .catalog { width: 100%; padding-bottom: 38px; }
.type-workflow .catalog-controls { position: static; display: grid; grid-template-columns: 1fr minmax(170px, 240px) auto; align-items: center; gap: 16px; min-height: 80px; padding: 0; background: #fff; backdrop-filter: none; }
.type-workflow .catalog-controls h2 { margin: 0; font-size: 19px; font-weight: 570; letter-spacing: -.02em; }
.type-workflow .catalog-controls .search-field { height: 36px; padding: 0; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; }
.type-workflow .catalog-controls .search-field:focus-within { border-color: var(--dialogue-green); box-shadow: none; }
.type-workflow .catalog-controls .search-field input { font-size: 12px; }
.type-workflow .catalog-controls .search-field kbd { display: none; }
.type-workflow .catalog-controls .toolbar-actions { grid-column: auto; justify-self: end; }
.type-workflow .catalog-controls .result-count { display: none; }
.type-workflow .catalog-controls .sort-button { min-width: 56px; height: 34px; border-radius: 4px; font-size: 11px; }

.type-workflow .prompt-grid { padding-top: 0; }
.type-workflow .chat-prompt-card { grid-template-columns: 72px minmax(0, 1fr) 148px 96px 38px; gap: 23px; min-height: 138px; padding: 17px 0; border-bottom: 0; border-top: 1px solid var(--line); }
.type-workflow .chat-prompt-card:last-child { border-bottom: 1px solid var(--line); }
.type-workflow .chat-index { display: flex; align-items: center; height: 76px; border-right: 1px solid var(--line); color: #373737; font-family: Georgia, serif; font-size: 50px; font-weight: 400; }
.type-workflow .chat-card-head { margin-bottom: 7px; }
.type-workflow .chat-card-head > span { color: var(--dialogue-green); font-size: 10px; }
.type-workflow .chat-card-head > small { display: none; }
.type-workflow .chat-card-copy .card-title-trigger h3 { font-size: 18px; font-weight: 620; letter-spacing: -.03em; }
.type-workflow .chat-card-summary { max-width: 570px; margin-top: 8px; color: #777; font-size: 13px; line-height: 1.55; }
.type-workflow .chat-fact small { margin-bottom: 7px; color: #aaa; font-size: 10px; }
.type-workflow .chat-fact strong { display: -webkit-box; overflow: hidden; color: #555; font-size: 12px; line-height: 1.5; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.type-workflow .chat-card-result { display: none; }
.type-workflow .chat-open-button { width: 38px; height: 38px; border: 0; color: #555; }
.type-workflow .chat-open-button:hover,
.type-workflow .chat-prompt-card:hover .chat-open-button { border: 0; background: transparent; color: var(--dialogue-green); }
.type-workflow .dialogue-mobile-filter { display: none; }

@media (max-width: 1180px) {
  .type-workflow .chat-prompt-card { grid-template-columns: 58px minmax(0, 1fr) 130px 38px; gap: 18px; }
  .type-workflow .chat-time { display: none; }
}

@media (max-width: 820px) {
  .type-workflow .dialogue-shell { display: block; min-height: 0; }
  .type-workflow .dialogue-rail { display: none; }
  .type-workflow .dialogue-content { padding: 0 21px 44px; }
  .type-workflow .category-hero { min-height: 190px; }
  .type-workflow .category-hero-copy { width: 100%; padding: 38px 0 28px; text-align: left; }
  .type-workflow .category-hero h1 { max-width: 310px; font-size: 40px; }
  .type-workflow .category-hero-copy > p { max-width: 300px; margin-top: 12px; font-size: 12px; line-height: 1.7; }
  .type-workflow .category-hero-copy > .dialogue-hero-note { margin-top: 15px; font-size: 10px; }
  .type-workflow .category-hero::before { width: 340px; height: 130px; top: 18px; right: -180px; }
  .type-workflow .category-hero::after { top: 28px; right: -10px; font-size: 130px; opacity: .7; }
  .type-workflow .dialogue-scene-bar { min-height: 53px; }
  .type-workflow .dialogue-scene-tabs { height: 53px; gap: 30px; }
  .type-workflow .dialogue-scene-tabs button { font-size: 14px; }
  .type-workflow .dialogue-scene-bar p { display: none; }
  .type-workflow .dialogue-mobile-filter { display: block; border-bottom: 1px solid var(--line); }
  .type-workflow .dialogue-mobile-filter summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 64px; list-style: none; cursor: pointer; }
  .type-workflow .dialogue-mobile-filter summary::-webkit-details-marker { display: none; }
  .type-workflow .dialogue-mobile-filter summary strong { font-size: 13px; font-weight: 590; }
  .type-workflow .dialogue-mobile-filter summary span { color: #888; font-size: 11px; text-align: right; }
  .type-workflow .dialogue-mobile-filter[open] summary { border-bottom: 1px solid var(--line); }
  .type-workflow .dialogue-mobile-filter-body { padding: 18px 0 23px; }
  .type-workflow .dialogue-mobile-filter-body h2 { margin: 0 0 10px; font-size: 13px; font-weight: 590; }
  .type-workflow .mobile-task-section { margin-top: 0; }
  .type-workflow .mobile-discipline-section { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
  .type-workflow .mobile-discipline-section > summary { display: flex; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; color: #555; font-size: 12px; }
  .type-workflow .mobile-discipline-section > summary::-webkit-details-marker { display: none; }
  .type-workflow .mobile-discipline-section > summary strong { color: #888; font-size: 11px; font-weight: 500; }
  .type-workflow .mobile-discipline-body { padding-top: 8px; }
  .type-workflow .mobile-discipline-body > input { width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid #ddd; font-size: 13px; }
  .type-workflow .mobile-discipline-options,
  .type-workflow .mobile-category-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 13px 0 1px; scrollbar-width: none; }
  .type-workflow .mobile-discipline-options button,
  .type-workflow .mobile-category-tabs button { flex: none; padding: 8px 10px; border: 1px solid #e5e5e5; border-radius: 3px; background: #fff; color: #777; font-size: 12px; }
  .type-workflow .mobile-discipline-options button[aria-pressed="true"],
  .type-workflow .mobile-category-tabs button[aria-pressed="true"] { border-color: var(--dialogue-green); color: var(--dialogue-green); }
  .type-workflow .catalog-controls { grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; min-height: 66px; }
  .type-workflow .catalog-controls h2 { font-size: 17px; }
  .type-workflow .catalog-controls .search-field { grid-column: 2; grid-row: 1; }
  .type-workflow .catalog-controls .search-field input { font-size: 11px; }
  .type-workflow .catalog-controls .toolbar-actions { display: none; }
  .type-workflow .chat-prompt-card { grid-template-columns: 45px minmax(0, 1fr) 34px; gap: 12px; min-height: 127px; padding: 20px 0; }
  .type-workflow .chat-index { align-self: start; height: 53px; font-size: 37px; }
  .type-workflow .chat-card-copy .card-title-trigger h3 { font-size: 15px; line-height: 1.35; }
  .type-workflow .chat-card-summary { font-size: 11px; }
  .type-workflow .chat-mode,
  .type-workflow .chat-time { display: none; }
  .type-workflow .chat-open-button { width: 34px; height: 34px; }
}
