/* KWONMO — genmpg 제작 · 운영 재생 화면 */
.gmp-app { padding: var(--sp-lg); color: var(--text); }
.gmp-app [hidden] { display: none !important; }
.gmp-section { margin-block: var(--sp-lg); padding: var(--sp-md); background: var(--surface); border: var(--hairline) solid var(--line); }
.gmp-section h2 { margin: 0 0 var(--sp-md); font-size: 1.1rem; }
.gmp-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); margin-block: var(--sp-sm); }
.gmp-name { flex: 1 1 16rem; overflow-wrap: anywhere; }
.gmp-app input { width: 7em; }
.gmp-app input, .gmp-app button { padding: var(--sp-xs) var(--sp-sm); color: var(--text); background: var(--surface-2); border: var(--hairline) solid var(--line); font: inherit; }
.gmp-app button { cursor: pointer; }
.gmp-app button:disabled { opacity: .5; cursor: default; }
.gmp-app label { display: inline-flex; align-items: center; gap: var(--sp-xs); }
/* 완전한 검정은 영상 레터박스와 판의 경계를 없애기 위해 쓴다. */
.gmp-preview { position: relative; width: 100%; max-width: 60rem; aspect-ratio: 16 / 9; background: black; }
.gmp-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gmp-app pre { overflow: auto; padding: var(--sp-sm); background: var(--surface-2); }
.gmp-app p { color: var(--text-mid); }
.gmp-app #gmpStatus { color: var(--accent); }
.gmp-title { flex: 1 1 20rem; }
.gmp-app .gmp-title input { flex: 1; width: 100%; min-width: 0; }
.gmp-output { display: block; width: 100%; max-width: 60rem; }
.gmp-editor { margin: 0; padding: 0; border: 0; min-width: 0; }
.gmp-playback { max-width: 60rem; }
.gmp-zoom { margin-left: auto; }
.gmp-timeline { width: 100%; max-width: 60rem; min-width: 0; overflow-x: auto; padding-block: var(--sp-sm); }
.gmp-timeline-content { position: relative; touch-action: none; user-select: none; }
.gmp-track { position: relative; height: 3rem; background: var(--surface-2); }
.gmp-bgm-track { margin-top: var(--sp-xs); }
.gmp-bgm-bar { position: absolute; inset-block: 0; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; border: var(--hairline) solid var(--gain); background: var(--note-blue); cursor: grab; }
.gmp-bgm-track.is-moving, .gmp-bgm-track.is-moving .gmp-bgm-bar { cursor: grabbing; }
.gmp-clip { position: absolute; inset-block: 0; box-sizing: border-box; display: flex; align-items: center; overflow: hidden; border: var(--hairline) solid var(--accent); background: var(--surface); cursor: grab; }
.gmp-clip.is-selected, .gmp-bgm-bar.is-selected { outline: var(--stroke-2) solid var(--accent); outline-offset: calc(-1 * var(--stroke-2)); background: var(--surface-2); box-shadow: inset 0 0 0 calc(2 * var(--stroke-2)) var(--accent); }
.gmp-time-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-sm); }
.gmp-time-grid label, .gmp-length { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-xs); min-width: 0; }
.gmp-app .gmp-time-grid input { box-sizing: border-box; width: 100%; min-width: 0; font-size: 1.35rem; }
.gmp-length output { padding-block: var(--sp-xs); font-size: 1.35rem; }
.gmp-trim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-sm); margin-block: var(--sp-md); }
.gmp-trim-grid button { font-size: .85rem; }
.gmp-clip-name { min-width: 0; padding-inline: var(--sp-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.gmp-clip-handle { position: absolute; inset-block: 0; width: .4rem; background: var(--accent); cursor: ew-resize; }
.gmp-clip-handle[data-edge="start"] { left: 0; }
.gmp-clip-handle[data-edge="end"] { right: 0; }
.gmp-app.is-dragging, .gmp-app.is-dragging * { user-select: none; }
.gmp-track.is-moving, .gmp-track.is-moving .gmp-clip { cursor: grabbing; }
.gmp-insertion { position: absolute; inset-block: 0; width: var(--stroke-2); background: var(--accent); pointer-events: none; z-index: 1; }
.gmp-ruler { position: relative; height: 3rem; background: var(--surface-2); border-block: var(--hairline) solid var(--line); touch-action: none; user-select: none; cursor: crosshair; }
.gmp-ruler[aria-disabled="true"] { cursor: default; }
.gmp-ruler:focus-visible { outline: var(--focus-ring) solid var(--accent); }
.gmp-ticks { position: absolute; inset: 0; pointer-events: none; }
.gmp-tick { position: absolute; top: 0; height: 1.5em; padding-top: .5em; border-left: var(--hairline) solid var(--line); color: var(--text-mid); font-size: .85em; transform: translateX(-50%); }
.gmp-tick.is-first { transform: none; }
.gmp-tick.is-last { transform: translateX(-100%); }
.gmp-playhead { position: absolute; top: 0; bottom: 0; width: var(--stroke-2); background: var(--accent); pointer-events: none; }

.gmp-maker-page:root { height: 100%; overflow: hidden; }
.gmp-maker-page body { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.gmp-maker-page .masthead { flex: 0 0 var(--header-total); }
.gmp-maker-page .gmp-app {
  flex: 1; min-height: 0; min-width: 0; width: 100%; max-width: none;
  display: flex; flex-direction: column; gap: .875rem; font-size: .875rem;
  padding: 0 1.375rem calc(1.125rem + var(--safe-b)); overflow: hidden;
}
.gmp-maker-page .gmp-app * { box-sizing: border-box; }
.gmp-maker-page .gmp-app button { min-height: 2.375rem; padding: var(--sp-sm) .9375rem; border-radius: .4375rem; background: var(--surface); }
.gmp-maker-page .gmp-app button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--accent); }
.gmp-maker-page .gmp-app button:disabled { opacity: .7; }
.gmp-maker-page .gmp-app :is(button, input):focus-visible { outline: var(--focus-ring) solid var(--accent); outline-offset: var(--focus-ring); }
.gmp-maker-page .gmp-app .gmp-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.gmp-maker-page .gmp-app .gmp-primary:hover:not(:disabled) { background: var(--accent); color: var(--bg); }
.gmp-maker-page .gmp-topbar { position: relative; flex: 0 0 4.875rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1.25rem; }
.gmp-maker-page .gmp-heading, .gmp-maker-page .gmp-project-tools { display: flex; align-items: center; gap: .9375rem; min-width: 0; }
.gmp-maker-page .gmp-heading h1 { display: none; }
.gmp-maker-page .gmp-project-tools { width: 100%; }
.gmp-maker-page .gmp-title { flex: 0 1 15rem; min-width: 5rem; }
.gmp-maker-page .gmp-title input { padding: var(--sp-xs) 0; border-color: transparent; background: transparent; font-size: 1.1875rem; font-weight: 650; text-overflow: ellipsis; }
.gmp-maker-page .gmp-title input::placeholder { color: var(--text); opacity: 1; }
.gmp-maker-page .gmp-title input:hover { border-bottom-color: var(--line); }
.gmp-maker-page .gmp-badge { flex: 0 0 auto; padding: var(--sp-xs) .5625rem; border-radius: .3125rem; background: var(--surface-2); font-size: .8125rem; white-space: nowrap; }
.gmp-maker-page .gmp-overline { color: var(--text-mid); font-size: .8125rem; font-weight: 400; }
.gmp-maker-page #gmpCurrent { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmp-maker-page .gmp-tabs { display: flex; align-items: center; padding: .3125rem; gap: .3125rem; border: var(--hairline) solid var(--line); border-radius: .625rem; background: var(--surface-2); }
.gmp-maker-page .gmp-tabs button { min-width: 7rem; border-color: transparent; background: transparent; white-space: nowrap; }
.gmp-maker-page .gmp-tabs [aria-selected="true"] { border-color: var(--accent); background: var(--surface); box-shadow: 0 .125rem var(--sp-xs) var(--rule-soft); font-weight: 700; }
.gmp-maker-page .gmp-top-actions { display: flex; justify-content: flex-end; gap: .75rem; white-space: nowrap; }
.gmp-maker-page .gmp-summary { position: absolute; inset-inline: 0; bottom: -.375rem; height: 1rem; font-size: .75rem; }
.gmp-maker-page #gmpStatus { margin: 0; line-height: 1rem; white-space: nowrap; overflow: auto; }
.gmp-maker-page #gmpMaker { display: flex; flex: 1; min-height: 0; }
.gmp-maker-page .gmp-editor { position: relative; flex: 1; min-height: 0; display: grid; gap: .875rem; grid-template-columns: minmax(0, 27fr) minmax(0, 39fr) minmax(0, 34fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
.gmp-maker-page .gmp-editor > .gmp-section { margin: 0; padding: 0; min-width: 0; min-height: 0; overflow: auto; border-radius: var(--radius-md); display: flex; flex-direction: column; }
.gmp-maker-page .gmp-divider { position: absolute; z-index: 3; touch-action: none; }
.gmp-maker-page .gmp-divider-columns { cursor: col-resize; }
.gmp-maker-page .gmp-divider-rows { cursor: row-resize; }
.gmp-maker-page .gmp-divider::after { content: ''; position: absolute; background: var(--line); opacity: .25; }
.gmp-maker-page .gmp-divider-columns::after { inset-block: 0; left: 50%; width: var(--stroke-2); transform: translateX(-50%); }
.gmp-maker-page .gmp-divider-rows::after { inset-inline: 0; top: 50%; height: var(--stroke-2); transform: translateY(-50%); }
.gmp-maker-page .gmp-divider:is(:hover, .is-active)::after { background: var(--accent); opacity: 1; }
.gmp-maker-page .gmp-editor.is-splitting, .gmp-maker-page .gmp-editor.is-splitting * { user-select: none; }
.gmp-maker-page .gmp-panel-head { flex: 0 0 3.875rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 1.25rem; border-bottom: var(--hairline) solid var(--line); }
.gmp-maker-page .gmp-panel-head h2 { margin: 0; font-size: 1rem; font-weight: 700; }
.gmp-maker-page .gmp-preview-content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: .9375rem 1.25rem; gap: .75rem; overflow: auto; }
.gmp-maker-page .gmp-preview { flex: 1; min-height: 6.25rem; max-width: none; aspect-ratio: auto; display: flex; align-items: center; justify-content: center; background: var(--emu-bezel); border-radius: .375rem; overflow: hidden; }
.gmp-maker-page .gmp-frame { position: relative; overflow: hidden; background: black; flex: none; }
.gmp-maker-page .gmp-fullscreen { position: absolute; top: var(--sp-sm); right: var(--sp-sm); z-index: 4; display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; padding: var(--sp-sm); color: white; background: rgba(0, 0, 0, .6); }
.gmp-maker-page .gmp-fullscreen svg { width: 1.25rem; height: 1.25rem; pointer-events: none; }
.gmp-maker-page .gmp-preview:is(:fullscreen, .is-fullscreen) { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; min-height: 0; flex: none; aspect-ratio: auto; border-radius: 0; background: black; }
.gmp-maker-page .gmp-flash { position: absolute; top: 50%; left: 50%; z-index: 3; width: 5rem; height: 5rem; margin: -2.5rem 0 0 -2.5rem; color: rgba(225, 225, 225, .28); opacity: 0; pointer-events: none; }
.gmp-maker-page .gmp-flash svg { display: block; width: 100%; height: 100%; }
.gmp-maker-page .gmp-frame.is-draggable { cursor: grab; touch-action: none; }
.gmp-maker-page .gmp-frame.is-frame-selected::after { content: ''; position: absolute; inset: 0; border: var(--stroke-2) solid var(--accent); pointer-events: none; z-index: 3; }
.gmp-maker-page .gmp-frame.is-dragging { cursor: grabbing; }
.gmp-maker-page .gmp-frame.is-draggable :is(video, img) { pointer-events: none; user-select: none; }
.gmp-maker-page .gmp-clip-frame { margin-block: var(--sp-md); }
.gmp-maker-page .gmp-clip-frame input[type="radio"] { width: auto; }
.gmp-maker-page .gmp-empty-preview { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: var(--sp-md); text-align: center; }
.gmp-maker-page .gmp-empty-preview p { margin: 0; color: var(--emu-btn-ink); }
.gmp-maker-page .gmp-playback { flex: 0 0 2.5rem; max-width: none; margin: 0; gap: .625rem; }
.gmp-maker-page #gmpTime { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
/* 11-08 대표님: 편집기 안에서는 스크롤은 되고 막대만 보이지 않게 한다. */
.gmp-maker-page, .gmp-maker-page * { scrollbar-width: none; }
.gmp-maker-page ::-webkit-scrollbar { display: none; }
/* 표시는 단추 바깥 모서리에 걸친다. 작은 단추의 글자를 가리지 않게. */
.gmp-maker-page #gmpApp button { position: relative; overflow: visible; }
.gmp-maker-page .gmp-help { position: absolute; top: -.625rem; right: -.625rem; z-index: 1; display: flex; align-items: center; justify-content: center; width: 1.3125rem; height: 1.3125rem; border-radius: 50%; background: var(--surface-2); border: var(--hairline) solid var(--line); color: var(--text-mid); font-size: .9375rem; font-weight: 700; line-height: 1; cursor: help; opacity: .85; visibility: hidden; pointer-events: none; }
.gmp-maker-page .gmp-help.is-enabled { visibility: visible; pointer-events: auto; }
.gmp-maker-page .gmp-help:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); opacity: 1; }
/* 표시가 옆 단추나 윗줄과 겹치지 않을 만큼 단추 사이를 벌린다. */
.gmp-maker-page :is(.gmp-row, .gmp-top-actions, .gmp-timeline-tools, .gmp-project-create, .gmp-media-tools, .gmp-mini-controls, .gmp-tabs, .gmp-context-actions, .gmp-sub-times) { column-gap: 1rem; row-gap: .875rem; }
.gmp-maker-page .gmp-trim-grid { row-gap: 1rem; }
.gmp-maker-page .gmp-media-table table { min-width: 58rem; }
.gmp-maker-page .gmp-media-table :is(td, th) { padding-block: .75rem; }
.gmp-maker-page .gmp-media-table td button { margin-right: .875rem; }
.gmp-maker-page .gmp-media-table td .gmp-media-copy { margin-left: .5rem; }
.gmp-maker-page .gmp-media-table td .gmp-mini-open { margin-left: 0; }
.gmp-maker-page .gmp-guide { position: fixed; inset: 0; margin: auto; width: min(56rem, calc(100vw - 2rem)); height: fit-content; max-height: min(82dvh, 52rem); padding: 0; color: rgba(255, 255, 255, .92); background: rgba(20, 20, 20, .75); border: var(--hairline) solid rgba(255, 255, 255, .18); border-radius: var(--radius-md); overflow: hidden; }
.gmp-maker-page .gmp-confirm { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(32rem, calc(100vw - 2rem)); box-sizing: border-box; padding: var(--sp-lg); color: var(--text); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); }
.gmp-maker-page .gmp-confirm::backdrop { background: rgba(0, 0, 0, .55); }
.gmp-maker-page .gmp-json { position: fixed; inset: 0; margin: auto; width: min(64rem, calc(100vw - 2rem)); max-height: 86dvh; box-sizing: border-box; padding: var(--sp-lg); color: var(--text); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.gmp-maker-page .gmp-json[open] { display: flex; flex-direction: column; gap: var(--sp-sm); }
.gmp-maker-page .gmp-json::backdrop { background: rgba(0, 0, 0, .55); }
.gmp-maker-page .gmp-json h2, .gmp-maker-page #gmpJsonStatus { margin: 0; flex: none; }
.gmp-maker-page #gmpJsonText { width: 100%; height: 42dvh; min-height: 8rem; min-width: 0; box-sizing: border-box; font-family: monospace; overflow: auto; resize: none; }
.gmp-maker-page .gmp-json-actions { display: flex; flex: none; flex-wrap: wrap; gap: var(--sp-sm); }
.gmp-maker-page #gmpJsonStatus { min-height: 1.5em; white-space: nowrap; overflow: auto; }
.gmp-maker-page .gmp-json details { min-height: 0; overflow: auto; }
.gmp-maker-page #gmpJsonHelp { margin: var(--sp-sm) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; }
.gmp-maker-page .gmp-confirm p { margin: 0 0 var(--sp-lg); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.gmp-maker-page .gmp-confirm-actions { display: flex; justify-content: flex-end; gap: var(--sp-sm); }
.gmp-maker-page .gmp-guide[open] { display: flex; flex-direction: column; }
.gmp-maker-page .gmp-guide::backdrop { background: rgba(0, 0, 0, .55); }
.gmp-maker-page .gmp-guide-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding: 1.125rem 1.5rem; border-bottom: var(--hairline) solid rgba(255, 255, 255, .18); }
.gmp-maker-page .gmp-guide-head h2 { margin: 0; font-size: 1.375rem; font-weight: 700; }
.gmp-maker-page .gmp-guide-body { flex: 1; min-height: 0; overflow: auto; padding: 1.5rem 1.75rem 2rem; font-size: 1.1875rem; line-height: 1.8; }
.gmp-maker-page .gmp-guide-body p { margin: 0; }
.gmp-maker-page .gmp-guide-body h3 { margin: 1.25rem 0 .375rem; font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, .65); }
.gmp-maker-page .gmp-guide-body :is(ol, ul) { margin: 0; padding-left: 1.75rem; }
.gmp-maker-page .gmp-guide-body ol { list-style: decimal; }
.gmp-maker-page .gmp-guide-body ul { list-style: disc; }
.gmp-maker-page .gmp-context-scroll { flex: 1; min-height: 0; overflow: auto; padding: 1.125rem 1.375rem; }
.gmp-maker-page .gmp-context .gmp-section { margin: 0 0 1.125rem; padding: 0; border: 0; }
.gmp-maker-page .gmp-context .gmp-section + .gmp-section { border-top: var(--hairline) solid var(--line); padding-top: 1.125rem; }
.gmp-maker-page :is(#gmpProjectEdit, #gmpBgmEdit) > h2 { display: none; }
.gmp-maker-page .gmp-context h2 { font-size: .9375rem; }
.gmp-maker-page .gmp-context pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.gmp-maker-page .gmp-selection-title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: var(--sp-md); }
.gmp-maker-page .gmp-selection-title h3 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.gmp-maker-page .gmp-time-grid { grid-template-columns: 1fr 1fr .8fr; gap: .75rem; }
.gmp-maker-page .gmp-time-grid > * { padding: .75rem .875rem; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); color: var(--text-mid); gap: .4375rem; }
.gmp-maker-page .gmp-time-grid input, .gmp-maker-page .gmp-length output { padding: 0; border: 0; background: transparent; font-size: 1.5625rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.gmp-maker-page .gmp-trim-grid { grid-template-columns: 1fr 1fr .8fr; gap: .75rem; margin: .625rem 0 0; }
.gmp-maker-page .gmp-trim-grid > [data-edge] { display: flex; flex-direction: column; gap: var(--sp-sm); }
.gmp-maker-page .gmp-trim-grid .gmp-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .875rem 1rem; margin: 0; }
.gmp-maker-page .gmp-trim-grid button { padding: var(--sp-sm) .125rem; font-size: .8125rem; }
.gmp-maker-page .gmp-length-note { margin: 0; padding: .4375rem var(--sp-xs); font-size: .8125rem; line-height: 1.7; }
.gmp-maker-page .gmp-field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: var(--sp-md); }
.gmp-maker-page .gmp-field-row .gmp-field { display: flex; flex-direction: column; align-items: stretch; gap: .4375rem; min-width: 0; padding: .75rem .875rem; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); color: var(--text-mid); }
.gmp-maker-page .gmp-field input { width: 100%; }
.gmp-maker-page .gmp-field p { margin: 0; color: var(--text); }
.gmp-maker-page .gmp-output-state { margin: .875rem 0; padding: 1.125rem; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.7; }
.gmp-maker-page .gmp-output-state strong { display: block; margin-bottom: var(--sp-sm); }
.gmp-maker-page #gmpOutputProgress { width: 100%; accent-color: var(--accent); }
.gmp-maker-page .gmp-output-state p { margin: 0; }
.gmp-maker-page .gmp-edit-actions { margin: 1.0625rem 0 0; padding-top: .9375rem; border-top: var(--hairline) solid var(--line); gap: .5625rem; }
.gmp-maker-page #gmpClipRemove { margin-left: auto; color: var(--danger); }
.gmp-maker-page .gmp-context label:not(.gmp-time-grid label) { flex-wrap: wrap; }
.gmp-maker-page .gmp-context input:not(.gmp-time-grid input) { border-radius: .3125rem; background: var(--surface); }
.gmp-maker-page :is(#gmpSources, #gmpProjects, #gmpClips) > .gmp-row { margin: 0; padding: .75rem 0; border-bottom: var(--hairline) solid var(--line); }
.gmp-maker-page :is(#gmpSources, #gmpProjects) .gmp-name { flex-basis: 12rem; }
.gmp-maker-page #gmpBgm > .gmp-row { align-items: stretch; gap: .75rem; }
.gmp-maker-page #gmpBgm .gmp-name { flex-basis: 100%; font-size: 1.25rem; font-weight: 600; }
.gmp-maker-page #gmpBgm label { flex: 1; flex-direction: column; align-items: stretch; padding: .75rem .875rem; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); }
.gmp-maker-page #gmpBgm input { width: 100%; }
.gmp-maker-page .gmp-pending { padding: 1.25rem; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); line-height: 1.7; }
.gmp-maker-page .gmp-pending strong { font-size: 1.25rem; }
.gmp-maker-page .gmp-pending p { margin-bottom: 0; }
.gmp-maker-page .gmp-timeline-panel { grid-column: 1 / -1; }
/* 이름 칸을 가로 스크롤 영역 밖에 두어 시간 좌표의 원점을 눈금 왼쪽으로 유지한다. */
.gmp-maker-page .gmp-timeline-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); gap: .875rem; padding: .625rem 1.25rem 0; overflow-y: auto; }
.gmp-maker-page .gmp-track-labels { min-width: 0; }
/* 일곱 줄 전체를 같은 높이로 두어 이름표와 트랙이 타임라인 칸 안에서 함께 움직이게 한다. */
.gmp-maker-page :is(.gmp-track-labels, .gmp-timeline) { min-height: 28.875rem; }
.gmp-maker-page .gmp-ruler-spacer { height: 1.75rem; }
.gmp-maker-page .gmp-track-label { height: 3rem; display: flex; flex-direction: column; justify-content: center; gap: .3125rem; margin-top: .625rem; font-weight: 600; }
.gmp-maker-page .gmp-track-label small { color: var(--text-mid); font-size: .8125rem; font-weight: 400; }
.gmp-maker-page .gmp-timeline { max-width: none; padding: 0 0 .875rem; overflow: auto; }
.gmp-maker-page .gmp-ruler { height: 1.75rem; border: 0; background: transparent; }
.gmp-maker-page .gmp-tick { padding-top: .25rem; font-size: .8125rem; border-color: var(--rule-soft); font-variant-numeric: tabular-nums; }
.gmp-maker-page .gmp-track { height: 3rem; margin-top: .625rem; border-radius: .375rem; }
/* 클립 막대만 이름 · 시간 두 줄이라 영상 줄은 높게 둔다 */
.gmp-maker-page #gmpTrack, .gmp-maker-page .gmp-track-labels .gmp-track-label:nth-child(2) { height: 4rem; }
.gmp-maker-page .gmp-track.is-empty::after { content: '원본 탭에서 영상을 클립에 넣어 주세요'; }
.gmp-maker-page .gmp-bgm-track.is-empty::after { content: '원본 탭에서 배경음을 골라 주세요'; }
.gmp-maker-page .gmp-track.is-empty::after { display: block; padding: 1.25rem; color: var(--text-mid); font-size: .8125rem; }
.gmp-maker-page .gmp-clip { inset-block: .1875rem; flex-direction: column; align-items: stretch; justify-content: center; gap: .1875rem; padding: .4375rem 1.375rem; border-color: var(--line); border-radius: .3125rem; background: var(--surface-2); }
.gmp-maker-page .gmp-clip-name { padding: 0; font-weight: 600; }
.gmp-maker-page .gmp-clip-time { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; font-size: .8125rem; }
.gmp-maker-page .gmp-clip-handle { inset-block: .625rem; width: .4375rem; border-radius: .1875rem; background: var(--text-dim); }
.gmp-maker-page .gmp-clip-handle[data-edge="start"] { left: .3125rem; }
.gmp-maker-page .gmp-clip-handle[data-edge="end"] { right: .3125rem; }
.gmp-maker-page .gmp-bgm-bar { inset-block: .1875rem; padding: .4375rem 1.375rem; border-radius: .3125rem; background: color-mix(in srgb, var(--note-blue) 65%, var(--surface)); color: var(--text); }
.gmp-maker-page :is(.gmp-clip, .gmp-bgm-bar).is-selected { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); outline: var(--stroke-2) solid var(--accent); box-shadow: none; }
.gmp-maker-page :is(.gmp-clip, .gmp-bgm-bar).is-selected .gmp-clip-handle { background: var(--accent); }
.gmp-maker-page .gmp-fade-fields { margin-block: .625rem 0; }
.gmp-maker-page .gmp-clip-sound { margin-block: var(--sp-md); }
.gmp-maker-page .gmp-clip-vol-point { display: flex; flex-wrap: wrap; align-items: end; gap: var(--sp-sm); margin-block: var(--sp-sm); }
.gmp-maker-page .gmp-clip-vol-point label { flex: 1 1 7rem; min-width: 0; flex-direction: column; align-items: stretch; }
.gmp-maker-page .gmp-clip-vol-point input { box-sizing: border-box; width: 100%; min-width: 0; }
.gmp-maker-page .gmp-clip-vol { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; fill: none; stroke: var(--accent); stroke-width: var(--stroke-2); }
.gmp-maker-page .gmp-fade { position: absolute; inset-block: 0; pointer-events: none; }
.gmp-maker-page .gmp-wave { position: absolute; pointer-events: none; opacity: .45; }
.gmp-maker-page .gmp-fade.is-in { left: 0; background: linear-gradient(to right, var(--emu-screen), transparent); clip-path: polygon(0 0, 100% 100%, 0 100%); }
.gmp-maker-page .gmp-fade.is-out { right: 0; background: linear-gradient(to left, var(--emu-screen), transparent); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.gmp-maker-page :is(.gmp-clip-name, .gmp-clip-time, .gmp-clip-handle) { z-index: 1; }
.gmp-maker-page :is(.gmp-clip, .gmp-bgm-bar) :is(.gmp-clip-name, .gmp-clip-time, .gmp-clip-handle) { z-index: 2; }
.gmp-maker-page :is(.gmp-clip-name, .gmp-clip-time) { position: relative; }
.gmp-maker-page .gmp-playhead { z-index: 2; }
.gmp-maker-page .gmp-playhead::before { content: ''; position: absolute; top: 0; left: -.3125rem; width: .75rem; height: .875rem; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.gmp-maker-page .gmp-timeline-tools { display: flex; align-items: center; gap: .625rem; }
.gmp-maker-page .gmp-zoom { gap: .625rem; font-size: .8125rem; color: var(--text-mid); }
.gmp-maker-page .gmp-zoom input { width: 8rem; padding: 0; accent-color: var(--accent); }
.gmp-maker-page .gmp-timeline-foot { display: flex; justify-content: space-between; gap: var(--sp-md); padding: .625rem 1.25rem .875rem; color: var(--text-mid); font-size: .8125rem; }

.gmp-maker-page .gmp-context-actions { display: flex; align-items: center; gap: var(--sp-sm); }

.gmp-maker-page .gmp-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.gmp-maker-page .gmp-project-create { margin: 0 0 var(--sp-md); flex-wrap: wrap; }
.gmp-maker-page .gmp-project-create input { flex: 1 1 100%; min-width: 0; width: 100%; }
.gmp-maker-page :is(select, textarea) { min-width: 0; max-width: 100%; padding: var(--sp-xs) var(--sp-sm); color: var(--text); background: var(--surface-2); border: var(--hairline) solid var(--line); font: inherit; }
.gmp-maker-page select option { color: var(--text); background: var(--surface-2); }
.gmp-maker-page .gmp-project-rename { display: flex; flex-wrap: wrap; gap: var(--sp-xs); min-width: 0; }
.gmp-maker-page .gmp-project-rename input { flex: 1 1 100%; min-width: 0; width: 100%; }
.gmp-maker-page .gmp-project-tools > button { flex: 0 0 auto; white-space: nowrap; }

.gmp-maker-page .gmp-context-scroll.is-media-panel { display: flex; flex-direction: column; }
.gmp-maker-page #gmpPanelDubbing:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-height: 0; min-width: 0; }
.gmp-maker-page .gmp-lines-tools { flex: 0 0 auto; }
.gmp-maker-page .gmp-lines-tools input[type="radio"] { width: auto; }
.gmp-maker-page :is(#gmpSttTools, #gmpTrTools) label { min-width: 0; max-width: 100%; }
.gmp-maker-page :is(#gmpSttTools, #gmpTrTools) select { min-width: 0; max-width: 100%; }
.gmp-maker-page #gmpRecognitionStates { overflow-wrap: anywhere; }
.gmp-maker-page #gmpLineStatusHome #gmpLinesStatus { white-space: normal; overflow-wrap: anywhere; }

.gmp-maker-page #gmpLinesStatus { flex: 0 0 auto; white-space: nowrap; overflow: auto; color: var(--accent); }
.gmp-maker-page .gmp-lines-table { flex: 1; min-height: 0; overflow: auto; border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); }
.gmp-maker-page #gmpLines { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .8125rem; }
.gmp-maker-page #gmpLines :is(th, td) { padding: var(--sp-sm); text-align: left; border-bottom: var(--hairline) solid var(--line); }
.gmp-maker-page #gmpLines th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); }
.gmp-maker-page #gmpLines td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.gmp-maker-page #gmpLines td:last-child { overflow-wrap: anywhere; }
.gmp-maker-page .is-media-panel :is(#gmpPanelSources, #gmpSourceHome, #gmpQuickSources, #gmpSourceList) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gmp-maker-page #gmpSourceList { padding-bottom: var(--sp-lg); border-radius: var(--radius-sm); }
.gmp-maker-page #gmpSourceList.is-file-dragging { outline: var(--stroke-2) dashed var(--accent); outline-offset: calc(-1 * var(--stroke-2)); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.gmp-maker-page .gmp-media-tools { position: sticky; top: 0; z-index: 2; background: var(--surface); }
.gmp-maker-page #gmpMediaStatus { overflow-wrap: anywhere; color: var(--accent); }
.gmp-maker-page .gmp-media-results { max-height: 6rem; overflow: auto; overflow-wrap: anywhere; color: var(--text-mid); }
.gmp-maker-page .gmp-media-table { max-width: 100%; overflow: auto; }
.gmp-maker-page .gmp-media-table table { width: 100%; min-width: 50rem; border-collapse: separate; border-spacing: 0; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.gmp-maker-page .gmp-media-table caption { text-align: left; padding-block: var(--sp-sm); color: var(--text-mid); }
.gmp-maker-page .gmp-media-table :is(th, td) { padding: var(--sp-sm); text-align: left; white-space: nowrap; border-bottom: var(--hairline) solid var(--line); }
.gmp-maker-page .gmp-media-table th { background: var(--surface-2); }
.gmp-maker-page .gmp-media-table :is(th, td):last-child { position: sticky; right: 0; z-index: 1; background: var(--surface); }
.gmp-maker-page .gmp-media-table th:last-child { z-index: 2; background: var(--surface-2); }
.gmp-maker-page .gmp-media-table .gmp-media-name { display: inline-block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.gmp-maker-page .gmp-media-table .is-missing { opacity: .6; }
.gmp-maker-page .gmp-media-missing { margin-left: var(--sp-sm); color: var(--danger); }
.gmp-maker-page .gmp-media-stt { display: block; }
.gmp-maker-page .gmp-media-table button { min-height: 2rem; padding: var(--sp-xs); font-size: inherit; }
.gmp-maker-page .gmp-media-copy { display: inline-flex; align-items: center; justify-content: center; margin-left: var(--sp-xs); vertical-align: middle; }
.gmp-maker-page .gmp-media-copy svg { width: 1rem; height: 1rem; }

.gmp-maker-page .gmp-mini-open { display: inline-flex; align-items: center; justify-content: center; margin-left: var(--sp-xs); vertical-align: middle; }
.gmp-maker-page .gmp-mini-open svg, .gmp-maker-page .gmp-mini-player svg { width: 1rem; height: 1rem; }
.gmp-maker-page .gmp-mini-player {
  position: fixed;
  z-index: 4;
  box-sizing: border-box;
  width: 24rem;
  max-width: 100%;
  max-height: 100dvh;
  overflow: auto;
  color: var(--text);
  background: var(--surface);
  border: var(--hairline) solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 var(--sp-xs) var(--sp-md) var(--rule-soft);
}
.gmp-maker-page .gmp-mini-player[hidden] { display: none !important; }
.gmp-maker-page .gmp-mini-player.is-front { z-index: 5; }
.gmp-maker-page .gmp-mini-head { display: flex; align-items: center; gap: var(--sp-sm); padding: var(--sp-sm); background: var(--surface-2); cursor: move; touch-action: none; user-select: none; }
.gmp-maker-page .gmp-mini-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmp-maker-page .gmp-mini-player button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 2.75rem; min-height: 2.75rem; }
.gmp-maker-page .gmp-mini-video { display: block; width: 100%; height: 13.5rem; max-height: 45dvh; object-fit: contain; background: var(--bg); }
.gmp-maker-page .gmp-mini-controls { display: flex; justify-content: center; gap: var(--sp-xs); padding: var(--sp-sm); }
.gmp-maker-page .gmp-mini-progress { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-sm); padding: 0 var(--sp-sm) var(--sp-sm); }
.gmp-maker-page .gmp-mini-progress input { flex: 1; width: 0; min-width: 4rem; accent-color: var(--accent); }
.gmp-maker-page .gmp-mini-progress output { font-size: .875rem; white-space: nowrap; }
.gmp-maker-page .gmp-mini-error { margin: 0; padding: 0 var(--sp-sm) var(--sp-sm); color: var(--danger); overflow-wrap: anywhere; }
.gmp-maker-page .gmp-mini-error:empty { display: none; }

.gmp-maker-page .gmp-readonly :is(button, input):disabled,
.gmp-maker-page .gmp-readonly input[readonly] {
  opacity: .5;
  filter: grayscale(1);
  cursor: default;
  pointer-events: auto;
}
.gmp-readonly :is(.gmp-clip, .gmp-bgm-bar, .gmp-clip-handle) { cursor: default; }
.gmp-readonly .gmp-clip-handle { opacity: .35; }
.gmp-readonly #gmpPanelOutput details { display: none; }
.gmp-maker-page .gmp-readonly .gmp-track.is-empty::after { content: '편집 내용이 없습니다 — 다시 올리면 보입니다'; }
.gmp-maker-page .gmp-readonly .gmp-bgm-track.is-empty::after { content: '배경음이 없습니다'; }

.gmp-maker-page :is(#gmpSubtitle, #gmpSttSubtitle, #gmpTrSubtitle) { position: absolute; z-index: 2; white-space: pre-wrap; overflow-wrap: anywhere; pointer-events: auto; cursor: ns-resize; touch-action: none; user-select: none; text-align: center; font-family: 'Noto Sans KR', sans-serif; font-weight: 700; line-height: 1.2; color: white; -webkit-text-stroke-color: black; paint-order: stroke fill; }
/* 안내 비율을 한곳에 두어 세로 미리보기에서만 참고 영역으로 쓴다. */
.gmp-maker-page .gmp-safe { position: absolute; box-sizing: border-box; border: var(--hairline) dashed white; pointer-events: none; }
.gmp-maker-page .gmp-readonly :is(#gmpSubtitle, #gmpSttSubtitle, #gmpTrSubtitle) { pointer-events: none; cursor: default; }
.gmp-maker-page :is(#gmpSubtitleText, #gmpSttSubtitleText, #gmpTrSubtitleText) { max-width: 100%; box-sizing: border-box; }
.gmp-maker-page :is(#gmpSafeToggle, #gmpSubStyle, #gmpSttStyle, #gmpTrStyle) input[type="checkbox"] { width: auto; }
.gmp-maker-page :is(.gmp-sub-bar, .gmp-overlay-bar) { position: absolute; inset-block: .1875rem; display: flex; align-items: center; overflow: hidden; padding: .4375rem 1.375rem; border: var(--hairline) solid var(--line); border-radius: .3125rem; background: var(--surface-2); cursor: grab; }
.gmp-maker-page :is(.gmp-sub-bar, .gmp-overlay-bar).is-selected { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); border-color: var(--accent); outline: var(--stroke-2) solid var(--accent); outline-offset: calc(-1 * var(--stroke-2)); }
.gmp-maker-page :is(.gmp-sub-bar, .gmp-overlay-bar).is-selected .gmp-clip-handle { background: var(--accent); }
.gmp-maker-page #gmpSubTrack.is-empty::after { content: '지금 위치에 별도 자막을 넣어 주세요'; }
.gmp-maker-page #gmpSttTrack.is-empty::after { content: '추출 자막이 없습니다'; }
.gmp-maker-page .gmp-sub-text { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-xs); width: 100%; }
.gmp-maker-page :is(#gmpSubText, #gmpOverlayContent) { width: 100%; min-width: 0; resize: vertical; padding: var(--sp-sm); color: var(--text); background: var(--surface); border: var(--hairline) solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.gmp-maker-page :is(#gmpSubText, #gmpOverlayContent):focus-visible { outline: var(--focus-ring) solid var(--accent); }
.gmp-maker-page .gmp-sub-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-sm); margin-top: var(--sp-md); }
.gmp-maker-page .gmp-sub-times label { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-xs); min-width: 0; }
.gmp-maker-page .gmp-sub-times input { width: 100%; min-width: 0; }
.gmp-maker-page :is(#gmpSubRemove, #gmpOverlayRemove) { margin-left: auto; color: var(--danger); }
.gmp-maker-page .gmp-readonly :is(.gmp-sub-bar, .gmp-overlay-bar, .gmp-sub-bar .gmp-clip-handle, .gmp-overlay-bar .gmp-clip-handle) { cursor: default; }
.gmp-maker-page .gmp-readonly textarea:disabled { opacity: .5; filter: grayscale(1); cursor: default; }
.gmp-maker-page .gmp-readonly .gmp-sub-track.is-empty::after { content: '자막이 없습니다'; }

.gmp-maker-page #gmpOverlays { position: absolute; inset: 0; pointer-events: none; }
.gmp-maker-page .gmp-overlay-item { position: absolute; transform: translate(-50%, -50%); max-width: 100%; box-sizing: border-box; pointer-events: auto; cursor: move; touch-action: none; user-select: none; }
.gmp-maker-page .gmp-overlay-text { width: max-content; white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; font-family: 'Noto Sans KR', sans-serif; font-weight: 700; line-height: 1.2; paint-order: stroke fill; }
.gmp-maker-page #gmpOverlays img.gmp-overlay-item { height: auto; pointer-events: auto; }
.gmp-maker-page .gmp-safe { z-index: 1; }
.gmp-maker-page .gmp-overlay-track.is-empty::after { content: '지금 위치에 글자나 이미지를 넣어 주세요'; }
.gmp-maker-page .gmp-readonly .gmp-overlay-track.is-empty::after { content: '겹침이 없습니다'; }
.gmp-maker-page #gmpOverlayBox { width: auto; }
.gmp-maker-page .gmp-overlay-bar { isolation: isolate; }

.gmp-maker-page #gmpStill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.gmp-maker-page .gmp-clip.is-still { background: var(--note-green); }

.gmp-maker-page .gmp-flip { display: none; }

/* 폭이 48rem 을 넘는 폰도 눕히면 높이가 모자라 데스크톱 배치가 깨진다 */
@media (max-width: 48rem), (max-height: 30rem) and (orientation: landscape) {
  .gmp-maker-page .gmp-divider { display: none; }
  .gmp-maker-page { height: 100dvh; overflow: hidden; }
  .gmp-maker-page body { height: 100dvh; }
  .gmp-maker-page .gmp-app { gap: var(--sp-xs); padding: 0 var(--sp-xs); }
  .gmp-maker-page .gmp-app button { min-height: 2.75rem; padding-inline: var(--sp-sm); white-space: nowrap; }
  .gmp-maker-page .gmp-topbar { flex-basis: 4rem; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-xs); }
  .gmp-maker-page :is(.gmp-heading, .gmp-project-tools, .gmp-top-actions) { gap: var(--sp-xs); }
  .gmp-maker-page .gmp-title { flex: 1; min-width: 0; }
  .gmp-maker-page .gmp-title input { font-size: .875rem; }
  .gmp-maker-page #gmpSaveState { max-width: 5rem; padding-inline: var(--sp-xs); overflow: hidden; text-overflow: ellipsis; font-size: .6875rem; }
  .gmp-maker-page #gmpCurrent { display: none; }
  .gmp-maker-page #gmpTabs { grid-column: 1 / -1; display: flex; }
  .gmp-maker-page .gmp-topbar { flex-basis: 7.5rem; }
  .gmp-maker-page .gmp-summary { bottom: 0; }
  .gmp-maker-page :is(#gmpUndo, #gmpRedo) { min-width: 2.75rem; }
  .gmp-maker-page :is(#gmpUndo, #gmpRedo) span { display: none; }
  .gmp-maker-page #gmpUndo::before { content: '↶'; }
  .gmp-maker-page #gmpRedo::before { content: '↷'; }
  .gmp-maker-page .gmp-editor { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); gap: var(--sp-xs); }
  .gmp-maker-page .gmp-preview-panel { grid-row: 1; }
  .gmp-maker-page .gmp-preview-panel > .gmp-panel-head { display: none; }
  .gmp-maker-page .gmp-preview-content { padding: 0; gap: 0; overflow: hidden; }
  .gmp-maker-page .gmp-preview { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
  .gmp-maker-page .gmp-empty-preview { flex-direction: row; flex-wrap: wrap; gap: var(--sp-xs); padding: var(--sp-xs); }
  .gmp-maker-page .gmp-empty-preview p { flex-basis: 100%; }
  .gmp-maker-page .gmp-playback { flex: 0 0 auto; min-height: 2.75rem; gap: var(--sp-xs); }
  .gmp-maker-page .gmp-flip { grid-row: 2; display: flex; gap: var(--sp-xs); min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .gmp-maker-page .gmp-flip::-webkit-scrollbar { display: none; }
  .gmp-maker-page .gmp-flip button { flex: 0 0 auto; }
  .gmp-maker-page .gmp-flip [aria-current="true"] { border-color: var(--accent); background: var(--surface-2); font-weight: 700; }
  .gmp-maker-page .gmp-editor > :is(.gmp-context, .gmp-items, .gmp-timeline-panel) { grid-column: 1; grid-row: 3; padding-bottom: calc(var(--fab-size) + var(--fab-gap) + var(--safe-b)); transform-origin: top; animation: gmp-console-flip .18s ease-out; }
  .gmp-maker-page .gmp-editor:not([data-console="panel"]) > .gmp-context,
  .gmp-maker-page .gmp-editor:not([data-console="items"]) > .gmp-items,
  .gmp-maker-page .gmp-editor:not([data-console="timeline"]) > .gmp-timeline-panel { display: none; }
  .gmp-maker-page .gmp-context-scroll { min-width: 0; padding: var(--sp-sm); }
  .gmp-maker-page .gmp-context .gmp-panel-head { flex-basis: auto; min-height: 2.75rem; flex-wrap: wrap; padding: var(--sp-xs) var(--sp-sm); gap: var(--sp-xs); }
  .gmp-maker-page .gmp-context-actions { min-width: 0; flex-wrap: wrap; }
  .gmp-maker-page #gmpContextHint { overflow-wrap: anywhere; }
  .gmp-maker-page :is(.gmp-time-grid, .gmp-trim-grid, .gmp-field-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmp-maker-page .gmp-trim-grid .gmp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmp-maker-page #gmpBgm > .gmp-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gmp-maker-page #gmpBgm .gmp-name { grid-column: 1 / -1; }
  .gmp-maker-page #gmpBgm label { min-width: 0; }
  .gmp-maker-page .gmp-context .gmp-media-table { max-width: 100%; overflow-x: auto; }
  .gmp-maker-page .gmp-timeline-panel > .gmp-panel-head { flex: 0 0 auto; padding: 0 var(--sp-xs); overflow-x: auto; }
  .gmp-maker-page .gmp-timeline-panel > .gmp-panel-head h2,
  .gmp-maker-page .gmp-timeline-foot { display: none; }
  .gmp-maker-page .gmp-timeline-tools { flex: 1 0 auto; gap: var(--sp-xs); white-space: nowrap; }
  .gmp-maker-page .gmp-zoom { margin-left: 0; gap: var(--sp-xs); }
  .gmp-maker-page .gmp-zoom input { width: 4rem; min-height: 2.75rem; }
  .gmp-maker-page .gmp-timeline-body { grid-template-columns: 3.25rem minmax(0, 1fr); gap: var(--sp-xs); padding: var(--sp-xs); }
  .gmp-maker-page .gmp-track-label small { font-size: .625rem; }
  .gmp-maker-page :is(.gmp-timeline-content, .gmp-ruler) { touch-action: pan-x pan-y; }
  @keyframes gmp-console-flip {
    from { transform: perspective(40rem) rotateX(-12deg); }
    to { transform: perspective(40rem) rotateX(0deg); }
  }
}

@media (max-height: 30rem) and (orientation: landscape) {
  .gmp-maker-page .gmp-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .gmp-maker-page .gmp-preview-panel { grid-column: 1; grid-row: 1 / -1; }
  .gmp-maker-page .gmp-preview-content { justify-content: center; }
  .gmp-maker-page .gmp-preview { flex: 0 1 auto; min-height: 0; }
  .gmp-maker-page .gmp-playback { flex-shrink: 0; }
  .gmp-maker-page .gmp-flip { grid-column: 2; grid-row: 1; }
  .gmp-maker-page .gmp-editor > :is(.gmp-context, .gmp-items, .gmp-timeline-panel) { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .gmp-maker-page .gmp-editor > :is(.gmp-context, .gmp-items, .gmp-timeline-panel) { animation: none; }
}

.gmp-maker-page #gmpLines textarea { width: 100%; min-width: 12em; min-height: 4em; resize: vertical; }
.gmp-maker-page #gmpLines small { display: block; white-space: pre-wrap; }
.gmp-maker-page .gmp-low-word { text-decoration-style: wavy; text-decoration-color: var(--accent); }

.gmp-tr-dialog[hidden] { display: none !important; }
.gmp-tr-dialog { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 1rem; }
.gmp-tr-panel { width: min(94vw, 90rem); max-height: 90vh; overflow: auto; padding: 1rem; background: var(--surface); color: var(--text); border-radius: .5rem; }
.gmp-tr-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gmp-tr-columns label { display: flex; flex-direction: column; gap: .5rem; }
.gmp-tr-columns textarea { width: 100%; min-height: 24rem; flex: 1; resize: vertical; }
.gmp-maker-page #gmpTrTrack.is-empty::after { content: '번역 자막이 없습니다'; }
@media (max-width: 48rem) { .gmp-tr-columns { grid-template-columns: minmax(0, 1fr); } .gmp-tr-columns textarea { min-height: 12rem; } }

.gmp-tr-dialog [hidden] { display: none !important; }
.gmp-tr-panel .gmp-lines-table { max-height: 55vh; overflow: auto; }
@media (max-width: 48rem) {
  .gmp-tr-panel .gmp-lines-tools { flex-direction: column; align-items: stretch; }
  .gmp-tr-panel #gmpLines :is(thead, tbody, tr, th, td) { display: block; }
  .gmp-tr-panel #gmpLines thead { display: none; }
  .gmp-tr-panel #gmpLines textarea { min-width: 0; }
}

.gmp-maker-page .gmp-dub-bar { position: absolute; inset-block: .1875rem; overflow: hidden; padding-inline: .5rem; border: var(--hairline) solid var(--line); border-radius: .3125rem; background: var(--note-blue); color: var(--text); text-align: left; white-space: nowrap; text-overflow: ellipsis; }
.gmp-maker-page .gmp-dub-bar.is-selected { outline: var(--stroke-2) solid var(--accent); }
.gmp-maker-page .gmp-dub-bar.is-warning { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 20%, var(--surface)); }
.gmp-maker-page .gmp-dub-track.is-muted { opacity: .5; }
.gmp-maker-page .gmp-dub-track.is-empty::after { content: '번역 · 더빙에서 더빙을 만들어 주세요'; }
.gmp-maker-page .gmp-readonly .gmp-dub-track.is-empty::after { content: '더빙이 없습니다'; }

.gmp-maker-page #gmpItemTree { display: flex; flex-direction: column; gap: 1rem; }
.gmp-maker-page #gmpItemTree [aria-pressed="true"] { border-color: var(--accent); }
.gmp-maker-page .gmp-tabs { max-width: 100%; overflow-x: auto; }
.gmp-maker-page .gmp-tabs button { min-width: 0; }

.gmp-maker-page .gmp-tree-search { padding: .5rem 1rem; }
.gmp-maker-page .gmp-tree-search input { width: 100%; min-width: 0; }
.gmp-maker-page .gmp-tree-kind { display: flex; gap: .25rem; }
.gmp-maker-page .gmp-tree-kind [data-workspace-item] { flex: 1; text-align: left; }
.gmp-maker-page .gmp-tree-kind small { color: var(--mid); }
.gmp-maker-page .gmp-tree-leaves { margin: .25rem 0 0 1rem; padding-left: .5rem; border-left: var(--hairline) solid var(--line); }
.gmp-maker-page .gmp-tree-leaves button { display: flex; width: 100%; gap: .5rem; text-align: left; margin-block: .25rem; }
.gmp-maker-page .gmp-tree-leaves small { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.gmp-maker-page .gmp-tree-leaves span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmp-maker-page .gmp-tree-leaves p { color: var(--mid); }
.gmp-maker-page #gmpItemTree [data-workspace-item="4"] { opacity: .6; }
