/* ==========================================================================
   页面装修 · 可视化编辑器（v2-decor）
   三栏：组件库 / 手机预览 / 属性面板。
   手机里的模块样式是「仿小程序」的缩略，只求一眼能认出，不追求 1:1。
   ========================================================================== */

.dc-root {
  display: flex;
  height: calc(100vh - 56px);
  margin: -22px -28px -72px;
  background: var(--bg);
  overflow: hidden;
}

/* ------------------------------- 左：组件库 ------------------------------- */
.dc-left {
  width: 232px; flex: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 0 0 24px;
}
.dc-left-hd {
  position: sticky; top: 0; z-index: 3;
  height: 44px; display: flex; align-items: center; padding: 0 16px;
  font-size: 12px; font-weight: 650; letter-spacing: .4px; color: var(--ink-2);
  background: var(--panel); border-bottom: 1px solid var(--line-2);
}
.dc-group { padding: 12px 12px 4px; }
.dc-group-hd {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink-4); letter-spacing: .6px;
  padding: 0 4px 8px;
}
.dc-group-hd em {
  font-style: normal; font-size: 10px; color: var(--brand);
  background: var(--brand-soft); border-radius: 4px; padding: 0 5px; line-height: 15px;
}
.dc-comps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc-comp {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 9px 4px 7px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--panel-2); cursor: grab;
  transition: .14s;
  user-select: none;
}
.dc-comp:hover { border-color: var(--brand-line); background: #fff; box-shadow: var(--sh-1); transform: translateY(-1px); }
.dc-comp:active { cursor: grabbing; }
.dc-comp.dragging { opacity: .4; }
.dc-comp.off { opacity: .45; }
.dc-comp-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); }
.dc-comp span { font-size: 10.5px; color: var(--ink-2); text-align: center; line-height: 1.2; }
.dc-left-tip { margin: 8px 4px 0; font-size: 10.5px; line-height: 1.6; color: var(--ink-4); }

/* ------------------------------- 中：画布 ------------------------------- */
.dc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-toolbar {
  height: 52px; flex: none;
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.dc-pages { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dc-pages::-webkit-scrollbar { display: none; }
.dc-acts { margin-left: auto; flex: none; display: flex; align-items: center; gap: 8px; }
.dc-vs { font-size: 11.5px; color: var(--ink-4); }
.dc-dot {
  font-size: 11px; color: var(--gold); background: var(--gold-soft);
  border-radius: 5px; padding: 2px 7px;
}
.dc-stage {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 16px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(18, 117, 77, .05), transparent 60%),
    repeating-linear-gradient(45deg, rgba(17, 26, 21, .012) 0 8px, transparent 8px 16px);
}

.dc-phone {
  width: 375px; flex: 1; min-height: 0; max-height: 100%;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -30px rgba(17, 26, 21, .5), 0 2px 6px rgba(17, 26, 21, .06);
  overflow: hidden;
  position: relative;
}
.dc-canvas {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 0;
  background: #f7f8f6;
}
/* 画布内容按 750rpx=375px 的基准渲染，和真机同一套尺寸 */
.dc-realpage { min-height: 100%; }

/* 底栏：custom-tab-bar 编译出来的那份，贴在手机底部 */
.dc-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; }

.dc-hint { flex: none; font-size: 11px; color: var(--ink-4); }

/* 画布里的模块样式在 v2-decor.js 的 SHADOW_CSS 里：
   预览挂在 shadow DOM 中，写在这里不会生效。 */
