@tailwind base; @tailwind components; @tailwind utilities; /* 减少动态效果 (§五):系统设置自动生效,顶栏开关写 data-reduce="1"。 位移/缩放/弹入/光晕全部取消,只留 ≤120ms 透明度,进度条直接跳变。 */ :root[data-reduce="1"] { --d-press: 0ms; --d-state: 120ms; --d-pop: 120ms; --d-leave: 120ms; --d-enter: 120ms; --d-drawer: 120ms; --d-flash: 0ms; --d-progress: 0ms; --press-scale: 1; --ease-spring: ease; } @media (prefers-reduced-motion: reduce) { :root { --d-press: 0ms; --d-state: 120ms; --d-pop: 120ms; --d-leave: 120ms; --d-enter: 120ms; --d-drawer: 120ms; --d-flash: 0ms; --d-progress: 0ms; --press-scale: 1; --ease-spring: ease; } } body { background: var(--page-glow), var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; margin: 0; min-height: 100vh; } .a-darkroom { background: var(--page-glow), var(--bg); color: var(--text); font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); } code, .mono, .kh { font-family: var(--mono); font-variant-numeric: tabular-nums; } /* ------------------------------------------------------------------ * Shared controls (§四 组件状态通用规范). The only definitions of these * looks — `ui/Button.svelte` renders `.a-btn`, pages use the classes * directly for links / selects. Page styles may only tweak layout * (width / margin), never re-declare colors. * ------------------------------------------------------------------ */ .a-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--button-height, 34px); padding: 0 var(--button-padding, var(--sp-6)); border-radius: var(--button-radius, var(--r-md)); border: 1px solid transparent; font-family: inherit; font-size: var(--button-font-size, var(--fs-body)); font-weight: var(--button-weight, 600); white-space: nowrap; text-decoration: none; cursor: pointer; box-sizing: border-box; transition: transform var(--d-press) var(--ease-out), background-color var(--d-state) ease, border-color var(--d-state) ease, box-shadow var(--d-state) ease, color var(--d-state) ease, opacity var(--d-state) ease; } .a-btn.lg { min-height: 38px; padding: 0 var(--sp-7); } .a-btn.sm { min-height: var(--button-sm-height, 28px); padding: 0 var(--button-sm-padding, var(--sp-4)); font-size: var(--button-sm-font-size, var(--fs-aux)); border-radius: var(--button-sm-radius, var(--r-sm)); --button-secondary-size-radius: var( --button-sm-radius, var(--button-secondary-radius, 8px) ); } .a-btn.xs { min-height: 24px; padding: 0 var(--sp-3); font-size: var(--fs-mini); border-radius: var(--r-sm); } .a-btn.block { width: 100%; } .a-btn.primary { position: relative; overflow: hidden; border: var(--button-primary-border-width, 1px) solid transparent; border-bottom-width: 0; min-height: var(--button-primary-height, 40px); padding: 0 var(--button-primary-padding, 18px); border-radius: var(--button-primary-radius, 8px); font-weight: var(--button-primary-weight, 550); background: var(--accent-grad); color: var(--accent-ink); box-shadow: var(--btn-glow); } .a-btn.secondary { background: var(--button-secondary-bg, var(--surface)); border-radius: var( --button-secondary-size-radius, var(--button-secondary-radius, 8px) ); border-color: var(--button-secondary-border, var(--line)); --button-padding: var(--button-secondary-padding, var(--sp-6)); --button-active-transform: var( --button-secondary-active-transform, scale(var(--press-scale)) ); color: var(--text); } .a-btn.scene { background: color-mix(in srgb, var(--scene) 16%, transparent); border-color: color-mix(in srgb, var(--scene) 45%, transparent); color: color-mix(in srgb, var(--scene) 70%, var(--hi)); } .a-btn.ghost { background: transparent; color: var(--text-2); } /* 危险两级制:列表行内只用描边红 danger;实心红 danger-solid 只在确认弹层内。 */ .a-btn.danger { background: transparent; border-color: var(--err-line); color: var(--err); } .a-btn.danger-solid { background: var(--err-solid); color: var(--on-media); } @media (hover: hover) and (pointer: fine) { .a-btn.primary:hover:not(:disabled) { background: var(--accent-grad-hover); box-shadow: var(--btn-glow-hover); } .a-btn.secondary:hover:not(:disabled) { border-color: var(--button-secondary-hover-border, var(--line-2)); background: var(--bg-4); } .a-btn.ghost:hover:not(:disabled) { background: var(--bg-4); color: var(--text); } .a-btn.danger:hover:not(:disabled) { background: var(--err-soft); } .a-btn.danger-solid:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--err-line), 0 0 18px var(--err-soft); } } .a-btn:active:not(:disabled) { transform: var(--button-active-transform, scale(var(--press-scale))); } /* 禁用必须在旁边给出中文原因(§1.2),由调用方渲染。 */ .a-btn:disabled, .a-btn[aria-disabled="true"] { opacity: 0.45; box-shadow: none; cursor: not-allowed; } /* Primary disabled state is configurable only where a page supplies the tokens. */ .a-btn.primary:disabled, .a-btn.primary[aria-disabled="true"] { opacity: var(--button-primary-disabled-opacity, 0.45); filter: var(--button-primary-disabled-filter, none); background: var(--button-primary-disabled-bg, var(--accent-grad)); color: var(--button-primary-disabled-color, var(--accent-ink)); } /* Top-bar status capsule (queue / connection / save state) — §二 顶栏胶囊. */ .status-chip { display: inline-flex; align-items: center; gap: var(--sp-2); height: 30px; padding: 0 var(--sp-5); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); font-size: var(--fs-aux); white-space: nowrap; box-sizing: border-box; } .status-chip.accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); } a.status-chip, button.status-chip { font-family: inherit; text-decoration: none; cursor: pointer; transition: border-color var(--d-state) ease, color var(--d-state) ease, transform var(--d-press) var(--ease-out); } a.status-chip:active, button.status-chip:active { transform: scale(var(--press-scale)); } @media (hover: hover) and (pointer: fine) { a.status-chip:hover, button.status-chip:hover { border-color: var(--text-3); color: var(--text); } } /* Keyboard shortcut hint, e.g. the Ctrl K badge on the search capsule. */ .a-kbd { font: var(--fs-mini) var(--mono); color: var(--text-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: var(--r-sm); padding: 0 var(--sp-2); line-height: 16px; white-space: nowrap; } .status-chip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: currentColor; } .status-chip-dot.ok { background: var(--ok); } .status-chip-dot.run { background: var(--run); } .status-chip-dot.fail { background: var(--err); } .status-chip-dot.idle { background: var(--text-3); } /* Status label (§四.2):语义色文字 + 13% 软底;默认为中性(排队 / 未开始)。 */ .a-tag { display: inline-flex; align-items: center; gap: var(--sp-1); height: var(--tag-height, 20px); padding: 0 var(--tag-padding, var(--sp-2)); border: var(--tag-border-width, 0px) solid var(--tag-border, transparent); border-radius: var(--tag-radius, var(--r-sm)); background: var(--tag-background, var(--bg-4)); color: var(--tag-color, var(--text-2)); font-size: var(--tag-font-size, var(--fs-aux)); white-space: nowrap; box-sizing: border-box; transition: color var(--d-state) ease, background-color var(--d-state) ease; } .a-tag.accent { color: var(--accent); background: var(--accent-soft); } .a-tag.ok { color: var(--ok); background: var(--ok-soft); } .a-tag.run { color: var(--run); background: var(--run-soft); } .a-tag.err { color: var(--err); background: var(--err-soft); } .a-tag.warn { color: var(--tag-warn-color, var(--warn)); background: var(--tag-warn-background, var(--warn-soft)); border-color: var(--tag-warn-border, transparent); } /* Real-progress bar (§1.3):
. Only for true progress values — never fake progress. */ .a-progress { position: relative; height: 4px; border-radius: var(--r-pill); background: var(--bg-4); overflow: hidden; } .a-progress > i { position: absolute; inset: 0; background: var(--run-grad); box-shadow: 0 0 8px var(--run-soft); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform var(--d-progress) linear; } /* Film sprocket divider — only between the take feed and the composer (§1.7). */ .a-sprocket { height: 6px; background-image: var(--sprocket); background-size: 18px 6px; background-repeat: repeat-x; background-position: center; opacity: 0.55; } :root[data-reduce="1"] .a-sprocket { opacity: 0.3; } /* Segmented control (§四 分段): the pressed option is lifted, never gold. */ .a-seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); } .a-seg > button { height: 26px; padding: 0 var(--sp-4); border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-family: inherit; font-size: var(--fs-body-sm); white-space: nowrap; cursor: pointer; transition: color var(--d-state) ease, background-color var(--d-state) ease; } .a-seg > button[aria-pressed="true"] { background: var(--bg-4); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); } @media (hover: hover) and (pointer: fine) { .a-seg > button:hover { color: var(--text); } } /* Composer chips (§3.3 输入台底行): workflow / connection / parameter chips. Gold (`changed`) only marks a parameter that differs from the workflow value. */ .a-chip { display: inline-flex; align-items: center; gap: var(--sp-2); height: 28px; max-width: 280px; padding: 0 var(--sp-4); border: 0; border-radius: var(--r-pill); background: var(--bg-3); color: var(--text-2); font-family: inherit; font-size: var(--fs-aux); white-space: nowrap; text-decoration: none; cursor: pointer; box-sizing: border-box; transition: background-color var(--d-state) ease, color var(--d-state) ease, transform var(--d-press) var(--ease-out); } .a-chip:active { transform: scale(var(--press-scale)); } .a-chip > .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; } .a-chip.wf { background: var(--bg-4); color: var(--text); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-2); } .a-chip.changed { color: var(--accent); } /* Selected filter chip (§3.5 筛选芯片组): 当前选中 = 取景框角线缩影 + 相纸白文字 + accent-soft 底 (HEL-680) */ .a-chip.sel { position: relative; background: var(--accent-soft); color: var(--accent); } .a-chip.sel::after { content: ""; position: absolute; inset: 2px; pointer-events: none; background-image: linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0); background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: 6px 1.5px, 1.5px 6px, 6px 1.5px, 1.5px 6px, 6px 1.5px, 1.5px 6px, 6px 1.5px, 1.5px 6px; background-repeat: no-repeat; } .a-chip.warn { color: var(--warn); } .a-chip.err { color: var(--err); } @media (hover: hover) and (pointer: fine) { .a-chip:hover { background: var(--bg-4); color: var(--text); } .a-chip.changed:hover { color: var(--accent); } } /* Composer input slots (§3.3 输入槽): 58px tiles — empty dashed / drag gold / uploading ring / filled with hover ✕. MediaSlot and RefImageGrid render these. */ .a-slot { display: flex; flex-direction: column; gap: var(--input-slot-gap, var(--sp-2)); min-width: 0; } .a-slot-label { display: flex; align-items: center; gap: var(--sp-2); min-height: 20px; font-size: var(--input-slot-font, var(--fs-mini)); color: var(--text-3); white-space: nowrap; } .a-slot-label .req { color: var(--warn); } .a-slot-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); } .a-slot-hint { font-size: var(--fs-mini); color: var(--text-3); } .a-slot-hint.err { color: var(--err); } .a-tile { position: relative; flex: none; display: grid; place-items: center; width: var(--input-tile-size, 58px); height: var(--input-tile-size, 58px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--input-tile-radius, var(--r-md)); background: var(--bg-3); color: var(--text-3); font-family: inherit; box-sizing: border-box; transition: border-color var(--d-state) ease, background-color var(--d-state) ease, color var(--d-state) ease, transform var(--d-press) var(--ease-out); } button.a-tile { cursor: pointer; } button.a-tile:disabled { cursor: default; } .a-tile.add { border-style: dashed; } .a-tile.add:active:not(:disabled) { transform: scale(var(--press-scale)); } .a-tile.drag { border-color: var(--accent); background-color: var(--accent-soft); color: var(--accent); } .a-tile.need { border-color: var(--warn); } .a-tile.bad { border-color: var(--err); color: var(--err); } .a-slot-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; font-size: 10px; text-align: center; color: var(--on-media); background: var(--desk-slot-caption-bg); padding: 6px 0 1px; pointer-events: none; } .a-tile-hit { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: transparent; color: inherit; cursor: pointer; } .a-tile-hit img, .a-tile-hit video { display: block; width: 100%; height: 100%; object-fit: cover; } /* Uploads have no byte progress (fetch), so the ring spins instead of filling. */ .a-tile-ring { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: var(--media-scrim); pointer-events: none; } .a-tile-ring > i { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(var(--accent) 0.3turn, var(--line-2) 0); -webkit-mask: radial-gradient(circle, transparent 9.5px, #000 10.5px); mask: radial-gradient(circle, transparent 9.5px, #000 10.5px); animation: var(--tile-loop, a-tile-spin) 900ms linear infinite; } @keyframes a-tile-spin { to { transform: rotate(1turn); } } :root[data-reduce="1"] .a-tile-ring > i { animation: none; } .a-tile-x { position: absolute; top: -6px; right: -6px; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg-4); color: var(--text-2); cursor: pointer; opacity: 0; transition: opacity var(--d-state) ease, color var(--d-state) ease; } .a-tile:focus-within .a-tile-x { opacity: 1; } .a-tile-idx { position: absolute; left: 3px; top: 2px; font: 10px var(--mono); color: var(--on-media); text-shadow: 0 1px 2px var(--bg); pointer-events: none; } @media (hover: hover) and (pointer: fine) { .a-tile:hover .a-tile-x { opacity: 1; } .a-tile-x:hover { color: var(--err); } button.a-tile.add:hover:not(:disabled) { border-color: var(--text-3); color: var(--text); } } @media (hover: none) { .a-tile-x { opacity: 1; } } /* Projection stage — only behind media in the inspector (§1.7). */ .a-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--stage-bg); box-shadow: 0 0 0 1px var(--line); } /* ------------------------------------------------------------------ * 取景框角线选中 (HEL-680):内容级选中态的唯一语言——四角短线取景, * 不整框描边。挂在需要角线的元素上(元素自身可 overflow 可见;被 * overflow:hidden 裁切的容器改用 --frame-inset 正值画在内侧)。 * ------------------------------------------------------------------ */ .a-frame { position: relative; } .a-frame::after { content: ""; position: absolute; inset: var(--frame-inset, -4px); z-index: 3; pointer-events: none; background-image: linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0), linear-gradient(var(--accent) 0 0); background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom; background-size: var(--frame-arm, 12px) var(--frame-w, 2px), var(--frame-w, 2px) var(--frame-arm, 12px), var(--frame-arm, 12px) var(--frame-w, 2px), var(--frame-w, 2px) var(--frame-arm, 12px), var(--frame-arm, 12px) var(--frame-w, 2px), var(--frame-w, 2px) var(--frame-arm, 12px), var(--frame-arm, 12px) var(--frame-w, 2px), var(--frame-w, 2px) var(--frame-arm, 12px); background-repeat: no-repeat; } /* 相纸白边 (HEL-680):结果媒体外的相纸白框,底边略厚如手工相纸。 挂在承载 img/video 的媒体容器上;容器尺寸由调用方决定。 */ .a-photo { background: var(--accent); border: var(--paper-w, 4px) solid var(--accent); border-bottom-width: calc(var(--paper-w, 4px) + 2px); border-radius: 2px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); box-sizing: border-box; } /* 「定影」完成章 (HEL-680):已定影结果右上角的完成印记,随 jobst.done 文案走(中文=定影)。absolute 定位,挂在有媒体的结果容器内。 */ .a-fix { position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; background: var(--media-scrim); color: var(--ok); font-size: var(--fs-mini); font-weight: 700; letter-spacing: 0.1em; text-indent: 0.1em; transform: rotate(-4deg); pointer-events: none; } /* Floating surface for pop / drawer / confirm / toast / lightbox (§四.3). */ .a-float { background: var(--float-bg); border-radius: var(--r-lg); box-shadow: var(--shadow-float); } /* Rows inside pops, sheets and the Ctrl+K palette (§四.3 pop). Gold marks only the current page / project; keyboard and hover highlight is neutral. */ .a-menu-group { padding: var(--sp-4) var(--sp-4) var(--sp-1); font-size: var(--fs-mini); color: var(--text-3); } .a-menu-item { display: flex; align-items: center; gap: var(--sp-3); width: 100%; min-height: 40px; padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-md); background: transparent; color: var(--text-2); font-family: inherit; font-size: var(--fs-body); text-align: left; text-decoration: none; cursor: pointer; box-sizing: border-box; transition: background-color var(--d-state) ease, color var(--d-state) ease; } .a-menu-item.active, .a-menu-item:focus-visible { background: var(--bg-4); color: var(--text); } @media (hover: hover) and (pointer: fine) { .a-menu-item:hover { background: var(--bg-4); color: var(--text); } } .a-menu-item[aria-current="page"], .a-menu-item[aria-current="true"] { color: var(--accent); } .a-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-menu-meta { flex-shrink: 0; font-size: var(--input-slot-font, var(--fs-mini)); color: var(--text-3); white-space: nowrap; } /* Card / panel surface (§1.5:卡片不投影,用底色差分层). */ .a-panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-7); box-sizing: border-box; } .a-panel-title { margin: 0; font-size: var(--fs-section); font-weight: 600; color: var(--text); } .a-panel-lead { margin: var(--sp-1) 0 0; font-size: var(--fs-aux); line-height: var(--lh-body); color: var(--text-3); } .a-select, .a-input, .a-textarea, .field-input, .field-textarea, .field-select { box-sizing: border-box; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); font-family: inherit; font-size: var(--fs-body-sm); transition: border-color var(--d-state) ease; } .a-select { padding: var(--sp-2) var(--sp-4); cursor: pointer; } .a-input, .field-input, .field-select { width: 100%; padding: var(--sp-3) var(--sp-5); } .a-textarea, .field-textarea { width: 100%; padding: var(--sp-4) var(--sp-5); resize: vertical; min-height: 96px; line-height: var(--lh-body); } .a-input::placeholder, .a-textarea::placeholder, .field-input::placeholder, .field-textarea::placeholder { color: var(--text-3); } @media (hover: hover) and (pointer: fine) { .a-select:hover, .a-input:hover, .a-textarea:hover, .field-input:hover, .field-textarea:hover, .field-select:hover { border-color: var(--line-2); } } .a-select:focus, .a-input:focus, .a-textarea:focus, .field-input:focus, .field-textarea:focus, .field-select:focus { outline: none; border-color: var(--accent-line); } .a-input.invalid, .a-textarea.invalid, .field-input.invalid { border-color: var(--err); } .a-select option.unavailable { color: var(--text-3); } .field { display: block; margin-bottom: var(--sp-5); } .field-label { display: block; font-size: var(--fs-aux); font-weight: 500; color: var(--text-2); margin-bottom: var(--sp-2); } .field-hint { margin: var(--sp-2) 0 0; font-size: var(--fs-aux); color: var(--text-3); } .field-error { margin: var(--sp-2) 0 0; font-size: var(--fs-aux); color: var(--err); } /* Dark theme scrollbars (Firefox + Chromium) */ * { scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent; } *::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-track { background: transparent; } *::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: var(--r-pill); border: 2px solid transparent; background-clip: padding-box; } *::-webkit-scrollbar-thumb:hover { background: var(--text-3); border: 2px solid transparent; background-clip: padding-box; } *::-webkit-scrollbar-corner { background: transparent; } /* Global keyboard focus (§四.8): every natively focusable element gets the gold ring. Component-scoped :focus-visible rules override this via higher specificity. */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); } /* Refract shared behavior: desktop composition, paper surfaces, direct feedback. */ [hidden] { display: none !important; } button, input, textarea, select { font-family: inherit; } button { transition: transform var(--d-press) var(--ease-out), background-color var(--d-state) ease, color var(--d-state) ease; } button:active:not(:disabled) { transform: scale(var(--press-scale)); } button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; } .a-stage { background: var(--stage-bg); border-radius: 14px; } .a-sprocket { display: none; } .a-photo { box-shadow: none; background: var(--surface); } .a-fix { background: var(--surface); color: var(--ok); } .a-input, .a-select, .field-input, .field-textarea { background: var(--surface); color: var(--text); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } :root[data-reduce="1"] *, :root[data-reduce="1"] *::before, :root[data-reduce="1"] *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } /* Shared reference interface: explicit hover states and press feedback. */ .reference-option { position: relative; isolation: isolate; overflow: hidden; } .reference-option::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: -1; background-image: radial-gradient( var(--lattice-light-radius) circle at var(--lattice-x, var(--pointer-x, 50%)) var(--lattice-y, var(--pointer-y, 50%)), color-mix(in srgb, var(--scene) var(--lattice-scene), transparent), transparent 70% ), var(--lattice); mask-image: radial-gradient( var(--lattice-mask-radius) circle at var(--lattice-x, var(--pointer-x, 50%)) var(--lattice-y, var(--pointer-y, 50%)), #000 0, transparent var(--lattice-mask-end) ); transition: opacity var(--lattice-duration) var(--ease-out); } @media (hover: hover) and (pointer: fine) { .reference-option:hover::after { opacity: 1; } } :root[data-reduce="1"] .reference-option::after { display: none; } @media (prefers-reduced-motion: reduce) { .reference-option::after { display: none; } } .a-btn.gold { background: var(--grad-gold); color: var(--tx-inv); border-color: var(--gold); border-radius: var(--r-pill); box-shadow: var(--sh-gold); } .a-btn.gold:hover { box-shadow: var(--sh-gold-hover); } .a-btn.purple { background: color-mix(in srgb, var(--sc-agent) 16%, var(--bg-3)); color: color-mix(in srgb, var(--sc-agent) 70%, var(--hi)); border-color: color-mix(in srgb, var(--sc-agent) 35%, transparent); } /* HEL-716 / HEL-726 effects: one shared source, theme values in themes.css. */ @keyframes a-page-enter { from { opacity: 0; transform: translateY(var(--page-enter-y)); } to { opacity: 1; transform: none; } } .a-btn.primary::after { display: var(--effect-display); content: ""; position: absolute; top: 0; bottom: 0; width: var(--primary-sweep-width); left: var(--primary-sweep-from); background: var(--primary-sweep); transform: skewX(var(--primary-sweep-skew)); transition: left 0s; pointer-events: none; } .a-btn.primary:hover:not(:disabled):not([aria-disabled="true"])::after { left: var(--primary-sweep-to); transition: left var(--t-reveal) var(--ease-out); } .a-result-develop > img, .a-result-develop > video { animation: var(--result-develop) var(--t-reveal) var(--ease-out); } @keyframes a-develop-calm { from { filter: var(--result-calm-filter); opacity: var(--result-calm-opacity); } to { filter: none; opacity: 1; } } /* Finishing a one-shot or changing mode must not restart a mounted loop. */ [data-motion-held] { animation: none !important; } @keyframes a-develop { 0% { filter: blur(18px) brightness(1.8) saturate(0); opacity: 0.2; transform: scale(1.015); } 60% { filter: blur(2px) brightness(1.1) saturate(0.8); opacity: 1; } 100% { filter: none; transform: none; } } @keyframes a-develop-day { 0% { filter: blur(16px) brightness(1.35) sepia(0.6) saturate(0.2); opacity: 0.15; transform: scale(1.015); } 60% { filter: blur(2px) sepia(0.12); opacity: 1; } 100% { filter: none; transform: none; } } @keyframes a-develop-grade { 0% { filter: blur(10px) saturate(0); opacity: 0.25; } 100% { filter: none; opacity: 1; } } .a-scan-beam { display: var(--effect-display); position: absolute; top: 0; bottom: 0; width: var(--scan-width); left: calc(0% - var(--scan-width)); background: var(--beam); animation: a-scan var(--scan-duration) var(--ease-io) infinite; pointer-events: none; } @keyframes a-scan { to { left: 100%; } } :root[data-reduce="1"] .a-scan-beam, :root[data-reduce="1"] .a-btn.primary::after { display: none; } @media (prefers-reduced-motion: reduce) { .a-scan-beam, .a-btn.primary::after { display: none; } } .a-viewfinder::after { content: ""; position: absolute; inset: var(--viewfinder-inset); border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--t-base), inset var(--viewfinder-position-duration, var(--t-slow)) var(--ease-out); background: linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) top left/var(--viewfinder-length) var(--viewfinder-stroke) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) top left/var(--viewfinder-stroke) var(--viewfinder-length) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) top right/var(--viewfinder-length) var(--viewfinder-stroke) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) top right/var(--viewfinder-stroke) var(--viewfinder-length) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) bottom left/var(--viewfinder-length) var(--viewfinder-stroke) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) bottom left/var(--viewfinder-stroke) var(--viewfinder-length) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) bottom right/var(--viewfinder-length) var(--viewfinder-stroke) no-repeat, linear-gradient(var(--viewfinder-color), var(--viewfinder-color)) bottom right/var(--viewfinder-stroke) var(--viewfinder-length) no-repeat; } .a-viewfinder.a-in-frame::after { opacity: 1; inset: var(--viewfinder-selected-inset); } /* HEL-837 v2 approved geometry; theme colours remain the established tokens. */ :root { --studio-side: 320px; --lib-filter: 220px; --lib-detail: 360px; --lib-tile-min: 176px; --lib-tile-ratio: 4/3; --selbar-h: 52px; --mdl-detail: 400px; --mdl-list-row: 60px; --ptband-max-h: min(26vh, 210px); } @media (max-width: 1366px) { :root { --studio-side: 296px; --lib-filter: 200px; --lib-detail: 300px; --lib-tile-min: 160px; --mdl-detail: 360px; } } @media (max-width: 1280px) { :root { --studio-side: 280px; --lib-filter: 184px; --lib-detail: 288px; --lib-tile-min: 140px; } } @media (max-height: 780px) { :root { --ptband-max-h: min(24vh, 172px); } }