/* Livestock free-form showcase boards */
.wb-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 4px 0 24px;
  padding: 22px 26px;
  color: #e9f5ed;
  background: linear-gradient(120deg, #123d32, #1d5943);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 50, 39, .12);
}
.wb-intro > div { display: flex; align-items: center; gap: 16px; }
.wb-intro strong { display: block; margin-bottom: 5px; font-size: 17px; }
.wb-intro p { margin: 0; color: #b8d2c5; font-size: 13px; }
.wb-intro > span { color: #a7c6b8; font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.wb-intro-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: none;
  color: #193b2b;
  background: #d5ef8c;
  border-radius: 15px;
  font-size: 23px;
}
.wb-board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wb-board-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe8e1;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(21, 55, 42, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wb-board-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(21, 55, 42, .11); }
.wb-board-preview {
  position: relative;
  display: block;
  width: 100%;
  height: 190px;
  padding: 0;
  overflow: hidden;
  background: #0a211b;
  border: 0;
  cursor: pointer;
}
.wb-mini-canvas { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 80% 15%, #27674b 0, transparent 43%), linear-gradient(135deg, #071b18, #123c30); }
.wb-mini-canvas::before, .wb-mini-canvas::after { content: ''; position: absolute; background: rgba(255,255,255,.035); }
.wb-mini-canvas::before { left: 9%; top: 15%; width: 40%; height: 4px; box-shadow: 0 18px 0 rgba(255,255,255,.08), 0 44px 0 rgba(255,255,255,.035); }
.wb-mini-canvas::after { left: 9%; bottom: 15%; width: 24%; height: 31%; border-radius: 8px; box-shadow: 95px 0 0 #c9e978; }
.wb-mini-canvas i { position: absolute; right: 9%; top: 16%; width: 34%; height: 57%; border: 1px solid rgba(183, 226, 202, .13); border-radius: 12px; }
.wb-mini-canvas i:nth-child(2) { right: 13%; top: 23%; width: 26%; height: 38%; border-color: rgba(183, 226, 202, .09); transform: rotate(8deg); }
.wb-mini-canvas i:nth-child(3) { right: 23%; top: 34%; width: 6px; height: 6px; background: #d5ef8c; border: 0; border-radius: 50%; box-shadow: 0 0 18px #d5ef8c; }
.wb-mini-canvas b { position: absolute; right: 18%; top: 40%; color: #b8d9c9; font-size: 26px; font-weight: 500; letter-spacing: .1em; }
.wb-board-open { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; color: #eff8ef; background: linear-gradient(transparent, rgba(3, 17, 13, .86)); font-size: 12px; opacity: 0; transform: translateY(8px); transition: .2s ease; }
.wb-board-preview:hover .wb-board-open { opacity: 1; transform: none; }
.wb-board-open .icon { width: 16px; }
.wb-board-info { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 18px 10px; }
.wb-board-info h2 { overflow: hidden; margin: 0 0 7px; color: #17382c; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.wb-board-info p { margin: 0; color: #7b8e84; font-size: 11px; }
.wb-board-actions { display: flex; align-items: center; gap: 8px; padding: 8px 18px 18px; }
.wb-board-actions button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.wb-board-actions .danger-text { margin-left: auto; }
.wb-empty, .wb-loading { grid-column: 1 / -1; padding: 70px 24px; color: #71867a; background: #fff; border: 1px dashed #cadbcf; border-radius: 22px; text-align: center; }
.wb-empty > span { display: grid; width: 56px; height: 56px; margin: 0 auto 18px; place-items: center; color: #315a3e; background: #e9f3d8; border-radius: 18px; font-size: 25px; }
.wb-empty h2 { margin: 0 0 8px; color: #1c3b2e; }
.wb-empty p { margin: 0 0 20px; }

/* Editor shell */
.main-content:has(.wb-editor) { padding-top: 18px; }
.wb-editor {
  position: relative;
  display: flex;
  height: calc(100vh - 164px);
  min-height: 650px;
  flex-direction: column;
  overflow: hidden;
  color: #20382e;
  background: #fff;
  border: 1px solid #dce6df;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(19, 52, 38, .08);
}
.wb-editor-top { display: flex; min-height: 68px; align-items: center; gap: 13px; padding: 10px 16px; background: #fff; border-bottom: 1px solid #e2eae4; }
.wb-editor-top > .icon-button .icon { transform: rotate(180deg); }
.wb-title-wrap { display: grid; grid-template-columns: 8px minmax(120px, 320px); align-items: center; column-gap: 9px; }
.wb-title-wrap input { width: 100%; padding: 2px 0; color: #17382c; background: transparent; border: 0; outline: 0; font-size: 15px; font-weight: 700; }
.wb-title-wrap small { grid-column: 2; color: #87988f; font-size: 10px; }
.wb-live-dot { width: 7px; height: 7px; background: #64aa72; border-radius: 50%; box-shadow: 0 0 0 4px #edf5e9; }
.wb-editor-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.wb-editor-actions button { min-height: 36px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.wb-editor-actions .icon { width: 15px; height: 15px; }
.wb-editor-body { display: grid; min-height: 0; flex: 1; grid-template-columns: 202px minmax(0, 1fr) 284px; }
.wb-editor.is-readonly .wb-editor-body { grid-template-columns: minmax(0, 1fr); }
.wb-toolbox, .wb-inspector { min-height: 0; padding: 17px 14px; overflow: auto; background: #fbfdfb; }
.wb-toolbox { border-right: 1px solid #e1e9e3; }
.wb-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wb-inspector { border-left: 1px solid #e1e9e3; }
.wb-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.wb-panel-title > span { color: #254438; font-size: 13px; font-weight: 750; }
.wb-panel-title small { color: #95a39b; font-size: 9px; font-weight: 400; }
.wb-panel-title button { padding: 0; color: #7f9086; background: none; border: 0; font-size: 20px; }
.wb-component { display: flex; width: 100%; min-height: 48px; align-items: center; gap: 10px; margin-bottom: 8px; padding: 8px 10px; color: #3e554a; background: #fff; border: 1px solid #e1e9e3; border-radius: 11px; font-size: 11px; text-align: left; cursor: grab; transition: border-color .15s, transform .15s; }
.wb-component:hover { color: #24573f; border-color: #9abca5; transform: translateY(-1px); }
.wb-component > span { display: grid; width: 29px; height: 29px; place-items: center; flex: none; color: #2e654a; background: #edf4e9; border-radius: 8px; font-size: 15px; font-weight: 700; }
.wb-component i { margin-left: auto; color: #a0aea6; font-style: normal; }
.wb-toolbox-tip { margin-top: 18px; padding: 12px; color: #87998e; background: #f0f5ef; border-radius: 10px; font-size: 10px; line-height: 1.8; }
.wb-stage { display: flex; min-width: 0; min-height: 0; flex-direction: column; background: #e9eeea; }
.wb-stage-tools { display: flex; min-height: 43px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; color: #718078; background: #f5f8f5; border-bottom: 1px solid #dce4dd; font-size: 10px; }
.wb-stage-tools > span { display: flex; align-items: center; gap: 7px; }
.wb-stage-tools > span i { width: 3px; height: 3px; background: #96a49c; border-radius: 50%; }
.wb-stage-tools > div { display: flex; align-items: center; gap: 2px; }
.wb-stage-tools button { min-width: 27px; padding: 5px 7px; color: #63766b; background: transparent; border: 0; border-radius: 5px; font-size: 10px; }
.wb-stage-tools button:hover, .wb-stage-tools button.active { color: #2c5e45; background: #e0e9df; }
.wb-stage-tools strong { min-width: 39px; font-size: 10px; text-align: center; }
.wb-viewport { display: flex; min-width: 0; min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
.wb-scaler { position: relative; flex: none; margin: auto; }
.wb-canvas { position: absolute; top: 0; left: 0; width: 1600px; height: 900px; flex: none; overflow: hidden; transform-origin: 0 0; box-shadow: 0 14px 50px rgba(14, 38, 29, .2); user-select: none; }
.wb-canvas.show-grid::after { content: ''; position: absolute; z-index: 10001; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(rgba(184, 222, 201, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 222, 201, .4) 1px, transparent 1px); background-size: 40px 40px; }
.wb-element { position: absolute; transform-origin: center; }
#wb-canvas .wb-element { touch-action: none; cursor: move; }
#wb-canvas .wb-element.locked { cursor: not-allowed; }
#wb-canvas .wb-element.selected { outline: 2px solid #b5e56d; outline-offset: 3px; }
#wb-canvas .wb-element.dragging { opacity: .82; }
.wb-text { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; overflow: hidden; line-height: 1.15; white-space: pre-line; overflow-wrap: anywhere; }
.wb-shape { width: 100%; height: 100%; }
.wb-element img, .wb-element video, .wb-element canvas { display: block; width: 100%; height: 100%; border: 0; }
.wb-element canvas { outline: none; }
.wb-type-image, .wb-type-video, .wb-type-model { overflow: visible; }
.wb-media-empty { display: grid; width: 100%; height: 100%; place-items: center; color: #9bb2a6; background: rgba(11, 38, 29, .7); border: 1px dashed #5b7b69; font-size: 20px; }
.wb-model-hint { position: absolute; right: 10px; bottom: 8px; padding: 4px 7px; color: rgba(220, 241, 229, .7); background: rgba(4, 22, 16, .45); border-radius: 5px; font-size: 11px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.wb-type-model:hover .wb-model-hint { opacity: 1; }
.wb-handle { position: absolute; z-index: 8; width: 28px; height: 28px; background: #f7fff2; border: 2px solid #77a84e; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.wb-nw { top: -15px; left: -15px; cursor: nwse-resize; }.wb-n { top: -15px; left: calc(50% - 14px); cursor: ns-resize; }.wb-ne { top: -15px; right: -15px; cursor: nesw-resize; }.wb-e { top: calc(50% - 14px); right: -15px; cursor: ew-resize; }.wb-se { right: -15px; bottom: -15px; cursor: nwse-resize; }.wb-s { bottom: -15px; left: calc(50% - 14px); cursor: ns-resize; }.wb-sw { bottom: -15px; left: -15px; cursor: nesw-resize; }.wb-w { top: calc(50% - 14px); left: -15px; cursor: ew-resize; }
.wb-rotate { position: absolute; z-index: 8; top: -64px; left: calc(50% - 22px); width: 44px; height: 44px; background: #d8f59c; border: 2px solid #649344; border-radius: 50%; cursor: grab; }
.wb-rotate::after { content: ''; position: absolute; top: 42px; left: 20px; width: 2px; height: 20px; background: #9bc876; }
.wb-lock { position: absolute; top: 5px; right: 5px; padding: 4px 7px; color: #183b2b; background: #d9edaa; border-radius: 5px; font-size: 11px; }
.wb-delete-btn { position: absolute; z-index: 9; top: -16px; right: -16px; width: 30px; height: 30px; display: grid; place-items: center; color: #fff; background: #e0584b; border: 2px solid #fff; border-radius: 50%; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 3px 10px rgba(200,60,50,.45); transition: transform .15s, background .15s; }
.wb-delete-btn:hover { background: #c94336; transform: scale(1.12); }
.wb-move-handle { position: absolute; z-index: 8; bottom: -48px; left: 50%; transform: translateX(-50%); padding: 5px 14px; color: #fff; background: rgba(44,96,70,.92); border: 1px solid rgba(255,255,255,.5); border-radius: 14px; font-size: 11px; font-weight: 600; letter-spacing: .5px; cursor: grab; white-space: nowrap; box-shadow: 0 4px 12px rgba(7,29,20,.35); user-select: none; touch-action: none; transition: background .15s; }
.wb-move-handle:hover { background: rgba(56,120,88,.96); }
.wb-element.dragging .wb-move-handle { cursor: grabbing; }

/* Create dropdown */
.wb-create-menu { position: relative; display: inline-block; }
.wb-create-dropdown { position: absolute; z-index: 200; top: calc(100% + 6px); right: 0; min-width: 200px; padding: 6px; background: #fff; border: 1px solid #e1e9e3; border-radius: 10px; box-shadow: 0 12px 32px rgba(7,29,20,.16); display: none; }
.wb-create-dropdown.show { display: block; }
.wb-create-dropdown button { display: block; width: 100%; padding: 10px 12px; color: #314b3e; background: transparent; border: 0; border-radius: 7px; font-size: 12px; text-align: left; cursor: pointer; }
.wb-create-dropdown button:hover { background: #eff5eb; color: #2c6046; }
.wb-create-options { display: flex; gap: 10px; margin-top: 16px; }
.wb-create-options button { padding: 10px 18px; }
.danger-text { color: #c94336 !important; }
.wb-stage-tools .danger-text { padding: 6px 12px; background: transparent; border: 1px solid #e8c9c5; border-radius: 7px; font-size: 11px; cursor: pointer; }
.wb-stage-tools .danger-text:hover { background: #fdf0ee; }

/* Inspector */
.wb-property-group > label, .wb-binding label { display: block; margin: 0 0 13px; color: #657a6e; font-size: 10px; }
.wb-property-group > label > span { float: right; color: #8b9b92; }
.wb-property-group input:not([type=color]):not([type=range]):not([type=checkbox]), .wb-property-group select, .wb-property-group textarea, .wb-binding select { width: 100%; min-height: 33px; margin-top: 6px; padding: 7px 8px; color: #314b3e; background: #fff; border: 1px solid #dce5de; border-radius: 7px; outline: none; font-size: 11px; }
.wb-property-group textarea { resize: vertical; line-height: 1.5; }
.wb-property-group input:focus-visible, .wb-property-group select:focus-visible, .wb-property-group textarea:focus-visible, .wb-binding select:focus-visible { border-color: #83a98f; box-shadow: 0 0 0 3px rgba(92, 139, 105, .08); }
.wb-property-group input[type=range] { width: 100%; margin-top: 9px; accent-color: #548363; }
.wb-position-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.wb-color { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px; background: #fff; border: 1px solid #dce5de; border-radius: 8px; }
.wb-color input { width: 30px; height: 27px; padding: 0; background: none; border: 0; }
.wb-color code { color: #657a6e; font-size: 10px; }
.wb-check { display: flex !important; align-items: center; gap: 7px; }
.wb-check input { margin: 0; accent-color: #548363; }
.wb-binding { margin: 18px -4px 14px; padding: 12px 9px 2px; background: #eff5eb; border: 1px solid #e0e9da; border-radius: 10px; }
.wb-binding strong { display: block; margin-bottom: 12px; color: #3f624d; font-size: 11px; }
.wb-upload-replace { width: 100%; margin: 0 0 14px; padding: 7px; font-size: 11px; }
.wb-help { margin: 14px 0; color: #899a90; font-size: 10px; line-height: 1.75; }
.wb-layer-actions { display: flex; gap: 5px; margin: 10px 0; }
.wb-layer-actions button { min-height: 31px; flex: 1; padding: 6px 4px; color: #5b7165; background: #fff; border: 1px solid #dce5de; border-radius: 7px; font-size: 10px; }
.wb-layer-actions button:hover { color: #2c6046; background: #eff5eb; }
.wb-layers { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e2eae4; }
.wb-layers .wb-panel-title { margin-bottom: 8px; }
.wb-layers > button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px; color: #708278; background: transparent; border: 0; border-radius: 6px; font-size: 10px; text-align: left; }
.wb-layers > button.active { color: #315d45; background: #eaf2e5; }
.wb-layers > button > span { display: grid; width: 23px; height: 23px; place-items: center; flex: none; background: #fff; border: 1px solid #e0e8e1; border-radius: 5px; }
.wb-layers em { overflow: hidden; flex: 1; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

/* Dialogs, preview and feedback */
.wb-toast { position: fixed; z-index: 1300; bottom: 28px; left: 50%; max-width: calc(100vw - 40px); padding: 11px 18px; color: #eff8ee; background: #173d2f; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; box-shadow: 0 10px 35px rgba(7, 29, 20, .24); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .2s ease; }
.wb-toast.show { opacity: 1; transform: translate(-50%, 0); }
.wb-modal-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; padding: 24px; place-items: center; background: rgba(5, 23, 17, .65); backdrop-filter: blur(8px); }
.wb-share-dialog { position: relative; width: min(520px, 100%); padding: 36px; background: #fff; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.24); }
.wb-modal-close { position: absolute; top: 12px; right: 14px; color: #7f9186; background: none; border: 0; font-size: 25px; }
.wb-share-symbol { display: grid; width: 48px; height: 48px; margin-bottom: 20px; place-items: center; color: #315c3d; background: #e5f1d1; border-radius: 15px; font-size: 24px; }
.wb-share-dialog h2 { margin: 0 0 10px; color: #193a2c; font-size: 23px; }
.wb-share-dialog > p { margin: 0 0 22px; color: #74877b; font-size: 12px; line-height: 1.8; }
.wb-share-url { display: flex; gap: 8px; padding: 7px; background: #f1f5f0; border: 1px solid #e0e8df; border-radius: 10px; }
.wb-share-url input { min-width: 0; flex: 1; padding: 6px; color: #557063; background: transparent; border: 0; font-size: 11px; }
.wb-share-url button { flex: none; padding: 8px 13px; font-size: 11px; }
.wb-share-actions { display: flex; align-items: center; gap: 13px; margin-top: 20px; }
.wb-share-actions button { font-size: 11px; }
.wb-share-actions .text-button:last-child { margin-left: auto; }
.wb-full-preview { position: fixed; z-index: 1100; inset: 0; display: flex; flex-direction: column; color: #eaf4ec; background: #030e0b; }
.wb-full-preview > header { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 22px; background: #0b211a; border-bottom: 1px solid rgba(255,255,255,.08); }
.wb-full-preview > header strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.wb-full-preview > header button { color: #d6e7dc; background: #18372b; border-color: #315244; }
.wb-preview-viewport { display: flex; min-height: 0; flex: 1; overflow: hidden; }
.wb-preview-scaler { position: relative; flex: none; margin: auto; }
.wb-preview-scaler .wb-canvas { box-shadow: none; }

/* Public, responsive 16:9 presentation */
body:has(.wb-public), body:has(.wb-public-loading) { overflow: hidden; background: #051510; }
.wb-public { display: grid; height: 100vh; height: 100dvh; grid-template-rows: 72px minmax(0, 1fr) 38px; overflow: hidden; color: #e9f4ec; background: radial-gradient(circle at 15% 0, #133b2d, #051510 55%); }
.wb-public > header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 10px 30px; border-bottom: 1px solid rgba(194, 228, 205, .09); }
.wb-public-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.wb-public-brand > span { display: grid; width: 36px; height: 36px; place-items: center; color: #25482f; background: #cee899; border-radius: 10px; }
.wb-public-brand strong, .wb-public-brand small { display: block; }
.wb-public-brand strong { font-size: 13px; }
.wb-public-brand small { margin-top: 3px; color: #7fa08e; font-size: 7px; letter-spacing: .16em; }
.wb-public-title { display: flex; align-items: center; gap: 9px; color: #b8cec0; font-size: 11px; }
.wb-public-title i { width: 5px; height: 5px; background: #a5ce78; border-radius: 50%; }
.wb-public-live { justify-self: end; color: #8db49c; font-size: 8px; letter-spacing: .16em; }
.wb-public-viewport { display: flex; min-width: 0; min-height: 0; overflow: hidden; }
.wb-public-scaler { position: relative; flex: none; margin: auto; }
.wb-public-scaler .wb-canvas { box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.wb-public > footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; color: #658372; border-top: 1px solid rgba(194, 228, 205, .07); font-size: 8px; letter-spacing: .06em; }
.wb-public-loading { display: grid; height: 100vh; height: 100dvh; place-content: center; padding: 30px; color: #d8e8dc; background: radial-gradient(circle at 50% 20%, #194c38, #061611 60%); text-align: center; }
.wb-public-loading > span { display: grid; width: 56px; height: 56px; margin: 0 auto 20px; place-items: center; color: #25482f; background: #cee899; border-radius: 18px; font-size: 24px; animation: wb-pulse 1.4s ease-in-out infinite alternate; }
.wb-public-loading h1 { margin: 0 0 10px; font-size: 24px; }
.wb-public-loading p { margin: 0 0 20px; color: #8ca698; font-size: 13px; }
.wb-public-loading a { justify-self: center; }
@keyframes wb-pulse { to { transform: scale(1.07); box-shadow: 0 0 35px rgba(206,232,153,.22); } }

@media (max-width: 1260px) {
  .wb-board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-editor-body { grid-template-columns: 174px minmax(0, 1fr) 254px; }
  .wb-editor-actions button { padding-inline: 9px; }
  .wb-editor-actions .icon { display: none; }
}
@media (max-width: 980px) {
  .wb-editor { height: auto; min-height: 720px; }
  .wb-editor-body { grid-template-columns: 160px minmax(0, 1fr); overflow: auto; }
  .wb-stage { min-height: 520px; }
  .wb-inspector { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr); gap: 12px 22px; max-height: none; border-top: 1px solid #e1e9e3; border-left: 0; }
  .wb-inspector > .wb-panel-title { grid-column: 1 / -1; margin-bottom: 0; }
  .wb-inspector .wb-layers { grid-column: 2; grid-row: 2 / span 3; margin-top: 0; padding-top: 0; padding-left: 18px; border-top: 0; border-left: 1px solid #e2eae4; }
  .wb-editor-top { flex-wrap: wrap; }
  .wb-editor-actions { width: 100%; justify-content: flex-end; }
  .wb-public > header { padding-inline: 18px; }
}
@media (max-width: 700px) {
  .main-content:has(.wb-editor) { padding: 10px; }
  .wb-intro { align-items: flex-start; padding: 18px; }
  .wb-intro > span { display: none; }
  .wb-intro-icon { width: 40px; height: 40px; }
  .wb-board-grid { grid-template-columns: 1fr; }
  .wb-board-preview { height: 180px; }
  .wb-editor { min-height: 0; border-radius: 14px; }
  .wb-editor-top { gap: 9px; padding: 10px; }
  .wb-title-wrap { grid-template-columns: 7px minmax(100px, 1fr); flex: 1; }
  .wb-editor-actions { justify-content: flex-start; overflow-x: auto; }
  .wb-editor-actions button { flex: none; }
  .wb-editor-body, .wb-editor.is-readonly .wb-editor-body { display: block; overflow: visible; }
  .wb-toolbox { display: flex; gap: 7px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e1e9e3; }
  .wb-toolbox .wb-panel-title, .wb-toolbox-tip { display: none; }
  .wb-component { width: auto; min-width: 112px; min-height: 40px; margin: 0; padding: 5px 8px; white-space: nowrap; }
  .wb-component > span { width: 25px; height: 25px; }
  .wb-component i { display: none; }
  .wb-stage { min-height: 390px; }
  .wb-stage-tools { padding-inline: 8px; }
  .wb-inspector { display: block; max-height: none; padding: 16px; }
  .wb-inspector .wb-layers { margin-top: 18px; padding-top: 15px; padding-left: 0; border-top: 1px solid #e2eae4; border-left: 0; }
  .wb-share-dialog { padding: 28px 20px; }
  .wb-share-url { flex-wrap: wrap; }
  .wb-share-url input { min-height: 32px; }
  .wb-share-actions { flex-wrap: wrap; }
  .wb-full-preview > header { min-height: 54px; padding: 8px 12px; }
  .wb-full-preview > header button { padding: 7px 9px; font-size: 10px; }
  .wb-public { grid-template-rows: 54px minmax(0, 1fr) 28px; }
  .wb-public > header { grid-template-columns: 1fr auto; gap: 10px; padding: 7px 12px; }
  .wb-public-brand > span { width: 30px; height: 30px; }
  .wb-public-brand small, .wb-public-title { display: none; }
  .wb-public-brand strong { font-size: 11px; }
  .wb-public-live { font-size: 7px; }
  .wb-public > footer { padding: 0 12px; font-size: 6px; }
  .wb-public > footer span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wb-public > footer span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-board-card, .wb-board-open, .wb-toast, .wb-component { transition: none; }
  .wb-public-loading > span { animation: none; }
}

/* ===== 实时指标卡片（科技感折线图） ===== */
.wb-metric-card {
  width: 100%; height: 100%;
  position: relative;
  background: linear-gradient(160deg, rgba(8,28,22,.92), rgba(6,20,16,.96));
  border: 1px solid rgba(34,211,238,.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
}
.wb-metric-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(34,211,238,.08), transparent 60%);
  pointer-events: none;
}
.wb-metric-chart {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.wb-metric-head {
  position: absolute; top: 10px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 2;
}
.wb-metric-name {
  font-size: 12px; color: rgba(200,230,220,.7);
  letter-spacing: .5px; font-weight: 500;
}
.wb-metric-dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
  animation: wb-pulse 1.6s ease-in-out infinite;
}
@keyframes wb-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }
.wb-metric-value {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 38px; font-weight: 700;
  font-family: 'SF Mono','Consolas',monospace;
  line-height: 1; z-index: 2;
}
.wb-metric-value small {
  font-size: 14px; font-weight: 500;
  margin-left: 4px; opacity: .7;
}
.wb-metric-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(200,230,220,.5); font-size: 13px;
  text-align: center; line-height: 1.6;
}

/* ===== 背景组件 ===== */
.wb-background {
  width: 100%; height: 100%;
  position: relative;
  border-radius: 0;
}
.wb-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.wb-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.wb-bg-circuit {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(34,211,238,.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34,211,238,.1) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 30px 30px;
}
.wb-bg-circuit::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30px 30px, rgba(34,211,238,.2) 3px, transparent 3px),
    radial-gradient(circle at 90px 90px, rgba(34,211,238,.15) 2px, transparent 2px);
  background-size: 120px 120px;
}

/* ===== 画布科技感升级 ===== */
.wb-canvas {
  box-shadow: 0 0 60px rgba(0,0,0,.35), inset 0 0 40px rgba(0,0,0,.08);
}
.wb-canvas.show-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(34,211,238,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.03) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px;
}

/* ===== 科技感组件库按钮 ===== */
.wb-component[data-wb-add="metric"] span { color: #22d3ee; }
.wb-component[data-wb-add="background"] span { color: #a78bfa; }

