@layer components{.guided-shell[data-attachments=true]{--shell-inspector-width:304px}.case-studio .attachment-workspace{position:absolute;z-index:40;top:var(--shell-toolbar-top,98px);right:var(--shell-edge,22px);max-width:calc(100vw - 110px);max-height:calc(100dvh - var(--shell-toolbar-top, 98px) - var(--shell-panel-bottom, 84px))}.case-studio .attachment-workspace[hidden]{display:none}.case-studio .attachment-panel-trigger{display:inline-flex;align-items:center;gap:8px;min-height:44px;border:0;padding:8px 14px;border-radius:999px;background:var(--surface-raised);color:var(--text-primary);font:inherit;font-size:13px}.attachment-panel-trigger[aria-expanded=true]{background:var(--surface-overlay)}.attachment-editing-marker{width:6px;height:6px;border-radius:50%;background:currentColor}.case-studio .attachment-reopen{position:absolute;z-index:40;top:var(--attachment-panel-top,88px);right:24px}.case-studio .attachment-panel-trigger:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px}.attachment-workspace .attachment-instances{display:flex;flex-direction:column;gap:6px}.attachment-drafts p{margin:6px 0 10px;color:var(--text-secondary)}.case-studio .attachment-instance{display:flex;gap:10px;text-align:left;align-items:center;padding:8px;border-radius:12px;border:1px solid var(--surface-active);background:transparent;font-size:12px}.attachment-instance small{display:block;color:var(--text-secondary);margin-top:4px;font-size:12px}}.case-studio.guided-shell .attachment-workspace{--attachment-shell:var(--clinical-canvas);--attachment-control:var(--surface-raised);--attachment-track:color-mix(in srgb,var(--clinical-canvas) 92%,var(--text-primary));--attachment-divider:color-mix(in srgb,var(--clinical-canvas) 86%,var(--text-primary));--attachment-muted:color-mix(in srgb,var(--clinical-canvas) 22%,var(--text-primary));top:var(--attachment-panel-top,88px);right:24px;max-width:calc(100vw - 110px);max-height:calc(100dvh - var(--attachment-panel-top, 88px) - var(--attachment-bottom-clearance, var(--shell-panel-bottom, 88px)))}.case-studio.guided-shell[data-attachments=true]:has(.attachment-workspace:not([hidden])) .case-viewport>.viewer-split{width:100%}@media (max-width:800px){.case-studio.guided-shell[data-attachments=true]:has(.attachment-workspace:not([hidden])) .case-viewport>.viewer-split{width:100%}}@media (max-height:600px){.case-studio.guided-shell[data-attachments=true] .shell-edit-dock{position:fixed;bottom:12px}}.attachment-advanced,.attachment-cutout-controls,.attachment-guide-entry,.attachment-more,.attachment-workspace-content,.mechanism-editor{display:contents}.attachment-workspace-content{min-width:0;margin:0;padding:0;border:0}.attachment-status{position:sticky;bottom:-16px;z-index:1;display:grid;gap:8px;margin-bottom:-16px;padding:8px 0 16px;background:#fff}.attachment-acknowledge{display:grid;gap:10px;padding:4px 0 8px}.attachment-acknowledge-actions{display:flex;justify-content:flex-end;gap:8px}.attachment-placed-item{display:flex;flex-direction:column;align-items:flex-end}.attachment-placed-row{align-self:stretch}.attachment-paste{display:flex;justify-content:flex-end;padding:2px 0 6px}.attachment-direction-pad{display:grid;grid-template-columns:repeat(3,40px);gap:4px;justify-content:end;padding:4px 0 8px}.attachment-direction-pad .direction-up{grid-column:2}.attachment-direction-pad .direction-left{grid-column:1;grid-row:2}.attachment-direction-pad .direction-right{grid-column:3;grid-row:2}.attachment-direction-pad .direction-down{grid-column:2;grid-row:2}.attachment-angle-buttons{display:flex;justify-content:flex-end;gap:8px;padding:4px 0 8px}.mechanism-orientation{gap:8px}.mechanism-list-row,.mechanism-orientation{display:flex;flex-wrap:wrap;justify-content:flex-end}.mechanism-list-row{align-items:center;gap:4px}.attachment-suggestion-tooth{padding:2px 0 8px}.attachment-thumbnail{display:inline-grid;flex-shrink:0;place-items:center}.attachment-thumbnail>:is(canvas,svg){grid-area:1/1}.guided-shell .mechanism-illustration{display:grid;place-items:center;flex-shrink:0}.guided-shell .mechanism-illustration img{padding:6px}.attachment-curve-adjust-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 8px}.attachment-curve-map{position:relative;width:148px;height:148px;flex-shrink:0;color:#147c91}.attachment-curve-map svg{width:100%;height:100%}.attachment-curve-map button{position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:0;border:1px solid;border-radius:50%;background:#fff;color:#147c91;font:inherit;font-size:12px}.attachment-curve-map button:hover{background:#eef2f6}.attachment-curve-map button[aria-pressed=true]{background:#202226;color:#fff;border-color:#202226}.attachment-curve-step{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px}.attachment-curve-step .attachment-direction-pad{padding:0}.attachment-handle-label{display:block;padding:6px 10px;border-radius:8px;background:#202426;color:#fff;font-size:12px;box-shadow:0 3px 10px #20242620}.attachment-removal-notice{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:var(--attachment-control,#fff);font-size:13px}.attachment-removal-notice p{margin:0;flex:1}.attachment-removal-notice button{min-height:36px;padding:6px 12px;border:0;border-radius:999px;background:var(--attachment-track,#eef2f6);color:var(--text-primary);font:inherit}.attachment-action-feedback{margin:0;color:var(--text-secondary);font-size:13px}.guided-shell .attachment-workspace .attachment-recovery-notice{margin:0;padding:12px;border:0;border-radius:12px;background:var(--attachment-control);color:var(--text-primary);font-size:13px;line-height:1.5;box-shadow:none}.guided-shell .attachment-workspace .attachment-drafts{padding-bottom:4px}.case-studio.guided-shell .attachment-instance{min-height:64px;gap:12px;padding:12px;background:var(--attachment-control);border:1px solid transparent;font-size:13px}.case-studio.guided-shell .attachment-instance:hover{border-color:var(--border-strong)}.guided-shell[data-attachments=true] .shell-edit-toolbar .shell-tool{border-radius:50%;background:var(--surface-raised);color:var(--text-secondary)}.guided-shell[data-attachments=true] .shell-edit-toolbar .shell-tool:hover{background:var(--border-subtle)}.guided-shell[data-attachments=true] .shell-edit-toolbar .shell-tool[aria-pressed=true]{background:var(--text-primary);color:var(--surface-raised)}.cutout-thumbnail{flex-shrink:0;color:#147c91}.attachment-outline-stale{display:block;padding:4px 8px;border-radius:8px;background:var(--surface-raised,white);color:var(--text-primary,#202226);font-size:12px;line-height:1.5;white-space:nowrap;transform:translateY(16px)}.attachment-preview-state{display:flex;flex-direction:column;align-items:center;gap:4px}.attachment-preview-state button{min-height:32px;padding:4px 8px;border:0;border-radius:6px;background:var(--surface-overlay,#edf3ef);color:inherit;font:inherit;cursor:pointer}.attachment-preview-state button:focus-visible{outline:2px solid var(--accent-primary);outline-offset:-2px}.attachment-guide-popover.driver-popover{max-width:min(340px,calc(100vw - 32px));min-width:min(260px,calc(100vw - 32px));padding:20px;border:0;border-radius:16px;background:var(--clinical-canvas);color:var(--text-primary);box-shadow:var(--shadow-card);--driver-popover-font-family:"Clinical Geist",Arial,sans-serif}.attachment-guide-popover .driver-popover-title{padding-right:24px;font-size:16px;font-weight:600;line-height:1.35}.attachment-guide-popover .driver-popover-description{margin-top:8px;font-size:14px;line-height:1.5;color:var(--text-primary)}.attachment-guide-popover .driver-popover-footer{margin-top:20px;gap:12px}.attachment-guide-popover .driver-popover-progress-text{font-size:12px;color:var(--text-secondary);font-variant-numeric:tabular-nums}.attachment-guide-popover .driver-popover-footer button{min-height:36px;padding:8px 14px;border:0;border-radius:999px;font-size:13px;font-weight:500;text-shadow:none;background:white;color:var(--text-primary)}.attachment-guide-popover .driver-popover-footer .driver-popover-next-btn{background:var(--clinical-action);color:var(--clinical-action-ink)}.attachment-guide-popover .driver-popover-footer button:hover{filter:brightness(.96)}.attachment-guide-popover .driver-popover-close-btn{box-sizing:border-box;width:32px;height:32px;top:10px;right:10px;padding:7px;border-radius:50%;color:var(--text-secondary)}.driver-active:has(.attachment-guide-popover) [role=tooltip]{visibility:hidden}.attachment-guide-popover button:focus-visible{outline:2px solid var(--accent-primary);outline-offset:3px}.attachment-guide-popover .driver-popover-arrow-side-left{border-left-color:var(--clinical-canvas)}.attachment-guide-popover .driver-popover-arrow-side-right{border-right-color:var(--clinical-canvas)}.attachment-guide-popover .driver-popover-arrow-side-top{border-top-color:var(--clinical-canvas)}.attachment-guide-popover .driver-popover-arrow-side-bottom{border-bottom-color:var(--clinical-canvas)}.attachment-guide-popover ::selection{background:var(--clinical-action);color:var(--clinical-action-ink)}