@font-face {
    font-family: 'NexonLv2Gothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv2 Gothic Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'NexonLv2Gothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv2 Gothic.woff') format('woff');
    font-weight: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NexonLv2Gothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON Lv2 Gothic Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --rg-row-h: 40px;
    --rg-panel-h: calc(var(--rg-row-h) * 12 + 3.1rem);
    --rg-gutter: 10px;
}

.rg-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: safe center;
    justify-content: safe center;
    padding: 2.6rem 1.5rem 0.75rem;
    font-family: var(--font-main);
    overflow: auto;
}

.rg-frame {
    position: relative;
    width: min(1120px, 100%);
}

.rg-collect-bar {
    position: absolute;
    right: 0;
    bottom: calc(100% + 0.45rem);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    max-width: 100%;
    color: var(--text);
}

.rg-head,
.rg-workspace {
    width: 100%;
}

.rg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.rg-head-left,
.rg-head-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.rg-head-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    margin-left: auto;
}

.rg-title {
    margin: 0;
    font-family: var(--font-page-title);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.rg-status {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    white-space: nowrap;
}

.rg-status-emphasis {
    color: var(--fgb-emphasis);
    font-weight: 700;
}

.rg-text-btn {
    padding: 0.45rem 0.9rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text);
    background: transparent;
    border: 2px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.rg-text-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.rg-filter-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rg-checks {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.rg-filter-btn {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
    background: transparent;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.85rem;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}

.rg-filter-count {
    display: inline-block;
    width: 1ch;
    text-align: center;
}

.rg-filter-btn .bi {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    font-size: 0.72rem;
    line-height: 1;
}

.rg-filter-btn .bi::before {
    line-height: 1;
    vertical-align: 0;
}

.rg-filter-wrap.is-compact .rg-filter-btn {
    display: inline-flex;
    flex: none;
    box-sizing: border-box;
    width: 4.9rem;
    justify-content: center;
}

.rg-filter-wrap.is-compact .rg-checks {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 30;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    box-sizing: border-box;
    width: 9rem;
    min-width: 9rem;
    max-width: 9rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0;
    background: #fff;
    color: var(--fgb-dark);
}

.rg-filter-wrap.is-compact .rg-check input {
    width: 0.95rem;
    height: 0.95rem;
    border: 1px solid var(--fgb-dark);
    box-shadow: 0 0 0 1px rgba(8, 24, 73, 0.72);
}

.rg-filter-wrap.is-compact.is-open .rg-checks {
    display: flex;
}

.rg-filter-wrap.is-compact.is-open .rg-filter-btn .bi {
    transform: rotate(180deg);
}

.rg-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
}

.rg-check input {
    appearance: none;
    width: 0.95rem;
    height: 0.95rem;
    margin: 0;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
    background: transparent;
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    outline: none;
}

.rg-check:hover,
.rg-check:has(input:checked) {
    font-weight: 700;
}

.rg-check input::after {
    content: "";
    width: 0.24rem;
    height: 0.46rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    margin-top: -1px;
}

.rg-check input:checked::after {
    transform: rotate(45deg) scale(1);
}

.rg-check-play-0 input:checked { background: #8d97ab; border-color: #8d97ab; box-shadow: 0 0 0 1px rgba(141, 151, 171, 0.72); }
.rg-check-play-1 input:checked { background: #e6be3c; border-color: #e6be3c; box-shadow: 0 0 0 1px rgba(230, 190, 60, 0.72); }
.rg-check-play-2 input:checked { background: #28a05a; border-color: #28a05a; box-shadow: 0 0 0 1px rgba(40, 160, 90, 0.72); }
.rg-check-end-0 input:checked { background: #2b7dff; border-color: #2b7dff; box-shadow: 0 0 0 1px rgba(43, 125, 255, 0.72); }
.rg-check-end-1 input:checked { background: #8a4dff; border-color: #8a4dff; box-shadow: 0 0 0 1px rgba(138, 77, 255, 0.72); }
.rg-check-end-2 input:checked { background: #d4538a; border-color: #d4538a; box-shadow: 0 0 0 1px rgba(212, 83, 138, 0.72); }

.rg-check-play-0:hover,
.rg-check-play-0:has(input:checked) { color: #8d97ab; }
.rg-check-play-1:hover,
.rg-check-play-1:has(input:checked) { color: #e6be3c; }
.rg-check-play-2:hover,
.rg-check-play-2:has(input:checked) { color: #28a05a; }
.rg-check-end-0:hover,
.rg-check-end-0:has(input:checked) { color: #2b7dff; }
.rg-check-end-1:hover,
.rg-check-end-1:has(input:checked) { color: #8a4dff; }
.rg-check-end-2:hover,
.rg-check-end-2:has(input:checked) { color: #d4538a; }

.rg-check-play-0:hover input { border-color: #8d97ab; box-shadow: 0 0 0 1px rgba(141, 151, 171, 0.72); }
.rg-check-play-1:hover input { border-color: #e6be3c; box-shadow: 0 0 0 1px rgba(230, 190, 60, 0.72); }
.rg-check-play-2:hover input { border-color: #28a05a; box-shadow: 0 0 0 1px rgba(40, 160, 90, 0.72); }
.rg-check-end-0:hover input { border-color: #2b7dff; box-shadow: 0 0 0 1px rgba(43, 125, 255, 0.72); }
.rg-check-end-1:hover input { border-color: #8a4dff; box-shadow: 0 0 0 1px rgba(138, 77, 255, 0.72); }
.rg-check-end-2:hover input { border-color: #d4538a; box-shadow: 0 0 0 1px rgba(212, 83, 138, 0.72); }

.rg-filter-wrap.is-compact .rg-check-play-0:hover input,
.rg-filter-wrap.is-compact .rg-check-play-0 input:checked { border-color: #8d97ab; box-shadow: 0 0 0 1px rgba(141, 151, 171, 0.72); }
.rg-filter-wrap.is-compact .rg-check-play-1:hover input,
.rg-filter-wrap.is-compact .rg-check-play-1 input:checked { border-color: #e6be3c; box-shadow: 0 0 0 1px rgba(230, 190, 60, 0.72); }
.rg-filter-wrap.is-compact .rg-check-play-2:hover input,
.rg-filter-wrap.is-compact .rg-check-play-2 input:checked { border-color: #28a05a; box-shadow: 0 0 0 1px rgba(40, 160, 90, 0.72); }
.rg-filter-wrap.is-compact .rg-check-end-0:hover input,
.rg-filter-wrap.is-compact .rg-check-end-0 input:checked { border-color: #2b7dff; box-shadow: 0 0 0 1px rgba(43, 125, 255, 0.72); }
.rg-filter-wrap.is-compact .rg-check-end-1:hover input,
.rg-filter-wrap.is-compact .rg-check-end-1 input:checked { border-color: #8a4dff; box-shadow: 0 0 0 1px rgba(138, 77, 255, 0.72); }
.rg-filter-wrap.is-compact .rg-check-end-2:hover input,
.rg-filter-wrap.is-compact .rg-check-end-2 input:checked { border-color: #d4538a; box-shadow: 0 0 0 1px rgba(212, 83, 138, 0.72); }

.rg-head.is-tight .rg-filter-btn,
.rg-head.is-tight .rg-search {
    font-size: 0.78rem;
}

.rg-head.is-tight .rg-filter-btn {
    width: 4.55rem;
}

.rg-head.is-tight .rg-search {
    flex-basis: 8rem;
    min-width: 6.5rem;
    max-width: 12.5rem;
}

.rg-reset-short {
    display: none;
}

.rg-head.is-tight .rg-reset-full {
    display: none;
}

.rg-head.is-tight .rg-reset-short {
    display: inline;
}

.rg-reset {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.18rem 0.55rem;
    border: 0;
    border-radius: 4px;
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    white-space: nowrap;
}

.rg-reset .bi {
    display: flex;
    align-items: center;
    height: 1em;
    line-height: 1;
    transform: none;
}

.rg-reset .bi::before {
    line-height: 1;
    vertical-align: 0;
}

.rg-reset:hover {
    background: var(--fgb-emphasis);
    color: #fff;
}

.rg-collect {
    background: var(--fgb-dark);
    color: #fff;
}

.rg-collect:hover {
    background: var(--fgb-dark);
    filter: brightness(1.35);
    color: #fff;
}

.rg-search {
    width: auto;
    flex: 1 1 10rem;
    min-width: 8rem;
    max-width: 16rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    outline: none;
}

.rg-search:focus,
.rg-search:focus-visible {
    outline: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.rg-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rg-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 0.85rem;
    height: 0.85rem;
    margin-right: 0.1rem;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23fff' d='M3.1 2.2 8 7.1l4.9-4.9 1 1L9 8.1l4.9 4.9-1 1L8 9.1l-4.9 4.9-1-1L7 8.1 2.1 3.2z'/%3E%3C/svg%3E");
    cursor: pointer;
}

.rg-workspace {
    flex: none;
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.rg-frame.is-editing {
    width: fit-content;
    max-width: 100%;
}

.rg-frame.is-editing.is-stacked {
    width: 100%;
}

.rg-frame.is-editing.is-stacked .rg-workspace {
    flex-direction: column;
    width: 100%;
}

.rg-frame.is-editing.is-stacked .rg-list,
.rg-frame.is-editing.is-stacked .rg-edit {
    width: 100% !important;
    min-width: 0;
    max-width: none;
}

.rg-frame.is-editing.is-stacked .rg-split {
    display: none;
}

body:has(.rg-frame.is-editing) {
    overflow: auto;
}

body:has(.rg-frame.is-editing) .rg-main {
    overflow: visible;
    flex: 1 0 auto;
}

body,
.rg-main {
    scrollbar-width: thin;
    scrollbar-color: rgba(119, 185, 252, 0.7) rgba(255, 255, 255, 0.08);
}

body::-webkit-scrollbar,
.rg-main::-webkit-scrollbar {
    width: 10px;
    height: 6px;
}

body::-webkit-scrollbar-thumb,
.rg-main::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 100px;
}

body::-webkit-scrollbar-thumb:horizontal,
.rg-main::-webkit-scrollbar-thumb:horizontal {
    height: 6px;
    border: none;
    background: var(--secondary);
    background-image: none;
}

body::-webkit-scrollbar-thumb:horizontal:hover,
.rg-main::-webkit-scrollbar-thumb:horizontal:hover {
    background: var(--fgb-emphasis);
    background-image: none;
}

.rg-frame.is-editing.is-stacked .rg-panel {
    height: calc(var(--rg-row-h) * 5 + 3.1rem + 6px);
}

.rg-frame.is-editing.is-stacked .rg-edit {
    height: auto;
    overflow: visible;
}

.rg-frame.is-editing.is-stacked .rg-edit-scroll {
    flex: none;
    min-height: auto;
    overflow: visible;
}

.rg-frame.is-editing.is-stacked .rg-list {
    margin-bottom: 1.25rem;
}

.rg-frame.is-editing.is-stacked .rg-more[hidden] {
    display: none !important;
}

.rg-frame.is-editing .rg-workspace {
    width: auto;
}

.rg-frame.is-editing .rg-list {
    flex: none;
    width: 1000px;
    min-width: 750px;
}

.rg-frame.is-editing.is-table-scroll .rg-list {
    min-width: 0;
}

.rg-table-x {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rg-table-clip {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.rg-table-clip .rg-table-wrap {
    height: 100%;
}

.rg-frame.is-x-scroll .rg-table-head-wrap {
    overflow-x: hidden;
}

.rg-frame.is-x-scroll .rg-table-clip .rg-table-wrap {
    width: auto;
    height: calc(100% + 10px);
    overflow-x: scroll;
    overflow-y: scroll;
}

.rg-hbar {
    display: none;
    flex: none;
    align-items: stretch;
    height: 6px;
    margin-right: 10px;
}

.rg-frame.is-x-scroll .rg-hbar {
    display: flex;
}

.rg-hbar[hidden] {
    display: none !important;
}

.rg-hbar-btn {
    flex: none;
    width: 14px;
    height: 6px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: var(--secondary);
    font-size: 9px;
    line-height: 6px;
    cursor: pointer;
}

.rg-hbar-btn:hover {
    color: var(--fgb-emphasis);
}

.rg-hbar-track {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.rg-hbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 6px;
    border-radius: 100px;
    background: var(--secondary);
}

.rg-hbar-thumb:hover {
    background: var(--fgb-emphasis);
}

.rg-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.rg-panel {
    width: 100%;
    height: var(--rg-panel-h);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.3);
    color: var(--fgb-dark);
    overflow: hidden;
}

.rg-table-head-wrap,
.rg-table-wrap {
    overflow-x: hidden;
    overflow-y: scroll;
}

.rg-table-head-wrap {
    flex: none;
    scrollbar-color: transparent transparent;
}

.rg-table-head-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.rg-table-head-wrap::-webkit-scrollbar-thumb {
    background: transparent;
}

.rg-table-wrap {
    position: relative;
    flex: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(119, 185, 252, 0.7) rgba(255, 255, 255, 0.08);
}

.rg-table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.rg-table-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 100px;
}

.rg-table {
    width: 100%;
    min-width: 750px;
    table-layout: fixed;
    border-collapse: collapse;
    color: var(--fgb-dark);
}

.rg-col-play,
.rg-col-ending { width: 5.5rem; }
.rg-col-video { width: 8rem; }
.rg-col-edit { width: 4.5rem; }

.rg-table th {
    padding: 0.65rem 1rem;
    border-bottom: 2px solid var(--fgb-dark);
    background: transparent;
    font-weight: 600;
    font-size: 1.2rem;
    text-align: left;
    color: var(--fgb-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-panel.is-head-shrink .rg-table th { font-size: 1rem; }
.rg-panel.is-head-sm .rg-table th { font-size: 0.88rem; }

.rg-table th:nth-child(3),
.rg-table th:nth-child(4) {
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.rg-table td.rg-cell-badge,
.rg-table td.rg-cell-edit {
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.rg-table td.rg-cell-badge .rg-ellipsis {
    text-align: center;
}

#rgEditHead {
    text-align: center;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

.rg-table td {
    height: var(--rg-row-h);
    padding: 0.35rem 1rem;
    border-bottom: 1px solid rgba(8, 24, 73, 0.15);
    vertical-align: middle;
    font-size: 0.88rem;
    line-height: 1.35;
    color: var(--fgb-dark);
}

.rg-table td.rg-videos-cell {
    height: auto;
}

.rg-table tbody tr:hover td {
    background: rgba(43, 125, 255, 0.12);
}

.rg-ellipsis {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-table .rg-post-title,
.rg-table .rg-game-name,
.rg-table .rg-yt-name {
    font-family: 'NexonLv2Gothic', sans-serif;
    font-weight: 400;
}

#rgEditTitle {
    font-family: 'NexonLv2Gothic', sans-serif;
    font-weight: 700;
}

.rg-table a {
    color: var(--fgb-dark);
    text-decoration: none;
}

.rg-table a:hover {
    text-decoration: underline;
}

.rg-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    max-width: 100%;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.rg-badge-play-0 { background: rgba(8, 24, 73, 0.12); }
.rg-badge-play-1 { background: #ffc30047; }
.rg-badge-play-2 { background: rgba(40, 160, 90, 0.28); }
.rg-badge-ending-0 { background: rgba(43, 125, 255, 0.18); }
.rg-badge-ending-1 { background: rgba(138, 77, 255, 0.18); }
.rg-badge-ending-2 { background: rgba(212, 83, 138, 0.18); }

.rg-videos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.rg-video {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    max-width: 100%;
    min-width: 0;
}

.rg-yt {
    flex: none;
    color: #ff0000;
    font-size: 1rem;
    line-height: 1;
}

.rg-thumb {
    position: fixed;
    z-index: 30;
    width: 192px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: none;
    background: var(--fgb-dark);
    box-shadow: 0 8px 24px rgba(8, 24, 73, 0.28);
}

.rg-thumb[hidden] {
    display: none !important;
}

.rg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rg-video a,
.rg-video span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-pencil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fgb-dark);
    cursor: pointer;
}

.rg-pencil:hover {
    color: var(--fgb-emphasis);
}

.rg-message {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--fgb-dark);
    line-height: 1.5;
    pointer-events: none;
}

.rg-more {
    align-self: center;
    margin-top: 0.65rem;
}

.rg-more[hidden] {
    display: inline-block !important;
    visibility: hidden;
    pointer-events: none;
}

.rg-split {
    position: relative;
    flex: none;
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: var(--rg-panel-h);
    cursor: col-resize;
    background: transparent;
}

.rg-split::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: #fff;
    transform: translateX(-50%);
}

.rg-split-handle {
    position: relative;
    width: 6px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
}

.rg-edit {
    flex: none;
    align-self: flex-start;
    width: 380px;
    min-width: 350px;
    height: var(--rg-panel-h);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--fgb-dark);
    overflow: hidden;
}

.rg-edit[hidden],
.rg-split[hidden],
.rg-message[hidden],
#rgCollect[hidden],
#rgEditHead[hidden],
.rg-col-edit[hidden] {
    display: none !important;
}

.rg-edit-head,
.rg-edit-foot {
    flex: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
}

.rg-edit-head {
    justify-content: space-between;
    border-bottom: 2px solid var(--fgb-dark);
}

.rg-edit-head h2 {
    margin: 0;
    font-family: var(--font-page-title);
    font-size: 1.35rem;
    font-weight: 600;
}

.rg-edit-close {
    border: 0;
    background: transparent;
    color: var(--fgb-dark);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.rg-edit-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(119, 185, 252, 0.7) rgba(255, 255, 255, 0.08);
}

.rg-edit-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.rg-edit-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--secondary), var(--primary));
    border-radius: 100px;
}

.rg-edit-post {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-weight: 600;
}

.rg-edit-post a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    flex: none;
    color: var(--fgb-emphasis);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.rg-edit-post a span {
    text-decoration: underline;
}

.rg-card {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(8, 24, 73, 0.18);
    background: #f7f9fc;
}

.rg-card-head,
.rg-video-head,
.rg-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rg-card-head,
.rg-video-head {
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.rg-video-block {
    margin-top: 0.55rem;
    padding: 0.5rem;
    border: 1px solid rgba(8, 24, 73, 0.12);
    background: #fff;
}

.rg-card > .rg-line + .rg-line,
.rg-video-block .rg-line + .rg-line {
    margin-top: 0.4rem;
}

.rg-line input,
.rg-line select {
    min-width: 0;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(8, 24, 73, 0.25);
    background: #fff;
    color: var(--fgb-dark);
    font: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.rg-line input {
    flex: 1;
}

.rg-line select {
    flex: 0 1 8.4rem;
}

.rg-line-choices select {
    flex: 1 1 0;
}

.rg-line input.rg-time {
    flex: 1 1 2.4rem !important;
    width: auto;
    min-width: 2.6rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    text-align: center;
}

.rg-line-game,
.rg-line-video {
    flex-wrap: wrap;
}

.rg-line-game .rg-game-title,
.rg-line-video .rg-video-title {
    flex: 1 0 100%;
}

.rg-line-game select {
    flex: 1 1 0;
}

.rg-line-video .rg-video-url,
.rg-line-video .rg-times {
    flex: 1 0 100%;
}

.rg-line-video .rg-times .rg-time {
    flex: 1 1 2.4rem !important;
    width: auto;
    min-width: 2.6rem;
}

.rg-times {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: none;
    min-width: 9.2rem;
}

.rg-frame.is-editing.is-stacked .rg-line-game,
.rg-frame.is-editing.is-stacked .rg-line-video {
    flex-wrap: nowrap;
}

.rg-frame.is-editing.is-stacked .rg-line-game .rg-game-title {
    flex: 6 1 0;
}

.rg-frame.is-editing.is-stacked .rg-line-game select {
    flex: 2 1 0;
}

.rg-frame.is-editing.is-stacked .rg-line-video .rg-video-title {
    flex: 4 1 0;
}

.rg-frame.is-editing.is-stacked .rg-line-video .rg-video-url {
    flex: 3.5 1 0;
}

.rg-frame.is-editing.is-stacked .rg-times {
    flex: 2.5 1 0;
    min-width: 9.2rem;
}

.rg-frame.is-editing.is-stacked .rg-times .rg-time {
    flex: 1 1 2.4rem !important;
    width: auto;
    min-width: 2.6rem;
}

.rg-colon {
    flex: none;
    font-weight: 600;
}

.rg-remove {
    flex: none;
    padding: 0.2rem 0.5rem;
    border: 2px solid var(--secondary);
    background: var(--secondary);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.rg-remove:hover {
    border-color: var(--fgb-emphasis);
    background: var(--fgb-emphasis);
    color: #fff;
}

.rg-add-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    padding: 0.2rem 0.65rem;
    border: 0;
    border-radius: 999px;
    background: var(--fgb-emphasis);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.rg-add-badge:hover {
    background: color-mix(in srgb, var(--fgb-emphasis) 70%, #000);
    color: #fff;
}

.rg-edit-foot {
    justify-content: center;
    border-top: 1px solid rgba(8, 24, 73, 0.18);
}

.rg-save {
    min-width: 5.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
}

.rg-confirm-actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 800px) {
    :root {
        --rg-panel-h: calc(var(--rg-row-h) * 10 + 3.1rem);
    }

    .rg-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rg-head,
    .rg-workspace {
        align-items: stretch;
    }
}

@media (max-width: 620px) {
    .rg-main {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .rg-title {
        font-size: 1.35rem;
    }

    .rg-head,
    .rg-head-right {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .rg-head .rg-search,
    .rg-head.is-tight .rg-search {
        flex: 1 1 4.5rem;
        min-width: 4.5rem;
        max-width: 8.25rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 520px) {
    .rg-frame.is-editing.is-stacked .rg-line-game,
    .rg-frame.is-editing.is-stacked .rg-line-video {
        flex-wrap: wrap;
    }

    .rg-frame.is-editing.is-stacked .rg-line-game .rg-game-title,
    .rg-frame.is-editing.is-stacked .rg-line-video .rg-video-title {
        flex: 1 0 100%;
    }

    .rg-frame.is-editing.is-stacked .rg-line-game select {
        flex: 1 1 0;
    }

    .rg-frame.is-editing.is-stacked .rg-line-video .rg-video-url {
        flex: 3.5 1 0;
    }

    .rg-frame.is-editing.is-stacked .rg-times {
        flex: 2.5 1 0;
    }
}