.dc-empty {
  margin: 40px 12px; padding: 28px 18px; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.dc-empty b { font-size: 12.5px; color: var(--ink-2); }
.dc-empty span { font-size: 11px; color: var(--ink-4); }

/* ------------------------------- 右：属性 ------------------------------- */
.dc-right {
  width: 286px; flex: none;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
}
.dc-insp-hd {
  display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 16px;
  font-size: 12px; font-weight: 650; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
  position: sticky; top: 0; background: var(--panel); z-index: 2;
}
.dc-insp-b { padding: 14px 16px; }
.dc-insp-tools { display: flex; gap: 4px; }
.dc-insp-ft { padding: 0 16px 18px; }
.dc-f { display: block; margin-bottom: 12px; }
.dc-f > span { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 5px; }
.dc-f-row { display: flex; align-items: center; justify-content: space-between; }
.dc-f-row > span { margin: 0; }
.dc-inp {
  width: 100%; min-height: 32px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 7px;
  background: var(--panel-2); color: var(--ink);
  font: inherit; font-size: 12px; outline: none; resize: vertical;
}
.dc-inp:focus { background: #fff; border-color: var(--brand-line); box-shadow: 0 0 0 3px rgba(18, 117, 77, .08); }
textarea.dc-inp { line-height: 1.6; }
select.dc-inp { cursor: pointer; }
.dc-chk { width: 15px; height: 15px; accent-color: var(--brand); }
.dc-tip { margin: 4px 0 0; font-size: 10.5px; line-height: 1.7; color: var(--ink-4); }
.dc-meta { display: flex; gap: 10px; margin-top: 10px; font-size: 11px; color: var(--ink-4); }
.dc-insp-empty { border-top: 1px solid var(--line-2); }

.dc-img { display: flex; align-items: center; gap: 8px; }
.dc-img-p {
  width: 56px; height: 42px; flex: none; border-radius: 6px;
  background: var(--panel-3) center/cover no-repeat;
  border: 1px solid var(--line);
}
.dc-img-empty { display: grid; place-items: center; font-size: 10px; color: var(--ink-4); }
.dc-img-b { display: flex; gap: 6px; flex-wrap: wrap; }

.dc-item {
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 10px 2px; margin-bottom: 10px; background: var(--panel-2);
}
.dc-item-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dc-item-hd b { font-size: 11px; color: var(--ink-2); }
.dc-mini {
  border: 1px solid var(--line); background: #fff; border-radius: 5px;
  font-size: 10.5px; color: var(--ink-3); padding: 2px 7px; cursor: pointer;
}
.dc-mini:hover { border-color: var(--brand-line); color: var(--brand); }
.dc-mini.danger:hover { border-color: #eccac4; color: var(--red); background: var(--red-soft); }

.dc-iconbtn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px;
  background: #fff; cursor: pointer;
}
.dc-iconbtn em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.dc-iconbtn:hover { border-color: var(--brand-line); }

/* 商品分类入口：一条一行，左边图标、中间名称、右边排序与显隐 */
.dc-cate {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.dc-cate:last-of-type { border-bottom: 0; }
.dc-cate.is-off { opacity: .5; }
.dc-cate-pic {
  width: 38px; height: 38px; flex-shrink: 0; padding: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 9px; background: #F4F7F5;
  color: var(--ink-3); font-size: 14px; font-weight: 700; cursor: pointer;
}
.dc-cate-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-cate-pic em { font-style: normal; }
.dc-cate-pic:hover { border-color: var(--brand-line); }
.dc-cate-bd { flex: 1; min-width: 0; }
.dc-cate-bd .dc-cate-name { width: 100%; padding: 3px 6px; font-size: 12px; }
.dc-cate-meta {
  display: block; margin-top: 3px; padding-left: 1px;
  font-size: 10px; color: var(--ink-4);
}
.dc-cate-tools { display: flex; gap: 3px; flex-shrink: 0; }
.dc-cate-tools .dc-mini { padding: 2px 5px; }
.dc-cate-tools .dc-mini[disabled] { opacity: .35; cursor: default; }

.dc-iconpop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 26, 21, .38);
  backdrop-filter: blur(2px);
}
.dc-iconpop-card {
  width: 520px; max-height: 78vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 14px; box-shadow: var(--sh-3); overflow: hidden;
}
.dc-iconpop-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px;
}
.dc-iconpop-hd b { font-weight: 650; }
.dc-iconpop-hd .dc-tip { margin: 0; flex: 1; }
.dc-iconpop-g {
  flex: 1; min-height: 0; overflow-y: auto;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 14px;
}
.dc-iconopt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 2px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); cursor: pointer;
}
.dc-iconopt:hover { border-color: var(--brand); background: var(--brand-soft); }
.dc-iconopt span { font-size: 9px; color: var(--ink-4); }

