.custom-scrollbar::-webkit-scrollbar { width: 8px; height: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #334155; border-radius: 999px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #475569; }
[v-cloak] { display: none; }
.panel-card { background: rgba(15, 23, 42, 0.56); border: 1px solid rgba(148, 163, 184, 0.12); border-radius: 18px; padding: 16px; backdrop-filter: blur(10px); }
.panel-muted { background: rgba(2, 6, 23, 0.62); border: 1px solid rgba(148, 163, 184, 0.1); border-radius: 14px; }
.toolbar-shell { display: flex; align-items: center; gap: 4px; background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.stat-card { background: rgba(2, 6, 23, 0.3); border-radius: 12px; padding: 8px 10px; }
.section-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; color: #e5e7eb; font-size: 12px; font-weight: 600; }
.section-toggle:hover { color: #ffffff; }
.section-subtle { color: #94a3b8; font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em; }
.drawer-section { padding-top: 14px; border-top: 1px solid rgba(148, 163, 184, 0.08); }
.drawer-section:first-child { padding-top: 0; border-top: 0; }
.drawer-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: #e5e7eb; }
.drawer-note { font-size: 11px; line-height: 1.6; color: #94a3b8; }
.inspector-grid > div { border-radius: 12px; background: rgba(2, 6, 23, 0.3); padding: 10px 12px; }
.top-shell { background: rgba(31, 41, 55, 0.96); border-bottom: 1px solid rgba(75, 85, 99, 0.72); }
.workspace-surface { background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 24, 0.98)); }
.status-shell { border: 0; background: transparent; border-radius: 0; }
.meta-pill { border: 0; background: transparent; border-radius: 0; }
.canvas-shell { border: 1px solid rgba(75, 85, 99, 0.48); background: linear-gradient(180deg, #111827 0%, #0f1724 52%, #0b1220 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.02), 0 24px 48px rgba(0,0,0,0.26); }
.top-group { display: flex; align-items: center; gap: 2px; }
.top-sep { width: 1px; height: 20px; background: rgba(75, 85, 99, 0.7); }
.tool-btn { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; color: #9ca3af; transition: all 150ms ease; }
.tool-btn:hover { color: #f3f4f6; background: rgba(55, 65, 81, 0.78); }
.tool-btn:disabled { color: #4b5563; background: transparent; }
.tool-readout { min-width: 46px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 10px; }
.sidebar-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #9ca3af; transition: all 150ms ease; }
.sidebar-btn:hover { color: #f3f4f6; background: rgba(55, 65, 81, 0.78); }
.sidebar-btn-active { background: rgba(55, 65, 81, 0.92); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(107, 114, 128, 0.55); }
.sidebar-btn-accent { background: rgba(5, 150, 105, 0.9); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.28); }
.sidebar-btn-danger { background: rgba(220, 38, 38, 0.9); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(252, 165, 165, 0.24); }
.title-subtle { font-size: 10px; color: #6b7280; letter-spacing: 0.14em; text-transform: uppercase; }
.drawer-head { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(75, 85, 99, 0.72); background: rgba(31, 41, 55, 0.96); }
.drawer-head-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(55, 65, 81, 0.92); border: 1px solid rgba(107, 114, 128, 0.55); color: #93c5fd; flex: none; }
.drawer-close { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #9ca3af; transition: all 150ms ease; }
.drawer-close:hover { color: #f3f4f6; background: rgba(55, 65, 81, 0.78); }
.prop-grid { display: grid; gap: 10px; }
.prop-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prop-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prop-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prop-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prop-label { font-size: 10px; color: #9ca3af; letter-spacing: 0.03em; }
.prop-input, .prop-select, .prop-textarea { width: 100%; background: rgba(3, 7, 18, 0.92); border: 1px solid rgba(55, 65, 81, 0.95); border-radius: 10px; color: #e5e7eb; font-size: 12px; line-height: 1.2; transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease; }
.prop-input, .prop-select { height: 36px; padding: 0 10px; }
.prop-textarea { min-height: 76px; padding: 10px 12px; resize: vertical; }
.prop-input:focus, .prop-select:focus, .prop-textarea:focus { outline: none; border-color: rgba(59, 130, 246, 0.58); box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2); }
.prop-color { width: 42px; height: 36px; padding: 4px; border-radius: 10px; border: 1px solid rgba(55, 65, 81, 0.95); background: rgba(3, 7, 18, 0.92); }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(55, 65, 81, 0.85); }
.seg-btn { min-height: 30px; padding: 0 12px; border-radius: 8px; font-size: 11px; color: #9ca3af; transition: all 150ms ease; }
.seg-btn:not(.seg-active):not(.seg-danger):hover { color: #f3f4f6; background: rgba(31, 41, 55, 0.86); }
.action-btn { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 12px; transition: all 150ms ease; }
.range-shell { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(15, 23, 42, 0.46); border: 1px solid rgba(55, 65, 81, 0.6); }
.preset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.preset-card { border-radius: 12px; overflow: hidden; border: 1px solid rgba(31, 41, 55, 0.92); background: rgba(3, 7, 18, 0.72); transition: all 150ms ease; text-align: left; }
.preset-card:not(.preset-selected):hover { border-color: rgba(75, 85, 99, 0.95); background: rgba(3, 7, 18, 0.92); }
.panel-block { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(55, 65, 81, 0.55); }
.panel-block:first-child { padding-top: 0; border-top: 0; }
.panel-block-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-kicker { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #6b7280; }
.panel-title { font-size: 12px; font-weight: 600; color: #e5e7eb; }
.panel-caption { font-size: 11px; line-height: 1.5; color: #9ca3af; }
.panel-badge { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(15, 23, 42, 0.72); border: 1px solid rgba(55, 65, 81, 0.82); font-size: 10px; color: #cbd5e1; }
.asset-shell { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(2, 6, 23, 0.42); border: 1px solid rgba(31, 41, 55, 0.7); }
.inspector-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.inspector-item { padding: 9px 10px; border-radius: 10px; background: rgba(15, 23, 42, 0.42); border: 1px solid rgba(55, 65, 81, 0.55); min-width: 0; }
.inspector-key { font-size: 10px; color: #6b7280; }
.inspector-value { margin-top: 4px; font-size: 11px; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.edge-wheel { position: relative; width: 220px; height: 172px; margin: 2px auto 0; }
.edge-wheel::before { content: ''; position: absolute; left: 50%; top: 50%; width: 126px; height: 110px; transform: translate(-50%, -50%); background: rgba(2, 6, 23, 0.32); border: 1px solid rgba(55, 65, 81, 0.55); border-radius: 14px; clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%); }
.edge-wheel-square::before { width: 118px; height: 118px; clip-path: inset(0 round 14px); }
.edge-wheel-diamond::before { width: 118px; height: 118px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.edge-wheel-triangle::before { width: 126px; height: 112px; clip-path: polygon(50% 4%, 100% 96%, 0% 96%); }
.edge-btn { position: absolute; width: 56px; height: 34px; border-radius: 10px; background: rgba(3, 7, 18, 0.92); border: 1px solid rgba(55, 65, 81, 0.95); color: #9ca3af; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; transition: all 150ms ease; }
.edge-btn:not(.edge-btn-active):hover { color: #f3f4f6; background: rgba(3, 7, 18, 1); border-color: rgba(75, 85, 99, 0.95); }
.edge-btn-active { background: rgba(37, 99, 235, 0.18); border-color: rgba(59, 130, 246, 0.7); color: #bfdbfe; }
.edge-btn-center { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 66px; }
.edge-btn-0 { left: 50%; top: 6%; transform: translate(-50%, -50%); }
.edge-btn-1 { left: 82%; top: 26%; transform: translate(-50%, -50%); }
.edge-btn-2 { left: 82%; top: 74%; transform: translate(-50%, -50%); }
.edge-btn-3 { left: 50%; top: 94%; transform: translate(-50%, -50%); }
.edge-btn-4 { left: 18%; top: 74%; transform: translate(-50%, -50%); }
.edge-btn-5 { left: 18%; top: 26%; transform: translate(-50%, -50%); }
.edge-btn-6 { left: 86%; top: 50%; transform: translate(-50%, -50%); }
.edge-btn-7 { left: 50%; top: 12%; transform: translate(-50%, -50%); }
.edge-btn-8 { left: 14%; top: 50%; transform: translate(-50%, -50%); }
.edge-btn-9 { left: 50%; top: 88%; transform: translate(-50%, -50%); }
.dialog-backdrop { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(8px); }
.dialog-shell { width: min(860px, 100%); border-radius: 10px; border: 1px solid rgba(75, 85, 99, 0.56); background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 13, 22, 0.98)); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46); overflow: hidden; }
.dialog-head { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(75, 85, 99, 0.6); background: rgba(31, 41, 55, 0.92); }
.dialog-title { font-size: 18px; font-weight: 600; color: #f9fafb; letter-spacing: 0.01em; }
.dialog-subtitle { font-size: 12px; color: #94a3b8; }
.dialog-body { display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 16px 16px; }
.dialog-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.08fr); gap: 20px; align-items: start; }
.dialog-section { display: flex; flex-direction: column; gap: 12px; }
.dialog-section-side { min-width: 0; }
.dialog-section-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7280; }
.shape-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shape-picker-card { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 78px; padding: 14px; text-align: left; border-radius: 8px; border: 1px solid rgba(55, 65, 81, 0.72); background: rgba(5, 9, 18, 0.78); transition: all 150ms ease; }
.shape-picker-card:hover { border-color: rgba(96, 165, 250, 0.32); background: rgba(8, 13, 24, 0.94); }
.shape-picker-card-active { border-color: rgba(59, 130, 246, 0.7); background: rgba(37, 99, 235, 0.08); box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.14); }
.shape-picker-icon { width: 42px; height: 42px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #93c5fd; background: rgba(30, 41, 59, 0.9); border: 1px solid rgba(71, 85, 105, 0.72); }
.shape-picker-content { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.shape-picker-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.shape-picker-title { font-size: 13px; font-weight: 600; color: #f3f4f6; }
.shape-picker-meta { font-size: 10px; color: #94a3b8; }
.shape-picker-desc { font-size: 11px; line-height: 1.5; color: #94a3b8; }
.capability-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.capability-tag { min-height: 22px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(55, 65, 81, 0.72); font-size: 10px; color: #cbd5e1; }
.dialog-summary-card { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 8px; border: 1px solid rgba(55, 65, 81, 0.72); background: rgba(4, 8, 18, 0.82); }
.dialog-summary-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dialog-summary-title { font-size: 16px; font-weight: 600; color: #f8fafc; }
.dialog-summary-desc { margin-top: 4px; font-size: 11px; line-height: 1.6; color: #94a3b8; }
.dialog-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dialog-metrics-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dialog-metric { padding: 10px 12px; border-radius: 6px; background: rgba(15, 23, 42, 0.62); border: 1px solid rgba(55, 65, 81, 0.56); }
.dialog-metric-label { display: block; font-size: 10px; color: #6b7280; }
.dialog-metric-value { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: #f3f4f6; }
.dialog-metric-wide { grid-column: 1 / -1; }
.dialog-project-form-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.dialog-shell .action-btn { border-radius: 6px; }
.dialog-shell .drawer-close { border-radius: 6px; }
.workspace-head-compact { min-height: 24px; }
.workspace-status-inline { min-width: 0; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 5px; height: 5px; border-radius: 999px; background: #60a5fa; flex: none; opacity: 0.9; }
.status-message { color: #94a3b8; font-size: 11px; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-meta-compact { flex: none; min-width: 0; max-width: 52%; overflow: hidden; white-space: nowrap; }
.workspace-chip { min-height: 20px; padding: 0 6px; display: inline-flex; align-items: center; border-radius: 5px; background: rgba(15, 23, 42, 0.24); border: 1px solid rgba(55, 65, 81, 0.24); white-space: nowrap; flex: none; }
.workspace-chip-tool { background: rgba(37, 99, 235, 0.08); border-color: rgba(59, 130, 246, 0.18); }
.left-drawer { width: min(320px, calc(100vw - 64px)); }

@media (max-width: 1100px) {
    .dialog-grid { grid-template-columns: 1fr; }
    .dialog-shell { width: min(760px, 100%); }
    .shape-picker-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .workspace-head { flex-direction: column; align-items: stretch; }
    .workspace-meta { justify-content: flex-start; }
    .workspace-head-compact { flex-direction: row; align-items: center; }
    .workspace-meta-compact { justify-content: flex-end; }
}

@media (max-width: 900px) {
    .prop-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prop-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .workspace-chip-selection { display: none; }
    .workspace-meta-compact { max-width: 40%; }
}

@media (max-width: 720px) {
    .dialog-backdrop { padding: 12px; align-items: stretch; }
    .dialog-shell { width: 100%; border-radius: 8px; }
    .dialog-body { padding: 16px; }
    .dialog-actions { flex-direction: column-reverse; padding: 0 16px 16px; }
    .dialog-actions .action-btn { width: 100%; }
    .shape-picker-grid { grid-template-columns: 1fr; }
    .dialog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dialog-metric:last-child { grid-column: 1 / -1; }
    .left-drawer { width: calc(100vw - 64px); }
}

@media (max-width: 640px) {
    .prop-grid-3,
    .prop-grid-4,
    .dialog-metrics { grid-template-columns: 1fr; }
    .dialog-project-form-grid { grid-template-columns: 1fr; }
    .workspace-meta-compact { display: none; }
    .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .workspace-chip-grid,
    .workspace-chip-ephemeral { display: none; }
}
