﻿/*
 * SketchUp / 全景卡片：沿用图片卡片的「标题在外、正文一块面」结构。
 * 外框透明，正文本身是唯一表面；标题行不画分隔线，操作按钮不用边框和蓝色描边。
 */
.node.is-clean-card {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.node.is-clean-card:hover {
  box-shadow: none;
}

.node.is-clean-card:hover .node-body {
  box-shadow: 0 16px 48px var(--shadow);
}

.node.is-clean-card .node-head {
  height: auto;
  min-height: 24px;
  flex: 0 0 auto;
  padding: 0 4px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.node.is-clean-card .node-head > svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  color: var(--muted);
  opacity: .75;
}

.node.is-clean-card .node-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.node.is-clean-card .node-head .close-btn,
.node.is-clean-card .node-head .props-btn {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity .12s var(--ease), color .12s, background .12s;
}

.node.is-clean-card:hover .node-head .close-btn,
.node.is-clean-card:hover .node-head .props-btn,
.node.is-clean-card.selected .node-head .close-btn,
.node.is-clean-card.selected .node-head .props-btn,
.node.is-clean-card .node-head .close-btn:focus-visible,
.node.is-clean-card .node-head .props-btn:focus-visible {
  opacity: .7;
}

.node.is-clean-card.selected {
  outline: 0;
}

.node.is-clean-card.selected .node-body {
  outline: 2px solid var(--strong);
  outline-offset: 2px;
}

.node.is-clean-card.sized {
  display: flex;
  flex-direction: column;
}

.node.is-clean-card .node-body {
  flex: 1;
  min-height: 0;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-node);
  background: var(--card);
  box-shadow: 0 12px 36px var(--shadow);
  overflow: hidden;
}

.node.is-clean-card.sized .node-body {
  overflow: auto;
}

.su-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.su-spacer {
  flex: 1;
}

.su-capturebar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 11px;
  background: var(--soft, #202227);
}

.su-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 27px;
  padding: 0 8px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #8b929e);
  font-size: 10.5px;
  white-space: nowrap;
}

.su-pill:hover {
  background: color-mix(in srgb, var(--text, #e7e9ee) 8%, transparent);
  color: var(--text, #e7e9ee);
}

.su-pill.primary {
  background: var(--card, #232323);
  color: var(--text, #e7e9ee);
}

.su-pill.primary:hover {
  background: var(--card-solid, #2a2a2a);
}

.su-pill svg {
  width: 12px;
  height: 12px;
  opacity: .75;
}

.su-divider {
  width: 1px;
  height: 15px;
  margin: 0 2px;
  background: color-mix(in srgb, var(--text, #e7e9ee) 12%, transparent);
}

.su-hint {
  font-size: 11px;
  line-height: 1.55;
  color: var(--text-dim, #8b929e);
}

.su-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--card-solid);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.su-preview:active {
  cursor: grabbing;
}

.su-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.su-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  color: var(--text-dim, #8b929e);
}

.su-preview-icon {
  display: inline-flex;
  margin-bottom: 1px;
  opacity: .35;
}

.su-preview-icon svg {
  width: 30px;
  height: 30px;
}

.su-preview-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted, #8b929e);
}

.su-preview-sub {
  font-size: 10.5px;
  color: var(--faint, #6b7280);
}

.su-preview-hint {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .75);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .14s var(--ease);
}

.su-preview.is-live {
  aspect-ratio: var(--preview-aspect, 16 / 9);
}

.su-control-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(20, 22, 26, .72);
  color: rgba(255, 255, 255, .9);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  transition: top .15s var(--ease), bottom .15s var(--ease), transform .15s var(--ease);
}

.su-preview:not(.is-live) .su-control-hint {
  display: none;
}

.su-preview.is-controlling {
  cursor: crosshair;
}

.su-preview.is-controlling .su-control-hint {
  top: auto;
  bottom: 10px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .58);
  color: rgba(255, 255, 255, .82);
  font-size: 10px;
}

.su-preview-hint {
  display: none;
}

.su-pair {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.su-kicker {
  font-size: 11px;
  color: var(--text-dim, #8b929e);
}

.su-code {
  flex: 1;
  font: 600 16px/1.4 ui-monospace, Consolas, monospace;
  letter-spacing: 1.5px;
  color: var(--text, #e7e9ee);
}

.su-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.su-btn {
  height: 27px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #8b929e);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.su-btn:hover {
  background: var(--soft, #202227);
  color: var(--text, #e7e9ee);
}

.su-btn.primary {
  background: var(--soft, #202227);
  color: var(--text, #e7e9ee);
}

.su-btn.primary:hover {
  background: var(--soft-2, #272a30);
}

.su-btn.ghost {
  background: transparent;
}

.su-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 27px;
  padding: 0 6px;
  color: var(--muted, #8b929e);
  font-size: 10.5px;
  text-decoration: none;
}

.su-link svg {
  width: 12px;
  height: 12px;
  opacity: .7;
}

.su-link:hover {
  color: var(--text, #e7e9ee);
}

.su-status {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 16px;
  font-size: 10.5px;
  color: var(--text-dim, #8b929e);
}

.su-status::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.su-status[data-kind="ok"] {
  color: var(--muted, #8b929e);
}

.su-status[data-kind="ok"]::before {
  background: var(--success, #34d399);
  opacity: 1;
}

.su-status[data-kind="err"] {
  color: var(--danger, #f87171);
}

.su-status[data-kind="err"]::before {
  opacity: 1;
}

.su-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 0;
  padding-top: 1px;
  margin-top: 0;
}

.su-section {
  border-radius: 9px;
}

.su-section-head {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 6px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  color: var(--muted, #8b929e);
  user-select: none;
}

.su-section-head::-webkit-details-marker {
  display: none;
}

.su-section-head:hover {
  background: var(--soft, #202227);
  color: var(--text, #e7e9ee);
}

.su-section[open] > .su-section-head {
  color: var(--text, #e7e9ee);
}

.su-section-icon {
  display: inline-flex;
  width: 13px;
  flex: 0 0 13px;
  opacity: .7;
}

.su-section-icon svg,
.su-section-caret svg {
  width: 13px;
  height: 13px;
}

.su-section-caret {
  margin-left: auto;
  display: inline-flex;
  opacity: .55;
  transition: transform .15s var(--ease);
}

.su-section[open] .su-section-caret {
  transform: rotate(180deg);
}

.su-section-actions {
  display: flex;
  gap: 4px;
  padding: 2px 4px 4px;
}

.su-field-row,
.su-tools-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 2px 6px;
}

.su-footer {
  margin-top: 2px;
  padding: 0 6px;
}

.su-tools-row input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--flow-color, #4aa8ff);
}

.su-value {
  min-width: 34px;
  font-size: 11px;
  color: var(--text, #e7e9ee);
  text-align: right;
}

.su-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-dim, #8b929e);
}

.su-check input {
  accent-color: var(--flow-color, #4aa8ff);
}

.su-aspects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.su-aspect-btn {
  height: 24px;
  padding: 0 7px;
  font-size: 10px;
}

.su-aspect-btn.active {
  color: var(--text, #e7e9ee);
  background: var(--soft, #202227);
}

.su-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
}

.su-scenes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  max-height: 120px;
  overflow: auto;
}

.su-scene {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim, #8b929e);
  font: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.su-scene:hover {
  background: var(--soft, #202227);
  color: var(--text, #e7e9ee);
}

.su-scene.active {
  background: var(--soft, #202227);
  color: var(--text, #e7e9ee);
}