/* =========================== 手机里的模块缩略 =========================== */
.dcm-ic { display: block; }
.dcm-hero {
  position: relative; height: 186px; border-radius: 10px; overflow: hidden;
  background: #2f4a3d;
}
.dcm-hero-img { position: absolute; inset: 0; background: #536b5f center/cover no-repeat; }
.dcm-hero-ph { background: linear-gradient(135deg, #6d8578, #40544a); }
.dcm-hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 28, 20, .72), rgba(10, 28, 20, .18)); }
.dcm-hero-txt { position: absolute; left: 12px; top: 14px; right: 90px; color: #fff; }
.dcm-hero-tag {
  display: inline-block; font-size: 8.5px; padding: 1px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, .2); margin-bottom: 7px;
}
.dcm-hero-t1 { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.2px; }
.dcm-hero-sub { font-size: 9.5px; opacity: .78; margin-top: 6px; }
.dcm-hero-btn {
  display: inline-block; margin-top: 10px; font-size: 9.5px; padding: 4px 9px;
  border-radius: 14px; background: #fff; color: #1b4a36; font-weight: 600;
}
.dcm-hero-ring {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 62px; height: 62px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .28);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
}
.dcm-hero-ring span { font-size: 17px; font-weight: 700; line-height: 1; }
.dcm-hero-ring i { font-style: normal; font-size: 7.5px; opacity: .8; margin-top: 2px; }

