/* The workspace uses paper, ink and one warm accent across its public and private views. */
:root {
  --page: #f5f3eb;
  --surface: #fffef8;
  --surface-muted: #efeee5;
  --ink: #182e27;
  --muted: #536258;
  --line: #d6dbce;
  --line-strong: #afb9ab;
  --green: #245440;
  --green-dark: #153f30;
  --green-light: #e6eddf;
  --rail: #173d30;
  --rail-ink: #f8f7ed;
  --rail-muted: #bfccbf;
  --rail-line: #476654;
  --signal: #ae4a29;
  --panel-radius: 8px;
  --nav-height: 66px;
  --page-gutter: clamp(22px, 5.4vw, 78px);
  --content-width: 1376px;
  --font-title: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", "PT Serif", serif;
  --font-sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
::selection { background: #cddbc6; color: #152f22; }
.product-header { background: var(--page); border-color: #cbd2c4; }
.product-header-inner { min-height: var(--nav-height); }
.product-brand { gap: 10px; color: var(--green-dark); letter-spacing: .055em; }
.product-mark {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  padding: 0;
  border-radius: 6px 6px 2px 6px;
  background: var(--green-dark);
}
.product-mark i, .product-mark i:nth-child(2) {
  position: absolute;
  inset: 8px auto auto 8px;
  width: 12px;
  height: 15px;
  border: 1.5px solid #ffffe6;
  border-radius: 1px;
  background: var(--green-dark);
  transform: skewY(-9deg);
}
.product-mark i:nth-child(2) { inset: 10px auto auto 13px; }
.product-mark i:nth-child(3) { display: none; }
.product-nav a { color: #415347; font-weight: 570; }
.product-nav a[aria-current="page"]::after { height: 2px; }
.product-main { padding-top: clamp(25px, 3.4vw, 48px); }
.product-main .button, .shell .button, .source-dialog .button { border-radius: 5px; }
.product-main .button-primary, .shell .button-primary { padding-inline: 1.25em; }
:is(.button, .story-step-link) { transition: background-color .12s, color .12s, border-color .12s; }
.product-main input::placeholder, .product-main textarea::placeholder { color: #687269; }

/* The masthead and the working area share one reading edge. */
.product-main:has(> .studio-cover) {
  --home-width: 950px;
  --home-inset: max(var(--page-gutter), calc((100% - var(--home-width)) / 2));
  width: 100%;
  max-width: none;
  padding: 0 0 clamp(40px, 6vw, 76px);
}
.studio-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #233e32;
  color: #fffaf0;
}
.studio-cover .studio-scene {
  --scene-fade: linear-gradient(90deg, transparent, rgb(0 0 0 / .6) 54%, #000 90%);
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(55%, 840px);
  height: 100%;
  object-fit: cover;
  object-position: 55% 46%;
  filter: saturate(.68);
  opacity: .92;
  -webkit-mask-image: var(--scene-fade);
  mask-image: var(--scene-fade);
}
.studio-cover-copy {
  position: relative;
  padding: clamp(47px, 5vw, 78px) var(--home-inset) clamp(69px, 6.7vw, 104px);
}
.story-hero.studio-cover h1 {
  margin: 0;
  width: fit-content;
  color: inherit;
  font-family: var(--font-title);
  font-size: clamp(39px, 4.45vw, 70px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.27;
}
.studio-cover h1 span { display: inline-block; }
.studio-cover .studio-intro {
  margin: clamp(12px, 1.3vw, 18px) 0 0;
  color: #ebeee3;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.55;
  letter-spacing: .035em;
}
.studio-intake, .studio-directory.story-journey, .studio-resume {
  margin-inline: var(--home-inset);
}
.studio-intake {
  position: relative;
  min-width: 0;
  margin-top: clamp(-45px, -3.2vw, -26px);
}
.product-main:has(.chat-transcript:not([hidden])) .studio-cover-copy { padding-bottom: clamp(30px, 3.6vw, 50px); }
.studio-intake:has(.chat-transcript:not([hidden])) { margin-top: clamp(20px, 2.7vw, 35px); }
.studio-intake :focus-visible { outline-color: var(--green); }
.studio-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 16px;
  min-height: 44px;
  margin-top: 9px;
  padding: 6px 12px;
  color: var(--green-dark);
  text-decoration: none;
}
.studio-resume strong { text-decoration: underline; text-underline-offset: 4px; }
.studio-resume span { color: var(--muted); font-size: 13px; }
.studio-resume b { display: inline-block; margin-left: 4px; color: var(--green); }
.studio-resume:hover { background: var(--green-light); }

.studio-directory.story-journey { margin-top: clamp(22px, 3vw, 40px); }
.studio-directory .story-steps { border: 0; border-block: 1px solid var(--line-strong); background: transparent; }
.studio-directory .story-step + .story-step { border-color: var(--line); }
.studio-directory .story-step-link {
  grid-template-columns: 31px minmax(0, 1fr) 11px;
  align-content: center;
  align-items: center;
  gap: 3px 11px;
  padding: clamp(17px, 2.1vw, 28px) clamp(12px, 1.8vw, 26px);
}
.studio-directory .story-step-link > strong { grid-area: 1 / 2; font-size: clamp(16px, 1.52vw, 22px); }
.studio-directory .story-step-link::after {
  grid-area: 1 / 3;
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}
.studio-directory .story-step-caption { grid-area: 2 / 2 / 3 / 4; line-height: 1.6; }
.studio-glyph { position: relative; grid-area: 1 / 1; width: 28px; height: 28px; color: var(--green); }
.studio-glyph::before, .studio-glyph::after, .studio-glyph i { position: absolute; content: ""; }
.studio-glyph-cases::before, .studio-glyph-cases::after { inset: 4px 9px 5px 4px; border: 1.6px solid; transform: skewY(-8deg); }
.studio-glyph-cases::after { inset: 7px 5px 2px 8px; background: var(--page); }
.studio-glyph-cases i { z-index: 1; inset: 13px 8px auto 12px; height: 1px; background: currentColor; transform: skewY(-8deg); }
.studio-glyph-partners::before, .studio-glyph-partners::after {
  width: 11px; height: 11px; border: 1.6px solid; border-radius: 50%;
}
.studio-glyph-partners::before { left: 1px; top: 4px; }
.studio-glyph-partners::after { right: 1px; bottom: 3px; }
.studio-glyph-partners i { top: 13px; left: 9px; width: 11px; border-top: 1.6px solid; transform: rotate(32deg); }
.studio-glyph-projects::before { inset: 5px 2px 5px; border: 1.6px solid; }
.studio-glyph-projects::after { left: 8px; top: 11px; width: 12px; height: 1px; background: currentColor; box-shadow: 0 5px currentColor; }

/* Discovery uses reading-room lists. Editing areas retain a single, quiet writing surface. */
.product-main :is(.directory-heading, .activity-heading) {
  position: relative;
  margin-bottom: clamp(16px, 2vw, 28px);
  padding: 7px 0 clamp(15px, 2vw, 26px);
  border: 0;
  border-bottom: 1px solid var(--line-strong);
}
.product-main .page-heading h1 { font-size: clamp(32px, 3.8vw, 54px); letter-spacing: -.045em; }
.product-main .page-description { line-height: 1.7; }
.case-filters, .market-filter { background: #e9ecdf; border-radius: var(--panel-radius); border-color: transparent; }
:is(.case-filters, .market-filter) .field-input { background: var(--surface); border-color: #afbba9; }
:is(.case-filters, .market-filter) button[type="submit"] { background: var(--green-dark); border-color: var(--green-dark); }
.case-file-list { background: var(--surface); border-top: 2px solid var(--green); }
.case-file-list .case-file:hover, .case-file-list .case-file:focus-within { background: #edf1e6; }
.case-file-mark { --file-background: #e0ead7; --file-ink: #426046; border-radius: 4px 12px 3px 3px; }
.case-file[data-category="数据与系统"] .case-file-mark { --file-background: #dfebe8; --file-ink: #365d57; }
.case-file[data-category="知识与协作"] .case-file-mark { --file-background: #f5e6d0; --file-ink: #81572a; }
.case-file-arrow { border-radius: 50%; }
.case-reading .case-section:first-child, .relationship-origin, .connection-context { background: #e8ede0; }
.case-reading .case-story-plain > .case-section:first-child { background: transparent; }
.case-result .case-sections { border-color: #bdc9b8; }
.market-grid .market-card { gap: 13px; border-radius: var(--panel-radius); border-top-color: var(--green); }
.market-partner-mark { border-radius: 50%; background: #e3ecda; }
.product-project-current { background: var(--green-dark); border: 1px solid var(--green-dark); border-radius: var(--panel-radius); color: #fffef5; }
.product-project-current .project-current-label, .product-project-current .project-current-label span,
.product-project-current .project-source-link { color: #d5e2cd; }
.product-project-current .button-primary { color: var(--green-dark); background: #f1f4e6; border-color: #f1f4e6; }
.product-project-current .button-primary:hover { background: #d8e7c9; }
.product-project-current :focus-visible { outline-color: #d8e7c9; }
.case-editor, .production-panel { border-top: 3px solid var(--green); }
.case-editor { background: var(--surface); }
.product-main:has(.case-editor) { max-width: 1030px; }
.case-editor-actions { background: var(--surface); }

@media screen {
  .shell .sidebar { background: var(--rail); border-right: 0; padding-top: 36px; }
  .workflow-stage-group + .workflow-stage-group { margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--rail-line); }
  .workflow-stage-group .sidebar-section-label { color: var(--rail-muted); }
  .shell .sidebar .nav-link { min-height: 40px; color: var(--rail-ink); }
  .shell .sidebar .nav-link:is(:hover, :focus-visible) { background: #2b523e; }
  .shell .sidebar .nav-link[aria-current] { color: var(--rail); background: #e1ebd8; box-shadow: none; }
  .sidebar :focus-visible { outline-color: #e8e9bd; }
  .shell .topbar { background: #f0f0e5; }
  .shell .topbar .top-actions { margin-inline-start: auto; }
  .shell .workspace { padding-top: clamp(20px, 3vw, 38px); }
  .shell .page-heading h1 { font-family: var(--font-title); letter-spacing: -.035em; }
  .shell .prep-summary .panel-header { background: #e3eadb; border-color: #c5cfbe; }
  .shell :is(.prep-summary .panel-header .tag, .tag:not(.tag-warning)) { border-color: #c5cfbe; }
  .shell :is(.prep-preview-evidence, .prep-summary > .suggested-question, .guide-group h3) { border-color: #d5ddcc; background: #eff2e8; }
}
@media (max-width: 850px) and (min-width: 701px) {
  .studio-directory .story-step-link { grid-template-columns: minmax(0, 1fr) 12px; }
  .studio-directory .studio-glyph { display: none; }
  .studio-directory .story-step-link > strong { grid-area: 1 / 1; }
  .studio-directory .story-step-link::after { grid-area: 1 / 2; }
  .studio-directory .story-step-caption { grid-area: 2 / 1 / 3 / 3; }
}
@media (max-width: 760px) {
  .shell .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .shell .topbar .breadcrumbs { min-width: 0; }
}
@media (max-width: 700px) {
  :root { --nav-height: 55px; --page-gutter: clamp(15px, 4.4vw, 25px); }
  .product-brand { gap: 6px; }
  .product-mark { width: 29px; height: 29px; }
  .product-mark i { inset: 6px auto auto 6px; }
  .product-mark i:nth-child(2) { inset: 8px auto auto 11px; }
  .product-main { padding-top: 21px; }
  .studio-cover-copy { padding-block: clamp(32px, 6vw, 44px) clamp(52px, 8vw, 65px); }
  .story-hero.studio-cover h1 { font-size: clamp(33px, 6.5vw, 43px); line-height: 1.24; }
  .studio-cover .studio-scene { --scene-fade: linear-gradient(90deg, transparent, #000 98%); width: 51%; opacity: .67; }
  .studio-cover .studio-intro { margin-top: 12px; font-size: 14px; }
  .studio-directory .story-step + .story-step { border-top: 1px solid var(--line); border-left: 0; }
  .studio-directory .story-step-link { grid-template-columns: 28px minmax(0, 1fr) 12px; padding: 13px 5px; gap: 1px 10px; }
  .studio-directory .story-step-caption { font-size: 13px; }
  .project-phases { background: #f0f0e5; }
}
@media (max-width: 370px) {
  .product-header-inner { gap: 8px; }
  .product-header .product-mark { display: none; }
  .product-header .product-nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.button, .story-step-link) { transition: none; }
}
