
  .action-editor.svelte-hogsjv {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
  }

  .field-head.svelte-hogsjv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: var(--text-lg);
  }

  .field-label.svelte-hogsjv {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .badge.svelte-hogsjv {
    flex-shrink: 0;
    padding: 0 var(--space-1);
    border: 1px solid var(--status-info, var(--border-strong));
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--text-secondary);
  }

  .hint.svelte-hogsjv {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .meta.svelte-hogsjv {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    word-break: break-all;
  }

  .meta.svelte-hogsjv code:where(.svelte-hogsjv) {
    font-family: var(--font-mono);
  }

  .gate-hint.svelte-hogsjv {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--status-warn);
  }


  .inline-edit.svelte-1s07191 {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--bg-elevated);
  }

  .inline-edit-bar.svelte-1s07191 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .inline-edit-title.svelte-1s07191 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .inline-edit-actions.svelte-1s07191 {
    display: inline-flex;
    gap: var(--space-1);
    flex-shrink: 0;
  }

  .inline-edit.svelte-1s07191 textarea,
  .inline-edit.svelte-1s07191 .md-editor,
  .inline-edit.svelte-1s07191 .md-split {
    max-width: 100%;
  }


  .box-spacing.svelte-1oweauy {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }
  .box-head.svelte-1oweauy {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .box-label.svelte-1oweauy {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }
  /* 2×2 网格：左 右 / 上 下；同格等高，无横滚 */
  .box-grid.svelte-1oweauy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }


  /* chrome 层：宿主包装（画布内容区不注入壳样式——chrome 与内容视觉分离，17 §8） */
  .block.svelte-4nxe24 {
    position: relative;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: border-color var(--duration-fast) var(--ease-smooth);
  }

  .block.svelte-4nxe24:hover {
    border-color: var(--border-strong);
  }

  /* 只读预览态（草稿预览/站点部件）：去除编辑 chrome 的 hover/focus 框，
     链接/控件仍可交互（pointer-events 不关闭），外观与发布态一致 */
  .block.is-preview.svelte-4nxe24,
  .block.is-preview.svelte-4nxe24:hover {
    border-color: transparent;
  }

  .block.is-preview.svelte-4nxe24:focus-visible {
    outline: none;
  }

  .block.svelte-4nxe24:focus-visible {
    outline: 1px dashed var(--border-strong);
    outline-offset: 1px;
  }

  /* 选中态：单条加粗强调线（不要双线外框——用户明确要求以粗细区分，不靠叠框）。
     做法 = 1px accent 边框 + 1px inset accent 阴影，两者贴合同一边缘、零间隙，
     视觉为一条 2px 实线；不增 border-width，避免选中瞬间 1px 布局位移。 */
  .block.selected.svelte-4nxe24 {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
  }

  /* 存量违规模型态（76 §4.3）：块类型命中当前栏目 deny——未选时红色虚线单线 +
     标签/底色提示；选中时统一走 accent 加粗单线（红、蓝不叠框），违规仍由
     红色 Badge 与底色可辨。仅编辑态视觉告知，块不被自动删除，可正常选中/移除。 */
  .block.block-denied.svelte-4nxe24 {
    border-color: var(--status-error);
    border-style: dashed;
  }
  .block.block-denied.selected.svelte-4nxe24 {
    border-color: var(--accent);
    border-style: solid;
  }

  /* 选中时隐藏内部空块自身的虚线框，避免与选中环嵌套成「框中框」；
     hover 未选时仍保留空块虚线引导。 */
  .block.selected.svelte-4nxe24 .empty-block:where(.svelte-4nxe24) {
    border-color: transparent;
  }

  .block-name.svelte-4nxe24 .ui-badge {
    flex: none;
    margin-left: var(--space-1);
  }

  /* 79 §4.2 仅登录角标：中性灰，与红色「栏目禁用」区分；块名常显（选中态 accent
     底）时标签改深底浅字保持可读。pointer-events 随父级 none，不拦截块命中。 */
  .block-name.is-selected.svelte-4nxe24 .ui-badge--neutral {
    background: color-mix(in srgb, var(--accent-text) 22%, transparent);
    color: var(--accent-text);
  }

  /* 空内容块编辑态占位卡（66 §1.2）：虚线 + 最小高度，未配置也可见/可点/可辨识。
     仅编辑态渲染（preview/发布态零此元素），双击/Enter 进入画布原位编辑（W3）。 */
  .empty-block.svelte-4nxe24 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    min-height: 56px;
    justify-content: center;
    padding: var(--space-3) var(--space-4);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-sunken);
    color: var(--text-tertiary);
    cursor: pointer;
    transition:
      border-color var(--duration-fast) var(--ease-smooth),
      background var(--duration-fast) var(--ease-smooth),
      color var(--duration-fast) var(--ease-smooth);
  }

  .empty-block.svelte-4nxe24:hover {
    border-color: var(--accent);
    color: var(--text-secondary);
  }

  .empty-block.svelte-4nxe24 svg {
    color: var(--text-tertiary);
  }

  .empty-block-name.svelte-4nxe24 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .empty-block-hint.svelte-4nxe24 {
    font-size: var(--text-xs);
  }

  /* 块名标签（66 §1.2）：左上角悬浮，工具条在右上不冲突；默认不可见，
     hover 短暂显示（中性底，区别于选中态），选中时常驻（accent 底） */
  .block-name.svelte-4nxe24 {
    position: absolute;
    top: calc(var(--control-xs) / -2);
    left: var(--space-1);
    z-index: var(--z-sticky);
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-overlay);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: var(--control-xs);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth);
  }

  .block.svelte-4nxe24:hover > .block-name:where(.svelte-4nxe24),
  .block.svelte-4nxe24:focus-within > .block-name:where(.svelte-4nxe24) {
    opacity: 1;
  }

  .block-name.is-selected.svelte-4nxe24 {
    opacity: 1;
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-text);
  }

  /* 拖放指示器（17 §7.2：上/下边线高亮 + 容器内嵌高亮，无 ghost 遮罩） */
  .block.drop-before.svelte-4nxe24 {
    border-top: 2px solid var(--accent);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .block.drop-after.svelte-4nxe24 {
    border-bottom: 2px solid var(--accent);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .block.drop-inside.svelte-4nxe24 {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
  }

  /* 悬浮工具栏：选中常显 / hover 可见；拖把为拖拽源标识 */
  .block-toolbar.svelte-4nxe24 {
    position: absolute;
    top: calc(var(--control-xs) / -2);
    right: var(--space-2);
    z-index: var(--z-sticky);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: calc(100% - var(--space-4));
    gap: var(--space-1);
    padding: 0 var(--space-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-overlay);
    box-shadow: var(--shadow-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-smooth);
  }

  /* 选中块的工具条抬到普通 hover 工具条（--z-sticky）之上，盖过相邻/父子块，
     绝不被遮住点不准。block 未自建 z 上下文时，二者在画布根上下文按 z 排序。 */
  .block.selected.svelte-4nxe24 > .block-toolbar:where(.svelte-4nxe24) {
    z-index: var(--z-drawer);
  }

  /* 仅「鼠标/焦点正下方的最深层块」或选中块显示工具条：直接子选择器确保只作用
     本块工具条；当 hover/focus 已落入某个后代块时，非选中的祖先块工具条让位，
     根治容器内父子块、相邻块多条工具条同屏叠显（z 同值按 DOM 序相互覆盖）。 */
  .block.svelte-4nxe24:hover > .block-toolbar:where(.svelte-4nxe24),
  .block.svelte-4nxe24:focus-within > .block-toolbar:where(.svelte-4nxe24),
  .block-toolbar.visible.svelte-4nxe24 {
    opacity: 1;
    pointer-events: auto;
  }

  .block.svelte-4nxe24:has(.block:where(.svelte-4nxe24):hover, .block:where(.svelte-4nxe24):focus-within):not(.selected) > .block-toolbar:where(.svelte-4nxe24) {
    opacity: 0;
    pointer-events: none;
  }

  /* 拖把手柄：右侧分隔线把「可抓握区」与操作按钮分开，hover/按下给明确反馈，
     让可拖区域一眼可辨（不放大、不添彩，守密度与用色克制）。 */
  .grip.svelte-4nxe24 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--control-xs);
    height: var(--control-xs);
    margin-right: var(--space-1);
    border-right: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    color: var(--text-tertiary);
    cursor: grab;
    transition:
      background var(--duration-fast) var(--ease-smooth),
      color var(--duration-fast) var(--ease-smooth);
  }

  .grip.svelte-4nxe24:hover {
    background: var(--bg-sunken);
    color: var(--accent-on-canvas);
  }

  .grip.svelte-4nxe24:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
  }

  .grip.svelte-4nxe24:active {
    cursor: grabbing;
    background: var(--bg-sunken);
    color: var(--accent-on-canvas);
  }

  /* 容器空态投放区（17 §7.1：虚线内嵌投放区） */
  .dropzone.svelte-4nxe24 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--control-lg) + var(--space-4));
    padding: var(--space-3);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-smooth), color var(--duration-fast) var(--ease-smooth);
  }

  .dropzone.svelte-4nxe24:hover {
    border-color: var(--accent);
    color: var(--text-secondary);
  }

  /* 拖拽悬停到容器「放入内部」落点时，空容器投放区整体高亮（与 .drop-inside
     边框呼应），容器内添加子块的可投放区域一眼可辨。 */
  .block.drop-inside.svelte-4nxe24 .dropzone:where(.svelte-4nxe24) {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    color: var(--text-secondary);
  }

  .dropzone.svelte-4nxe24:focus-visible {
    border-color: var(--accent);
    color: var(--text-secondary);
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
  }

  /* 组件不可用占位卡（fail-soft，仍可选/可删，17 §5.2） */
  .unavailable.svelte-4nxe24 {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px dashed var(--status-warn);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: var(--text-sm);
  }

  .unavailable.svelte-4nxe24 svg {
    color: var(--status-warn);
    flex-shrink: 0;
  }

  .type-name.svelte-4nxe24 {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }


  /* 画布块面包屑（选中链，52 §2.1） */
  .block-crumbs.svelte-14nzrn4 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1);
    max-width: var(--page-w, 1040px);
    margin: 0 auto var(--space-2);
    padding: 0 var(--space-4);
    font-size: var(--text-xs);
  }

  .block-crumb-root.svelte-14nzrn4,
  .block-crumb.svelte-14nzrn4 {
    color: var(--text-tertiary);
  }

  .block-crumb.svelte-14nzrn4 {
    display: inline-flex;
    min-width: 0;
  }

  .block-crumb.svelte-14nzrn4 .ui-btn {
    max-width: 160px;
    padding: 0 var(--space-1);
    color: var(--text-tertiary);
  }

  .block-crumb.svelte-14nzrn4 .ui-btn:hover {
    color: var(--text-primary);
    background: var(--bg-sunken);
  }

  .block-crumb-label.svelte-14nzrn4 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .block-crumb--current.svelte-14nzrn4 .ui-btn {
    color: var(--accent-on-canvas);
    font-weight: var(--font-weight-medium);
  }

  .block-crumb-sep.svelte-14nzrn4 {
    color: var(--text-tertiary);
  }

  /* 画布：弹性中栏（页面纵向滚动，17 §5.2）。padding 归零——盒模型由
     .canvas-page 承担，与发布页 #host-root 逐字一致（49 §D-2 所见即所得）。
     66 §2.2：本元素是主题岛（挂 data-theme），--bg-base 等随站点预览主题切换，
     故画布底色即时呈现亮/暗，而岛外管理台 chrome 保持管理员自身主题。 */
  .canvas.svelte-14nzrn4 {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-base);
  }

  /* data-site 作用域载体（66 §2.2）：与发布页 <main data-site> 同位，无视觉盒
     （不引入边距/背景/定位），仅让站点九键 [data-theme] [data-site] 后代选择器
     及暗段 [data-site] 同基准命中画布内全部内容（含页头/部件/页脚预览）。 */
  .canvas-island.svelte-14nzrn4 {
    min-height: 100%;
  }

  .canvas-page.svelte-14nzrn4 {
    /* 49 §D-2：max-width/inline padding 与 #host-root 同一组令牌值；
       block padding 仅为编辑器滚动留白（chrome，不影响块间布局）；
       去掉 flex+gap——块间间距与发布态一致，由组件自身 margin/padding 决定；
       容器查询锚点（39 §2）：与发布页同宽同档（768/480 断点行为一致） */
    max-width: var(--page-w);
    margin: 0 auto;
    padding: var(--space-4);
    container-type: inline-size;
  }

  /* 设备档物理宽（55 §2 D1）：仅平板/手机档收窄，桌面档全幅。
     口径——.canvas-page 以 border-box 模拟真机视口宽：平板取断点边界内最大
     767（规则严格 <768）、手机 479（<480）。@container 量 content-box，锚点
     两侧 space-4 padding 与发布 #host-root 同令牌——content-box 735 落 tablet
     区间 [480,768) 只触平板档，447 <480 触手机档，与真机视口 768/480 同构。
     max-width:100% 兜底窄视口（画布比档宽更窄时不横溢，按实际宽自然降级）。
     零 JS 宽度逻辑——与发布 #host-root 同一容器查询机制。 */
  .canvas-page--tablet.svelte-14nzrn4 {
    width: calc(var(--bp-regular) - 1px);
    max-width: 100%;
  }

  .canvas-page--phone.svelte-14nzrn4 {
    width: calc(var(--bp-compact) - 1px);
    max-width: 100%;
  }

  /* 布局部件只读预览（49 §D-3）：位置/尺寸/文字与发布态逐字一致，轻降饱和
     区分「非本页编辑对象」（编辑态 chrome，发布产物零此样式）；
     pointer-events:none 拦截全部交互（header 汉堡/导航/登录钮在画布不响应）；
     sticky header 相对 .canvas 滚动容器吸顶，视觉等价发布态视口吸顶。
     角标绝对定位不占文档流（部件自身位置与发布态零偏移） */
  .part-preview.svelte-14nzrn4 {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
  }

  .part-tag.svelte-14nzrn4 {
    position: absolute;
    top: var(--space-1);
    right: var(--space-2);
    z-index: var(--z-sticky);
    padding: 0 var(--space-2);
    border-radius: var(--radius);
    background: var(--bg-overlay);
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: var(--control-xs);
  }

  /* 部件预览内无投放区等编辑 chrome：CanvasBlock preview 只读通道直接不渲染
     （scoped CSS 不穿透子组件，曾用 .part-preview .dropzone 规则从未生效）；
     .block 默认透明边框 + 工具栏 opacity:0 天然不可见，无需覆盖 */


  .binding-editor.svelte-moehqa {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
  }

  .field-head.svelte-moehqa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: var(--text-lg);
  }

  .field-label.svelte-moehqa {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  /* 不可发布警示 Badge（§9.4 编辑态前置告知） */
  .badge.svelte-moehqa {
    flex-shrink: 0;
    padding: 0 var(--space-1);
    border: 1px solid var(--status-warn);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--status-warn);
  }

  .hint.svelte-moehqa {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .schema.svelte-moehqa {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    word-break: break-all;
    line-height: var(--leading-normal);
  }

  .gate-hint.svelte-moehqa {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--status-warn);
  }


  .designer-top.svelte-1ocqnma {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) 0;
    min-width: 0;
  }

  .designer-topline.svelte-1ocqnma {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
  }

  .designer-mainline.svelte-1ocqnma {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  /* 主体区：撑满顶栏与底栏之间，自身不滚——内含的提示区 + 三栏各自管理布局/滚动 */
  .designer-content.svelte-1ocqnma {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .designer-extras.svelte-1ocqnma {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .designer-topline.svelte-1ocqnma > .ui-breadcrumb {
    flex: 1;
    min-width: 0;
  }


  .designer.svelte-1rh3oj2 {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .loading-top.svelte-1rh3oj2 {
    flex-shrink: 0;
  }

  .designer-body.svelte-1rh3oj2 {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: var(--space-4);
  }

  .panel.svelte-1rh3oj2 {
    width: 280px;
    flex-shrink: 0;
  }

  .canvas.svelte-1rh3oj2 {
    flex: 1;
    min-width: 0;
  }


  /* 总开关与字段区之间的分隔；列轨道与响应式由契约 .form-grid 承载 */
  .parts-form.svelte-11kjeik {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
  }

  .parts-field-error.svelte-11kjeik {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--status-error);
  }


  .link-field.svelte-111zg7w { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
  .field-label-text.svelte-111zg7w, .row-label.svelte-111zg7w { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
  .row.svelte-111zg7w { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
  .document-row.svelte-111zg7w { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); min-width: 0; }
  .document-title.svelte-111zg7w { flex: 1; min-width: 0; font-size: var(--text-xs); color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hint-empty.svelte-111zg7w { margin: 0; font-size: var(--text-xs); color: var(--text-tertiary); }


  .import-dialog.svelte-7oqfvd {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .summary.svelte-7oqfvd {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .file-name.svelte-7oqfvd {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    word-break: break-all;
  }

  .stats.svelte-7oqfvd {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--text-sm);
    color: var(--text-secondary);
  }

  .stats.svelte-7oqfvd strong:where(.svelte-7oqfvd) {
    color: var(--text-primary);
  }

  .hint.svelte-7oqfvd {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .warnings.svelte-7oqfvd {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .warnings.svelte-7oqfvd summary:where(.svelte-7oqfvd) {
    cursor: pointer;
    color: var(--text-secondary);
  }

  .warnings.svelte-7oqfvd ul:where(.svelte-7oqfvd) {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-4);
    color: var(--text-tertiary);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    max-height: 180px;
    overflow-y: auto;
  }

  .w-line.svelte-7oqfvd {
    color: var(--text-secondary);
  }


  .picker.svelte-4mr1mv {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .picker.svelte-4mr1mv .ui-list-view {
    gap: var(--space-3);
  }

  /* 列轨道由契约 .media-grid 承载（120px 缩略图）；此处只管弹窗内有界纵向滚动 */
  .picker.svelte-4mr1mv .ui-list-view-grid {
    max-height: 52vh;
    overflow-y: auto;
    padding: var(--space-1);
  }

  /* media-card（非契约 .card：选择器卡片域内形态，R5 契约类只用不定义） */
  .media-card.svelte-4mr1mv {
    display: flex;
    min-width: 0;
  }

  .media-card.svelte-4mr1mv .ui-btn {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    height: auto;
    padding: var(--space-1);
    border-color: var(--border-subtle);
    background: var(--bg-elevated);
    text-align: left;
    white-space: normal;
    transition: border-color var(--duration-fast) var(--ease-smooth);
  }

  .media-card.svelte-4mr1mv .ui-btn:hover,
  .media-card.svelte-4mr1mv .ui-btn:focus-visible {
    border-color: var(--accent);
  }

  .thumb.svelte-4mr1mv {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    background: var(--bg-sunken);
    overflow: hidden;
  }
  .thumb-image.svelte-4mr1mv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .thumb-file.svelte-4mr1mv {
    color: var(--text-tertiary);
  }

  .name.svelte-4mr1mv {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .meta.svelte-4mr1mv {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }



  /* 行树编辑器（38 §4）：每个顶级项是一个组——父条目卡片 + 缩进树形子列表。
     字段走双列网格（label/控件/说明三段同构，对齐设计系统 .form-grid 契约），
     窄容器退单列；所有折行均不产生横向滚动。 */
  .menu-editor.svelte-tdgkri {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .menu-group.svelte-tdgkri {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .menu-row.svelte-tdgkri {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg-base);
  }

  /* 条目头条：左排序、右选项与动作，分区清晰、控件一条基线 */
  .row-head.svelte-tdgkri {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .head-ops.svelte-tdgkri,
  .head-side.svelte-tdgkri,
  .head-switches.svelte-tdgkri,
  .head-actions.svelte-tdgkri {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .head-side.svelte-tdgkri {
    gap: var(--space-3);
  }

  .head-divider.svelte-tdgkri {
    width: 1px;
    align-self: stretch;
    background: var(--border-subtle);
  }

  /* 字段双列：文案 / 链接目标；容器 ≥600 起两列，否则单列（无容器上下文时安全退单列） */
  .row-grid.svelte-tdgkri {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    align-items: start;
  }

  @container (min-width: 600px) {
    .row-grid.svelte-tdgkri {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
      column-gap: var(--space-4);
    }
  }

  /* 链接目标单元格：与左列 ui-field 三段同构（标签 → 控件 → 说明），同 gap，
     故两列标签基线、控件顶边逐像素对齐。 */
  .target-field.svelte-tdgkri {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
  }

  /* 控件行：分段选择器（28）与目标输入框（32）顶边对齐；
     flex-start 保证输入框出现错误说明行时，分段选择器不被带偏居中。
     极窄容器放不下时输入框换行占满（永不横滚）。 */
  .target-control.svelte-tdgkri {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  /* 分段选择器相对 32px 输入框光学居中（28→32 差半档）；transform 不占布局，
     不推开输入框顶边对齐（与 ui-kit Switch 光学位移同款手法，纯令牌表达式）。 */
  .target-type.svelte-tdgkri {
    flex-shrink: 0;
    transform: translateY(calc((var(--control-md) - var(--control-sm)) / 2));
  }

  .target-input.svelte-tdgkri {
    flex: 1 1 180px;
    min-width: 0;
  }

  /* 与 ui-kit 字段标签同构（xs / 600 / 次级色），纳入本组件网格对齐 */
  .cell-label.svelte-tdgkri {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .target-rescue.svelte-tdgkri {
    display: flex;
    gap: var(--space-2);
  }

  .target-hint.svelte-tdgkri {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  /* 子项：缩进 + 左侧树形竖线表达隶属，描边弱于父条目 */
  .child-list.svelte-tdgkri {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-left: var(--space-2);
    padding-left: var(--space-4);
    border-left: 1px solid var(--border-subtle);
  }

  .menu-row--child.svelte-tdgkri {
    border-color: var(--border-subtle);
  }

  .menu-add.svelte-tdgkri {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .menu-count.svelte-tdgkri {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
  }


  .missing-title.svelte-hinc1a {
    font-weight: var(--font-weight-medium);
  }

  .missing-list.svelte-hinc1a {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .missing-item.svelte-hinc1a {
    display: flex;
  }

  .missing-item.svelte-hinc1a .ui-btn {
    justify-content: flex-start;
    align-items: baseline;
    gap: var(--space-2);
    width: 100%;
    height: auto;
    padding: var(--space-1) var(--space-2);
    color: inherit;
    font: inherit;
    text-align: left;
    white-space: normal;
  }

  .missing-item.svelte-hinc1a .ui-btn:hover {
    background: var(--bg-sunken);
  }

  .missing-name.svelte-hinc1a {
    flex: none;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
  }

  .missing-fields.svelte-hinc1a {
    min-width: 0;
    color: var(--text-tertiary);
  }


  .outline-empty.svelte-j6nu0l {
    margin: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    line-height: var(--leading-normal);
  }

  .outline-tree.svelte-j6nu0l {
    list-style: none;
    margin: 0;
    padding: var(--space-2) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .outline-row.svelte-j6nu0l {
    display: flex;
    align-items: center;
    border-radius: var(--radius);
    min-width: 0;
  }

  /* 缩进档位（66 §1.4）：纯 4px 栅格阶梯令牌（R3），逐级 8/16/24/32/48，
     生产 CSP style-src 'self' 下层级稳定生效；档位数对齐 MAX_DEPTH（block-tree） */
  .outline-row--d0.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn { padding-left: var(--space-2); }
  .outline-row--d1.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn { padding-left: var(--space-4); }
  .outline-row--d2.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn { padding-left: var(--space-5); }
  .outline-row--d3.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn { padding-left: var(--space-6); }
  .outline-row--d4.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn { padding-left: var(--space-7); }

  /* 选中/悬停同 CommandPalette 口径：bg-sunken 中性底，不私造淡蓝 */
  .outline-row--active.svelte-j6nu0l,
  .outline-row.svelte-j6nu0l:hover {
    background: var(--bg-sunken);
  }

  .outline-main.svelte-j6nu0l {
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .outline-main.svelte-j6nu0l .ui-btn {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    gap: var(--space-1);
    height: auto;
    /* 右内边距固定；左内边距由缩进档位类承担 */
    padding: var(--space-1) var(--space-2);
    color: var(--text-secondary);
    text-align: left;
    white-space: normal;
  }

  .outline-main.svelte-j6nu0l .ui-btn:hover {
    color: var(--text-primary);
  }

  .outline-row--active.svelte-j6nu0l .outline-main:where(.svelte-j6nu0l) .ui-btn {
    color: var(--accent-on-canvas);
    font-weight: var(--font-weight-medium);
  }

  .outline-caret.svelte-j6nu0l {
    flex: none;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-tertiary);
    border-radius: var(--radius);
    transition: transform 120ms var(--ease-smooth);
  }

  .outline-caret.is-collapsed.svelte-j6nu0l {
    transform: rotate(-90deg);
  }

  .outline-caret--leaf.svelte-j6nu0l {
    display: inline-block;
  }

  /* 名称 + 摘要同行省略（66 §2.4：名称必显，摘要 tertiary 截断） */
  .outline-text.svelte-j6nu0l {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
  }

  .outline-label.svelte-j6nu0l {
    flex: none;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .outline-summary.svelte-j6nu0l {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .outline-badge.svelte-j6nu0l {
    flex: none;
    font-size: var(--text-xs);
    line-height: 1;
    padding: 0 var(--space-1);
    border-radius: var(--radius);
    background: var(--bg-sunken);
    color: var(--text-tertiary);
  }

  .outline-actions.svelte-j6nu0l {
    flex: none;
    display: flex;
    align-items: center;
    padding-right: var(--space-1);
  }


  .designer.svelte-fcm44j {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .designer-alerts.svelte-fcm44j {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) 0;
    min-width: 0;
  }

  .designer-body.svelte-fcm44j {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4) 0;
  }


  .title-field.svelte-1s78gfp {
    max-width: 420px;
    flex: 1;
    min-width: 200px;
  }

  .header-actions.svelte-1s78gfp {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
  }

  .history-actions.svelte-1s78gfp {
    display: flex;
    gap: var(--space-1);
    flex-shrink: 0;
  }


  .meta-form.svelte-22zty {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  /* noindex 生效说明（36 §3.1）：辅助文案 xs/mono/tertiary 档位 */
  .meta-note.svelte-22zty {
    margin: 0;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    line-height: 1.5;
  }

  /* 布局组（38 §3.1 t7）：分组标题与既有 meta-form 列距一致 */
  .layout-group.svelte-22zty {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border-subtle);
  }

  .meta-group-label.svelte-22zty {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
  }

  .custom-parts.svelte-22zty {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .custom-parts-label.svelte-22zty {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-secondary);
  }

  .custom-part-list.svelte-22zty {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .custom-part-row.svelte-22zty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
  }

  .custom-part-name.svelte-22zty {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-sm);
    color: var(--text-primary);
  }

  .custom-part-actions.svelte-22zty {
    display: flex;
    gap: var(--space-1);
    flex-shrink: 0;
  }

  .custom-part-actions.svelte-22zty {
    align-items: center;
  }


  /* 跨整个表单行由契约 .form-span-2 承载；本类只保留 fieldset 重置与分组 hairline */
  .part-design.svelte-1kmxafm {
    margin: 0;
    padding: var(--space-3) 0 0;
    border: 0;
    border-top: 1px solid var(--border-subtle);
  }

  .part-design-title.svelte-1kmxafm {
    padding: 0 var(--space-2) 0 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-secondary);
  }

  /* 选择器内部间距（布局列轨道由契约 .form-grid 提供） */
  .part-design-grid.svelte-1kmxafm {
    margin-top: var(--space-2);
  }


  /* 部件设计器骨架（66：顶栏/底栏/面包屑由 DesignerChrome 单点承载）：提示区 + 三栏 */
  .designer.svelte-8m31su {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
  }

  .designer-alerts.svelte-8m31su {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4) 0;
    min-width: 0;
  }

  .designer-body.svelte-8m31su {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4) 0;
  }

  .panel.svelte-8m31su {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    overflow-y: auto;
    min-height: 0;
  }

  .panel-widgets.svelte-8m31su {
    width: 240px;
    flex-shrink: 0;
  }

  .panel-props.svelte-8m31su {
    width: 320px;
    flex-shrink: 0;
  }

  .panel-heading.svelte-8m31su {
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
  }

  .widget-group.svelte-8m31su {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .widget-group-label.svelte-8m31su {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .widget-item.svelte-8m31su {
    display: flex;
    width: 100%;
  }

  .widget-item.svelte-8m31su .ui-btn {
    flex: 1;
    justify-content: space-between;
    gap: var(--space-2);
    height: auto;
    padding: var(--space-2) var(--space-3);
    border-color: var(--border-subtle);
    background: var(--bg-base);
    color: var(--text-primary);
    text-align: left;
    cursor: grab;
  }

  .widget-item.svelte-8m31su .ui-btn:hover {
    border-color: var(--border-strong);
  }

  .widget-item--disabled.svelte-8m31su .ui-btn {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .widget-item-label.svelte-8m31su {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .widget-item-badge.svelte-8m31su {
    flex-shrink: 0;
    padding: 0 var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .canvas.svelte-8m31su {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-sunken);
    padding: var(--space-4);
  }

  .canvas-page.svelte-8m31su {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: 960px;
    margin: 0 auto;
  }

  .prop-head.svelte-8m31su {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .prop-label.svelte-8m31su {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
  }

  .prop-meta.svelte-8m31su {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }


  .pattern-panel.svelte-14i4dat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 0;
  }

  .pattern-actions.svelte-14i4dat {
    flex-shrink: 0;
  }

  .pattern-search.svelte-14i4dat {
    flex-shrink: 0;
  }

  .pattern-empty.svelte-14i4dat {
    margin: var(--space-2) 0;
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
  }

  /* 内置起始布局（与用户样板区分：强调描边 + 双行标题/说明） */
  .builtin-group.svelte-14i4dat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    flex-shrink: 0;
  }

  .builtin-group-label.svelte-14i4dat {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .builtin-item.svelte-14i4dat {
    display: flex;
  }

  .builtin-item.svelte-14i4dat .ui-btn {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    height: auto;
    padding: var(--space-2);
    border-color: var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-primary);
    text-align: left;
    white-space: normal;
    transition:
      border-color var(--duration-fast) var(--ease-smooth),
      background var(--duration-fast) var(--ease-smooth);
  }

  .builtin-item.svelte-14i4dat .ui-btn:hover:not(:disabled) {
    border-color: var(--accent);
  }

  .builtin-item.svelte-14i4dat .ui-btn:disabled {
    cursor: wait;
    opacity: 0.6;
  }

  .builtin-item-label.svelte-14i4dat {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
  }

  .builtin-item-desc.svelte-14i4dat {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .pattern-catalog.svelte-14i4dat {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 0;
    overflow-y: auto;
  }

  .pattern-group.svelte-14i4dat {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .pattern-group-label.svelte-14i4dat {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .pattern-item.svelte-14i4dat {
    display: flex;
    align-items: stretch;
    gap: var(--space-1);
  }

  .pattern-item-main.svelte-14i4dat {
    flex: 1;
    min-width: 0;
    display: flex;
  }

  .pattern-item-main.svelte-14i4dat .ui-btn {
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0 var(--space-2);
    border-color: var(--border-subtle);
    background: var(--bg-sunken);
    color: var(--text-primary);
    text-align: left;
    transition:
      border-color var(--duration-fast) var(--ease-smooth),
      background var(--duration-fast) var(--ease-smooth);
  }

  .pattern-item-main.svelte-14i4dat .ui-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: var(--bg-elevated);
  }

  .pattern-item-main.svelte-14i4dat .ui-btn:disabled {
    cursor: wait;
    opacity: 0.6;
  }

  .pattern-item-label.svelte-14i4dat {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pattern-item-meta.svelte-14i4dat {
    flex-shrink: 0;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
  }

  .pattern-item-del.svelte-14i4dat {
    flex-shrink: 0;
    display: inline-flex;
  }

  .del-body.svelte-14i4dat {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .del-text.svelte-14i4dat {
    margin: 0;
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
  }

  .del-footer.svelte-14i4dat {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
  }


  .panel-props.svelte-5lw5ii {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    overflow-y: auto;
    flex-shrink: 0;
    min-height: 0;
  }

  /* 专注预览：父级 hidden 收起（状态保留，退出即恢复） */
  .panel-props.hidden.svelte-5lw5ii {
    display: none;
  }

  /* 窄栏内分段器撑满，两段等宽（消费方布局覆盖，同 tenview bp-group 先例） */
  .prop-seg.svelte-5lw5ii {
    display: flex;
  }
  .prop-seg.svelte-5lw5ii .ui-seg {
    flex: 1 1 auto;
    width: 100%;
  }
  .prop-seg.svelte-5lw5ii .ui-seg-item {
    flex: 1 1 0;
  }

  /* 属性面板头（块名 + 类型/id mono） */
  .prop-head.svelte-5lw5ii {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border-subtle);
  }

  .prop-label.svelte-5lw5ii {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
  }

  .prop-meta.svelte-5lw5ii {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    word-break: break-all;
  }


  .rows-field.svelte-1t3x6am {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
  }

  .field-head.svelte-1t3x6am {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .field-label.svelte-1t3x6am {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }

  .rows-count.svelte-1t3x6am {
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
  }

  .rows-empty.svelte-1t3x6am {
    margin: 0;
    padding: var(--space-2);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
  }

  .row-card.svelte-1t3x6am {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-sunken);
    min-width: 0;
  }

  .row-head.svelte-1t3x6am {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .row-index.svelte-1t3x6am {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
    color: var(--text-secondary);
  }

  .row-ops.svelte-1t3x6am {
    display: inline-flex;
    gap: var(--space-1);
  }

  .row-fields.svelte-1t3x6am {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-width: 0;
  }

  .unsupported.svelte-1t3x6am {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }


  .form.svelte-16wnlt6 {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .form-hint.svelte-16wnlt6 {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
  }

  .form-footer.svelte-16wnlt6 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-top: var(--space-2);
  }


  /* 弹窗表单：纵向字段流（02 §3.3 滚动归属弹窗体） */
  .form.svelte-12ci1sx {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .form-footer.svelte-12ci1sx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding-top: var(--space-2);
  }


  .schema-form.svelte-1nbyjbc { display: flex; flex-direction: column; gap: var(--space-4); }
  .group.svelte-1nbyjbc { display: flex; flex-direction: column; gap: var(--space-3); }
  .group-heading.svelte-1nbyjbc { margin: 0; font-size: var(--text-xs); font-weight: var(--font-weight-semibold); font-family: var(--font-mono); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.04em; }
  .field.svelte-1nbyjbc { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
  .field-head.svelte-1nbyjbc { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: var(--text-lg); }
  .field-label.svelte-1nbyjbc { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
  .bounded-field.svelte-1nbyjbc { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
  .field-label-text.svelte-1nbyjbc { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
  .bounded-custom.svelte-1nbyjbc { max-width: 140px; }
  .media-field.svelte-1nbyjbc { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); min-width: 0; }
  .rows-field.svelte-1nbyjbc { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
  .rows-count.svelte-1nbyjbc { font-size: var(--text-xs); font-family: var(--font-mono); color: var(--text-tertiary); }
  .rows-empty.svelte-1nbyjbc { margin: 0; padding: var(--space-2); border: 1px dashed var(--border-subtle); border-radius: var(--radius); font-size: var(--text-xs); color: var(--text-tertiary); text-align: center; }
  .string-row.svelte-1nbyjbc { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
  .string-row.svelte-1nbyjbc > :first-child { flex: 1; min-width: 0; }
  .unsupported.svelte-1nbyjbc { margin: 0; font-size: var(--text-xs); color: var(--text-tertiary); }


  .field-label-text.svelte-1nd8rqf { font-size: var(--text-xs); font-weight: var(--font-weight-semibold); color: var(--text-secondary); }
  .doc-field.svelte-1nd8rqf { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); min-width: 0; }
  .doc-ref-card.svelte-1nd8rqf { width: 100%; display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); border-radius: var(--radius); background: var(--bg-sunken); }
  .doc-ref-title.svelte-1nd8rqf { font-size: var(--text-sm); font-weight: var(--font-weight-medium); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doc-ref-slug.svelte-1nd8rqf { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doc-ref-ops.svelte-1nd8rqf { display: flex; justify-content: flex-end; gap: var(--space-1); }


  .style-form.svelte-pmpht2 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    border-top: 1px solid var(--border-subtle);
    margin-top: var(--space-3);
  }

  .style-head.svelte-pmpht2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .style-title.svelte-pmpht2 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
  }

  .tier-hint.svelte-pmpht2 {
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: var(--leading-tight);
  }

  .preset-group.svelte-pmpht2 {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .preset-group.svelte-pmpht2 legend:where(.svelte-pmpht2) {
    margin-bottom: var(--space-1);
    padding: 0;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
  }

  .preset-grid.svelte-pmpht2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .preset-card.svelte-pmpht2 {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    min-width: 0;
    padding: var(--space-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease-smooth);
  }

  .preset-card.svelte-pmpht2:hover,
  .preset-card.svelte-pmpht2:focus-within,
  .preset-card--active.svelte-pmpht2 {
    border-color: var(--accent);
  }

  .preset-card.svelte-pmpht2 .ui-btn {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: normal;
  }

  .preset-label.svelte-pmpht2 {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
  }

  .preset-description.svelte-pmpht2 {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
    overflow-wrap: anywhere;
  }

  .custom-fields.svelte-pmpht2 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .border-row.svelte-pmpht2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }

  .style-preview-note.svelte-pmpht2 {
    margin: 0;
    padding: var(--space-2);
    border-radius: var(--radius);
    background: var(--bg-sunken);
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    word-break: break-all;
  }


  .visibility-field.svelte-1pjialp {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .visibility-label.svelte-1pjialp {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
  }


  .panel.svelte-1y7hxh8 {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    overflow-y: auto;
    flex-shrink: 0;
    min-height: 0;
  }

  .panel-widgets.svelte-1y7hxh8 {
    width: 240px;
    gap: var(--space-2);
  }

  /* 专注预览：父级 hidden 收起（状态保留，退出即恢复） */
  .panel-widgets.hidden.svelte-1y7hxh8 {
    display: none;
  }

  /* 左栏 控件/样板/大纲 Tab（52 §2.1） */
  .left-tabs.svelte-1y7hxh8 {
    display: flex;
    flex-shrink: 0;
    margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) 0;
    padding: var(--space-2) var(--space-3) 0;
  }

  .left-tabs.svelte-1y7hxh8 .ui-tabs {
    flex: 1;
  }

  .left-tabs.svelte-1y7hxh8 .ui-tab {
    flex: 1;
    min-width: 0;
    padding: var(--space-2);
    white-space: nowrap;
  }

  .left-tabs.svelte-1y7hxh8 .ui-tab--active {
    color: var(--accent-on-canvas);
    font-weight: var(--font-weight-medium);
  }

  .widget-search.svelte-1y7hxh8 {
    flex-shrink: 0;
  }

  .widget-empty.svelte-1y7hxh8 {
    margin: var(--space-2) 0;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: center;
  }

  /* 控件面板：五族分组 + 条目（点击插入 / 拖拽源，17 §5.3） */
  .widget-catalog.svelte-1y7hxh8,
  .widget-recent.svelte-1y7hxh8,
  .widget-group.svelte-1y7hxh8 {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  /* 五族目录容器：组间距（原由面板 gap 直接作用于各 section，包裹后内化） */
  .widget-catalog.svelte-1y7hxh8 {
    gap: var(--space-2);
  }

  .widget-group-label.svelte-1y7hxh8,
  .widget-recent-label.svelte-1y7hxh8 {
    margin: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .widget-item.svelte-1y7hxh8 {
    display: flex;
    width: 100%;
  }

  .widget-item.svelte-1y7hxh8 .ui-btn {
    flex: 1;
    justify-content: space-between;
    gap: var(--space-2);
    padding: 0 var(--space-2);
    border-color: var(--border-subtle);
    background: var(--bg-sunken);
    color: var(--text-primary);
    text-align: left;
    cursor: grab;
    transition:
      border-color var(--duration-fast) var(--ease-smooth),
      background var(--duration-fast) var(--ease-smooth);
  }

  .widget-item.svelte-1y7hxh8 .ui-btn:hover {
    border-color: var(--accent);
    background: var(--bg-elevated);
  }

  .widget-item.svelte-1y7hxh8 .ui-btn:active {
    cursor: grabbing;
  }

  .widget-item--disabled.svelte-1y7hxh8 .ui-btn {
    color: var(--text-disabled);
    cursor: not-allowed;
  }

  .widget-item--disabled.svelte-1y7hxh8 .ui-btn:hover {
    border-color: var(--border-subtle);
    background: var(--bg-sunken);
  }

  .widget-item-label.svelte-1y7hxh8 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .widget-item-badge.svelte-1y7hxh8 {
    flex-shrink: 0;
    padding: 0 var(--space-1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--text-tertiary);
  }
