:root {
  color-scheme: dark;
  --background: #030712;
  --surface: #111827;
  --control: #1f2937;
  --border: #374151;
  --control-border: #6b7280;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --green-surface: #10271e;
  --green: #14532d;
  --green-hover: #22643d;
  --accent: #4ade80;
  --danger: #f87171;
  accent-color: var(--accent);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { display: flex; flex-direction: column; background: var(--background); color: var(--text); font: 13px Arial, sans-serif; }
button, input, select { font: inherit; }
button { border: 1px solid var(--control-border); border-radius: 2px; background: var(--control); padding: 4px 7px; color: inherit; cursor: pointer; }
button:hover:not(:disabled) { background: var(--green-hover); }
button:disabled { cursor: default; opacity: .55; }
input, select { background: var(--surface); color: var(--text); }
input { min-width: 0; padding: 5px; border: 1px solid var(--control-border); border-radius: 2px; }
input::placeholder { color: var(--muted); opacity: 1; }
input:autofill { box-shadow: inset 0 0 0 1000px var(--surface); -webkit-text-fill-color: var(--text); }
input[type="range"] { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
header { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-bottom: 1px solid var(--border); }
header button { flex-shrink: 0; white-space: nowrap; }
#toggle_help { display: inline-flex; align-items: center; gap: 5px; height: auto; padding: 4px 7px; }
#context { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spacer { flex: 1; }
main { flex: 1; min-height: 0; overflow: hidden; }
.selection { width: min(520px, 100%); max-height: 100%; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
#login { width: min(760px, 100%); }
#password_change { margin-top: 16px; }
#patients { width: min(1200px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.selection_column { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.selection_column h2 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
#peer_list { margin: 0; padding: 0; list-style: none; overflow: auto; }
#peer_list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 60px; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
#peer_list li span:nth-child(2) { color: var(--muted); }
form { display: flex; gap: 5px; flex-shrink: 0; }
form input { flex: 1; }
#reset_alignment_dialog { max-width: calc(100% - 24px); padding: 16px; border: 1px solid var(--control-border); border-radius: 2px; background: var(--surface); color: var(--text); }
#reset_alignment_dialog::backdrop { background: #0009; }
#reset_alignment_dialog p { margin: 0 0 16px; }
#reset_alignment_dialog form { justify-content: flex-end; }
#invalid_upload_dialog { width: 640px; max-width: calc(100% - 32px); padding: 32px; border: 3px solid var(--danger); border-radius: 2px; background: var(--surface); color: var(--text); }
#invalid_upload_dialog::backdrop { background: #000b; }
#invalid_upload_message { margin: 0 0 28px; font-size: 24px; line-height: 1.4; }
#invalid_upload_dialog form { justify-content: flex-end; }
#invalid_upload_dialog button { min-width: 96px; padding: 10px 20px; font-size: 16px; }
.choices { display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.choices button { text-align: left; }
#workspace { height: 100%; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px; padding: 4px; }
#views { min-width: 0; min-height: 0; display: grid; gap: 4px; grid-template-columns: minmax(0, 1fr) var(--side, 35%); grid-template-rows: auto repeat(2, minmax(0, 1fr)); }
#side_interfaces { grid-column: 2; grid-row: 1; }
.viewport { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--background); border: 1px solid var(--border); }
.view_drag_helper { position: fixed; z-index: 6; overflow: hidden; border: 2px solid #fff; border-radius: 8px; pointer-events: none; }
.view_drag_helper_frame { position: absolute; inset: 0; animation: helper_swap 4s steps(1, end) infinite; }
.view_drag_helper_frame[data-state="incorrect"] { animation-delay: -2s; }
.view_drag_helper img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.view_drag_helper_mark { position: absolute; bottom: 8px; left: 8px; color: #ef4444; font: bold 48px/1 Arial, sans-serif; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.view_drag_helper_frame[data-state="correct"] .view_drag_helper_mark { color: #22c55e; }
@keyframes helper_swap { 0%, 100% { visibility: visible; } 50% { visibility: hidden; } }
.view_loading { position: absolute; z-index: 5; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--background); border: 1px solid var(--border); white-space: nowrap; pointer-events: none; }
.view_loading::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: checklist_spin 650ms linear infinite; }
.viewport > span { position: absolute; top: 5px; left: 6px; color: var(--muted); pointer-events: none; z-index: 1; }
.view_heading { position: absolute; top: 5px; left: 6px; z-index: 2; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 40px); padding: 2px 4px; background: var(--background); color: var(--text); pointer-events: none; }
.view_bottom_controls { position: absolute; z-index: 3; bottom: 5px; left: 5px; right: 55px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; }
.view_bottom_controls > * { pointer-events: auto; }
#main_view > .view_bottom_controls { bottom: 39px; left: 6px; right: 16px; }
.view_fov { position: relative; display: flex; align-items: center; gap: 4px; padding: 2px 4px; background: var(--background); }
.view_fov input { width: 100px; min-width: 20px; padding: 0; }
#views > [data-slot="profile"], #views > [data-slot="front"] { grid-column: 2; aspect-ratio: 1; width: 100%; align-self: center; }
#views > [data-slot="profile"] { grid-row: 2; }
#views > [data-slot="front"] { grid-row: 3; }
#views > [data-slot="main"] { grid-column: 1; grid-row: 1 / 4; }
.view_swap { position: absolute; top: 28px; left: 6px; z-index: 3; padding: 2px 7px; }
#profile_view canvas, #front_view canvas { touch-action: none; }
.viewport.dragging { outline: 2px solid var(--accent); outline-offset: -2px; }
.photo_placeholder { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; color: var(--muted); }
.photo_placeholder svg { width: 44%; height: 50%; max-width: 180px; max-height: 210px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.view_navigation_hint { position: absolute; z-index: 2; bottom: 5px; left: 5px; font-size: 11px; line-height: 14px; color: var(--muted); background: var(--background); pointer-events: none; }
#main_view > .view_navigation_hint { padding-top: 8px; font-size: 14px; line-height: 18px; }
.view_heading .view_navigation_hint { position: static; }
#task_description { position: fixed; z-index: 10; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 620px; max-width: calc(100% - 16px); max-height: calc(100% - 16px); overflow: auto; padding: 12px 52px 12px 12px; border: 3px solid #22a447; border-radius: 6px; background: var(--surface); line-height: 1.5; cursor: grab; touch-action: none; user-select: none; }
#task_description.dragging { cursor: grabbing; }
#task_description p { margin: 0; }
#task_description_title { margin: 0 0 4px; font-size: 16px; }
#task_description #task_description_detail { margin-top: 4px; font-size: 12px; color: var(--muted); white-space: pre-line; }
#dismiss_description { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 36px; height: 30px; padding: 0; font-size: 24px; line-height: 1; background: transparent; border: 1px solid var(--control-border); border-radius: 6px; }
canvas { display: block; width: 100%; height: 100%; }
.plane_overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.handle_prompt { position: absolute; z-index: 1; pointer-events: none; color: var(--danger); font: bold 34px/1 Arial, sans-serif; text-shadow: 0 0 2px var(--background), 0 0 2px var(--background); translate: 8px -32px; }
.handle_prompt, #checklist li.ready::after, #checklist button.needs_attention::after, .view_swap.needs_attention::after, .asset_upload.needs_attention::after, .asset_heading.needs_attention::after, .asset_download.needs_attention::after { scale: 2; animation: prompt_pulse 1s ease-in-out infinite; }
.handle_prompt, .asset_upload.needs_attention::after, .asset_heading.needs_attention::after, .asset_download.needs_attention::after {
  transform-origin: center;
  animation: prompt_enter 2s ease-out, prompt_fade_in .5s linear, prompt_pulse 1s ease-in-out 2s infinite;
}
#workspace.prompts_pending .handle_prompt,
#workspace.prompts_pending .needs_attention::after,
#workspace.prompts_pending #checklist li.ready::after { visibility: hidden; animation: none; }
@keyframes prompt_enter {
  from { transform: scale(10); }
  to { transform: scale(1); }
}
@keyframes prompt_fade_in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes prompt_pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}
.handle_check { position: absolute; z-index: 3; pointer-events: none; width: 23px; height: 23px; margin: -12px; border-radius: 50%; background: #22a447; color: white; text-align: center; font: bold 18px/23px Arial, sans-serif; animation: handle_check 300ms ease-out forwards; }
@keyframes handle_check {
  0% { transform: scale(.4); opacity: 0; }
  35% { transform: scale(1.25); opacity: 1; }
  65% { transform: scale(1); opacity: 1; }
  100% { transform: scale(.9); opacity: 0; }
}
.pre_maxillary_anchor, .pre_maxillary_anchor_pulse { fill: none; stroke: #22c55e; opacity: 0; }
.pre_maxillary_anchor { stroke-width: 1; transition: opacity 150ms ease; }
.pre_maxillary_anchor.visible { opacity: 1; }
.pre_maxillary_anchor_pulse { stroke-width: 3; }
.pre_maxillary_anchor_pulse.visible { animation: anchor_pulse 1s ease-in-out infinite; }
.pupil_height_guide { stroke: #22c55e; stroke-width: 2; stroke-dasharray: 1 5; stroke-linecap: round; }
@keyframes anchor_pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}
.view_transparency { position: relative; display: flex; align-items: center; gap: 3px; }
.view_transparency button[aria-pressed="true"] { background: var(--green); }
.interface_tabs .interface_lock { position: absolute; z-index: 2; top: 3px; right: 3px; width: 17px; height: 17px; padding: 1px; background: var(--surface); color: var(--accent); }
.interface_lock svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.interface_lock.unlocked .lock_shackle { transform: translateY(-2px) rotate(-25deg); transform-origin: 5px 7px; }
.interface_lock.lock_entering { z-index: 4; transform-origin: top right; animation: lock_entrance 1100ms both; }
@keyframes lock_entrance {
  0% { transform: translate(-24px, 24px) scale(7) rotate(-12deg); opacity: 0; box-shadow: 0 0 0 0 #4ade8000; animation-timing-function: ease-out; }
  20% { transform: translate(-18px, 18px) scale(5) rotate(-8deg); opacity: 1; box-shadow: 0 0 12px 2px #4ade8066; animation-timing-function: cubic-bezier(.7, 0, 1, 1); }
  55% { transform: scale(.8) rotate(5deg); box-shadow: 0 0 0 0 #4ade80cc; animation-timing-function: ease-out; }
  72% { transform: scale(1.35) rotate(-3deg); box-shadow: 0 0 18px 10px #4ade8066; animation-timing-function: ease-in-out; }
  86% { transform: scale(.95) rotate(1deg); }
  100% { transform: none; opacity: 1; box-shadow: 0 0 24px 16px #4ade8000; }
}
.view_transparency { max-width: 100%; height: 30px; padding: 2px 4px; background: var(--background); }
.view_transparency:not(:has(> :not([hidden]))) { display: none; }
.view_transparency label { display: flex; align-items: center; gap: 3px; min-width: 0; }
.view_transparency input { width: 80px; min-width: 20px; padding: 0; }
.view_zoom { position: absolute; z-index: 2; bottom: 5px; right: 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; background: var(--background); }
.view_zoom input { writing-mode: vertical-lr; direction: rtl; width: 16px; height: 90px; padding: 0; margin: 0; }
.view_zoom_title { position: relative; }
.view_ipd { position: relative; display: flex; align-items: center; gap: 3px; min-width: 0; }
.view_ipd .handle_prompt { left: 50%; top: 0; translate: -50% -100%; }
.view_ipd input[type="range"] { width: 100px; }
.view_ipd input[type="number"] { width: 46px; padding: 1px 2px; border: 1px solid var(--control-border); border-radius: 2px; font-variant-numeric: tabular-nums; appearance: textfield; }
.view_ipd input[type="number"]::-webkit-inner-spin-button,
.view_ipd input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
@property --drag_border_phase {
  syntax: "<angle>";
  inherits: false;
  initial-value: -90deg;
}
.view_drag_instruction { position: absolute; z-index: 3; left: 5px; right: 5px; padding: 4px 6px; border: 2px solid var(--drag_instruction_color); background: var(--background); color: var(--text); text-align: center; pointer-events: none; box-shadow: 0 0 0 calc(1.5px * (1 + sin(var(--drag_border_phase)))) var(--drag_instruction_color); animation: drag_border_pulse 1s linear infinite; }
@keyframes drag_border_pulse {
  from { --drag_border_phase: -90deg; }
  to { --drag_border_phase: 270deg; }
}
.paint_controls { position: absolute; z-index: 3; bottom: 31px; right: 8px; display: grid; justify-items: end; gap: 6px; }
.paint_color_tools { display: flex; gap: 6px; }
.paint_navigation_hint { display: none; }
.paint_mode .paint_navigation_hint { display: inline; }
.paint_jaws button[aria-pressed="true"] { background: var(--green); }
.paint_toolbar, .curve_actions { position: absolute; z-index: 2; left: 6px; bottom: 31px; }
.paint_toolbar { top: 36px; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.paint_toolbar > * { pointer-events: auto; }
.paint_tool, .paint_done, .paint_cancel, .curve_done, .curve_cancel, #task_done, #task_cancel { width: 64px; height: 64px; padding: 10px; }
.paint_tool { position: relative; flex-shrink: 0; border-width: 2px; }
.paint_tool:focus-visible { outline: none; border-color: var(--text); }
.paint_tool svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.paint_tool span { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: bold; text-align: center; text-shadow: 0 1px 3px #030712, 0 -1px 3px #030712, 1px 0 3px #030712, -1px 0 3px #030712; }
.paint_tool[aria-pressed="true"] { background: var(--green); border: 2px solid var(--accent); }
.paint_size { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 72px; height: 180px; padding: 4px; background: var(--background); font-size: 11px; }
.paint_size input { writing-mode: vertical-lr; direction: rtl; width: 24px; height: 100%; min-height: 0; padding: 0; margin: 0; }
.paint_jaws { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: auto; flex-shrink: 0; }
.paint_actions, .curve_actions, #task_actions { display: flex; gap: 6px; }
.curve_height { position: absolute; z-index: 2; left: 6px; top: 36px; display: flex; align-items: center; gap: 6px; background: var(--surface); padding: 6px; }
.curve_height output { min-width: 5ch; }
.paint_actions { align-self: flex-start; margin-top: 12px; flex-shrink: 0; }
.paint_done, .curve_done, #task_done { border: 2px solid var(--accent); }
.paint_inset { position: absolute; z-index: 2; top: 26px; width: min(28%, 220px); aspect-ratio: 1; }
.paint_left { left: 78px; }
.paint_right { right: 5px; }
.paint_inset canvas { touch-action: none; }
:is(.paint_mode, .curve_mode) #main_view { container-type: inline-size; }
:is(.paint_mode, .curve_mode) :is(#profile_view, #front_view) :is(.view_zoom, .view_transparency, .view_navigation_hint, .photo_placeholder) { display: none; }
.bite_controls, #parameters_controls { position: relative; align-self: stretch; padding: 10px 16px; border: 1px solid var(--border); background: var(--surface); }
.bite_controls > label { display: flex; justify-content: space-between; gap: 8px; }
.bite_controls output { font-variant-numeric: tabular-nums; }
.bite_scale { position: relative; padding-bottom: 18px; }
.bite_scale input { appearance: none; display: block; position: relative; width: 100%; height: 32px; margin: 0; padding: 0; border: 0; cursor: grab; }
.bite_scale input:active { cursor: grabbing; }
.bite_scale input::-webkit-slider-runnable-track { height: 2px; background: var(--muted); }
.bite_scale input::-moz-range-track { height: 2px; background: var(--muted); }
.bite_scale input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; border: 1px solid var(--text); background: var(--accent); }
.bite_scale input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--text); background: var(--accent); }
.bite_scale input:disabled { opacity: .5; cursor: default; }
.library_controls .handle_prompt { top: 16px; translate: 18px -50%; transform-origin: left center; }
.library_controls .handle_prompt[data-side="left"] { translate: calc(-100% - 18px) -50%; transform-origin: right center; }
.slider_ghost { position: absolute; z-index: 1; width: 18px; height: 18px; border: 1px solid var(--text); border-radius: 50%; background: var(--accent); opacity: .4; transform: translate(-50%, -50%); pointer-events: none; }
.bite_notches { position: absolute; top: 10px; left: 9px; right: 9px; pointer-events: none; }
.bite_notches span { position: absolute; width: 1px; height: 12px; background: var(--muted); }
.bite_notches .zero { top: -3px; height: 18px; background: var(--text); }
.bite_labels { position: absolute; left: 9px; right: 9px; bottom: 0; height: 16px; color: var(--muted); }
.bite_labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.bite_labels span:nth-child(2) { left: 50%; }
.bite_labels span:last-child { left: 100%; }
.paint_palette { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 3px; width: min(320px, calc(100cqw - 16px)); padding: 6px; border: 1px solid var(--border); background: var(--surface); }
.paint_palette button { height: 28px; min-width: 0; padding: 2px 0; }
.paint_palette button[aria-pressed="true"] { outline: 2px solid #111; outline-offset: -3px; box-shadow: inset 0 0 0 4px #fff; }
aside { min-height: 0; overflow: hidden; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; }
#scene_assets { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.interface_tabs { display: flex; gap: 3px; }
#scene_interfaces { flex-shrink: 0; margin-bottom: 4px; }
.interface_tabs > button, .interface_tab { flex: 1 1 auto; min-width: 0; }
.interface_tabs button { padding: 4px 3px; }
.interface_tab { position: relative; }
.interface_tab > button:not(.interface_lock) { width: 100%; height: 100%; padding-right: 23px; }
.interface_tabs button:not(.interface_lock)[aria-pressed="true"] { background: var(--green); }
#scene_list { flex: 1; min-height: 0; overflow: auto; list-style: none; padding: 0; margin: 0; }
#scene_list li { border: 1px solid var(--border); margin-bottom: 4px; padding: 5px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px; }
#scene_list li.enabled { background: var(--green-surface); }
#scene_list li.dragging { border-color: var(--accent); background: var(--green); }
.eye { padding: 3px; height: 25px; }
.eye[aria-pressed="true"] { background: var(--green); }
.eye svg { width: 18px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.eye[aria-pressed="true"] .slash { display: none; }
.asset_label { padding: 4px 0; }
.asset_heading { display: flex; align-items: center; gap: 6px; min-width: 0; }
.asset_download, .asset_reset_alignment { flex: none; margin-left: auto; padding: 2px 4px; font-size: 11px; }
.asset_download { position: relative; }
.asset_thumbnail { width: 28px; height: 28px; flex: none; background: var(--background); }
.asset_placeholder svg { width: 100%; height: 100%; fill: none; stroke: var(--muted); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.asset_upload { grid-column: 1 / 3; text-align: left; font-size: 12px; }
.asset_upload_prompt { color: var(--text); }
.asset_upload.needs_attention::after, .asset_heading.needs_attention::after { content: "!"; display: inline-block; margin-left: 8px; color: var(--danger); font-weight: bold; }
.asset_status { grid-column: 1 / 3; color: var(--muted); overflow-wrap: anywhere; }
.asset_status:empty { display: none; }
.asset_requirement { grid-column: 2; font-size: 11px; color: var(--muted); }
.asset_requirement:empty { display: none; }
#alignment_status, #viewer_status { padding: 4px; }
#checklist { min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); border: 4px solid #22a447; }
#checklist h2 { margin: 0; padding: 5px 8px; font-size: 13px; font-weight: bold; }
#checklist ol { min-height: 0; overflow: auto; margin: 0; padding: 0 4px 5px; list-style: none; }
#checklist li { position: relative; min-height: 40px; padding: 4px 4px 4px 36px; }
#checklist li + li { border-top: 1px solid var(--border); }
#checklist li::before { content: counter(list-item) "."; position: absolute; top: 4px; left: 10px; width: 21px; text-align: center; line-height: 15px; }
#checklist li.active { background: var(--green); }
#checklist .task_actions { display: flex; gap: 4px; margin-top: 2px; }
#checklist .subtask { margin-top: 3px; padding: 2px 0; }
#checklist .subtask_title { display: block; font-size: 11px; }
#checklist .subtask.active { background: var(--green-hover); }
#checklist .subtask[data-completed="true"] .subtask_title { color: #86efac; }
#checklist .subtask[aria-disabled="true"] { color: var(--muted); }
#checklist li[aria-disabled="true"] { color: var(--muted); }
#checklist label { display: flex; align-items: flex-start; gap: 5px; }
#checklist label:has(input:checked) { color: #86efac; }
#checklist li.ready:not(.active)::after { content: "!"; position: absolute; top: 4px; left: 1px; width: 6px; text-align: center; color: var(--danger); font: bold 16px/15px Arial, sans-serif; pointer-events: none; }
#checklist input { appearance: none; position: absolute; top: 22px; left: 14px; width: 13px; height: 13px; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--control-border); border-radius: 2px; }
#checklist input:checked { background: #22a447; border-color: #22a447; animation: checklist_pop 180ms ease-out; }
#checklist input:checked::after { content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
#checklist input.loading { background: transparent; border: 2px solid var(--border); border-top-color: #22a447; border-radius: 50%; animation: checklist_spin 650ms linear infinite; }
#checklist input.loading::after { content: none; }
@keyframes checklist_spin {
  to { transform: rotate(360deg); }
}
@keyframes checklist_pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.3); }
}
#checklist li.ready > .task_actions button[data-action="begin"]:not(:disabled)::before,
#checklist li:not(.active) .subtask.ready button[data-action="begin"]:not(:disabled)::before,
#checklist li:is([data-task="ios"], [data-task="clean_ios"], [data-task="refine_segmentation"]) .subtask.active button[data-action="complete"]:not(:disabled)::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  pointer-events: none;
  animation: begin_outline_pulse 1s ease-out infinite;
}
@keyframes begin_outline_pulse {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .interface_lock.lock_entering { animation: none; }
  #checklist input:checked, #checklist input.loading, .view_loading::before { animation: none; }
  .handle_check, .handle_prompt, #checklist li.ready::after, #checklist button.needs_attention::after, .view_swap.needs_attention::after, .asset_upload.needs_attention::after, .asset_heading.needs_attention::after, .asset_download.needs_attention::after { animation: none; }
  #checklist li.ready button[data-action="begin"]:not(:disabled)::before,
  #checklist li:is([data-task="ios"], [data-task="clean_ios"], [data-task="refine_segmentation"]) .subtask.active button[data-action="complete"]:not(:disabled)::before { animation: none; }
}
#checklist button { position: relative; padding: 0 4px; line-height: 15px; }
#checklist button.needs_attention::after, .view_swap.needs_attention::after, .asset_download.needs_attention::after { content: "!"; position: absolute; top: -7px; right: -4px; color: var(--danger); font: bold 16px/15px Arial, sans-serif; text-shadow: 0 0 2px var(--background), 0 0 2px var(--background); pointer-events: none; }
#checklist button:not(:disabled) { background: var(--green); }
#checklist button:hover:not(:disabled), .interface_lock:hover:not(:disabled), .view_transparency button:hover:not(:disabled), .interface_tabs button:hover:not(:disabled), .eye:hover:not(:disabled) { background: var(--green-hover); }
footer { flex: 0 0 34px; min-height: 0; padding: 3px 6px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--border); }
#status { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#refresh { flex-shrink: 0; white-space: nowrap; }
.error { color: var(--danger); }

.incisal_parallel { position: absolute; z-index: 2; transform: translate(-100%, -50%); width: 22px; height: 22px; padding: 0; line-height: 18px; font-size: 18px; }
