/* Configuration workspace; intentionally independent from runtime card styles. */
body.dashboard-studio-open { background:#eef2f5; }
.dashboard-studio-open .sidebar,.dashboard-studio-open .sidebar-scrim,.dashboard-studio-open .mobile-nav,.dashboard-studio-open .page-footer { display:none!important; }
.dashboard-studio-open .main-column { margin-left:0;width:100%; }
.dashboard-studio-open .page-body { padding:0;max-width:none; }
.dashboard-studio { --ds-ink:#18332e;--ds-muted:#65766f;--ds-line:#dce5e0;--ds-accent:#245f50;--ds-panel:#fff;min-height:100vh;color:var(--ds-ink);font-size:13px;background:#eef2f5;padding-bottom:env(safe-area-inset-bottom); }
.dashboard-studio h1,.dashboard-studio h2,.dashboard-studio h3 { color:var(--ds-ink); }
.ds-header { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 28px 16px;background:#fff;border-bottom:1px solid var(--ds-line); }
.ds-title h1 { margin:0 0 6px;font-size:25px;letter-spacing:-.7px; }
.ds-eyebrow { color:#64887b;font-size:9px;letter-spacing:1.8px;font-weight:700;margin:0 0 5px; }
.ds-save-status { color:var(--ds-muted);font-size:11px; }
.ds-save-status[data-dirty=true] { color:#8b611e; }
.ds-header-actions,.ds-history,.ds-card-actions,.ds-dialog-actions { display:flex;align-items:center;gap:8px;flex-wrap:wrap; }
.ds-history { margin-right:10px;padding-right:15px;border-right:1px solid var(--ds-line); }
.ds-button,.ds-icon-button,.ds-profile,.ds-link { appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 12px;background:#fff;border:1px solid var(--ds-line);border-radius:9px;color:var(--ds-ink);font-size:12px;font-weight:600;line-height:1.3;cursor:pointer; }
.ds-button:hover,.ds-icon-button:hover { border-color:#92b1a4;background:#f4f9f6; }
.ds-button svg,.ds-icon-button svg { width:17px;height:17px;flex:none; }
.ds-primary { color:#fff;background:var(--ds-accent);border-color:var(--ds-accent); }
.ds-primary:hover { color:#fff;background:#1b4d40;border-color:#1b4d40; }
.ds-small { min-height:34px;font-size:11px;padding:7px 10px; }
.ds-danger { color:#a5453f; }
.ds-link { border:0;background:none;padding:6px;font-size:11px;color:#3f7663;min-height:32px; }
.ds-button:focus-visible,.ds-icon-button:focus-visible,.ds-profile:focus-visible,.ds-card-list-item:focus-visible,.ds-handle:focus-visible { outline:3px solid #75b9a2;outline-offset:3px; }
.ds-profile-bar { display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 28px;background:#f9fbfa;border-bottom:1px solid var(--ds-line); }
.ds-profile-tabs { display:flex;gap:4px;padding:4px;background:#e7efeb;border-radius:12px;flex:none; }
.ds-profile { background:transparent;border-color:transparent;min-height:35px;padding:8px 16px;color:#617b6e; }
.ds-profile[aria-pressed=true] { background:#fff;color:#245f50;box-shadow:0 2px 6px #1d4c3412; }
.ds-profile-note { margin:0;font-size:11px;color:var(--ds-muted); }
.ds-workbench { display:grid;grid-template-columns:230px minmax(0,1fr)300px;gap:18px;padding:20px;align-items:start; }
.ds-library,.ds-inspector { background:var(--ds-panel);border:1px solid var(--ds-line);border-radius:14px;padding:16px;min-width:0;max-height:calc(100vh - 185px);overflow:auto;scrollbar-width:thin;position:sticky;top:16px; }
.ds-section-title { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px; }
.ds-section-title h2,.ds-inspector>h2 { margin:0;font-size:17px;line-height:1.35; }
.ds-field { display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:var(--ds-ink);margin:0; }
.ds-field-label { font-weight:600;font-size:11px; }
.dashboard-studio input:not([type=checkbox]):not([type=color]),.dashboard-studio select,.dashboard-studio textarea,.ds-settings-dialog input:not([type=checkbox]):not([type=color]),.ds-settings-dialog select { border:1px solid #d9e3de;border-radius:8px;min-height:38px;padding:8px 10px;width:100%;background:#fff;color:#203d32;font-size:12px; }
.dashboard-studio textarea { resize:vertical;min-height:90px; }
.dashboard-studio input:focus,.dashboard-studio select:focus,.dashboard-studio textarea:focus,.ds-settings-dialog input:focus,.ds-settings-dialog select:focus { border-color:#4b9479;outline:2px solid #8fc9b44d;outline-offset:1px; }
.dashboard-studio input[type=checkbox],.ds-settings-dialog input[type=checkbox] { accent-color:#245f50;width:17px;height:17px;margin:0;flex:none; }
.ds-library>input { margin-bottom:12px; }
.ds-library-filters { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.ds-list-status { color:var(--ds-muted);font-size:10px;margin:15px 0 8px;text-transform:uppercase;letter-spacing:.8px; }
.ds-card-list { display:flex;flex-direction:column;gap:5px; }
.ds-card-list-item { display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;padding:11px 10px;gap:5px;border:1px solid transparent;border-radius:9px;background:#f6f8f7;color:var(--ds-ink);font-size:12px;font-weight:600;min-height:58px; }
.ds-card-list-item small { font-size:9px;line-height:1.5;color:#7c8f84;font-weight:400; }
.ds-card-list-item[aria-pressed=true] { border-color:#7cae99;background:#eaf4ee;box-shadow:inset 3px 0 #357c60; }
.ds-help { font-size:10px;line-height:1.6;color:var(--ds-muted);margin:10px 0 0; }
.ds-library>.ds-help { padding-top:10px;border-top:1px solid var(--ds-line); }
.ds-center { min-width:0; }
.ds-page-controls { display:flex;align-items:flex-end;gap:12px;margin-bottom:12px; }
.ds-page-controls .ds-field { flex:1;max-width:230px; }
.ds-preview-badge { font-size:8px;letter-spacing:.9px;color:#668477;margin-left:auto;padding-bottom:11px;white-space:nowrap; }
.ds-grid-controls { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:13px;background:#fff;border:1px solid var(--ds-line);border-radius:12px; }
.ds-grid-controls .ds-field:nth-child(6) { grid-column:span 2; }
.ds-canvas-tools { display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:7px 0; }
.ds-canvas-tools>.ds-help { margin:0;flex:1;min-width:180px; }
.ds-preview-scroll { overflow:auto;position:relative;max-height:calc(100vh - 370px);min-height:390px;border:1px solid #cbd6df;border-radius:16px;background-color:#dce4e9;background-image:radial-gradient(#aebfc8 1px,transparent 1px);background-size:16px 16px;padding:16px;scrollbar-width:thin;overscroll-behavior:contain; }
.ds-preview-sizer { position:relative;margin:0 auto;min-height:300px; }
.ds-preview-canvas { transform-origin:top left;position:relative;background:var(--touch-background,#313d49);padding:14px;border-radius:18px;box-shadow:0 12px 28px #233e4b1a;--touch-text:#f4f8fb;--touch-muted:#b6c1cc;--touch-surface:#212b34;--touch-accent:#9bc3f7;--touch-radius:22px;--touch-gap:12px;--touch-mobile-columns:3;--touch-tablet-columns:6;min-height:300px; }
.ds-preview-card { outline:2px solid transparent;outline-offset:2px;cursor:pointer; }
.ds-preview-card.is-selected { outline-color:#8dc9ff;z-index:2; }
.ds-preview-card.is-moving { z-index:6;outline-color:#e7f5ff;box-shadow:0 12px 30px #0004; }
.ds-preview-card>.touch-card-main,.ds-preview-card .touch-card-inline,.ds-preview-card input,.ds-preview-card select,.ds-preview-card textarea { pointer-events:none; }
.ds-card-overlay { position:absolute;inset:0;pointer-events:none;z-index:8; }
.ds-handle { display:flex;position:absolute;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border-radius:9px;background:#f8fcff;color:#214c65;border:1px solid #a6c8e2;box-shadow:0 2px 7px #122b3533;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;opacity:0;transition:opacity .12s; }
.ds-handle span { display:none; }
.ds-handle svg { width:19px;height:19px; }
.ds-move { left:5px;top:5px;transform:scale(var(--ds-inverse-scale,1));transform-origin:top left; }
.ds-resize { right:5px;bottom:5px;cursor:nwse-resize;transform:scale(var(--ds-inverse-scale,1));transform-origin:bottom right; }
.ds-preview-card:hover .ds-handle,.ds-preview-card:focus-within .ds-handle,.ds-preview-card.is-selected .ds-handle { opacity:1; }
.ds-gesturing,.ds-gesturing * { user-select:none!important; }
.ds-inspector>h2 { margin:5px 0 13px;overflow-wrap:anywhere; }
.ds-card-actions { margin-bottom:17px; }
.ds-section { display:flex;flex-direction:column;gap:11px;margin:0 0 19px;padding:0 0 19px;border-bottom:1px solid var(--ds-line); }
.ds-section>h3 { margin:0;font-size:13px; }
.ds-section>.ds-help { margin:0; }
.ds-dimensions { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
.ds-check { display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.5;min-height:30px; }
.ds-nudge { display:flex;align-items:center;gap:7px; }
.ds-nudge button { flex:1;min-width:35px;font-size:18px; }
.ds-color-setting { display:flex;align-items:center;justify-content:space-between;gap:8px; }
.ds-color-setting .ds-check { flex:1;min-width:0; }
.ds-color-control { display:inline-flex;flex:none;max-width:100%; }
.ds-color-trigger { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;max-width:100%;box-sizing:border-box;padding:6px 8px;border:1px solid #cbdad2;border-radius:8px;background:#fff;color:#203d32;cursor:pointer; }
.ds-color-trigger:disabled { opacity:.5;cursor:default; }
.ds-color-swatch { width:24px;height:24px;flex:none;border:1px solid #203d3233;border-radius:5px; }
.ds-color-value { font-family:Consolas,monospace;font-size:10px; }
.ds-color-trigger:focus-visible { outline:3px solid #75b9a2;outline-offset:2px; }
/* This top-layer dialog is independent of the inspector's clipping/scrolling.
 * JS bounds it to visualViewport, including browser zoom and keyboard changes. */
.ds-color-dialog { --ds-ink:#18332e;--ds-muted:#65766f;--ds-line:#dce5e0;--ds-accent:#245f50;position:fixed;inset:auto;margin:0;padding:0;width:min(410px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;transform:translateY(-50%);overflow:auto;overscroll-behavior:contain;border:1px solid #cbdad2;border-radius:15px;background:#fff;color:var(--ds-ink);font-family:inherit;font-size:13px;line-height:1.5;box-shadow:0 16px 60px #0b242e40; }
.ds-color-dialog::backdrop { background:#102a3077; }
.ds-color-form { display:block;min-width:0;margin:0;padding:0; }
.ds-color-header { position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--ds-line);background:#fff; }
.ds-color-header h2 { margin:0;font-size:17px;line-height:1.35;overflow-wrap:anywhere; }
.ds-color-header h2:focus { outline:none; }
.ds-color-header .ds-icon-button { flex:none; }
.ds-color-header .ds-icon-button span { display:none; }
.ds-color-body { display:flex;flex-direction:column;gap:14px;min-width:0;padding:16px; }
.ds-color-palette { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px; }
.ds-color-choice { display:block;min-width:0;width:100%;height:40px;padding:0;border:1px solid #203d3233;border-radius:7px;cursor:pointer; }
.ds-color-choice[aria-pressed=true] { outline:2px solid #18332e;outline-offset:2px;box-shadow:inset 0 0 0 2px #fff; }
.ds-color-hex-row { display:grid;grid-template-columns:54px minmax(0,1fr);align-items:end;gap:12px; }
.ds-color-preview { display:block;height:54px;border:1px solid #203d3233;border-radius:9px; }
.ds-color-dialog input[type=text] { min-width:0;width:100%;min-height:40px;box-sizing:border-box;border:1px solid #cbdad2;border-radius:8px;padding:8px 10px;font:14px Consolas,monospace;background:#fff;color:var(--ds-ink); }
.ds-color-channels { display:grid;gap:5px; }
.ds-color-channel { display:grid;grid-template-columns:44px minmax(0,1fr) 3ch;align-items:center;gap:10px;min-width:0;min-height:40px;margin:0;font-size:12px; }
.ds-color-channel input[type=range] { box-sizing:border-box;min-width:0;width:100%;height:32px;margin:0;padding:0;border:0;accent-color:#245f50;cursor:pointer; }
.ds-color-channel output { text-align:right;font-variant-numeric:tabular-nums; }
.ds-color-body>.ds-help { margin:0;font-size:11px; }
.ds-color-error { margin:0;color:#98492e;font-size:12px;line-height:1.5; }
.ds-color-dialog [hidden] { display:none!important; }
.ds-color-footer { position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 16px;border-top:1px solid var(--ds-line);background:#fff; }
.ds-color-footer>.ds-button { min-height:44px; }
.ds-color-dialog[data-compact=true] .ds-color-header,.ds-color-dialog[data-compact=true] .ds-color-footer { position:static; }
.ds-color-dialog :is(button,input):focus-visible { outline:3px solid #75b9a2;outline-offset:2px; }
@media (max-width:420px) { .ds-color-body { padding:14px; }.ds-color-palette { gap:7px; }.ds-color-footer { padding:12px 14px; }.ds-color-footer>.ds-button { flex:1; }.ds-color-trigger { min-height:44px; } }
.ds-bindings { padding:10px 0;border-bottom:1px solid var(--ds-line); }
.ds-bindings summary { cursor:pointer;font-weight:600;font-size:12px;margin-bottom:12px; }
.ds-bindings .ds-field { margin:10px 0; }
.ds-inspector-empty,.ds-empty-list { color:var(--ds-muted);font-size:12px;line-height:1.7;padding:20px 4px; }
.ds-empty-preview { color:#b9ccd9;text-align:center;font-size:15px;padding:50px 25px; }
.ds-error { background:#fff4e5;color:#7d4718;border-bottom:1px solid #f2d3a7;padding:13px 28px;line-height:1.6;font-size:12px; }
.ds-error-actions { display:flex;gap:10px;margin-top:8px; }
.ds-footer { display:flex;justify-content:space-between;gap:18px;padding:5px 24px 18px;color:#7e9186;font-size:10px; }
.ds-footer .ds-help { margin:0; }
.ds-settings-dialog { --ds-ink:#18332e;--ds-muted:#65766f;--ds-line:#dce5e0;--ds-accent:#245f50;--ds-panel:#fff;width:min(760px,calc(100vw - 24px));max-height:min(90vh,calc(100dvh - 24px));padding:0;border:1px solid #d8e5de;border-radius:18px;background:#fff;color:#18332e;overflow:hidden; }
.ds-settings-dialog::backdrop { background:#102a30aa;backdrop-filter:blur(4px); }
.ds-settings-form { padding:0;display:flex;flex-direction:column;max-height:inherit;margin:0; }
.ds-settings-header { flex:none;margin:0;padding:20px 24px 15px;border-bottom:1px solid var(--ds-line); }
.ds-settings-scroll { display:flex;flex-direction:column;gap:17px;padding:20px 24px;min-height:0;overflow:auto;overscroll-behavior:contain; }
.ds-settings-footer { flex:none;padding:12px 24px 18px;background:#fff;border-top:1px solid var(--ds-line); }
.ds-settings-footer>.ds-help { margin:0 0 10px; }
.ds-settings-error { background:#fff4e5;color:#7d4718;padding:10px 12px;border:1px solid #f2d3a7;border-radius:8px;margin-bottom:10px;font-size:12px;line-height:1.5; }
.ds-items-editor { min-width:0; }
.ds-item-quick { border:1px solid var(--ds-line);border-radius:9px;padding:10px; }
.ds-item-quick>summary,.ds-item-widget>summary { cursor:pointer;font-weight:600;font-size:11px;line-height:1.5; }
.ds-item-quick>input { margin:10px 0; }
.ds-item-checklist { max-height:210px;overflow:auto;display:flex;flex-direction:column;gap:3px; }
.ds-item-checklist .ds-check { align-items:flex-start;padding:5px 0; }
.ds-item-checklist .ds-check[hidden] { display:none; }
.ds-item-checklist .ds-check>span { overflow-wrap:anywhere; }
.ds-item-row { border:1px solid var(--ds-line);border-radius:10px;background:#fff;min-width:0; }
.ds-item-row>summary { cursor:pointer;padding:11px 12px;font-size:12px;font-weight:600;overflow-wrap:anywhere; }
.ds-item-row>summary>small { display:block;font-weight:400;color:var(--ds-muted);font-size:10px;margin-top:4px; }
.ds-item-fields { padding:0 12px 12px;display:flex;flex-direction:column;gap:11px; }
.ds-item-actions,.ds-item-additions { display:flex;gap:6px;flex-wrap:wrap; }
.ds-item-actions { padding-top:8px;border-top:1px solid var(--ds-line); }
.ds-item-additions>.ds-button { flex:1 1 160px; }
.ds-item-widget { border-top:1px solid var(--ds-line);padding-top:10px; }
.ds-item-widget>.ds-field { margin-top:10px; }
.ds-item-empty { color:#7d4718;background:#fff7e8;border-radius:8px;padding:10px;font-size:11px;line-height:1.5;margin:0; }
.ds-items-required { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;pointer-events:none; }
.ds-settings-form .ds-section { margin:0;padding:16px 0; }
.ds-settings-form .ds-section h3 { color:#18332e; }
.ds-navigation-list { display:flex;flex-direction:column;gap:8px; }
.ds-navigation-row { display:flex;gap:7px;align-items:center; }
.ds-navigation-row>input { flex:1;min-width:70px; }
.ds-navigation-row>select { width:130px!important; }
.ds-navigation-row>button { padding:7px;min-width:33px; }
.ds-dialog-actions { justify-content:flex-end;background:#fff;padding:0; }
.dashboard-studio [data-device-picker] { max-width:100%; }
@media (min-width:1800px) { .ds-workbench { grid-template-columns:260px minmax(0,1fr)340px;gap:24px; } .ds-grid-controls { grid-template-columns:repeat(5,minmax(0,1fr)); }.ds-grid-controls .ds-field:nth-child(5){grid-column:auto;} }
@media (max-width:1279px) { .ds-workbench { grid-template-columns:210px minmax(0,1fr); }.ds-inspector { grid-column:1/-1;position:static;max-height:none; }.ds-card-form { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }.ds-card-form>.ds-help { grid-column:1/-1; }.ds-header { padding:18px; }.ds-profile-note { max-width:300px; }.ds-preview-scroll { max-height:65vh; }.ds-inspector-empty { padding:4px; } }
@media (max-width:799px) { .ds-header { align-items:flex-start;gap:12px;flex-direction:column;padding:16px; }.ds-header-actions { width:100%;gap:6px; }.ds-history { margin:0;padding:0;border:0;margin-right:auto; }.ds-history .ds-icon-button>span { display:none; }.ds-title h1 { font-size:23px; }.ds-profile-bar { padding:10px 14px;display:block; }.ds-profile-tabs { width:100%; }.ds-profile { flex:1;padding:8px 5px;font-size:11px; }.ds-profile-note { margin:8px 2px 0;max-width:none;font-size:10px; }.ds-workbench { display:flex;flex-direction:column;padding:12px;gap:14px; }.ds-library,.ds-center,.ds-inspector { width:100%;position:static;max-height:none; }.ds-library { padding:12px; }.ds-library-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.ds-card-list { max-height:190px;overflow:auto; }.ds-library>.ds-help { margin:6px 0 0;padding-top:6px; }.ds-page-controls { flex-wrap:wrap;gap:8px; }.ds-page-controls .ds-field { max-width:none; }.ds-preview-badge { width:100%;padding-bottom:0;text-align:center; }.ds-grid-controls { grid-template-columns:repeat(2,minmax(0,1fr)); }.ds-grid-controls .ds-field:nth-child(5) { grid-column:1/-1; }.ds-canvas-tools { font-size:10px; }.ds-canvas-tools>.ds-help { flex-basis:100%; }.ds-preview-scroll { min-height:330px;max-height:64vh;padding:12px; }.ds-card-form { display:block; }.ds-handle { opacity:1; }.ds-footer { display:block;padding:12px 16px;line-height:1.8; }.ds-footer>.ds-help { display:block; }.ds-error { padding:12px 16px; }.ds-error-actions { flex-wrap:wrap; }.ds-settings-header { padding:16px 18px 12px; }.ds-settings-scroll { padding:16px 18px; }.ds-settings-footer { padding:10px 18px 14px; }.ds-settings-footer .ds-dialog-actions>.ds-button { flex:1; }.ds-navigation-row { flex-wrap:wrap; }.ds-navigation-row>input { flex-basis:100%; }.ds-navigation-row>select { flex:1; } }
@media (prefers-reduced-motion:reduce) { .dashboard-studio * { scroll-behavior:auto!important;transition:none!important; } }

.ds-settings-dialog textarea { min-height:76px; resize:vertical; width:100%; box-sizing:border-box; border:1px solid var(--ds-line); border-radius:9px; padding:10px; font:inherit; color:var(--ds-ink); background:#fff; }
.ds-settings-dialog .ds-color-setting .ds-check { min-width:0; min-height:40px; }
.ds-settings-dialog .ds-color-setting .ds-color-trigger { min-height:40px; }
