.wx-workspace { max-width: 960px; margin: 0 auto; padding-bottom: 36px; }
.wx-workspace h1 { margin: 0 0 26px; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.035em; }
.wx-demo { margin: 0 0 24px; color: #98a5b8; font-size: 12px; }
.wx-compose { max-width: 680px; margin: clamp(36px, 10vh, 110px) auto 0; }
.wx-compose h1, .wx-loading { text-align: center; }
.wx-compose h1 label { font: inherit; color: inherit; margin: 0; }
.wx-workspace textarea { display: block; width: 100%; box-sizing: border-box; padding: 17px 19px; border: 1px solid #445063; border-radius: 15px; background: #121b28; color: #f1f6ff; font: inherit; resize: vertical; }
.wx-workspace textarea:focus { outline: 2px solid #70d9b0; outline-offset: 2px; }
.wx-workspace textarea::placeholder { color: #a3afc1; }
.wx-idea { padding: 10px 0; border: 0; background: transparent; color: #81e0ba; font: inherit; cursor: pointer; }
.wx-workspace fieldset { margin: 20px 0 24px; padding: 0; border: 0; }
.wx-workspace legend { margin-bottom: 10px; font-size: 13px; }
.wx-options, .wx-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wx-compose .wx-options label { position: relative; margin: 0; }
.wx-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wx-options label span, .wx-options > button { display: block; padding: 9px 15px; border: 1px solid #445063; border-radius: 9px; background: #172130; color: #e1eaf4; font: inherit; cursor: pointer; }
.wx-options input:checked + span, .wx-options [aria-pressed="true"] { border-color: #70d9b0; color: #a9f4d5; background: #18332e; }
.wx-options input:focus-visible + span { outline: 2px solid #70d9b0; outline-offset: 2px; }
.wx-start.button { min-width: 170px; }
.wx-spark { margin-bottom: 12px; color: #81e0ba; font-size: 48px; }
.wx-preview { width: min(100%, 430px); margin: 14px auto; }
.wx-preview header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wx-status, .wx-empty, .wx-card small { font-size: 13px; color: #a3afc1; }
.wx-cover { display: grid; align-content: center; gap: 10px; min-height: 114px; padding: 22px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(115deg, #263e32, #172922 72%, #35452f); color: #f4efdd; overflow-wrap: anywhere; }
.wx-cover span { font-size: 12px; letter-spacing: .22em; }
.wx-cover strong { font: 700 23px/1.45 "Songti SC", serif; }
.wx-phone { padding: 0 0 8px; border: 5px solid #303b4b; border-radius: 26px; background: white; color: #1a1a1a; overflow: hidden; }
.wx-phone-top { display: flex; justify-content: space-between; padding: 7px 14px; color: #454545; font-size: 16px; }
.wx-phone h2 { margin: 12px 18px; color: #121212; font-size: 22px; line-height: 1.45; overflow-wrap: anywhere; }
.wx-byline, .wx-sample-note { margin: 0 18px 12px; color: #576b95; font-size: 13px; }
.wx-phone iframe { display: block; width: 100%; height: min(62vh, 580px); border: 0; }
.wx-preview .wx-actions { justify-content: center; margin-top: 16px; }
.wx-cards, .wx-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 20px 0; }
.wx-card { padding: 20px; }
.wx-card h2 { margin: 0 0 10px; font-size: 16px; }
.wx-card strong { font-size: 32px; }
.wx-card p { overflow-wrap: anywhere; }
.wx-dialog { width: min(calc(100% - 32px), 490px); box-sizing: border-box; border: 1px solid #445063; border-radius: 18px; padding: 30px; background: #131d2a; color: #edf4ff; }
.wx-dialog::backdrop { background: #060b13b8; }
.wx-dialog h2 { margin: 0 30px 18px 0; }
.wx-dialog textarea { margin: 16px 0; }
.wx-close { position: absolute; top: 12px; right: 14px; background: transparent; color: inherit; border: 0; font-size: 24px; cursor: pointer; }

.wx-cover strong { display: block; margin-top: 8px; }
.wx-cover-photo { gap: 0; padding: 0; }
.wx-cover-photo img { display: block; width: 100%; max-height: 265px; object-fit: contain; background: #fff; }
.wx-cover-photo > div { padding: 16px 20px 20px; }

.wx-preview { width: min(100%, 460px); }
.wx-cover-editorial img { aspect-ratio: 2.25; max-height: none; object-fit: cover; }
.wx-cover-editorial > div { padding: 17px 21px 22px; }
.wx-phone { border-width: 3px; border-radius: 22px; }
.wx-phone h2 { margin: 14px 23px 10px; font-size: 23px; line-height: 1.45; }
.wx-byline { margin: 0 23px 16px; }
.wx-phone iframe { height: min(70vh, 670px); }

.wx-shoulder-inline { background: white; }
.wx-shoulder-inline > header { display: block; background: #18382b; color: #fffdf4; }
.wx-shoulder-inline .hero { display:block; width:100%; aspect-ratio:3/2; object-fit:cover; }
.wx-shoulder-inline .hero-copy { padding:19px 20px 24px; }
.wx-shoulder-inline .brand { margin:0 0 7px; font-size:12px; color:#d3e1d0; letter-spacing:.06em; }
.wx-shoulder-inline .hero-copy h1 { margin:0; font-size:26px; line-height:1.38; font-weight:740; color:#fffdf4; }
.wx-shoulder-inline article { padding-top:13px; }
.wx-shoulder-inline .wx-shoulder-style-1 { max-width:680px;margin:0 auto;background:#fff;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif; }
.wx-shoulder-inline .wx-shoulder-style-2 { background:#f1eee6;padding:20px;margin:0 0 24px; }
.wx-shoulder-inline .wx-shoulder-style-3 { margin:0 0 15px;font-size:16px;line-height:1.88;color:#3a413b; }
.wx-shoulder-inline .wx-shoulder-style-4 { color:#234538;border-bottom:1px solid #9cae9d;font-weight:600; }
.wx-shoulder-inline .wx-shoulder-style-5 { margin:29px 20px 0; }
.wx-shoulder-inline .wx-shoulder-style-6 { margin:0 0 15px;font-size:21px;line-height:1.38;font-weight:700;color:#18382b; }
.wx-shoulder-inline .wx-shoulder-style-7 { margin:22px 0 0; }
.wx-shoulder-inline .wx-shoulder-style-8 { display:block;max-width:100%;height:auto;margin:0 auto; }
.wx-shoulder-inline .wx-shoulder-style-9 { margin:9px 20px 0;font-size:12px;text-align:center;color:#5c665c; }
.wx-shoulder-inline .wx-shoulder-style-10 { margin:26px 20px 0;padding:17px 16px 8px;background:#edf1ea;border-radius:10px; }
.wx-shoulder-inline .wx-shoulder-style-11 { display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:11px 0;border-bottom:1px solid #dce3da; }
.wx-shoulder-inline .wx-shoulder-style-12 { font-size:14px;font-weight:600;color:#263328; }
.wx-shoulder-inline .wx-shoulder-style-13 { font-size:13px;color:#4a5d4e;flex-shrink:0; }
.wx-shoulder-inline .wx-shoulder-style-14 { margin:30px 20px 0;padding:17px 0 24px;border-top:1px solid #d7dfd6;color:#385043;font-size:13px;font-weight:600; }
.wx-full-preview { display:inline-block; margin-top:9px; font-size:13px; }
.wx-research { margin:14px 0; font-size:14px; }
.wx-research li { margin:8px 0; }
.wx-research small { display:block; opacity:.75; overflow-wrap:anywhere; }
.wx-article-summary { line-height:1.55; }
.wx-dialog details { margin:14px 0; }
.wx-dialog label { display:block; margin:10px 0; }
.wx-dialog select, .wx-dialog input { max-width:100%; }
.wx-article-reading { max-height:min(70vh, 680px); overflow:auto; background:white; color:#252525; padding:9px 0; }
.wx-article-reading img { max-width:100%; }
.wx-flow { max-width:1040px;margin:0 auto; }
.wx-flow>h1 { margin:0 0 18px;font-size:clamp(24px,4vw,34px); }
.wx-stages { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;padding:0;gap:11px;margin:0 0 20px; }
.wx-stages li { min-height:92px;display:grid;grid-template-columns:auto 1fr;align-items:start;gap:8px;padding:14px;background:var(--panel, #16221f);border:1px solid var(--line, #394843);border-radius:13px; }
.wx-stages .wx-step-current { border-color:#81b89c;background:#203a30; }
.wx-step-number { font:600 12px/1.6 ui-monospace,monospace;color:#a4c7b4; }
.wx-stages strong { font-size:14px;line-height:1.45; }
.wx-stages small { grid-column:2;color:#b0bfb7; }
.wx-flow-detail { padding:18px 22px;margin-bottom:24px; }
.wx-flow-detail h2 { margin:0 0 9px;font-size:20px; }
.wx-flow-detail li { margin:6px 0; }
.wx-flow-sources { max-height:170px;overflow:auto; }
@media(max-width:730px) {.wx-stages {grid-template-columns:repeat(2,minmax(0,1fr));}}
.wx-cover-options { display:flex;gap:8px;margin-top:10px;flex-wrap:wrap; }
.wx-cover-options button { width:115px; padding:3px;border-radius:7px;background:#21352e;border:1px solid #548069;cursor:pointer; }
.wx-cover-options img { width:100%;aspect-ratio:3/2;object-fit:cover;display:block; }

/* Keep the workspace palette on controls and the brand palette inside the article. */
.wx-home-header { padding: 12px 0 20px; }
.wx-home-header p { margin: 0 0 7px; color: var(--soft-ink); font-size: 13px; }
.wx-home-header h1 { margin: 0; }
.wx-home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.wx-workspace .wx-compose-card, .wx-workspace .wx-recent { width: auto; max-width: none; margin: 0; padding: clamp(16px, 3vw, 26px); }
.wx-compose-card h2, .wx-recent h2 { margin: 0 0 14px; font-size: 18px; }
.wx-compose-card label { color: inherit; }
.wx-next { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; margin-bottom: 16px; border-color: #405486; }
.wx-next p, .wx-recent li p { margin: 4px 0 0; color: var(--soft-ink); font-size: 13px; }
.wx-recent ul { margin: 0; padding: 0; list-style: none; }
.wx-recent li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.wx-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.wx-workspace textarea, .wx-dialog { background: var(--surface); border-color: var(--border); color: var(--ink); }
.wx-workspace textarea:focus, .wx-options input:focus-visible + span { outline-color: var(--accent-strong); }
.wx-idea, .wx-spark { color: #a8beff; }
.wx-options > button { background: var(--surface-raised); border-color: var(--border); }
.wx-options [aria-pressed="true"] { color: #c7d5ff; background: #242d49; border-color: var(--accent-strong); }
.wx-stages li { background: var(--surface-raised); border-color: var(--border); }
.wx-stages .wx-step-current { border-color: var(--accent-strong); background: #222b43; }
.wx-step-number { color: #a8beff; }
.wx-stages small { color: var(--soft-ink); }
.wx-editor-dialog { width: min(calc(100% - 32px), 920px); max-width: none; max-height: calc(100dvh - 32px); overflow: auto; }
.wx-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.wx-editor-grid h3 { margin: 0 0 10px; }
.wx-editor-preview .wx-article-reading { max-height: min(48vh, 440px); }
.wx-phone { border-color: #303030; }
.wx-phone h2 { color: #244638; font-family: "Songti SC", SimSun, serif; }
@media (max-width: 690px) {
  .wx-home-grid, .wx-editor-grid { grid-template-columns: minmax(0, 1fr); }
  .wx-editor-dialog { padding: 18px; }
}