.dcm-alert {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 9px;
  background: #fdf3e3; border: 1px solid #f0dcb8; font-size: 10px; color: #84551b;
}
.dcm-alert b { font-size: 9px; background: #e9a23b; color: #fff; border-radius: 3px; padding: 1px 4px; }
.dcm-alert span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dcm-alert i { font-style: normal; opacity: .6; }

.dcm-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dcm-metric { background: #fff; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 6px; text-align: center; }
.dcm-m-lab { font-size: 9px; color: var(--ink-4); }
.dcm-m-val { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dcm-m-val em { font-style: normal; font-size: 8px; font-weight: 500; color: var(--ink-4); margin-left: 1px; }
.dcm-m-st { font-size: 8px; color: var(--brand); }

.dcm-sec { background: #fff; border-radius: 10px; padding: 10px; }
.dcm-sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dcm-sec-hd b { font-size: 11.5px; color: var(--ink); }
.dcm-sec-hd span { font-size: 8.5px; color: var(--ink-4); }
.dcm-sec-title { font-size: 11.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.dcm-data-main { background: #f7f8f6; border-radius: 8px; padding: 9px; }
.dcm-dm-top { display: flex; justify-content: space-between; font-size: 8.5px; color: var(--ink-4); }
.dcm-dm-val { font-size: 21px; font-weight: 700; color: var(--ink); margin: 3px 0 6px; }
.dcm-dm-val em { font-style: normal; font-size: 9px; color: var(--ink-4); margin-left: 3px; }
.dcm-dm-bar { height: 4px; border-radius: 2px; background: #e3e7e3; overflow: hidden; }
.dcm-dm-bar i { display: block; height: 100%; background: var(--brand); }
.dcm-data-sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.dcm-data-sub div { background: #f7f8f6; border-radius: 7px; padding: 6px; text-align: center; }
.dcm-data-sub b { display: block; font-size: 11px; color: var(--ink); }
.dcm-data-sub span { font-size: 8px; color: var(--ink-4); }

.dcm-eval { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dcm-eval-c { background: linear-gradient(150deg, #eef4f0, #f8faf8); border-radius: 9px; padding: 9px; }
.dcm-eval-c b { display: block; font-size: 10.5px; color: var(--ink); }
.dcm-eval-c span { display: block; font-size: 8.5px; color: var(--ink-4); margin: 2px 0 7px; }
.dcm-eval-c i { font-style: normal; font-size: 8.5px; color: var(--brand); }

.dcm-arch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dcm-ar { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; background: #f7f8f6; border-radius: 8px; }
.dcm-ar span { font-size: 8.5px; color: var(--ink-3); }

.dcm-declare { text-align: center; font-size: 8.5px; color: var(--ink-4); padding: 10px 0; }
.dcm-notice {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-radius: 9px;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  font-size: 10px; color: var(--brand-ink);
}
.dcm-notice i { width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; }
.dcm-notice span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dcm-banner {
  height: 96px; border-radius: 10px; position: relative;
  background: #dfe6e1 center/cover no-repeat;
  display: grid; place-items: center;
}
.dcm-banner-ph { font-size: 10px; color: var(--ink-4); }
.dcm-dots { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.dcm-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.dcm-dots i.on { background: #fff; width: 10px; border-radius: 2px; }
.dcm-grid { display: grid; gap: 4px; padding: 6px 2px; }
.dcm-g { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px 2px; }
.dcm-g span { font-size: 8.5px; color: var(--ink-3); }
.dcm-g-empty { grid-column: 1 / -1; color: var(--ink-4); font-size: 10px; }
.dcm-card { background: #fff; border-radius: 10px; overflow: hidden; }
.dcm-card-img { height: 84px; background: #e7ece8 center/cover no-repeat; }
.dcm-card-b { padding: 8px 10px 10px; }
.dcm-card-b b { display: block; font-size: 11px; color: var(--ink); }
.dcm-card-b span { display: block; font-size: 9px; color: var(--ink-4); margin: 3px 0 6px; line-height: 1.5; }
.dcm-card-b i { font-style: normal; font-size: 9px; color: var(--brand); }
.dcm-card-hd { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px 4px; }
.dcm-card-hd b { font-size: 11px; }
.dcm-card-hd span { font-size: 8.5px; color: var(--ink-4); }

.dcm-ucard { background: linear-gradient(150deg, #1c3b2d, #2c5a45); border-radius: 10px; padding: 12px; color: #fff; }
.dcm-u-top { display: flex; align-items: center; gap: 9px; }
.dcm-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  display: grid; place-items: center; font-size: 13px;
}
.dcm-u-top b { display: block; font-size: 12px; }
.dcm-u-top span { font-size: 8.5px; opacity: .7; }
.dcm-u-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 11px; }
.dcm-u-stats div { text-align: center; }
.dcm-u-stats b { display: block; font-size: 13px; }
.dcm-u-stats span { font-size: 8px; opacity: .7; }

.dcm-svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dcm-svc div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; }
.dcm-svc span { font-size: 8.5px; color: var(--ink-3); }
.dcm-orders { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 4px 10px; }
.dcm-orders div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dcm-orders span { font-size: 8.5px; color: var(--ink-3); }
.dcm-rows { background: #fff; border-radius: 10px; overflow: hidden; }
.dcm-rows div {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-size: 10.5px; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2);
}
.dcm-rows div:last-child { border-bottom: none; }
.dcm-rows i { font-style: normal; color: var(--ink-4); }
.dcm-danger { color: var(--red) !important; justify-content: center !important; }
.dcm-unknown { padding: 12px; font-size: 10px; color: var(--red); background: var(--red-soft); border-radius: 8px; }

/* ---------- 关联功能卡：这个区块的内容到底归谁管 ---------- */
.dc-rel {
  margin: 0 0 14px; padding: 10px 11px; border-radius: 9px;
  background: #F6F8F6; border: 1px solid var(--line-2);
}
.dc-rel-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px; font-size: 10px; font-weight: 650;
  letter-spacing: .5px; color: var(--ink-3);
}
.dc-rel-hd em { font-style: normal; font-weight: 400; font-size: 9.5px; color: var(--ink-4); }
.dc-rel-from { font-size: 11.5px; line-height: 1.65; color: var(--ink-2); }
.dc-rel-live {
  display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 4px;
  background: #E8F1EB; color: #2F6B4F; font-size: 9px; vertical-align: 1px;
}
.dc-rel-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dc-rel-link {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px;
  border-radius: 6px; background: #fff; border: 1px solid var(--line);
  font-size: 10.5px; color: var(--brand); text-decoration: none;
}
.dc-rel-link:hover { border-color: var(--brand-line); background: var(--brand-soft); }
.dc-rel-warn {
  margin-top: 8px; padding: 7px 9px; border-radius: 7px;
  background: #FDF5E9; border: 1px solid #F0DFC0;
  font-size: 10.5px; line-height: 1.7; color: #8A5B12;
}
.dc-rel-warn b { color: #7A4E0C; }
.dc-rel-warn a { color: #8A5B12; text-decoration: underline; }
.dc-rel-warn div + div { margin-top: 4px; }
.dc-relpages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.dc-rel-sub {
  margin: 14px 0 4px; padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 10px; font-weight: 650; letter-spacing: .5px; color: var(--ink-3);
}
/* 页签上的关联问题数：哪一页没接好，一眼能看到 */
.dc-chip-warn {
  display: inline-block; margin-left: 5px; padding: 0 4px; border-radius: 6px;
  background: #C9852A; color: #fff; font-size: 9px; font-style: normal;
  line-height: 14px; vertical-align: 1px;
}

/* 窄屏：收起组件库文字，保证手机预览不被挤扁 */
@media (max-width: 1280px) {
  .dc-left { width: 180px; }
  .dc-comps { grid-template-columns: repeat(2, 1fr); }
  .dc-right { width: 250px; }
  .dc-phone { width: 310px; }
}

/* ---------------- 组件库搜索 ---------------- */
.dc-search {
  margin: 0 12px 10px; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  font: 400 12px/1.4 -apple-system, "PingFang SC", sans-serif; color: var(--ink);
}
.dc-search:focus { outline: none; border-color: var(--brand-line); }

/* ---------------- 撤销 / 重做 ---------------- */
.dc-ibtn {
  width: 26px; height: 26px; padding: 0;
  border: 1px solid var(--line); border-radius: 7px; background: #fff;
  color: var(--ink-2); font-size: 14px; line-height: 1; cursor: pointer;
}
.dc-ibtn:hover:not(:disabled) { border-color: var(--brand-line); color: var(--brand); }
.dc-ibtn:disabled { opacity: .34; cursor: default; }

/* ---------------- 指标卡编辑 ---------------- */
.dc-linkbtn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 10.5px/1 -apple-system, "PingFang SC", sans-serif; color: var(--brand);
}
.dc-linkbtn:hover { text-decoration: underline; }

.dc-tile {
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.dc-tile:last-of-type { border-bottom: 0; }
.dc-tile.is-off { opacity: .5; }
.dc-tile-top { display: flex; align-items: center; gap: 6px; }
.dc-tile-ic {
  width: 34px; height: 34px; flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  color: var(--ink-3); font-size: 13px; font-weight: 700;
}
.dc-tile-ic em { font-style: normal; }
.dc-tile-ic:hover { border-color: var(--brand-line); }
.dc-tile-top .dc-inp { padding: 4px 6px; font-size: 12px; }
.dc-tile-name { flex: 1; min-width: 0; }
/* 56px 才放得下 mmHg / 次/分 这类长单位（48px 时血压会被裁掉 2px） */
.dc-tile-unit { width: 56px; flex-shrink: 0; text-align: center; padding-left: 2px; padding-right: 2px; }
.dc-tile-bot { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.dc-tile-pal { display: flex; align-items: center; gap: 2px; }
.dc-tile-tools { margin-left: auto; display: flex; gap: 2px; }
.dc-tile-tools .dc-mini { padding: 1px 4px; font-size: 10px; }
.dc-tile-tools .dc-mini[disabled] { opacity: .32; cursor: default; }
.dc-pages .chip { white-space: nowrap; }
.dc-sw {
  width: 12px; height: 12px; padding: 0; flex-shrink: 0;
  border: 1px solid transparent; border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(17, 26, 21, .06);
}
.dc-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--brand-line); }
.dc-tile-key {
  font-style: normal; font-size: 9px; color: var(--ink-4); white-space: nowrap;
}
.dc-ft-row { display: flex; gap: 6px; }
