:root {
  color-scheme: dark;
  --bg: #07070a;
  --panel: #0d0d12;
  --panel-2: #121219;
  --line: rgba(255, 255, 255, .11);
  --muted: #92909a;
  --bone: #f2eee8;
  --violet: #9855ff;
  --violet-dark: #6a00ff;
  --green: #75e6ad;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --motion: 200ms;
  --motion-fast: 160ms;
  --ease-out: cubic-bezier(.22, .82, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--bone); font-family: var(--sans); }
button, input, select { font: inherit; }
button, .workbench-import, a { -webkit-tap-highlight-color: transparent; }

.workbench-shell { width: 100%; height: 100%; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.workbench-sidebar { min-height: 0; display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto; border-right: 1px solid var(--line); background: #0b0b10; }
.workbench-brand { min-height: 86px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.workbench-brand img { width: 45px; height: 45px; }
.workbench-brand p, .workbench-brand h1 { margin: 0; }
.workbench-brand p { color: var(--violet); text-transform: uppercase; letter-spacing: .18em; font-size: 10px; }
.workbench-brand h1 { margin-top: 4px; font: 500 25px/1 var(--serif); }
.workbench-return-admin {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 12px 16px 0;
  padding: 10px 14px;
  border: 1px solid rgba(152, 85, 255, .55);
  background: rgba(106, 0, 255, .16);
  color: white;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 11px;
  font-weight: 600;
}
.workbench-return-admin:hover { border-color: rgba(152, 85, 255, .9); background: rgba(106, 0, 255, .28); }

.workbench-progress-panel { padding: 18px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(106,0,255,.10), transparent); }
.workbench-section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.workbench-section-heading h2 { margin: 0; color: #c7c3cc; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.workbench-section-heading strong { color: var(--violet); font-size: 12px; }
.workbench-progress-panel progress { width: 100%; height: 7px; margin-top: 13px; border: 0; border-radius: 10px; background: #24232a; overflow: hidden; }
.workbench-progress-panel progress::-webkit-progress-bar { background: #24232a; }
.workbench-progress-panel progress::-webkit-progress-value { background: linear-gradient(90deg, var(--violet-dark), var(--green)); }
.workbench-progress-panel progress::-moz-progress-bar { background: linear-gradient(90deg, var(--violet-dark), var(--green)); }
.workbench-progress-panel p { margin: 12px 0 0; color: #777580; font-size: 11px; line-height: 1.45; }
.workbench-lock-panel { display: grid; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #0b0b10; }
.workbench-lock-panel button { min-height: 40px; border: 1px solid rgba(117,230,173,.45); background: rgba(40,133,91,.12); color: #d8ffeb; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; cursor: pointer; }
.workbench-lock-panel button[aria-pressed="false"] { border-color: rgba(152,85,255,.7); background: rgba(106,0,255,.16); color: #fff; }
.workbench-lock-panel p { margin: 0; color: #777580; font-size: 10px; line-height: 1.4; }
body.is-calibration-locked .workbench-lock-panel button { border-color: rgba(117,230,173,.45); }

.workbench-allow-dropdown { position: relative; display: grid; gap: 8px; }
.workbench-allow-summary { margin: 0; color: #8d8994; font-size: 11px; line-height: 1.35; }
.workbench-allow-options { display: grid; gap: 6px; }
.workbench-hardware-controls .workbench-allow-options .workbench-group-option,
.workbench-allow-options .workbench-group-option {
  min-height: 38px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(17, 17, 23, .55);
  color: #d2ced7;
  padding: 4px 6px 4px 8px;
}
.workbench-hardware-controls .workbench-allow-options .workbench-group-option.is-calibrating,
.workbench-allow-options .workbench-group-option.is-calibrating {
  border-color: rgba(152,85,255,.7);
  background: rgba(106,0,255,.16);
  color: #fff;
}
.workbench-hardware-controls .workbench-group-offer,
.workbench-group-offer {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 28px;
  margin: 0;
  cursor: pointer;
}
.workbench-allow-options input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--violet);
}
.workbench-group-select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 6px;
  text-align: left;
  cursor: pointer;
}
.workbench-group-select:disabled { cursor: default; opacity: .7; }
.workbench-group-option-copy { min-width: 0; display: grid; gap: 2px; }
.workbench-group-option-copy strong { font-weight: 600; }
.workbench-group-option-copy small { color: #8d8994; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }
.workbench-allow-options label.is-calibrating small { color: #c9b4ff; }
.workbench-preview-hint { margin: 0; color: #6f6c77; font-size: 10px; line-height: 1.35; }
.workbench-placement-menu { position: relative; }
#workbench-placement-toggle {
  width: 100%; min-height: 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); background: #111117; color: #d2ced7;
  padding: 8px 10px; text-align: left; cursor: pointer;
}
#workbench-placement-toggle span { font-size: 13px; text-transform: none; letter-spacing: 0; }
#workbench-placement-toggle small {
  color: #c98888; text-transform: uppercase; letter-spacing: .08em; font-size: 9px;
}
#workbench-placement-toggle.is-needs-review {
  border-color: rgba(196, 92, 92, .55);
  background: rgba(92, 28, 28, .28);
}
#workbench-placement-toggle.is-partial-review {
  border-color: rgba(196, 148, 72, .5);
  background: rgba(92, 64, 20, .22);
}
#workbench-placement-toggle.is-partial-review small { color: #e0c08a; }
#workbench-placement-toggle.is-confirmed {
  border-color: rgba(117,230,173,.4);
  background: rgba(40,133,91,.12);
}
#workbench-placement-toggle.is-confirmed small { color: #8fd9b4; }
.workbench-placement-picker {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
  display: grid; grid-template-columns: 1fr; gap: 3px;
  max-height: 240px; overflow: auto;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(12, 12, 16, .96);
  box-shadow: 0 12px 28px rgba(0,0,0,.4);
  transform-origin: top center;
}
.workbench-placement-picker:not([hidden]) { animation: workbench-pop-in var(--motion) var(--ease-out); }
.workbench-placement-picker.is-leaving { animation: workbench-pop-out var(--motion-fast) ease forwards; }
.workbench-placement-picker[hidden] { display: none !important; }
.workbench-placement-picker .placement-chip {
  min-height: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #d2ced7;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
}
.workbench-placement-picker .placement-chip span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.workbench-placement-picker .placement-chip small {
  color: #c98888; text-transform: uppercase; letter-spacing: .08em; font-size: 9px;
}
.workbench-placement-picker .placement-chip.is-needs-review {
  border-color: rgba(196, 92, 92, .35);
  background: rgba(92, 28, 28, .22);
}
.workbench-placement-picker .placement-chip.is-partial-review {
  border-color: rgba(196, 148, 72, .35);
  background: rgba(92, 64, 20, .18);
}
.workbench-placement-picker .placement-chip.is-partial-review small { color: #e0c08a; }
.workbench-placement-picker .placement-chip.is-confirmed small { color: #8fd9b4; }
.workbench-placement-picker .placement-chip {
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.workbench-placement-picker .placement-chip:hover { color: #fff; background: rgba(255,255,255,.04); }
.workbench-placement-picker .placement-chip.is-active {
  border-color: rgba(152,85,255,.55);
  color: #fff;
}
.workbench-placement-picker .placement-chip.is-active.is-needs-review {
  border-color: rgba(196, 92, 92, .7);
  background: rgba(92, 28, 28, .34);
}

.workbench-prompt-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px 20px; }
.workbench-prompt-dialog footer button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #121218; color: #bebac4; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer; }
.workbench-prompt-dialog .workbench-dialog-submit { border-color: rgba(152,85,255,.72); background: linear-gradient(110deg, #5d12c7, #7b25ef); color: #fff; }

.workbench-baseline-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #0b0b10; }
.workbench-baseline-panel div { min-width: 0; display: grid; gap: 3px; }
.workbench-baseline-panel span { color: #6f6c77; text-transform: uppercase; letter-spacing: .14em; font-size: 8px; }
.workbench-baseline-panel strong { min-width: 0; overflow: hidden; color: #d5d1da; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.workbench-baseline-panel small { color: #777580; font-size: 9px; line-height: 1.3; }
.workbench-baseline-panel button { flex: 0 0 auto; min-height: 34px; border: 1px solid rgba(117,230,173,.48); background: rgba(40,133,91,.12); color: #d8ffeb; padding: 7px 10px; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; cursor: pointer; }
.workbench-baseline-panel button:hover { border-color: var(--green); background: rgba(40,133,91,.22); }

.workbench-task-list { min-height: 0; overflow-y: auto; padding: 8px 0 28px; scrollbar-color: #41305d transparent; }
.workbench-task-group h3 { position: sticky; top: 0; z-index: 2; margin: 0; padding: 14px 20px 8px; background: rgba(11,11,16,.94); backdrop-filter: blur(8px); color: #6f6c77; text-transform: uppercase; letter-spacing: .17em; font-size: 10px; }
.workbench-task { width: 100%; min-height: 48px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 2px 8px; border: 0; border-left: 2px solid transparent; background: transparent; color: #aaa7b1; padding: 7px 18px; text-align: left; cursor: pointer; }
.workbench-task:hover { background: rgba(255,255,255,.035); color: white; }
.workbench-task.is-active { border-left-color: var(--violet); background: rgba(106,0,255,.13); color: white; }
.workbench-task.is-complete .workbench-task-state { color: var(--green); }
.workbench-task small { grid-column: 2; min-width: 0; overflow: hidden; color: #66636e; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; }
.workbench-task-state { color: #55525d; font-size: 15px; }

.workbench-file-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #09090d; }
.workbench-file-actions button, .workbench-import, .workbench-file-actions a { min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: #121218; color: #bebac4; text-decoration: none; text-align: center; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; cursor: pointer; }
.workbench-file-actions button:hover, .workbench-import:hover, .workbench-file-actions a:hover { border-color: rgba(152,85,255,.7); color: white; }
.workbench-file-actions button:disabled { opacity: .38; cursor: not-allowed; }
.workbench-file-actions #workbench-publish { grid-column: 1 / -1; border-color: rgba(117,230,173,.55); background: rgba(40,133,91,.18); color: #d8ffeb; }
.workbench-file-actions #workbench-manage-placements { grid-column: 1 / -1; }
.workbench-file-actions #workbench-add-custom { grid-column: 1 / -1; border-color: rgba(152,85,255,.55); background: rgba(106,0,255,.13); color: white; }
.workbench-file-actions .workbench-install-app { grid-column: 1 / -1; }
.workbench-publish-state { grid-column: 1 / -1; min-height: 28px; margin: 0; color: #777580; font-size: 9px; line-height: 1.4; text-align: center; }
.workbench-publish-state.is-dirty { color: #caa8ff; }
.workbench-publish-state.is-error { color: #f0b8b8; }
.workbench-file-actions a { grid-column: 1 / -1; }
.workbench-import input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.workbench-custom-dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid rgba(152,85,255,.55); border-radius: 3px; background: #0d0d12; color: var(--bone); box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.workbench-custom-dialog[open] { animation: workbench-dialog-in var(--motion) var(--ease-out); }
.workbench-custom-dialog::backdrop { background: rgba(3,3,6,.78); backdrop-filter: blur(5px); }
.workbench-custom-dialog[open]::backdrop { animation: workbench-backdrop-in var(--motion) ease; }
.workbench-custom-dialog form { display: grid; }
.workbench-custom-dialog header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: rgba(106,0,255,.08); }
.workbench-custom-dialog header span, .workbench-custom-grid label > span { color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.workbench-custom-dialog h2 { margin: 4px 0 0; font: 500 28px/1 var(--serif); }
.workbench-dialog-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); background: #111117; color: #aaa7b1; font-size: 23px; cursor: pointer; }
.workbench-dialog-close:hover { border-color: rgba(152,85,255,.72); color: white; }
.workbench-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 20px; }
.workbench-custom-grid label { min-width: 0; display: grid; gap: 8px; }
.workbench-custom-grid input, .workbench-custom-grid select, .workbench-custom-grid output { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 0; background: #111117; color: #ddd9e2; padding: 9px 11px; }
.workbench-custom-grid input:focus, .workbench-custom-grid select:focus { outline: 1px solid var(--violet); outline-offset: 1px; }
.workbench-custom-grid output { display: flex; align-items: center; color: #8d8994; }
.workbench-custom-hardware { grid-column: 1 / -1; }
.workbench-custom-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); background: #09090d; }
.workbench-custom-dialog footer button { min-height: 40px; border: 1px solid var(--line); background: #111117; color: #aaa7b1; padding: 8px 16px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer; }
.workbench-custom-dialog footer button:hover { border-color: rgba(152,85,255,.72); color: white; }
.workbench-custom-dialog footer .workbench-dialog-submit { border-color: rgba(152,85,255,.72); background: #6817d4; color: white; }
.workbench-custom-dialog footer #workbench-inherit-hardware { margin-right: auto; border-color: rgba(117,230,173,.42); color: #bdebd3; }
.workbench-dialog-intro { margin: 0; padding: 16px 20px 0; color: #8d8994; font-size: 11px; line-height: 1.5; }
.workbench-placement-dialog form { max-height: calc(100vh - 32px); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.workbench-placement-options { min-height: 0; overflow-y: auto; display: grid; gap: 18px; padding: 20px; }
.workbench-placement-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workbench-placement-group h3 { grid-column: 1 / -1; margin: 0 0 2px; color: #817d89; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.workbench-placement-option { min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #111117; color: #bdb9c3; padding: 9px 11px; cursor: default; }
.workbench-placement-option:has(input:checked) { border-color: rgba(117,230,173,.52); background: rgba(40,133,91,.12); color: white; }
.workbench-placement-option input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--green); }
.workbench-placement-option span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
.workbench-placement-option select { flex: 0 0 auto; min-height: 30px; max-width: 96px; border: 1px solid #3c3b46; background: #0d0d12; color: #ddd9e3; padding: 4px 6px; font: inherit; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.workbench-placement-dialog footer output { margin-right: auto; align-self: center; color: #8d8994; font-size: 10px; }

.workbench-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.workbench-toolbar { min-height: 74px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 11px 18px 11px 24px; border-bottom: 1px solid var(--line); background: rgba(12,12,17,.96); }
.workbench-current { min-width: 170px; display: grid; align-items: baseline; }
.workbench-current > span { color: #6e6b76; text-transform: uppercase; letter-spacing: .15em; font-size: 9px; }
.workbench-current strong { font: 500 25px/1.15 var(--serif); }
.workbench-toolbar-actions, .workbench-history-controls, .segmented-control, .metal-controls { min-width: 0; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.workbench-toolbar-field { position: relative; display: grid; gap: 5px; min-width: 0; }
.workbench-toolbar-field .workbench-control-label { color: #777580; text-transform: uppercase; letter-spacing: .10em; font-size: 9px; }
.workbench-toolbar button, .workbench-gizmo-controls button, .workbench-confirm-actions button {
  min-height: 44px; border: 1px solid var(--line); background: #111117; color: #aaa7b1; padding: 8px 12px;
  text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
.workbench-toolbar button:active:not(:disabled),
.workbench-gizmo-controls button:active:not(:disabled),
.workbench-confirm-actions button:active:not(:disabled) { transform: scale(.97); }
.workbench-toolbar button:hover, .workbench-toolbar button.is-active, .workbench-toolbar button[aria-pressed="true"] { border-color: rgba(152,85,255,.72); background: rgba(106,0,255,.13); color: white; }
.workbench-history-controls button { width: 44px; min-width: 44px; padding: 0; font-size: 20px; line-height: 1; }
.workbench-toolbar button:disabled { opacity: .32; cursor: not-allowed; }
.workbench-lock-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.workbench-lock-toggle svg { width: 16px; height: 16px; flex: 0 0 auto; transition: transform var(--motion) var(--ease-out); }
#workbench-lock-toggle[aria-pressed="false"] svg { transform: rotate(-12deg); }
#workbench-lock-toggle[aria-pressed="true"] { border-color: rgba(117,230,173,.5); background: rgba(40,133,91,.16); color: #d8ffeb; }
#workbench-lock-toggle[aria-pressed="false"] { border-color: rgba(152,85,255,.7); background: rgba(106,0,255,.16); color: #fff; }
.workbench-help {
  width: 14px; height: 14px; min-width: 14px; min-height: 14px !important;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255,255,255,.28) !important;
  border-radius: 50%;
  background: transparent !important;
  color: #8d8994 !important;
  padding: 0 !important;
  font-size: 9px !important;
  font-weight: 600;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1;
  cursor: help;
}
.workbench-help {
  transition: border-color var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out) !important;
}
.workbench-help[aria-expanded="true"] { border-color: rgba(152,85,255,.7) !important; color: #e8dcff !important; transform: scale(1.08); }
.workbench-help-tip {
  position: absolute; z-index: 24; top: calc(100% + 4px); right: 0; left: auto;
  width: max-content; max-width: 168px; margin: 0;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12, 12, 16, .92);
  color: #c7c3cc;
  font-size: 10px; line-height: 1.3;
  text-transform: none; letter-spacing: 0;
  pointer-events: none;
  transform-origin: top right;
}
.workbench-help-tip:not([hidden]) { animation: workbench-pop-in var(--motion) var(--ease-out); }
.workbench-help-tip.is-leaving { animation: workbench-pop-out var(--motion-fast) ease forwards; }
.metal-controls { padding-left: 7px; border-left: 1px solid var(--line); }

.workbench-canvas-wrap { min-height: 0; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #08080b; }
.atlas-viewport { min-height: 0; position: relative; overflow: hidden; cursor: crosshair; touch-action: none; background: radial-gradient(circle at 55% 45%, rgba(106,0,255,.15), transparent 28%), radial-gradient(circle at 35% 70%, rgba(255,255,255,.045), transparent 30%), #08080c; }
.workbench-view-pop {
  position: absolute; top: 12px; left: 12px; z-index: 12;
  width: min(280px, calc(100% - 24px));
  display: grid; gap: 10px; padding: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8, 8, 12, .38);
  color: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  transform-origin: top left;
}
.workbench-view-pop:not([hidden]) { animation: workbench-pop-in var(--motion) var(--ease-out); }
.workbench-view-pop.is-leaving { animation: workbench-pop-out var(--motion-fast) ease forwards; }
.workbench-view-pop[hidden] { display: none !important; }
.workbench-view-pop header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workbench-view-pop header p { margin: 0; color: #c9b4ff; text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.workbench-view-pop header button {
  width: 36px; height: 36px; min-height: 36px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,14,.28); color: #fff; font-size: 22px; cursor: pointer;
}
.workbench-view-pop .segmented-control,
.workbench-view-pop .metal-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; border: 0; }
.workbench-view-pop button {
  min-height: 44px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,14,.28); color: rgba(255,255,255,.82);
  padding: 8px 12px; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.workbench-view-pop button.is-active,
.workbench-view-pop button[aria-pressed="true"] {
  border-color: rgba(152,85,255,.7);
  background: rgba(106,0,255,.18);
  color: #fff;
}
#atlas-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.atlas-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; gap: 14px; background: #09090d; color: #aaa7b0; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; transition: opacity .3s ease, visibility .3s ease; }
.atlas-loading span { width: 44px; height: 44px; justify-self: center; border: 1px solid rgba(152,85,255,.28); border-top-color: var(--violet); border-radius: 50%; animation: spin 1s linear infinite; }
.atlas-loading.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.atlas-loading.is-error { padding: 30px; color: #f0b8b8; text-align: center; line-height: 1.6; }
.atlas-loading.is-error span { display: none; }
@keyframes spin { to { transform: rotate(1turn); } }
.atlas-viewer-status { position: absolute; z-index: 3; top: 18px; left: 50%; transform: translate(-50%, -7px); padding: 8px 12px; border: 1px solid rgba(152,85,255,.5); background: rgba(8,8,12,.82); opacity: 0; transition: .2s ease; text-transform: uppercase; letter-spacing: .11em; font-size: 10px; pointer-events: none; }
.atlas-viewer-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
.workbench-crosshair { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%,-50%); opacity: .22; pointer-events: none; }
.workbench-crosshair::before, .workbench-crosshair::after { content: ""; position: absolute; background: var(--violet); }
.workbench-crosshair::before { width: 100%; height: 1px; top: 50%; }
.workbench-crosshair::after { height: 100%; width: 1px; left: 50%; }
.workbench-canvas-help { position: absolute; z-index: 2; left: 12px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.workbench-canvas-help span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(8,8,12,.72); color: #777580; font-size: 10px; }
.workbench-canvas-help b { color: #b6b2bd; font-weight: 500; }

.workbench-transform-panel { min-height: 0; display: grid; grid-template-columns: minmax(200px,.7fr) minmax(280px,1.1fr) minmax(320px,1.2fr); grid-template-rows: auto auto; gap: 10px 18px; align-items: center; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: linear-gradient(110deg, rgba(106,0,255,.08), transparent 34%), #0d0d12; }
.workbench-transform-panel > * { min-width: 0; }
.workbench-transform-heading span { color: var(--violet); text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.workbench-transform-heading h2 { margin: 3px 0 4px; font: 500 20px/1 var(--serif); }
.workbench-transform-heading p { margin: 0; color: #85828c; font-size: 10px; line-height: 1.35; }
.workbench-gizmo-controls { display: grid; gap: 7px; }
.workbench-calibration-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.workbench-calibration-modes button {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(10,10,14,.28);
  color: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
}
.workbench-calibration-modes button.is-active {
  border-color: rgba(152,85,255,.7);
  background: rgba(106,0,255,.18);
  color: white;
}
.workbench-gizmo-controls > button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; cursor: pointer; }
.workbench-gizmo-controls > button span { color: var(--violet); font-weight: 700; }
.workbench-gizmo-controls > button:hover { border-color: rgba(152,85,255,.72); background: rgba(106,0,255,.14); color: white; }
.workbench-gizmo-controls > p { margin: 0; color: #777580; font-size: 9px; line-height: 1.35; }
.workbench-touch-gizmo { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.workbench-touch-gizmo button { min-width: 0; min-height: 42px; padding: 6px; font-size: 9px; }
.workbench-sheet-side { display: none; }
.workbench-jewelry-controls { display: grid; grid-template-columns: 1fr; gap: 12px; }
.workbench-touch-dock { display: none; }
.workbench-dock-tray { display: none; }
.workbench-hardware-controls label, .workbench-hardware-field { position: relative; min-width: 0; display: grid; gap: 7px; }
.workbench-hardware-controls label > span, .workbench-control-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #777580; text-transform: uppercase; letter-spacing: .10em; font-size: 9px; }
.workbench-hardware-controls select,
.workbench-jewelry-controls select { width: 100%; min-height: 44px; border: 1px solid var(--line); background: #111117; color: #d2ced7; padding: 8px 10px; }
.workbench-hardware-controls select:focus,
.workbench-jewelry-controls select:focus { outline: 1px solid var(--violet); outline-offset: 1px; }
.workbench-allow-dropdown summary {
  min-height: 44px; display: flex; align-items: center;
  border: 1px solid var(--line); background: #111117; color: #d2ced7;
  padding: 8px 10px; cursor: pointer; list-style: none;
}
.workbench-allow-dropdown summary::-webkit-details-marker { display: none; }
.workbench-allow-dropdown[open] summary { border-color: rgba(152,85,255,.55); }
.workbench-allow-dropdown .workbench-allow-options { margin-top: 8px; }
#workbench-manage-hardware {
  min-height: 36px; border: 0; background: transparent; color: var(--violet);
  padding: 0; text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; cursor: pointer;
}
.workbench-confirm-actions { grid-column: 2 / 4; display: flex; justify-content: flex-end; gap: 8px; }
.workbench-confirm-actions #workbench-apply-both { border-color: rgba(117,230,173,.45); color: #d8ffeb; }
.workbench-confirm-actions .workbench-confirm { min-width: 190px; border-color: rgba(152,85,255,.72); background: linear-gradient(110deg, #5d12c7, #7b25ef); color: white; }
.workbench-confirm-actions .workbench-confirm.is-confirmed { border-color: rgba(117,230,173,.72); background: rgba(40,133,91,.25); color: var(--green); }
.workbench-confirm-actions button:disabled { opacity: .38; cursor: not-allowed; }

.workbench-hardware-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 20px; }
.workbench-hardware-option { min-width: 0; min-height: 48px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #111117; color: #bdb9c3; padding: 10px 12px; cursor: pointer; }
.workbench-hardware-option:has(input:checked) { border-color: rgba(152,85,255,.65); background: rgba(106,0,255,.12); color: white; }
.workbench-hardware-option input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--violet); }
.workbench-hardware-option span { min-width: 0; font-size: 11px; line-height: 1.25; }
.workbench-clone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 22px 20px; }
.workbench-clone-grid label { min-width: 0; display: grid; gap: 8px; }
.workbench-clone-grid label > span { color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; }
.workbench-clone-grid output, .workbench-clone-grid select { width: 100%; min-height: 42px; border: 1px solid var(--line); background: #111117; color: #ddd9e2; padding: 9px 11px; }
.workbench-clone-grid output { display: flex; align-items: center; color: #8d8994; }

.atlas-compatibility { display: none !important; }

@media (max-width: 1700px) {
  .workbench-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .workbench-brand { min-height: 76px; padding: 12px 16px; }
  .workbench-brand img { width: 40px; height: 40px; }
  .workbench-brand h1 { font-size: 22px; }
  .workbench-progress-panel { padding: 14px 16px; }
  .workbench-progress-panel p { margin-top: 9px; }
  .workbench-file-actions { padding: 10px; }

  .workbench-toolbar { min-height: 64px; flex-wrap: wrap; gap: 10px 14px; padding: 9px 14px 9px 18px; }
  .workbench-current { min-width: 145px; }
  .workbench-current strong { font-size: 22px; }
  .workbench-toolbar-actions { flex: 1 1 620px; flex-wrap: wrap; justify-content: flex-end; }

  .workbench-transform-panel {
    min-height: 0;
    grid-template-columns: minmax(220px, .7fr) minmax(240px, .9fr) minmax(240px, .9fr);
    grid-template-rows: auto auto auto;
    gap: 10px 16px;
    padding: 12px 16px;
  }
  .workbench-hardware-controls { grid-column: 2; }
  .workbench-jewelry-controls { grid-column: 3; }
  .workbench-confirm-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; }
  .workbench-confirm-actions button { min-width: 0; padding: 7px 8px; }
  .workbench-confirm-actions .workbench-confirm { min-width: 0; }
}

@media (max-width: 1180px) {
  .workbench-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .workbench-toolbar-actions { flex-basis: 100%; justify-content: flex-start; }
  .workbench-transform-panel { grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr); }
  .workbench-hardware-controls, .workbench-jewelry-controls { grid-column: auto; }
  .workbench-gizmo-controls button { padding-inline: 8px; }
}

@media (max-width: 900px) {
  html, body {
    overflow: hidden !important;
    overscroll-behavior: none;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
  }
  .workbench-shell {
    height: 100%;
    height: 100dvh;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }
  .workbench-sidebar { display: none; }
  .workbench-main {
    position: relative;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }
  .workbench-canvas-wrap {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }
  .atlas-viewport {
    height: auto;
    min-height: 0;
  }
  .workbench-toolbar {
    position: absolute;
    z-index: 7;
    top: env(safe-area-inset-top, 0px);
    left: 8px;
    right: 8px;
    min-height: 0;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .workbench-current {
    min-width: 0;
    pointer-events: none;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(8, 8, 12, .38);
    backdrop-filter: blur(14px);
  }
  .workbench-current strong { font-size: 16px; }
  .workbench-toolbar-actions {
    width: auto;
    flex: 0 0 auto;
    pointer-events: auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  .workbench-toolbar-field,
  .workbench-toolbar-actions > button { display: none; }
  .workbench-history-controls {
    display: flex;
    gap: 6px;
  }
  .workbench-history-controls button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    background: rgba(8, 8, 12, .38);
    backdrop-filter: blur(14px);
  }
  .workbench-canvas-help { display: none; }
  .workbench-transform-panel {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    overflow: visible;
    z-index: 8;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    pointer-events: none;
  }
  .workbench-transform-heading { display: none; }
  .workbench-sheet-side { display: grid; }
  .workbench-dock-tray { display: block; }
  .workbench-sheet {
    display: grid;
    position: relative;
    z-index: auto;
    left: auto;
    right: auto;
    bottom: auto;
    max-height: 0;
    overflow: hidden;
    gap: 10px;
    padding: 0 12px;
    border: 0;
    border-top: 0 solid rgba(255,255,255,.1);
    border-radius: 0;
    background: rgba(8, 8, 12, .94);
    color: rgba(255,255,255,.9);
    backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
    transition: max-height var(--motion) ease, opacity var(--motion-fast) ease, transform var(--motion) var(--ease-out), padding var(--motion) ease, border-width var(--motion) ease, visibility var(--motion);
  }
  .workbench-sheet.is-open {
    max-height: min(42dvh, 360px);
    overflow: auto;
    padding: 10px 12px;
    border-top-width: 1px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
  }
  .workbench-sheet.is-open > * { animation: workbench-item-in var(--motion) ease both; }
  .workbench-sheet.is-open > *:nth-child(2) { animation-delay: 30ms; }
  .workbench-sheet.is-open > *:nth-child(3) { animation-delay: 55ms; }
  .workbench-sheet.is-open > *:nth-child(4) { animation-delay: 80ms; }
  .workbench-sheet .workbench-hardware-field { gap: 6px; }
  .workbench-sheet select,
  .workbench-sheet summary,
  #workbench-placement-toggle {
    background: rgba(10,10,14,.35);
  }
  .workbench-confirm-actions {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }
  .workbench-confirm-actions .workbench-confirm { grid-column: 1 / -1; }
  .workbench-view-pop {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    max-height: min(42dvh, 360px);
    overflow: auto;
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    background: rgba(8, 8, 12, .94);
    backdrop-filter: none;
    box-shadow: none;
    transform-origin: bottom center;
  }
  .jewelry-look-tool {
    top: auto;
    left: 8px;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 10;
    justify-items: stretch;
  }
  .jewelry-place-copy,
  .jewelry-place-keys { display: none !important; }
  #jewelry-place-toggle,
  #jewelry-look-toggle { display: none; }
  .jewelry-look-panel,
  .jewelry-place-panel {
    width: auto;
    max-width: none;
  }
  .jewelry-place-panel {
    padding: 10px;
  }
  .jewelry-place-panel .jewelry-look-kicker { margin-bottom: 8px; }
  .jewelry-place-modes { margin-bottom: 8px; }
  .jewelry-place-panel .jewelry-look-reset { margin-top: 6px; }
  .workbench-touch-dock {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,.1);
    background: rgba(8, 8, 12, .94);
    box-shadow: 0 -10px 28px rgba(0,0,0,.45);
  }
  .workbench-dock-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #b7b3bd;
    padding: 6px 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 8px;
    cursor: pointer;
    transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
  }
  .workbench-dock-btn:active { transform: scale(.92); }
  .workbench-dock-btn svg {
    width: 20px;
    height: 20px;
    transition: transform var(--motion) var(--ease-out);
  }
  .workbench-dock-btn[aria-pressed="true"] svg,
  .workbench-dock-btn[aria-expanded="true"] svg,
  .workbench-dock-btn.is-open svg {
    animation: workbench-icon-pop var(--motion) var(--ease-out);
  }
  #workbench-dock-lock svg path {
    transform-box: fill-box;
    transform-origin: 50% 100%;
    transition: transform var(--motion) var(--ease-out);
  }
  #workbench-dock-lock[aria-pressed="false"] svg path { transform: rotate(-26deg); }
  .workbench-dock-btn span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .workbench-dock-btn[aria-pressed="true"],
  .workbench-dock-btn[aria-expanded="true"],
  .workbench-dock-btn.is-open {
    color: #fff;
    background: rgba(106,0,255,.2);
  }
  #workbench-dock-lock[aria-pressed="true"],
  #workbench-dock-lock.is-locked {
    color: #ff5a5a;
    background: rgba(160, 28, 36, .22);
  }
  #workbench-dock-lock[aria-pressed="false"] {
    color: #9ad29a;
    background: rgba(40,133,91,.16);
  }
  .workbench-custom-grid { grid-template-columns: 1fr; }
  .workbench-custom-hardware { grid-column: auto; }
  .workbench-hardware-options, .workbench-clone-grid, .workbench-placement-group { grid-template-columns: 1fr; }
  .workbench-touch-gizmo { display: grid; }
  .workbench-placement-picker { max-height: 36dvh; }
}

@media (max-width: 820px) {
  .workbench-sidebar .workbench-transform-panel { min-height: 0; }
}

/* The left rail is the working tool panel. Publishing and catalog management
   live in the Atlas menu so the 3D viewport keeps the remaining height. */
.workbench-sidebar { display: block; overflow: auto; }
.workbench-sidebar .workbench-transform-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px 18px;
  border-top: 0;
  background: linear-gradient(145deg, rgba(106,0,255,.09), transparent 34%), #0d0d12;
}
.workbench-sidebar .workbench-transform-heading { padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.workbench-sidebar .workbench-hardware-controls { grid-template-columns: 1fr; }
.workbench-sidebar .workbench-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.workbench-sidebar .workbench-confirm-actions .workbench-confirm { min-width: 0; }
.workbench-sidebar .workbench-touch-gizmo { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.workbench-admin-dialog {
  width: min(540px, calc(100vw - 28px));
  max-height: calc(100svh - 28px);
  padding: 0;
  border: 1px solid rgba(152,85,255,.42);
  background: #0b0b10;
  color: var(--text);
}
.workbench-admin-dialog[open] { animation: workbench-dialog-in var(--motion) var(--ease-out); }
.workbench-admin-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(4px); }
.workbench-admin-dialog[open]::backdrop { animation: workbench-backdrop-in var(--motion) ease; }
.workbench-admin-dialog > header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #0d0d13;
}
.workbench-admin-dialog > header span { color: var(--violet); text-transform: uppercase; letter-spacing: .13em; font-size: 9px; }
.workbench-admin-dialog > header h2 { margin: 3px 0 0; font: 500 24px/1 var(--serif); }
.workbench-admin-dialog > header button { width: 40px; height: 40px; border: 1px solid var(--line); background: #14141a; color: white; font-size: 24px; cursor: pointer; }
.workbench-admin-dialog-body { max-height: calc(100svh - 102px); overflow: auto; }
.workbench-sidebar .workbench-admin-panel { display: none; }
.workbench-admin-panel { display: grid; grid-template-rows: auto auto auto minmax(180px, 1fr) auto; }
.workbench-admin-dialog-body .workbench-admin-panel { display: grid; }
.workbench-admin-dialog .workbench-task-list { max-height: 42svh; }

.atlas-viewport:not([data-calibration-tool="surface"]) .workbench-crosshair { display: none; }

@media (max-width: 900px) {
  .workbench-sidebar { display: none; }
}

body.workbench-touch-ui .jewelry-look-tool {
  pointer-events: none;
}
body.workbench-touch-ui .jewelry-place-copy,
body.workbench-touch-ui .jewelry-place-keys,
body.workbench-touch-ui .jewelry-place-panel .jewelry-look-kicker,
body.workbench-touch-ui #jewelry-place-tune,
body.workbench-touch-ui #jewelry-place-roll {
  display: none !important;
}
body.workbench-touch-ui #jewelry-place-spin { order: 1; }
body.workbench-touch-ui #jewelry-place-depth { order: 2; }
body.workbench-touch-ui #jewelry-place-seat { order: 3; }
body.workbench-touch-ui #jewelry-place-hang { order: 4; color: #d8ffeb; }
body.workbench-touch-ui #jewelry-place-hang.is-fired {
  color: #fff;
  background: rgba(40, 133, 91, .38);
  animation: workbench-hang-fire 320ms ease;
}
body.workbench-touch-ui #jewelry-place-reset { order: 5; }
body.workbench-touch-ui .jewelry-place-panel button[hidden] {
  display: none !important;
}
body.workbench-touch-ui .jewelry-look-panel {
  width: auto;
  max-width: none;
}
body.workbench-touch-ui #workbench-sheet-jewelry .jewelry-look-panel {
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
body.workbench-touch-ui #workbench-sheet-jewelry .jewelry-look-kicker {
  display: none;
}
body.workbench-touch-ui #workbench-sheet-jewelry .jewelry-look-panel:not([hidden]),
body.workbench-touch-ui #workbench-sheet-jewelry .jewelry-look-panel.is-leaving {
  animation: none;
}
body.workbench-touch-ui .jewelry-place-panel {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  z-index: 8;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: none;
  height: 56px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-radius: 0;
  background: rgba(8, 8, 12, .94);
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: auto;
}
body.workbench-touch-ui .jewelry-place-panel:not([hidden]) {
  animation: workbench-pop-in var(--motion) var(--ease-out);
}
body.workbench-touch-ui .jewelry-place-panel.is-leaving {
  animation: workbench-pop-out var(--motion-fast) ease forwards;
}
body.workbench-touch-ui .jewelry-place-modes,
body.workbench-touch-ui .jewelry-place-tune-axes {
  display: contents;
  margin: 0;
}
body.workbench-touch-ui .jewelry-place-tune-axes[hidden] {
  display: none;
}
body.workbench-touch-ui .jewelry-place-panel button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #b7b3bd;
  font: inherit;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease, transform var(--motion-fast) var(--ease-out);
}
body.workbench-touch-ui .jewelry-place-panel button:active { transform: scale(.94); }
body.workbench-touch-ui .jewelry-place-panel button[aria-pressed="true"] {
  color: #fff;
  background: rgba(106,0,255,.2);
  border: 0;
}
body.workbench-touch-ui .jewelry-place-panel .jewelry-look-reset {
  flex: 1 1 0;
  width: auto;
  color: #b7b3bd;
}

.jewelry-look-panel,
.jewelry-place-panel {
  transform-origin: top right;
}
.jewelry-look-panel:not([hidden]),
.jewelry-place-panel:not([hidden]) {
  animation: workbench-pop-in var(--motion) var(--ease-out);
}
.jewelry-look-panel.is-leaving,
.jewelry-place-panel.is-leaving {
  animation: workbench-pop-out var(--motion-fast) ease forwards;
}

.workbench-allow-dropdown summary {
  transition: border-color var(--motion-fast) ease;
}
.workbench-allow-dropdown[open] .workbench-allow-options {
  animation: workbench-item-in var(--motion) ease;
}

@keyframes workbench-pop-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes workbench-pop-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(6px) scale(.96); }
}
@keyframes workbench-item-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes workbench-dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes workbench-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes workbench-icon-pop {
  from { transform: scale(.82); }
  to { transform: none; }
}
@keyframes workbench-hang-fire {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-sheet,
  .workbench-sheet.is-open,
  .workbench-sheet.is-open > *,
  .workbench-view-pop,
  .workbench-help-tip,
  .workbench-placement-picker,
  .jewelry-look-panel,
  .jewelry-place-panel,
  .workbench-dock-btn,
  .workbench-dock-btn svg,
  .workbench-custom-dialog,
  .workbench-admin-dialog,
  .workbench-toolbar button,
  .workbench-allow-dropdown[open] .workbench-allow-options {
    animation: none !important;
    transition: none !important;
  }
}
