/* Heymy / Dot & Space. Private operation interface only.
   A 1:2 field, a common circle grammar, and Chinese-first reading measures. */
.mp-workspace {
  --ws-paper: #f8f7f3;
  --ws-surface: #fcfbf8;
  --ws-ink: #242424;
  --ws-dark: #252525;
  --ws-on-dark: #f1f0e9;
  --ws-dark-muted: #c2c2ba;
  --ws-secondary: #5d605b;
  --ws-faint: #7a7d76;
  --ws-line: #d6d7d0;
  --ws-soft: #eeeee7;
  --ws-focus: #424e49;
  --ws-danger: #98402e;
  --ws-ui: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  --ws-title-size: clamp(30px,2.5vw,38px);
  --ws-body-size: 17px;
  --ws-body-leading: 1.9;
  --ws-tool-size: 15px;
  --ws-caption-size: 14px;
  --ws-radius: 16px;
  --ws-control-radius: 6px;
  --ws-image-radius: 4px;
  --ws-gutter: clamp(32px,5.3vw,88px);
  --ws-rail-gutter: clamp(32px,4.6vw,76px);
  --ws-gap: 32px;
  --ws-mobile-nav: 64px;
  --ws-ease: cubic-bezier(.22,1,.36,1);
  --ws-micro: 200ms;
  --mp-bg: var(--ws-paper); --mp-surface: var(--ws-surface); --mp-soft: var(--ws-soft);
  --mp-ink: var(--ws-ink); --mp-muted: var(--ws-secondary); --mp-accent: var(--ws-ink);
  --mp-border: var(--ws-line); --mp-shadow: none;
  background: var(--ws-paper); color: var(--ws-ink); font-family: var(--ws-ui);
  min-height: 100dvh; isolation: isolate;
}
/* No grain layer: the division and typographic measure carry the identity. */
.mp-workspace::before { content:none; }
.mp-workspace :is(button,a,summary) { transition: color var(--ws-micro) var(--ws-ease),background-color var(--ws-micro) var(--ws-ease),border-color var(--ws-micro) var(--ws-ease),opacity var(--ws-micro) var(--ws-ease); }
.mp-workspace :is(button,a,input,textarea,summary):focus-visible { outline:1px solid var(--ws-focus); outline-offset:4px; }
.mp-workspace :is(button,input,textarea,summary):disabled { opacity:.6; }
.mp-workspace svg.mp-glyph { fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.mp-workspace .mp-button { min-height:46px; padding:10px 17px; border:1px solid transparent; border-radius:var(--ws-control-radius); background:transparent; color:var(--ws-ink); font-size:var(--ws-tool-size); font-weight:500; box-shadow:none; }
@media(hover:hover){.mp-workspace .mp-button:hover{background:var(--ws-soft); border-color:transparent; transform:none;}}
.mp-workspace .mp-primary { background:var(--ws-ink); color:var(--ws-paper); border-color:var(--ws-ink); }
@media(hover:hover){.mp-workspace .mp-primary:hover{background:#424642; border-color:#424642;}}
.mp-workspace .mp-button svg { width:20px; height:20px; }
.mp-workspace .mp-danger { color:var(--ws-danger); }
/* Two adjoining planes, no outer frame and no additional sidebar container. */
.mp-workspace .mp-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); min-height:100dvh; }
.mp-workspace .mp-sidebar { position:sticky; inset:auto; top:0; width:auto; height:100dvh; min-height:660px; display:flex; flex-direction:column; align-self:start; padding:42px var(--ws-rail-gutter) 30px; gap:0; background:var(--ws-dark); color:var(--ws-on-dark); border:0; backdrop-filter:none; z-index:10; }
.mp-workspace .mp-sidebar :is(a,button):focus-visible { outline-color:var(--ws-on-dark); }
.mp-workspace .mp-workspace-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mp-workspace .mp-brand { color:var(--ws-on-dark); font-size:27px; font-weight:650; letter-spacing:-1.2px; line-height:1.5; min-height:44px; }
.mp-workspace .mp-mobile-account,.mp-workspace .mp-mobile-title,.mp-workspace .mp-mobile-signature { display:none; }
.mp-workspace .mp-space-identity { display:block; padding:0; margin:64px 0 28px; }
.mp-workspace .mp-space-identity strong { color:var(--ws-on-dark); display:block; max-width:none; font-weight:450; font-size:20px; line-height:1.6; white-space:normal; overflow-wrap:anywhere; }
.mp-workspace .mp-side-nav { display:grid; grid-template-columns:1fr; gap:9px; padding:0; border:0; background:none; width:auto; height:auto; position:relative; inset:auto; }
.mp-workspace .mp-nav-item { position:relative; display:flex; flex-direction:row; align-items:center; gap:16px; min-height:48px; padding:9px 0; border:0; border-radius:0; background:transparent; color:var(--ws-dark-muted); font-size:17px; line-height:1.5; font-weight:400; text-align:left; }
.mp-workspace .mp-nav-item svg { width:22px; height:22px; }
.mp-workspace .mp-nav-item[aria-current=page] { background:none; color:var(--ws-on-dark); }
@media(hover:hover){.mp-workspace .mp-nav-item:hover{background:none; color:var(--ws-on-dark);}}
.mp-workspace .mp-nav-item[aria-current=page] { font-weight:550; }
.mp-workspace .mp-nav-item[aria-current=page]::before { content:""; position:absolute; width:4px; height:4px; border-radius:50%; background:currentColor; left:-20px; top:calc(50% - 2px); }
.mp-workspace .mp-identity-mark { margin:auto -32px 28px; padding-top:52px; }
.mp-workspace .mp-dot-signature { display:block; width:100%; max-width:340px; height:auto; margin:auto; color:var(--ws-on-dark); }
.mp-workspace .mp-sidebar-bottom { display:grid; grid-template-columns:1fr 1fr; gap:5px 14px; margin:0; padding:0; border:0; }
.mp-workspace .mp-sidebar-bottom :is(.mp-nav-item,.mp-button) { color:var(--ws-dark-muted); font-size:var(--ws-caption-size); font-weight:400; gap:8px; min-height:44px; padding:6px 0; justify-content:flex-start; white-space:normal; text-align:left; }
@media(hover:hover){.mp-workspace .mp-sidebar-bottom .mp-button:hover{color:var(--ws-on-dark); background:transparent;}}
.mp-workspace .mp-sidebar-bottom svg { width:16px; height:16px; }
.mp-workspace .mp-sidebar-bottom .mp-signout { grid-column:1/-1; margin-top:4px; }
.mp-workspace :is(.mp-work-main,.mp-entry-main) { width:100%; min-width:0; max-width:none; margin:0; padding:102px var(--ws-gutter) 56px; }
.mp-workspace :is(.mp-work-main,.mp-entry-main)>* { max-width:880px; margin-left:auto; margin-right:auto; }
/* A single writing field, with media in the next reading band. */
.mp-workspace .mp-write-stage { width:100%; }
.mp-workspace .mp-editor-paper { display:block; padding:0; background:none; border:0; border-radius:0; box-shadow:none; }
.mp-workspace .mp-writing-column,.mp-workspace .mp-materials-column { min-width:0; }
.mp-workspace .mp-compose-title { display:block; width:100%; font-family:var(--ws-ui); font-size:var(--ws-title-size); line-height:1.5; font-weight:550; letter-spacing:0; color:var(--ws-ink); caret-color:var(--ws-ink); margin:0 0 24px; padding:0 0 12px; border:0; border-radius:0; background:none; }
.mp-workspace .mp-compose-body { display:block; width:100%; padding:0 0 12px; min-height:210px; max-height:none; background:none; border:0; border-radius:0; color:var(--ws-ink); font-family:var(--ws-ui); font-size:var(--ws-body-size); font-weight:400; line-height:var(--ws-body-leading); letter-spacing:0; resize:vertical; caret-color:var(--ws-ink); tab-size:4; }
@supports(field-sizing:content) {
 .mp-workspace .mp-compose-body { field-sizing:content; }
}
.mp-workspace .mp-compose-title::placeholder { color:var(--ws-faint); opacity:1; font-weight:450; }
.mp-workspace .mp-compose-body::placeholder { color:var(--ws-secondary); opacity:1; }
.mp-workspace :is(.mp-compose-title,.mp-compose-body):focus-visible { outline:none; box-shadow:inset 0 -1px var(--ws-line); }
.mp-workspace .mp-writing-tools { gap:12px; flex-wrap:wrap; min-height:46px; padding:0; margin:8px 0 0; }
.mp-workspace .mp-ai-button { background:transparent; border:0; border-radius:var(--ws-control-radius); min-height:44px; padding:4px 0; color:var(--ws-ink); font-size:var(--ws-tool-size); gap:10px; }
@media(hover:hover){.mp-workspace .mp-ai-button:hover{text-decoration:underline; text-underline-offset:5px;}}
.mp-workspace .mp-ai-button svg { width:18px; height:18px; }
.mp-workspace .mp-organize-hint { display:none; }
.mp-workspace .mp-writing-tools small { margin-left:auto; font-size:var(--ws-caption-size); color:var(--ws-secondary); font-variant-numeric:tabular-nums; }
.mp-workspace .mp-writing-tools .mp-button { font-size:var(--ws-caption-size); padding:4px 8px; }
.mp-workspace .mp-materials-column { padding-top:28px; }
.mp-workspace .mp-photo-composer { border:0; padding:0; margin:0; }
.mp-workspace .mp-photo-heading { display:flex; align-items:center; justify-content:flex-start; gap:16px; max-width:none; margin:0 0 14px; padding:0; border:0; color:var(--ws-secondary); }
.mp-workspace .mp-photo-heading span { font-size:var(--ws-tool-size); font-weight:400; }
.mp-workspace .mp-photo-heading small { font-size:var(--ws-caption-size); font-variant-numeric:tabular-nums; }
.mp-workspace .mp-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,112px)); gap:10px; margin:0; width:100%; max-width:none; }
.mp-workspace .mp-photo-grid .mp-attachment { border:0; border-radius:var(--ws-image-radius); padding:0; width:auto; min-width:0; }
.mp-workspace .mp-photo-grid .mp-photo-preview,.mp-workspace .mp-photo-grid img { border-radius:var(--ws-image-radius); }
.mp-workspace .mp-photo-add { border:1px solid #bfc3b9; border-radius:var(--ws-image-radius); background:none; color:var(--ws-ink); }
@media(hover:hover){.mp-workspace .mp-photo-add:hover{background:var(--ws-soft); border-color:var(--ws-secondary);}}
.mp-workspace .mp-photo-add svg { width:27px; height:27px; stroke-width:1.3; }
.mp-workspace .mp-photo-add span { font-size:13px; }
.mp-workspace .mp-photo-grid .mp-remove { width:44px; height:44px; right:0; top:0; border-radius:0 4px 0 4px; background:#fcfbf8ec; color:var(--ws-ink); }
.mp-workspace .mp-photo-grid .mp-photo-state { font-size:12px; background:#242424d9; color:#fff; padding:4px; }
.mp-workspace .mp-photo-grid .mp-retry { color:var(--ws-danger); font-size:14px; min-height:44px; }
.mp-workspace .mp-link-editor { border:0; padding:0; margin:18px 0 0; max-width:640px; }
.mp-workspace .mp-add-link { color:var(--ws-ink); font-size:var(--ws-tool-size); min-height:44px; padding:0; gap:10px; }
.mp-workspace .mp-add-link svg { width:20px; height:20px; }
@media(hover:hover){.mp-workspace .mp-add-link:hover{text-decoration:underline; text-underline-offset:5px;}}
.mp-workspace #mp-links { display:grid; gap:16px; }
.mp-workspace .mp-link-row { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; padding:10px 0 0; margin:0; border:0; border-top:1px solid var(--ws-line); border-radius:0; background:none; }
.mp-workspace .mp-link-row input { background:transparent; color:var(--ws-ink); border:0; border-bottom:1px solid var(--ws-line); border-radius:0; padding:10px 0; min-width:0; width:100%; font-size:16px; }
.mp-workspace .mp-link-row button { width:44px; min-height:44px; grid-column:2; align-self:center; }
.mp-workspace .mp-help { font-size:var(--ws-caption-size); color:var(--ws-secondary); line-height:1.8; }
.mp-workspace .mp-error { color:var(--ws-danger); font-size:var(--ws-caption-size); }
.mp-workspace .mp-error:empty,.mp-workspace [data-save-state]:empty { display:none; }
.mp-workspace .mp-write-footer { display:flex; gap:16px; border-top:1px solid var(--ws-line); margin:28px 0 0; padding:18px 0 0; }
.mp-workspace .mp-write-footer>div { display:flex; gap:14px; margin-left:auto; }
.mp-workspace .mp-draft-banner { border:0; border-bottom:1px solid var(--ws-line); border-radius:0; padding:14px 0; background:none; margin-bottom:24px; font-size:var(--ws-caption-size); }
.mp-workspace .mp-drop-active { outline:1px dashed var(--ws-focus); outline-offset:6px; background:transparent; }
/* Formats are a row of alternatives, followed by the unchanged public preview. */
.mp-workspace :is(.mp-page-heading,.mp-compose-heading) { margin:0 0 36px; }
.mp-workspace :is(.mp-page-heading,.mp-compose-heading) h1 { font-family:var(--ws-ui); font-size:32px; line-height:1.4; font-weight:550; letter-spacing:0; margin:0 0 14px; }
.mp-workspace :is(.mp-page-heading,.mp-compose-heading) p { font-size:var(--ws-tool-size); color:var(--ws-secondary); line-height:1.8; margin:0; }
.mp-workspace .mp-style-stage { display:flex; flex-direction:column; gap:28px; align-items:stretch; }
.mp-workspace .mp-style-controls { display:contents; }
.mp-workspace .mp-style-controls>h2 { font-size:var(--ws-tool-size); font-weight:500; margin:0; }
.mp-workspace .mp-component-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin:0; }
.mp-workspace .mp-component-card { position:relative; display:block; min-width:0; padding:12px 0 18px; border:0; border-bottom:1px solid var(--ws-line); border-radius:0; background:transparent; text-align:left; box-shadow:none; transform:none; }
.mp-workspace .mp-component-card[aria-pressed=true] { border:0; border-bottom:1px solid var(--ws-ink); padding:12px 0 18px; background:none; box-shadow:none; }
@media(hover:hover){.mp-workspace .mp-component-card:hover{transform:none; background:transparent; border-color:var(--ws-secondary);}}
.mp-workspace .mp-component-sample { width:46px; height:54px; }
.mp-workspace .mp-component-card strong { font-size:17px; font-weight:500; }
.mp-workspace .mp-component-card small { font-size:var(--ws-caption-size); line-height:1.7; color:var(--ws-secondary); }
.mp-workspace .mp-component-check { position:absolute; top:17px; right:3px; }
.mp-workspace .mp-component-check svg { width:18px; height:18px; }
.mp-workspace .mp-style-controls>.mp-help { margin:0; }
.mp-workspace .mp-current-template,.mp-workspace .mp-space-setup { width:100%; margin:0; border:0; border-top:1px solid var(--ws-line); border-radius:0; background:none; padding:16px 0 0; }
.mp-workspace .mp-current-template { gap:12px; flex-wrap:wrap; }
.mp-workspace .mp-current-template :is(span,strong) { font-size:var(--ws-caption-size); }
.mp-workspace .mp-first-template { border:0; border-top:1px solid var(--ws-line); padding:18px 0; border-radius:0; background:none; }
.mp-workspace .mp-first-template summary { min-height:44px; font-size:var(--ws-tool-size); align-content:center; }
.mp-workspace .mp-style-actions { order:4; display:flex; flex-wrap:wrap; gap:8px; width:100%; position:sticky; bottom:0; z-index:5; margin:0; padding:14px 0; background:var(--ws-paper); border:0; border-top:1px solid var(--ws-line); border-radius:0; box-shadow:none; }
.mp-workspace .mp-style-actions .mp-button { width:auto; flex:0 0 auto; }
.mp-workspace .mp-style-actions [data-action=compose-back] { margin-right:auto; }
.mp-workspace .mp-style-controls>.mp-error { order:3; }
.mp-workspace .mp-preview-wrap { order:2; position:static; width:100%; }
/* Keep the published theme and font inside the preview, independent of tools. */
.mp-workspace .mp-preview-wrap {
  --mp-bg: #f7f8f4; --mp-surface: #fff; --mp-soft: #eef1e8; --mp-ink: #29352e;
  --mp-muted: #7a847c; --mp-accent: #435c49; --mp-border: #e5e8df; --mp-tint: #dae2ce;
  --mp-theme: #ede9df; --mp-shadow: 0 12px 50px #23392d09;
  background: #eeece5;
  border-radius: var(--ws-radius);
  padding: 22px;
  top: 24px;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--mp-ink);
}
html[data-museum-theme=sage] .mp-workspace .mp-preview-wrap { --mp-bg:#f4f7f2; --mp-soft:#e8f0e4; --mp-tint:#cbdcc4; --mp-theme:#dce8d5; --mp-accent:#416349; }
html[data-museum-theme=sky] .mp-workspace .mp-preview-wrap { --mp-bg:#f3f7f9; --mp-soft:#e9f0f4; --mp-tint:#cbdde7; --mp-theme:#d9e7ef; --mp-accent:#416276; --mp-ink:#2a3b44; --mp-border:#e1e8ec; }
.mp-workspace .mp-preview-label { color: var(--ws-secondary); font-family: var(--ws-ui); font-size: var(--ws-caption-size); margin-bottom: 18px; }
.mp-workspace .mp-preview-label small { font-size: var(--ws-tool-size); }
/* Management, template catalogue, and correspondence share the same margins. */
.mp-workspace .mp-work-columns { grid-template-columns: minmax(0,1fr); gap: var(--ws-gap); }
.mp-workspace .mp-personal-banner { border: 0; background: none; border-radius: 0; padding: 0 0 28px; margin: 0; }
.mp-workspace .mp-personal-banner::after { content: none; }
.mp-workspace .mp-personal-banner h2 { font-family: var(--ws-ui); font-size: 26px; line-height: 1.6; }
.mp-workspace .mp-personal-banner p { max-width: none; font-size: var(--ws-tool-size); }
.mp-workspace .mp-personal-banner p:empty { display: none; }
.mp-workspace .mp-banner-action { font-size: var(--ws-caption-size); min-height: 44px; margin-top: 8px; }
.mp-workspace :is(.mp-tab,.mp-refresh) { font-size: var(--ws-caption-size); min-height: 44px; }
.mp-workspace .mp-tab { border-width: 1px; padding-bottom: 14px; }
.mp-workspace .mp-refresh { margin-bottom: 4px; }
.mp-workspace .mp-work-columns .mp-post-list { gap: 0; }
.mp-workspace .mp-work-columns .mp-post { border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0; padding: 24px 0 32px; background: transparent; }
.mp-workspace .mp-work-columns .mp-post h2 { font-family: var(--ws-ui); font-size: 28px; font-weight: 600; letter-spacing: 0; }
.mp-workspace .mp-work-columns .mp-post-body { font-size: 16px; color: var(--ws-ink); }
.mp-workspace .mp-work-columns .mp-post-meta { font-size: var(--ws-tool-size); flex-wrap: wrap; }
.mp-workspace .mp-work-columns .mp-post-meta .mp-status { font-size: var(--ws-caption-size); background: none; border: 0; padding: 0; }
.mp-workspace .mp-work-columns .mp-post-actions { font-size: var(--ws-caption-size); border: 0; padding: 0; flex-wrap: wrap; gap: 8px 22px; }
.mp-workspace .mp-work-columns .mp-post-actions button { min-height: 44px; }
.mp-workspace .mp-work-columns .mp-post-media img { border-radius: var(--ws-image-radius); }
.mp-workspace .mp-side-card { border: 0; border-top: 1px solid var(--ws-line); border-radius: 0; background: none; padding: 21px 0; margin: 0; }
.mp-workspace .mp-side-card h2 { font-size: var(--ws-tool-size); font-weight: 500; line-height: 1.8; margin-bottom: 12px; }
.mp-workspace .mp-side-card p { font-size: var(--ws-caption-size); }
.mp-workspace .mp-side-card .mp-button { justify-content: flex-start; padding-left: 0; font-size: var(--ws-caption-size); min-height: 44px; }
.mp-workspace .mp-empty { border: 0; background: none; text-align: left; align-items: flex-start; padding: 42px 0; }
.mp-workspace .mp-empty-icon { display: none; }
.mp-workspace .mp-empty h2 { font-size: 22px; line-height: 1.65; }
.mp-workspace .mp-empty p { font-size: var(--ws-tool-size); max-width: 32em; }
.mp-workspace .mp-theme-grid { gap: 24px; }
.mp-workspace .mp-theme-card { border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0; padding: 0; background: none; box-shadow: none; }
@media(hover:hover){.mp-workspace .mp-theme-card:hover{transform: none; box-shadow: none; border-color: var(--ws-secondary);}}
.mp-workspace .mp-theme-card[aria-pressed=true] { border: 0; border-bottom: 1px solid var(--ws-ink); padding: 0; box-shadow: none; }
.mp-workspace .mp-theme-preview { border-radius: var(--ws-image-radius); }
.mp-workspace .mp-theme-label,.mp-workspace .mp-appearance .mp-theme-label { padding: 20px 0; }
.mp-workspace .mp-theme-label small { font-size: var(--ws-tool-size); line-height: 1.8; }
.mp-workspace .mp-theme-dots { display: none; }
.mp-workspace .mp-theme-card .mp-check { background: var(--ws-ink); border-radius: var(--ws-control-radius); }
.mp-workspace .mp-settings-form { max-width: 680px; gap: 28px; }
.mp-workspace .mp-settings-divider { margin: 12px 0 4px; }
.mp-workspace .mp-field { font-size: var(--ws-tool-size); gap: 12px; }
.mp-workspace .mp-field :is(input,textarea) { color: var(--ws-ink); font-size: 16px; background: transparent; border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0; padding: 12px 0; }
.mp-workspace .mp-field :is(input,textarea):focus-visible { outline: none; box-shadow: 0 1px var(--ws-focus); border-color: var(--ws-focus); }
.mp-workspace .mp-inbox { border: 0; border-top: 1px solid var(--ws-line); border-radius: 0; background: transparent; grid-template-columns: 210px minmax(0,1fr); }
.mp-workspace .mp-thread-choice { padding: 22px 18px 22px 0; }
.mp-workspace .mp-thread-choice strong { font-size: 16px; }
.mp-workspace .mp-thread-choice p,.mp-workspace .mp-thread-choice time { font-size: var(--ws-tool-size); }
.mp-workspace .mp-thread-choice[aria-current=true] { background: var(--ws-soft); padding-left: 12px; }
.mp-workspace .mp-conversation .mp-empty { padding: 48px 28px; }
.mp-workspace .mp-conversation-header h2 { font-size: 18px; }
.mp-workspace .mp-conversation-header p,.mp-workspace .mp-message small,.mp-workspace .mp-reply-form footer span { font-size: var(--ws-tool-size); color: var(--ws-secondary); }
.mp-workspace .mp-message .mp-bubble { font-size: 16px; line-height: 1.85; border: 0; border-radius: var(--ws-control-radius); }
.mp-workspace .mp-reply-form textarea { font-size: 16px; }
.mp-workspace .mp-reply-form .mp-button { min-height: 44px; font-size: var(--ws-tool-size); }
.mp-workspace .mp-modal-backdrop { background: #26251f40; backdrop-filter: none; }
.mp-workspace .mp-dialog { background: var(--ws-surface); border-radius: var(--ws-radius); box-shadow: 0 20px 70px #26251f18; }
.mp-workspace .mp-dialog-header { padding: 28px; }
.mp-workspace .mp-dialog-header h2 { font-size: 26px; font-weight: 500; letter-spacing: 0; }
.mp-workspace .mp-dialog-header p { font-size: var(--ws-caption-size); line-height: 1.8; }
.mp-workspace .mp-dialog-footer { background: transparent; flex-wrap: wrap; }
.mp-workspace .mp-dialog-footer .mp-help { font-size: var(--ws-tool-size); }
.mp-workspace .mp-auth-tabs button { font-size: var(--ws-tool-size); min-height: 44px; border-bottom-width: 1px; }
.mp-workspace .mp-checkbox { font-size: var(--ws-caption-size); line-height: 1.8; }
.mp-workspace .mp-toast { color: var(--ws-surface); background: var(--ws-ink); border-radius: var(--ws-control-radius); font-size: var(--ws-tool-size); }
/* Sharing and text review use the same open, typographic controls. */
.mp-workspace .mp-share-choices { gap: 24px; }
.mp-workspace .mp-share-choices button { border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0; background: transparent; padding: 16px 0; box-shadow: none; }
.mp-workspace .mp-share-choices button[aria-pressed=true] { border-color: var(--ws-ink); background: transparent; box-shadow: none; }
.mp-workspace .mp-share-choices span { font-size: var(--ws-caption-size); }
.mp-workspace .mp-share-footer > .mp-button { font-size: var(--ws-tool-size); min-height: 46px; }
.mp-workspace .mp-share-sheet .mp-help { font-size: var(--ws-tool-size); }

.mp-workspace .mp-work-aside { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.mp-workspace .mp-heading-actions { flex-wrap:wrap; }
.mp-workspace .mp-page-heading { flex-wrap:wrap; align-items:flex-start; }
@media(min-width:1800px) { .mp-workspace .mp-sidebar { padding-left:calc((100vw / 3 - 440px) / 2); padding-right:calc((100vw / 3 - 440px) / 2); } }
@media(min-width:901px) and (max-height:740px) { .mp-workspace .mp-sidebar { min-height:0; overflow-y:auto; padding-top:24px; padding-bottom:16px; } .mp-workspace .mp-space-identity { margin-top:30px; margin-bottom:20px; } .mp-workspace .mp-identity-mark { padding-top:24px; margin-bottom:8px; } }
@media(max-width:1100px) and (min-width:901px) { .mp-workspace { --ws-gutter:32px; --ws-rail-gutter:32px; } .mp-workspace .mp-sidebar-bottom { grid-template-columns:1fr; gap:0; } .mp-workspace .mp-identity-mark { padding-top:32px; } .mp-workspace .mp-inbox { grid-template-columns:170px minmax(0,1fr); } }
/* Mobile uses a light, shallow navigation plane, not a scaled dark sidebar. */
@media(max-width:900px) {
 .mp-workspace { --ws-gutter:28px; --ws-title-size:32px; }
 .mp-workspace .mp-layout { display:block; }
 .mp-workspace .mp-sidebar { position:static; height:auto; min-height:0; width:auto; padding:0; display:block; background:transparent; color:var(--ws-ink); }
 .mp-workspace .mp-workspace-header { padding:12px var(--ws-gutter); min-height:68px; gap:12px; }
 .mp-workspace .mp-workspace-header>.mp-brand { display:none; }
 .mp-workspace .mp-mobile-title { display:flex; align-items:center; gap:8px; min-width:0; min-height:44px; font-size:var(--ws-caption-size); color:var(--ws-secondary); text-decoration:none; }
 .mp-workspace .mp-mobile-title span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .mp-workspace .mp-mobile-title svg { width:16px; height:16px; flex-shrink:0; }
 .mp-workspace .mp-mobile-account { display:block; flex-shrink:0; }
 .mp-workspace .mp-mobile-account .mp-button { padding:6px 0 6px 12px; min-height:44px; font-size:var(--ws-caption-size); }
 .mp-workspace .mp-sidebar :is(a,button):focus-visible { outline-color:var(--ws-focus); }
 .mp-workspace .mp-space-identity,.mp-workspace .mp-identity-mark,.mp-workspace .mp-sidebar-bottom { display:none; }
 .mp-workspace .mp-side-nav { position:fixed; inset:auto 0 0; z-index:30; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; height:calc(var(--ws-mobile-nav) + env(safe-area-inset-bottom,0px)); padding:4px 12px calc(4px + env(safe-area-inset-bottom,0px)); background:#eeeee8; border:0; }
 .mp-workspace .mp-nav-item { flex-direction:column; align-items:center; justify-content:center; padding:5px 2px; min-height:52px; gap:3px; font-size:13px; color:var(--ws-secondary); }
 .mp-workspace .mp-nav-item svg { width:20px; height:20px; }
 .mp-workspace .mp-nav-item[aria-current=page] { color:var(--ws-ink); }
@media(hover:hover){.mp-workspace .mp-nav-item:hover{color:var(--ws-ink);}}
 .mp-workspace .mp-nav-item[aria-current=page]::before { width:3px; height:3px; left:calc(50% + 15px); top:10px; }
 .mp-workspace .mp-mobile-signature { display:block; position:absolute; top:-28px; left:20px; width:150px; height:54px; pointer-events:none; user-select:none; }
 .mp-workspace .mp-mobile-signature span { position:absolute; inset:0; font-size:48px; line-height:1; font-weight:650; letter-spacing:-2.8px; color:var(--ws-ink); }
 .mp-workspace .mp-mobile-signature span:first-child { clip-path:inset(0 0 26px); opacity:.10; }
 .mp-workspace .mp-mobile-signature span:last-child { clip-path:inset(28px 0 0); opacity:.06; }
 .mp-workspace :is(.mp-work-main,.mp-entry-main) { padding:30px var(--ws-gutter) calc(118px + env(safe-area-inset-bottom,0px)); }
 .mp-workspace .mp-compose-title { margin-bottom:22px; padding-bottom:8px; }
 .mp-workspace .mp-compose-body { min-height:220px; }
 .mp-workspace .mp-materials-column { padding-top:24px; }
 .mp-workspace .mp-photo-grid { grid-template-columns:repeat(3,minmax(0,112px)); gap:10px; }
 .mp-workspace .mp-write-footer { position:sticky; bottom:calc(var(--ws-mobile-nav) + 28px + env(safe-area-inset-bottom,0px)); z-index:20; background:var(--ws-paper); margin-top:28px; padding:14px 0 12px; }
 .mp-workspace :is(.mp-write-footer,.mp-style-actions)::after { content:""; position:absolute; top:100%; left:calc(-1 * var(--ws-gutter)); right:calc(-1 * var(--ws-gutter)); height:28px; background:var(--ws-paper); pointer-events:none; }
 .mp-workspace .mp-write-footer>div { justify-content:space-between; gap:10px; }
 .mp-workspace .mp-style-actions { bottom:calc(var(--ws-mobile-nav) + 28px + env(safe-area-inset-bottom,0px)); }
 .mp-workspace .mp-style-actions .mp-button { width:auto; flex:1 1 0; font-size:14px; padding:10px 8px; gap:5px; }
 .mp-workspace .mp-style-actions .mp-primary { flex:1 1 auto; }
 .mp-workspace .mp-component-options { gap:16px; }
 .mp-workspace :is(.mp-page-heading,.mp-compose-heading) { margin-bottom:28px; }
 .mp-workspace :is(.mp-page-heading,.mp-compose-heading) h1 { font-size:30px; }
 .mp-workspace .mp-inbox { grid-template-columns:1fr; }
 .mp-workspace .mp-inbox.has-thread .mp-threads { display:none; }
 .mp-workspace .mp-inbox:not(.has-thread) .mp-conversation { display:none; }
 .mp-workspace .mp-mobile-back { display:flex; }
 .mp-workspace .mp-toast { bottom:calc(94px + env(safe-area-inset-bottom,0px)); }
}
@media(max-width:560px) {
 .mp-workspace { --ws-gutter:22px; --ws-title-size:28px; --ws-body-size:16px; --ws-body-leading:1.95; }
 .mp-workspace .mp-compose-body { min-height:240px; }
 .mp-workspace .mp-compose-title { font-size:var(--ws-title-size); }
 .mp-workspace .mp-writing-tools { gap:8px; }
 .mp-workspace .mp-ai-button { font-size:14px; }
 .mp-workspace .mp-write-footer { flex-direction:column; align-items:stretch; }
 .mp-workspace .mp-write-footer>div { margin:0; }
 .mp-workspace .mp-write-footer .mp-button { padding:10px 10px; font-size:14px; }
 .mp-workspace .mp-write-footer .mp-primary { flex:1; }
 .mp-workspace .mp-component-options { gap:12px; }
 .mp-workspace .mp-component-card strong { font-size:16px; }
 .mp-workspace .mp-component-card small { font-size:13px; }
 .mp-workspace .mp-preview-wrap { padding:16px; }
 .mp-workspace .mp-preview-label { flex-wrap:wrap; gap:7px; }
 .mp-workspace .mp-style-actions { gap:4px; }
 .mp-workspace .mp-style-actions [data-action=compose-back] { flex:1 1 auto; }
 .mp-workspace .mp-style-actions .mp-primary { flex-basis:100%; }
 .mp-workspace .mp-work-aside { grid-template-columns:1fr; gap:0; }
 .mp-workspace .mp-heading-actions { width:100%; display:flex; gap:8px; }
 .mp-workspace .mp-heading-actions .mp-button { padding:10px 12px; }
 .mp-workspace .mp-work-columns .mp-post h2 { font-size:25px; }
 .mp-workspace .mp-work-columns .mp-post-meta .mp-status { margin-left:0; }
 .mp-workspace .mp-theme-grid { grid-template-columns:1fr; gap:24px; }
 .mp-workspace .mp-theme-card { display:grid; grid-template-columns:46% minmax(0,1fr); gap:18px; align-items:center; padding-bottom:20px; }
 .mp-workspace .mp-theme-card[aria-pressed=true] { padding-bottom:20px; }
 .mp-workspace .mp-theme-preview,.mp-workspace .mp-appearance .mp-theme-preview { height:150px; padding:14px; }
 .mp-workspace .mp-theme-label,.mp-workspace .mp-appearance .mp-theme-label { padding:0; }
 .mp-workspace .mp-theme-card .mp-check { left:8px; right:auto; top:8px; }
 .mp-workspace .mp-preview-copy strong { font-size:16px; }
 .mp-workspace .mp-theme-card .mp-preview-content { margin-top:10px; }
 .mp-workspace .mp-dialog-header,.mp-workspace .mp-dialog-content,.mp-workspace .mp-dialog-footer { padding:22px; }
 .mp-workspace .mp-dialog-header h2 { font-size:23px; }
}
@media(prefers-reduced-motion:reduce) {
 .mp-workspace *,.mp-workspace *::before,.mp-workspace *::after { transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; }
}

/* Workbench controls own their typography; a work's recipe stays inside its preview. */
.mp-workspace .mp-presentation-workbench{display:grid;grid-template-columns:minmax(205px,.8fr) minmax(0,1.5fr);gap:clamp(28px,3vw,56px);align-items:start}
.mp-workspace .mp-presentation-controls{min-width:0}
.mp-workspace .mp-presentation-controls fieldset{margin:0;padding:0;border:0;min-width:0;display:grid;gap:28px}
.mp-workspace .mp-presentation-field{display:grid;gap:9px;color:var(--ws-ink);font-size:16px;font-weight:500}
.mp-workspace .mp-presentation-field select{width:100%;min-height:46px;background:transparent;border:0;border-bottom:1px solid var(--ws-line);border-radius:0;padding:8px 24px 8px 0;font:inherit;color:inherit;cursor:pointer}
.mp-workspace .mp-presentation-field select:focus-visible{outline:1px solid var(--ws-focus);outline-offset:4px}
.mp-workspace .mp-presentation-field small{font-size:14px;font-weight:400;line-height:1.8;color:var(--ws-secondary)}
.mp-workspace .mp-presentation-reset{display:flex;flex-wrap:wrap;gap:2px 10px}
.mp-workspace .mp-presentation-reset .mp-button{padding-left:0;padding-right:0;font-size:14px;text-decoration:underline;text-underline-offset:5px}
.mp-workspace .mp-presentation-save{display:flex;flex-direction:column;align-items:stretch;gap:9px;margin:16px 0}
.mp-workspace .mp-presentation-save .mp-button{white-space:normal;text-align:center;justify-content:center;min-height:48px}
.mp-workspace .mp-presentation-save .mp-button:not(.mp-primary){border:1px solid var(--ws-line)}
.mp-workspace .mp-presentation-status{min-height:3.6em;margin-top:22px}
.mp-workspace .mp-presentation-preview-wrap{min-width:0}
.mp-workspace .mp-presentation-preview{padding:clamp(20px,2.5vw,36px);border-radius:var(--ws-radius);min-width:0;overflow-wrap:anywhere}
.mp-workspace .mp-presentation-preview>header{margin-bottom:25px;padding-bottom:22px;border-bottom:1px solid var(--mp-border)}
.mp-workspace .mp-presentation-preview>header h2{font-family:var(--museum-font);font-size:26px;font-weight:500;line-height:1.5;color:var(--mp-ink);margin:0 0 12px}
.mp-workspace .mp-presentation-preview>header p{font-size:14px;line-height:1.8;color:var(--mp-muted);white-space:pre-wrap;margin:0}
.mp-workspace .mp-profile-details{margin-top:54px;border-top:1px solid var(--ws-line);padding-top:22px}
.mp-workspace .mp-profile-details summary{cursor:pointer;min-height:44px;font-size:16px}
.mp-workspace .mp-profile-details .mp-settings-form{max-width:640px;margin:20px 0 0;padding:0}
.mp-workspace .mp-owner-output{padding:0 22px;border-radius:var(--ws-radius)}
@media(max-width:1100px){.mp-workspace .mp-presentation-workbench{grid-template-columns:minmax(0,1fr)}.mp-workspace .mp-presentation-controls fieldset{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.mp-workspace .mp-presentation-reset{grid-column:1/-1}.mp-workspace .mp-presentation-save{flex-direction:row;flex-wrap:wrap}.mp-workspace .mp-presentation-save .mp-button{flex:1 1 190px}}
@media(max-width:600px){.mp-workspace .mp-presentation-controls fieldset{grid-template-columns:minmax(0,1fr);gap:22px}.mp-workspace .mp-presentation-workbench{gap:30px}.mp-workspace .mp-owner-output{padding-inline:16px}.mp-workspace .mp-presentation-preview{padding:20px}.mp-workspace .mp-presentation-preview .mp-post-list{grid-template-columns:minmax(0,1fr)}}
.mp-workspace .mp-publish-scope{margin:20px 0 12px;line-height:1.8}
.mp-workspace .mp-jump-preview{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:5px}
.mp-workspace #mp-entry-preview{scroll-margin-top:28px}
@media(max-width:700px){.mp-workspace #mp-entry-preview{scroll-margin-top:80px}}
.mp-workspace .mp-style-actions .mp-action-scope{flex:0 0 100%;margin:0 0 5px;font-size:14px;line-height:1.7;color:var(--ws-secondary)}
.mp-workspace #mp-space-preview{scroll-margin-top:28px}
.mp-workspace .mp-presentation-controls .mp-jump-preview{justify-self:start}
.mp-workspace .museum-entry-output :is(.mp-post-meta,.mp-post-actions){font-family:var(--ws-ui)}
@media(max-width:700px){.mp-workspace #mp-space-preview{scroll-margin-top:80px}}

.mp-workspace .mp-link-own { grid-template-columns:18px minmax(0,1fr) 44px; align-items:center; }
.mp-workspace .mp-link-own > :is(img,svg) { width:18px; height:18px; border-radius:4px; }
.mp-workspace .mp-link-own input { border-bottom:0; text-overflow:ellipsis; }
.mp-workspace .mp-link-own button { grid-column:3; }
.mp-workspace .mp-link-own > div { display:flex; align-items:center; gap:8px; min-width:0; }
.mp-workspace .mp-link-own .mp-text-link { flex:none; width:auto; white-space:nowrap; font-size:13px; }
.mp-workspace .mp-link-own input::placeholder { color:inherit; opacity:1; }
.mp-link-row[data-naming] input { animation:mp-naming 1.2s ease-in-out infinite alternate; }
.mp-link-row[data-named] input { animation:mp-named .4s ease-out; }
@keyframes mp-naming { to { opacity:.45; } }
@keyframes mp-named { from { opacity:.3; } }
@media (prefers-reduced-motion:reduce) { .mp-link-row[data-naming] input,.mp-link-row[data-named] input { animation:none; } }
.mp-link-dead { flex:none; font-size:12px; color:var(--ws-secondary,var(--mp-muted)); }
