/* Grade: a colour-grading tool. Neutral surfaces with no hue bias (the footage is the only colour on screen), one strong fill for what is active, native macOS type with tabular figures for every number. Clip bin | viewer | grade panel, each a card floating on the page like the composer's (post.kualta.dev), whose page and card colours these mirror; in the composer's Grade tab the page is the composer's own, showing through. Light or dark as the Mac's appearance is set, or as the composer framing the app is (data-theme). Each colour is light-dark(light, dark), so the color-scheme of where it's used picks it: full screen is always dark, and what sits on the picture (the split line and its tags) is the same in both. */ :root { --page: light-dark(#f8f8f8, #181818); /* The cards: the clip bin, the picture's transport, the grade panel, menus. */ --surface: light-dark(#ffffff, #222222); /* Behind the picture: a neutral grey, so nothing but the footage has colour. */ --well: light-dark(#e6e6e6, #121212); --raised: light-dark(#ffffff, #2a2a2a); --hover: light-dark(#f1f1f1, #303030); --pressed: light-dark(#e8e8e8, #383838); --line: light-dark(rgba(25, 24, 23, 0.09), rgba(231, 228, 227, 0.09)); --line-2: light-dark(#d3d3d3, #333333); --line-3: light-dark(#bfbfbf, #3d3d3d); --ink: light-dark(#161616, #ededed); --ink-2: light-dark(#4d4d4d, #a3a3a3); --ink-3: light-dark(#6b6b6b, #6f6f6f); --ink-4: light-dark(#a8a8a8, #4b4b4b); /* The strong fill (the primary button, slider knobs, what's busy), what's written on it, and its hover. */ --mark: light-dark(#1c1c1c, #f4f4f4); --on-mark: light-dark(#ffffff, #141414); --mark-hover: light-dark(#000000, #ffffff); /* A divider and a badge inside a filled button. */ --mark-edge: light-dark(rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.25)); --mark-tint: light-dark(rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.14)); --ok: light-dark(#2e8547, #7cc28e); --warn: light-dark(#9e6800, #d9a650); --bad: light-dark(#c0392b, #e07a6b); --cool: light-dark(#2f6fd1, #6d9be0); --warm: light-dark(#c8781c, #e2a55a); --green: light-dark(#3a8f4f, #74b580); --magenta: light-dark(#a8459f, #c46fc8); --menu-shadow: 0 10px 30px light-dark(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.5)); --lift: 0 1px 2px light-dark(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.35)); --knob-shadow: light-dark(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)); --frame-shadow: 0 0 0 1px light-dark(rgba(0, 0, 0, 0.18), #000), 0 12px 36px light-dark(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.55)); --card-shadow: 0 1px 2px light-dark(rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3)); --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace; --h: 28px; --r: 6px; /* A card's corners, and the space between cards and around them. */ --card-r: 14px; --gap: 12px; color-scheme: light dark; } :root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"], .stage:fullscreen { color-scheme: dark; } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { height: 100%; margin: 0; } html { background: var(--page); } /* Framed in the composer, the composer's page is the page. */ html.framed { background: transparent; } body { color: var(--ink); font: 13px/1.4 var(--ui); letter-spacing: -0.003em; display: grid; grid-template-rows: auto 1fr; gap: var(--gap); padding: var(--gap); overflow: hidden; -webkit-font-smoothing: antialiased; } /* A card floating on the page. */ .bin, .panel, .frame, .transport { border: 1px solid var(--line); border-radius: var(--card-r); box-shadow: var(--card-shadow); } button, select, input { font: inherit; color: inherit; } svg { width: 16px; height: 16px; fill: currentColor; flex: none; } .cap { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); } .count, .tc, .num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; border: 3px solid var(--surface); } ::-webkit-scrollbar-track { background: transparent; } /* ---- buttons, selects ----------------------------------------------------------------------------------- */ .btn { height: var(--h); padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .12s, border-color .12s; } .btn:hover:not(:disabled) { background: var(--hover); border-color: var(--line-3); } .btn:active:not(:disabled) { background: var(--pressed); } .btn:disabled { color: var(--ink-3); cursor: default; } .btn svg { width: 14px; height: 14px; } .btn.primary { background: var(--mark); color: var(--on-mark); border-color: var(--mark); font-weight: 600; } .btn.primary:hover:not(:disabled) { background: var(--mark-hover); border-color: var(--mark-hover); } .btn.primary:disabled { background: var(--raised); color: var(--ink-3); border-color: var(--line-2); font-weight: 500; } .btn.wide { width: 100%; } .link { background: none; border: 0; padding: 2px 4px; color: var(--ink-3); font-size: 12px; cursor: pointer; border-radius: 4px; } .link:hover { color: var(--ink); } .icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s; } .icon-btn:hover { background: var(--hover); color: var(--ink); } .icon-btn[aria-pressed="false"] { color: var(--ink-4); } .icon-btn[aria-pressed="false"]:hover { color: var(--ink-2); } .icon-btn.play { width: 34px; height: 34px; background: var(--hover); color: var(--ink); border-radius: 50%; } .icon-btn.play:hover { background: var(--pressed); } .select { position: relative; display: inline-flex; align-items: center; } .select select { appearance: none; -webkit-appearance: none; height: var(--h); padding: 0 30px 0 10px; width: 100%; background: var(--raised); border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; font-size: 12.5px; } .select select:hover { background: var(--hover); } .select svg { position: absolute; right: 8px; width: 14px; height: 14px; pointer-events: none; color: var(--ink-2); } .select.wide { display: flex; width: 100%; } .look-pick { display: flex; gap: 6px; } .look-pick .select { flex: 1; min-width: 0; } .btn.look-step { width: var(--h); padding: 0; flex: none; color: var(--ink-2); } .btn.look-step:hover:not(:disabled) { color: var(--ink); } button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; } kbd { font-family: var(--ui); font-size: 11px; min-width: 20px; height: 19px; padding: 0 5px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; color: var(--ink-2); background: var(--raised); } /* ---- top bar --------------------------------------------------------------------------------------------- */ /* No bar of its own: its controls sit on the page above the cards. */ .bar { display: flex; align-items: center; gap: 14px; min-height: 32px; padding: 0 2px; min-width: 0; } .bar-field { display: flex; align-items: center; gap: 8px; } .bar-field .select select { min-width: 170px; } /* Export and its menu, joined as one split button at the right of the bar. */ .split { position: relative; display: flex; flex: none; } .split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; } #export-more { width: 28px; padding: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid var(--mark-edge); } #export:disabled + #export-more { background: var(--raised); color: var(--ink-2); border-color: var(--line-2); } #export:disabled + #export-more:hover { background: var(--hover); } .badge { font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 4px; background: var(--mark-tint); font-variant-numeric: tabular-nums; } .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 264px; padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--menu-shadow); } .menu-item { display: grid; gap: 2px; padding: 7px 10px; border: 0; border-radius: var(--r); background: transparent; text-align: left; font-size: 12.5px; cursor: pointer; } .menu-item:hover:not(:disabled) { background: var(--hover); } .menu-item:disabled { color: var(--ink-3); cursor: default; } .menu-note { margin: 0; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; } .menu-quality { display: grid; gap: 6px; margin-top: 4px; padding: 10px 10px 6px; border-top: 1px solid var(--line); } .menu-foot { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--line); line-height: 1.4; } #export-menu { width: 300px; } .menu-offload { display: grid; gap: 2px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); } .offload-places { display: grid; gap: 6px; padding: 6px 10px 4px; } .menu-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 12.5px; } .menu-row output { color: var(--ink-2); font-variant-numeric: tabular-nums; } .status { margin: 0 0 0 auto; color: var(--ink-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } /* ---- layout ---------------------------------------------------------------------------------------------- */ .work { display: grid; grid-template-columns: 292px minmax(0, 1fr) 320px; gap: var(--gap); min-height: 0; } /* The bin and the panel scroll inside their cards; the page never does. */ .bin, .panel { min-height: 0; overflow: auto; background: var(--surface); } /* ---- clip bin -------------------------------------------------------------------------------------------- */ .bin-head { display: grid; gap: 9px; padding: 12px 12px 8px 14px; position: sticky; top: 0; z-index: 2; background: var(--surface); } .bin-row { display: flex; align-items: center; gap: 8px; min-height: 20px; } .bin-head .count { color: var(--ink-3); font-size: 11.5px; } .bin-head .link { margin-left: auto; } .seg.small { display: grid; grid-template-columns: repeat(3, 1fr); } .seg.small button { height: 22px; padding: 0 6px; font-size: 11.5px; } .clip-list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; } .clip { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 11px; padding: 7px; border-radius: 8px; border: 1px solid transparent; transition: background .1s; } .clip:hover { background: var(--hover); } .clip[aria-pressed="true"] { background: var(--hover); border-color: var(--line-2); } .clip.primary-clip { border-color: var(--ink-3); } .clip:focus-visible { outline: 2px solid var(--mark); outline-offset: 1px; } .thumb { width: 92px; height: 52px; border-radius: 4px; background: var(--well); object-fit: contain; display: block; } .info { display: grid; gap: 3px; align-content: center; min-width: 0; } .title-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; } .title-row b { font-family: var(--mono); font-weight: 600; font-size: 13px; } .title-row span { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sub-row { display: flex; align-items: center; gap: 8px; min-width: 0; } .profile { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; } .size { margin-left: auto; flex: none; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; } /* A clip's state: a dot at the top right of its row (the words are its tooltip), padded so it's easy to hover. */ .state { margin: -4px -4px -4px auto; padding: 4px; flex: none; align-self: center; display: inline-flex; } .state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-4); } .state.ok::before { background: var(--ok); box-shadow: none; } .state.changed::before { background: var(--warn); box-shadow: none; } /* Graded but never exported: the ring of "not graded" in the colour of "changed since export". */ .state.unexported::before { box-shadow: inset 0 0 0 2px var(--warn); } .state.busy::before { background: var(--mark); box-shadow: none; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } .progress { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 2px; border-radius: 1px; background: var(--line-2); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--mark); transition: width .3s; } /* ---- viewer ---------------------------------------------------------------------------------------------- */ /* The picture on a neutral card, its transport a card of its own under it. */ .stage { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--gap); min-height: 0; min-width: 0; } .frame { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 20px; overflow: hidden; background: var(--well); } .frame canvas { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; background: #000; box-shadow: var(--frame-shadow); } .frame.splitting canvas { cursor: ew-resize; } .empty { position: absolute; color: var(--ink-3); margin: 0; font-size: 13px; } .split-line { position: absolute; width: 1px; background: #f4f4f4; pointer-events: none; box-shadow: 0 0 0 .5px rgba(0,0,0,.4); } .tag { position: absolute; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: rgba(10,10,10,.6); color: #f2f2f2; pointer-events: none; backdrop-filter: blur(6px); } .transport { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px; background: var(--surface); } .tc { font-size: 12px; color: var(--ink); letter-spacing: 0.02em; } .tc.dim { color: var(--ink-3); } .scrub-rail { flex: 1; } .seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--raised); border: 1px solid var(--line-2); } .seg button { height: 24px; padding: 0 11px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 500; cursor: pointer; } .seg button:hover { color: var(--ink); } .seg button[aria-pressed="true"] { background: var(--pressed); color: var(--ink); box-shadow: var(--lift); } #video { display: none; } /* Full screen: the picture edge to edge on black, the transport a bar along the bottom. */ .stage:fullscreen { background: #000; grid-template-rows: minmax(0, 1fr) auto; gap: 0; } .stage:fullscreen .frame { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #000; } .stage:fullscreen .frame canvas { box-shadow: none; } .stage:fullscreen .transport { border: 0; border-top: 1px solid #222; border-radius: 0; box-shadow: none; background: rgba(14,14,14,.92); } /* ---- rails: one look for every slider --------------------------------------------------------------------- */ .rail { position: relative; display: block; height: 18px; --a: 0%; --b: 0%; --fill: var(--mark); --track: var(--line-2); } .rail::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: linear-gradient(to right, var(--track) var(--a), var(--fill) var(--a), var(--fill) var(--b), var(--track) var(--b)); } .rail.temp::before { background: linear-gradient(to right, var(--cool), #9a9a9a 50%, var(--warm)); opacity: .9; } .rail.tint::before { background: linear-gradient(to right, var(--green), #9a9a9a 50%, var(--magenta)); opacity: .9; } .rail .tick { position: absolute; top: 50%; width: 1px; height: 9px; margin-top: -4.5px; background: var(--ink-3); pointer-events: none; } .rail input[type="range"] { position: relative; z-index: 1; -webkit-appearance: none; appearance: none; width: 100%; height: 18px; margin: 0; background: transparent; cursor: pointer; } .rail input[type="range"]::-webkit-slider-runnable-track { height: 18px; background: transparent; } .rail input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: 2.5px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px var(--surface), 0 1px 3px var(--knob-shadow); transition: transform .1s; } .rail input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); } .rail input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); } .rail input[type="range"]::-moz-range-track { height: 18px; background: transparent; } .rail input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px var(--surface); } .rail input[type="range"]:focus-visible { outline: none; } .rail input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--mark); } /* ---- grade panel ------------------------------------------------------------------------------------------ */ /* Its sections are set apart by space, not lines. */ .panel-head { display: grid; gap: 5px; padding: 16px 16px 8px; } .panel-head h2 { margin: 0; font-family: var(--mono); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; } .meta { display: flex; flex-wrap: wrap; gap: 4px; } .meta span { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--hover); color: var(--ink-2); font-variant-numeric: tabular-nums; } .meta span:first-child { background: var(--line-2); color: var(--ink); font-weight: 600; } .group { display: grid; gap: 10px; padding: 12px 16px 14px; } .group-head { display: flex; align-items: center; justify-content: space-between; min-height: 18px; } .controls { display: grid; gap: 10px; } .ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; } .ctl-label { font-size: 12.5px; color: var(--ink-2); cursor: ew-resize; user-select: none; -webkit-user-select: none; display: flex; align-items: center; gap: 6px; } .ctl-label:hover { color: var(--ink); } .ctl.changed .ctl-label { color: var(--ink); } .mixed { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--warn); } .value { display: inline-flex; align-items: center; height: 22px; border-radius: 5px; background: var(--hover); border: 1px solid transparent; } .value:hover { border-color: var(--line-2); } .value:focus-within { border-color: var(--ink-3); background: var(--well); } .num { width: 58px; height: 20px; padding: 0 2px 0 7px; border: 0; background: transparent; text-align: right; font-size: 12px; color: var(--ink); outline: none; } .unit { padding-right: 7px; font-size: 11px; color: var(--ink-3); white-space: nowrap; } .ctl .rail { grid-column: 1 / -1; } /* A control with a few choices instead of a value (Deflicker): its name doesn't scrub, and a note sits under it. */ .ctl.choice .ctl-label { cursor: default; } .ctl.choice .seg button { height: 20px; padding: 0 9px; font-size: 11.5px; } .ctl.choice .seg button:disabled { color: var(--ink-3); cursor: default; } .ctl-note { grid-column: 1 / -1; margin: 0; font-size: 11.5px; color: var(--ink-3); } .btn-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .btn-row .btn { padding: 0 8px; } .keys dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; font-size: 11.5px; } .keys dt { color: var(--ink-3); } .keys dd { margin: 0; color: var(--ink-3); display: flex; gap: 3px; align-items: center; justify-content: flex-end; } .kept { margin: 2px 0 0; font-size: 11.5px; color: var(--ink-3); } /* In the composer's Grade tab the composer has its own way to the Footage tab. */ .framed #footage-link { display: none; } a.btn { color: inherit; text-decoration: none; } @media (max-width: 1100px) { body { overflow: auto; } .work { grid-template-columns: 240px minmax(0, 1fr); } .panel { grid-column: 1 / -1; } } @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }