/* the same typefaces as the app and the front page */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* GhostReel – video studio page. Desktop and iPad landscape; phones are not a target. */
:root {
  --gr-bg: #0b0d12;
  --gr-panel: #111319;
  --gr-raised: #171a21;
  --gr-line: rgba(255, 255, 255, 0.08);
  --gr-text: #e8eaf0;
  --gr-muted: #9aa1ae;
  --gr-accent: #c8ff54;
  --gr-danger: #ff6b81;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  background: var(--gr-bg);
  color: var(--gr-text);
  font: 14px/1.4 Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[hidden] {
  display: none !important;
}
.gr-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.gr-top {
  flex: 1 1 0;
}
.gr-bottom {
  flex: none;
}
.gr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--gr-line);
  background: var(--gr-panel);
  flex-wrap: wrap;
}
.gr-back {
  color: var(--gr-muted);
  text-decoration: none;
}
.gr-logo {
  font-size: 17px;
  letter-spacing: 0.02em;
}
.gr-logo span {
  color: var(--gr-accent);
}
.gr-name {
  flex: 0 1 280px;
  min-width: 120px;
  background: var(--gr-raised);
  color: inherit;
  border: 1px solid var(--gr-line);
  border-radius: 6px;
  padding: 6px 8px;
  font-weight: 600;
}
.gr-status {
  margin-left: auto;
  color: var(--gr-muted);
  font-size: 12px;
}
.gr-save-state {
  color: var(--gr-muted);
  font-size: 11px;
  opacity: 0.8;
}
.gr-btn {
  background: var(--gr-raised);
  color: var(--gr-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 6px 11px;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.gr-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.35);
}
.gr-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.gr-primary {
  background: #2a3612;
  border-color: #9fcc43;
}
.gr-danger {
  border-color: rgba(255, 107, 129, 0.5);
  color: #ffc2cc;
}
.gr-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #1a2a26;
  border-bottom: 1px solid #9fcc43;
}
.gr-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 40%);
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--gr-line);
}
.gr-panels {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--gr-line);
}
.gr-tabs {
  display: flex;
  gap: 2px;
  padding: 6px 8px 0;
  background: var(--gr-panel);
}
.gr-tabs button {
  background: none;
  border: 0;
  color: var(--gr-muted);
  padding: 7px 12px;
  border-radius: 6px 6px 0 0;
  font: inherit;
  cursor: pointer;
}
.gr-tabs button[aria-selected='true'] {
  background: var(--gr-raised);
  color: var(--gr-text);
  font-weight: 600;
}
.gr-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 12px;
  background: var(--gr-raised);
}
.gr-scene-tools,
.gr-toolbar,
.gr-actions,
.gr-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
select,
input[type='search'],
input[type='number'],
.gr-field input:not([type='checkbox']):not([type='range']):not([type='color']),
textarea {
  background: var(--gr-panel);
  color: inherit;
  border: 1px solid var(--gr-line);
  border-radius: 6px;
  padding: 5px 7px;
  font: inherit;
}
.gr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}
.gr-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--gr-muted);
  border-radius: 999px;
  padding: 3px 10px;
  font: 600 11px system-ui, sans-serif;
  cursor: pointer;
}
.gr-chip[aria-pressed='true'] {
  background: var(--gr-accent);
  color: #08110e;
  border-color: var(--gr-accent);
}
.gr-scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--gr-tile-w, 132px), 1fr));
  gap: 8px;
}
.gr-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 6px;
  border: 1px solid var(--gr-line);
  border-radius: 8px;
  background: var(--gr-panel);
  color: inherit;
  text-align: left;
  cursor: grab;
  overflow: hidden;
  font: inherit;
}
.gr-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.gr-tile-name {
  padding: 0 7px;
  font-weight: 600;
  font-size: 12px;
}
.gr-tile-meta {
  padding: 0 7px;
  color: var(--gr-muted);
  font-size: 11px;
}
.gr-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
}
.gr-field {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.gr-field > span {
  color: var(--gr-muted);
}
.gr-form h3 {
  margin: 10px 0 0;
  font-size: 13px;
}
.gr-inspector-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.gr-hint,
.gr-muted {
  color: var(--gr-muted);
  font-size: 12px;
}
.gr-warn {
  color: #ffd27a;
  font-size: 12px;
}
.gr-preview-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  min-height: 0;
  overflow: auto;
  background: var(--gr-panel);
}
.gr-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 470px);
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.gr-stage iframe,
#gr-video-layer,
#gr-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.gr-transport {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gr-play {
  width: 44px;
  font-size: 16px;
}
.gr-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
#gr-progress {
  width: 100%;
}
.gr-bottom {
  background: var(--gr-panel);
}
.gr-toolbar {
  padding: 6px 12px;
}
.gr-keys {
  margin-left: auto;
}
.gr-timeline {
  display: block;
  width: 100%;
  touch-action: none;
  user-select: none;
}
.gr-dialog {
  width: min(720px, 94vw);
  max-height: 80vh;
  background: var(--gr-panel);
  color: var(--gr-text);
  border: 1px solid var(--gr-line);
  border-radius: 10px;
  padding: 0;
}
.gr-dialog::backdrop {
  background: rgba(0, 0, 0, 0.6);
}
.gr-dialog-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--gr-line);
}
.gr-dialog-head h2 {
  margin: 0 auto 0 0;
  font-size: 16px;
}
.gr-project-list {
  padding: 8px 14px 14px;
  overflow: auto;
  max-height: 64vh;
}
.gr-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gr-line);
}
.gr-project .gr-actions {
  grid-row: 1 / 3;
  grid-column: 2;
}
.gr-gate {
  max-width: 560px;
  margin: 12vh auto;
  padding: 24px;
  text-align: center;
}
@media (max-width: 1100px) {
  .gr-top {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .gr-keys {
    display: none;
  }
}
.gr-tile {
  touch-action: pan-y; /* vertical swipe scrolls the library, any other drag picks up the scene */
  user-select: none;
  -webkit-user-select: none;
}
.gr-tile img {
  pointer-events: none;
  -webkit-user-drag: none;
}
.gr-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 6px;
  background: rgba(23, 26, 33, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.gr-drag-ghost img {
  width: 64px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
}
.gr-drag-ghost.gr-over {
  border-color: var(--gr-accent);
  opacity: 1;
}
.gr-export-body {
  padding: 12px 14px 16px;
  max-width: none;
}
.gr-export-body progress {
  width: 100%;
}
.gr-loading {
  margin: 30vh auto;
  text-align: center;
  color: var(--gr-muted);
}
.gr-header {
  flex-wrap: nowrap;
  overflow: hidden;
}
.gr-header > .gr-btn:not(.gr-primary) {
  background: transparent;
}
.gr-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gr-save-state {
  white-space: nowrap;
}
.gr-timeline-wrap {
  position: relative;
}
.gr-empty {
  position: absolute;
  inset: 38px 0 0 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(11, 13, 18, 0.82);
  text-align: center;
}
.gr-big {
  font-size: 17px;
  padding: 12px 22px;
}
.gr-steps {
  color: var(--gr-accent);
  font-size: 13px;
}
body.gr-dropping .gr-app {
  outline: 3px dashed var(--gr-accent);
  outline-offset: -6px;
}
.gr-legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gr-muted);
  font: 600 10px system-ui, sans-serif;
}
.gr-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-left: 6px;
}
.lg-intro { background: #5b6170; }
.lg-build { background: #c99a2e; }
.lg-drop { background: #d6455d; }
.lg-break { background: #3b6fd8; }
.lg-phrase { background: #c8ff54; width: 2px !important; }
.gr-checklist p {
  margin: 0 0 4px;
}
.gr-toolbar .gr-btn,
.gr-transport .gr-btn {
  min-height: 36px;
}
@media (pointer: coarse) {
  .gr-keys {
    display: none;
  }
  .gr-btn {
    min-height: 44px;
  }
}
.gr-tile {
  position: relative;
}
.gr-tile:focus-visible {
  outline: 2px solid var(--gr-accent);
}
.gr-star {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 30px;
  cursor: pointer;
}
.gr-marked {
  border-color: #f2c94c;
}
.gr-marked .gr-star {
  color: #f2c94c;
}
.gr-chip-mark[aria-pressed='true'] {
  background: #f2c94c;
  border-color: #f2c94c;
}
.gr-props {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 14px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid var(--gr-line);
  border-radius: 8px;
}
/* compact Auto sliders inside the scene library */
.gr-props {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gr-props .property-control {
  padding: 0;
  gap: 2px;
  font-size: 11px;
}
.gr-props .property-control label {
  font-size: 12px;
}
.gr-props .property-control button {
  padding: 2px 8px;
  min-height: 0;
  font-size: 11px;
}
.gr-props .property-number {
  width: 52px;
  padding: 2px 4px;
}
@media (max-width: 1200px) {
  .gr-props {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* knob (copied from style.css .rotary-*) */
.rotary-control {
  display: inline-grid;
  justify-items: center;
  gap: 3px;
  flex-shrink: 0;
  color: #aab2bd;
  font-size: 10px;
}
.rotary-control output {
  font: 11px monospace;
  color: #e6e9eb;
  width: 44px;
  min-width: 0;
  text-align: center;
}
.rotary-knob {
  --knob-angle: 0deg;
  position: relative;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: ns-resize;
  touch-action: none;
  user-select: none;
}
.rotary-knob:hover {
  background: transparent;
}
.rotary-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  pointer-events: none;
}
.rotary-track {
  stroke: #ffffff25;
}
.rotary-fill {
  stroke: var(--acid);
}
.rotary-range {
  stroke: #c8ff5499;
}
.rotary-all .rotary-range {
  stroke: var(--acid);
}
.rotary-detent-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
  cursor: pointer;
}
.rotary-detent {
  fill: #07080b;
  stroke: #c8ff54;
  stroke-width: 1.5;
  pointer-events: all;
  cursor: pointer;
}
.rotary-all .rotary-detent {
  fill: var(--acid);
}
.rotary-center-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--acid);
  font:
    700 9px Manrope,
    Arial,
    sans-serif;
  pointer-events: none;
}
.gr-props {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 4px 6px;
  margin: 0 0 6px;
}
.gr-props .rotary-control {
  font-size: 10px;
}
.gr-props .rotary-control output {
  width: auto;
  font: 600 10px system-ui, sans-serif;
  color: var(--gr-accent);
}
.gr-back {
  white-space: nowrap;
}
.gr-menu {
  position: relative;
}
.gr-menu-items {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--gr-raised);
  border: 1px solid var(--gr-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.gr-menu-items .gr-btn {
  text-align: left;
}
.gr-header {
  overflow: visible;
}
#gr-export-video {
  background: #9fcc43;
  border-color: #46c9a3;
  color: #05140f;
  font-weight: 700;
}
.gr-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gr-chip {
  flex: none;
}
.gr-star {
  width: 36px;
  height: 36px;
  line-height: 36px;
}
.gr-scene-grid {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
  padding-bottom: 24px;
}
/* timeline takes all remaining height; the top panel is capped and can be collapsed */
.gr-top {
  flex: 0 1 auto;
  height: min(56vh, calc(100vh - 380px));
  min-height: 0;
}
.gr-bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}
.gr-timeline-wrap {
  flex: 1 1 auto;
  min-height: 0;
}
.gr-timeline {
  height: 100%;
}
body.gr-top-collapsed .gr-top {
  height: 0;
  border: 0;
}
.gr-sep {
  width: 1px;
  height: 22px;
  background: var(--gr-line);
}
#gr-export-video.gr-next {
  box-shadow: 0 0 0 3px rgba(200, 255, 84, 0.35);
}
.lg-story { background: #8e5bd0; }
.lg-loop { background: #3a7fa8; }
.lg-flash { background: #a8742a; }
.lg-auto { background: #4b5160; }
.gr-clock {
  white-space: nowrap;
}
.gr-transport {
  flex-wrap: wrap;
}
/* scene property sliders (like Auto): thin, four side by side, always visible */
.gr-props {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px 12px;
  margin: 0 0 6px;
  padding: 2px 4px;
  border: 0;
}
.gr-slider {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.2;
  cursor: pointer;
}
.gr-slider-head {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}
.gr-slider-name {
  color: var(--gr-muted, #9aa3b2);
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-slider-value {
  font-weight: 600;
}
.gr-slider-off .gr-slider-value {
  color: var(--gr-muted, #9aa3b2);
  font-weight: 400;
}
.gr-slider input[type='range'] {
  width: 100%;
  height: 12px;
  margin: 0;
  accent-color: var(--gr-accent);
}
.gr-slider-off input[type='range'] {
  opacity: 0.55;
}
/* shared account dialog (core/account-ui.js): the main app's variables and button primitives (ui-components.css) */
:root {
  --acid: #c8ff54;
  --muted: #919298;
  --line: #ffffff17;
  --btn-m: 40px;
}
dialog.ui-dialog .ui-button {
  min-height: var(--btn-m);
}

/* in-app manual (core/ghostreel-manual.js) */
.gr-manual {
  width: min(1040px, 96vw);
  max-height: 90vh;
}
.gr-manual[open] {
  display: flex;
  flex-direction: column;
}
.gr-manual-main {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 0;
  height: calc(90vh - 60px);
}
.gr-manual-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--gr-line);
  overflow: auto;
}
.gr-manual-nav a {
  color: var(--gr-muted, #9aa);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.gr-manual-nav a:hover {
  color: var(--gr-text);
  background: rgba(255, 255, 255, 0.05);
}
.gr-manual-nav a.on {
  color: var(--gr-text);
  background: rgba(255, 255, 255, 0.09);
}
.gr-manual-body {
  position: relative;
  overflow: auto;
  padding: 4px 22px 40vh;
  font-size: 14px;
  line-height: 1.55;
}
.gr-manual-body section {
  padding-top: 14px;
  border-bottom: 1px solid var(--gr-line);
  padding-bottom: 10px;
}
.gr-manual-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.gr-manual-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--gr-line);
  border-radius: 8px;
  margin: 4px 0 10px;
}
.gr-manual-body p,
.gr-manual-body ul,
.gr-manual-body ol {
  margin: 0 0 10px;
}
.gr-manual-body li {
  margin-bottom: 4px;
}
.gr-manual-body code,
.gr-manual-body kbd {
  font: 12px ui-monospace, Menlo, monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gr-line);
  border-radius: 4px;
  padding: 1px 5px;
}
.gr-manual-body table {
  border-collapse: collapse;
}
.gr-manual-body td {
  padding: 5px 14px 5px 0;
  border-bottom: 1px solid var(--gr-line);
  vertical-align: top;
}
@media (max-width: 700px) {
  .gr-manual-main {
    grid-template-columns: 1fr;
  }
  .gr-manual-nav {
    display: none;
  }
}

/* output formats (core/ghostreel-format.js) */
.gr-format-select {
  background: var(--gr-panel, #161a22);
  color: inherit;
  border: 1px solid var(--gr-line);
  border-radius: 6px;
  padding: 5px 6px;
  font: inherit;
  font-size: 13px;
}
.gr-stage.gr-stage-tall {
  flex: none;
  width: auto;
  height: max(260px, calc(100vh - 500px));
  max-height: none;
  max-width: 100%;
  align-self: center;
}
#gr-stage-wide {
  position: absolute;
  inset: auto;
  border: 0;
  pointer-events: none;
}
#gr-stage-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  filter: blur(14px) brightness(0.55);
  pointer-events: none;
}
.gr-safe.on {
  border-color: #ff5c7a;
  color: #ffb3c0;
}
.gr-format-dialog {
  width: min(760px, 94vw);
}
.gr-format-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 4px;
}
.gr-format-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gr-line);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.gr-format-card:hover,
.gr-format-card:focus-visible {
  border-color: var(--acid, #c8ff54);
  background: rgba(200, 255, 84, 0.08);
  outline: none;
}
.gr-format-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.gr-format-shape {
  display: block;
  border: 2px solid currentColor;
  border-radius: 4px;
  opacity: 0.8;
}
.gr-format-card strong {
  font-size: 13px;
}
.gr-format-card .gr-muted {
  font-size: 11px;
}
.gr-format-dialog .gr-hint {
  padding: 0 16px 14px;
}
@media (max-width: 640px) {
  .gr-format-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* scene thumbnails: size slider (like smaller / larger icons) */
.gr-tile-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--gr-muted);
  font-size: 12px;
}
.gr-tile-zoom input {
  width: 90px;
}
.gr-scene-grid.gr-tiles-small .gr-tile-meta {
  display: none;
}
/* export selection fields and queue */
.gr-range-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.gr-time {
  width: 86px;
  font-variant-numeric: tabular-nums;
}
.gr-nudges .gr-btn {
  padding: 4px 7px;
  font-size: 12px;
}
.gr-queue {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0;
}
.gr-queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid var(--gr-line);
  border-radius: 6px;
  font-size: 13px;
}
.gr-queue-label {
  flex: 1;
  font-variant-numeric: tabular-nums;
}
.gr-queue-state {
  white-space: nowrap;
}

/* files the project needs from the computer (recording, DJ video) */
.gr-missing {
  width: min(560px, 94vw);
}
.gr-missing .gr-form {
  padding: 12px 16px 16px;
}
.gr-missing-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--gr-line);
  border-radius: 8px;
}
.gr-missing-kind {
  color: var(--gr-muted);
  font-size: 12px;
  min-width: 96px;
}
.gr-missing-name {
  flex: 1;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* export selection + loop toggles in the timeline toolbar */
#gr-range.on,
#gr-loop.on {
  border-color: #ffd27a;
  color: #ffd27a;
  background: rgba(255, 210, 122, 0.12);
}

/* detection strip under the preview */
.gr-meter {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
/* section menu (timeline, Sekce row) */
.gr-section-menu {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 170px;
  padding: 8px;
  background: var(--gr-panel, #161a22);
  border: 1px solid var(--gr-line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.gr-section-menu .gr-btn {
  justify-content: flex-start;
  text-align: left;
}

/* ===================== simple mode (default): preview + "Kdo hraje?" + one button ===================== */
body.gr-simple .gr-panels,
body.gr-simple .gr-toolbar,
body.gr-simple .gr-menu,
body.gr-simple #gr-format,
body.gr-simple #gr-safe,
body.gr-simple #gr-meter,
body.gr-simple #gr-where,
body.gr-simple #gr-account,
body.gr-simple #gr-audio-pick,
body.gr-simple .gr-legend {
  display: none !important;
}
body.gr-simple .gr-top {
  grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 420px);
  height: calc(100vh - 56px - clamp(170px, 26vh, 240px));
}
body.gr-simple .gr-bottom {
  min-height: clamp(170px, 26vh, 240px);
}
body.gr-simple .gr-preview-box {
  justify-content: center;
  border-right: 1px solid var(--gr-line);
}
body.gr-simple .gr-stage {
  max-height: none;
  max-width: calc((100vh - 56px - clamp(170px, 26vh, 240px) - 90px) * 16 / 9);
  margin: 0 auto;
}
.gr-mode {
  margin-left: auto;
}
.gr-quick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  overflow: auto;
  background: var(--gr-panel);
}
.gr-quick-title {
  margin: 0 0 6px;
  font-size: 20px;
}
.gr-quick-label {
  margin: 10px 0 0;
  font-weight: 600;
  font-size: 15px;
}
.gr-quick-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--gr-text);
  background: #0b0d12;
  border: 1px solid #ffffff33;
  border-radius: 8px;
}
.gr-quick-input:focus {
  outline: 2px solid var(--gr-accent);
  outline-offset: 1px;
}
textarea.gr-quick-input {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
}
.gr-quick-hint {
  margin: 0;
  color: var(--gr-muted);
  font-size: 13px;
}
.gr-quick-video {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.gr-quick-add {
  align-self: flex-start;
}
.gr-spots .gr-btn.on,
.gr-kind-card[aria-pressed='true'] {
  border-color: var(--gr-accent);
  color: var(--gr-accent);
  background: #c8ff541a;
}
.gr-gaps {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #ffd27a55;
  border-radius: 8px;
  background: #ffd27a12;
}
.gr-gaps .gr-warn {
  margin: 0 0 8px;
  font-size: 14px;
}
.gr-quick-go {
  margin-top: auto;
  width: 100%;
  min-height: 52px;
  font-size: 18px;
  font-weight: 700;
}
.gr-quick .gr-quick-go {
  position: sticky;
  bottom: 0;
}
.gr-big.gr-primary,
.gr-quick-go {
  background: var(--gr-accent);
  color: #0b0c10;
}
.gr-big.gr-primary:hover:not(:disabled) {
  background: #d8ff7f;
}
/* nothing loaded yet: only the big card */
body.gr-noaudio .gr-top,
body.gr-noaudio .gr-toolbar,
body.gr-noaudio #gr-export-video,
body.gr-noaudio #gr-mode,
body.gr-noaudio .gr-timeline {
  display: none !important;
}
body.gr-noaudio .gr-bottom {
  flex: 1 1 auto;
}
body.gr-noaudio .gr-timeline-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.gr-noaudio .gr-empty {
  position: static;
  max-width: 560px;
  padding: 40px 32px;
  gap: 14px;
  background: var(--gr-panel);
  border: 2px dashed #c8ff5466;
  border-radius: 18px;
}
.gr-empty h2 {
  margin: 0;
  font-size: 26px;
}
.gr-empty p {
  margin: 0;
  color: var(--gr-muted);
  font-size: 15px;
}
.gr-empty .gr-big {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 18px;
  font-weight: 700;
}
.gr-empty-ghost {
  width: 64px;
  height: 64px;
  background: url('../assets/brand/ghostjockey-mark.svg') center / contain no-repeat;
  opacity: 0.9;
}
.gr-empty-actions {
  justify-content: center;
}
/* export: kind cards + one button on top, the rest folded */
.gr-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.gr-dialog[open] > .gr-export-body,
.gr-dialog[open] > .gr-project-list {
  overflow: auto;
  min-height: 0;
}
.gr-export-simple h3 {
  margin: 4px 0 10px;
  font-size: 17px;
}
.gr-kind-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.gr-kind-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  font: inherit;
  color: var(--gr-text);
  background: var(--gr-raised);
  border: 2px solid var(--gr-line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
}
.gr-kind-card strong {
  font-size: 15px;
}
.gr-kind-card .gr-muted {
  font-size: 13px;
}
.gr-kind-shape {
  display: block;
  margin-bottom: 4px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.gr-kind-yt {
  width: 56px;
  height: 32px;
}
.gr-kind-short {
  width: 22px;
  height: 38px;
}
.gr-kind-both {
  width: 56px;
  height: 32px;
  box-shadow: 10px 6px 0 -2px var(--gr-raised), 10px 6px 0 0 currentColor;
}
.gr-kind-sel {
  width: 56px;
  height: 32px;
  border-color: #ffd27a;
  background: linear-gradient(90deg, transparent 22%, #ffd27a55 22% 78%, transparent 78%);
}
.gr-export-simple .gr-big {
  min-width: 220px;
  min-height: 50px;
  font-size: 18px;
  font-weight: 700;
}
.gr-export-missing {
  font-size: 13px;
}
.gr-adv {
  margin-top: 14px;
  border-top: 1px solid var(--gr-line);
  padding-top: 10px;
}
.gr-adv > summary {
  cursor: pointer;
  color: var(--gr-muted);
  font-size: 14px;
  padding: 6px 0;
}
/* clip tools only when a clip is selected */
#gr-clip-split:disabled,
#gr-clip-copy:disabled,
#gr-clip-delete:disabled {
  display: none;
}
@media (pointer: coarse) {
  .gr-chip {
    min-height: 32px;
  }
  .gr-form select,
  .gr-form input:not([type='checkbox']):not([type='range']) {
    min-height: 40px;
  }
  .gr-form input[type='checkbox'] {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 900px) {
  body.gr-simple .gr-top {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .gr-kind-cards {
    grid-template-columns: 1fr;
  }
}
body.gr-simple #gr-export-video,
#gr-account {
  display: none !important;
}
/* round 2: the card scrolls as a whole (no sticky button over its content); the preview column doesn't jump */
.gr-quick .gr-quick-go {
  position: static;
  margin-top: 14px;
}
body.gr-simple .gr-preview-box {
  justify-content: flex-start;
}
body.gr-simple #gr-status {
  display: none;
}
/* round 3: chips in the card, the big button stays in view at the bottom of the card */
.gr-chips-row {
  flex-wrap: wrap;
  gap: 6px;
}
.gr-chip-btn {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.gr-chip-btn.on,
.gr-font-chip.on {
  border-color: var(--gr-accent);
  color: var(--gr-accent);
  background: #c8ff541a;
}
.gr-font-chips {
  flex-wrap: wrap;
  gap: 6px;
}
.gr-font-chip {
  min-height: 36px;
  padding: 4px 10px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gr-quick-scenes {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gr-quick-scenes-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gr-quick-scenes-head p {
  margin: 0;
  flex: 1 1 160px;
}
.gr-quick-ok {
  color: var(--gr-accent);
  font-weight: 600;
}
.gr-quick .gr-quick-go {
  position: sticky;
  bottom: -16px;
  margin-top: 16px;
  box-shadow: 0 -14px 18px 6px var(--gr-panel);
}
.gr-kind-card strong {
  min-height: 2.6em;
  display: flex;
  align-items: center;
}
.gr-quick {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.gr-quick-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 12px;
}
.gr-quick .gr-quick-go {
  position: static;
  flex: none;
  margin: 0;
  width: auto;
  margin: 10px 18px 16px;
  box-shadow: none;
}
.gr-quick-body {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 18px), transparent);
  padding-bottom: 22px;
}
/* compact card: everything in view at 800–900 px heights, a visible scrollbar when it doesn't fit */
.gr-quick-title {
  font-size: 18px;
  margin: 0;
}
.gr-quick-label {
  margin: 6px 0 0;
  font-size: 14px;
}
.gr-quick-input {
  padding: 8px 10px;
}
textarea.gr-quick-input {
  min-height: 56px;
}
.gr-font-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gr-font-chip {
  min-height: 30px;
  padding: 2px 8px;
  font-size: 13px !important;
}
.gr-quick-body {
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c8ff5466 transparent;
}
.gr-quick-scenes {
  margin-top: 8px;
}
.gr-quick-video {
  margin-top: 8px;
}
@media (pointer: coarse) {
  .gr-font-chip,
  .gr-chip-btn {
    min-height: 40px;
  }
}
/* round 4: a scene for each drop, scene picker */
.gr-drops {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.gr-drop-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gr-drop-thumb {
  flex: none;
  width: 64px;
  height: 36px;
  border-radius: 6px;
  background: #000 center / cover no-repeat;
  border: 1px solid var(--gr-line);
}
.gr-drop-label {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  font: inherit;
  color: var(--gr-text);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.gr-drop-label span {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.gr-pick-dialog {
  width: min(960px, 96vw);
}
.gr-pick-dialog .gr-export-body {
  padding: 12px 14px 16px;
}
.gr-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.gr-pick-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 0 6px;
  font: inherit;
  font-size: 13px;
  color: var(--gr-text);
  background: var(--gr-raised);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}
.gr-pick-tile:hover,
.gr-pick-tile:focus-visible {
  border-color: var(--gr-accent);
}
.gr-pick-tile img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.gr-pick-tile span {
  padding: 0 8px;
}
.gr-file-pick {
  display: inline-flex;
}
/* low screens: the timeline gives room to the card */
@media (max-height: 820px) {
  body.gr-simple .gr-top {
    height: calc(100vh - 56px - clamp(140px, 20vh, 200px));
  }
  body.gr-simple .gr-bottom {
    min-height: clamp(140px, 20vh, 200px);
  }
  body.gr-simple .gr-stage {
    max-width: calc((100vh - 56px - clamp(140px, 20vh, 200px) - 90px) * 16 / 9);
  }
}
/* ===== one layout + guide (replaces the simple mode) ===== */
.gr-guide {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #c8ff540d;
  border-bottom: 1px solid #c8ff5433;
}
.gr-guide-steps {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gr-guide-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 12px 4px 6px;
  font: inherit;
  font-size: 14px;
  color: var(--gr-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.gr-guide-step:hover {
  color: var(--gr-text);
  border-color: var(--gr-line);
}
.gr-guide-n {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}
.gr-guide-step.done {
  color: var(--gr-accent);
}
.gr-guide-step.done .gr-guide-n {
  background: #c8ff5426;
}
.gr-guide-step.now {
  color: #0b0c10;
  background: var(--gr-accent);
  font-weight: 700;
}
.gr-guide-step.now .gr-guide-n {
  border-color: #0b0c10;
}
.gr-guide-hint {
  margin: 0;
  flex: 1 1 280px;
  font-size: 14px;
  color: var(--gr-text);
}
.gr-who {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.gr-who .gr-quick-body {
  max-width: 620px;
}
.gr-scene-guide {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--gr-line);
}
.gr-scene-guide:empty {
  display: none;
}
.gr-scene-guide .gr-drops {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0;
}
.gr-scene-guide .gr-drops .gr-quick-label {
  margin: 0;
}
.gr-scene-guide .gr-drop-row {
  flex: 0 1 300px;
}
#gr-tab-who {
  font-weight: 700;
}
.gr-flash {
  outline: 2px solid var(--gr-accent);
  outline-offset: 4px;
  border-radius: 8px;
  transition: outline-color 0.6s;
}

.gr-filters {
  flex-wrap: wrap;
}
.gr-drop-row {
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.gr-drop-row.now {
  background: #c8ff541f;
  border-color: #c8ff5466;
}
/* guide: the next step is outlined with an arrow (not filled – it isn't where you are); the open tab's step is
   lit softly */
.gr-guide-step.now {
  color: var(--gr-accent);
  background: none;
  border-color: var(--gr-accent);
  font-weight: 700;
}
.gr-guide-step.now .gr-guide-n {
  border-color: var(--gr-accent);
}
.gr-guide-step.now {
  animation: gr-pulse 1.8s ease-in-out infinite;
}
@keyframes gr-pulse {
  50% {
    box-shadow: 0 0 0 4px #c8ff5426;
  }
}
.gr-guide-step.here {
  background: #ffffff14;
  color: var(--gr-text);
}
.gr-guide-step.here.done {
  color: var(--gr-accent);
}
#gr-export-video.gr-next {
  box-shadow: none;
}
/* all tabs use the panel's full width; "Kdo hraje?" in two columns when there is room */
.gr-form {
  max-width: none !important;
}
.gr-who .gr-quick-body {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-content: start;
  gap: 8px 28px;
}
.gr-who-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gr-who-col > .gr-actions {
  margin-top: 8px;
}
@media (min-width: 1100px) {
  .gr-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    align-content: start;
    gap: 6px 28px;
  }
  .gr-form > h3,
  .gr-form > .gr-hint,
  .gr-form > .gr-muted,
  .gr-form > .gr-adv,
  .gr-form > .gr-checklist {
    grid-column: 1 / -1;
  }
}
/* tabs that look like tabs: a line under the row, the open one lifted with an accent edge and joined to the
   panel, the others clearly buttons on hover */
.gr-tabs {
  gap: 4px;
  padding: 8px 8px 0;
  background: #0b0d12;
  border-bottom: 1px solid #ffffff2a;
}
.gr-tabs button {
  padding: 8px 14px;
  color: #b9bfcb;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-bottom: 0;
  margin-bottom: -1px;
}
.gr-tabs button:hover {
  color: var(--gr-text);
  background: #ffffff17;
}
.gr-tabs button[aria-selected='true'] {
  color: var(--gr-text);
  background: var(--gr-panel);
  border-color: #ffffff2a;
  box-shadow: inset 0 2px 0 var(--gr-accent);
}
.gr-wide-select {
  min-width: min(100%, 420px);
}
.gr-form > .gr-actions {
  grid-column: 1 / -1;
  align-items: center;
}
.gr-clip-hint {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--gr-muted);
  border: 1px dashed #ffffff26;
  border-radius: 8px;
  grid-column: 1 / -1;
}
.gr-field-wide {
  grid-column: 1 / -1;
}
.gr-field-wide select {
  width: auto;
  min-width: min(100%, 460px);
  max-width: 100%;
}

.gr-tour-row {
  margin-top: 10px;
}
.gr-tour-row .gr-tour-link {
  background: none;
  border-color: transparent;
  color: var(--gr-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gr-tour-row .gr-tour-link:hover {
  color: var(--gr-text);
}

/* ===================== Scenes tab: search → moods → (filters) → grid → sticky bar ===================== */
.gr-scenes-panel {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
.gr-scenes-panel > .gr-scene-tools #gr-search {
  flex: 1 1 220px;
  min-width: 160px;
  padding: 7px 10px;
}
.gr-scenes-panel .gr-filters {
  margin: 8px 0 6px;
}
.gr-filter-more {
  padding: 8px 10px;
  margin: 0 0 8px;
  border: 1px solid var(--gr-line);
  border-radius: 10px;
  background: #ffffff06;
}
.gr-filter-more .gr-filters {
  margin: 8px 0 0;
}
.gr-filter-label {
  align-self: center;
  margin-right: 2px;
}
#gr-more-filters[aria-expanded='true'] {
  color: var(--gr-text);
  border-color: #ffffff40;
}
.gr-scenes-panel .gr-scene-grid {
  flex: 1 0 auto;
}
.gr-scene-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 8px -12px 0;
  padding: 10px 12px;
  border-top: 1px solid var(--gr-line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--gr-raised) 92%, #000);
  box-shadow: 0 -10px 24px #0007;
}
.gr-scene-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gr-scene-bar-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  flex: 1 1 260px;
  min-width: 0;
}
.gr-scene-bar-state p {
  margin: 0;
}
.gr-scene-bar-acts {
  margin-left: auto;
}
.gr-scene-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--gr-muted);
}
.gr-tip-x {
  padding: 0 7px;
  min-height: 0;
  line-height: 20px;
  background: none;
  border-color: transparent;
}

/* section click menu */
.gr-section-menu {
  width: 290px;
  overflow-y: auto;
  gap: 6px;
  padding: 10px;
}
.gr-secm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gr-line);
}
.gr-secm-thumb {
  flex: 0 0 64px;
  height: 38px;
  border-radius: 6px;
  background: #000 center / cover;
  border: 1px solid var(--gr-line);
}
.gr-secm-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
}
.gr-secm-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gr-muted);
}
.gr-secm-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}
.gr-secm-pick {
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  border: 2px solid transparent;
  background: #000 center / cover;
  cursor: pointer;
  padding: 0;
}
.gr-secm-pick:hover,
.gr-secm-pick:focus-visible {
  border-color: #ffffff90;
}
.gr-secm-pick.on {
  border-color: var(--gr-accent);
}
.gr-secm-note {
  margin: 0;
  font-size: 12px;
}
.gr-secm-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gr-secm-types .gr-btn {
  justify-content: center;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 11px;
}
.gr-secm-quiet {
  color: var(--gr-muted);
}
.gr-scenes-panel > * {
  flex-shrink: 0;
}
/* the timeline is drawn 1:1 now: keep the room it had (the panel above gives way) */
.gr-bottom {
  min-height: 360px;
}
.gr-scene-bar-state .gr-scene-tip {
  margin: 0 0 0 6px;
  font-size: 12px;
}
.gr-fill-opts {
  padding-left: 10px;
  padding-right: 10px;
}
.gr-scenes-panel .gr-props {
  border: 0;
  padding: 0 2px;
  margin: 0 0 6px;
}
.gr-pick-search {
  width: 100%;
  margin-bottom: 8px;
  padding: 7px 10px;
}
.gr-pick-dialog .gr-chips-row.gr-off {
  opacity: 0.35;
  pointer-events: none;
}

/* ===================== visual tidy-up: one control height, aligned rows, a calmer checklist ===================== */
:root {
  --gr-h: 34px;
}
/* header: name field, format and every button the same height, one baseline */
.gr-header {
  align-items: center;
  gap: 8px;
}
.gr-header .gr-name,
.gr-header #gr-format,
.gr-header .gr-btn,
.gr-header .gr-menu > .gr-btn,
.gr-header .gr-menu > button {
  height: var(--gr-h);
  min-height: var(--gr-h);
  box-sizing: border-box;
}
.gr-header .gr-name {
  padding: 6px 10px;
  font-size: 14px;
}
.gr-header #gr-format {
  padding: 0 8px;
  font-size: 14px;
}
.gr-header .gr-status {
  margin-left: auto;
  text-align: right;
}

/* checklist: one pill size, thin connectors between the steps, the hint quieter and on the same line */
.gr-guide {
  gap: 10px 18px;
  padding: 7px 12px;
}
.gr-guide-steps {
  align-items: center;
  gap: 0;
}
.gr-guide-steps > li {
  display: flex;
  align-items: center;
}
.gr-guide-steps > li + li::before {
  content: '';
  width: 14px;
  height: 1px;
  margin: 0 2px;
  background: #ffffff26;
}
.gr-guide-step {
  height: var(--gr-h);
  min-height: var(--gr-h);
  padding: 0 12px 0 5px;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.gr-guide-n {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 11px;
}
.gr-guide-step.done .gr-guide-n {
  border-color: transparent;
}
.gr-guide-hint {
  font-size: 13px;
  color: #c9ced8;
  line-height: 1.35;
}

/* transport under the preview: play and the buttons beside it share one height */
.gr-transport {
  align-items: center;
  gap: 10px;
}
.gr-transport .gr-btn {
  height: 36px;
  min-height: 36px;
  box-sizing: border-box;
}
.gr-transport .gr-play {
  width: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

/* toolbar above the timeline */
.gr-toolbar {
  align-items: center;
}
.gr-toolbar .gr-btn,
.gr-toolbar select {
  height: var(--gr-h);
  min-height: var(--gr-h);
  box-sizing: border-box;
}

/* panels: buttons one height, labels on one column */
.gr-panel .gr-btn:not(.gr-chip):not(.gr-font-chip):not(.gr-star):not(.gr-tip-x):not(.gr-secm-pick) {
  min-height: var(--gr-h);
}
.gr-panel .gr-font-row > :first-child:not(button) {
  min-width: 78px;
}
.gr-font-chip {
  min-height: 32px;
  min-width: 38px;
  justify-content: center;
}
/* "Kdo hraje?": the DJ buttons stacked to the same width as the name field */
.gr-who-col > .gr-actions {
  flex-direction: column;
  align-items: stretch;
}
.gr-who-col > .gr-actions > .gr-btn {
  justify-content: flex-start;
  text-align: left;
}
/* forms in two columns: the track list, its label and the hints run the full width */
.gr-form > .gr-quick-label,
.gr-form > textarea,
.gr-form > .gr-clip-hint,
.gr-form > details,
.gr-form > p {
  grid-column: 1 / -1;
}
.gr-form > .gr-quick-label {
  margin-top: 4px;
  font-weight: 700;
}
.gr-form > textarea {
  width: 100%;
  box-sizing: border-box;
}
/* hints read as hints, not as content */
.gr-panel .gr-hint,
.gr-panel > .gr-muted {
  font-size: 12.5px;
  line-height: 1.45;
}
/* tabs stay on one line (labels never break in two); a narrow window scrolls them sideways */
.gr-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.gr-tabs::-webkit-scrollbar {
  display: none;
}
.gr-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 1360px) {
  .gr-tabs button {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* guest hint in the project list: sign-in is optional, it only adds saving on the web */
.gr-guest-note {
  margin: 0 0 12px;
}
.gr-account-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gr-accent, #c8f53b);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ===================== layout 2: steps are the tabs, bigger preview, calmer timeline ===================== */
/* one nav: the four steps as tabs, sub-tabs under them, the clip inspector only while a clip is selected */
.gr-tabs {
  align-items: flex-end;
  padding: 8px 10px 0;
}
.gr-tabs-gap {
  flex: 1 1 auto;
}
.gr-tabs .gr-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  font-weight: 600;
}
.gr-step-n {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ffffff3a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #b9bfcb;
}
.gr-step-tab.done .gr-step-n {
  border-color: transparent;
  background: #c8ff5426;
  color: var(--gr-accent);
}
.gr-step-tab.now:not(.done) .gr-step-n {
  border-color: var(--gr-accent);
  color: var(--gr-accent);
}
/* the selected tab is marked by a neutral line; the accent is kept for the one next thing to do */
.gr-tabs button[aria-selected='true'] {
  box-shadow: inset 0 2px 0 #ffffffb0;
}
.gr-tabs .gr-step-export.gr-next {
  background: var(--gr-accent);
  border-color: var(--gr-accent);
  color: #0b0c10;
}
.gr-tabs .gr-step-export.gr-next .gr-step-n {
  border-color: #0b0c1066;
  color: #0b0c10;
}
#gr-tab-clip:not([hidden]) {
  animation: gr-clip-tab 0.5s ease-out;
}
@keyframes gr-clip-tab {
  from {
    background: #ffffff40;
  }
}
#gr-tab-settings {
  padding-left: 12px;
  padding-right: 12px;
}
.gr-subtabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px 0;
}
.gr-subtabs[hidden] {
  display: none;
}
.gr-subtabs button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: none;
  color: var(--gr-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.gr-subtabs button:hover {
  color: var(--gr-text);
}
.gr-subtabs button[aria-selected='true'] {
  color: var(--gr-text);
  background: #ffffff12;
  border-color: #ffffff22;
}
/* the header keeps Export only while the top panel is folded away (the step tab is hidden then) */
.gr-header #gr-export-video {
  display: none;
}
body.gr-top-collapsed .gr-header #gr-export-video {
  display: inline-flex;
}
/* the old checklist strip is one quiet line: what to do next */
.gr-guide {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  min-height: 0;
  background: #0e1014;
  border-bottom: 1px solid var(--gr-line);
}
.gr-guide[hidden] {
  display: none;
}
.gr-guide-arrow {
  color: var(--gr-accent);
  font-weight: 700;
}
.gr-guide .gr-guide-hint {
  margin: 0;
  font-size: 13px;
  color: #c9ced8;
}
/* preview is the star: nearly half of the top, the stage as large as the room allows */
.gr-top {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
  height: calc(100vh - 372px);
  min-height: 300px;
}
.gr-bottom {
  min-height: 286px;
}
.gr-preview-box > .gr-stage {
  max-height: calc(100vh - 372px - 84px);
}
/* what the scenes hear (kick, snare…) belongs to the analysis: shown only on that tab */
.gr-meter {
  display: none;
}
body[data-gr-tab='project'] .gr-meter {
  display: block;
}
/* timeline toolbar: the few everyday buttons; clip tools appear with a selection; the rest lives under ⋯ */
.gr-toolbar .gr-btn:disabled[id^='gr-clip-'] {
  display: none;
}
.gr-tools-menu {
  position: relative;
}
.gr-more-items {
  left: auto;
  right: 0;
  top: auto;
  bottom: calc(100% + 4px);
  min-width: 250px;
  gap: 6px;
  padding: 10px;
}
.gr-more-items[hidden] {
  display: none;
}
.gr-more-items .gr-legend {
  display: block;
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--gr-line);
  line-height: 1.9;
  white-space: normal;
}
.gr-more-items .gr-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gr-status {
  font-size: 12px;
  color: var(--gr-muted);
}
.gr-hover-label {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: #000a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.gr-hover-label[hidden] {
  display: none;
}
.gr-cands {
  margin: 10px 0 4px;
}
.gr-cand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.gr-cand input {
  width: 18px;
  height: 18px;
  flex: none;
}
.gr-cand-thumb {
  flex: 0 0 54px;
  height: 32px;
  border-radius: 5px;
  background: #000 center / cover;
  border: 1px solid var(--gr-line);
}
.gr-templates .gr-actions input {
  flex: 1 1 180px;
  min-width: 0;
}
.gr-cards,
.gr-templates {
  grid-column: 1 / -1;
}

/* phone: the editor needs a wide screen; say so and offer to send the link (tablets in landscape pass) */
.gr-phone {
  display: none;
}
@media (max-width: 700px) {
  .gr-phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 100dvh;
    padding: 24px;
  }
  .gr-phone h1 {
    margin: 0;
    font-size: 34px;
  }
  .gr-phone h1 span {
    color: var(--gr-accent);
  }
  .gr-phone p {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
  }
  .gr-phone-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px !important;
  }
  .gr-phone-actions .gr-btn {
    min-height: 48px;
    font-size: 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
  #gr-app,
  #gr-loading,
  #gr-gate,
  dialog.grt {
    display: none !important;
  }
}

/* headings and the wordmark in the display face; controls inherit the text face */
.gr-logo,
.gr-dialog h2,
.gr-gate h1,
.gr-phone h1 {
  font-family: 'Space Grotesk', Manrope, system-ui, sans-serif;
}
button,
input,
select,
textarea {
  font-family: inherit;
}

/* a disabled big action is a prompt, not a button: no fill, so nobody clicks it in vain */
.gr-big.gr-primary:disabled {
  background: transparent;
  border: 1px dashed var(--gr-line);
  color: var(--gr-muted);
  opacity: 1;
  cursor: default;
}

/* own video: crop rectangle on a frame of the video */
.gr-crop {
  margin: 8px 0 12px;
}
.gr-crop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.gr-crop-head .gr-btn {
  margin-left: auto;
}
.gr-crop-canvas {
  display: block;
  width: min(100%, 448px);
  height: auto;
  margin-left: -14px;
  touch-action: none;
}

/* export: loudness for social networks */
.gr-loudness {
  margin: 14px 0 4px;
}
.gr-loudness .gr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.gr-loudness .gr-check input {
  width: 18px;
  height: 18px;
  accent-color: #c8ff54;
}
.gr-loudness .gr-hint,
.gr-loudness .gr-warn {
  margin: 6px 0 0;
}

/* more display fonts (SIL OFL): Audiowide, Syne, Oswald, Black Ops One, Major Mono Display, Press Start 2P */
@font-face {
  font-family: 'GR Audiowide';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-audiowide-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Audiowide';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-audiowide-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Syne';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-syne-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Syne';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-syne-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Oswald';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Oswald';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-oswald-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Stencil';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-stencil-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Stencil';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-stencil-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Major Mono';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-majormono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Major Mono';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-majormono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Pixel';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-pixel-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Pixel';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-pixel-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Michroma';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-michroma-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Michroma';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-michroma-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Unbounded';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-unbounded-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Unbounded';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-unbounded-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Syncopate';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-syncopate-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Syncopate';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-syncopate-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Tektur';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-tektur-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Tektur';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-tektur-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Oxanium';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-oxanium-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Oxanium';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-oxanium-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Doto';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-doto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Doto';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-doto-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Gotisch';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-gothic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Gotisch';
  font-weight: 800;
  font-display: block;
  src: url('../assets/fonts/gr-gothic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Big Stencil';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-bigstencil-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Big Stencil';
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/gr-bigstencil-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Kode Mono';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-kodemono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Kode Mono';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-kodemono-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Dela';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-dela-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Dela';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-dela-latin.woff2') format('woff2');
}
/* display fonts for texts on screen (SIL OFL, see assets/fonts/GHOSTREEL-FONTS-LICENSES.txt); loaded when first used */
@font-face {
  font-family: 'GR Bebas';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-bebas-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Bebas';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-bebas-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Anton';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-anton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Anton';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-anton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Bungee';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-bungee-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Bungee';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-bungee-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Monoton';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-monoton-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Monoton';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-monoton-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Righteous';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-righteous-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Righteous';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-righteous-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Glitch';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-glitch-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Glitch';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-glitch-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Wide';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-wide-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Wide';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-wide-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Playfair';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Playfair';
  font-weight: 700;
  font-display: block;
  src: url('../assets/fonts/gr-playfair-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Script';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-script-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Script';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-script-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'GR Brush';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-brush-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'GR Brush';
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/gr-brush-latin.woff2') format('woff2');
}
.gr-look-title {
  margin: 18px 0 6px;
  font-size: 14px;
}

/* ready-made text styles: chips drawn in their own style */
.gr-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
  margin: 4px 0 10px;
}
.gr-preset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 4px 4px 5px;
  border-radius: 9px;
  border: 1px solid var(--gr-line);
  background: radial-gradient(120% 120% at 30% 0%, #2a2f3c, #0b0d12);
  color: var(--gr-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.gr-preset canvas {
  width: 100%;
  height: auto;
  display: block;
}
.gr-preset:hover {
  border-color: #ffffff55;
  color: var(--gr-text);
}
.gr-preset.on {
  border-color: var(--gr-accent);
  color: var(--gr-text);
  box-shadow: 0 0 0 1px var(--gr-accent) inset;
}
.gr-style-row .gr-presets {
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  margin: 0;
  flex: 1;
}
.gr-look-group {
  margin: 6px 0 8px;
  border: 1px solid var(--gr-line);
  border-radius: 10px;
  padding: 4px 10px 8px;
  background: #ffffff05;
}
.gr-look-group > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 0;
  color: var(--gr-text);
}
.gr-look-group .gr-field[hidden] {
  display: none;
}
.gr-look-group .gr-field {
  min-height: 32px;
  align-items: center;
}
.gr-font-chips .gr-font-group {
  flex-basis: 100%;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gr-muted, #8a93a3);
  margin: 6px 0 -1px;
}
.gr-font-chips .gr-font-group:first-child {
  margin-top: 0;
}

.gr-font-chips .gr-font-more {
  flex-basis: 100%;
}
.gr-font-chips .gr-font-more > summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gr-muted, #8a93a3);
  padding: 4px 0;
  list-style-position: inside;
}
.gr-font-chips .gr-font-more > summary:hover {
  color: var(--gr-text, #fff);
}
.gr-font-more-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* short clips: countdown checkbox under the hook / call-to-action choice */
.gr-hooks .gr-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

/* tabs (2026-11-20): exactly one tab looks active — the selected one is filled (the tab ear too, also "Vybraný klip");
   the others are flat. Export as the next step is an outlined call to action, never a filled (selected-looking) tab. */
.gr-tabs button {
  background: transparent;
  border-color: transparent;
}
.gr-tabs button:hover {
  background: #ffffff12;
}
.gr-tabs button[aria-selected='true'] {
  background: #ffffff21;
  border-color: #ffffff38;
  color: #fff;
  box-shadow: inset 0 2px 0 #fff;
}
.gr-tabs .gr-step-export.gr-next {
  background: transparent;
  border-color: transparent;
  color: var(--gr-accent);
}
.gr-tabs .gr-step-export.gr-next:hover {
  background: color-mix(in srgb, var(--gr-accent) 14%, transparent);
}
.gr-tabs .gr-step-export.gr-next .gr-step-n {
  border-color: var(--gr-accent);
  color: var(--gr-accent);
}
/* the "current step" ring only on the tab that is open, so an unselected step never looks active */
.gr-step-tab.now:not(.done):not([aria-selected='true']) .gr-step-n {
  border-color: #ffffff3a;
  color: #b9bfcb;
}
.gr-title-look {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #ffffff14;
}

/* Scenes tab: the search, mood chips and sliders stay; only the scene tiles scroll under them (2026-11-22) */
.gr-scenes-panel {
  overflow: hidden;
}
.gr-scenes-panel .gr-scene-grid {
  flex: 1 1 auto;
  min-height: 140px;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-right: -12px;
  padding-right: 12px;
  align-content: start;
  grid-auto-rows: max-content; /* tiles clip their content (overflow hidden): rows must not shrink to fit */
}

/* timeline toolbar: snap, export selection and loop sit right on the bar, not in the ⋯ menu (2026-11-22) */
.gr-toolbar .gr-snap-inline {
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}
.gr-toolbar .gr-snap-inline select {
  padding: 6px 8px;
}
.gr-toolbar #gr-range,
.gr-toolbar #gr-loop {
  white-space: nowrap;
}

/* export: WHAT and WHERE picture cards (2026-11-22) */
.gr-what-sel,
.gr-what-all,
.gr-what-drop {
  width: 60px;
  height: 26px;
  border-radius: 3px;
}
.gr-what-sel {
  border-color: #ffd27a;
  background: linear-gradient(90deg, transparent 25%, #ffd27a66 25% 70%, transparent 70%);
}
.gr-what-all {
  background: linear-gradient(90deg, #ffffff33, #ffffff33);
}
.gr-what-drop {
  background:
    linear-gradient(180deg, transparent 0 15%, #ff5a6e88 15% 100%) 55% 0 / 18% 100% no-repeat,
    linear-gradient(180deg, transparent 0 55%, #ffffff22 55% 100%);
}
.gr-fmt-169 {
  width: 56px;
  height: 32px;
}
.gr-fmt-916 {
  width: 22px;
  height: 38px;
}
.gr-fmt-45 {
  width: 30px;
  height: 38px;
}
.gr-fmt-11 {
  width: 34px;
  height: 34px;
}
.gr-export-simple h3 {
  margin: 10px 0 6px;
}

/* Texty v obraze (2026-11-23) */
.gr-text-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}
.gr-text-presets .gr-quick-hint {
  min-width: 130px;
}
.gr-text-item {
  display: flex;
  flex-wrap: wrap; /* a narrow panel: the controls wrap instead of spilling out (✕ stays reachable) */
  align-items: center;
  gap: 6px;
}
.gr-text-item input {
  flex: 1 1 140px;
  min-width: 90px;
}
.gr-text-item select {
  flex: 0 1 auto;
  min-width: 0;
}

/* sub-tabs (2026-11-23): the main tabs, smaller – flat ears on a hairline, the open one filled with a white top line */
.gr-subtabs {
  gap: 3px;
  padding: 6px 12px 0;
  border-bottom: 1px solid #ffffff1f;
}
.gr-subtabs button {
  padding: 5px 11px;
  border-radius: 5px 5px 0 0;
  border: 1px solid transparent;
  border-bottom: 0;
  margin-bottom: -1px;
  background: transparent;
  color: #b9bfcb;
  font-size: 12.5px;
}
.gr-subtabs button:hover {
  color: var(--gr-text);
  background: #ffffff12;
}
.gr-subtabs button[aria-selected='true'] {
  color: #fff;
  font-weight: 600;
  background: #ffffff1a;
  border-color: #ffffff30;
  box-shadow: inset 0 2px 0 #ffffffd0;
}

/* upright and square preview (2026-11-23): as tall as the room allows, but never wider than its column – the height
   follows the column width through the aspect (container units), so the picture is never stretched */
.gr-preview-box {
  container-type: inline-size;
}
.gr-stage.gr-stage-tall {
  height: min(max(260px, calc(100vh - 500px)), calc(100cqw * var(--gr-ar-inv, 1)));
}

/* export: fade in / out of a part (2026-11-23) */
.gr-fade-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 4px 0 8px;
}
.gr-fade-row[hidden] {
  display: none;
}
.gr-fade-row .gr-quick-label {
  margin: 0 4px 0 0;
}
.gr-fade-row .gr-inline {
  gap: 6px;
}

/* export finished (2026-11-23): stays until clicked away */
.gr-toast {
  position: fixed;
  inset: auto auto 24px 50%;
  margin: 0;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(720px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--gr-accent) 60%, transparent);
  background: #14171ef2;
  box-shadow: 0 12px 40px #000a;
  color: var(--gr-text);
  font-size: 14px;
  animation: gr-toast-in 0.25s ease-out;
}
.gr-toast strong {
  color: var(--gr-accent);
  white-space: nowrap;
}
.gr-toast-bad {
  border-color: #ff5a6e99;
}
.gr-toast-bad strong {
  color: #ff8a98;
}
@keyframes gr-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
}
.gr-fade-menu {
  padding: 4px 0 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--gr-line);
}
.gr-fade-menu .gr-hint {
  margin: 4px 0 0;
  font-size: 12px;
}

/* FX (2026-11-26): pads in the FX tab, effect chips, the scene's flash/black cover in the preview */
.gr-fx-cover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* the FX tab uses the panel's full width (the pads in one row, the list below gets the room) */
#gr-panel-fx.gr-form {
  max-width: none;
}
.gr-fx-pads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  margin: 4px 0 10px;
}
.gr-fx-pad {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--fx) 55%, transparent);
  background: color-mix(in srgb, var(--fx) 16%, #14171e);
  color: #e8eaf0;
  cursor: pointer;
  font: inherit;
}
.gr-fx-pad strong {
  color: var(--fx);
  letter-spacing: 0.06em;
  font-size: 12px;
}
.gr-fx-pad span {
  font-size: 12px;
  color: #b9bfcb;
}
.gr-fx-pad:hover {
  background: color-mix(in srgb, var(--fx) 28%, #14171e);
}
.gr-fx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gr-fx-chip {
  font: 600 11px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  padding: 5px 7px;
  border-radius: 6px;
  border: 1px solid #ffffff22;
  background: #1d212a;
  color: #9aa1ae;
  cursor: pointer;
}
.gr-fx-chip.on {
  background: color-mix(in srgb, var(--fx) 30%, #1d212a);
  border-color: var(--fx);
  color: #fff;
}
.gr-fx-item.on {
  outline: 1px solid #ffffff55;
  border-radius: 8px;
}

.gr-fx-amount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 160px;
  font-size: 12px;
  color: #b9bfcb;
}
.gr-fx-amount input {
  flex: 1;
  min-width: 70px;
}
.gr-fx-pct {
  min-width: 3.2em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* GIF export (2026-11-28): a quiet link under the download button, not a main choice */
.gr-gif-row {
  margin-top: -4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.gr-mute-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #b9bfcb;
  cursor: pointer;
}
.gr-gif-link {
  background: none;
  border: 0;
  padding: 2px 0;
  color: #9aa1ae;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.gr-gif-link:hover:not(:disabled) {
  color: #e8eaf0;
}
.gr-gif-link:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Texty v obraze: "Vlastní…" stands out from the ready-made lines (2026-11-30) */
.gr-chip.gr-chip-own {
  background: #c8ff5426;
  border-color: #c8ff5499;
  color: #e9ffc0;
}
.gr-chip.gr-chip-own:hover {
  background: #c8ff543d;
}
